Posts


Aug. 1, 2024

Career Pivots of Developers

This is a list of former developers who have left the software engineering and what they are doing now. Use it as a reference when you are thinking about changing your career.

Feb. 6, 2024

The things you own end up owning you

“The things you own end up owning you.” - Chuck Palahniuk.

I was minimalist. It was very easy and stress-free life. I did own many things but but only after careful planning and I was quick to sell things that didn’t meet my expectations or once I stopped using them.

I also used to live well below my means. I felt free because loss of job or any other financial crisis would not affect me much.

Jan. 10, 2024

Favorite Movies

  1. Oppenheimer
  2. The Matrix
  3. Vivarium
  4. The Social Network
  5. Joker
  6. Moneyball
  7. The Founder
  8. The Big Short
  9. The Wolf of Wall Street
  10. Dil Se
  11. Taare Zameen Par
  12. 3 Idiots
  13. Crash
  14. Crouching Tiger, Hidden Dragon
  15. Life Is Beautiful
  16. Pan’s Labyrinth
  17. Scarface
  18. Pulp Fiction
  19. Fight Club
  20. The Lion King
  21. Raiders of the Lost Ark
  22. Enterglatic

Sep. 30, 2023

Parenting is hard

Only when you have wrong expectations.

It is so easy to know what is right action but sometimes so hard to do it.

Ayden is having rough morning. Well he was having good morning until we took him to his soccer match. He got shy and didn’t want to play. I spend 45 minutes encouraging him. Getting frustrated. Getting embarrassed. Getting angry.

I wanted to leave.

I don’t know what is right behavior. What should have I done. Is it too much to expect your child to do what they wanted to do. If you don’t push your child will they never get out of their comfort zone and never grow. If you push too much will that cause them unnecessary anxiety when they will naturally grow up at their own pace.

Sep. 29, 2023

Red Blob Games

Interactive tutorials for math and algorithms — Read on www.redblobgames.com/

Sep. 27, 2023

Ask HN: How do you manage photos, philosophically? | Hacker News

Ask HN: How do you manage photos, philosophically? | Hacker News — Read on news.ycombinator.com/item

Sep. 24, 2023

The Brutalist Report

The day’s headlines delivered to you without bullshit. — Read on brutalist.report/

Sep. 24, 2023

A previous time this was asked on HN, someone linked to these, which I quite lik… | Hacker News

A previous time this was asked on HN, someone linked to these, which I quite lik… | Hacker News — Read on news.ycombinator.com/item

Sep. 24, 2023

TechURLs – A neat technology news aggregator

Read tech news from the most popular tech websites in one place. — Read on techurls.com/

Sep. 24, 2023

Investment Banking & Finance Community | Financial Modeling Courses | Wall Street Oasis

Join 900,000+ members. Learn financial modeling and interview skills to help you break into the top financial careers in the world. — Read on www.wallstreetoasis.com/

Sep. 24, 2023

pouët.net :: your online demoscene resource

pouët.net - your online demoscene resource — Read on www.pouet.net/

Sep. 23, 2023

Credit cards vs Pokemon cards

Ayden: I don’t want to lose my Pokémon cards

Amer: ok

Ayden: Pokemon cards are very important

Amer: how so?

Ayden: they have all the information about Pokemon. They are not like credit cards. They are better than credit cards.

Sep. 19, 2023

The Highly Sensitive Parent by Elaine Aron

Could you be highly sensitive person? A highly sensitive person is someone who can get overwhelmed by various senses such as noise, smells, clutter that would not bother most people.

I got two kids and sometimes they both are crying and screaming at the same time. Their screams causes my neck, shoulders and arms to get stiff and I feel tingling or pins all over my arms. This sounds like heart attack and I am going to doctor to have it checked but quick search showed that this might be due to High Sensitivity towards noises or screams. And that’s when I learned about Highly Sensitive People aka HSP.

Sep. 12, 2023

It is so hard to choose

Ayden deciding his career:

“There are so many cool job, I want to be fireman, goalie, dad, police officer, monster truck driver.”

Sep. 10, 2023

Backup VPS

Here are simple steps to backup your VPS.

Backup MySQL database

Create a directory to store the backup files. Then run mysqldump command to backup your database.

mysqldump -u your_mysql_user -pyour_mysql_password your_database_name > /path/to/dump_$(date +\%Y\%m\%d\%H\%M\%S).sql

Or you run it as supersuer and backup all databases in once.

sudo mysqldump --all-databases > /path/to/dump_$(date +\%Y\%m\%d\%H\%M\%S).sql

To automate this, schedule a cron job that will run this command on a daily basis.

crontab -e

Insert the following line to execute the mysqldump command every day at midnight.

Sep. 7, 2023

Ask HN: Is there a news source you read everyday? If so, what is it? | Hacker News

Ask HN: Is there a news source you read everyday? If so, what is it? | Hacker News — Read on news.ycombinator.com/item

Sep. 6, 2023

A quick script to build and deploy hugo site on VPS

I had been using GitHub and Netlify for this site but lack of some features such as access to server logs finally got too much. So I decided to move this blog to my VPS.

One thing I really love about using Github is CI/CD and Github Actions. But I wanted something even simpler with less dependencies. So I decided to use a simple bash script to build and deploy the site.

Sep. 4, 2023

Ask HN: Those with ADHD. What’s a hobby that never gets boring? | Hacker News

Ask HN: Those with ADHD. What’s a hobby that never gets boring? | Hacker News — Read on news.ycombinator.com/item

Sep. 3, 2023

Why I don’t want to grow my freelance design studio into an agency | Nela Dunato Art & Design

I’m often asked if I plan to hire more people and grow my own design agency? I don’t, and in this article I explain why. — Read on neladunato.com/blog/why-wont-grow-freelance-studio-into-agency/

Sep. 1, 2023

Ask HN: What’s your favourite hobby and how did it start? | Hacker News

Ask HN: What’s your favourite hobby and how did it start? | Hacker News — Read on news.ycombinator.com/item

Aug. 30, 2023

VPN Relationship Map – Windscribe

Windscribe is a desktop application and browser extension that work together to block ads and trackers, restore access to blocked content and help you safeguard your privacy online. — Read on windscribe.com/vpnmap

Aug. 30, 2023

Ask HN: Why did Python win? | Hacker News

Ask HN: Why did Python win? | Hacker News — Read on news.ycombinator.com/item

Aug. 30, 2023

The Hidden Brain Connections Between Our Hands and Tongues | Quanta Magazine

Sticking out your tongue while doing delicate work with your hands reveals a history of evolutionary relationships. — Read on www.quantamagazine.org/the-hidden-brain-connections-between-our-hands-and-tongues-20230828/

Aug. 8, 2023

Ask HN: What are some captivating fair play mystery books that you’ve read | Hacker News

Ask HN: What are some captivating fair play mystery books that you’ve read | Hacker News — Read on news.ycombinator.com/item

Aug. 8, 2023

Ask HN: What’s the coolest physical thing you’ve made? | Hacker News

Ask HN: What’s the coolest physical thing you’ve made? | Hacker News — Read on news.ycombinator.com/item

Aug. 7, 2023

Past Performance Does Not Guarantee Future Results: A Reflection on Human Nature and Trading Strategies

It’s both intriguing and somewhat disheartening to observe how trading concepts often mirror human behavior. Here’s how:

Follow the Trend

In the investment world, the saying “past performance does not guarantee future results” is well-known. Despite this warning, many successful trend followers have found that stocks moving up generally continue to do so, and vice versa.

Interestingly, this concept applies to humans as well. Those who are happy and kind often continue in the same manner or even improve, while those who are miserable tend to spiral downward.

Aug. 2, 2023

Two supermoons in August mean double the stargazing fun

Two supermoons in August mean double the stargazing fun — Read on phys.org/news/2023-07-supermoons-august-stargazing-fun.html

Jul. 30, 2023

I feel hopeless, rejected, and a burden on society – one week of empathy training – Terence Eden’s Blog

I feel hopeless, rejected, and a burden on society – one week of empathy training – Terence Eden’s Blog — Read on shkspr.mobi/blog/2019/07/i-feel-hopeless-rejected-and-a-burden-on-society-one-week-of-empathy-training/

Jul. 30, 2023

Ask HN: Share one man boring internet businesses | Hacker News

Ask HN: Share one man boring internet businesses | Hacker News — Read on news.ycombinator.com/item

Jul. 24, 2023

Apple Vision Pro developer kit | Hacker News

Apple Vision Pro developer kit | Hacker News — Read on news.ycombinator.com/item

Jul. 22, 2023

Ask HN: How do you find clothing? | Hacker News

Ask HN: How do you find clothing? | Hacker News — Read on news.ycombinator.com/item

Jul. 18, 2023

Ask HN: Looking for new hobbies to relax, grow or make friends, any ideas? | Hacker News

Ask HN: Looking for new hobbies to relax, grow or make friends, any ideas? | Hacker News — Read on news.ycombinator.com/item

Jul. 14, 2023

Ask HN: What does your AI tech stack look like? | Hacker News

Ask HN: What does your AI tech stack look like? | Hacker News — Read on news.ycombinator.com/item

Jul. 14, 2023

Ask HN: What YouTube channels do you watch with your kids? | Hacker News

Ask HN: What YouTube channels do you watch with your kids? | Hacker News — Read on news.ycombinator.com/item

Jul. 12, 2023

Istanbul’s Blue Tile Paradise – by Kiefer Kazimir

The Hidden Mosque of Rüstem Pasha — Read on onthearts.com/p/istanbuls-blue-tile-paradise

Jul. 12, 2023

Milan Kundera, ‘The Unbearable Lightness of Being’ Novelist, Dies at 94 – Variety

The 1988 film adaptation of ‘The Unbearable Lightness of Being’ was directed by Philip Kaufman and starred Daniel Day-Lewis and Juliette Binoche. — Read on variety.com/2023/film/global/milan-kundera-the-unbearable-lightness-of-being-dies-dead-1235667595/

Jul. 10, 2023

Zygo: Finally listen to everything while swimming

I love swimming but it is hard to swim for more than 30 mins, not because I get tired but because it gets boring.

I had been looking for headphones for swimming but almost of all them are essentially mp3 players. That is because Bluetooth doesn’t pass through water very well. You need to pre-load songs or mp3s. Which would be fine if you only care for music. But I am mostly listening to news or audiobooks. It seems like too much work to use those headphone for anything but music.

Jul. 4, 2023

Hello Facebook

This is a test post and that’s okay.

Jun. 22, 2023

Money Is the Megaphone of Identity

If you don’t give money its purpose, it will end up defining yours. — Read on moretothat.com/money/

Jun. 22, 2023

Ask HN: Which book has had the most meaningful contribution in your life? | Hacker News

Ask HN: Which book has had the most meaningful contribution in your life? | Hacker News — Read on news.ycombinator.com/item

Jun. 17, 2023

DevOps Roadmap: Learn to become a DevOps Engineer or SRE

Community driven, articles, resources, guides, interview questions, quizzes for DevOps. Learn to become a modern DevOps engineer by following the steps, skills, resources and guides listed in this roadmap. — Read on roadmap.sh/devops

Jun. 16, 2023

Pricing Money

The text of Pricing Money, J. D. A Wiseman, Wiley (2001) — Read on www.jdawiseman.com/books/pricing-money/Pricing_Money_JDAWiseman.html

Jun. 14, 2023

undefined method xxxxx’ for #< Hash:0x00000 >

This error in our Rails application drove me crazy. The error was like this:

Jun. 12, 2023

Minimalist and Maximalist

In my view, horizontal spaces should be minimalist and vertical spaces can be maximalist. This way you will have a lot of horizontal space to sit at, write on. And walls covered in art to entertain you and also reducing echos and creating quieter space.

Jun. 1, 2023

Most Important Papers for Quantitative Traders | Hacker News

Most Important Papers for Quantitative Traders | Hacker News — Read on news.ycombinator.com/item

May. 24, 2023

Ask HN: Has anyone switched from a professional job to a (more) manual one? | Hacker News

Ask HN: Has anyone switched from a professional job to a (more) manual one? | Hacker News — Read on news.ycombinator.com/item

May. 20, 2023

Fake Plastic Plants

To me fake plastic plants means that one is too lazy to take care of real plants but they want to pretend to be someone who they are not.

Nothing wrong with not wanting to take care of real plants. But why not decorate your place in a way that reflects who you are.

May. 15, 2023

How to find the other end of deck drains?

In our backyard lay a series of deck drains that perennially harbored standing water. Despite my best efforts, tracing the end of these drains proved to be an elusive task, seemingly due to the fact that it was compacted and buried beneath layers of earth.

I even ventured to employ a drain snake to address the issue, but the screws securing the drain covers were victims of rust, rendering them immovable.

May. 15, 2023

Favorite Movies

My favorite movies in no particular order:

  1. Matrix
  2. Automata
  3. Lion King
  4. the Pursuit of Happyness
  5. The Social Network
  6. Jobs
  7. Scent of Woman
  8. John Wick
  9. Wild
  10. Hangover
  11. Apollo 10 1/2
  12. tick, tick, BOOM!
  13. taare zameen par
  14. The Founder
  15. My Octopus Teacher
  16. Hachi

May. 14, 2023

Ask HN: What 60 folks can give career and general life advice for 40 folks | Hacker News

Ask HN: What 60 folks can give career and general life advice for 40 folks | Hacker News — Read on news.ycombinator.com/item

Apr. 29, 2023

There’s more than one way to write an IP address

Most of us write our IP addresses the way we’ve been taught, a long time ago: 127. — Read on ma.ttias.be/theres-more-than-one-way-to-write-an-ip-address/

Apr. 28, 2023

Script inherits from native type ‘RigidBody2D’, so it can’t be assigned to an object of type: ‘Node2D’

Getting this error while following this tutorial in Godot v4.0.1.

In my case, I had added Node2D. The fix was to right click on the problem node under scene and click Make Scene Root. And then delete Node2D.

Here is what diff looked like:

diff --git a/2d-game-tutorial/Mob.tscn b/2d-game-tutorial/Mob.tscn
index 9eb1630..e720d7f 100644
--- a/2d-game-tutorial/Mob.tscn
+++ b/2d-game-tutorial/Mob.tscn
@@ -48,20 +48,18 @@ animations = {
 radius = 36.0
 height = 100.0

-node name="Mob" type="Node2D"]
-script = ExtResource("1_73gb4")
-
-node name="RigidBody2D" type="RigidBody2D" parent="."]
+node name="RigidBody2D" type="RigidBody2D"]
 collision_mask = 0
 gravity_scale = 2.66454e-15
+script = ExtResource("1_73gb4")

-node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="RigidBody2D"]
+node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
 scale = Vector2(0.75, 0.75)
 sprite_frames = SubResource("SpriteFrames_c1yjy")
 animation = &"walk"

-node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
+node name="CollisionShape2D" type="CollisionShape2D" parent="."]
 rotation = 1.5708
 shape = SubResource("CapsuleShape2D_h1pjc")

-node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="RigidBody2D"]
+node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]

Apr. 26, 2023

The Role of Diet on the Gut Microbiome, Mood and Happiness – PubMed

The gut microbiome may be both helpful and harmful, and not only is it affected by diet, it has also been shown to affect mental health including personality, mood, anxiety and depression. In this clinical study we assessed dietary nutrient composition, mood, happiness, and the gut microbiome in ord … — Read on pubmed.ncbi.nlm.nih.gov/36993403/

Apr. 22, 2023

Throwback: Skydiving in DFW

This was in 2011. More than 12 years ago. Still one of my favorite memory.

View from skydiving plane just before jumping Skydiving in Dallas Skydiving in Dallas Skydiving in Dallas Skydiving in Dallas Skydiving in Dallas Skydiving in Dallas Skydiving in Dallas Skydiving in Dallas Skydiving in Dallas Skydiving in Dallas Skydiving in Dallas Skydiving in Dallas Skydiving in Dallas Skydiving in Dallas Skydiving in Dallas Skydiving in Dallas

Mar. 31, 2023

Thoughts

Mar. 28, 2023

Ask HN: Successful one-person online businesses? | Hacker News

Ask HN: Successful one-person online businesses? | Hacker News — Read on news.ycombinator.com/item

Mar. 21, 2023

How NieR: Automata Tells the Ultimate Humanist Fable

Mar. 20, 2023

Ask HN: Solo founders, How do you deal with self-doubt and being overwhelmed? | Hacker News

Ask HN: Solo founders, How do you deal with self-doubt and being overwhelmed? | Hacker News — Read on news.ycombinator.com/item

Mar. 20, 2023

Ask HN: What books helped you in your entrepreneurship journey? | Hacker News

Ask HN: What books helped you in your entrepreneurship journey? | Hacker News — Read on news.ycombinator.com/item

Mar. 20, 2023

Ask HN: What has your personal website/blog done for you? | Hacker News

Ask HN: What has your personal website/blog done for you? | Hacker News — Read on news.ycombinator.com/item

Mar. 13, 2023

Ask HN: Any solo game developers here? | Hacker News

Ask HN: Any solo game developers here? | Hacker News — Read on news.ycombinator.com/item

Mar. 5, 2023

Fatherhood

Mar. 3, 2023

Ask HN: Has anyone started over outside of tech?

https://news.ycombinator.com/item?id=35008392

Mar. 2, 2023

A Senior Engineer’s Guide to the System Design Interview | Hacker News

A Senior Engineer’s Guide to the System Design Interview | Hacker News — Read on news.ycombinator.com/item

Feb. 23, 2023

<a href="https://news.ycombinator.com/item?id=34896626">How to specialize after a career as a generalist?</a>

https://news.ycombinator.com/item?id=34896626

Feb. 6, 2023

How to Advance in Your Career as an IC

Interesting post and discussion at Hacker’s News about advancing as Individual Contributor. Still debating which way to go.

https://news.ycombinator.com/item?id=34662394

Feb. 6, 2023

How much can you really get out of a 4$ VPS?

I am a big fan of cheap VPSs. I start many personal projects, bring up a VPS, play around and then wipe it. Never have to worry about accidentally running up bill in 100s or 1000s of dollars. I run this blog on $4 server.

So this was interesting to read how far can a cheap VPS go.

Jan. 1, 2023

Writings

Nov. 10, 2022

Ultra light dev setup

Simplification of dev setup:

  1. VPS
  2. Docker
  3. vim/neovim
  4. iPad Pro 11 + Keyboard
  5. Blink shell

Apps to develop

  1. web apps
  2. apis
  3. text generator using ai
  4. number crunching/data science python/R
  5. blogs
  6. command line games and apps
  7. php/js/go/python/ruby/c/c++

Nov. 8, 2022

Time to plant

Yesterday, I ordered some tissue culture and planting supplies.

Indoors plants market is huge. There is a lot to learn. There are new terms, new communities to join. But it is pretty exciting.

The main reasons I decided to explore this space is because:

  1. It is slower paced. Cannot pull all-nighter to make plants grow faster.
  2. My kids should enjoy it. And I can get them involved.
  3. There are interesting methods to master like creating perfect environment for optimal growth, growing exotic plants, etc.
  4. It can be scaled to more commercial operations, renting a greenhouse or something similar.
  5. Plants are good for the planet.
  6. If it fails, I will have plants for our home.

Sep. 2, 2022

Recipes

Jun. 20, 2022

It's What I Do: A Photographer's Life of Love and War by Lynsey Addario

It’s What I Do” by Lynsey Addario is probably in my top 10 favorite books. As someone who always wanted to be a serious photographer who would use images to make the world better place, I felt a real connection while reading this book. While reading it, I imagined myself being in the situations that Lynsey was in and I really don’t know if I would have been able to handle those situations.

Mar. 25, 2022

Songs

Mar. 23, 2022

Ask HN: What book changed your life?

Saw this post on Hacker’s News. A lot of interesting books to read.

Book Links
The Stormlight Archive (series) by Brandon Sanderson https://news.ycombinator.com/item?id=30739083
Jacob’s Room, Virginia Woolf https://news.ycombinator.com/user?id=thatjoeoverthr
Dune
Man’s Search For Meaning
How to Practice: The Way to a Meaningful Life - the Dalai Lama
Surely you’re joking Mr. Feynman
Gödel, Escher, Bach: an Eternal Golden Braid
Debt: The First 5000 Years
Crucial Conversations: Tools for Talking when Stakes are High by Kerry Patterson
Difficult Conversations: How to Discuss What Matters Most

Jan. 20, 2022

How to backup Kubernetes’ Config

The easiest solution seems to be following script by Stackoverflow user, Timothy Perez

:

  <pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">#!/bin/bash

# NAMESPACED EXPORTS
 for  ns in  $( kubectl get ns --no-headers | cut -d &#34; &#34;  -f1 ) ;  do
  kubectl --namespace = &#34; ${ ns} &#34;  get -o = json bindings,cm,ep,ev,limits,pvc,po,podtemplates,rc,quota,secrets,sa,svc,controllerrevisions,ds,deploy,rs,sts,localsubjectaccessreviews,hpa,cj,jobs,leases,ev,ds,deploy,ing,netpol,rs,pods,netpol,pdb,roles,rolebindings |  \
       jq '.items[] |
     select(.type!=&#34;kubernetes.io/service-account-token&#34;) |
     del(
         .spec.clusterIP,
         .metadata.uid,
         .metadata.selfLink,
         .metadata.resourceVersion,
         .metadata.creationTimestamp,
         .metadata.generation,
         .status,
         .spec.template.spec.securityContext,
         .spec.template.spec.dnsPolicy,
         .spec.template.spec.terminationGracePeriodSeconds,
         .spec.template.spec.restartPolicy
     )'  >> &#34;./ ${ ns} .json&#34;
 done

# NON-NAMESPACED EXPORTS
kubectl get -o = json cs,ns,no,pv,mutatingwebhookconfigurations,validatingwebhookconfigurations,crds,apiservices,tokenreviews,selfsubjectaccessreviews,selfsubjectrulesreviews,subjectaccessreviews,csr,psp,nodes,psp,clusterrolebindings,clusterroles,pc,sc,volumeattachments |  \
       jq '.items[] |
     select(.type!=&#34;kubernetes.io/service-account-token&#34;) |
     del(
         .spec.clusterIP,
         .metadata.uid,
         .metadata.selfLink,
         .metadata.resourceVersion,
         .metadata.creationTimestamp,
         .metadata.generation,
         .status,
         .spec.template.spec.securityContext,
         .spec.template.spec.dnsPolicy,
         .spec.template.spec.terminationGracePeriodSeconds,
         .spec.template.spec.restartPolicy
     )'  >> &#34;./cluster_non-namespaced_export.json&#34;

Script copied here under CC BY-SA 4.0 license

Jan. 19, 2022

LeetCode

Jan. 11, 2022

git error: github.com:abc/xyz.git did not send all necessary objects

I was getting following error when running git pull

git pull
fatal: bad object refs/heads/master 2
error: github.com:abc/xyz.git did not send all necessary objects

I tried running git gc

git gc
error: bad ref for .git/logs/HEAD 2
fatal: bad object refs/heads/master 2
fatal: failed to run repack

The fix was to remove above to files under .git

rm .git/logs/HEAD\ 2
rm .git/refs/heads/master\ 2

After that I was able to run gc and do git pull

Jan. 3, 2022

Ask HN: What is your money-making side project outside programming?

https://news.ycombinator.com/item?id=29780777

Jan. 3, 2022

An Algorithm for Passing Programming Interviews | Hacker News

An Algorithm for Passing Programming Interviews | Hacker News — Read on news.ycombinator.com/item

Dec. 29, 2021

Kubernetes not passing full path to Nodejs

I spent hours troubleshooting why url path was getting stripped from requests in our Nodejs/Expressjs based app. The reason was this line in Kubernetes’ Ingress:

nginx.ingress.kubernetes.io/rewrite-target : /

Removing it fixed the issue. Check Kubernetes documentation

for more details.

Dec. 24, 2021

Ask HN: Those making $500/month on side projects in 2021 – Show and tell

I love these kind of posts. Here are some interesting ideas for side-gig:

  1. Books. There are quite a few books there, books for babies, books about iOS dev etc.
  2. Mining Cryptocurrency. This comment got a lot of attention.
  3. Apps. Too many but was glad to see Mac apps generating decent income.
  4. Music. Decent income from YouTube content ID payments according to this comment.
  5. DIY biologist. Seems fun.
  6. A lot of SaaS or content sites.
  7. Flipping items from thrift stores on eBay.

Dec. 2, 2021

ROI when using your primary residence as rental too

Calculating rough ROI on rentals is easy:

For example, let’s say one buys $500,000 single family home and rent it out for $3000 per month. Since it is investment property, they will need to make at least 20% down payment. On $400,000 loan, their monthly payment would be about $2750 at 3.25% interest rate, with $10,000 in property taxes per year and $2000 yearly insurance.

($36,000 - $33,000) / $100,000 = 0.03 or 3% return.

Dec. 1, 2021

Ask HN: Software Engineer hitting 40: what’s next?

Recent thread on Hacker News, https://news.ycombinator.com/item?id=29360119, was very interesting for me especially since I turned 40 this year.

Programming is something I enjoy and pretty good at it. I’m still not at the top of salary range for programmers but this is a tough question. I can get into FAANG but there is still a ceiling of how much one can earn as a software engineer.

This comment

says it best:

Sep. 29, 2021

Wealth Lab Pro Earning Play Screener

This is a quick script that I use to find options to buy or sell.

 using  System;
 using  System.Collections.Generic;
 using  System.Text;
 using  System.Drawing;
 using  WealthLab;
 using  WealthLab.Indicators;
 using  Community.Components;

 namespace  WealthLab.Strategies
{
	 public class  MyStrategy  : WealthScript
	{

		 protected override void  Execute()
		{
			DataSeries maFast = EMAModern.Series(Close,  50 );
			DataSeries maSlow = EMAModern.Series(Close,  200 );
			DataSeries maFast_1 = EMAModern.Series(Close,  10 );
			DataSeries maSlow_2 = EMAModern.Series(Close,  50 );
			DataSeries ma = EMAModern.Series(Close,  10 );
			DataSeries maFast_3 = EMAModern.Series(Close,  10 );
			DataSeries maSlow_4 = EMAModern.Series(Close,  50 );

			PlotSeries(PricePane,EMAModern.Series(Close, 50 ),Color.Red,LineStyle.Solid, 2 );
			PlotSeries(PricePane,EMAModern.Series(Close, 200 ),Color.Green,LineStyle.Solid, 2 );
			PlotSeries(PricePane,EMAModern.Series(Close, 10 ),Color.Blue,LineStyle.Solid, 2 );
			PlotSeries(PricePane,EMAModern.Series(Close, 50 ),Color.Red,LineStyle.Solid, 2 );
			PlotSeries(PricePane,EMAModern.Series(Close, 10 ),Color.Blue,LineStyle.Solid, 2 );

			//for(int bar = GetTradingLoopStartBar(201); bar < Bars.Count; bar++)
 			 int  bar = Bars.Count -  1 ;
			{
				 if  (IsLastPositionActive)
				{
					Position p = LastPosition;
					 if  (p.EntrySignal.Contains(&#34;Group1|&#34; ))
					{
						 if  (CrossUnder(bar, maFast_3, maSlow_4))
						{
							SellAtMarket(bar +  1 , p, &#34;Group1&#34; );
						}
					}

				}
				 else
				{
					 if  (maFast[bar] > maSlow[bar])
					{
						 if  (maFast_1[bar] > maSlow_2[bar])
						{
							 if  (Close[bar] < ma[bar])
							{
								 if  (EarningsDate.InWindow( this , bar, &#34;earnings per share&#34; ,  7 ,  0 ))
								{

									BuyAtMarket(bar +  1 , &#34;Group1|&#34; );
								}
							}
						}
					}

				}
			}
		}
	}
}

Sep. 29, 2021

Old bookmarks

This is slightly a mess, basically various links my bookmarks are here.

  1. http://nautil.us/issue/45/power/against-willpower
  2. https://ubiquity.acm.org/article.cfm?id=3310318
  3. https://www.nytimes.com/2018/10/26/style/phones-children-silicon-valley.html
  4. Ask HN: Developers with kids, how do you skill up? - https://news.ycombinator.com/item?id=13816627
  5. Ask HN: How can I learn how to paint? - https://news.ycombinator.com/item?id=19375624
  6. Children aren’t born smart. They’re made smart by conversation. - https://slate.com/technology/2013/09/childrens-language-development-talk-and-listen-to-them-from-birth.html
  7. Maker Faire and Science Education: American kids should be building rockets and robots, not taking standardized tests. - https://slate.com/technology/2012/06/maker-faire-and-science-education-american-kids-should-be-building-rockets-and-robots-not-taking-standardized-tests.html
  8. https://www.npr.org/sections/goatsandsoda/2018/06/21/621752789/a-lost-secret-how-to-get-kids-to-pay-attention
  9. On Parenthood - https://blog.codinghorror.com/on-parenthood/
  10. reddit: parenting reading list - https://www.reddit.com/r/Parenting/wiki/reading
  11. Resistance Training May Lower Type 2 Diabetes Risk: Study - https://www.menshealth.com/fitness/a26799275/moderate-strength-training-diabetes-risk-study/
  12. Everything You Wanted to Know About STEM for Toddlers - https://preschoolsteam.com/stem-activities-toddlers/
  13. Plano Is the Happiest Place in America - https://www.dmagazine.com/frontburner/2019/03/plano-is-the-happiest-place-in-america/
  14. Good Vibes Are Contagious - https://www.outsideonline.com/2391572/send-good-vibes
  15. Teens and Young Adults Are More Depressed Now Than in the Mid-2000s - https://gizmodo.com/teens-and-young-adults-are-more-depressed-now-than-in-t-1833295562
  16. How Inuit Parents Raise Kids Without Yelling — And Teach Them To Control Anger - https://www.npr.org/sections/goatsandsoda/2019/03/13/685533353/a-playful-way-to-teach-kids-to-control-their-anger
  17. Expert Says Don’t Teach Kids to Code - https://hackaday.com/2019/03/14/expert-says-dont-teach-kids-to-code/
  18. The Longevity Research Institute - https://thelri.org/blog-and-news/melatonin-s-effect-on-skin-and-hair/
  19. https://yourkidstable.com/about/
  20. When Ancient Societies Hit a Million People, Vengeful Gods Appeared - https://www.livescience.com/65039-punishing-gods-rise-with-complex-societies.html
  21. A morning fitness routine that’s good for your brain, too - https://www.cnn.com/2019/03/21/health/fitness-routine-brain-morning-exercise-mansour/index.html
  22. Teaching Children to Walk Independently! - One of the first reassurances I can give families is that Motor Milestones exist on a continuum. Each child achieves these skills at their own time, in their own way. Though we learn motor development from textbooks positing neurodevelopment theory to explain skill acquisition and motor patterning, the manifestation of this progression takes on distinct characteristics when we look at each child as a unique creation. - http://blog.dinopt.com/independent-walking-kids/
  23. Posture Power: How To Correct Your Body’s Alignment - https://www.bodybuilding.com/content/posture-power-how-to-correct-your-body-alignment.html
  24. Best Camping Near Me | Hipcamp’s Interactive Map of Private and Public Land - https://www.hipcamp.com/discover/texas/cedar-hill?lat=33.0304&lng=-96.8777
  25. How to increase serotonin in the human brain without drugs (2007) | Hacker News - https://news.ycombinator.com/item?id=19482241
  26. Scientists have also administered cognitive tests right after exercise—for example, measuring the flicker fusion threshold (the rate at which a flashing light begins to look like it’s steadily glowing) and found the same thing: After exercise, one’s senses are heightened and thus can detect the flashing at a higher frequency than before exercise.Taken together, these findings indicate that “people see more clearly and immediately after exercise,” Maddock says. “They can make finer visual distinctions; their perceptions are sharper.” - https://www.outsideonline.com/2186146/your-brain-exercise
  27. https://theweek.com/articles/830490/rise-snowplow-parenting
  28. How do I ensure my only child isn’t socially isolated? - https://www.washingtonpost.com/lifestyle/on-parenting/as-my-only-child-grows-what-is-my-role/2019/03/25/12b18e26-4a57-11e9-b79a-961983b7e0cd_story.html
  29. https://www.wellandgood.com/bodyweight-vs-weights-workouts/
  30. Atomic ML | Resources to help you learn data science and machine learning. - https://www.atomicml.com/
  31. https://metroplexsocial.com/2019/03/16/best-playgrounds-in-dfw-to-take-your-kids/
  32. https://www.nytimes.com/2019/04/04/magazine/how-asmr-videos-became-a-sensation-youtube.html
  33. A five-minute workout called Inspiratory Muscle Strength Training (IMST) lowers blood pressure in middle-aged to older adults; it also improves artery function and scores on memory tests, according to new research. - http://www.sci-news.com/medicine/inspiratory-muscle-strength-training-blood-pressure-brain-07077.html
  34. https://aeon.co/essays/how-to-live-a-values-driven-life-in-the-face-of-dark-emotions
  35. Notably, most improvements in GI symptoms were maintained, and autism-related symptoms improved even more after the end of treatment. Important changes in gut microbiota at the end of treatment remained at follow-up, including significant increases in bacterial diversity and relative abundances of Bifidobacteria and Prevotella. Our observations demonstrate the long-term safety and efficacy of MTT as a potential therapy to treat children with ASD who have GI problems, and warrant a double-blind, placebo-controlled trial in the future. - https://www.nature.com/articles/s41598-019-42183-0
  36. Anything you can do to keep from packing up your shit and leaving is called love. - http://a.co/7cPPwc2
  37. It is hard sometimes to keep in mind the growth-promoting potential of the mismatches between parent and child goals because the parents’ empathy for the child can make them feel as if it is their fault that they cannot fulfill the child’s wishes. - http://a.co/cbhTMiO
  38. The basic premise of attachment theory is that toddlers can grow into happy and competent children if they can rely on at least one adult who makes them feel safe and protected. From this basic feeling of security in relationships grows the impetus to explore how things work in the world and to try out new skills. - http://a.co/1QjXVtb
  39. Toddlers walk through life like we all wish we could: confident, demanding, and 100 percent positive that they are the center of the universe. - http://a.co/7nddWp3
  40. http://www.optionstrading.org/strategies/a-z-list/
  41. Ask HN: What is your money-making side project outside programming? | Hacker News - https://news.ycombinator.com/item?id=19712057
  42. https://www.cbc.ca/parents/learning/view/parenting-isnt-that-hard
  43. https://discover.dc.nihr.ac.uk/content/signal-000711/aerobic-exercise-is-an-effective-treatment-for-depression
  44. https://www.wellandgood.com/good-sweat/power-in-fitness/
  45. It has been said that children need to take 3,000 steps or cover 24 foot ball fields before they can learn to walk by themselves. Lets just say they need to do 100’s of steps/day -best if it is in a condensed period of time- to learn to walk. - https://maryevanspt.wordpress.com/2016/12/14/how-to-get-your-baby-and-toddler-to-walk/
  46. https://blog.usejournal.com/things-you-learn-after-1-year-of-day-trading-for-a-living-a97bbc8d19fa
  47. Trading and Data Science - http://www.algonell.com/blog
  48. https://algodaily.com/lessons/solving-the-health-problems-of-software-engineers
  49. https://greatergood.berkeley.edu/article/item/why_attachment_parenting_is_not_the_same_as_secure_attachment
  50. The dangers of over-parenting - https://www.valleynewslive.com/content/news/The-dangers-of-over-parenting-509683601.html
  51. Evidence-based parenting: how to deal with aggression, tantrums and defiance - https://theconversation.com/evidence-based-parenting-how-to-deal-with-aggression-tantrums-and-defiance-95439
  52. No matter what you accomplish, achieve or do, somebody is always up to something far more epic than you are if you live your life through the lens of your Facebook news feed. - https://medium.com/the-mission/why-excessive-consumption-limits-your-creativity-6e925dd66daa
  53. https://www.macstories.net/stories/beyond-the-tablet/
  54. https://www.optionsprofitcalculator.com/
  55. https://seekingalpha.com/article/4254004-rentals-vs-reits-best-way-invest-real-estate-practical-case-study
  56. Ask HN: Should I quit my job? | Hacker News - https://news.ycombinator.com/item?id=20024943
  57. https://www.learning-mind.com/only-child-syndrome-signs-effects/
  58. Ask HN: What is the real Value of Real Estate Agent? | Hacker News - https://news.ycombinator.com/item?id=14301230
  59. Do you ever get that feeling when listening to a great song that makes all the hairs on your arm stand on end? - https://www.indy100.com/article/music-goosebumps-some-people-science-research-emotions-psychology-study-harvard-7926781
  60. The key to physical fitness isn’t exercise, it’s movement — Quartzy - https://qz.com/quartzy/1641863/the-key-to-physical-fitness-isnt-exercise-its-movement/
  61. https://www.aaii.com/journal/article/a-comparison-of-backtesting-tools
  62. How to Automatically Backup a Linux VPS to a Separate Cloud Storage Service | Hacker News - https://news.ycombinator.com/item?id=20146648
  63. How to parent more predictably (2018) | Hacker News - https://news.ycombinator.com/item?id=20173675
  64. It also appears that belonging to the London cluster made writers substantially more productive. Mitchell finds that the average writer in London saw their productivity go up by 12 percent. By comparison, writers in smaller clusters, in Dublin, Edinburgh, Oxford, and Cambridge, saw no such gains. Furthermore, being part of the London cluster increased the likelihood of an author having their work published in any given year by 24 percent. - https://www.citylab.com/life/2019/06/british-irish-writers-london-clustering-dickens-woolf/590884/
  65. Research led by the University of Exeter, published in Scientific Reports and funded by NIHR, found that people who spend at least 120 minutes in nature a week are significantly more likely to report good health and higher psychological wellbeing than those who don’t visit nature at all during an average week. However, no such benefits were found for people who visited natural settings such as town parks, woodlands, country parks and beaches for less than 120 minutes a week. - https://medicalxpress.com/news/2019-06-hours-week-key-dose-nature.html
  66. The difference a dad can make - https://www.evoke.org/articles/june-2019/Data-Driven/Fresh_Takes/the-difference-a-dad-can-make
  67. Ask HN: Has anybody successfully changed their career to become a writer? | Hacker News - https://news.ycombinator.com/item?id=16495718
  68. Ask HN: Have any former developers successfully changed careers? | Hacker News - https://news.ycombinator.com/item?id=20318965
  69. Ask HN: How do I get into electronics from scratch? | Hacker News - https://news.ycombinator.com/item?id=20300037
  70. Ask HN: If you were a coder who successfully changed careers, what do you do now? | Hacker News - https://news.ycombinator.com/item?id=14847646
  71. Ask HN: What do I tell my students about starting Freelancing? | Hacker News - https://news.ycombinator.com/item?id=20304980
  72. so you want to be a writer? by Charles Bukowski: https://poets.org/poem/so-you-want-be-writer
  73. The 10 books that changed my career as a software engineer: https://storyforj.com/s/dk79PY
  74. In May 2012 I made a commitment that changed my career: A simple task, completed every day, that skyrocketed my blog and allowed me to make over $30,000 in 6 weeks: https://nathanbarry.com/commitment-changed-career/
  75. What is the Average Profit on a House Flip? - https://investfourmore.com/average-house-flip-profit/
  76. How This Real Estate Agent Made $100,000 In One Month From His YouTube Channel - https://www.forbes.com/sites/jrose/2019/07/15/how-this-real-estate-agent-made-100000-in-one-month-from-his-youtube-channel/
  77. Vonnegut: Can you believe this guy? He makes more money in a single day than we’ll make in our entire lives. And you wrote Catch-22! > Heller: Sure, but I have something he’ll never have. > Vonnegut: Yeah, Joe? What’s that? > Heller: Enough: https://news.ycombinator.com/item?id=20436934
  78. Books for Quants – Towards Data Science - https://towardsdatascience.com/books-for-quants-1b0f51dd7745
  79. The deliberate dog body language of curving is used in polite greetings, negotiation, or as a calming signal. A head-on, frontal approach can be seen as confrontational. The curving could be the curving of the dog’s body (which makes a slight c-shape), or a directional curve in the path the dog walks on approach. Some have described it as a ‘banana walk’, an easy descriptive way to imagine the direction of walk, due to the shape of the path taken by the dog. — https://www.silentconversations.com/dog-body-language-curving-silent-conversations/
  80. These writers got their start after age 35—there’s still hope for you: https://theamericanscholar.org/35-over-35/
  81. 6 Alternatives To Freelancing For Engineers – https://medium.com/@AndrewPierno/6-alternatives-to-freelancing-for-engineers-f6e56d20f793
  82. How Long It’s Safe to Leave Food Unrefrigerated - https://www.thekitchn.com/how-long-can-you-leave-cooked-foods-unrefrigerated-kitchen-facts-218225
  83. Anxiety Looks Different in Men – https://www.wsj.com/articles/anxiety-looks-different-in-men-11564494352
  84. The $61,392 Book Launch That Let Me Quit My Job: https://adamwathan.me/the-book-launch-that-let-me-quit-my-job/
  85. “The most important emotional accomplishment of the toddler years is reconciling the urge to become competent and self-reliant with the simultaneous and sometimes contradictory longing for parental love and protection.” — The Emotional Life of the Toddler by Alicia F. Lieberman - http://a.co/ahiuBee
  86. The Essential 6 Month Calisthenics Workout Plan - http://www.barbrothersgroningen.com/calisthenics-workout-plan/
  87. Pop culture lionizes the dazzling brilliance of money managers on the autism spectrum. Reality rarely measures up: https://www.institutionalinvestor.com/article/b1gq9tqwk8z108/They-Get-Fired-All-the-Time-And-They-Have-No-Idea-Why
  88. “It is neither possible nor desirable to be always attuned and responsive to the moods and wishes of children.” — The Emotional Life of the Toddler by Alicia F. Lieberman - http://a.co/fwr0A4E
  89. Most knowledge worth having comes from practice. It comes from doing. It comes from creating. Reading about the trade war with China doesn’t make you smarter—it gives you something to say at dinner parties. It gives you the illusion that you have the vaguest idea what is happening in our enormously complex world: https://tjcx.me/posts/consumption-distraction/
  90. “but the often observed increased involvement of fathers in the toddler years may be linked to findings that fathers as a group are more likely than mothers to promote the adventurous exploration and challenging play that toddlers are now ready to join.” — The Emotional Life of the Toddler by Alicia F. Lieberman - http://a.co/89HPMXr
  91. “One study, for example, found that children who showed a secure attachment to their fathers by seeking them out for comfort when feeling stressed had fewer behavior problems and showed more competence in school and peer groups than did those who had an insecure relationship with their fathers.” — The Emotional Life of the Toddler by Alicia F. Lieberman - http://a.co/5KTWPMl
  92. Living cells in the human body experience forces of various frequencies (for example breathing, heartbeats, walking, running, jumping and singing), typically ranging from 0.2 hertz to hundreds of hertz,” the researchers wrote. At the highest frequencies, cells became stiffer and the enzymes that guide gene transcription could not bind to the DNA, the team found.Cells’ immediate responsiveness to force makes sense from an evolutionary perspective, Wang said.”Cells must be able to respond quickly to things in their environment so they can survive,” he said. - https://phys.org/news/2020-04-physical-spurs-gene-reveals.html
  93. Senate Stock Watcher - See What Senators are Trading: https://senatestockwatcher.com/
  94. Analyzing HN readers’ personal blogs | Hacker News - https://news.ycombinator.com/item?id=22822401>
  95. Six super-short sci-fi stories that explore the post-COVID-19 world. - https://sudowriters.com/anthology/fever-dreams/
  96. How A Goat Farmer Built A Doomsday Machine That Just Booked A 4,144% Return: https://www.forbes.com/sites/antoinegara/2020/04/13/how-a-goat-farmer-built-a-doomsday-machine-that-just-booked-a-4144-return/
  97. How long does it take to beat your favorite games? - https://howlongtobeat.com/#search1
  98. Find out how to entertain a two-year-old here! 40+ best activities for two-year-olds. Inside you will find indoor play ideas, sensory play prompts, and painting play activities. - https://www.dayswithgrey.com/blog/top-activities-two-year-olds
  99. An important point to note here is that automated trading does not mean it is free from human intervention. Automated trading has caused the focus of human intervention to shift from the process of trading to a more behind-the-scenes role, which involves devising newer alpha-seeking strategies on a regular basis: https://blog.quantinsti.com/learn-algorithmic-trading/
  100. In this article we’ll look into a real options trading strategy, like the strategies that we code for clients. This one however is based on a system from a trading book. As mentioned before, options trading books often contain systems that really work – which can not be said about day trading or forex trading books. The system examined here is indeed able to produce profits. Which is not surprising, since it apparently never loses. But it is also obvious that its author has never backtested it: https://financial-hacker.com/algorithmic-options-trading-part-3/
  101. Algorithmic Trading at home – how should I get started? | QuantNet Community: https://quantnet.com/threads/algorithmic-trading-at-home-how-should-i-get-started.3611/
  102. This is the fourth part of a series of articles on backtesting trading strategies in Python. The previous ones described the following topics:introducing the zipline framework and presenting how to test basic strategies: https://towardsdatascience.com/algorithmic-trading-based-on-technical-analysis-in-python-80d445dc6943
  103. Algorithmic Trading Bot: Python - Towards Data Science: https://towardsdatascience.com/algorithmic-trading-bot-python-ab8f42c37145
  104. If you’re considering algo trading as a career then be sure to talk to a lot of people doing it. I spent several years trying to break in to the industry at a few prop firms with only middling success. Here are my observations:1. The vast majority of firms only hire people with CS or math degrees from top 10 schools, with an MS being the minimum. There are few exceptions.2. Nobody is making as much money as they used to.3. Depending on what firm you end up at you will probably spend a lot less time building cool strategies and a lot more time trying to shave off a few microseconds here and there.4. Be prepared for a pretty rough work environment. Swearing, violent outbursts, people being secretive and not sharing ideas.5. If you’re lucky, management will be STEM people. If you’re not, they will be former floor traders who have managed to stay alive this long. - Ask HN: How do I get started with Algo trading? | Hacker News - https://news.ycombinator.com/item?id=11332960
  105. Ask HN: How to launch an algo trading side project? | Hacker News: https://news.ycombinator.com/item?id=16376015
  106. I write (program, paint, animate, market, and so on) computer games like this one1. The recent economic troubles haven’t effected me negatively that much, instead it’s been a positive thing as more people are home and playing more games. I don’t necessarily want to ‘profit’ from all the hardship around, but I’m glad to provide products that entertain and hopefully make the current situation a bit more bearable – that feels good.I got started over 10 years ago now, making Flash-based games and licensing them to various web portal and publishers, which was good money for a student back then! A little indie game developer golden age where you’d get a lot of players and also a few thousand dollars per game without too much trouble. I went on from there doing self-published games that anyone can buy on Steam or the Mac Store, both of which provide about 90% of my revenue, and the remaining 10% are from smaller stores and game distributors.1 https://store.steampowered.com/app/654960/The_Eldritch_Zooke… <- My current project. - Ask HN: Successful one-person online businesses? | Hacker News: https://news.ycombinator.com/item?id=22858035
  107. Ask HN: Those making $500/month on side projects in 2019 – Show and tell | Hacker News: https://news.ycombinator.com/item?id=20899863
  108. Ask HN: What is your passive income 2019? | Hacker News: https://news.ycombinator.com/item?id=21389776
  109. Build a Day-Trading Algorithm and Run it in the Cloud Using Only Free Services - https://medium.com/automation-generation/build-a-day-trading-algorithm-and-run-it-in-the-cloud-for-free-805450150668
  110. How To Be A Professional Author And Not Die Screaming And Starving In A Lightless Abyss – Chuck Wendig: http://terribleminds.com/ramble/2019/09/17/how-to-be-a-professional-author-and-not-die-screaming-and-starving-in-a-lightless-abyss/
  111. How to Find Consulting Clients: https://chrisachard.com/how-to-find-consulting-clients
  112. Introduction to Algotrading (2011) [pdf] | Hacker News: https://news.ycombinator.com/item?id=19215026
  113. Questions to ask a company during a job interview | Hacker News: https://news.ycombinator.com/item?id=20916749
  114. Toddler Development: What Every Parent Needs to Know: https://theeverymom.com/toddler-development-what-every-parent-needs-to-know/
  115. What’s good career advice you wouldn’t want to have your name on? | Hacker News: https://news.ycombinator.com/item?id=21150930
  116. Ask HN: Why did you leave tech industry? | Hacker News: https://news.ycombinator.com/item?id=22876241
  117. Ask HN: What did you do to get extra streams of income for yourself? | Hacker News: https://news.ycombinator.com/item?id=23010294
  118. Using Reinforcement Learning in the Algorithmic Trading Problem | Hacker News: https://news.ycombinator.com/item?id=23022864
  119. Analysis of 41k dev agencies with hourly rates, team size and tech stack | Hacker News: https://news.ycombinator.com/item?id=23115364
  120. Ask HN: Mind bending books to read and never be the same as before? | Hacker News: https://news.ycombinator.com/item?id=23151144
  121. Things You Learn After 1 Year of Day Trading for a Living: https://blog.usejournal.com/things-you-learn-after-1-year-of-day-trading-for-a-living-a97bbc8d19fa
  122. Early Child Development Abilities by Age: https://pathways.org/all-ages/abilities/
  123. Youtube Workouts for Every Activity and Fitness Level | Outside Online - https://www.outsideonline.com/2412248/best-youtube-workout-videos-channels
  124. Ask HN: Ways to generate income when you’re at home without pay? | Hacker News: https://news.ycombinator.com/item?id=23258111
  125. Lots of Oppurtunities to make money online: https://www.lotsofopps.com/
  126. Ask HN: If you could work remote where would you live? | Hacker News: https://news.ycombinator.com/item?id=23294799
  127. Autism severity can change substantially during early childhood: https://health.ucdavis.edu/health-news/newsroom/autism-severity-can-change-substantially-during-early-childhood/2020/05
  128. Ask HN: I recently lost my job, I want to pursue blogging as a career. Thoughts? | Hacker News: https://news.ycombinator.com/item?id=23431466
  129. Ask HN: How do I start my own consulting firm? | Hacker News: https://news.ycombinator.com/item?id=13845681
  130. Ask HN: I implemented the life I designed: perfect but I feel lost. What now? | Hacker News: https://news.ycombinator.com/item?id=23450110
  131. Ask HN: What is the smartest career path to take? | Hacker News: https://news.ycombinator.com/item?id=23458316
  132. Some possible career goals: https://jvns.ca/blog/2018/09/30/some-possible-career-goals/
  133. Ask HN: Is working as a developer on technical route until retirement feasible? | Hacker News: https://news.ycombinator.com/item?id=23503947
  134. Machine Learning Field Guide: https://www.kamwithk.com/machine-learning-field-guide-ckbbqt0iv025u5ks1a7kgjckx
  135. Aging on Nautilus: Why You Can’t Help But Act Your Age: http://aging.nautil.us/feature/218/why-you-cant-help-but-act-your-age
  136. deerawan/react-native-flashcard-app · GitHub: https://github.com/deerawan/react-native-flashcard-app/tree/master/utils
  137. GitHub – wesbos/burner-email-providers: A list of temporary email providers: https://github.com/wesbos/burner-email-providers
  138. Ask HN: Consulting in tech. How to start? | Hacker News: https://news.ycombinator.com/item?id=23740167
  139. Ask HN: If given freedom to choose, what full-time job would you choose and why? https://news.ycombinator.com/item?id=23772648
  140. Learnings From A Year of Being Indie: https://ryanashcraft.com/a-year-of-being-indie/
  141. DIY Video Hosting: https://tyler.io/diy-video-hosting/
  142. Why Helicopter Parenting Fosters Failure | Psychology Today: https://www.psychologytoday.com/us/blog/the-baby-scientist/202007/why-helicopter-parenting-fosters-failure
  143. How you attach to people may explain a lot about your inner life | Science | The Guardian: https://www.theguardian.com/science/2020/jan/10/psychotherapy-childhood-mental-health
  144. Tech Jobs for Good helps you find tech jobs at mission driven companies around the US: https://techjobsforgood.com/?q=&impact_areas=Environment&impact_areas=Food+%26+Agriculture
  145. Ask HN: Former software engineers, what are you doing now? | Hacker News: https://news.ycombinator.com/item?id=23951850
  146. GitHub – jeltehomminga/pubquiz: pubquiz: https://github.com/jeltehomminga/pubquiz
  147. Why Success Won’t Make You Happy – The Atlantic: https://www.theatlantic.com/family/archive/2020/07/why-success-wont-make-you-happy/614731/
  148. Is Making Advanced GUI Applications with Godot the Future? | by Erik Engheim https://medium.com/swlh/what-makes-godot-engine-great-for-advance-gui-applications-b1cfb941df3b
  149. 50 Magazines and Anthologies That Pay for Horror Fiction: https://www.freedomwithwriting.com/freedom/uncategorized/50-magazines-and-anthologies-that-pay-for-horror-fiction/
  150. I Quit My Job. Here’s How I Planned the Start as an Entrepreneur | by Sjors van Dongen: https://medium.com/@sjorsvandongen/i-quit-my-job-heres-how-i-planned-the-start-as-an-entrepreneur-7bc546631431
  151. How do you find your passion? Am I off course? | Hacker News: https://news.ycombinator.com/item?id=15993395
  152. Notes on “Anthropology of Childhood” by David Lancy: https://thewholesky.wordpress.com/2020/08/27/notes-on-anthropology-of-childhood-by-david-lancy/
  153. Most favorited Hacker News posts of all time: https://observablehq.com/@tomlarkworthy/hacker-favourites-analysis
  154. Algorithmic Trading Using Logistic Regression – Hands-Off Investing: https://handsoffinvesting.com/an-algorithmic-trading-strategy-using-logistic-regression/
  155. Ask HN: What is your favorite motto? | Hacker News: https://news.ycombinator.com/item?id=24436135
  156. Texas Agent FAQ’s | Park and Refer: https://parkandrefer.com/texas-agent-faqs/
  157. All 149 Combined Ark Invest ETF Holdings: https://cathiesark.com/ark-funds-combined/complete-holdings
  158. https://marketstream.io/

Sep. 27, 2021

Oculus Quest 2 Review

I was debating between PS5 and Quest 2 (Affiliate link), and yes it is like comparing apples and oranges, but in the end Quest 2 won. I will likely buy PS5 at some point though. But before I buy PS5, I need a new TV with 4K and HDR. It seems pointless to play PS5 on 1080p TV from early 2010s.

Quest 2 is not my first experience with Virtual Reality. I tried PSVR about 2-3 years ago but the mess of wires really turned me off with the idea of VR. When I found out that Quest 2 is completely wireless, I got interested in it again. I was not very excited about needing Facebook account to use it though.

Sep. 24, 2021

Journey to the Microcosmos

Journey to the Microcosmos is a YouTube channel all about looking at microscopic organisms through microscope. Videos are beautifully produced and narrator explains what you are looking at in a calm soothing voice. These videos are educational and interesting. Highly recommended.

Jun. 2, 2021

Importing plotly failed. Interactive plots will not work.

Fix:

pip3 install --upgrade plotly

May. 17, 2021

Docker in 5 minutes

I have been using Docker and Kubernetes for several years now but never really took any time to really read about it. There were a lot of gaps in my understanding of how Docker works and what really is possible with it. Just recently my employer started to offer Udemy’s subscription, so I took Hands on Docker course. Here are some of the important things I learned in this course.

Where do you run Docker containers

You run these in Windows or MacOS but most likely you will use Linux in production. And unlike Windows and MacOS, you can run Docker on Linux VPS.

May. 10, 2021

Json_error_ctrl_char

I was using mcrypt to encrypt json_encoded data.

On other side, mycrypt was able to decrpyt data but json_decode was not working. It would throw JSON\_ERROR\_CTRL_CHAR error.

However, without mcrypt, json_decode worked flawlessly.

After some trial and error, I found that applying trim function after decrypting data would let me use json_decode without any issues.

May. 9, 2021

Find Large Directories on AIX

I usually run it from under a partition which is running out of space. It can take a while.

du -g | sort -n -r

May. 9, 2021

Error Xcode Select Error Tool Xcodebuild Requires Xcode Active Developer Directory Command Line Tools Instance

Playing with Cordova, I was getting this error when building iOS version:

Error: xcode-select: error: tool 'xcodebuild' requires Xcode,
but active developer directory is a command line tools instance

Even full install of Xcode didn’t fix this error.

The solution was to run following command to use full Xcode instead of command line tools version that I had installed earlier:

sudo xcode-select --switch /Applications/Xcode-beta.app/Contents/Developer

May. 9, 2021

Setup Outgoing Email on Lightsail Ubuntu VPS

I followed instructions here: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-18-04

Everything seemed okay but email were not getting delivered. Logs showed me that smtp connections were timing out:

tail -f /var/log/mail.log
May  3 12:28:10 postfix/smtp[3160]: connect to gmail-smtp-in.l.google.com[172.217.197.27]:25: Connection timed out
May  3 12:28:10  postfix/smtp[3160]: connect to alt1.gmail-smtp-in.l.google.com[2800:3f0:4003:c00::1a]:25: Network is unreachable
May  3 12:28:40 postfix/smtp[3160]: 4984C41A1E: to=<xxxx@gmail.com>, relay=none, delay=3246, delays=3186/0.01/60/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:400b:c00::1a]:25: Network is unreachable)

However, I could ping any of above ip addresses just fine.

May. 8, 2021

Files Empty in html form?

Put enctype="multipart/form-data" in your form tag.

May. 8, 2021

hsts Neterr_cert_common_name_invalid

Without full understanding, I had enabled HSTS on amerkhalid.com with option includeSubDomains. I had a subdomain that was used as “Custom Domain” to SmugMug site. After enabling HSTS, these subdomains started to throw NET::ERR_CERT_COMMON_NAME_INVALID.

The fix is of course simple, don’t use includeSubDomains. But that opens up your top level domain to man in middle attacks.

For now, I decided to follow the best practices and leave includeSubDomains enabled. And decided to not use custom domain for my SmugMug site.

May. 8, 2021

TypeError: require.extensions.hasOwnProperty is not a function

While playing with https://github.com/alexa/interactive-adventure-game-tool, I ran into following error:

> interactive-adventure-game-tool@1.0.0 start /Users/amer/alexa/interactive-adventure-game-tool
> node node_modules/gulp/bin/gulp.js

/Users/amer/alexa/interactive-adventure-game-tool/node_modules/require-dir/index.js:97
            if (!require.extensions.hasOwnProperty(ext)) {
                                    ^

TypeError: require.extensions.hasOwnProperty is not a function
    at requireDir (/Users/amer/alexa/interactive-adventure-game-tool/node_modules/require-dir/index.js:97:37)
    at Object.<anonymous> (/Users/amer/alexa/interactive-adventure-game-tool/gulpfile.js:1:85)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
    at Liftoff.handleArguments (/Users/amer/alexa/interactive-adventure-game-tool/node_modules/gulp/bin/gulp.js:116:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! interactive-adventure-game-tool@1.0.0 start: `node node_modules/gulp/bin/gulp.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the interactive-adventure-game-tool@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/amer/.npm/_logs/2018-01-02T05_12_24_832Z-debug.log

The solution was to update require-dir to version 0.3.2 in package.json and run npm install again.

May. 8, 2021

Disable Ping in Linux

echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all

May. 4, 2021

Troubleshooting Kubernetes Ingress

Setting up Ingress is an easy process but when it doesn’t work it gets really painful. First, make sure you have Ingress Controller setup correctly. This is in addition to Ingress resource and should be automatically setup by your cloud provider. When I was trying to setup a Kubernetes cluster on IBM Cloud, I ran into a lot of issues. It seems due to my permissions level something went wrong during provisioning of Kubernetes and Ingress Controller was not setup correctly. I went through a lot of steps including recreating alb , ingress resources, etc. The final fix was to login to IBM Cloud as superuser to change Access Policies for the cluster. Once did that, everything just worked magically.

Dec. 23, 2020

WordPress to Hugo to WordPress to Hugo

I moved all my blogs back to Hugo. I have gone back and forth between Wordpress and Hugo several times. WordPress makes it really easy to write and publish content. On this domain, I was using WordPress as a bookmarking service. With PressThis plugin, I was able to use a bookmarklet and publish a new post from any page on the web. But that plugin has not been updated in a while and it seems with every new WordPress release something would break. A few times, I was able to hack it to keep going. But lately, I cannot keep up with it. I will have to figure out a better way to bookmark but for now, I didn’t want to deal with WordPress. And easy bookmarking was the only reason why I was using WordPress.

Aug. 27, 2020

Watch “Pharrell Williams – Entrepreneur (Official Video) ft. JAY-Z” on YouTube

https://music.youtube.com/watch?v=bTOoY5MIkvM&feature=share

Aug. 26, 2020

Larry Smith: Why you will fail to have a great career | TED Talk

Aug. 14, 2020

Expiring vs. Permanent Skills · Collaborative Fund

Robert Walter Weir was one of the most popular instructors at West Point in the mid-1800s. Which is odd at a military academy, because he taught painting and drawing. Weir’s art classes were mandatory at West Point. Art can broaden your perspective, but that wasn’t the point. Nineteenth-century West Point cadets needed to be good at drawing because cartography was in its infancy. High-quality maps of the United States – let alone, say, Mexico – were scarce, if they existed at all. Military officers were expected to draw maps on the fly and record a battlefield’s topography. It wasn’t a niche; it was vital to war. Weir’s favorite student, who passed the time at West Point drawing river bends and mountain ranges, was Ulysses S. Grant. West Point no longer offers drawing or painting classes. Its sole cartography course emphasizes mapping software and technology, as you might expect. Drawing was an expiring military skill. Critical in one era, diminished in the next, unmentionable thereafter. A lot of things work that way. Every field has two kinds of skills: Expiring skills, which are vital at a given time but prone to diminishing as technology improves and a field evolves. Permanent skills, which were as essential 100 years ago as they are today, and will still be 100 years from now. Both are important. But they’re treated differently. Expiring skills tend to get more attention. They’re more likely to be the cool new thing, and a key driver of an industry’s short-term performance. They’re what employers value and employees flaunt. Permanent skills are different. They’ve been around a long time, which makes them look stale and basic. They can be hard to define and quantify, which gives the impression of fortune-cookie wisdom vs. a hard skill. But permanent skills compound over time, which gives them quiet importance. When several previous generations have worked on a skill that’s directly relevant to you, you have a deep well of relevant examples to study. And when you can spend a lifetime perfecting one skill whose importance never wanes, the payoffs can be ridiculous. Anything that compounds over decades usually is. A few permanent skills that apply to many fields: Not being a jerk. Being a jerk offsets being talented one for one, if not more. They don’t teach this in school, but it’s the single most important career skill. Part of this includes empathizing with jerks who are being jerks because they’re dealing with stress. The willingness to adapt views you wish were permanent. Accepting when expiring skills have run their course. A lot of what we believe about our fields is either right but temporary, or wrong but convincing. Sam Arbesman’s book The Half-Life of Facts makes this uncomfortably clear. “Medical knowledge about cirrhosis or hepatitis takes about forty-five years for half of it to be disproven or become out-of-date,” he writes. “This is about twice the half-life of the actual radioisotope samarium-151.” Getting along with people you disagree with. Equally smart people can come to different conclusions. And as Larry Summers once noted, “There are idiots; look around.” Some of these people can be avoided. Many can’t. You have to deal with them diplomatically. People who view every disagreement as a battle that must be won before moving on end up stuck and bitter. Getting to the point. Everyone’s busy. Make your point and get out of their way. Respecting luck as much as you respect risk. Acknowledging risk is when something happens outside of your control that influences outcomes and you realize it might happen again. Acknowledging luck is when something happens outside of our control that influences outcomes and you realize it might not happen again. Staying out of the way as much as you offer to help. You can add as much value by getting out of people’s way and minimizing your burden as you can by actively helping. This is especially important for two groups: new employees eager to get involved, and senior managers eager to get involved. Accepting a certain degree of hassle and nonsense when reality demands it. The ability to be comfortable being miserable. Frances Perkins, Franklin Roosevelt’s Secretary of Labor, said the most remarkable thing about the president’s paralysis was how little it seemed to bother him. He told her: “If you can’t use your legs and they bring you milk when you wanted orange juice, you learn to say ‘that’s all right,’ and drink it.” A useful and permanent skill in a world that’s constantly breaking and evolving. The ability to distinguish “temporarily out of favor” from “wrong.” Endurance is key because every industry is cyclical, and putting up with its dark days is the only way to ensure you’re part of the good ones. Gracefully exiting when you realize that whatever fueled past success doesn’t work anymore is also key. Warren Buffett says his favorite holding period is forever, then dumped $7 billion worth of airline stocks based on a few weeks of data. That might lo

Jul. 29, 2020

“Have you ever watched Inside the Actors Studio? The host, James Lipton, invariably asks his guests, “What factors make you decide to take a particular role?” The actor always answers: “Because I’m afraid of it.””

— The War of Art by Steven Pressfield https://a.co/byFeRJx

Jul. 25, 2020

“Heaven and Earth are meeting in a storm that, when it’s over, will leave the air purer and the fields fertile, but before that happens, houses will be destroyed, centuries-old trees will topple, paradises will be flooded.”

— Aleph by Paulo Coelho https://a.co/cfOu5ja

Jul. 25, 2020

“When a sense of dissatisfaction persists, that means it was placed there by God for one reason only: you need to change everything and move forward.”

— Aleph by Paulo Coelho https://a.co/0J87Lcb

Jul. 25, 2020

““You’re not here anymore. You’ve got to leave in order to return to the present.””

— Aleph by Paulo Coelho https://a.co/6FWXQN3

Jul. 25, 2020

““There’s no point sitting here, using words that mean nothing. Go and experiment. It’s time you got out of here. Go and re-conquer your kingdom, which has grown corrupted by routine. Stop repeating the same lesson, because you won’t learn anything new that way.””

— Aleph by Paulo Coelho https://a.co/6b8GNXf

Jul. 25, 2020

“In India, they use the word ‘karma,’ for lack of any better term. But it’s a concept that’s rarely given a proper explanation. It isn’t what you did in the past that will affect the present. It’s what you do in the present that will redeem the past and thereby change the future.””

— Aleph by Paulo Coelho https://a.co/0hVgS5H

Jul. 25, 2020

““I’m filled with doubt, especially about my faith,” I say. “Good. It’s doubt that drives a man onward.””

— Aleph by Paulo Coelho https://a.co/6r1XVVl

Jul. 25, 2020

“My search for wisdom, peace of mind, and an awareness of realities visible and invisible has become routine and pointless.”

— Aleph by Paulo Coelho https://a.co/hT3kZXY

Jul. 22, 2020

www.youtube.com/watch

Jul. 21, 2020

The Rules for Rulers – YouTube

Jul. 18, 2020

“There’s a secret that real writers know that wannabe writers don’t, and the secret is this: It’s not the writing part that’s hard. What’s hard is sitting down to write.”

— The War of Art by Steven Pressfield https://a.co/6sJg1aj

Jun. 29, 2020

My experience with Open Water Scuba certification in Dallas

This year I crossed off one of my bucket list item, got Open Water Diver certification. I had done scuba diving before at Honolulu. It is among my top 3 best experiences. Ever since that vacation, I had been wanting to get into diving more seriously.

But since we live in land locked Dallas, I didn’t think it was possible or worth it. Then this year in February I saw GroupOn from International Scuba and I decided to just go for it. I think GroupOn was for $250 but then there was a fine print which said we need to buy our own mask, fins, snorkel, and boots. I bought all this gear from International Scuba as they offered free gear rental for checkout dives. But this added about additional $200.

Jun. 29, 2020

“In my opinion, the most important lesson that you can learn from reading this book is that you will not get rich quickly by day trading.”

— How to Day Trade for a Living: Tools, Tactics, Money Management, Discipline and Trading Psychology by Andrew Aziz https://a.co/fmI1u8k

Jun. 26, 2020

iPad Pro as main machine after 2 years

I got my iPad Pro at the end of 2017. Before buying it, I had read many blog posts by various developers who were using iPad for programming and web development. But soon after I bought it, I realized that serious web development on iPad is hard. The biggest issue was debugging JavaScript and CSS without web tools. At first, I was having buyer’s remorse but I loved the form factor of iPad and loved drawing on it. I am used to reading on Kindle and iPad was just too heavy for long reading sessions but it was very decent reading device for quick reading sessions. So I kept it.

Jun. 17, 2020

“The things we really want to do are…

“The things we really want to do are usually the ones that scare us the most. The things you’ll not feel conflicted about are the choices that leave no one hurt.”

— What Should I Do with My Life?: The True Story of People Who Answered the Ultimate Question by Po Bronson https://a.co/izynNz8

Jun. 16, 2020

Ask HN: How do I start my own consulting firm? | Hacker News

Here are some things to consider about consulting:Sales/Selling is the last thing on your list and salesperson is only a maybe. Reverse all of your priorities because selling and relationships are the most difficult things to master for a consulting company and you will die without those skills.In consulting, tech talent < sales/relationship talent. In fact, if you’re great at the latter go ahead and get started now because there are lots of great tech people who don’t want to do it and will come work for you on a nice contract rate.To give you an example of this I once worked with a consultant who was a technical rock star, and another consultant who was supposed to be technical but was actually pretty below average. The below average guy was more successful because he was great when talking with the customers and they loved him. He knew enough to talk through problems at a high level, explained things well, and made them feel comfortable that things we’re on the right track. If he didn’t know something, no problem, he just went and found someone with the answer.Besides those soft skills he knew how to set and manage expectations. You may be used to the best results winning, but if you don’t manage and then exceed expectations it doesn’t matter. People love you when they expect 80 out of 100 and you deliver 88. They will not be happy and often fire you if expecting 100 out of 100 and you deliver 92. You will wonder how you just lost to a competitor who is not “as good” as you.Even if you have pretty good soft skills, do you want to spend time constantly using them? I thought you liked the tech side? If you like both then great because someone has to spends tons of time doing it to sell, maintain, and expand the work and your success depends on how good they are at it.For many people this will all be hard to believe, or they think it’s exaggerated, or that it’s easy to just hire someone to do it. That’s fine, I hope you have great success. Drop me a line in a couple years to say how things turned out.

Jun. 9, 2020

“For would be entrepreneurs he calls them “wantrapreneurs”…

“For would-be entrepreneurs (he calls them “wantrapreneurs”), or entrepreneurs who’ve grown a little too comfortable, Noah has a recommendation—ask for 10% off of your next few coffees. “Go up to the counter and order coffee. If you don’t drink coffee, order tea. If you don’t drink tea, order water. I don’t care. Then just ask for 10% off. . . . The coffee challenge sounds kind of silly, but the whole point is that—in business and in life—you don’t have to be on the extreme, but you have to ask for things, and you have to put yourself out there.””

Jun. 9, 2020

“I remember walking out of the station around…

“I remember walking out of the station around midnight. It was up on the top of this mountain, a beautiful place. I remember looking out and just saying, ‘Oh, my God, when am I going to like this? When am I going to really be happy with the work that I’m churning out?’ I look back on that all the time . . . if I could go back and just tell myself, ‘Don’t stress about it, it’s all going to work out in the end.’”

Jun. 9, 2020

Reading a new book What should I…

Reading a new book, “What should I do now?”

I have been trying to figure out next steps in my career. On one hand, there is management track. Then on other side, I just like to code and not deal with meetings and all that. But then as a dev, my earning potential is limited. Been thinking of going solo as freelancer. Then I can focus on code and choose my own projects.

May. 25, 2020

““I think we need to teach kids two…

““I think we need to teach kids two things: 1) how to lead, and 2) how to solve interesting problems. Because the fact is, there are plenty of countries on Earth where there are people who are willing to be obedient and work harder for less money than us. So we cannot out-obedience the competition. Therefore, we have to out-lead or out-solve the other people. . . .”

— Tools of Titans: The Tactics, Routines, and Habits of Billionaires, Icons, and World-Class Performers by Timothy Ferriss https://a.co/62h4x27

May. 25, 2020

““What could possibly be more important than your…

““What could possibly be more important than your kid? Please don’t play the busy card. If you spend 2 hours a day without an electronic device, looking your kid in the eye, talking to them and solving interesting problems, you will raise a different kid than someone who doesn’t do that. That’s one of the reasons why I cook dinner every night. Because what a wonderful, semi-distracted environment in which the kid can tell you the truth. For you to have low-stakes but superimportant conversations with someone who’s important to you.””

May. 24, 2020

Streets Of Cairo – Everything2.com

There’s a place in France{.populated}__, Where the naked ladies dance. There’s a hole in the wall Where the men watch it all

https://everything2.com/title/Streets+Of+Cairo

May. 24, 2020

Lynyrd Skynyrd – Simple Man – Live At The Florida Theatre / 2015 (Official Video) – YouTube

May. 24, 2020

Cat Steven – Father and Son, Live 1971 – YouTube

May. 10, 2020

““Because most of us say yes to too…

““Because most of us say yes to too much stuff, and then, we let these little, mediocre things fill our lives. . . . The problem is, when that occasional, ‘Oh my God, hell yeah!’ thing comes along, you don’t have enough time to give it the attention that you should, because you’ve said yes to too much other little, half-ass stuff, right? Once I started applying this, my life just opened up.””

May. 10, 2020

“DEREK “Well I meet a lot of 30…

“DEREK: “Well, I meet a lot of 30-year-olds who are trying to pursue many different directions at once, but not making progress in any, right? They get frustrated that the world wants them to pick one thing, because they want to do them all: ‘Why do I have to choose? I don’t know what to choose!’ But the problem is, if you’re thinking short-term, then [you act as though] if you don’t do them all this week, they won’t happen. The solution is to think long-term. To realize that you can do one of these things for a few years, and then do another one for a few years, and then another.”

Apr. 14, 2020

Ask HN: Parents of HN, what are your best sources for evidence-based parenting?

Here is a list of parenting books recommended by members of Hacker’s News community. All links are affiliate links to purchase these books from Amazon:

How to Talk So Your Kids Will Listen, and How to Listen So Your Kids Will Talk

One of a few books that are recommended multiple times in this thread. 4.5 stars with 1000+ reviews.

Cribsheet: A Data-Driven Guide to Better, More Relaxed Parenting, from Birth to Preschool by Emily Oster

Another book that was recommended by multiple people.

Apr. 5, 2020

More research on choosing dev stack for game dev

Last week, I had decided to use Swift/Apple’s ecosystem for initial gamedev. But I wasn’t feeling 100% okay with getting locked into Apple’s ecosystem.

So I spent last week doing more research on developing simple apps using Swift, Xamarin, Flutter, and React Native.

Since I use JavaScript at work, React Native would be the easiest way for me to get started but it feels too much like work and I am kind of tired of js/npm dependencies and build tools. One nice thing about staying in Apple’s ecosystem is that everything has really good documentation and feels more polished.

Jul. 18, 2019

Baby vs Dog

It is amazing how having your own kids changes everything.

I love my my dog and because of him I love almost all dogs. I hated leaving him home, so much, that I would not go to restaurants that don’t let dogs in patio. (With Whiskey Cake being notable exception). Every grocery trip, I would buy him a new toy, many times had arguments with wife because he had too many toys. Every vacation we would have huge argument because I wanted dog friendly vacation where we can take our dog.

Jul. 9, 2019

Developer Hegemony by Erik Dietrich

I am not sure how I found this book by Erik Dietrich. Maybe Google or Amazon recommended it. But I found it very inspiring. There are so many things in it that I agree with and so many new things that I am still having hard time believing.

As a developer, who is having a hard time figuring out his career, this book provided an interest perspective. The basic idea in it is that in any big corporation, developers are unlikely to find fulfilment. They may truly believe in their employer’s mission and try to climb corporate ladder. When they do that they will get stuck in middle management. They will keep working hard, hoping to move on to executive roles but very few would do by believing and hard work alone.

May. 25, 2019

Git Simplified

One of most common technology that new professional developers struggle with is git.

Many junior developers are eager to start using all of the powerful commands of git and usually end up getting more confused.

Here are a few commands that I recommend to anyone learning git for the first time:

clone

This downloads entire git repo from a remote server, usually. You will get all revision history and branches.

Apr. 22, 2019

My Photography Workflow with Lightroom, SmugMug, and iPad Pro

Ever since I bought iPad, I have tried to make it my main computing device. I love the form factor. I love many apps on it. I am have really started to enjoy many photography apps on it. Touch screen makes a lot of sense for photo editing. Snapseed, Apple Photos, Affinity Photo are my favorite photo apps on the iPad. But it has been hard to incorporate it in my photography workflow.

Mar. 25, 2019

Tools of Trade

I use 13-inch MacBookPro for personal projects and 15-inch for work. My personal MBP would be last traditional laptop, hopefully. Since most of my work can easily be done on Linux VPS. I have been using 10.5-inch iPad Pro with Blink shell for most my side projects. I like the form factor of iPad Pro and I am getting better at Linux administration. Now I am also setting up Docker images so I can bring up new images as needed.

Mar. 16, 2019

Ali Azmat – Setaron Ke Aagy – YouTube

Mar. 16, 2019

Aye khuda (English translation) Sunny chaudhary – YouTube

Mar. 16, 2019

MACKLEMORE X RYAN LEWIS – OTHERSIDE REMIX FEAT. FENCES [MUSIC VIDEO] – YouTube

Mar. 16, 2019

Queen – Bohemian Rhapsody (Official Video) – YouTube

Mar. 16, 2019

Macklemore – Vipassana (Ryan Lewis Remix) – YouTube

Mar. 14, 2019

Indian Ocean – Bandeh | Dhaka International Folk Fest 2015 – YouTube

            <a href="https://www.youtube.com/watch?v=MjaWIyoRTP8">https://www.youtube.com/watch?v=MjaWIyoRTP8</a>

Dec. 4, 2017

You don’t need a web developer

Occasionally, when people find out I am a programmer, they ask me if I will build  them a website or an app on the side. As I spend all day programming at my work, I rarely have motivation to continue programming after work.

However, talking to most people, I realize they don’t need a programmer; most of their needs can be met by a simple SaaS solution. Recently, I directed a few friends to WordPress.com, SmugMug, Shopify, etc. They all were happy with the results and ease of use. Also I am glad they talked to me because one guy was ready to spend a few thousands on a developer for a WordPress-based site.

Dec. 2, 2017

WordPress vs Hugo

Managing WordPress can get time consuming. I have tried to move to static website several times but kept going back to WordPress. But there are several advantages of static sites generators that I finally moved for good. I am also advising a lot of my clients to use Hugo especially when they know that they will rarely ever update their sites.

Here are some of main advantages of Hugo (or other static site generators) vs WordPress and other CMS.

Nov. 14, 2017

iPad Pro for Programming & Fun

I finally bought 10.5” iPad Pro (Affiliate Link). It was mostly an impulse purchase. When first I started to use iPad, it felt blah. It is hard to find good apps or what apps you might want to try out.

My main goals with iPad was to have a really small laptop replacement. So I was hoping for a decent code editor. There are some code editing apps but there is no way to try them out before purchasing. So I am spending a lot of time reading reviews before I purchase any app.

Oct. 13, 2017

ReflectionException: Class Tests\Unit\Symfony\Component\HttpKernel\Exception\NotFoundHttpException does not exist

Running unit tests in Laravel, I was getting this error:

ReflectionException: Class Tests\Unit\Symfony\Component\HttpKernel\Exception\NotFoundHttpException does not exist

The issue was missing root backslash, make sure you have expected exception like:

$this->expectException(\Symfony\Component\HttpKernel\Exception\NotFoundHttpException::class);

Sep. 28, 2017

Working Remotely

As a developer, I am lucky that I get to work from home as needed. But I have never been 100% remote; Lately, I have been reading a lot about working remotely, remote first companies, Digital Nomad lifestyle etc. This is some resources that I have found useful so far:

The Ultimate Guide to Working Remotely - I haven’t gone through whole guide yet but so far it has been very informative.

Sep. 22, 2017

Upgrading to PHP 7.0 on Ubuntu 14

I upgraded PHP to version 7.0 on Ubuntu box. Running php -v on shell would show it as version 7.0. But Apache was still using PHP 5.6. I tried various methods to update settings for Apache but nothing worked until I issued following commands:

sudo a2dismod php5.6
sudo a2enmod php7.0
sudo service apache2 restart

Source: PHP 7.0 (and 5.6) on Ubuntu | LornaJane

Aug. 19, 2017

Setting Up Laravel on MacOS

After 3 years, I am using Laravel again at work. Laravel has extensive documentation but sometimes it can be a bit verbose. Here are command to get you started as soon as possible. This assumes pretty much fresh install of MacOS.

Install Homebrew

Check the official site for latest command

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install PHP 7.1

brew install homebrew/php/php7

Install MariaDB

brew install mariadb

Set MariaDB to start as service at the end of installation.

Jul. 8, 2017

The E-Myth Revisited by Michael E. Gerber

My biggest takeaway from this book was that most people start business to create a job for themselves. For example, a person who enjoys baking may start a cake shop. The problem with this approach is that one is working in the business, not on it. The right way to start a business is with a goal of eliminating one’s job. For example, the person above should figure out a way to hire someone else to do baking.

Mar. 6, 2017

The Subtle Art of Not Giving a F*ck

I learned of Mark Manson through his blog, especially this post, 7 Strange Questions That Help You Find Your Purpose. Since then I have been on and off following his blog. He usually has a lot of good advice, so finally I decided to get his book. Makes it easier to have all information in one place.

I had no idea what Subtle Art of Not Giving a F*ck was about. It was an impulse purchase, perhaps to support his blog. It turns out to be a really good book. As a semi-regular reader of his blog, I sort of knew what his philosophies were. Still it was good to read everything in one place.

Dec. 22, 2016

Nov. 16, 2016

The War of Art

I wasn’t sure what to expect when I picked up “The War of Art” by Steven Pressfield. It shows up on Hacker’s News and other entrepreneurs’ forums regularly as a recommended reading. Steven Pressfield is a novelist but this book is popular reading for anyone who is pursuing a goal.

The author’s main point is that the most important and the hardest thing is doing. Weather that be sitting down at desk to write a novel or software. Once you are at your desk, or at your office, the hard part is done. This can apply to anything; fitness, painting, photography, etc.

Oct. 18, 2014

How to Fail at almost Everything & Still Win Big

How to Fail at almost Everything but still Win Big by Scott Adams (affiliate link) comes up on Hackers’ News a lot. Finally, I had a chance to read it.

This is a little different kind of book compared to my regular reads about ultra-successful business titans. I had no idea who Scott Adams was until I heard about this book. He created Dilbert comic. He gave very down to earth perspective on how he achieved success in this book.

May. 1, 2013

Magento – Get All Products with Categories in a Flat View

     SELECT
        w1.website_id,
        w1.name  as  website_name,
        s1.store_id,
        s1.name  as  store_name,
        p1.entity_id  as  product_id,
        p1.sku,
        pname.value  as  product_name,
        url.value  as  url_path,
        small_image.value  as  small_image,
        msrp.value  as  msrp_price,
        price.value  as  price,
        p1.created_at  as  product_created_at,
        p1.updated_at  as  product_updated_at,
        visibility.value  as  visibility,
        pstatus.value  as  status,
         case
             when
                (pstatus.value  =   1
                     and  visibility.value  >   1 )
             then
                 1
             else   0
         end as  enable_flag,
        c1.entity_id  as  category_id,
        cname.value  as  category_name,
        c1.parent_id,
        c1.created_at  as  category_created_at,
        c1.updated_at  as  category_updated_at
     FROM
        catalog_product_entity p1
             inner join
        eav_attribute p_attr  ON  p1.entity_type_id  =  p_attr.entity_type_id
             and  p_attr.attribute_code  =  'name'
             inner join
        catalog_product_entity_varchar pname  ON  pname.entity_id  =  p1.entity_id
             and  pname.attribute_id  =  p_attr.attribute_id
             inner join
        eav_attribute p_attr2  ON  p1.entity_type_id  =  p_attr2.entity_type_id
             and  p_attr2.attribute_code  =  'url_path'
             inner join
        catalog_product_entity_varchar url  ON  url.entity_id  =  p1.entity_id
             and  url.attribute_id  =  p_attr2.attribute_id
             and  pname.store_id  =  url.store_id
             inner join
        eav_attribute p_attr3  ON  p1.entity_type_id  =  p_attr3.entity_type_id
             and  p_attr3.attribute_code  =  'small_image'
             inner join
        catalog_product_entity_varchar small_image  ON  small_image.entity_id  =  p1.entity_id
             and  small_image.attribute_id  =  p_attr3.attribute_id
             and  pname.store_id  =  small_image.store_id
             inner join
        eav_attribute p_attr4  ON  p1.entity_type_id  =  p_attr4.entity_type_id
             and  p_attr4.attribute_code  =  'msrp'
             inner join
        catalog_product_entity_decimal msrp  ON  msrp.entity_id  =  p1.entity_id
             and  msrp.attribute_id  =  p_attr4.attribute_id
             and  pname.store_id  =  msrp.store_id
             inner join
        eav_attribute p_attr5  ON  p1.entity_type_id  =  p_attr5.entity_type_id
             and  p_attr5.attribute_code  =  'price'
             inner join
        catalog_product_entity_decimal price  ON  price.entity_id  =  p1.entity_id
             and  price.attribute_id  =  p_attr5.attribute_id
             and  pname.store_id  =  price.store_id
             inner join
        eav_attribute p_attr6  ON  p1.entity_type_id  =  p_attr6.entity_type_id
             and  p_attr6.attribute_code  =  'visibility'
             inner join
        catalog_product_entity_int visibility  ON  visibility.entity_id  =  p1.entity_id
             and  visibility.attribute_id  =  p_attr6.attribute_id
             and  pname.store_id  =  visibility.store_id
             inner join
        eav_attribute p_attr7  ON  p1.entity_type_id  =  p_attr7.entity_type_id
             and  p_attr7.attribute_code  =  'status'
             inner join
        catalog_product_entity_int pstatus  ON  pstatus.entity_id  =  p1.entity_id
             and  pstatus.attribute_id  =  p_attr7.attribute_id
             and  pname.store_id  =  pstatus.store_id
             inner join
        catalog_category_product ccp  ON  ccp.product_id  =  p1.entity_id
             inner join
        catalog_category_entity c1  ON  c1.entity_id  =  ccp.category_id
             inner join
        eav_attribute c_attr  ON  c1.entity_type_id  =  c_attr.entity_type_id
             and  c_attr.attribute_code  =  'name'
             inner join
        catalog_category_entity_varchar cname  ON  cname.entity_id  =  c1.entity_id
             and  cname.attribute_id  =  c_attr.attribute_id
             and  pname.store_id  =  cname.store_id
             inner join
        catalog_category_product_index store1  ON  store1.product_id  =  p1.entity_id
             and  store1.category_id  =  c1.entity_id
             inner join
        core_store s1  ON  store1.store_id  =  s1.store_id
             inner join
        core_website w1  ON  s1.website_id  =  w1.website_id

Apr. 21, 2013

OpenShift Error: Layer 7 Wrong Status, Invalid Response

I have been playing with OpenShift for past several hours. It looks great. But a while back I started to get 503 Internal Server error.

When I checked logs using rhc tail , I saw this error: Layer 7 Wrong Status, Invalid Response 404.

I spent an hour or so troubleshooting. Turns out the issue was Netbeans had added src/main/web/app/WEB-INF/jboss-web.xml when I ran the application locally on my machine. I committed this file, thinking I might need it. Deleting it from repo fixed the issue.

Jul. 7, 2012

How to Tell if a Number Is Whole in Php

if ($num == (int) $num) {
    // It's whole
} else {
    // It's not
}

Apr. 22, 2012

Filter Some Keys in Multi Dimensional Arrays in Php

/**
 * Cleans up multi-dimensional arrays.
 * 1st dimension is a simple index
 * 2nd dimension includes the desired keys
 *
 * @param mixed $array
 * @param mixed $keysToInclude
 */
public function cleanUpArray($array, $keysToInclude) {
    $returnArray = array();
    $i = 0;

    foreach($array as $item){
        foreach($keysToInclude as $key){
            $returnArray[$i][$key] = $item[$key];
        }

        $i++;
    }

    return $returnArray;
}

May. 2, 2011

4 Hour Body by Tim Ferris

Slow Motion Workout

The technical term is 5/5 Cadence (5 seconds up, 5 seconds down). I tried this for the first time on Sunday, it is really intense. Momentum is not there to help you. You will feel every part of your muscle throughout the motion.

Weights

Tim Ferris showed a simple formula to figure out what should be the starting weight to workout with. Simply do regular sets. If you can do 5 rep, wait a minute & then increase the weight by 10 lb or 10%. When you fail a set, then take 70% of last 5 rep set and use that weight for slow motion workout. You can figure out weights to use by trial and error. This should prevent injuries or wasted time.

Apr. 22, 2011

MySQL Update If Exist Else Insert Procedure

Are you tired of checking data in your code before inserting? Well MySQL procedures are here to rescue. This simple procedure shows how you can do that:

CREATE PROCEDURE   ` update_insert_user ` (  IN  uid2 int  )
 BEGIN
 DECLARE  last_login2 DATETIME;
 SELECT   ` last_login ` INTO  last_login2  FROM   `  user  ` WHERE   ` uid `   =  uid2  LIMIT   1 ;
 IF  last_login2  IS NULL THEN
 INSERT INTO   `  user  `  ( ` uid ` , ` last_login ` )  values  (uid2, now());
 ELSE
 UPDATE   `  user  ` SET   ` last_login `   =  now()  WHERE   ` uid `   =  uid2  LIMIT   1 ;
 END IF ;
 END

Sep. 7, 2010

Codeigniter Creates a New Session With Each Page Load

Just spent 3 hours debugging a session bug in my webapp. CodeIginter was creating a brand new session with each page load. The issue was a misconfiguration with my config file.

Fix was simple, in /application/config/config.php, make sure correct domain is set for $config['cookie_domain'].

Aug. 7, 2010

Codeigniter Out of Memory Error

Query Saving is a feature of CI’s database class that stores the results of every query in memory until the controller is finished executing. As it turns out, in version 1.6.0, the ability to turn this off was added. The addition of the save_queries variable is listed in the Change Log, but as of the latest release of 2.0.0 last week, it still hasn’t made the documentation.

$this->db->save_queries = FALSE;

via Undocumented CodeIgniter | Green Egg Media.

Jul. 2, 2010

ssh_exchange_identification: Connection closed by remote host

I tried to login to my server tonight but kept getting following error message:

ssh_exchange_identification: Connection closed by remote host

The fix was simple, at least if you have access to server via cPanel. Just restart sshd service via cPanel/WHM.

Apr. 22, 2010

Setting Up Pentaho BI on Windows Box

I am not sure if this works anymore or not. I don’t use Pentaho now but this post seems popular, so leaving it here for now. Contact me if this is incorrect and needs to be corrected or taken down.

  1. Download Pentaho BI Pre-Configured Installation from [http://www.pentaho.org/download/ga.php]
  2. Install JDK5.
  3. Open C:\pentaho-demo\pentaho-solutions\system\publisher_config.xml. Add a password for publishing reports.
  4. Delete all folders except reporting under C:\pentaho-demo\pentaho-solutions\samples.
  5. Delete all .xaction and .properties files under reporting.
  6. Copy JDBC driver for your database under C:\pentaho-demo\jboss\server\default\lib. I used Oracle 10g driver, it is called ojdbc.jar.
  7. Edit .jsp file to change the look of default Pentaho website under C:\pentaho-demo\jboss\server\default\deploy\pentaho.war\jsp.
  8. Add path to your JDK in start-pentaho.bat located under C:\pentaho-demo. For example, set JAVA\_HOME=C:\Program Files\Java\jdk1.5.0\_11
  9. Double click on start-pentaho.bat.
  10. Open C:\pentaho-demo\jboss\server\default\deploy\pentaho.war\WEB-INF\web.xml. Search for base-url and add your server’s ip.
  11. Now you should be able to publish reports to Pentaho using Report Wizard or Report Designer.
  12. Once you publish report, you will need to go to C:\pentaho-demo\jboss\server\default\deploy and open newly created data source file named something like ???????-ds.xml.
  13. If your database is Oracle you will need to change driver class property to oracle.jdbc.driver.OracleDriver
  14. And your newly published report should be accessible via Pentaho now.

Jul. 7, 2009

Useful Sar Sysstat Examples for Unix Linux Performance Monitoring

Using sar, you can also collect all performance data on an on-going basis, store them, and do historical analysis to identify bottlenecks.

via 10 Useful Sar (Sysstat) Examples for UNIX / Linux Performance Monitoring.