RSSAmplifier

Blog

Binary Ch01ce (blog)

This is my personal blog. I sometimes post about Open Source, coding, Mozilla, and some of my various views or passions.

github.comRSS feed ↗10 posts

Latest posts

getaddrinfo sucks. everything else is much worse

DNS is one of the critical building blocks of the internet and of the modern web. For the longest time the only way for Firefox to resolve a DNS domain was by using getaddrinfo. What’s remarkable about this function is that it’s implemented on Linux, Windows, MacOS - even Android. It has the same signature, and works in roughly the same way, even though the implementation in these operating…

Home Assistant: Fetching live energy tariff from electricity provider

In my previous post I explained how I created a Home Assistant entity to track the daytime/nighttime costs of my electricity. However, that is only half the story. Let’s back up to where this started.

Home Assistant: adding the electricity tariff/cost to your energy usage dashboard

The energy dashboard in Home Assistant supports adding tracking the cost of your electricity consumption. However, being a HA noob myself, it’s been slightly tricky figuring out how to do that, so here’s how I did it, in case someone else is also struggling with this. In the Energy dashboard, you edit your Grid consumption entity (I’m assuming you’ve already set it up). Under Select how Home…

Ten years at Mozilla

March 4th 2014 my first day working for Mozilla full time software engineer. I’ve now been on the Networking team (Necko) for 10 years. A bit more than that if you count the 3 months I spent as an intern in 2012.

Local voice transcription in Obsidian with Whisper.cpp

For a while now I’ve been a fan of Obsidian. It’s really great. I use it for all kinds of note taking and brainstorming. But long form writing isn’t exactly my strong point. Especially when I’m concentrating on a specific piece of code, it’s often difficult to start typing my thoughts into a document without losing my train of thought.

Vacation in Sweden, unions, the strike

I just had 5 continuous weeks of time off from work. That might seem like an exceptionally long summer vacation to some, but it is actually quite common in Sweden. In fact, not just in Sweden, but most of the Nordic countries.

Setup a local Oblivious HTTP gateway

What is Oblivious HTTP

URL interop 2023 in Firefox. Guest starring ChatGPT

It’s been a while since I last wrote a blog post, so I wanted to do one about a topic that’s close to my heart. When I joined Mozilla almost 9 years ago as a full time employee, one of the first important bugs that I got was a bug in our URL parser. Little did I know that by fixing that one small bug I’d soon come to own the URL parsing code in Gecko.

Superpowers and guns

Superhero movies are maybe my favourite genre. I think anyone can understand why they’re captivating. Most children spend a large chunk of their time daydreaming about flying or having super-speed or being invulnerable. Some of us never grow out of that phase and continue imagining gaining that awesome power in real life. But reality with superpowers would be quite a dystopia.

New domain, new beginning

A new beginning.