Sometimes, when I run yarn for a project that uses a private dependency (whose registry access requires an auth token), I run into the 401 error: Usually this doesn’t happen if we have a proper .npmrc file somewhere up the root of the workdir (typically in the user home directory). But sometimes I am forced […]

Read More npmrc

React SSR Deep(ish) look

Today, I looked into the React SSR sample code. (Kudos to Dan and team for the sophisticated user-land experience, btw). What stroke my curiosity was the <!DOCTYPE html> token at the start of the server response HTML payload: Why was I curious, you ask? Cuz at no point in the codebase do we explicitly write […]

Read More React SSR Deep(ish) look

e-money journal

Today I started poking around with e-Money. For those who have never heard of it: it is crypto money, and is behind several European stablecoins like eEUR, eCHF, eSEK, eNOK, eDKK. Here’s the project roadmap. Since this is a largely tech blog, I don’t intend to go into financial & other social aspects of crypto […]

Read More e-money journal

Joining the world of blockchain

So, this blog post is simply a public “diary entry” announcing to the world that I’ve officially entered the world of blockchain. Now, this is late 2021 when I’m writing these lines. Blockchain itself started as early as 2009 (at least publicly – but definitely the idea was incepted from an even earlier point in […]

Read More Joining the world of blockchain

TypeScript Node.js testing tips

Situation 1 Use mocha in server-side TypeScript projects with compilerOptions.paths in tsconfig.json ? Then we need: mocha tsconfig-paths ts-node { “ts-node”: { “files”: true } } in the tsconfig.json file (see more here) Depending on how we import our modules around in the codebase, point (4) above may not always be needed. In one of […]

Read More TypeScript Node.js testing tips