- How to Hot (or Live) Reload a NodeJS Server App
And a really quick lesson on the Node require.cache. Recently I was working on a NextJs project with a custom Node server. I was running the server with Nodemon, which is pretty normal, but every time I change a server file, the whole http server has to reload. And even worse as a Next server it has to spin up the Next app as well. This all meant that every file change was about a 5-10 second wait before I could test even the smallest change.
- Are you building features for phishers?
6 Jan 2022
People expect companies/services to tell them when untoward things could be happening to their accounts: Their account has logged in on a new device Their password has been changed An export of their data was started These examples are things you should probably be notified about. But, if you go o…
- The web0 manifesto
6 Jan 2022
The web0 manifesto is a short and sweet middle finger to web3.
- Dynamic Table of Contents Using Recursion Trees
4 Jan 2022
Table of contents are nice to have on a site full of complex information. However, writing an entire post then later formatting the HTML is time consuming. In this post, I walk through an algorithm I designed to parse your blog posts dynamically and generate a table of contents for you at runtime or buildtime.