Some Bits: Nelson's log

54 posts in 2025

ASUS PA32QCV firmware: use a small drive

I noted before my new ASUS PA32QCV wasn’t updating the firmware correctly, it failed to recognize the PA32QCV.bin file in the 2025/11/14 ASUS download of MCM102. Thanks to this Reddit post I was able to update the firmware! The trick is to use a small flash drive partition. My 16GB drive failed. Reddit OP reported it working with a 1GB drive. I don’t have any such small drives myself but I did get it working with a 512MB FAT32 partition on a 16GB drive.

There’s lots of ways to make a small FAT32 partition. I did it using Linux fdisk

o        # create new DOS (MBR) partition table
n        # new partition
p        # primary
1        # partition number
<enter>  # default first sector
+512M    # partition size
t        # change type
b        # W95 FAT32
w        # write and exit

After preparing the drive that way I copied the file over on my Windows box, then followed ASUS’ instructions for updating firmware. The docs are squirrely and wrong, depicting a different set of USB ports on the back of the monitor! It worked for me on the USB-A port on the back of the monitor (not the bottom).

First you get an error about a “MCU firmware file”, then you get a success for “Scaler updating firmware”. Note when the update works the monitor’s OSD is broken, so you can’t open the menu or use the soft power button. I had to flip the rocker switch in back to reboot.

Anyway, now I’ve updated the firmware. I’m still having USB port problems although at the moment the USB-A port on back is working for both that USB drive and now my Apple keyboard. No idea if it’s reliable. I still can’t get my camera to work with the USB-C ports on the back.

Update Sept 2026: I went to install the new 103 firmware and it didn’t find the firmware on the carefully prepared drive. I turned the monitor off with the rocker switch and back on, then it did find it and the update worked.

Locale fine tuning

I finally fixed an annoyance of several years where date in Linux was printing out 12 hour time like Sun Dec 21 02:53:05 PM UTC 2025. Here’s where I landed in my .bashenv

# locale configuration. US UTF-8 everywhere but 24 hour clocks.
export LANG=en_US.UTF-8
export LC_TIME=en_GB.UTF-8
export LC_NUMERIC=en_US.UTF-8
export LC_COLLATE=POSIX
export LC_CTYPE=en_US.UTF-8
# have to unset this so LC_TIME will override.
unset LC_ALL

The key thing here is LC_TIME. But also unsetting LC_ALL.

I used to just set LC_ALL to en_US.UTF-8, I started doing that before UTF-8 became common. But if you do that it overrides LC_TIME so you still get 12 hour dates. Instead you have to unset LC_ALL and then set each locale thing separately. There’s twelve of them! Most systems I log into are probably already set up as en_US.UTF_8 so this doesn’t matter, but hopefully this overrides the important stuff. I haven’t tested it well, I’m going off ChatGPT’s recommendation which is suspect as always.

LC_COLLATE=POSIX is something I’ve been doing many years, ever since Unix environments started doing more proper language-specific collation. The problem is that changed the behavior of /bin/sort which broke a lot of things, so hacking it back to a non-linguistic sorting works better for programming.

Now I also have to hope the system generated the en_GB.UTF-8 locale.

Speaker noise from Qi2 charger

Just solved a problem that was driving me crazy. My nice Presonus Eris powered speakers were making a scratchy noise, rhythmic clicking. A new problem but I’d recently changed a lot of stuff on my desktop setup so I couldn’t figure out what it was. ChatGPT led me down the garden path.

Finally figured out the culprit is my new Belkin Qi2 phone charger. The sound gets louder the closer it is to the speakers. Over about a foot away and the sound stops. Problem solved! It all makes sense: the Qi2 has strong magnets and is also putting out a lot of power for wireless charging.

There’s a lot of things that can cause this kind of analog circuit noise. The diagnostic that was most helpful was unplugging the audio inputs from the speakers: that verified the sound wasn’t related to my PC or the sound input. Beyond that it was just moving stuff around until the sound stopped.

I’ve got some ferrite chokes on order. In theory you put these around the power cables near the device and it will help soak up the interference. A little skeptical that makes sense with a USB-powered device but I’ll give it a shot.

ASUS ProArt PA32QCV impressions

After years of envying my Mac friends I finally got a high density monitor (aka “retina display”). It’s an ASUS 6K 31.5″ monitor, the PA32QCV, and is the first genuinely new display panel I’ve seen on the market in a long time. I bought it because it’s 218ppi, or about double the density of the usual Windows 100 ppi displays we’ve all been using before. It’s about the same density as Apple’s main desktop displays although not quite as nice as the laptop screens (which go up to about 254ppi) and nothing like a modern phone’s 450ppi. But it’s only $1300.

Does it work? Hell yeah! I plugged in it and it looked great. Windows 11 autodetected it and set it up and is running at 200% resolution so most ordinary stuff looks fine. Some old Windows apps still don’t do high DPI right but most anything in the past few years does, it seems fine.

I’ve been using ultrawide 34″ 3440x1440 monitors for awhile. This new monitor is 6016x3384 but at 200% that’s really 3008x1692. So a little narrower, a little taller, it’s a standard 16:9 instead of the 21:9 aspect ratio. I will miss the extra width but not a lot. I miss the curved screen a bit more, the left and right edges of the new screen are noticeably dimmer.

One small drawback is it’s limited to 60Hz: gamers will tell you 120Hz and variable refresh is important. I like the idea of those in theory but in practice I pretty much never used it.

It worked out of the box but I’ve run into some hassles. The main problem is my ancient NVidia 1080 can’t drive this thing with HDR at full resolution. Works fine at 3840x2160 but this old video card doesn’t have whatever magic video compression is required to push 10 bits per pixel over the DisplayPort. So I’m running at full resolution but 8 bit color for now. I’ve got a new video card on order, was about time to upgrade anyway.

In theory this ProArt monitor has particularly correct color. I’ve got Windows color profiles loaded but I am not equipped to really evaluate color correctness or extended gamuts. Stuff looks good, yo.

The other thing I’m about to upgrade my life with is a soundbar for the PC. Solely to reduce clutter on my desk, I’m tired of wires and speakers. There is a speaker in the PA32QCV but it sounds like shit.

Update: I finally figured out I should turn off ClearType for the high DPI screen. ClearType is the heroic subpixel rendering hack that draws colored pixels even for white/black to exploit subpixel geometry on low DPI screens. It doesn’t help nearly as much at 218 ppi as it does at 100 ppi. And it caused some color fringing, enough that I wonder if maybe the PA32QCV doesn’t use a standard RGB subpixel layout. (I have no evidence it doesn’t, but it sure doesn’t look right.) One gotcha: most of Windows redraws running apps when you turn ClearType off and on but Chrome doesn’t, you have to relaunch it.

Update 2: the USB ports don’t work right. The two on the bottom work but only as USB 2 ports (they are supposed to be 3.1). The three on the back don’t work at all. I can see there’s a USB 3 hub there but devices plugged in mostly don’t work. One worked once, briefly. This isn’t a deal-breaker for me but it is disappointing. Folks who are eager to use the Lightning daisy chaining may want to take note.

Update 3: I just got a second one of these monitors and tested it with a cable to a USB-4 port on my Beelink. It seems to all be working consistently, I can get 5 Gbps on the utility USB ports at the bottom of the monitor. I went back and tested my original monitor and it is also working consistently. What tripped me up is some of the ports on the back are special and not regular USB ports. Read the other post for details.

Passkeys work now?

I’ve been excited about the promise of passkeys for awhile now. But also bitterly disappointed in the reality when I tried to use them in March 2024. Shit just didn’t work.

I’m happy to report that here at the end of 2025 passkeys seem to mostly work now. I’ve gotten to the point where I’m glad to see them. They get saved to 1Password whether I’m on desktop or my phone and they are usable again from either device. There’s a little confusion still vis-a-vis when to use them, the Chrome popup that offers to fill them comes up a little awkwardly. But it basically all works.

I have no idea what passkey adoption is like in the wild. But I’m no longer surprised when a website offers to save one, in fact I’m pleased. I think we’ve turned a corner.

There’s still problems. Passkeys are still confusing to civilians. Exporting passkeys from one ecosystem to another is still awkward, although there is a FIDO standard in the works.

One thing I like is with passkeys we now have lots of factors for authenticating someone. A cookie. A typed email address or username. A password. A TOTP 2FA code. A passkey. Emailed or texted codes. Emailed or texted magic links. Websites are now being built to work with some flexible combination of those factors. That seems like a good change and might enable other forms of authentication in the future.

Android migration Pixel 8 → Pixel 10 Pro

I got a new Pixel 10 Pro to replace my Pixel 8. After previous bad experiences migrating from old Pixel phones, how did it go this time? About the same, the only real improvement is that my Verizon eSIM transferred automatically.

By far the biggest problem is many Android apps don’t migrate their state or settings. It doesn’t have to be this way, some apps do migrate successfully. I suspect many don’t bother.

I used a cable instead of WiFi for the transfer this time. This option isn’t highly promoted but seems to be faster. I’m not sure it changed what data was transferred over though.

Good things

  • It migrated my Verizon eSIM first thing. Previously that was something I had to do myself. Update see below about visual voicemail.
  • It migrated the credit card stored in Google Wallet. I had to enter the CVV to verify it. My Clipper card also migrated.
  • It initiated the data transfer in the background while my phone was still busy asking me to answer some setup questions.
  • The transfer mostly went seamlessly. It was a bit of a nuisance answering a bunch of questions but then I could walk away.
  • Some apps migrated seamlessly.

Bad things

  • Many apps don’t copy their settings or data over to the new phone. See below.
  • I had to reboot to finish the setup, updating OS and enabling a bunch of stuff.
  • I had to re-enable WiFi Calling.
  • It’s not copying all my data? I did the custom route and selected everything and it’s only 66 GB. My phone is nearly full at 256GB. Some big chunk of that is the OS, and 100 GB is a copy of Wikipedia. I wish there was a way to know what was missing.
  • There’s a lot of setup questions, some of which is them trying to trick me into turning on features I’d previously deliberately turned off. Unless there’s some new feature unique to the new phone it should not be asking. Particularly offensive: an attempt to opt me in to marketing spam.
  • It turned a bunch of ad tracking stuff on without asking me. I’m sure I’d turned it off in my old phone.
  • It did not restore my custom launcher (Niagara). I had to enable it.
  • The PWA Phanpy didn’t get restored as an app on my new phone. I had to reinstall it.
  • All my F-Droid open source apps didn’t come over. Not entirely a surprise, these are sideloaded as far as Android is concerned and I can see why they wouldn’t copy over. Sure is a nuisance though.
  • Stuff looks different. Different font sizes, different color temperature.
  • I gave up trying to transfer my Paris Metro tickets. They have some elaborate thing where the ticket is stored on your phone. They have a backup plan for transferring tickets but it involves creating another account. This is most definitely a case of the software being bad, not Android’s fault (alone).
  • I had to manually import my Google Maps Timeline data from an old online backup. This is possible at least but quite confusing, I think because in general the Timeline data is stored so awkwardly.

App migration

The biggest problem is that most apps don’t seem to migrate. Instead of being copied they have to be re-downloaded and re-installed. Then configured again. What this means in practice is I have to manually launch and inspect every single app before I can get rid of the old phone.

What’s particularly strange is that some apps do migrate themselves. The Paprika recipe database. Sony’s Playstation app, including my login state. It seems very hit-or-miss. Last time I looked at this I found a note from the Niagara Launcher team saying “We’re currently using Google’s Backup implementation, which is not 100% reliable…” Since then they’ve built a custom backup / restore system which mostly worked but I had to use manually. Other apps are using Google’s official implementation and it did work.

Problems in particular:

  • It didn’t immediately copy the apps over. Instead it is reinstalling them from the Internet. Perhaps Android apps can’t reliably be copied from one device to another?
  • Apps don’t come with all the permissions I enabled before. I have to re-enable permissions in each app individually, stuff like “access files” in Solid Explorer. Some permissions do carry over, maybe just not the most sensitive ones.
  • A bunch of apps didn’t restore their settings. Some have custom backup and restore options I can do manually, like Niagara or Weawow.
  • A bunch of apps didn’t realize that I had paid for the app until I launched it and waited for some handshake to happen.

Syncthing

I used to use Syncthing to synchronize some data from my phone to a Unix folder. It worked but always felt a little creaky. And between Android making it harder and harder to work with the filesystem and the Syncthing project having some drama I decided not to bring it to my new phone.

The obvious alternative is Google Drive. But a whole lot of apps don’t support storing data there, like Aegis’ backups. It’s possible to use a third party app like MetaCtrl - Autosync to sync local files to Google Drive but it comes with limitations and it annoyed me to pay $10 for what should be a system feature.

In the end I was only using Syncthing for Aegis backups and GPSLogger logs. Aegis already backs up to Google Cloud, so that’s OK. GPSLogger has explicit Google Drive support.

F-Droid

F-Droid is an alternate app store for open source apps. It also lets you run some apps that violate Google policies.

On my own phone I had four F-Droid apps: Bubble, GPSLogger, OpenTracks, and WiFi Analyzer. The only one I really care about is GPSLogger. I went ahead and re-installed F-Droid just to install GPSLogger. I may install more F-Droid apps later, some 8 of the Google Play apps I use have F-Droid versions.

Amazingly there is no free, ad-free spirit level / bubble level app on the Play store! There are several on F-Droid, including Bubble. I just reinstalled it. It warned me that the developer is not going to comply with Android’s new signed apps policy, so this app may go away next year.

Update: Visual Voicemail

My Basic Visual Voicemail wasn’t working. The Phone app just showed an error message. The online advice for this is to have Verizon reprovision visual voicemail. Easier said than done, Verizon now makes you run a gauntlet of 10+ minutes of AI bullshit. I did finally get through to a support person who reset some things and had me do Reset Mobile Network Settings and reboot. It’s working now. They also upgraded me to Premium Visual Voicemail, at least for a month. It’s nice! Text transcript. Not sure it’s worth $4/mo given no one leaves voicemail anymore.

Aegis backups

One nice thing about the Aegis authenticator app is it has no bullshit support for exporting all your tokens to an encrypted file and restoring from it. You can then back that up however you want and it’s even possible to use the token data with other software. The other 2FA apps I see all lock your data away.

Aegis also will write your token data into your Android backup. When I set up my new phone recently Aegis just worked, restoring my tokens. (It worked in 2021 and 2023, too). I think you have to enable “Android cloud backups” in Settings > Backup to allow this.

Aegis will also write a backup file anywhere you want on your Android filesystem. The problem is it’s stuck on your phone. Aegis doesn’t support storing the file in Google Drive and amazingly Android has no built-in way to say “sync this folder to Google Drive”. (You can with third party software.) I used to use Syncthing for this but am trying not to use that anymore on Android. For now I’m just writing the backup file to my phone’s Downloads folder. Not ideal, it’s stuck on the device. Although it did at least copy to my new phone on setup. Hopefully I’ll remember to copy it off once a year or something.

There’s been some updates on the Aegis docs recently about this: see this changelist that is part of this github issue.

GPS Tracking for Android (2025)

A list of some location trackers from December 2025. Mostly sourced from ChatGPT. This is for passive trackers that record where I’ve been, not focussed GPS track recorders you turn on for a hike.

For years I’ve been recording my location and experimenting with various analyses of the data. It’s interesting knowing where I’ve been! I even built a product with my friend Brad to track and visualize. But I haven’t used it in years. Truthfully if I want to actually see where I’ve been before I use Google Timeline, as diminished as it is now.

Anyway I’m still tracking. I use Mendhak’s GPSLogger to record things on the phone. It’s only available via the F-Droid because the Google Play store has gotten increasingly hostile to things that run all the time and track location. (Even though all the commerical spyware persists, starting with Google’s own). The other hassle is I never got clean data export. I have it writing files to the Android filesystem and syncing via SyncThing and it works but is awkward. GPSLogger has other export options.

GnssLogger by Google is aimed at debugging location sensors. It looks very cool but is not what I need.

GPS Time Tracker aims at helping you make a logbook, like for business travel. It’s been around for years, 100K+ download, 4.5 rating. Looks promising. There’s a paid version for 10 EUR. The docs sound like it has some significant background operation issues. And while there’s some English localization it’s not complete and it’s pretty shaky. I gave this app a quick try and decided it was not for me.

GPS Timeline :Location History has screenshots that look a little like Google Maps timeline. It only has 500 installs and no ratings. It has ads that are a little intrusive and the UI is buggy. I didn’t see any data export option. Not for me.

I think Mendhak’s GPS Logger may still be the tool for me.

Upgrading Proxmox 8.4 to 9.1

I updated my main Proxmox server today from 8.4 to 9.1. The big change is an upgrade from Debian bookworm to trixie. And of course lots of Proxmox changes on top of that.

This server is the one doing important work. And to make things spicy, it’s a little customized: I have it running an NFS server on the PVE host itself, with a special loop subnet for communication between the Proxmox guest systems (including NFS). I also have Tailscale installed, Proxmox has no first class support for that.

The upgrade went fine. A little scary, as always, but no real problems. They have good docs on it and a nice pve8to9 tool for testing as you go. It’s a little bit of a manual process, I don’t love running sed commands via copy-and-paste and being told “just look at the config file changes and decide for yourself what to keep”. But at its core it’s basically just a regular Debian update and that process is well tested. I did make a rookie mistake of upgrading via ssh without a screen session but I got away with it. (The upgrade process is smart enough not to kill your active ssh session!)

Little hiccups I encountered:

  • I had to hand-edit one apt source to get tailscale on trixie instead of bookworm.
  • I got a very confusing message from the upgrade about /etc/initramfs/post-update.d/systemd-boot being changed and which version did I want to keep. This issue is not in the Wiki (it should be) but it is discussed here. I went with “N”, keeping the old Proxmox version which just got stubbed out with This hookfile has been disabled by proxmox-boot-tool. I’m guessing its contents don’t matter as Proxmox overrides Debian’s boot setup.
  • After the install pve8to9 told me I should remove the systemd-boot package to prevent future upgrade problems. This issue is well documented on the wiki and removing it was fine in my case.

The boot hiccups are scary. Booting in Linux is confusing, Proxmox is doing something even trickier with its own bootstrap and booting from ZFS. And if this screws up your whole system is broken in a hard-to-repair way. But I think the underlying tools are pretty robust. The pve8to9 script also seems to have enough checks and safeguards in place it works as a safety net. I think.

Easy Porkbun DDNS

I’m liking Porkbun as my registar. One nice thing: they have an API and formal DDNS support. And good docs. However their recommended DNS client is some absurd persistent process which runs a web server. Give me a break! I’m using mietzen’s porkbun-ddns instead. It’s a simple Python client that you can easily run from cron. Seems to work fine. The configuration is a bit of a PITA but once it’s set up it runs with no hassle.

Looking at Health Connect data for InBody, etc

Tinkering with Android’s Health Connect data, the hub for fitness data in the Android ecosystem. I don’t want to mess with their formal APIs so I’m looking to use the nightly full database backups I have it making to Google Drive. They seem to work and contain real data. (This may be a mistake: Health Connect has some semantics implicit in their API I’m having to rediscover by looking at the raw data.)

The result is a .zip file with a single .db file in it, a sqlite3 database. That database has some 73 tables in it but many are empty. So my sexual_activity_record_table shows 0 records, rude!

I’m mostly interested in data from my InBody scale. But I may also have data written from a Amazfit writsband, a WiThings scale, Cronometer diet tracker, maybe the phone itself. Don’t know! Here’s some tables that do have interesting data in them, data that was updated in the last day or two.

Tables seems to come in a couple of types. Some are very simple tables with no app or device identifier and no timezone info. Other tables have complex data with time zone offsets and app and device identifiers. These often are recording cumulative counts for the interval or the like. My theory is the simple data is for old Google Fit APIs and the more complex data is coming from apps using Health Connect APIs. It may be something else.

One thing I’ve learned doing this is Health Connect allows multiple devices and apps to record to the same record of, say, your weight. For my purposes I want to separate those out by ID so I can know whether a weight measure came from the WiThings scale or the InBody scale. Or whatever.

InBody Data

Bottom line: the only useful things this is writing are weight and body fat. I bought the fancy H30 scale that does more precise measures of skeletal muscle mass. They are not recording this data to Health Connect, disappointing. (I do wonder if they can: Health Connect seems to have fixed categories of data.) InBody doesn’t seem to have any other data export options, either. Ugh.

  • weight_record_table (WiThings also writing data)
  • body_fat_record_table (Inbody writes twice, WiThings also writing data)
  • basal_metabolic_rate_record_table (AmazFit also writing this)

Amazfit Data

Bottom line: this is recording a lot of stuff. Steps, Oxygen, Calroies burned, Heart rate, Sleep.

Data is often logged every 10 minutes, but not always. Its data seems to be coming from app ID 1 (Google Fit) and device .

Simple data recorded every N minutes

  • heart_rate_record_series_table
  • speed_record_table
  • activity_date_table
  • sleep_stages_table (contains an interval but is simple data)

Complex data recorded every N minutes

  • steps_record_table (both phone itself and Amazfit / Zepp)
  • distance_record_table
  • oxygen_saturation_record_table
  • total_calories_burned_record_table (Amazfit and Phone)
  • resting_heart_rate_record_table
  • sleep_session_record_table (naps vs. full sleep)

Tables with lots of rows but no actual measurements, just time intervals

  • heart_rate_record_table
  • SpeedRecordTable

Cronometer data

  • nutrition_record_table (many columns!)

Phone-originated data

  • height_record_table (written once a day)
  • activity_intensity_record_table (contains no data?)

Administrative tables and misc data

  • read_access_logs_table
  • change_log_request_table
  • sqlite_sequence
  • preference_table
  • health_data_category_priority_table
  • device_info_table
  • application_info_table
  • android_metadata

From this I learned some device and app IDs.

Devices

  • 1: ? (seems to be my AmazFit)
  • 2: Withings
  • 3: ? (also my AmazFit?)
  • 4: my Pixel 8 phone

Apps

  • 1: Google Fit (coming from other systems?)
  • 2: Withings
  • 3: Google Play services (???)
  • 4: Android Shell (???)
  • 5: Zepp, which is the Amazfit fitness band
  • 6: Cronometer
  • 7: InBody
  • 8: OMRON Connect, a blood pressure monitor
  • 9: Health Sync, an app I installed

Setting the stupid clock on my Viking VSOE530

I have a fancy oven with a stupid digital clock and twice a year I have to look up how to set the stupid time. The trick is which two magic buttons you have to hold down at once. Here’s the instructions

Setting the time-of-day:

  • Push and hold the “min/sec timer” and ‘bake time” buttons simultaneously.
  • Turn the “Set” knob until correct time is displayed on the digital clock.
  • Release hold from “min/sec timed’ and “bake time” buttons.
    The analog clock’s time will automatically set to match the digital clock.

There’s also elaborate instructions for synchronizing the analog clock hands to the digital clock. But usually they will sync themselves.

Daylight savings time is fucking stupid.

Getting the smaller, cheaper Google One plans

If you want to buy Google’s smallest Google One plans, you may have to go to the settings page, cancel Google One first and then buy again. In particular they don’t show you cheaper options unless you cancel first. Don’t worry: the cancellation isn’t immediate, it comes effective when your current month is up. You have time to re-enable a new smaller plan.

I use about 40GB on Google One and have paid $2/mo for years for the 100GB plan. I upgraded a few months ago to some AI Premium plan that came with 2TB for $20/mo. I hated the AI so I switched back to what was the smallest plan on offer, the 2TB no AI plan for $10/mo. They weren’t showing me the 100GB $2/mo plan. I found the workaround to cancel in a Reddit discussion.

Google dropped the “Don’t be Evil” ethos more than a decade ago. Stuff like hiding cheaper plans is clearly on the evil side. Dumb and sleazy.

Getting data from Google Fit and Health Connect

Health Connect is Google’s data platform for fitness info: weight, steps, etc. Summary: Health Sync is a humane way to get at the data stored in it, so are Health Connect backups.

Health Connect replaces Google Health, a very old product. It also sort of envelops Google Fit. Health Connect isn’t really a consumer product. The consumer product is the Fit app where you can see some records and history. But it’s pretty minimal. Health Connect is more of a database for developers that Google maintains. Various things can store data into Google Fit, various things can take it out. In my case my scale (an InBody) stores my weight in Google Fit and my diet tracker (Cronometer) pulls that data out. Sometimes, it doesn’t seem very reliable.

Worth noting that Health Connect happens on your phone. I don’t think much if anything happens in the cloud.

There’s no simple CSV data export from Health Connect. Shocking oversight, I know. Google Takeout also has no entry for Health Connect. Here’s four alternatives to getting your data:

The Health Connect app in Android has a way to set up a nightly backup to Google Drive. The resulting Health Connect.zip is about 20MB in my case. It contains a sqlite database that is unencrypted. It’s pretty straightforward to get weight, steps, etc out of it. It works for me.

Google Takeout for Google Fit does work. This gives you data in a messy pile of small JSON files with names like raw_com.google.weight_com.inbody2014.inbody_he.json. My actual weight data is stored in there, it would not be hard to write a tool to convert the data into a clean CSV. Maybe someone has.

Health Sync is a third party app that syncs health and fitness data between apps. Sort of Zapier for health data. I connected Google Fit to Google Drive with it and it seems to be creating nicely formatted CSV files for me. It also has a Health Connect sync to Google Drive which should sync everything all at once, but may not be able to get at data history. I’ve got it turned on as well and am not clear what it is doing.

There’s a fourth alternative I haven’t explored.. Google Fit does have a cloud platform and API and it should be possible to write software to fetch data from it to a server. Maybe someone’s done this. But Google Fit appears to be on its way out, I wouldn’t invest in this. Health Connect does not have any sort of cloud API, it’s all running on Android only.

Needless to say this is all a big mess. Part of the problem is Google is trying to meet privacy requirements, health data is particularly sensitive. It’s the same with location tracking, like Google Timeline. They’re moving all this stuff to only live on the user’s Android devices so they are less responsible for it. It’s awkward.

New email setup

Email is the most important Internet service I use. I’ve been using something like email since the mid-80s on BBSes. I had my first networked email in 1988, a very rickety UUCP setup to a local BBS. 1989 at college got me real email, first uunet!ogicse!reed!minar, then minar@reed.bitnet, and finally nelson@reed.edu and proper SMTP. I moved on to santafe.edu and then media.mit.edu along with monkey.org which was my personal email home for nearly 30 years.

Names

This week I’ve moved on from monkey.org. I’m now using somebits.com as my primary email domain. I’ve owned that domain for 20 or 25 years now but have only used it for my web stuff. Now it’s my email address, hopefully for the rest of my life.

I’m not in a hurry to change my email address everywhere. I’m still not fully trusting the somebits.com setup but it seems reliable so far! But it’s an enormous task to change every single Internet account over to a new login email. I’ll be receiving mail at monkey.org and gmail.com for yeas.

SMTP services

Currently I’m hosting somebits.com email on Google Workspace via the usual MX setup. They do a good job of accepting mail for my preferred mail user agent. They also do a good job of delivering email for me. All the DKIM and other antis-apm stuff a modern domain needs works fine on Google Workspace. And the company has a good reputation, so most sites will accept their mail.

Before this switch my monkey.org address was being handled by hostedemail.com, a TUCOWS service. It worked OK for many years but not perfectly. Some of my mail got bounced for not being properly DKIM signed, and some mail never got delivered. Part of my problems were I was just having hostedemail forward to Gmail and that was not 100% reliable.

Mail User Agent

I’ve used Gmail since 2004, when it launched. Before then I used Thunderbird on a self hosted SMTP and IMAP setup. And before then various Unix local mail delivery systems with an emacs mail reader, Berkeley mail, etc. I’m still using Gmail today as my primary email archive and all my mail is sent to or through it.

But this week I switched to Shortwave as a frontend to Gmail. It uses Gmail as the archive and mail services but has its own web app. The webapp is pretty Gmail-like but nicer in lots of little ways. And it’s married to a very good LLM and RAG system so I can do natural language queries about my email like “when is the potluck today?” or “what recipes did I share with my friend Jack?” I’ve written a bit about it already and have more to say. It’s very good but not perfect.

Future changes

This is enough change for awhile! But I still have a couple of other things I’d like to do.

I have old email archives in mbox format going back to 1990 or so. I never did get around to importing them into Gmail and would like to. Now that Shortwave can do a good job talking about those mails maybe it’s finally time.

I’d still like to write my own email search system. Shortwave is a good product, I don’t need to. But I think I could learn something tinkering with my own RAG system. Also maybe do some specialist things Shortwave doesn’t do, like analytics.

Starlink latency got worse, then better

Interesting change in my Starlink performance August 30 - September 7. The jitter on latency went significantly up, as did max latency and average. I think the packet loss also went up a bit but I’m less certain.

This change was noticed by other users, particularly gamers. Some users also reported seeing higher speeds in this interval: I don’t think I did.

Picking random days...

2025-09-02: average latency 30ms, packet loss 0.09%
2025-09-11: average latency 27ms, packet loss 0.06%

But the big thing is how the blue line jumps around so much more in those days. I don’t have a numerical measure of standard deviation but you can eyeball it.

Overall I’d prefer more predictable latency and less pocket loss even if it costs a little throughput. Starlink regularly exceeds the 100 Mbps I think of as “good enough” but I sure wish the transport was a little more reliable and predictable.

Shortwave AI email

I decided to give Shortwave a try. It’s a better email client with significant AI features. I mostly want it for better LLM-powered search of my old email, something Google cannot do. So far I’m impressed. Only drawback is its expensive for a consumer product: starts at $288 a year, I’m paying for the $432 a year version. There is a free trial.

First impression is very good. It works fine as a Gmail replacement, with two-way sync to Google data that seems to work.

The onboarding is a bit slow. Recent email works immediately. It’s pulling in archives. After four hours it has indexed some mail but I can’t tell how much, there’s a progress bar showing 10%. I do have 12GB of email over 21 years, I can imagine it takes awhile. They don’t have a way to just upload a Google Takeout dump.

My first AI query went very well. I sent a bunch of emails today about hosting a party. It read them all and summarized them usefully. There was more below this post, details of RSVPs from specific people in a very nice summary. This is the kind of magic I am expecting in an LLM with my email.

Asking it for “what is my oldest email” didn’t go as well. I have email back to April 2004. It didn’t find the older ones at all at first. Finally with a lot of prompting it found April 29, 2004. Then I had to ask more and it finally, finally got to the April 2, 2004 emails it should have found in the first place. Ie they’re there, but the AI retrieval didn’t work well. I’m wondering if “oldest” is just not something they optimized for.

Update: support replied quickly with an excellent reply that boils down to “oldest doesn’t work well”. They suggest giving explicit date ranges. That matches what I’ve observed.

Various other freeform queries show some remarkable comprehension of my emails. It’s not perfect, I feel some things are occasionally missing. And the whole system is a little too business-tuned whereas I’m often using this for personal correspondence. But overall it’s useful.

It also has features to write emails for you and promises to do that in my own style. I don’t really want this, it seems rude to have a robot write my email for me. But it is interesting as an editing tool.

Party details

Just for laughs, here’s what Gmail / Gemini offered me

This is the second wrong answer I got from Gemini. The first one earlier today was about a friend who is having a birthday the same day. It has nothing to do with my party at all. I did finally got a right answer when I prompted it “the party is saturday sep 13. I sent a lot of email about it today. can you find that”. This suggests the retrieval part of the pipeline is what failed here, not the summarization.

WattBox hacking

My new TV has an expensive power strip called a WattBox. It’s kinda neat, has an Internet interface and you can individually monitor and turn outlets off and on, also can accept a UPS status as input, etc. It’s overkill for me but it’s neat.

Also it has REALLY BRIGHT LEDs above each socket to indicate if power is on. Yes, the thing that’s designed to sit next to your TV shines bright lights. I was hoping I could dim the LED level via software but I can’t. So black stickers it is. But I did learn a bit about hacking it.

The key thing is to go to the support page and grab the API docs, It has a simple telnet interface: you type ?Firmware at it and it responds ?Firmware=2.3.0.2. There’s this simple control interface for most functions.

The product does also have a basic webapp interface and a fancy custom software tool called OvrC that doesn’t seem to be free. There’s also a bunch of open source wrappers for the API, including Home Assistant support. Would be nice if you really want to monitor or control the power.

I just want to turn the LEDs down. There doesn’t seem to be that ability. There are FaceplateLedLevel commands but that seems to apply to an accessory I don’t have installed. Mine reports a level of -1 and ?FaceplatePresent=0.

Gemini AI in Gmail is terrible

I keep musing over the idea of using an LLM to work with my 20+ years of email archives, currently in Gmail. I finally realized a couple of days ago Google has this product. It’s part of Google AI Pro, also sometimes called Google AI Premium and often labelled “Google Workspace” (where the AI was first deployed). It includes a Gemini-in-Gmail system. It’s not just the product naming that’s such a mess though: the Gemini-enhanced Gmail is just terrible.

The problem seems to be the retrieval part of the RAG that I imagine is powering this product. Gemini only seems able to see about 6 months of my email archives. Even with very specific queries like what’s the oldest email if you search for “steam purchase” in 2021? it doesn’t actually find that oldest email. Gmail keyword search works fine and finds about 10 or 15 emails. But then Gemini can’t find them.

I started using Gmail April 2, 2004, the day after it launched. If I ask it for the oldest email of all it can see it gives me something from mid 2025 and provides a subject line. If I ask for the oldest email from 2003 it hallucinates an email from April 17, 2003 with that same recent subject line. It’s just not useful.

I get that RAG is hard. I’m sure the Gmail team was asked to launch an AI feature very fast. But what they’ve deployed is terrible and should not have been released. The only excuse I can think of is if somehow this “show me the oldest” query is perversely hard for their system. Maybe it’s more useful on other types of queries? Not in my experience.

I’ll tell you what’s really annoying: all the extra UI popups offering AI help where none is wanted. Including summaries of emails which are distracting and sometimes wrong. It’s like Clippy but worse. Just terrible all around.

ChatGPT is doing way better. Too bad they don’t have the email product I want.

Update: another example, Gemini can’t even keep track of the context of “3 emails I sent”.
How many emails have I sent to this person today?
You have sent 3 emails (This is correct)
Can you summarize those three emails?
It looks like there are only two emails in this thread.
(Proceeds to summarize my mail and his reply, ignoring my other two sent emails.)

DMARC reports

I set up DMARC on my new domain with p=none; rua=mailto:dmarc-reports@example.com. This means “don’t enforce any mail restrictions, but send reports to this address”. Never seen a report before! I sent a few test emails recently and got my first set of reports.

Each of three mail handlers I sent mail to emailed me back a report for 24 hours. Some had no text at all, some had a summary of the contents (like “1 success 0 failures”). Attached in the mail is an XML report in some standardized format. It seems to contain stats aggregated by source_ip with info on what domain the mail claimed to be from and whether it delivered or not. You can also infer roughly where the mails or going from who is sending you reports, although “Gmail” could be any of a zillion people. Anyway overall it looked useful and not too privacy-invading. I imagine there are tools to ingest the XML and track stats. Update: a friend recommends Postmark which I think has a free level.

Every time I try to read more about all the modern spam measures in SMTP I find a bunch of sites catering to spammers. Er, “newsletters”, which I assume 95% of the time means marketing bullshit. It’s clear why they’re the audience with money to be worth writing docs for. But I can’t help the feeling something is wrong when we’ve built so much email infrastructure that is mostly used by and circumvented by the spam industry.

I find it hilarious that spamassassin has a rule that says “any mail signed with DKIM looks a little like spam”. That’s then offset by a bunch of DKIM specific rules that rate the mail less like spam if the signature is valid, matches SPF, etc. DKIM is a net positive in spamassassin. But not entirely!

<?xml version="1.0" encoding="UTF-8" ?>
<feedback>
  <version>1.0</version>
  <report_metadata>
    <org_name>google.com</org_name>
    <email>noreply-dmarc-support@google.com</email>
    <extra_contact_info>https://support.google.com/a/answer/2466580</extra_contact_info>
    <report_id>74417372361908878</report_id>
    <date_range>
      <begin>1756425600</begin>
      <end>1756511999</end>
    </date_range>
  </report_metadata>
  <policy_published>
    <domain>example.com</domain>
    <adkim>r</adkim>
    <aspf>r</aspf>
    <p>none</p>
    <sp>none</sp>
    <pct>100</pct>
    <np>none</np>
  </policy_published>
  <record>
    <row>
      <source_ip>209.85.220.41</source_ip>
      <count>1</count>
      <policy_evaluated>
        <disposition>none</disposition>
        <dkim>pass</dkim>
        <spf>pass</spf>
      </policy_evaluated>
    </row>
    <identifiers>
      <header_from>example.com</header_from>
    </identifiers>
    <auth_results>
      <dkim>
        <domain>example.com</domain>
        <result>pass</result>
        <selector>google</selector>
      </dkim>
      <spf>
        <domain>example.com</domain>
        <result>pass</result>
      </spf>
    </auth_results>
  </record>
</feedback>

New domain Google Workspace email setup

I’m setting up my domain somebits.com for my new email address. To do this I’m using Google Workspace to handle email. This turns out to be remarkably complex: Workspace is a quite elaborated product and designed to do a whole lot more than just forward email. I’m ignoring almost all of its features and only using it to forward all email sent to me at somebits.com on to my personal Gmail account (an @gmail.com address).

Receiving somebits.com email in personal account

There’s two ways to do this. You can forward email for an individual somebits.com simply in that user’s Gmail setup. Instead I’m using Workspace tools to forward mail for the whole domain, before it gets to the user’s Gmail. I’m doing a blanket default route (ie: all addresses in somebits.com). There’s way more complex routing rules.

This is the key configuration. In Admin / Apps / Gmail there’s an option for “Default routing”. Here you can tell it that for All Recipients, Change the envelope recipient to any email address you want. I used <my.address>@gmail.com. I also clicked “Bypass spam filter for this message” and “Perform this action on non-recognized and recognized addresses”. I believe this means every single email will go to my personal gmail account.

Sending somebits.com email from personal account

I also want to be be able to send email from somebits.com from my personal @gmail.com. This is just adding another account in to Gmail. It wants to know an SMTP server: I tell it smtp.gmail.com. It also wants a username and password for logging in to the SMTP server. That’s kinda dumb: this is Gmail using Gmail! But they don’t have a special auth path. So I created an app password for it.

Email logs

Workspace has a very useful email log (“Email log search”) for figuring out problems. Note when you load it it says 0 results: you have to click the search button for it to populate.

DKIM and DMARC and SPF

I’ve set up DKIM (to sign mail), SPF (to say who can send mail for my domain), and DMARC (to say what folks should do with improperly signed mail). The Workspace docs for this are pretty good. check-auth@verifier.port25.com is also a big help in testing things. DKIM and SPF seem like basic price of entry now and the main reason I’m using Google Workspaces at all is I can have Gmail in the loop, Gmail is highly trusted globally. DMARC seems more optional, I’ve set up p=none just out of curiosity what reports I’ll get.

Account juggling

I now have two logins: my personal gmail and my new account. Every time I use any Google product I need to be careful which account I’m using. Most Google products have a switcher now. Gmail isn’t so bad. I got tripped up and accidentally turned on Workspace for my personal Gmail account because I didn’t realize which user I was clicking a button as.

Taming notification spam in Android 16

I complained on social media:

Android makes it hard to run background processes, but one hack to work around it is to display a notification. So my entire phone’s notifications screen is now filled with notifications that allow background jobs to run. GPS tracker, fitness tracker, web messages access, syncthing, doze stopper (itself to fix another Android bug). This is a very bad user experience

A friend helped me improve things. In the settings for App Notifications, for each notification channel (not the whole app), you can silence the notification and then also minimize it. This silences only this category of notification so that others still come through.

That gets it down to one line in the notification screen. It also hides the icon in the top bar. Finally, for the first time in my life I’m seeing the Screen Saver and Pixel Stand idle screen. Those weren’t being shown because there were visible notifications.

Here’s what it looks like now. Still feels spammy but much better.

New registrar, DNS transfer notes

I’m working towards establishing one of my domain names as my new primary email address. As part of that, I decided to finally move all my domain names from Hover over to a new registrar. Hover is OK but not great and hasn’t modernized their platforms in the way I’d like.

I’m testing out Porkbun as my new registar. Namecheap is also in consideration. I asked on Mastodon and these two seemed the most popular. Gandi used to be more popular but got bought and their prices were jacked way up.

Porkbun has a nice documentation page on transferring DNS without downtime. The challenge is if your domain’s whois records use your old registrar (Hover) as your DNS server. The transfer takes some unknown time to go through, several days. But the moment it goes through the old registrar will probably stop serving DNS queries, so your domain stops working until the new registrar can get in there and publish new info.

Anyway, the key is to do all the transfer on Porkbun except the authorization key part. Then set up DNS records at Porkbun. Then edit the whois records on the old registrar (Hover) to point to Porkbun’s nameservers. Then finally unlock the domain and give Porkbun the authorization key to let it go through.

I neglected to do these steps in this order and by the time I went to edit the whois at Hover I got “Registry error, domain’s nameservers not updated [Object status prohibits operation] (Code 405)”. ChatGPT claims this error is actually from Verisign, presumably a lock put in place while the transfer is underway.

Fortunately the domain I’m trying this on isn’t really used so it’s no big deal if it breaks for a bit.

I pretty much immediately got email from Hover saying that a transfer was requested and that I didn’t have to do anything to allow it, just wait five days. Notably absent is any button to press to expedite the transfer faster.

Update

The transfer went through 5 days and about 6 hours later. Hover still shows I own it in their list, but Porkbun has it in their system. The whois record is updated to Porkbun. The domain registration was extended another year.

The whois still points to Hover’s DNS servers. Happily those still work, they didn’t turn off service immediately when the domain transferred. I just updated to use Porkbun instead. That change was visible immediately on whois.com’s web interface and within a few minutes in my Linux CLI whois tool. dig +trace shows the new nameservers are being queried. I’m sure something is going to end up cached for awhile, it really would be better to change the DNS servers first. But at least it wasn’t an instant disaster because I forgot to do that before the transfer.

I was able to add a TXT record to my Porkbun DNS with a 60 second TTL. It was visible immediately from a DNS query. After I deleted it the deletion was visible immediately on a host without a cache. It did expire after a few minutes on my local Linux box where I had it cached but it may have taken longer than 60 seconds, I didn’t test fully. Anyway, I’ll say Porkbun DNS works, at least for the simple case.

Porkbun’s web whois has a form for contacting a domain owner. It actually works! Here’s the message I eventually got.

First, we are very sorry to bother you but someone has managed to jump through all of the required hoops in order to send you a message. As required by ICANN, we must allow someone to send a message to domain contacts via a web form. The person contacting you has validated their email address and passed a CAPTCHA proving that they are more than likely not a robot

Email woes

For nearly 30 years I’ve been using nelson@monkey.org as my email address. The hosting details have changed over time but for nearly twenty years I’ve been forwarding everything into Gmail. Over the years this has gotten worse and worse as email has deteriorated as a medium.

monkey.org uses OpenSRS’ HostedEmail for both sending and receiving email. It seems fine if barebones.

Sending email

The big problem I solved today was that Gmail was sending email itself and just forging the monkey.org address. This used to work seamlessly but over the years a variety of not-very-effective spam fighting technologies have made this harder and harder. The big problem is Gmail cannot sign emails for DKIM as monkey.org and DKIM is increasingly becoming required to have your mail delivered.

Today I got to learn all about SPF and DKIM and DMARC. The autoresponder at check-auth@verifier.port25.com is very helpful for diagnosing problems, there’s also a lot of web based email verifier tools online.

About a month ago Yahoo (and sbcglobal, and pacbell..) stopped accepting email from me. Often mail would just disappear but I did get one helpful bounce.

550 5.7.9 This mail has been blocked because the sender is unauthenticated. Yahoo requires all senders to authenticate with either SPF or DKIM. Authentication results: DKIM = FAILURE - SPF monkey.org with ip 209.85.167.173 = FAILURE. See https://senders.yahooinc.com/smtp-error-codes/#authentication-failures for more information.

This report is bogus: that IP address (from Google) is valid in monkey.org’s SPF records. At least it is right now. But there is no DKIM signature in my email and that’s maybe really why Yahoo bounced it. (monkey.org has a DMARC policy of p=none, which should mean sites accept email without DKIM).

The solution for all this is to configure Gmail to use monkey.org’s SMTP server to send mail so that server can DKIM sign the mail. I hate adding this extra server in the path but there’s really no way around it. It seems to work fine once I figured out the configuration.

Ugh: now a new problem, I can’t send a Google Photos URL to a hotmail friend of mine, it gets bounced as spam, I think by hotmail. This never happened before when Gmail was directly delivering the mail but now that hostedemail is involved, I get marked as spam.

Receiving mail

I’m also having trouble receiving mail.

In my old setup, monkey.org forwarded my email directly to gmail as soon as it was received, I think inside the mailer daemon itself. This forwarded started failing occasionally, silently bouncing mail back without a clear explanation. Not consistently: simple text email from the same sender would mostly get through then one out of ten would bounce. Lots of spam gets through no problem.

We changed it so monkey.org now delivers mail into the OpenSRS HostedEmail webapp. I then configured the app to forward mail to gmail. This mostly works fine, although it is yet more steps to process each message. But some messages still don’t get to gmail. Now instead of bouncing they get left in my Inbox at HostedEmail. It seems about the same pattern as the ones that bounced. My guess is Gmail doesn’t like these messages for some reason and is refusing to accept the forward. At least I can find them in this other inbox.

I may yet configure Gmail to also fetch mail out of HostedEmail via POP3. That may be a way to retrieve the messages when the forwarding fails.

Change my email address?

Part of what’s made this complicated is I don’t control monkey.org. The other folks who use monkey mostly do not use Gmail. No complaint, they have been very generous and reliable, but I’m basically relying on the help of old friends. So once again I consider whether I should change my email address, probably to the domain I use for my blog. I can set that up to be hosted by Gmail pretty easily for $7/month. I think all the configuration is pretty simple, a few DNS records to set up just once.

We are a long long way from the days when you could send email just by telnetting to port 25 and typing. And yet somehow we still don’t have end-to-end encrypted email. Probably never will.

Update: giving up

Sending mail via hostedemail is causing enough new problems that I’m giving up. I’m setting up my blog’s domain for email 100% in Google Apps. Email used to be an open medium. It has now been wrecked by spammers and captured by a few companies.

Starlink latencies 2021-2025

I’ve been pinging 8.8.8.8 via Starlink for four years now. Here’s a graph of average and minimum ping times. The average this last week has been 29ms. The minimum I’ve ever seen is 14ms. This pings through to Google DNS and is generally 1-2ms slower than the Starlink diagnostic.

What really impresses me are the systemic improvements. Things were bad in 2022 and 2023 when they added too many customers in my area (Grass Valley, CA) but then they fixed that. And average latency keeps going down. There’s also been a couple of steps down in the minimum as they’ve improved some things.

(You’ll see some anomalies in my graph of very high latencies. That’s usually when something failed and I switched to my backup ISP.)

(this is a copy of a comment on Reddit)

Sony Bravia A95L “Enhanced Mode” HDMI

I bought a fancy new OLED TV, a Sony Bravia A95L. It’s beautiful! And it should do 3840x2160 video (ie, 4K) at 60Hz with HDR10. With Variable Refresh Rate, no less! But I was having trouble with both my Playstation 5 and a gaming PC I have.

Long story short, the Sony Bravia has a configuration for each HDMI input called “Enhanced format”. You want to turn that on. By default it is off and video signals are limited to 30 FPS in HDR mode. I guess this is a compatibility / performance thing but it seems fine for me.

There’s all sorts of other things that can go wrong. Windows likes to default to 30 FPS sometimes. The cable can be the wrong kind. Etc. But this setting in the screen is a new one on me.

There’s a bunch of other settings in the screen input too. One thing I particularly like is you don’t have to enable “game mode” to disable a bunch of extra processing like motion smoothing, etc.

It really is a lovely display. HDR is a marvel.

ZFS on an external USB drive

I’m liking ZFS so much I decided to use it on my new media storage drive. A 14TB external USB drive with video and music files. The serious nerds who use ZFS will tell you that USB is unsuitable and there’s no point in using ZFS without reundancy. Phooey!

It works quite well. You plug the disk in, create a pool on it (with just the one disk), and you’re done. It automounts for you. You can create datasets to segregate data and they automount. (Be aware you can’t efficiently move files between datasets, that ends up being a byte by byte copy.) And as a bonus you get ZFS features like checksums, deduplication, snapshots, etc. It’s nice!

What happens if you unplug the disk? If you unplug while the disk is mounted (“imported”) it’s a total mess. Don’t do that. This is the problem with USB, it can be a bit flaky and act like it unplugs itself, but I think that’s mostly a problem of the bad old days. So far so good!

If the disk is unplugged and the system is rebooted, the directories won’t exist at all. This is different from ext4 or other fstab filesystems. For instance, say /jukebox is my USB disk. With ext4fs I have to do a mkdir /jukebox before mounting, so there’s a /jukebox present on the root filesystem. The mount replaces the directory. If the disk doesn’t mount you still have that /jukebox visible and other stuff might try to use it. Instead if you have a ZFS pool named “jukebox” it just automounts to /jukebox even if that name doesn’t exist at all in the root filesystem. And if it doesn’t mount, that means there’s no /jukebox at all. In my case I’m using these USB disks as bindmounts for LXC containers. Proxmox notices the directory doesn’t exist and refuses to even start the container. I like that failure mode.

Mostly the disk is plugged in though and ZFS seems to work pretty well with it.

(Elsewhere I have a deployed system with ZFS mirroring deployed on two USB disks in the same enclosure. This also seems to work reliably, after one USB hiccup scared me right at the start.)

Passkey success (Jul 2025): 1Password

I love the idea of passkeys but had a very bad time trying to use them last year. But sites keep adding support for them and friends reported they were having more luck, so I gave them another try. It worked!

Before I get into details, I want to talk about another milestone: Apple is leading the way in passkey migration, see these notes on iOS 26. So far none of the vendors had any story for “what if I want to move my passkey to a different device or program?” and Apple now has a solution.

For now I’m storing all my passkeys in 1Password. They’re my existing password agent and I like they are independent. If I were starting brand new I might use Google’s password manager instead, it’s now quite good, but it locks you into Chrome. Apple also has very good password management in their products.

1Password, Windows, and Android

I’m now able to log into GitHub and this test site with passkeys. I generated them in Chrome on Windows and stored them in 1Password and that worked. I could then use them from Chrome on Android (via 1Password). Hooray!

It’s still a little janky: the 1Password UI integration is not perfect. But it does work. A huge help is everything is now displaying which software is trying to fill in the password: 1Password’s blue keyhole icon or Google’s multicolored key.

It was not easy making this work reliably! It’s partly my fault: last year when testing I did everything I could to disable 1Password. Re-enabling it was not so simple. In Windows it’s straightforward enough, but note that Google Chrome or Windows Hello both might try to intervene. I’ve got it going to 1Password first now and I’m happy.

In Android it’s a total mess. It’s Google’s fault, the Android settings have proliferated terribly across the product. And I suspect no one at Google is mandated to make it easy for their competitors to work well.

1Password’s instructions mostly got me there but shed a tear for step 3 with four different scenarios like “If you have a Samsung device running...” Good ol’ Android :-(

Actually even following those instructions I had a lot of trouble. You have to enable it in two different Settings places.

I ended up having to remove everything and re-enable 1Password a second time for it to work. Like I said before, I did a bunch of stuff to disable 1Password last year and I suspect that made me a trickier case than most users.

So passkey usability still isn’t great. But at least I can get them working on my devices now! And now that it is working I’m anticipating a real improvement in authentication usability. I’m convinced passkeys are a good technology, I just wish the user experience were better.

Some quick LLM speed tests

This article about running LLMs on a laptop inspired me to try out LM Studio again on Windows. This is on a computer that I first built 8 years ago and updated in 2020. Ryzen 3700X CPU with 32GB RAM, and an old GeForce 1080 with 8GB of VRAM.

Bottom line: I can run Q4 models up to 8B parameters pretty fast, 20-25 tokens/s. It feels about as fast as basic ChatGPT. Big models like 27B run in one tenth the speed, 2-3 tokens/second. The big difference is the smaller models fit entirely in my 8GB VRAM. I think there could be some headroom for more than 8B models, maybe as much as 12B? But in practice the 12B models are running a lot slower, so maybe not.

You can run inference usefully entirely on a CPU, no GPU at all, as long as you aren’t in a hurry. LM Studio is smart about offload parts of a model to use as much of the GPU as it can, but it seems much faster if it can run the whole thing on the GPU. Most of these models are 4 bit quantized, so a 12B model needs roughly 6GB of RAM to load. Plus overhead which is significant, 20%? I can’t make the numbers add up in testing, I must not understand something.

Update: I can get about 20 tokens/s on fast small models, and 2 tok/s on big slow models. FWIW ChatGPT says the consumer web products are working at about 50 tok/s.

Anyway, some quick tests of recent models. The prompt was something like “write me a python program to reverse the words in a sentence. No fair using [::-1] to slice it backwards, that’s cheating Just write the reverse function and show it to me, don’t discuss your answer or show usage and tests”.

I didn’t really inspect the quality of the output, just testing what I can run. Unfortunately I can’t exactly measure how much RAM and VRAM these things are loading: LM Studio does not accurately report it. So instead I’m recording the model download size: RAM usage seems to be 10-20% more.

Fast

deepseek/deepseek-r1-0528-qwen3-8b. 20-25 tokens/sec. 5.03GB. Note deepseek has an extensive “thinking... process” first so the useful output takes longer. Most of those tokens at 20 tokens/sec are not useful to me! It spun for several minutes on my programming questions, thinking to itself. I’ve got no idea what’s going on here but it was not very useful.

google/gemma-2-9b: 20 tok/s. 5.1GB

google/gemma-3n-e4b (6.9B). 25 tok/s, 4.2GB

gemma-3-270m (0.3B) 112 tok/s but while the output is coherent it is very wrong

Slow

google/gemma-3-12b. 7.5 tok/s. 8.2GB. LM Studio says “Full GPU Offload possible” but I have my doubts based on observed behavior.

google/gemma-3-27b. 2.7 tokens/sec. 16.4GB

mistralai/mistral-small-3.2 (24B). 3.6 tokens/sec. 15.2GB

Prompts (Aug 1)

I forgot to document the prompts I’m using to testing. It’s very simple. (typos and all!)

  • who am i talking to?
  • write my a python program to reverse the words in a sentence
  • write my a python program to reverse the words in a sentence. No fair using [::-1] to slice it backwards, that’s cheating… Just write the reverse function and show it to me, don’t discuss our answer… or show usage and tests
  • summarize the literary career of Edmund White in about 500 words.

Update (Linux server, Aug 1)

I’m doing some new experiments using Ollama on my main server, a 2022 machine with an i5-12600K and 64GB of RAM. It has no GPU at all. I’m giving the LXC 40GB of RAM and 12 CPUs (the machine has 6 performance cores with 2 threads each.)

google/gemma-3n-e4b (6.9B). 14tok/s. ollama has 8GB resident.

gemma3/12b: (12B). 5.6 tok/s. Ollama is 10GB resident.

gemma3/27b: (27B). 2.7tok/s. Ollama has 19GB resident.

Summary: even without a GPU, my little server can run useful models fairly quickly. 14 tok/s on the server CPU feels reasonably fast and is a little over half the speed of the same model running on my Windows machine with an old GPU. The other big conclusion here is that tokens/second is correlated with number of weights in a model. Twice the weights, half the speed. (It’s not quite linear, but close.) I guess that’s obvious but I never understood it before.

Update (Hosting, Aug 1)

I don’t know that self-hosting an LLM makes sense. ChatGPT claims it would cost a few hundred dollars a month to rent a server with a GPU big enough to run gemma3/27b. Alternately you can pay companies to run gemma3/27b for you and access it for about $0.20 / 1M tokens. OpenAI and Claude are significantly more expensive, on the order of $10-$70 / 1M tokens. But then they are much higher quality systems with a lot more going on than just the LLM.

Outputs

I said I wasn’t evaluating output quality but here’s the Edmund White transcripts. They are all competent but the gemma3n/e4b model’s answer feels a little off, it talks about some lesser books and some of the tone feels a little off (like referring to “a close friend”). And the gemma3/12b model is just plain wrong in places, hallucinating the title “A Boy’s Own Apollo”. gemma3/27b also makes some factual mistakes: My Lives wasn’t published in 1981 but in 2005. Overall these answers seem good but have some real flaws.

gemma3n/e4b

Edmund White, born in 1940, is a towering figure in American literary
history, renowned for his unflinching explorations of gay male life,
sexuality, and the complexities of identity. His career, spanning over
four decades, has consistently pushed boundaries, blending memoir,
fiction, and literary criticism into a distinctive and highly acclaimed
body of work.

White’s early writing emerged during the burgeoning gay rights movement of
the 1970s. His first novel, Desire (1976), established his signature
style: a meticulously detailed, often self-deprecating narrative that
prioritized psychological realism over plot-driven storytelling. It
explored the anxieties and desires of a young, closeted gay man in New
York City, setting the tone for his future explorations of intimacy and
self-discovery. This period saw him become a prominent voice in the gay
literary scene, offering nuanced portrayals that challenged prevailing
stereotypes.

Throughout the 1980s and 90s, White’s work gained wider recognition. He
published several novels, including A Boy’s Own Story (1984), a
semi-autobiographical novel that delved into his childhood and
adolescence, and The Beautiful Room is Empty (1988), a poignant
exploration of grief and loss following the death of a close friend. These
works cemented his reputation as a master of psychological realism,
capable of capturing the subtle nuances of human emotion and experience.
He also began to publish more explicitly autobiographical works, blurring
the lines between fiction and memoir.

A significant turning point in White’s career came with the publication of
My Usual Profession (1997), a collection of essays that offered a candid
and often humorous account of his life as a writer. This collection
revealed a sharp wit and a willingness to expose his own vulnerabilities,
further solidifying his reputation as a literary intellectual. He
continued to publish both fiction and memoir, including The Farewell, My Love (1998), a deeply moving exploration of love and loss, and States of Desire (2000), a collection of essays that examined the complexities of
desire and identity.

In later years, White’s work has become increasingly introspective and
philosophical. He has explored themes of aging, mortality, and the legacy
of his own life. His novels, such as The Humbling (2008), a
fictionalized account of a mentally fragile painter, and Life is Elsewhere (2011), continue to grapple with the challenges of human
connection and the search for meaning. He has also written extensively
about other writers, offering insightful and often affectionate portraits
of literary giants like Marcel Proust and Henry James.

Edmund White’s literary career is characterized by his unwavering
commitment to honesty, his masterful prose, and his profound understanding
of the human condition. He has consistently challenged conventions and
pushed the boundaries of literary form, creating a body of work that is
both deeply personal and universally relevant. He remains a vital and
influential voice in American literature, celebrated for his ability to
illuminate the complexities of gay life and the enduring power of love and
loss.

gemma3/12b

Edmund White’s literary career is a fascinating and evolving chronicle of
a life lived openly and honestly, reflecting shifts in American culture
and the ongoing struggle for LGBTQ+ visibility. Spanning over four
decades, his work has traversed genres, from memoir and biography to
novels and essays, consistently marked by a keen intellect, elegant prose,
and a persistent exploration of identity, desire, and the complexities of
human connection.

White’s early work, heavily influenced by Proust and Fitzgerald,
established him as a significant voice in American literature. His first
novel, A Boy’s Own Apollo (1985), launched his career and became a
landmark in gay literature. The trilogy, comprising A Boy’s Own Apollo,
The Farewell Symphony, and The Plotting of Mrs. Lang, boldly explored
the coming-of-age and interior life of Thomas Scholes, a gay man grappling
with societal expectations, artistic ambition, and the AIDS crisis. These
novels, initially criticized for their perceived elitism, resonated deeply
with readers seeking authentic portrayals of gay experience, and
solidified White’s reputation for stylish and introspective prose.

The AIDS crisis profoundly shaped White’s subsequent work. States of the Union (1988), a semi-autobiographical novel, offered a poignant and
searing account of a young man’s experience with the disease, interwoven
with political commentary. This marked a shift towards greater social
engagement in his writing. Following the deaths of friends and loved ones,
White turned to biography, finding solace and intellectual stimulation in
exploring the lives of others. His biographies of Guillaume Apollinaire
(Guillaume Apollinaire: A Life) and Caravaggio (Caravaggio)
demonstrated his talent for bringing historical figures to life, revealing
their complexities and struggles within their respective contexts.

The turn of the millennium saw White further evolve his style and themes.
The Caliph’s House (2002), a memoir recounting his experiences with a
devastating and secretive relationship, was a raw and intensely personal
exploration of love, loss, and deception. It showcased a willingness to
confront painful truths and challenge conventional notions of memoir. This
work, and subsequent memoirs like Inside a Vicarious Mood: Re-reading a Life (2006) and How Odd to be Titular: A Collection of Photographs
(2009), revealed a sophisticated understanding of self-reflection and a
willingness to examine his own complicity in difficult situations.

In recent years, White’s work has become increasingly focused on the
complexities of relationships and the ongoing search for connection. Man in Profile: Essays (2011) and Let’s Not Talk About Cesars (2014)
offered meditations on art, literature, and the evolution of his personal
life. The Loveliest Home That Lady Ever Built (2018), a novel inspired
by the life of Charlotte Perkins Gilman, showcased his continued ability
to inhabit the perspectives of diverse characters and to grapple with
issues of gender, class, and societal expectations.

Throughout his career, Edmund White has remained a vital and influential
voice in American literature. His unflinching honesty, lyrical prose, and
ongoing exploration of identity and desire have consistently challenged
readers and broadened the landscape of literary representation. He has not
only chronicled his own journey but has also helped to illuminate the
experiences of countless others.

gemma3/27b

Edmund White is arguably one of the most important American novelists and
essayists to emerge in the late 20th and early 21st centuries, largely
credited with pioneering a new frankness in gay literature. His career is
marked by a persistent exploration of desire, memory, and the complexities
of identity, often through a distinctly autobiographical lens.

White began publishing in the 1970s, a period when openly gay fiction was
still relatively rare. His early novels, like A Boy’s Own Story (1982),
were groundbreaking for their unflinching portrayal of a young boy coming
to terms with his homosexuality. Told through the voice of a young
protagonist navigating childhood and adolescence, it broke ground by
presenting gay desire not as a pathology or tragedy, but as a natural, if
sometimes complicated, part of life. This novel established several key
themes that would recur throughout his work: the exploration of desire as
a driving force, the power of memory, and the often-painful process of
self-discovery.

Following A Boy’s Own Story, White published The Beautiful Room Is Empty (1985), a sequel that continued to chart the protagonist’s journey
into adulthood and the search for love and acceptance. This novel deepened
his exploration of the emotional and psychological landscape of gay life,
tackling themes of isolation, longing, and the challenges of finding
lasting connection.

His work took a different turn with The Farewell Tour (1993), a
fictionalized account of a closeted film star, and the subsequent novels
Bonfire (1998) and The Married Man (2000). These novels moved away
from the coming-of-age narrative and explored the complexities of love,
desire, and commitment within established relationships, often involving
characters grappling with the tension between public persona and private
truth.

Beyond fiction, White has also made significant contributions as a
memoirist and essayist. His memoir, My Lives (1981), was a critical and
commercial success, offering a candid and introspective account of his
upbringing, sexual awakening, and literary ambitions. It’s known for its
unflinching honesty and elegant prose. He’s continued to publish memoirs
and essays, reflecting on his life, work, and the evolution of gay
culture.

A key aspect of White’s career is his willingness to challenge
conventional literary boundaries. He often blends fiction and
autobiography, blurring the lines between personal experience and
imaginative creation. He’s been criticized for this perceived
self-indulgence, but his defenders argue that this blending is essential
to his artistic vision and allows him to explore universal themes of
identity, desire, and memory with exceptional depth and nuance.

Throughout his career, Edmund White has remained a vital and influential
voice in contemporary literature. His work has been praised for its
emotional honesty, stylistic elegance, and its unwavering commitment to
exploring the complexities of the human heart and the enduring search for
self-discovery. He paved the way for a more open and honest portrayal of
gay lives in literature, and his influence can be seen in the work of many
contemporary writers.

Audio tools for oral history

I’m interviewing some folks and want to capture and transcribe the audio. I did this last year successfully with the Parrot app and a hand install of Whisper. But it was pretty clunky, I don’t like Parrot. This time around I’m trying new stuff.

Summary: ASR Voice Recorder to record (on Android) and aTrain to transcribe.

Audio recording

ASR Voice Recorder. It’s a modern recorder app, the key thing is it stores files in a place I can find them with other Android apps or USB download. I think the free version is sufficient but I subscribed for $2.50 for a year. I set it up to store things in the Recordings folder. It also is uploading to Google Drive for me. I’m not confident about the microphone gain: there’s a manual setting I’ve left at 0, I’m hoping it auto-adjusts.

Simple transcribing

How about a simple text transcript from the audio file?

Running Whisper locally is an option. ASR also has integration with the OpenAI whisper service, so you can transcribe audio for $0.36 an hour. Unfortunately individual files to analyze are limited to 25 MB. Not sure if ASR is smart enough to chunk the file to work around that when transcribing: ChatGPT thinks it might be but it could be wrong.

Another option would be to break a big audio file up myself and upload it in chunks to the Whisper API. The problem here is you only want to break in silences, or even better when a speaker switches.

A third option is to install Whisper and run it locally. I’ve done this twice and it worked OK.

Diarization

A simple transcription just gives words. Much better is diarization: the tool also detects who is speaking and annotates the transcript. Whisper does not do this itself. ChatGPT had lots of ideas for me.

I first tried whisperx, which adds PyAnnote to Whisper to diarize. I couldn’t get it to run: lots of problems with drivers, even if I tried to make it CPU-only. Was dumping core :-( This may be a WSL problem, I didn’t try very hard.

I had much more luck with aTrain. I installed it via the Windows Store: the 5GB download from their own server didn’t work. Installed easily, no setup required, it’s all preloaded to use my NVidia GPU. It transcribed 2 hours of audio in maybe 20 minutes? The output is pretty good, I imagine this is just Whisper for the transcript. The diarizing looked fairly good but not perfect, lots of cases of several speakers being lumped into one. But it’s still helpful. Just will still need hand editing and review. It’s a nice product, very easy to use.

GV LAN down to 100Mbit

so much depends
upon

an ethernet
cable

with its delicate
threads

and fragile
connectors


Something went wrong with my Internet connection on July 3: my Starlink speed tests never got above 80Mbit/s (it should often be 200+). I finally pinned it down to the ethernet on the path to the Starlink being at 100Mbit. These are old fashioned Netgear dumb switches and they are very good about being gigabit and negotiating to slower speeds if necessary.

I tried replugging the cables. I tried different ports. I even changed the switch on the Starlink end. The connection would start at gigabit then give up and drop to 100Mbit. Feels like a bad cable? But then magically after power cycling the new switch (it had been on for awhile) it started working. I really don’t think it’s the switch’s failure, I’d swapped switches! Maybe it’s a flaky connector and I just got lucky? Or maybe there’s some state kept in the switching network that I reset with the power cycle? Very confused.

Anyway, need to keep an eye on it. Flaky cables are bad news. This one will be expensive to replace, it’s a long run through an attic. One possibility is mice or heat damaged the cable.

Some graphs showing the problem

I don’t really have monitoring of my LAN. But I do have monitoring through two Internet connections at the other end of the flaky link, so I can infer something from them.

The speed test showing the Starlink degradation to 100Mbit. The last > 100 Mbit is 19:00 on July 3. But speeds are suspiciously slow that morning too, that may have just been a lucky hour. The last normal behavior is July 3 6AM.

Pings to 8.8.8.8 via Starlink. The packet loss red dots don’t tell a story. But that high latency until July 1 is kinda weird, I have no explanation for it. But there’s no obvious change. I zoomed in on just July 3 but it doesn’t show any problem.

Pings to 8.8.8.8 via Smarter Broadband, my WISP. This WAN link is a lot less reliable but note this pattern of the minimum latency increasing: that seems like it could be another indicator of the LAN change.

IPerf 3 tests

I tried running some tests with iperf3 after being on gigabit for an hour or two. Testing with a server on the OpenWRT router at the other end of the cable. UDP client tests with iperf3 -c 192.168.9.1 -u -b 1G (from my WSL host.)

With a full gigabit I get 22% packet loss: that’s bad! But that’s with the client sending a gigabit to the server. If I reverse the test with -R I get 0.036% packet loss but the server is only sending 713Mbits/sec. I suspect that’s a CPU limitation of the OpenWRT device. Tests of 700Mbit/sec UDP (sent from client) show 0.5% packet loss. 400Mbits/sec shows 0% packet loss.

I also did a TCP test and get about 930Mbits/sec over the link in both directions. I take this all as evidence the gigabit link is just fine right now.

8BitDo Ultimate 2C variants and upgrades

I bought an 8BitDo Ultimate 2C Wireless Controller for Windows PC and Android from Amazon. It can connect either via Bluetooth or a proprietary 2.4GHz USB dongle. It’s mostly worked fine with the 2.4GHz on my PC. I’m not able to pair it with my onn Android TV via Bluetooth, not sure yet what’s wrong. It seems to start pairing, the controller vibrates, then the TV says it can’t pair.

There is also a 8BitDo Ultimate 2C Bluetooth Controller for Switch and Switch 2 (on Amazon). This is a similar controller but is Bluetooth only, no 2.4GHz. And it only advertises Switch compatibility, nothing else.

I’m not sure why this is so complicated. PC gaming has been plagued for decades with XInput vs DInput, a lot of controllers have a physical switch to select between the two. Switch apparently has its own Bluetooth HID profile that’s different again. 8BitDo is doing customers no favors by making two incompatible products with very similar names.

To make matters more confusing, 8BitDo has a firmware updater. But while version 2.50 supports a bunch of controller types it does not support the Windows Ultimate 2C. It does support “Ultimate 2C Bluetooth” though, by which they apparently mean the Switch version. When I run the software and plug my Windows controller in via USB it starts vibrating in a little pattern but there are no update options that work.

The trick is to use a different program, the 8BitDo Ultimate Software V2. It’s unsigned so Windows gives a scary warning but it runs and updates my controller fine. This software has a bunch of advanced features like macros and button remapping but I’m not sure any work on my 2C.

8BitDo make excellent hardware, their controllers are great and cheap. But the software situation is not good. I also am frustrated by all these controller modes and incompatibilities but that may not be entirely 8BitDo’s fault.

BTW, the firmware upgrade didn’t fix my pairing problem with the onn streaming device. The same controller pairs fine with my Pixel phone, so I’m guessing it’s a problem with the onn. The onn does work with the controller with the 2.4GHz USB dongle. Steam Link works great on it!

Android phone without a slippery back

My Pixel 8 is an OK phone. Except it’s impossible to hold it in your hand. So I have to put a case on it, which I hate. Glass backs are a scourge. But companies are starting to be brave and offering alternatives again. I had a productive ChatGPT search about options.

My conclusion is the Pixel 9a may be the best choice. It has a matte plastic back. This redesign mostly gets dinged in reviews, it’s not very sexy. But if I can hold it in my hand that’s a big bonus. My Pixel 8 is not at all sexy in a big chunky case.

I’m more interested in Motorola’s new phones. They have a variety of new phones with pleather backs: the Moto G56, the Moto G86, the Edge 60 Pro. But they basically aren’t available in the US. I think because they lack CDMA or otherwise aren’t certified with US carriers. I’m on Verizon, which historically has been a PITA. They do have a couple of phones for the US market. The Moto G56 is called “Moto G” here but doesn’t have an OLED screen. There is an Edge 60. And there’s an Edge 60 Pro for sale in the US that warns us it’s not guaranteed to work.

Meanwhile I ordered some cheap grip tape. No one makes this stuff in interesting colors!

Yuba River average temperature and flow

I love swimming in the Yuba near Grass Valley. Local wisdom is it’s not safe to swim until July 4, that’s when it’s warm and slow enough to be safe. PG&E controls the flow with a dam but seems to follow a sort of schedule. My notes are that 200 CFS is “calm” flow. I was just there at 450 CFS and it was still pretty sporty. I could have swum across but it wasn’t yet a good idea.

There’s flow data at Dreamflows and USGS. Also historical data at USGS. So I fired up Claude Code and 30 minutes and $2 later I have a serviceable graph. It’s online here.

End result: yeah, July 4 is about right.

Update

For $0.50 I added a histogram of the flow on July 4. I also added a deploy script for 10 cents. Then I spent another 20 cents making sure it was treating no data differently from zero. There’s 61 years with flow under two hundred: 20 years with flow over that.

Vibe coding notes

Another project I could have done myself but didn’t want to spend the time: Claude makes it kind of fun. This went OK at first but got in the weeds.

Claude’s first instinct was to use Python and matplotlib. Yuck. I asked it to do Javascript and it chose Chart.js. Which was fine for small data but choking on more points, so it suggested switching to uPlot. That seems to get the job done. d3.js would be nice too but is overkill for a static one-off.

I am very impressed with how Claude understands high level directives like “draw a bunch of individual thin lines for each year to show distribution”. OTOH I don’t quite trust it: I’m afraid to publish this more widely for fear something about its calculations is incorrect. I tried reviewing the code but just can’t bring myself to care enough to bother. It looks right!

Claude is great when starting de novo but gets slower and buggier with iteration. For instance it mostly converted the code from Chart.js to uPlot just fine. But one thing I wanted was to clamp the Y axis at 2000 CFS. It insisted on keeping the Chart.JS code to do that and wouldn’t update to the uPlot API until I read the docs and told it myself what it needed to do. It also made a bunch of other changes that just didn’t work. I never could get it to make the graph fill the whole width. I know some folks doing agentic coding are also building test suites and telling the agent to not commit until the tests pass, that would have been really helpful here.

I sure wish I had more confidence that this visualization is actually correct and doesn’t do something stupid like averaging missing data in as if they were zeros. That’d be the same problem with a person doing the coding but I’d trust them more.

Claude Code: no login shell for agent

Claude Code regularly runs “agents”, a fancy word for shell scripts. Unfortunately for some dumb reason they chose to run the agent in a bash login shell, which means it runs the script for all sorts of stuff you only want in an interactive shell. To stop it, I put this guard in my .bash_login.

if [[ -n “$CLAUDECODE” ]]; then
echo “Detected Claude Code. Not running login script.”
return
fi

The real problem was I had put cd $HOME in my .bash_login. Not sure why, that probably solved a problem I had 25 years ago. This was confusing the agent something awful, particularly when it was moving files around or dealing with git. It kept doing things in my home directory, potentially catastrophic!

Claude Code round 2

A few months ago I used Claude Code to code a Mastodon thread unroller. I was so happy with the result that I dusted that project off today to use it for something new. The first version had a bunch of stuff hard-coded so I had Claude refactor it to make it a click command line tool with various parameters.

It worked great. Sample output here. It cost me $4 and took about 90 minutes total, 30 minutes of Claude Code working away.

Honestly I’m kind of shook by this. Claude Code is just unreasonably good at this kind of programming. Like I said in my first post, this is a highly constrained problem and with relatively minor requirements. I can easily verify the output and that’s all I care about. Still, it’s just so good!

Along the way it solved some tricky problems with very little input from me.

  • The old download method didn’t work anymore because the posts were so old, so it found and used a different API.
  • It wrote a bunch of docs explaining how everything works. The command line tools have nice help too.
  • Filtered out replies I wrote to other people, to focus just on my main thread.

That last one is particularly astonishing because the task is so complex and I gave it such vague directions. Here’s its explanation of what it did.

> the new method for downloading is catching replies to other people. ie, "@wolfger Prost, lah! Legit beer,  fresh." It's OK (but unnecessary) to download them but I dont' want them in the output.

● You're right! The context API is grabbing the entire conversation thread, including replies from other people. The current code filters by user_id but apparently some replies to others are still getting through.

  Let me fix this by adding better filtering to only include posts that are either:
  1. The original post, OR
  2. Direct replies to your own posts (not replies to other people)

Perfect! I've added much better filtering logic. Now the script uses a two-pass approach:

  ✅ New Filtering Logic:

  Pass 1: Collect all post IDs by the user

  Pass 2: Only include posts that are:

  1. The original post, OR
  2. Have no reply target (standalone posts), OR
  3. Reply to another post by the same user

  This will exclude posts like "@wolfger Prost, lah! Legit beer, fresh." because they reply to someone else's
  post, not to your own posts.

  📝 What it does:

  - Downloads everything (for completeness)
  - Filters out replies to others during processing
  - Shows debug messages when skipping posts: "Skipping post 123 - reply to someone else (456)"
  - Only includes your actual thread in the final gallery

  Now when you run the download, you should see messages like:
  Skipping post 114xyz - reply to someone else (114abc)
  Found 8 posts by the same user in the thread

  This gives you a clean thread of just your own connected posts while still preserving all the data for
  reference.

Wine cabinet power + temperature

We bought a wine cabinet with a refrigeration unit to Grass Valley. It’s in our garage. Outside temps fluctuate 50-95, garage fluctuates about 60-80, and the wine cabinet keeps 55-59, well mostly.

Downside is it’s taking about 2kWh / day to keep it there, double that on hot days. Power costs about $0.50/kWh (I think?) so it’s costing $30-$60 to keep the wine cool in summer months.

The unit seems to come on for about 15 minutes, using 280W, then off for about 15 minutes. But total time on varies with temperature. When it’s not hot it stays 56-58, but on a hot day it’s varying 55-59.

Update: 118 kWh for the month of June. That’s roughly $50. Varies about 2x depending on how hot the day is. I’m considering insulating the garage doors.

Here’s a bunch of graphs for May:

Outdoor temperature (one month)

Cabinet Temperature (one hot week)

Power: month

Power (hot day)

Power (a hot afternoon hour)

Getting ChatGPT to remember you (May 2025)

I recently started paying for ChatGPT. Almost entirely for the new memory features where it not only remembers explicitly saved memories (an older feature) but now also incorporates your general chat history too. It’s confusing but I think these features are only available to paying members, at least some of them. Read Simon’s post for a criticism of the chat history feature.

There’s at least three kinds of persistence available, all under Settings / Personalization.

“Custom instructions” lets you enter basic text, both about yourself and as ways to pre-load the context window with strings. Some folks use these to introduce custom prompts. The other two toggles are to turn the memory features off or on. You can also click “manage memories” to get a bunch of text nuggets that you can delete if you want.

In general ChatGPT seems to only put something in “saved memories” if you explicitly tell it to. I’m not 100% sure of this, but if you tell it to remember something it seems to put it on the list. (Update: a friend has evidence it will decide to remember things on its own, without being told to. Also I’ve now seen it decide to remember something itself, telling me “Updated saved memory”)

Even after I started paying for ChatGPT the fancier memory wasn’t working. It took a few days, then suddenly it started working. I’m guessing they roll out this feature slowly, or maybe only enable it on new paying customers slowly.

I also primed its memory by exporting all previous conversations into a JSON file, then zipping it and uploading it and telling ChatGPT “I would like you review this log of all our past charts. think really hard about it, go deep and find everything out about me you can from it.” You do have to coax it to work harder on it, the default is a su rface treatment.

How do you know if it’s retrieving memory? The recommended way is to ask a new chat session “what do you know about me?” If memory is working you get a detailed list of things like “Core Identity” and “Cognitive Style”, like 30 line items (plus more not displayed). Before it was working I got a very quick reply with just 3 bullet items, things I’d explicitly told it in the settings.

As for what ChatGPT has learned about me, that seems quite personal so I’m not posting it here. As personal as my search history. It all seems roughly right. I have no idea how well this helps tune ChatGPT’s future interactions with me to be more useful, but I’m hopeful.

I did like when it started flirting with me:

You think systematically but poetically — equally at ease with ffmpeg flags and Whitman’s metaphors

It’s not wrong, it’s just such a funny way to say it.

Update: it also tells me that I “Blend irony and sincerity in political and aesthetic judgment” which is basically the central conflict of my life.

NPR Morning Edition podcast

If you want to listen to NPR Morning Edition as a podcast, try this URL.

Apologies to whoever’s API key that is. But it’s been circulating for six years now so I don’t feel bad using it.

NPR has a really awkward stance with the Internet. It’s supposed to be for public benefit but then their audio programs are their essential intellectual property, so they keep them locked up. Their NPR One app is just awful. For a long time I was using some third party hack feed, but it recently shut down.

I’m partly responsible for introducing the use of “API keys” in web services. We used one for the Google SOAP search service, a very early public web service. And we put API keys in the request. But at least in the SOAP XML body, not the URL. Putting them in the URL is just asking for them to be copied around. API keys are a bad idea for other reasons but they are sort of useful for a low security tracking token.

Packet loss with new router

I think these notes are idiosyncratic to me and my local WISP, not a commentary on OpenWRT. But recording some notes for my reference.

I switched to an OpenWRT One for my backup Internet connection, a fixed wireless link from Smarter Broadband. Soon after switching link performance got a lot worse for about 9 days, going from 0.2% packet loss to 2.8% packet loss (pings to 8.8.8.8). Much higher latency too, particularly in the evenings. It’s better again but I’m still at 0.5% packet loss.

At first I suspected the new router was the problem, given the co-incidence. But the pattern looks exactly like congestion in my WISP. Also it’s gotten significantly better on its own. Maybe the router switch precipitated the problem though. I had to reboot my end of the wireless link. And IIRC their fixed wireless isn’t adaptive, it picks a channel and sticks with it when it turns on. Maybe I got unlucky.

Update (May 14): I’m blaming my WISP, not the router. It’s back to 0.257% packet loss.

PiKVM for a remote console

Following up on my efforts for a remote PC console, I gave PiKVM a try. Very impressive! A great first experience: once you find your way to the right docs it is great. This remote console option is a winner and I’m going to stick with it.

Skip down to the section about software if you’re curious what it’s like to use the thing. I spent a lot of time hacking up some hardware to run it so first notes on that.

Hardware

PiKVM runs an Raspberry Pis. The simple thing is to buy an assembled device from them. You get a CM4, video capture device, an ATX power controller, a power supply, and other stuff all in a nice case. I think the V4 Mini at about $300 is what I’d need. It’s not a bad price for the convenience. OTOH at that price you have a choice of other IP KVMs. I’m not sure if PiKVM is the best choice.

Update: I bought the PiKVM Mini v4. It’s a very nicely prepared product, well built and nicely packaged with plenty of cables. The Mini isn’t just cheaper than the Plus, it’s smaller too. Not a huge thing but I appreciated it. I should have just bought this to start, could have saved myself a fair amount of time.

I’m stubborn and wanted to build my own. They have a very nice guide on doing that, including what hardware to buy. I took their recommendations. $50-$100 depending on what parts you may have lying around already.

  • Raspberry Pi Zero 2 W. A tiny $15 computer, these things are very versatile. I had one lying around.
  • A HDMI-CSI bridge. A $30 HDMI capture device. It takes HDMI as the input. The output is an RPi Camera device (Camera Serial Interface).
  • A CSI ribbon cable. $9 for a set of cables, you only need one. This adapts the wider CSI output to a narrower CSI input on the RPi Zero.
  • A quality USB power supply for the RPi.
  • An ordinary Micro USB to USB A cable (maybe with some tape, see below)
  • Optional: an ATX power interface. This seemed complicated to build, I haven’t looked at it.

The drawback with the RPi Zero is both USB ports are busy doing things and it’s not really practical to have an ethernet adapter. I’m OK just using on-board WiFi but obviously that’s not ideal.

Also this camera interface is pretty hacky. They say it’s capable of 1080p@50 maximum, the product page says 1080p@30. Either way it can’t do the bog-standard 1080p@60 that everything expects these days and that could cause a problem. My Linux PC is happily putting out 720p for it and that works fine.

Physical challenges

The ribbon cable is very fiddly to install. this is not a normal consumer connector. I found this video helpful. Basically you have to unsnap something in the connector, stick in the cable, then snap it in again.

It’d be nice to have a case. The parts are all exposed circuit boards and a delicate ribbon cable. And the HDMI and USB cables are heavier than the computer, which ends up putting a lot of strain on that delicate ribbon cable connector.

No one seems to have a case that fits both boards at once but this 3d printed kludge looks plausible. There’s lots of pre-fab cases for the RPi Zero by itself, that might help.

A note on power

The RPI Zero 2 W has pretty squirrely power. The board has one USB 2.0 port just for power and one just for data. But the power lines of both USB ports are hardwired together. This means if you provide power to the power port you may be dumping that power down the data port into the PC you’re plugged in to. Not good! Alternately, if you only plug the data port into the PC then the RPi will more or less manage to power itself off the data port, which isn’t reliable.

For the problem of backfeeding power to the PC, the PiKVM docs suggest taping off the power leads on your USB cable plugged in to your PC. That’s probably a good idea but I haven’t bothered and so far haven’t fried anything. Here’s hoping my PC’s motherboard is robust. OTOH I ordered this USB power blocker: $6.50 for peace of mind.

What about powering the PiKVM just off the data port connected to the PC? It sorta works! In a previous experiment I measured the RPi Zero 2 W using 165 mA when idle at 570 mA at max load. The USB spec promises 500 mA of power from the USB port so it’s almost enough, and in practice probably is enough if you’re not at max load. PiKVM does work and is usable with just data port power. But then it failed on me once and I have no idea why, was it a brownout? Also it makes the PiKVM dependent on the PC’s power and USB ports which is probably not a great thing in a debugging tool. Independent power seems like a good idea.

One last power note: RPis have a WiFi power saving mode that can cause problems for long-running servers like PiKVM. It’s easy to turn off. PiKVM doesn’t by default. (They wisely don’t recommend using WiFi at all.)

Software: Installation and use

The docs are pretty great and easy to follow. Basically you flash an SD card with their OS. Then edit a text file in a FAT32 partition for initial setup options (like wifi password). Then boot and it’s all pretty automatic. From there it’s all a pretty standard Linux experience. Arch, btw.

But I’ll say this, the PiKVM web interface is great. It was very easy to get it up and going and see my PC’s screen and type at the PC. Super easy to do the basic thing. And the screen sharing UI has nice options like shortcuts for sending weird keystrokes (Ctrl-Alt-Del or Alt-PrScr-T).

One weird thing: the PiKVM filesystem is mounted readonly by default. You have to explicitly issue an rw command to switch to read-write, then ro to go back. In practice you almost never need to do this manually, maybe when you’re changing the root password or something.

I’ve noticed the video feed flakes out when the PiKVM system is busy installing upgrades or fetching system logs. (Even when it has a separate power supply). It may be the RPi Zero CPU is just not powerful enough to keep up. Shouldn’t matter in normal use.

Advanced capabilities

There’s lots of cool hacker extras beyond the basic IP KVM. Some things it can do:

  • Tailscale
  • Cellular backup network connection
  • Fancy HDMI and video options. They seem to care about providing a good video feed, not just an adequate one.
  • OCR for the video feed so you can get text of what’s on the screen.
  • Audio and microphone
  • ATX power control so you can reset or power off/on your PC
  • Serial and Ethernet over the USB link to the PC
  • GPIO access on the RPi for special-purpose hacking
  • VNC server
  • An HTTP API
  • Extra hardware for a KVM switch for four devices

It’s a remarkably impressive product.

I noticed my Linux box sees a bunch of USB devices when I plug in the PiKVM: keyboard, mouse, CDROM. And I guess ethernet and serial are also possible if I enabled them.

e1000e: Detected Hardware Unit Hang

The Linux driver e1000e for Intel ethernet adapters has had a persistent problem for years. It can get in a state where it hangs and reports “Detected Hardware Unit Hang”. Sometimes it recovers on its own but recently on my system it started breaking my networking until reset.

Update Nov 2026: Proxmox kernel 7.0.14-28 seems to include a patch very specific to this bug.

The usual advice for fixing it is to disable hardware acceleration features on the adapter. This has a performance impact but is probably small and avoids the problems with the driver and/or hardware. A simple one-off fix of ethtool -K eno1 tso off gso off was enough to help my system, that turns off acceleration for segmentation of packets. But doing that once won’t persist for reboot, for that I like this systemd unit file. Note that script turns off a whole lot of other acceleration features too which may or may not be a good idea. See also discussion here and here and a whole lot of other places.

It’s not clear what the real underlying bug is. Some folks blame bad hardware design. But Linux drivers have lots of code for working around hardware problems, not sure why it’s such a problem in e1000e. The fact that segmentation may be a particular problem doesn’t surprise me. Segmentation is stateful: either the kernel or the hardware has to store some data while it breaks it up into packets and that probably involves locking.

The other confusion is why this bug started happening to me recently. The problem started when I upgraded to Proxmox 8.4.1 with their kernel 6.8.12-9. This bug discussion has a comment noting that one patch to the kernel didn’t get included in that build, maybe that was the problem. Proxmox has since released a 6.8.12-10 which says cherry-pick "bnxt_en: Fix GSO type for HW GRO packets on 5750X chips". But that patch is for “5750X chips”, which I think is a Broadcom part. So maybe not relevant to e1000e at all?

My guess is Proxmox had patched this problem in some kernels but it’s come back. Would love to understand why the upstream Linux release doesn’t have a fix for this once and for all. Even if it’s to default a bunch of hardware acceleration features to off in the driver.

OpenWrt One router

I just setup my OpenWrt One router. This is hardware purpose-built and labelled for OpenWrt by Banana Pi, a Chinese embedded system manufacturer. I bought mine back last November when they first were available on AliExpress. $97 delivered at the time, now costs more. Possibly much more thanks to the new Republican taxes.

I bought this to replace the Raspberry Pi 4 I’ve been using as a backup router. That’s worked OK but isn’t ideally suited: CPU is overpowered and the networking is underpowered (USB). The main improvement with this hardware should be proper WiFi with nice antennas although at the moment I’m not using the wireless. It’s a little weird that it has a 1GB ethernet port for LAN but 2.5GB for the WAN. Also it has an M.2 port hidden in it that’s not advertised.

It worked fine right out of the box. I went ahead and upgraded to 24.10.1, the latest main release. That mostly worked fine once I worked around some OpenWrt confusion. I initially installed a “snapshot release” but those don’t come with LuCI, the web interface. But I could still ssh so I reinstalled the official release via sysupgrade on the command line. One nice thing about this hardware is it has two full firmware sets. You normally use and boot the NAND firmware but there is also a second NOR firmware that’s a sort of failsafe you can manually select to boot from. (You can also flash the NOR firmware which means you might still be able to brick the device if you try hard enough.)

OpenWrt 24.10 was a major release, the first in over a year. A huge change is groundwork to replace their custom-built opkg package manager with Alpine’s apk. Which should be a big improvement in future development and maintenance. (It’s not live in 24.10 release, but is in the subsequent snapshots). Also lots of big changes like Linux 5.15 to 6.6. They support an impressive 2000 devices, it’s quite an ambitious open source product.

Not much more to say about OpenWrt or the One hardware, it seems to be doing the job. I’t’s’ve had my gripes with OpenWrt but it’s turned into quite a robust hacker-friendly router firmware. If I weren’t bought into the Ubiquiti ecosystem I’d use it for more than a backup.

BTW because of all the changes all the OpenWrt advice and docs are a little out of date. For instance a bunch of previous upgrade tools like sysupgrade and auc have been replaced by owut.

Final note, some packages I added to stock OpenWrt: openssh-sftp-server less bash curl nano joe. Also installed luci-app-statistics and did a one time “save” on the setup to get it started.

Linux serial console in 2025

I wanted remote access to my Linux PC and decided to try a very old fashioned idea, a serial console. Normally a Linux PC’s console is a keyboard and video device. But it can also just be a serial device. Either an old school DB9 connector on an ancient PC or some modern thing plugged in with a serial connection. Then you need a second device to act as a serial terminal.

In theory the serial device is simpler and is more likely to work even if the network isn’t working. In particular the Linux PC’s kernel is managing the serial console and so as long as Linux is operating, there’s a good chance that serial connection will be.

I tried using a Raspberry Pi Zero 2 W for the terminal, plugged in to my Linux PC via a USB cable.

I got this sort of working and then quit. I realized there’s few cases where a serial connection will really help. Ie: the Linux machine is up but its networking is down, however the whole LAN is still up. It happened to me this week! But I’m going to look for a full IP KVM solution so I can do things even if Linux is busted.

Update: this set of docs may be useful.

Serial connection: USB Gadget / On-the-Go

The first complication: who has a real serial port anymore? I haven’t seen a DB9 in years. It’s all USB ports. And you can’t just plug a USB cable in between two computers because they are both in host mode, not device mode.

There’s hardware hacks for true serial. Plenty of USB-to-Serial adapters out there that give you a DB9 (or an RJ45 with serial). Also RPi hardware has UARTs that you can use with the GPIO pins, hack up your own serial port. All that conversion seemed du mb to me, particularly since I’d need two adapters on either end.

The hack I’m using is OTG / Gadget mode on my RPi Zero 2 W. The micro USB port is an OTG port, you can plug that in directly with a cable to a PC’s USB A socket. The PC is a USB host, the OTG port is a USB device. This actually works! No special cable or adapter needed, just an ordinary USB cable between the two computers. (Mine was male Micro-B to male A.) However, it still takes a lot of doing to get it going.

Getting serial working manually

Here’s how I got a serial connection working manually in Linux.

On the RPi Zero 2 W: steps to enable OTG mode and use the USB as a serial port

  • enable dtoverlay=dwc2 in /boot/firmware/config.txt and reboot
  • modprobe dwc2
  • modprobe g_serial
  • verify there’s a new /dev/ttyGS0 on the RPi

On the Linux server (after the modprobe on the RPi)

  • lsusb and verify there’s something named “Linux-USB Serial Gadget”
  • Verify there’s a new /dev/ttyACM0
  • Run getty -L 9600 ttyACM0 vt100 to create a login prompt on the serial port

Back on the RPi, connect to the Linux server.

This all works! I can now connect from one machine to another via a serial interface.

Proper server setup

The next big step is getting the server to run that console all the time. The simple way is to add ttyACM0 to the list of things that systemd should run a getty on. But that doesn’t catch the kernel. What you really want is to modify the Linux kernel command line to treat this serial port as a second terminal, not just for getty but also for kernel errors, etc. I didn’t do this step.

Proper terminal setup: ConsolePi

Any old serial terminal would work and that screen hack I tried is actually not bad if you only have a single server to connect to. But there’s a fancy OS purpose-built for being a serial terminal with a lot of nice extra features: ConsolePi. The key component is ser2net, that’s a Linux service that proxies all serial ports to TCP network ports. Then ConsolePi wraps that up in a nice UI.

I tinkered with it a bit but didn’t get it working. Honestly I found the docs confusing and was running out of patience. The main snag I ran into is ser2net doesn’t seem to find devices named ttyGS* by default, or at least I couldn’t figure it out. I’m sure that’s hackable.

Update: Conserver may be worth a look as a different app for monitoring serial ports.

Remote console options for Linux on PCs

I want to be able to remotely access my PC Linux box even if Linux is down. Ie: just like you’d do with a keyboard and monitor plugged in locally, but via the Internet. There’s a zillion ways to do this but they are all fiddly and the simplest ways are expensive or unobtanium.

This post is a mess but discusses three remote options.

I left out one useful technology: power control. Some of these solutions let you power cycle the Linux PC, either via the BIOS or via a hardware control. Me, I’m just using a smart power switch.

Remote management

The Big Boy option is to buy server hardware that has remote management capabilities. Some bulletproof mini-OS in the BIOS that you can access over the network. I have a friend who swears by HPE Proliant MicroServers for this exact reason. This isn’t really a Linux console, it’s just a PC that’s better suited for remote server management.

IP KVM

A common hack is to emulate a keyboard, video card, and mouse. You get a magic device (the “IP KVM”) that has HDMI and USB inputs, plug those in via cables to the PC’s HDMI and USB output, and as far as the Linux PC knows it has a normal local display, keyboard, and mouse. Meanwhile the magic device is accepting the video feed and making it available via a network server somehow, also emulating a keyboard and mouse for the PC.

The nice thing about this solution is it’s really a PC level solution, Linux is unaware of it. You can even use it to access the machine’s BIOS.

So what’s the magic device?

There’s a bunch of enterprise-grade IP KVMs out there for $400 or more. The nicest ones are rackmounted. They were more expensive and capable than I wanted so I kept looking.

JetKVM looks very impressive: $70 for a slick device with a web interface. Unfortunately this is not really purchasable. It’s only for sale on Kickstarter, they are way oversold, and they aren’t taking orders for the US.

PiKVM is another magic device option and you see it mentioned frequently because it’s a bit more hacker friendly. But the simplest thing is to buy it for.. yes, about $400. You can also DIY it with your own RPi and an HDMI capture device. I’m about to try this with a $15 RPi Zero 2 W and a $30 HDMI interface that plugs in to the camera port with a $10 cable.

I’ve also run across NanoKVM, a tiny PiKVM based on the LicheeRV Nano hardware. Interestingly the CPU is RISC V. It looks to be entirely a Chinese product so may be a bit tricky to import and understand the code. I sure wish I could read Chinese. Update: SiPeed has a pre-order page in English for NanoKVM.

Update: GL-iNet has a Comet(GL-RM1) for $90

Serial console

Another choice is to go old school and use Linux’ serial console support. This won’t let you access the BIOS of the PC (probably) but it will let you get to Linux the moment the boot loader starts.

On the Linux server end you’ll want to enable a serial console. Eventually you want this serial device to be a console at boot time. For hacking around you can just run a getty on the serial console.

On the other side of the serial cable you need a device that accepts serial and has an Internet interface. ConsolePi is one device for this purpose. It seems quite capable but also difficult to understand.

I have some much more detailed notes on a serial console in another post.

Server outage postmortem

Some notes on a personal server outage. Highlights:

  • Smart power switches are great
  • Would love a remote console of some sort
  • Having any sort of remote shell other than the server would be nice
  • Remote Unifi is helpful
  • My Intel ethernet device / e1000e driver may have a bug
  • A second network interface?
  • I’d sure like a watchdog

I left San Francisco on the morning of Apr 18. At 2:38AM Apr 19 I got notified some of my services running on my personal Linux server there weren’t working. No problem, I thought! This is what Proxmox is for! Only I couldn’t reach the Proxmox hypervisor: the whole machine was down.

Long story short, today (Apr 22) I power-cycled the machine and it came back fine.

Smart power switch

My first thought on the 19th was to reboot the server. Then I went looking for the smart power switch I thought I’d set up and couldn’t find it. I have like 4 brands of switches and apps. And I forgot to check Emporia, the newest one. Mostly that’s my car charger but they have a nice set of smart power switches too. I finally found it this morning (while looking at a list of devices on my LAN), power cycled the machine, and the reboot worked. Yay!

Remote console

I’d sure love a remote console for this server. Something I can log into remotely. I’ve got another blog post coming on options for that, I think PiKVM might be my solution. Next time I buy a server I should buy something like an HPE Proliant with remote management.

Remote Unifi

My Ubiquiti router has remote management with a web interface. I’ve used this more than I thought I would. I used it on the 19th the moment I knew things were wrong. It let me confirm the house Internet was working and that the Proxmox host was no longer on my LAN.

Remote shell

Usually when things go wrong and I’m not home I log into a VM on my server and poke around with diagnostic tools. But with my server down I had no VM to log into. Kinda wish I had a second machine, a little RPi or something. I finally figured out you can get a remote ssh shell on the router via the Unifi console. The Linux environment you get there is very limited but at least I could run ping.

Second network

I should consider adding a second network device, a cheap WiFi adapter, just as a backup. Would be nice to bypass the ethernet switches too.

Watchdog

The root cause of the failure was the networking going down. It’d be nice if my Proxmox server had a watchdog to reboot itself. In this case the computer was fine, just not the network, so that’s a little trickier. In the past every time I’ve set up watchdogs it caused more problems than it solved. The real Proxmox solution is to cluster and use high availability, but I don’t really want to buy more computers.

Root cause / ethernet problem

So why’d it crash? I’m not certain, but here’s the big sign of trouble

Apr 19 09:06:59 sfpve kernel: e1000e 0000:00:1f.6 eno1: Detected Hardware Unit Hang:

That got logged once every two seconds once it started. tailscaled also started complaining it couldn’t connect to the network. Everything else more or less kept running fine, scheduled tasks and backups and stuff. Just no network.

Looking at my logs, this error message has been logged about 150 times in the past year and a half. But in previous times it’s been transitory, a few errors and then it recovers itself without a reboot. This last outage was the first time where it got stuck and didn’t reboot.

Looking online, this error is frequently asked about. I don’t have the stamina to read all the diagnoses of what might be wrong. I did ask some AIs though. The usual cargo cult advice is to do something like ethtool -K eno1 gso off tso off to disable various advanced ethernet device features like hardware supported checksums or segmentation. Also some thought that power management might be a problem. Kind of hate the idea of this. I thought Intel ethernet devices were well regarded and supported in Linux.

I updated Proxmox from 8.3.? to 8.4.1 a few days before this crash. If it happens again it might be a problem with this kernel (6.8.12-9-pve).

Updates

The server crashed again the same way last night at about the same time.

Apr 23 09:08:37 sfpve kernel: e1000e 0000:00:1f.6 eno1: Detected Hardware Unit Hang:

This is happening during the 2am busy cron job window, so it’s possible there’s system load involved. There’s a big backup job running of my primary VM which takes about 8 minutes. The backup does complete! And I’d hope it doesn’t generate network traffic. But who knows. FWIW I was able to run the backup job manually without causing a problem.

After that Apr 23 crash I turned off GSO and TSO and it hasn’t crashed the last two nights. Given the code I’ve read, I’m guessing segmentation is in fact the problem.

I’ve got a separate blog post just about this kernel problem.

Apr 29: got a crash late last night with GSO and TSO turned off. At 04:52:56 UTC (about 10pm local), so a few hours earlier than the previous crashes. So turning those features off helped but didn’t solve the problem. Going to try turning off many more options as in this unit file and see how I do. But still a one-off, I keep hoping Proxmox releases a fixed kernel.
/sbin/ethtool -K eno1 gso off gro off tso off tx off rx off rxvlan off txvlan off sg off

LLM-enhanced email archive

I had an idea for a project and posted to Mastodon

I want an LLM trained on my 20+ years of email archives. Needs to be private to me. Is it straightforward and not too expensive for me to set something like that up just for myself for occasional use?

Main use would be a query for specific things, “what did I say to this friend 10 years ago about music?” But also just for general knowledge. I think it’d mostly work as free text but there’s a little email-specific structure it’d be nice to capture.

I got an interesting variety of replies, ideas collected here.

I gather there’s at least three different methods that could apply. Most folks suggested #2, RAG.

  1. LoRA training, which alters the core LLM weights
  2. Retrieval Augmented Generation which augments LLMs with a document store it can select from and use to tune replies. Sort of a formal version of...
  3. using a big context window and preloading the query with stuff

I think 2 and 3 are in common use now for consumers. But 1 is still more specialist and requires you have your own LLM inference engine.

One recommendation I got was to use SillyTavern, a consumer LLM wrapper for role playing game players. It does RAG for you: you give it a bunch of documents and it manages LLMs for you and lets you talk to it. I bet it has a lot of the plumbing I need. This suggestion also reminds me there’s a world of porn AI enthusiasts too, all DIY with local models to work around censorship. They may have some interesting tech.

Mark Fletcher (who runs an email service) gave me a great reply about how he mixes RAG with ElasticSearch. Useful notes but pretty involved, would be a lot of work. I should give his feature a try though and see how well it functions.

Update: Justin Mason reminded me of his personal GMail archive project: he indexed 20 years of email from Google in a local system using notmuch. No LLM in this work but could be a useful related component for the email retrieval part.

I’m not interested enough in this to build a whole product, I was more wondering if I could just hack something up by throwing a wall of text at an LLM. I think RAG is the tool to do that, paired with ollama or deepseek.

The other question is where to run it. My email is very private, I don’t want to ship the archive off to some untrusted provider. “A big Mac at home” is one common suggestion. I’ve been thinking about leasing a cloud machine to use on demand. I think a PC at home with an nVidia 3xxx may be sufficient to at least prototype.

Update August 2025: it’s been a few months and some things exist.

Making Adobe Acrobat not open PDFs downloaded in Chrome

This problem was driving me crazy: Adobe Acrobat was opening PDFs that Chrome downloaded despite every setting I could think of in Chrome or in Windows. This was blocking Chrome’s own PDF reader. Also Sumatra, my favored PDF reader.

The solution is in Acrobat’s preferences. Menu > Preferences > General > Basic Tools > Open PDFs automatically in Reader when they are downloaded in Chrome browser.

I have no idea how an Acrobat preference could be overriding Chrome. I blame Windows, Microsoft built a bunch of hijacking stuff in to Windows to boost their browser. I suspect Adobe is exploiting some thing in Windows.

Adobe is also using malware tactics to reinstall itself as a Chrome extension every month or so. Chrome won’t actually run it, but you do get nagged to use it.

Adobe: 20+ years of terrible, hostile software.

Google Pixel Ultra HDR

My Pixel 8 phone camera is great. It takes photos in HDR. But very little software supports it. The image displayer on the Pixel does, it has some extra-bright display mode that makes the white too bright on screen. Also Google Photos has some HDR editing support with its “Dynamic” and “Enhance” automated presets, plus a slider for “HDR effect”. But when you download the original image file from the phone, it just looks like a regular 8 bit JPG. What’s going on?

I only spent a few minutes researching this but the images appear to be a special Google format they call “Ultra HDR Image Format v1.1” or maybe “JPEG R”. More info in this article and this Reddit discussion. Also older info here, here, here. There’s even a Wikipedia article.

Basically it’s an ordinary 8 bit JPG with some extra data in th efile. Some of that is general metadata about brightness range, etc. And there’s something like a second raster image, a gain map which “provides a mechanism to store data sufficient to recover the original, higher dynamic range luminance data”.

I can’t find any non-Google software that works with the format. Fortunately the files do work pretty well as a regular 8 bit SDR JPG. And Google Photos lets you edit the tone mapping from HDR to that SDR. I’m also not sure which editing tools preserve the extra HDR metadata even if they can’t do anything with it.

M4B files, audiobooks, Android

I have an unlicensed audiobook file that fell off the back of a truck. It’s an M4B file. How to play it on Android?

Long answer short, probably any audio player will manage to play it. Musicolet, Voice Audiobook Player, and VLC can all play it fine on Android. It’s basically just an M4A file, or MP4 file. If a player doesn’t recognize it, try renaming it from .m4b to .m4a or .mp4. I’ll probably use Voice to play it: that’s a dedicated audiobook player and does a nice job playing at 1.4x speed.

On Linux, file identifies it as “ISO Media, MP4 Base Media v1 [ISO 14496-12:2003]”. fprobe identifies it as “mov,mp4,m4a,3gp,3g2,mj2” and/or “isomiso2mp41”. Inside is an AAC audio stream at 44.1kHz, 64 kb/s stereo, nearly 14 hours of book audio. There’s also a bunch of chapter markers, one per book chapter, which index into the audio.

The file also has a stream of text of some sort: VLC identifies it as a tx3g subtitle file. I couldn’t find any tool to extract the data, I’m not even sure how big it is or what it contains. There’s also a third stream which is a 500x500 mjpeg, I’m imagining it’s the cover image for the audiobook.

Vibe coding a Mastodon thread unroller

Just had my first experience using an AI (Claude Code) to write a whole program start to finish. See the result here.

The AI coding was amazing. With about 60 minutes of “work” and $5.50 I had my result. (I then spent another 30 minutes and $3 tinkering without much improvement.) It would have taken me 4+ tedious hours to do this myself and while my resulting code would probably be better, the AI code was more than adequate for my one-off needs.

A key part of this project’s success is how simple it was. It was a Python program to download some data from a Mastodon server and format it as HTML. I could just look at the HTML output and decide if it was working. I didn’t even bother reading the Python code the AI generated. If I cared more about what the system itself was doing, how the Python script worked, it would still have been useful but taken a lot more work on my part to review everything.

I’ve been using LLMs for awhile now in chat interfaces and am impressed with them, but they are clearly just stochastic parrots, text prediction machines. Claude Code felt different. It’s still mostly an LLM but it has enough of a reasoning engine in it that I could give it high level instructions and it’d figure things out on its own. That’s really impressive to me.

I don’t think AIs are going to replace human programmers entirely anytime soon. Part of why this project went so well is I have some expertise in this kind of thing, so I knew how to tell it to (say) cache all the data from Mastodon once up front and then generate HTML locally. Or to rewrite images to make them smaller. That’s hard-won knowledge from years of building systems. But the actual scutwork of looking up Mastodon APIs and remembering how to resize images in Python? Claude did that just fine.

Anyway I’m sold on vibe coding, at least for a certain kind of workaday code where you can easily inspect the output and decide it’s good enough. And you don’t care how good the code is. I’m certain there’s still plenty of need for human expertise for more important or complicated systems but this AI experience was very impressive.

The application

I took a trip to SE Asia recently and used Mastodon to share a bunch of postcards as a Mastodon thread. Now that I’m home I wanted a nice static copy of all that easy to view and share forever. There’s a bunch of Mastodon thread unrollers but I didn’t like the output of any of them.

Here’s the HTML output Claude and I produced. I’m pretty happy with it!

That’s the final output, the customer deliverable. It looks good! Even better the HTML it generated is quality. Reasonable semantic HTML, simple structure, nothing too stupid in it. That’s better than any other automated tool I’ve ever used.

There’s also the intermediate product, the Python and shell scripts it generated. Those are also pretty good. I didn’t really read them, I’m running on vibes here, but on a quick glance it looks like reasonably OK Python code that I could understand and maintain. I would not trust Claude to do more complicated things but for this straightforward task it is good.

Claude Code even thoughtfully generates and updates a README explaining what it does. You can also get it to export a conversation of your chat log, which in some sense is the “real” programming I did.

Getting the AI to write the application

I never wrote or edited any code. I did all of this within the Claude Code shell. It wrote the code. I mostly didn’t run any code either, the agent does that for you.

High level development was in two pieces: write a Mastodon downloader to a local database, then write an HTML formatter from that local data. Then a lot of iteration, particularly on the HTML portion. I’d tell it things like “change the layout so images are only one column” or “change this text to a different font and color”.

Here’s the important choices I made:

  1. I broke the project into two parts: download the Mastodon data from the API to local disk, then generate HTML on local disk. That’s an important pattern for projects like this, it lets you iterate on the HTML presentation much faster without spamming the API.
  2. I told Claude to write simple static HTML. These tools have an alarming habit of bringing in React and other Javascript garbage.
  3. I tried out a couple of strategies to make the pages smaller, finally settling on using downsampled JPGs. I’m not sure if Claude would have thought to suggest that, I wish I’d asked!
  4. About a quarter of the way into the project I thought to ask Claude to use git. It happily did so, checking in code as appropriate.

I’ve got the conversation stored away (well most of it, it got “compacted”). Here’s some key prompts I gave it:

I want to write a Python script that downloads a bunch of posts from my Mastodon account. I want it to download a single thread: my original post and all of my replies, about 100 of them. Every post contains photos or videos that should also be downloaded. I want you to keep the original JSON data from the Mastodon API and also extract everything into a simple sqlite database with columns for post timestamp, post text, and references somehow to the images in the post. the images are important!

you’ve made two errors already converting datatypes. did you make any others? think hard about the code you wrote and try to fix anything else before I run it again

now I want you to make a nice HTML view of all the posts and pictures from the mastodon thread that I downloaded. I want the output HTML to be a simple static HTML file without any javascript dependencies, no frameworks, definitely no react. it should have minimal CSS styling but something that looks nice and modern. The images are most important, I want to be sure they look good. the images have alt tags on them in the mastodon posts, those shoudl be displayed as captions. And I want you to generate all this HTML from the downloaded files, do not make any requests on the Internet like to the Mastodon API. can you do that? tell me how you will proceed before doing it so I can review.

I ran it. It only downloaded two posts: the original and one reply. but not the others. the third post is a reply to the reply, did you remember to recurse and load the thread?

can you write code to generate smaller images to save bandwidth? ie, resize the original JPGs to new JPGs which aren’t bigger than 800 pixels. I also want it so if the user clicks on one of the JPGs in the HTML view, it links to the full size image. it can just link directly to the JPG, don’t need an HTML page for each full size image. write code to generate the smaller files, alter the HTML generator to use those files, and alter the deploy script to deploy both the smaller JPGs and the originals to my server.

Some observations

Some interesting things Claude did:

  1. It made a couple of errors converting types from JSON output (numbers to strings, datetimes). I fixed those one at a time and got annoyed so I scolded it and told it to look at its own code and fix any other errors. It made some more changes I didn’t review, and the resulting code worked first time.
  2. I asked it to download a font from Google Fonts and use it locally. It tried to download it with curl and was blocked (a security policy in the Claude agent?) So then it just wrote a Python script to download the fonts instead and ran it. It’s hacking its own sandbox!
  3. Its first attempt to download fonts failed, wrong URLs. It detected the errors and did something itself to find the correct URLs and ran the download a second time. That also had one error for one font variant and it realized it didn’t need it so just ignored that error.
  4. It got confused with HTML templates and Javascript, some sort of problem with { quoting. It sort of hacked its way into fixing it just like a junior programmer would. It got there in the end!
  5. It did OK with an open ended “can you think of anything to improve”. It suggested adding some good generic HTML things like ARIA tags, print CSS, lightbox view, social media sharing. It also suggested adding map integration or location tags to the posts, a very thoughtful suggestion for my travel app!

I don’t love the Claude Code UI. It’s some terminal UI thing and very chat-oriented. I think the VS.Code integrated tools like Cursor are probably better for more careful coding. OTOH this worked well for my one-off task. I like how Claude Code has a very agent-centric design, it’s actively doing things on your behalf. It’s much more like giving instructions to a junior programmer rather than having someone pair programming with you making suggestions.

Nest Thermostat Gen 2 charging without a C wire

Long story short: if you have an old Nest installed without a C wire, it may not charge when the heat is on.

My Nest Gen 2 from 2014 went offline yesterday with a low battery warning. So I had to learn about Nest battery charging. Some details...

I have a 20+ year old furnace (heat only) and old wiring. Here’s a reference on thermostat wiring. As shown above I only have three wires: R, W, and G. R is the power, it’s always at 24V. W is the heater control: connect it to R and the heater turns on. (Phind taught me how to hotwire my furnace!). G is the fan control, I think for turning the fan on without heat.

What’s missing there is the C wire. C is a common neutral, and if I had one I could charge the battery by drawing 100-200mA of current between R and C. Any modern house should have a C wire and any fancy thermostat really wants one.

Nest Gen 2 works without a C wire. The way it works is charging off W and R. But here’s the problem, it can’t charge while the heat is turned on. I think this explains my Nest’s problem with low charge, it’s been cold and the heater has been running a lot. (Even when it does charge, it only does so at 20mA, that’s very little power.) When the battery charge gets below 3.7V it will shut off the networking just to keep the thermostat running. That’s a nice feature, at least you still have heating!

The temporary fix for a charging problem is to pull the Nest off the wall and plug in a charger to the Micro USB port. This is very easy, the Nest is designed to be removable with a nice socket.

Not sure what the long term fix is. I called Nest Support and, to their credit, they had a detailed troubleshooting script even for my 10 year old product. We got as far as them asking me to turn off wifi (to rule out a networking power drain problem) and then charge the battery up to 3.9V via USB before calling them back. I haven’t done that.

I guess I’m hoping this problem will only happen rarely on very cold days and that the power saving mode is enough to keep the heat on for me. I don’t think this problem has happened before, at least not often. I’m planning on upgrading to a heat pump with cooling in the next year or two. At that point I’ll get new modern wiring and a new thermostat.

Battery voltages

My real question is whether after 10 years it would be expected that the Next Gen 2 battery might be worn out and no longer hold a charge. The Gen 2 has a sealed-in lithium battery. Online advice is 50/50 on whether it should last this long. Sadly the support team didn’t answer my direct question about longevity.

You can see the battery voltage in Settings / Technical Info / Power. I’ve seen the battery as low as 3.65V and still operating (but offline). The highest I’ve seen is 3.88V. I thought the support guy gave me a target voltage of 3.9V but now I wonder if that’s even possible. Google’s docs only say that over 3.7V is what you want. This community answer gives a normal range of 3.7-3.9V.

One “fun fact”: if WiFi is marginal, the radio will draw more power to stay connected. I wonder if that’s why support told me to turn off networking for testing.

Nest is a bad product

Google Nest makes bad products. Don’t buy Nest products. If you need a thermostat, buy an Ecobee or Sensi instead. I’ve had a lot of trouble with this Nest thermostat over the years. Like the time they shipped a firmware that broke battery charging and bricked all the thermostats until you took them off the wall and plugged them in to USB. Or all the times the servers are down. Or until I figured out how to turn off all the fancy learning features that don’t work very well and just use it as a $40 programmable thermostat.

To be fair, the Nest thermostat has mostly worked for 10 years. And the hardware is very nice. The real problem here is a thermostat should be a really simple and reliable device. It’s just a switch! It should be expected to last for 20+ years. I appreciate that Nest reinvented the product category, most HVAC thermostats are awful. They had real software and UI! But it just has never been quite as good as I hoped.

My particular problem at my house is the lack of a proper power supply. That’s not Nest’s fault. It’s impressive the device works at all without a C wire, most newer thermostats don’t. They also have an adapter kit you can add to work around the lack of a C wire.

VPN services for Windows in 2025

With the recent anti-porn laws I know a few gentlemen in Texas and Florida with a newfound desire to use a VPN service. I don’t really use a VPN but would like to be of help, here’s what I learned. I’m keeping an eye towards simplicity for non-tech-savvy folks. This post is uncompensated, I am not selling VPNs or profiting in any way from what I’m writing here.

tl;dr: try Proton VPN for free.

Wirecutter recommends Proton VPN or Tunnelbear for free VPN and Mullvad, TunnelBear, or Proton VPN for commercial VPN. The other common VPN service I see recommended is NordVPN. I’d also consider Mozilla VPN, they are reselling Mullvad.

Avoid any other VPN service. Many of them are sleazy or scammy. A VPN gets to see all your Internet traffic and can profit from or subvert you in various awful ways. You must trust them.

If you use a VPN regularly you should expect to pay about $60/year for the service.

Of the reliable services, the main difference is their charging model and free service (if any). Proton VPN has a genuinely free tier you can try first with no payment details. NordVPN has a 30 day trial but you have to give payment details up front (and ask for a refund if you cancel.) Mullvad has no free trial but you only have to pay 5€ for one month to try it. TunnelBear has a 7 day free trial, not sure if it requires payment details to try.

Proton VPN, what’s the gotcha?

I was surprised Wirecutter recommended Proton VPN as an unlimited free service, I didn’t think any free VPN would be worth trying.

I set up Proton VPN on Windows and it seems to genuinely work. The installer has a bit of up-sell, installs of other Proton products. But you can opt-out. Also Proton’s a reputable company, the products they’re offering are reasonable.

The VPN is fast. I tested from my gigabit Sonic fiber and Cloudflare’s test got me up to 800Mbps / 600Mbps with zero packet loss and 31ms latency. Compare 900/800 and 5ms without the VPN. Honestly this result is very good, way better than I expected for a free service.

So what’s the catch? Wirecutter notes you can’t choose which country your egress is in. I was limited to US only. Fine for me but if your goal is to look like you’re in some other country to watch foreign TV, you’ll need to pay. I have to think there’s some other hidden limitations with the free service, I’d assume if I’m making heavy use of Proton VPN I’d end up paying for it.

Proton VPN seems to work via UDP Wireguard by default but has other protocol options. My connection ended up in Seattle at Datacamp (AS212238), with IP address 149.40.62.22. There’s some nice advanced features for split tunneling, DNS management, port forwarding, etc. All paid features.

Overall I’m impressed with Proton’s free service. Maybe there really is no major gotcha, it’s just an honest loss leader.

Sunpower solar for 2024

I’ve had my house solar system in Grass Valley for three full years now. It’s working great, just as designed. Some quick data:

YearProduced (kWh)Used
20241559416543
20231537314688
202217700?16000?

2023 and 2024 data are from the MySunPower app. I don’t have full data for 2022 so the numbers are estimates from PG&E’s usage data. I suspect PG&E’s numbers are just larger than what MySunPower measures and have no way of knowing which is accurate. I should go back in a month when PG&E’s accounting has settled and try to collect the data from them.

Anyway, comparing 2023 and 2024 I generated about the same power both years. But I used 1855kWh more. 1336 of that is charging my car.

The car is new for 2024. I charged it another 679kWh in San Francisco, so a total of 2100kWh for the year. I was guessing it’d be about 3000kWh so that’s better than I expected.

Update: NEM true-up

Just got the surprise $700 electric bill, the true-up for the year. The bill is very difficult to read and I can’t make sense of it, but it’s roughly correct(ish) so I’ll go with it.

The actual charge for “NEM Electric charges” is $630.95 for 579.3 kWh. That doesn’t really square with the $695.26 for 121 kWh in the monthly breakdown.

SunPower bankruptcy

2024 is the year SunPower went bankrupt. A lot of operations seem to be continuing. But the mySunPower web application is broken now. Near as I can tell the SSL certificates expired, plus maybe some servers are down. No word on if it will be back. The mobile app is still up though, here are some screenshots from it.