Managing Your Pythons with Pyenv

Posted:

Tagged as:

With the impending release of Python 3.5 it's that time of year when everyone wants to update their Python 3 version or add another Python to the list of installed versions.

I use pyenv to manage my Python versions. It allows you to install various versions of Python (including …

Classify: Python API Reference Tool

Posted:

Tagged as:

Not too long ago some colleagues of mine created ccbv.co.uk, a documentation tool for Django's Class Based Views. CCBV differs from Django's usual documentation by being providing users with an API reference to the members of each Class, including any inherited ones. This is especially useful when you …

Inspect's Hidden Gem: classify_class_attrs

Posted:

Tagged as:

Inspect provides a wealth of functionality for inspecting code, however one of it's most useful features is undocumented. Say hello to classify_class_attrs.

classify_class_attrs takes a class and returns a list of Attribute objects, each containing useful information about a member of the class. An Attribute object looks something like this …

Postgres Won't Start

Posted:

Tagged as:

This problem has caught me out 3 times now so this post is partly just so I don't forget the cause again.

The Symptoms

Starting or restarting Postgres (with either upstart or init.d) results in a detail-less error, telling you to check your log file. You check the log …

Expanding your RAID-5 Array

Posted:

Tagged as:

Every so often the time comes around again where I run out of space on my fileserver. Thankfully I'm using RAID-5 so expanding the array is easy enough and the wonderful mdadm utility means I can have software RAID so the expansion won't take eons.

Expanding an array with mdadm …

« 2 of 6 »