gobject-introspection building in Homebrew for ffmpeg 5.0

I haven’t been able to get ffmpeg (or a few other things) to build in Homebrew for a while, it’s been rather frustrating - especially when it fails with a message saying “do not contact Homebrew about this” … you packaged it! How else could I fix it?

Turns out, there’s a brew doctor command that can help sort things out.

➜ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  unpaper
  ipython
  pango
  harfbuzz
  sdl2_ttf
  libraqm
  gobject-introspection
  pillow
  librsvg
  graphviz
  handbrake
  ocrmypdf
  libass

Copied the list of kegs above and ran this to force the update:

[Read More]

2022-02-13 Week in Review

Monday

  • Automagically tracked a weather balloon with my new kit.
  • Was bombarded with security updates from Github, updated my auto-merge bot to use pygithub while updating the list of packages to auto-merge.
  • Migrated the storage for my Splunk instance to Smartstore. Woo, minio!

Tuesday

  • Realised some cert renewals had gone wonky, because the acme package had just … disappeared?
  • Reissued a cert for my old fileserver, it’d been on a staging cert for… years?
  • Found the Home Assistant upgrade of doom was still plaguing me, the temp sensor in my server rack wasn’t being read, so fan control wasn’t turning on the exhaust fan. Eeek!
  • Changed from oh-my-zsh to starship.rs as a shell prompt automator. It’s different, but it’s faster and less broken.

Thursday

Friday

Fought with Fedex about a package they claim to have failed to deliver, left a card, then 8 minutes later recorded it as delivered to someone called “Olivia” - but couldn’t tell me where. The link between them and TNT is clearly a nightmare, this is the second international package that’s wasted hours of my time finding because they lose things.

[Read More]

asdf path completion fix

If your asdf completions or path aren’t working and you can’t figure out why, try re-shimming things:

asdf reshim python $(asdf current python | awk '{print $2}')
[Read More]

VueJS static site search and Pelican

I’m slightly chuffed by this, I was doing something and build Vue.js based search from a statically created index.

The fun part was storing/passing a “category” variable from the page’s HTML to the Vue app, and only slightly problematic by using Pelican to generate the site.

Pelican uses {{}} for tempalte variables, same as Vue, so I had to reconfigure Vue’s delimiters (hence the || around item.message)

Passing the category from the static HTML to Vue

  • The searchmeta app is defined in the div#searchmeta tag.
  • The data-category attribute of the div#searchmeta tag is generated by Pelican. It’s used on the categories pages, so that search only shows the in-category ports.
  • searchapp.getCategory() looks for the attribute and sets it to searchapp.category

Generating the search data

I generate a list of the pages, like [ "tcp/1", "udp/53" ] etc, and it’s stored as a static JSON file in the Pelican theme. In this case as /theme/searchdata.json.

[Read More]

First Sonde Tracking!

A tiny update on my post from yesterday - I had to restart it to get it back on the MQTT server, but … it successfully tracked a Sonde today!

And of course, because it’s data, I had to Splunk it…

Using the Location Tracker viz

Given I’m located in Tingalpa, about 7Km from the launch site, and the antenna’s sitting inside my house in the bathroom, I figure it did pretty good, tracking the thing until it was ~50KM away in Helensvale… that single red blip was from yesterday sometime. My software’s a bit better now :D

[Read More]

Week in Review 31 Jan - 06 Feb 2022

Monday-Wednesday. Can’t remember. Working, hiding from COVID, doing the thing. RMB was a close-contact to her later-found-COVID-positive niece, who’d been working at their house, so we’re all avoiding people.

I did a RAT with a negative result; I haven’t had any symptoms.

Thursday

  • The Aussie Broadband integration for Home Assistant was released as part of core. It’s based around my pyaussiebb package, but the HA part was done by Brett Adams, who’s much more patient than I am.

Friday

Upgraded to the new version of Home Assistant. Woo, ABB data. Boo, it broke because we didn’t test with VOIP services. The PR’s already been done.

[Read More]

Tonga Volcano Eruption on Smart Home Sensors

On 2022-01-15 04:14:45 UTC, the Hunga Tonga–Hunga Haʻapai Volcano erupted, with a truly epic amount of force.

From Wikipedia:

On 15 January, the volcano violently erupted again, about seven times more powerfully than the eruption on 20 December 2021. There were numerous reports of loud booms across Tonga and other countries, such as Fiji and as far away as New Zealand and Australia. A boom was heard in Alaska seven hours after eruption. The eruption set off a massive atmospheric shockwave travelling at about 300 m (1,000 ft) per second. Near the eruption, the explosion damaged property, including shattered windows.

[Read More]

Making Boxes to Store DVDs in my Billy Bookcases

I wanted some boxes to sit in my Billy bookcases and hold my DVD collections on their end, making it easy to pull out and see if I wanted, but otherwise less noticeable.

Materials

  • I used a 4’x8’ plywood sheet (12mm non-structural) - you could do this with a 1200x600 piece.
  • Wood Glue
  • Nails (having a nailgun makes this fast to build)

Making the box

Cutting Things Up

  • Cut 3x200mm wide pieces, along the width of the sheet. ie, you want pieces 1200x200, not 2400x200. 😆
    • If you’re using a big sheet, measure each time - remembering the kerf will take a little bit.
    • Small sheet? just cut it in thirds.
  • Stack two of the slices up, clamp them together so they’re all aligned and cut two pieces 710mm long for the sides.
  • Mark the other piece to match the length of the sides, then deduct two thicknesses of board off that length and then cut there - that’s your bottom.
    • The “ends” overlap the bottom, so they grip it from the sides (and the nails help).
  • Since it’s the same width, the offcut can be cut down to make the “short” sides to the height you need - it should be 200mm, but match it up since we’re not robots.

Assembly

  • Lie the bottom piece with a long edge facing up, then glue + nail a “short” piece to one end, to make an L shape.
    • The reason I don’t do it with the bottom laying flat is it’s really hard to get the alignment right, the nails in and the glue from dripping on the bench.
    • To help hold the pieces upright, you can just attach clamps on the non-working end at bench-level, which is enough to provide support.
  • Glue + nail a “long” side on top of that, starting in the corner of the L and working out.
  • Glue + nail the extra “short” end.
  • Glue + nail the other “long” side.

At this point the box structure’s done!

[Read More]

Queensland COVID Contact Tracing

I finally got around to making a Splunk App for Queensland Covid Contact Tracing, parsing the Queensland Health webpage which lists exposure sites in Queensland.

… and then they gave up.

Mumble mumble. I’m double-and-a-booster vaccinated (Pfizer x3), but that doesn’t mean I’m completely immune, and it’s getting wild.

Sigh. I guess it had to come to town eventually in a big way - I guess?

Stay safe, folks.

[Read More]

Unifi APs lbd exit code 256 repeatedly

Original thread on the unifi forums

lbd exited with code 256 and restarted by inittab, 141,020 times one one AP in 48 hours

This process has crashed more than a few times lately…

Model UAP-AC-IW, firmware Version 5.43.43.12741

The common response from @UI-Glenn was “disable band steering” - which I had done. Any chance of an actual fix soon?

I logged a support case for this, which led to me upgrading the firmware on the Unifi controller (self hosted, on a Ubuntu 20.04.3 VM)

[Read More]