Drop-in replacement for Hugo figure shortcode with responsive img srcset

When I moved this blog over to Hugo slightly more than a year ago, I started using Laura Kalbag’s special img shortcode with img srcset support.

To make a long and interesting story short, srcset enables us to tell the browser that we have for example 5 different resolutions of an image available, and that it should choose the best one based on the user’s device.

Pretty neat actually!

Anyways, I tweaked the code a bit over time, and most recently I combined it with the stock Hugo figure shortcode.

Read More

Weekly Head Voices #192: COVID-19 part 2.

A scene from Stilbaai, my number one favourite new vacation destination, taken on the morning after the lockdown had been announced. We were extremely fortunate to spend our last day of freedom in a place like this.

Greetings, fellow humans!

It’s 16:15 (UTC+2) on Sunday afternoon as I sit here writing this.

The post seems to be mostly planned out, with fragments of text strewn around the editor window right below this sentence.

Read More

The Morgan McGuire Markdeep project Management Method: MMMMM.

This weekend, Morgan McGuire, graphics and game programming god, tweeted a thread about his text journal based method of software development project management.

Here I single out three of the tweets, but you should really read the whole thread:

When coding, I always maintain a journal in the repo (I happen to use Markdeep for this now) with a TODO list.

Tasks are at the level of one hour for “today” stuff, one day for next week, and then week- or longer level tasks.

Read More

Weekly Head Voices #191: COVID-19 part 1.

Welcome back everyone! I hope all of you are doing as well as possible.

This edition of the WHV looks back on the two and a bit tumultuous weeks from Monday March 9 to Tuesday March 24.

I am writing this for us here now, but I’m also writing this for readers in a few years’ time who might be looking into the more obscure corners of the web for additional impressions of the COVID-19 pandemic.

Read More