One of the things that frustrates me about Apple Macs (macOS) is clicking the green sizing button in the upper-left hand corner makes a window full screen. I almost never want to go full screen. What I typically want is to maximize the window (fill up the entire area while leaving the toolbar visible). This can be done by holding down “Option” while you click the green button (but I find I mess that up often enough that I wanted another solution).
Get GitHub PR Number from Current Branch
When scripting a task using the GitHub CLI, I found I needed the Pull Request (PR) number for my current branch (technically my current commit). I was able to use “gh pr view” to get the information.
Turning a Picture of Times Square Upside Down
I recently visited New York City and realized if you take a picture of Time Square and turn it upside down it becomes “Division Square”.
Sleep Inside JavaScript Async Function
Typically, the point of a JavaScript async function is to not block execution but occasionally I do want to introduce a delay in an async function (e.g. as part of a delay before retrying a remote call).
unregisterFormatType() for Specific Block Type in Gutenberg
The WordPress block editor (a.k.a. Gutenberg) allows formatting in RichText fields via the Formatting Toolbar API](. Each type of formatting (e.g. Bold and Italic) is a “formatType”. Here we’ll look at removing one of these formatTypes from a specific block type (e.g. removing Bold from the core paragraph block).
Back on the Theater Stage
After a brief quarter-century break from theater, I decided to give it another whirl. Specifically, I auditioned for Reading Community Player‘s comedy Play On. In what can best be described as a questionable decision, they cast me in the show and on Friday March 14, 2025, I was back on the stage.
Whirlpool Top Loader Washing Machine Broken Latch
Our Whirlpool top loading washing machine (model WTW8127LW) refused to run with the message “Close the lid” (even though the lid was closed). Upon closer inspection, we found the latch (a.k.a. the strike) had broken.
WP CLI Get Current Theme
I thought retrieving the currently active theme on a WordPress website with WP CLI would involve the “wp theme” command but I was wrong. The correct command to get the currently active theme is “wp option get current_theme”.
Never write “thank you” in slack
While I would never suggest someone skip a “thank you”, I do recommend that you not type these words in slack.
Git Alias Tab Completion Not Working
After setting up new machine I noticed my Git alias tab completion had stopped working. I created this blog post to document how I tracked down this issue and resolved it.