Remapping keyboard keys to avoid Carpal Tunnel

Remapping keyboard keys to avoid Carpal Tunnel

  • November 10, 2024

I am terrible at optimizing my keyboard layout for anything. But off lately, my little finger has started hurting a little and I have been spent some time to investigate why that was happening. I have tried some ergonomic keyboards and while they do help, I am a bit too...

Fixing cookies are blocked for a website with shields down on Brave

Fixing cookies are blocked for a website with shields down on Brave

  • July 14, 2024

I recently switched completely to the Brave browser and have set ad blocking to aggressive mode because ads were still showing on some websites. This however, broke my WordPress website since it relies on cookies. I thought just taking the shields down for the website would be enough but WordPress...

Generating a QR code using Node.js

Generating a QR code using Node.js

  • June 12, 2024

I was preparing a slide deck for a hackathon and decided to put in a QR code to allow people to connect with me. Naturally, I googled for a service and used it. It turns out that the code generated used a link that had an expiration time associated with...

How to clear the global npx cache

How to clear the global npx cache

  • June 2, 2024

I have been using npx a lot lately, especially whenever I want to use a CLI tool. It is an excellent alternative to installing packages globally since it installs them in a temporary cache instead. Even though it is installed in a temporary location, I figured it is a good...

Copy/Pasting output from the terminal

Copy/Pasting output from the terminal

  • May 15, 2024

Manually copy-pasting the output of a terminal command with a mouse/trackpad feels tedious. It is more convenient to use commands to do so. And we can save the effort by using the built-in commands. Mac We can use pbcopy and pbpaste to copy and paste from the Mac terminal. We can pipe the...

How To Get The Hash of A File In Node.js

How To Get The Hash of A File In Node.js

  • April 25, 2024

While working on a project, I wanted to do an integrity check of a file that I was referencing. So, I needed to know how to get the hash of a file in Node.js. And this post is about that. We will use the fs and crypto modules that are available in...

Native popover API in HTML

Native popover API in HTML

  • April 18, 2024

Popovers have been a problem that was typically solved by using a third-party solution. But that is no longer the case. We now have a native popover API in HTML supported by all browsers (Firefox added preview browser support on 16th April 2024 in version 125). Let us take a...

Node.js 20.6 adds built-in support for .env files

Node.js 20.6 adds built-in support for .env files

  • April 10, 2024

Node.js 20.6 added built-in support for the .env file. This is an excellent addition to the platform and gives us the ability to load environment variables from .env files directly without using third-party packages. While it is great to see first-class support, some caveats remain. Let us look at how it works. Assuming that...