Notes

joshua stein via @jcs@jcs.org - Jul 12 2023 13:38:30

My advice for running a public-facing API, coming from 11 years of operating the Pushover (@pushover) API:

- Host the API on its own hostname
- Don't be too liberal in what you accept
- Avoid OAuth if you can
- Log a unique id with every request
- Be descriptive in your error responses
- Use prefixed tokens
- Stay on top of failures

https://jcs.org/2023/07/12/api

joshua stein via @jcs@jcs.org - Jun 28 2023 09:09:27

I hardwired a WiFiStation so it is powered by the MailStation's batteries or AC power, and shuts off when the MailStation does

I might try removing the DB25 port of the MailStation and wiring something up to fit the WiFiStation guts entirely inside the MailStation

joshua stein via @jcs@jcs.org - Jun 22 2023 08:45:31

Did you ever waste a whole day tearing apart hardware and rewriting your drivers to figure out why your firmware was getting corrupted when transferring it to your hardware device, only to discover it was a broken compiler on the host generating garbage and everything was transferring that garbage just fine all along...

joshua stein via @jcs@jcs.org - Jun 13 2023 09:46:46

I discovered by accident that Thunderbolt 3 magically works in OpenBSD on my X1 Nano.

I plugged in a Thunderbolt NVMe enclosure to check whether it would fall back to USB attachment, but ppb, pci, and nvme devices attached. I verified with an Apple Thunderbolt 2 ethernet device (through a Thunderbolt 2 to 3 adapter) and it also attached as bge0 as expected, and detached properly when unplugging.

My previous tests with Thunderbolt on other OpenBSD laptops only worked when the devices were plugged in at boot time, since the firmware had to setup the device. I'm not sure whether something changed in OpenBSD or the EFI firmware that makes hotplugging work now without a Thunderbolt NHI driver, but I'll take it.

The best kind of drivers are the ones that don't have to be written :)

joshua stein via @jcs@jcs.org - Jun 08 2023 19:32:15

I've used Reddit for 17 years and was on Twitter for 15 years and it's surprising how quickly they both imploded relative to their lifetimes, but also how little it bothers me to suddenly stop using either of them.

That's probably a good indication that I was consuming too much wasteful content on them every day and this is for the better.

Though I'm really sad to see @christianselig have his hard work shut down with no recourse, especially seeing how much he enjoyed working on Apollo over the years.