On the Mac OS X bash command line, you can delete all directories, with the exception of one, in the following way. If our current directory has sub-directories and we want to delete all of them except, ./really-important-do-not-delete, we can run $ shopt -s extglob $ rm -rf !(really-important-do-not-delete) $ ls really-important-do-not-delete $ original source
I like to use Reveal.js for building my slide decks. Getting an image to display full-screen (while avoiding the image being cut-off) can be difficult. The data-background-size attribute provides a solution to this problem.
In WordPress 5.0, the editing experience will be changing dramatically. I’ve written information for my clients about this change in Prepare for WordPress 5.0 (Gutenberg). With the editor moving from one general purpose editor field to a series of special purpose blocks, there will be a need for creating custom blocks. In another post, I’ve […]
Since I’m always forgetting the format for the command line “find” command, I’ve made a note of it here.
Search tips for Twitter copied from tweet thread at https://twitter.com/TexanTruth42/status/996533468707414016
When dealing with distances in space, I’ve found that I don’t have a good conceptual framework for understanding these large distances. I’ve found reframing these distances in terms of “Car Years” (and “Car Days”) to be helpful. What is a Car Year? A car year (cy) is the distance covered by traveling at 60 miles […]
Authorize.Net’s Automated Recurring Billing (ARB) allows you to run subscriptions from within Authorize.Net. Once you create a subscription, it will have a status value. The status value for a subscription can be one of the following: active suspended expired canceled terminated Unfortunately, I found these statuses and when they occur a bit confusing so I […]
I live on the East Coast of the United States, in the Eastern Time Zone. Because I often work with people in other time zones, I’ve become very conscious of the impact of timezones on scheduling. In fact, it is likely I’ve sent you this link in regards to scheduling. Previously, when sending a scheduling […]
I’ve recently moved to using the terminal program alacritty, which does not natively do paging. This is not generally a problem since I can pipe results to less. $ ls dir-w-lots-of-files | less However, I found myself working in command line MySQL and I got LOTS of results but could not page back. It turns […]