Musings about Technology, free software and computersatom feed

Advent of Code 2022, in Rust

There's a yearly programming contest called Advent of Code (AoC). If you haven't heard about it, I'd recommend reading betaveros's post explaining what makes it unique. This was my third attempt at AoC, previously trying it in 2019 (made it to day 5) and 2021 (day 6). This year I…

Current thoughts on Mastodon

The majority of posts on Mastodon right now are about how to get started, discussions about various features or making fun of the dumpster fire that is the birdsite. This is mostly unavoidable as new people sign up, but I've tried to keep using Mastodon as an actual social network…

Debian firmware GR vote

My #Debian firmware GR vote is 6437215. In order of preference: Amend the Social Contract to allow for non-free firmware in installers. Have a installer w/ non-free firmware next to the fully free one. None of the above Have only a non-free installer OR status quo, the installer w/ non-free…

Rocket 0.5-rc.2

The next #Rocket release candidate is out: https://rocket.rs/v0.5-rc/news/2022-05-09-version-0.5-rc.2/Updated all of my projects in ~40 minutes, best part of #Rust is that if it compiles, it'll just work!

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