Musings about Technology, free software and computersatom feed

From<T> and Into<T>

From and Into are my new best friends: https://gitlab.com/mwbot-rs/mwbot/-/merge_requests/10/Why require users to specify their request parameters in one specific format when you could just accept every format? \o/

cargo-hack is the coolest

cargo-hack is the coolest #Rust testing tool I've learned about so far: . With a few parameters, you can test every feature combination as well as against a version range of Rust versions. My CI is now twice as slow, but I'm actually verifying each feature works, and the MSRV…

Cross-building Windows binaries in Rust

It was surprisingly simple to set up cross-building for #Windows binaries on my #Rust projects in CI: https://gitlab.com/legoktm/rust-ci-pipeline/-/commit/21c61d0412e6636c110fbd0461908c93ff5eda7cAnd the one place I was using Unix-specific code has been caught at compile time \o/Whenever I make new releases, Windows binaries will be uploaded by CI, but in the meantime here's my…

prometheus-airnow-exporter

New project: prometheus-airnow-exporter scrapes air quality info for your zip code from AirNow.gov's APIhttps://lib.rs/crates/prometheus-airnow-exporterThrew it together pretty quickly as a PoC to see if I could set up alerting when the air gets bad.#airnow #prometheus #californiaproblems

Airsonic is abandoned

uh, #airsonic is abandoned/obsolete now :(https://github.com/airsonic/airsonic/commit/5ccca059d5cfe3dd19734c27861b434ea21b43d8time to look into moving to airsonic-advanced, which I hope will be a mostly drop-in replacementhttps://github.com/airsonic-advanced/airsonic-advanced

Trying GNOME again

Fedora dropped me in GNOME 40 today after I rebooted for updates instead of my normal Cinnamon.So I gave it a shot and after fiddling with keyboard shortcuts and the tweak tool it's....fine so far? I just need to get used to the menu bar on top instead on bottom.…

First merged Mailman patch

My first patch to #Mailman3 got merged today! https://gitlab.com/mailman/mailman/-/merge_requests/857And I already have another one on the way: https://gitlab.com/mailman/mailman/-/merge_requests/859

fridge-backup

Couldn't find a #btrfs snapshot backup tool that I liked so I just wrote my own: https://crates.io/crates/fridge-backupIt automatically takes daily snapshots and then you copy them to external drives, that's it. (Automatic cleanup is a TODO)Also, you should put your butter in the fridge so it doesn't go bad.

Debugging go templates

I spent a good amount of last week debugging go templates and finally discovered today you need to end the {{ template name }} block with a period so the variable context is passed through.I was going to complain that making a period at the end crucial to the meaning…

semver will not save you

https://hynek.me/articles/semver-will-not-save-you/ matches up exactly with how I feel about versioning and semver. Semver is great, but at the end of the day it's a best effort by maintainers and not perfect. It's also not applicable to literally everything and shouldn't be used as such.

Qubes OS survey results

The #QubesOS survey results are out!Personally, I'm a bit shocked that more people would prefer #Debian as the default and not #Fedora.https://www.qubes-os.org/news/2020/11/26/qubes-survey-results/