Monthly Archives: March 2019

Sharing code: at your own risk

      No Comments on Sharing code: at your own risk

Often, when discussing projects on this blog, I share bits of code. Sometimes more than a bit. But I rarely share whole programs or libraries because, well, it’s a pain uploading it and making sure WordPress hasn’t munged characters. And it’s equally difficult to correct errors and keep code updated. Yeah, I know what you’re thinking. “FFS, use GitHub.” And… Read more »

Sharing safely on GitHub: how not to leak passwords

Recently, I found myself wanting to share some code via Github, but realised it contained my wifi password. That’s not a huge issue (see below), but neither is it a good idea. You should never hard-code credentials into your software – in principle. But when you’re hacking together an Internet of Things (IoT) toy for personal use in your own… Read more »

Looking back: reliving the age when computing wasn’t yet retro

Nostalgia ain’t what it used to be – it’s a lot better. Once upon a time, examining the past relied heavily on memory – an unreliable witness at best. Maybe you could dredge up a few old magazines and books, some dusty photos and a few other artefacts. But you were mostly dependent on whatever you’d personally kept from the… Read more »

Go or Python for the Raspberry Pi

Pretty much all of the code I’ve written for the Raspberry Pi (and the BeagleBone for that matter) has been in Python. It’s widely regarded as the de facto language for the platform, not least because it is newbie-friendly. But does it have to be this way? Ups and downs of Python It’s not hard to enumerate a long list of… Read more »

Quicktip: Setting paths on macOS

Setting the PATH environment variable should be a simple thing. But, for whatever reason, various flavours of *nix seem to have made it wilfully complex. I recently tidied up how paths are set on my iMac, running macOS 10.14, aka Mojave. And as this blog is basically my lab notebook, I thought I’d share. First, I use Bash as my… Read more »