Dockerfiles and Kernel Tools

So I've been wrapping a troublesome service in a Docker container today. This service has all sorts of assumptions where it "runs the show" on the server, all of those assumptions being wrong. So far it's been going pretty well. I'd already done most of the isolation work previously when I'd ...

Continue reading

Long Night of Porting SimpleParse

So once again I tried to port SimpleParse to Python 3.x. After a half-hour or so of playing with doing a complete rewrite in Cython I realized that scope creep was going to kill me, so I went back to the C-coded mxTextTools and started working out how to port that.

First step up ...

Continue reading

Every Test

I hate little bugs that shouldn't be.
Every test it passes.
I test every corner of the case.
Every test it passes.
Pulling logs, pushing scripts.
Every test it passes.
Spelunking through the code.
Every test it passes.
Screaming at the IDE.
Still
Every test it passes.

Django Migration Migration Strategy

We embed Django in devices. There are 100s to 1000s of each device scattered around the world, each controlled by someone who may decide (for perfectly valid reasons) not to update one of those machines for years. Until now, we've used South migrations to allow a machine of any vintage to update to current ...

Continue reading

Did I just create another Inotify Interface?

This is one of those moments where you finish something and think "why did I go and do that?"

I recall an hour or two ago thinking "you know, wouldn't it be nice to have inotify integrated into Twisted", and that lead me into reading the Inotify man-page, which lead to me thinking "oh ...

Continue reading

PyOpenGL 3.1.1a1 is out

So this morning I realized I never actually got the PyOpenGL 3.1.1 release process kicked off. Did a bit of cleanup and testing and booted the first alpha out the door. This is basically just a bug-fix release, though it has some more extensions wrapped/available, as it uses an updated Khronos xml ...

Continue reading

Type Declarations for Python 2.7

So there's a big flamey thread over on python-list about the Python 3.x type-annotation. Thing is, I can't say the annotations seem all *that* important to the behaviour (static type checking): Consider this Python 2.7 decorator-set:

def _func_annotation_for(func):
    """Retrieve the function annotation for a given function or create it"""
    current ...

Continue reading

Monitor Sinks a Whole Day of Work

So a while ago I purchased an Acer H276HL monitor to replace an old Asus monitor that had developed some weird behaviour where it would get stuck in a strange mode, then just decided not to turn on again. This morning when I got home from the cafe I discovered that new monitor in a ...

Continue reading

Yearly archives