Kristian Glass - Do I Smell Burning?

Mostly technical things

Altered Carbon

Based on Richard Morgan’s book of the same name, Netflix’s Altered Carbon is “dystopian science fiction cyberpunk” that looks at life, thrills and crimes in a world where bodies are just “sleeves”, and consciousness is stored in a small disk embedded in the spine.

It’s dark, it’s graphic, and it’s gripping.

Image Metadata, GPS Location, Exif Tags and Privacy Leaks

Images can contain metadata. This is useful for things like “when was this photo taken?” or information about the camera, or a text description of what the image contains.

Many cameras (e.g. your iPhone) will include GPS coordinates of where the photo was taken. This is useful for things like “where were we when we had that amazing pizza?” or “where was that beautiful sunset??”.

This is much more problematic when the selfie you just shared includes the precise location of your home.

Connect Together Your Smart Home With Home Assistant

From my smart home user-stories:

For my home, I want a centralised abstracted event hub for connecting sensor/actor devices together, so I can separate “automation logic” from “interfacing code” – even better if the interfacing code is done for me!

Home Assistant handles this nicely.

Previously I’d been wiring things together in a very ad-hoc fashion. My “smart doorbell” had the logic to connect to Slack and SES to send me notifications, my cameras had similar logic replicated, et cetera. Event-handling and automation code lived on each device, and coordinating and managing it all was a pain.

Enter Home Assistant, which acts as a generalised abstraction layer and centralised event-bus between all the things.

You tell it about your devices (“components” – it has support for nearly a thousand), it provides you with a nice interface for manual control, and powerful but easy-to-write “automations” to hook everything together.

Packaging Django With Docker

I love Docker as a packaging system – almost everything I push to production nowadays is as a Docker image.

Occasionally in the #django IRC channel, the topic of “how to Docker-ise your Django service” comes up. Here’s the Dockerfile I use, taken from My Django Project Template:

2017 in Books

Some things I read in 2017, with some brief opinions/recommendations.

All categorisations are approximate at best and will probably cause some kind of contention.

Welshcakes, the Snacking Cake You Didn’t Realise You Needed

Welshcakes (or welsh cakes) are little fluffy circles of joy, around 1cm thick and 7cm in diameter, made from flour, butter, currants, eggs and milk, plus a little dusted caster sugar.

They’re light enough that you could easily eat an entire six-pack, but substantial enough that just one is a pleasant snack, and perfect any time of day or night.

Feature Factories and How to Avoid Them

I’ve used the term Feature Factory at a couple conference talks over the past two years. I started using the term when a software developer friend complained that he was “just sitting in the factory, cranking out features, and sending them down the line.”