Tables with banded rows
21/10/2019
Ian Stuart's picture

Those of a certain age, or maybe just old-roleplayers, will fondly remember the masses of tables where the rows were banded into sets of three.... mine was from AD&D (3rd edition)

For those of you who managed to avoid such perils.... see the image below.

Turns out to be quite easy to do, too:

Read more...
PyCon 2019 Cardiff
19/09/2019

I attended PyCon in Cardiff last week, on the 13th and 14th of September. This is a selection of my notes during my time there, highlighting the talks and discussions I found useful.

Read more...
Pip install from git in Docker
27/03/2019
Ian Stuart's picture

Following on from my article about pip installing development code, I thought I'd also share the various ways of installing from a get server.

Read more...
Adding a text-string as a file to a gzip'd file
27/03/2019
Ian Stuart's picture

I had reason to add a timestamp file to an archive - a nice simple file, with the time of creating as a single line, so nothing complicated..... but this is python, and there are more solutions out there than I've had hot dinners (well, maybe not - but certainly more than I've had Vindaloo curries.)

None of them worked for me.

I don't think that my archive was an in-memory "file"

This does:

Read more...
The awesomeness that is `git bisect`
17/12/2018
Ian Stuart's picture

So you've been working away on some code, and it works great. You then rebase on master, and it breaks.

aarrgghhhh!!!! Steam-from-the-ears!!! pulling-of-hair!!!

Until now, I'd either be checkoing out one branch at a time & testing, or doing some kind of cherry-picking into a new branch - either way, it's a pain keeping track of what's working & what's not.

Read more...