TIL is my collection of short, technical daily learnings. 233 and counting.
Timestamped Branch
Git prevents branches with the same name. But sometimes, I want to re-use a name! Here’s my workaround. ...
TIL is my collection of short, technical daily learnings. 233 and counting.
Git prevents branches with the same name. But sometimes, I want to re-use a name! Here’s my workaround. ...
“Keep binaries out of version control” is a truth I’ve always held, but I recently learned more about why. ...
My site’s build script has a set command; but what does it do? ...
Something I’ve taken a while to get under my fingers is Django’s URL routing conventions. Here’s a brief summary. ...
Here’s how you tail a Docker log. docker logs --follow <container_name> See docker logs --help for more.
MySQL’s display is tabular: ...
One of my projects features a Dockerized API. The dev process was: write a file, rebuild container, and restart container. There’s a better way! ...
Sometimes I’ll be looking at a Git commit online, and want to put my dev environment in a world where the commit is un-applied. This can be achieved by applying it in reverse. ...
I’ve been buying keyboards with Cherry MX switches for a decade, browns and a few blues. Today, I learned that MX stands for “Mechanical X-Point”– “X” for the x-shape of the keyboard stem you can see when you remove the keycap. https://en.wikipedia.org/wiki/Cherry_AG
As a long-time Ruby on Rails programmer, I thought that the name ActiveRecord –the model layer of Rails’ MVC– was branding. I didn’t know that it’s an architectural pattern, described by Martin Fowler in the 2003 book Patterns of Enterprise Application Architecture. An object that wraps a row in a database table or view, encapsulates the database access, and adds domain logic on that data. https://www.martinfowler.com/eaaCatalog/activeRecord.html