Running Express and React in the same project

May 12, 2022

All of us have, at some point, stood in front of a mirror looking into our own soul and asked the question that every JavaScript developer is destined to ask before they die - “How do you run Express and React in the same project”? This week I revisited my...

How to add your dotfiles to GitHub Codespaces

October 29, 2021

One of the first things you are gonna realize after you get started with Codespaces, is that you desperately want your own custom environment setup that you enjoy locally to somehow magically be in Codespaces as well. You can do that using a “dotfiles” repo, and in this post, we’re...

Converting Cosmos DB Timestamps to JavaScript Dates

August 05, 2021

Cosmos DB automactially adds a timestamp field called “_ts”. everytime a document is created or updated. And it looks like this… { "_ts": 1628083065 } That number is described by this blog post as an “epoch value in seconds (not milliseconds) since an item was last modified.” The number of...

Upload an Image to Azure Storage with Static Web Apps

July 31, 2021

One of the great advantages to Azure Static Web Apps should be the ability to easily integrate with other Azure services. I’ve been working on a sample blog project a la the old Ruby on Rails tutorial, and I wanted to add the ability to upload an image to a...

How to use 'Dark Mode' in VS Code

February 27, 2021

After my post on how to auto-switch your theme based on the time of day, a few readers pointed out that VS Code “does this automatically”. In other words, you don’t need the extension that I recommended to do this. I had no idea! Is this true? Kind of… While...