Five minute intro to debuggers for Go

What should be written on the Golang / Go debugger box



The out of the box experience of debugging Go on a Mac was a tad disappointing. I was expecting to be able to type my usual list command and throw in a few break points and get started.

Firstly, gdb is no longer installed by default with the developer tools (apparently it works but …), and secondly lldb (which is installed by default) could not even list the code.

Delve (dlv)



Next up was dlv (
https://github.com/go-delve/delve) which is designed for Go.

This short article will cover the few things I found out the hard way that would have speeded up the experience of getting started with this debugger.
Read More...

Kubernetes Monitoring

I still use Icinga2 for monitoring my home network. I haven't got annoyed enough with it to move to anything else. The plugin that monitors my microk8s cluster is a bit simplistic it simply checks a number read from the interface and if its bigger than a threshold then its a warning or an error.

The catch is that Kubernetes never resets the number of restarts of a pod … so you can't clear the error state. This is apparently by design as pods are disposable items.

Deployments come to our rescue here allowing us to recreate the pods and hence reset their restart count.
Read More...

Rube Goldberg would be proud ...

Rube Goldberg was a cartoonist who has a character that invented fantastic chain reaction machines. I may have been channelling his muse for inspiration in getting around my latest NBN failure:
  1. We moved house (Note: there is no such thing as an NBN relocation … its a fiction … its a cancellation and a new connection)
  2. When people order a static IP they really want the same one when they relocate it (see 1)
  3. The Sparkies came, the modem was turned off for a couple of hours … things didn't come back
On the Friday afternoon before a long weekend …

And so it begins …
Read More...

Reflections on the Metaverse

"Download this Show" in From Tinder with Love 17 Feb 2022, 11:05am on ABC Radio was discussing VR and whether the Metaverse has a future … suddenly I was transported back 15 years and realised I had heard a similar story … the story of videotelephony. Read More...

Testing time

One of the fun things about daylight savings time is the need to test your code around the times it changes.

"Time is an illusion, lunchtime doubly so"

Douglas Adams


Firstly let us be clear time does not go backwards or jump forwards in daylight savings … time itself just ticks on like it usually does … the only thing that changes is that the representation of time on the clock changes.

Unfortunately many of the libraries we use do not make it absolutely clear about how they relate to system time and representational time. After all if you live in most places in the world there are only a couple of hours that are affected…

Perhaps we need a way to test this and other changes like leap years … and if it were convenient then we might actually do this regularly

Read More...