Automagical image gallery in Hugo with PhotoSwipe and jQuery

There are various solutions for implementing PhotoSwipe in Hugo, including HugoPhotoSwipe and Tom Helmer’s blog post, but they all require you group all your images in the once place on the page.

What I wanted was:

  • A lightbox/carousel-style image gallery that loads all of the images in my post, regardless of where in the post they appear;
  • Works with any existing images I’ve embedded using the figure shortcode without me having to change anything; and
  • Does not require me to pre-define the image sizes;

I couldn’t find a ready-made solution that met my requirements, so I made my own.

[Read More]

All about Sydney's Opal Card

Update 27/12/2015: This post was originally written in March 2014, when the Opal card was brand new, and you still had a choice to use paper tickets if you wanted to. Fast forward to December 2015, and it’s largely defunct:

  • I left Sydney shortly after I wrote this post, so I haven’t had any motivation to update it.
  • Most Sydney commuters now use an Opal card and soon won’t have a choice - all paper tickets except singles and returns are withdrawn from 1 January 2016.
  • Most commuters now know about the free travel hack - and this loophole is likely to be closed in July 2016.

I’m keeping it here for historical value, but merged the original four posts into one so it doesn’t clutter up my blog so much.

[Read More]

Decoding and sending 433MHz RF codes with Arduino and rc-switch

In this tutorial I’ll show you how to use an Arduino to decode signals from RF remotes, and re-send them to remotely control some mains switches and a garage door.

[Read More]