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

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.

Important Docker commands

# get running docker containers
docker ps 

# get all docker containers including those that have exited
docker ps -a

# stop container by its id or name
docker stop first_few_chars_of_id

# list docker images stored on the host
docker images

# remove image 
docker rmi image_name

# download a new image
docker pull image_name
docker pul image_name:specific_tag

# append a command
docker run image_name command to run with parameters
docker run ubuntu sleep 5

# execute command in a conatiner
docker exec container_id cat /etc/hosts

# interactive session inside container
docker exec -it conatiner_id /bin/bash

# run container in background/daemon mode
docker run -d webapp

# tail logs
docker logs -f conatiner_id

# attach to conatiner running in detach/daemon mode
docker attach container_id

# map ports, for example, to map port 80 on host to port 8080 in container
dokcer run -p 80:8080 webapp

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.

My other blogs were on WordPress as it is not a lot of work to host additional blogs on an existing server. But now that I don’t really need WordPress, I didn’t want the additional overhead of maintaining a server. So I migrated all blogs back to Hugo. I will slowly work on updating theme and everything.

New Focus in 2021

Over last few weeks, I have been doing a lot of leet code and learning data science. I will focus this blog on basically what I am learning. Which is basically what my bookmarks were. Now I am thinking maybe once a week, I summarize and post here what I have learned or read in that week.

I am also very impressed with Part-time Larry, and want emulate him. Trading and algorithmic tradings are some of my favorite hobbies, and I have following his tutorials as fun way to learn python and algotrading. The main topics of this blog will be:

  1. LeetCode (JavaScript and Python)
  2. Data Science
  3. Algorithmic Trading
  4. Trading

I want to make it a resource for learning especially for those who don’t like to watch videos.

This column will change your life: just sit down and think | Health & wellbeing | The Guardian




All 149 Combined Ark Invest ETF Holdings

Data updated daily

Source: All 149 Combined Ark Invest ETF Holdings

Leetcode #13: Roman to Integers

class Solution {

    private $v = ['M' => 1000, 'D' => 500, 'C' => 100, 'L' => 50, 'X' => 10, 'V' => 5, 'I' => 1];
     * @param String $s
     * @return Integer
    function romanToInt($s) {
        $n = 0;
        $last = '';
        for ($i=0;$i<strlen($s); $i++) {
            $n += $this->v[$s[$i]];
            if (($s[$i] == 'V' || $s[$i] == 'X') && $last == 'I') { 
                $n = $n - 2;
            } elseif (($s[$i] == 'L' || $s[$i] == 'C') && $last == 'X') {
                $n -= 20;
            } elseif (($s[$i] == 'D' || $s[$i] == 'M') && $last == 'C') {
                $n -= 200;
            $last = $s[$i];
        return $n;

Hawaii Remote Workers program


Part Time Larry – Learn Algo Trading with Python

Looks like a great channel to get started with algorithmic trading using Python

Source: Part Time Larry