// posts
- 2026-10-24Three ways to get my Perdix 2 into Subsurface. Two of them are broken.
Subsurface can read a Shearwater Perdix 2 three ways. Opening a current Shearwater Cloud database imports zero dives, importing Cloud's XML export dates every dive 1 January 1970 and makes a 101 minute dive last 1,694 hours, and a Bluetooth download fails on Subsurface builds from before late June 2025. Here's why each one breaks, and the one that works.
- 2026-10-24My Perdix writes its tissue loadings into every dive log
Every four minutes, my Shearwater Perdix 2 writes the nitrogen and helium loading of all 16 Bühlmann compartments into its dive log. Shearwater Cloud doesn't read them, and neither does libdivecomputer. Starting from one snapshot, a textbook ZHL-16C model predicts the next to within a thousandth of a bar. Eight more numbers in each snapshot look like a second decompression model.
- 2026-09-26Upgrading my Tor bridge from Debian 10 to 13 after 21 months of not logging in
The Tor Project emailed to say my bridge was running an obsolete Tor and would soon be cut from the network. The VPS under it was still on Debian 10, and I had not run apt on it since November 2024. This is everything I did on 21 August 2026, from the log files: getting back in with two YubiKeys I had mislabelled, three release upgrades in 55 minutes, the Tor config mistake that took the bridge down for 19 minutes, automatic updates and reboots, and what changed in the SSH handshake.
- 2026-08-06In macOS Seatbelt, bind and listen are two different permissions
In the macOS sandbox, network-bind allows bind(), and network-inbound allows listen() and accept(). Under one condition the inbound rule also covers the bind. It took me three days to see this, because my test called both syscalls in one try block and blamed every failure on bind. The kernel had been logging the name of the refused operation the whole time.
- 2026-08-05My dive computer records 17 channels. Subsurface exports 4.
Divers blame the open dive-log formats for losing decompression data. I counted the fields. UDDF has had a field for GF99 since 2018, DAN's DL7 format has had one for the deco ceiling since 2006, and there's an unpublished version of UDDF that real software already writes.
- 2026-07-23Two wrists, one dive
My Garmin and my Shearwater both logged my 101.5 m dive, starting 19 seconds apart, on clocks that disagree about the time zone. Here's how bottomtime decides that two logs are the same dive, so you can do it yourself.
- 2026-07-22Proving byte 25
A reverse-engineered byte is only a guess until something checks it. I tested mine every way I could before trusting them: against the vendor's exports, the vendor's own arithmetic, physics, a second dive computer, and finally the vendor's source code.
- 2026-07-21The bytes my dive computer keeps to itself
Shearwater Cloud stores every dive as a compressed blob of 32-byte records, and its export files leave some of the fields out. GF99, the deco ceiling, and battery voltage never make it into the exports. So I decoded the blobs myself.
- 2026-07-16My homepage has a pulse
There's a small red heart on my homepage now, beating at my actual heart rate with an exactly 24 hour delay. How I get the data out of my Garmin, and where the white lie is.