Blog
Dev in a Jail
I work a lot on FreeBSD and have made increasing use of jails over time. The bastille and rocinante tools from Christer Edwards make this pretty easy to build and maintain. These days I do most work in jails, for long-running services like DNS and PostgreSQL, and to isolate progr…
TIL vs TIW
An oddity of producing TIL blog entries is that they rarely match the TIL claim. At least it’s that way for me, and I suspect most who try to produce something on a daily basis. It really should be called TIW for “Today I Wrote”. Even ideas that are easy to write up in short form…
Search Path and Extensions
Using search_path to implement polymorphism is one of those conveniences in PostgreSQL that can bite hard. Relying on it to select the schema for tables and functions may seem useful, but there is an entire PostgreSQL wiki page dedicated to avoiding harm from malicious use of sea…
Man Page in Plain Text
Here is a command to print a man page in plain text: man -P cat page | col -b This uses cat as the pager, and strips backspace characters with col. Why would you want to produce plain-text output from man? So you can create embeddings from your man pages, of course! I am experime…
OCR via LLM
My stepfather has a box of newspaper clippings from long ago and wants to create digital copies. I asked him to send me a scan. It was an ordinary looking image. Three pairs of text columns, two pairs across the top, one below between the other two, reading in that order. It had …