Setting the country code within the hostapd config doesn’t work on Debian bookworm or Ubuntu 22 LTS. Nor does using iw reg set US without a workaround. The trick is to remove all kernel modules for the card, then use iw reg set US and reload the modules.
The card worked fine under Debian 11. I have a hunch things broke when Linux moved away from the CRDA package, but I’m not a kernel developer.
Continue reading
Raspberry Pi Zero W computers have a single core ARM1176JZF-S CPU that implements version 6 of the ARM11 ARM architecture. From the docs:
It supports the ARM and Thumb instruction sets, Jazelle technology to enable direct execution of Java bytecodes, and a range of SIMD DSP instructions that operate on 16-bit or 8-bit data values in 32-bit registers.
The SIMD (Single Instruction Multiple Data) instructions are what we’ll be talking about in this tutorial.
Continue reading
If it ain’t broke, make it faster.
I’m writing a sharding StatsD proxy as a way to learn the Rust programming language. This is just a toy project, but I’m treating it as if it were something I’d run in production where I care about performance.
This proxy can be used to spread StatsD message load across N downstream servers (ie. Telegraf with the StatsD input plugin). However, due to the way metrics are stored in a timeseries database like InfluxDB, we need to ensure consistent hashing.
Continue reading
I recently bought a PineTime watch on a whim. And I’m still not sure what I’m going to do with it, but it runs an open source operating system (InfiniTime based on FreeRTOS) so I’m lured by the thought of customizing or contributing in some way no matter how small.
The first thing I noticed when booting my watch for the first time is the battery indicator didn’t seem to be working despite the fact that I was actively charging it.
Continue reading
I’ve wanted to “factory reset” my old Android phones for years but hadn’t found a good way of exporting text messages including the embedded images and videos. Some solutions involve rooting your phone, and I didn’t want to do that. Nor did I want to use an app that copied to Gmail or the cloud. And I wanted to know exactly what the app’s code was doing. So I found the MessageBackup repo on GitHub and used it as a starting point.
Continue reading
I recently purchased a Dell Mini 1012 on Ebay and wanted to ensure it had the latest BIOS update from 2011. Dell’s website provides an exe, but I rarely boot into Windows. I managed to find a Linux-only workaround.
What I Tried It was a bit of a journey. If you want the TL;DR, go to the next section.
According to Ubuntu’s Dell BIOS page you can flash the BIOS using FreeDOS and a USB stick.
Continue reading
This post is about how and why I pieced together my own motion-detection and encoding system. I wanted to produce smooth HD videos whenever motion was detected. Find the code here.
Note: I plan to add videos and stills to make this more than a wall of text, but wanted to get it out before the holidays.
Raspberry Pi computers are powerful despite being small. Did you know the raspivid program can capture 1080p at 30fps without breaking a sweat?
Continue reading
Queued up some Koufax on my morning walk. It had been a while. Sometimes I forget how effective horns can be. Move Out, Move On.
Continue reading
Amanda Nguyen is truly inspiring. That’s not something I say lightly.
She formulated an effective strategy for getting important bills passed unanimously. She passed legislation by “taking our egos and shoving [them] somewhere”. Oh and compromise and respect. Yes! She fought to fix the broken criminal justice system as it pertains to sexual assault, and rolled that experience into Rise Justice Labs. Oh, and she’s training to become an astronaut.
Continue reading