Ramble
Kayn the cartographer had an obsession,
and the obsession was building a catalogue.
It started out as a simple line,
then grew into a full analogue.
Built, and built upon, and built again,
it quickly leapt along:
a road, a bridge, a boundary wall,
each one where it belonged.
The catalogue grew so deep in detail,
so complete, line by line,
it covered all the land it charted
and took its place in time.
Now nomads roam its paper paths,
but they never think a doubt;
the world it emerged from lies under,
and no one's found it out.
Update
Sick. Everyone. Weeks and weeks.
We now have an Occlusion Cull article.
This now allows me to move onto the next step of the article flow.
Salvage Details
I am finally reusing Salvage. Salvage is a 12" MacBook from 2017: fanless, a 4.5 watt Core i5 and 8 GB of memory. Apple stopped updating macOS a few versions ago, so it now runs NixOS with the Sway tiling window manager. I was trying to use X based distro's up until now and I have always been unhappy with the result. NixOS is awesome and Claude Code has been amazing at working through the hardware problems. It is at the point that its the nicest linux configuration I have ever used.
The whole machine is one declarative configuration in a public repo, jwmarsden/Salvage, with a README covering what it is and what is on it.
The coolest bits are the hardware fixes, since Linux on this model is not meant to be easy:
- Speakers. The Cirrus Logic codec is silent on a stock kernel. A patched driver from macbook12-audio-driver gets sound out, and an Apple EFI variable keeps the startup chime quiet. Written up in the audio fix.
- Camera. The FaceTime HD camera needs firmware cut out of Apple's Boot Camp package and a patch to the facetimehd driver, thanks to macbook10-1-facetimehd-linux. It is all in one Nix file.
- Suspend. Closing the lid used to hang the NVMe drive, and deep sleep killed the speakers. Now the drive stays out of D3cold and the machine uses s2idle, so it wakes up with sound. See the suspend fix.
- The flashing folder. For a while it booted to a flashing question-mark folder thanks to stale Apple startup-disk NVRAM. An NVRAM reset, then putting the silent boot back, sorted it. See the boot fix.
- Small comforts. The power button now asks before shutting down, as I kept hitting it by accident, and everything wears Tokyo Night.
It is also my development machine now: Node, Postgres with PostGIS and Redis in Docker, which is how the Occlusion Culling article above got written.
Media, finally
A little while ago I uplifited the image posting on cata.co. Images on this site have been a manual affair. I had an admin media library that could upload to the bucket and hold metadata, but nothing that let me actually use an image in a post without hand-writing a URL that only worked if you happened to be logged in as me.
Now I have a directive that I can use in my posts and articles,
![[image:MEDIA_ID]] {an optional caption}
which does bit more than it looks like it does:
- On upload, the image now gets resized into two derived variants — one at 1200px for the body of the post, one at 2000px for the full view — alongside the existing thumbnail. The original dimensions get recorded so the browser can reserve the right space before the image arrives.
- Two new endpoints serve those variants publicly, with a long cache header. Previously every read path through the media library required a session, which is fine for an admin grid and useless for a public article.
- Anything already in the library is handled lazily. The first time an old image is referenced, the variants are generated and cached on the way past, so I did not need a batch migration over the existing files.
- Clicking an image opens a lightbox, and every embedded image on the page joins one gallery automatically, in document order. Arrow keys and prev/next step through them.
The bucket is shared between my local environment and production, which means an image uploaded on the live site is immediately usable from my laptop. The database is not shared, so there is a small script to pull the media rows across.
Take Note
Because I am so busy in all dimensions of my life, I have kicked my note taking in Obsidian back into gear.
My vault is laid out as a mix of PARA and a Zettelkasten but they continue to evolve even tho I have been working in there for a couple of years.
My notes and this site are plain Markdown, as I said in Hello World and they move between the vault and the site without any conversion.
🐟