Alexwlchan

Freelance Developers & IT Professionals

News

Blog 3 months ago
Why can't you combine .tar.gz files with cat ?
To combine archives safely, I had to start by understanding the tar and gzip file formats. I learnt about tape drives, patent laws, and end-of-file markers.
Read more
Report
Blog 3 months ago
How Tailscale tracked down a 16-year-old SQLite bug
We had repeated database corruption until we fixed a rare SQLite corruption bug. What does it take to find such an error?
Read more
Report
Blog 4 months ago
Preventing line breaks in code elements
To avoid awkward line breaks, I'm adding CSS to inline code snippets that contain hyphens or spaces.
Read more
Report
Blog 4 months ago
Fixing a bug with byte order marks
I didn't know to check for UTF-8 byte order marks, so I made a mistake when converting text files. I was meant to use encoding="utf-8-sig".
Read more
Report
Blog 4 months ago
A Git hook to prevent committing directly to main
I'm not supposed to commit directly to main, but I often forget, so I have the computer remember for me.
Read more
Report
Blog 4 months ago
Describing all my photos
When I save a photo, I write a sentence or two of descriptive context. It helps me remember what's in a photo, why I took it, and how I felt when I did.
Read more
Report
Blog 4 months ago
I don't want to repeat repeat myself
I wrote a pair of regular expressions to find repeated words and phrases in my source code.
Read more
Report
Blog 5 months ago
Rebuilding the computer room
We traded the physical boundaries of dedicated rooms for the convenience of our always-on digital lives -- but recently I've been building those walls back up.
Read more
Report
Blog 5 months ago
What can wonky APIs tell us about the web?
An API with an explicitly unused parameter is a testament to the web's commitment to backward compatibility.
Read more
Report
Show more news