Quantcast
Channel: Electric Words
Browsing all 8 articles
Browse latest View live

Introduction to Django

I haven’t had any kind of personal web site for ages, but I recently wrote an article, Introduction to Django, for Digital Web magazine, so I thought I’d put a quick something up here as a point of...

View Article



Parameterised classes in Python

Recently, when working with Django, I wanted to create a class that would automatically render instances of a model as an editable HTML table. I used a Django-esque approach to defining the table...

View Article

Fuzzy date matching in PostgreSQL

As part of one of my side-projects, I wanted a way for users of a web site to search for events by date, but with some flexibility. I also wanted users who are creating events to be able to express...

View Article

Image may be NSFW.
Clik here to view.

Towards talker standards

A few years ago I wrote an article about the desire to bring talkers out of their strictly console-based world. I’m reproducing it here so it has a permanent home. Despite the rapidly rising popularity...

View Article

Initializing attributes from __init__ arguments

Every once in a while, I get fed up of having to do lots of self.foo = foo in Python __init__ methods, and wonder if it couldn’t be done automatically. I came up with the following function to do just...

View Article


Injecting attributes into Python modules

One of the things I don’t like about frameworks like Django and Pyramid is the amount of boilerplate imports you end up having at the beginning of modules, especially those modules that are more like...

View Article

Understanding IP address exhaustion

On February 3rd, 2011, IANA announced that they had allocated the last of the IPv4 address spaces to the five regional internet registries. Since then, blogs and news sites have been reporting this and...

View Article

Rock stars and session musicians

Something I’ve noticed since moving from the UK to the US is that potential employers are more likely to ask you for a link to your GitHub (or similar) account. In fact, some employers claim to value...

View Article

Browsing all 8 articles
Browse latest View live




Latest Images