Sign up

Evan Hahn (dot com)

Not verified No WebSub updates No webmention support Not yet validated

I'm Evan Hahn, a programmer.

Managing Editor
Evan Hahn
Webmaster
Evan Hahn
Rights
Creative Commons Attribution-NonCommercial 4.0 for content, Unlicense for code.
Public lists
davewiner/hackerNewsStars
Fetched

Evan Hahn (dot com)

Prefer STRICT tables in SQLite

In short: I prefer strict tables in SQLite because they avoid some datatype problems, such as putting text in number columns. SQLite has a feature that I think is underrated: strict tables. Strict tables help enforce rigid typing, preventing mistakes like putting text into i...

Evan Hahn (dot com)

Notes from June 2026

Chicago’s weather is pretty lousy most of the year, but when it’s nice, it’s very nice. June blessed the city with dozens of idyllic days. But don’t worry—I still spent most of the time inside on the computer. Things I did I launched my first big project at Ghost: automation...

Evan Hahn (dot com)

"Sixteenth of a year", a 1.8 KiB art piece

Year, month, day, hour, minute, and second—all divided into sixteenths.

As I write this, we’re about 7 sixteenths through 2026, and it’s about 14 sixteenths through the day.

For the sixteenth issue of the Taper online magazine, I split time into sixteenths to think about its passage in a different way.

The code, which had to be under 2048 bytes, isn’t terribly complex. It does some date math and uses a Go server for minification. If you want, here’s the unminified source code.

Go check out all the other entries from this issue! My favorites include "[SIC]", “Desperate Measures from a Dying Regime”, and "(un)done".

See also: my previous Taper entry.

Evan Hahn (dot com)

Notes from May 2026

My blog turned 16 this month! I did nothing to celebrate, but made some little tools and clicked some links about tech ethics. Things from me this month I published four little tools this month: ZIP Shrinker, a web app that shrinks ZIP files with higher compression ratios ...

Evan Hahn (dot com)

Make ZIP files smaller with ZIP Shrinker

I built ZIP Shrinker, a little browser tool to shrink ZIP files. It also works with formats that are secretly ZIPs underneath, like EPUB, JAR, and many more. Try it out! How does it work? At a high level, this tool (1) re-compresses every file in the ZIP archive with higher ...

Evan Hahn (dot com)

Open Link in Unloaded Tab, a little Firefox extension

In short: I just published Open Link in Unloaded Tab, a little Firefox extension that adds “Open Link in Unloaded Tab” to the right-click context menu.

In Firefox, you can unload tabs to save system resources. But there’s no way to open a new tab in the unloaded state…until now! I built a very simple extension that adds a new option to do this. (It even has a cute icon which I paid ~$15 for.)

I’ve built one-off extensions before, but this is the first one I’ve submitted to the Firefox Add-ons directory.

Download the extension here or check out the source code.

Evan Hahn (dot com)

png-cmp: like cmp for PNGs

png-cmp is a program I built that checks if two PNGs are visually equivalent. It’s inspired by the cmp command. Here’s how you use it:

png-cmp a.png b.png

Like cmp, it silently exits if the images are identical, and gives an error if they’re different.

Unlike cmp, it checks pixel data, not binary data. PNGs can look the same but be stored differently. For example, png-cmp ignores text metadata.

I was recently doing an experiment where I wanted to check if two PNGs were visually identical, so I built a tool for it!

Grab the source code here.

Evan Hahn (dot com)

Offline command line translation with TranslateGemma + Ollama

I wrote a simple script that translates text at the command line, completely offline. Here’s an example of how it works on my computer: echo '¿Cómo estás?' | translate # => How are you? It combines a few tools: TranslateGemma, a special-purpose language model for trans...

Evan Hahn (dot com)

Notes from April 2026

After a busy March, April was a little quieter. But don’t worry, I still have a bunch of little links for you to click on. Things I published GitHub’s uptime hasn’t been great recently. Even though I dislike the Microsoft subsidiary, I wrote “In defense of GitHub’s poor up...

Evan Hahn (dot com)

In defense of GitHub's poor uptime

In short: GitHub’s downtime is bad, but uptime numbers can be misleading. It’s not as bad as it looks; more like a D than an F. “Zero nines uptime”? 99.99% uptime, or “four nines”, is a common industry standard. Four nines of uptime is equivalent to 1.008 minutes of downtime...

Evan Hahn (dot com)

Notes from March 2026

March always seems to be my life’s busiest month. Things I wrote and made “The two kinds of error”: in my mind, software errors are divided into two categories: expected and unexpected errors. I finally wrote up this idea I’ve had for a long time. “All tests pass” is a s...