You can never go back home again

This particular feeling hits home to me quite often. We live in an ever changing world where progressing time is the only constant. We are often consumed in our fast moving life and before we know it, we have moved far ahead without appreciating the good things that we once had. I have never lived in one place for more than 5 years at a stretch except the place where I grew up, Kolkata, where I stayed for 6 years....

October 17, 2023 · 8 min · 1619 words · Harsh Ankur

How I Setup View Counter on Raspberry Pi Zero W

I like working on my own mini-projects in my free time. Some of them are libraries or extensions and others are websites. The libraries or extensions are distributed from their own package manager of browser web store which keep a track of all the downloads from across the world. It gets a little tricky for the websites if I do not want to inject a random script on my website that shows a hideously looking view counter from the 2000s....

September 9, 2023 · 7 min · 1383 words · Harsh Ankur

The Curious Case of Undeclared Global Variables in Javascript

How does your usual variable declaration look like? Like this, right? const INTEREST_RATE = 20; // global const declaration and initialization var principleAmount; // global var declaration function calculateInterest() { principleAmount = 10000; // global var value assignment var timePeriod = 1; // local function scoped var declaration and initialization return principleAmount*INTEREST_RATE*timePeriod/100; } Do you know the difference between the above and below code snippet? const INTEREST_RATE = 20; // global const declaration and initialization var principleAmount; // global var declaration function calculateInterest() { principleAmount = 10000; // global var value assignment timePeriod = 1; // <-- GLOBAL variable initialization without declaration return principleAmount*INTEREST_RATE*timePeriod/100; } Did you notice that var is missing behind timePeriod?...

August 2, 2023 · 3 min · 566 words · Harsh Ankur

Code on remote servers with Visual Studio Code via SSH

Introduction Have you ever struggled with debugging your code on remote servers? There are usually two issues associated with debugging on remote hosting. You are not well versed with terminal-based editors like Vim and Nano Coding locally, uploading to GitHub, downloading on remote server, and restarting servers with updating code is tiresome Well, I have the perfect way for you! You can connect your Visual Studio Code application to your remote server directly via SSH....

August 1, 2023 · 2 min · 264 words · Harsh Ankur

Setting Up This Blog 💻

Setting up this blog has been long in the running. I wanted a minimal design with not a lot of flashy UI stuff. Further, I did not want an overly complicated blog system. After a lot of investigation (and constantly saying NO to wordpress 😛), I landed upon Hugo to setup this blog. It was extremely easy to do it. I found the documentation of Hugo quite resourceful and the online community is always at your fingertips....

July 16, 2023 · 4 min · 664 words · Harsh Ankur