Trying out online infographic tool Canva

Using Canva Meh… based on my personal opinion.

June 11, 2015 · 1 min · Shern Shiou Tan

Less > Tail

less -r +F logs/production.log -r to retain the colour +F to follow

April 1, 2015 · 1 min · Shern Shiou Tan

Ignore changes to file with git

Useful for files like configuration file where you do not want to commit the changes. However, there is a confusion between skip-worktree and assume-unchanged. After reading from FallenGameR post 1, skip-worktree is for developer who want to make changes to the file but do not want git to track it. As the name suggest, assume-unchanged will assume the developer will not make changes to the file so it always assume the file unchanged....

March 6, 2015 · 1 min · Shern Shiou Tan

Empty Array [Js]

How do you want to empty an array in Javascript? Previously, I used to var arr = [1, 2, 3, 4]; arr = []; However this method has a big flaw in referencing. arrB = arr; // arrB = [1, 2, 3, 4] arr = []; // arr = [], arrB = [1, 2, 3, 4] According to [1], there are a number of alternative to empty an array. I prefer:...

February 16, 2015 · 1 min · Shern Shiou Tan

My 2014

Happy New Year 2015, Shern Shiou. As I get older, time seems to fly by faster. My life now resembles a compacted story book separated into several different chapters. Once in a while, they get erratic and uncontrolled. Sometimes, there is no room for me to make preparation for the problems. I have given up. I just have to surrender and face those unplanned events bravely. Were they worth it? I do doubt myself every now and then....

February 4, 2015 · 1 min · Shern Shiou Tan