November 27, 2020

My guide to working with JSON in Go

Working with JSON in Go can be tricky. Specially if you’re coming from dynamic languages like Python or JavaScript, where JSON encoding often “just works”. Over the years I had grown accustomed to those conveniences and that made me overlook many details which affect JSON encoding in Go. This guide hopefully helps me to avoid those mistakes in the future. Read more

November 8, 2018

Would you like to send an email?

There is a simple task that I occasionally need to perform which has caused me many headaches during the past 10 years: send an email from a server. I remember a day in my early career where I spent hours and hours trying to get Exim4 configured. I’ve similar recollections with Postfix, Sendmail and ssmtp. The last being close to what I was initially hoping for to find. But even this had it’s issues. Read more

July 1, 2014

Set MacOS default browser via command line

On my day job I use Chrome as my default browser and at home I roll with Safari. Occasionally I want to get work stuff done at home as well, with my personal laptop. Chrome profile sync works well for bookmarks, plugins and preferences, but opening links from email and chats in Safari while I’m in “work mode” is a bit annoying. Navigation to Chrome preferences to set it as the default, and later to remember to set Safari back seems a bit daft. Read more

Powered by Hugo & Kiss.