I’m doing Blogvent, a challenge to blog every day in December. Today’s prompt is: Day 1: Your blog’s architecture. Share the static site generator, hosting setup, and deployment pipeline powering your Blogvent posts. ...
Echoing a Case for TOML
Hugo uses TOML (Tom’s Obvious Minimal Language) for its configuration, a default I override immediately with JSON. Today I discovered something unique about TOML: it’s great for configuration from the terminal. ...
Fizz Buzz Without Division
The classic solution to Fizz Buzz uses Euclidean division, or the modulo operator (% in Ruby). But we can solve it without the modulo. ...
Printing Multiple Months in ncal
ncal is a MacOS utility for printing calendars. For a recent project, I wanted a calendar that covered today through the end of December 2027. Can ncal print that exact range? It can! ...
Building With a Product Markdown File
Today I discovered a powerful tool for agentic programming: a PRODUCT.md file that describes what the product is (and isn’t). ...
Monochrome Green iTerm Terminal
Today I spent a few minutes building a green monochrome terminal profile. Here’s the result. ...
Prompts for Blogvent
This year I plan to participate in Blogvent. Here’s a list of software engineering-focused Blogvent prompts to help me accomplish this. ...
Kill Tmux Session From Session Tree
A nice way to kill Tmux sessions is from the Tmux session tree. This is the list of sessions you may already use, available by hitting <leader> s. Navigate the tree with directional commands such has h or j. When you find the session you want to kill, hit x and then confirm with y. Note: when you do choose your current session, that kills your current session and you’re somewhat abruptly booted out of Tmux.
Serving With Vercel's Serve
When I’m building an index.html or anything else particularly simple, I like to spin up a web server with Vercel’s serve package. It’s this easy: npx serve . Your HTML file, scripts, and stylesheets will be available on port 3000. You can serve on another port if 3000 is taken, which is frequently true on my machine: npx serve . -l 3001 The package chooses a free port in this case, flag or not, so there’s never a conflict. ...
First Letter Capitalization with CSS
I like to decouple data from its visual presentation whenever I can. So, if I get “basketball Game”, “basketBall game”, or “BASKETBALL GAME” from an API, and I want it displayed sentence-style as “Basketball game” without any scripting, how do I do that? You might try this: h1 { text-transform: capitalize; } However, this turns “basketball game” into “Basketball Game” with a capitalized “G”. This violates Microsoft’s sentence-capitalization style, and it’s not what I want. Here’s how you transform any capitalization to sentence-style. ...