HackerRank

Just earned my 6th star on the Problem Solving Badge on HackerRank using JavaScript (Node.js)!

Rank: 15.304 of a million and a half. 108 challenges solved.

I will keep my stars but I will lose that rank because I’m not doing more code challenges. I have really enjoyed this platform but I’m moving to something different where I can help people with their real code/apps. However, if you have plenty of time and want to level up your problem solving skills, and even find good jobs, you can try out, the interface is really intuitive and they have many different programming languages to choose 🙂

I thought that they would give me a t-shirt or something but not, so I designed my own one about solving daily problems!

Best way to update Node

Make things easy with package n.

n latest

Simulate different times/dates in your app

If you want to test your app with different times you don’t need to change your computer time (what can lead to unexpected consequences), instead you can simple open a terminal and launch your app with faketime.

faketime -f "@2049-01-11 17:50:00" firefox

Replace all your files indented with 4 spaces to 2 spaces

sed -e 's/^/~/' -e ': r' -e 's/^\( *\)~    /\1  ~/' -e 't r' -e 's/~//' -i *

CordovaError: Requirements check failed for JDK 1.8 or greater

If you have a Cordova Error after updating to Ubuntu 18.04, the easiest way to resolve this issue is removing openjdk-11 and reinstalling openjdk-8.

sudo apt purge openjdk-11-jdk-headless openjdk-11-jre-headless
sudo apt install openjdk-8-jdk

There is not support for the new java versions yet in Cordova/Android (at the post date)