Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Maintaining scripts as their underpinings change (Not what I wanted to do today, but I have Eric back on the workstation now)


I use a script I wrote a while ago that produces Eric3 project files from checked-out SVN/CVS directories. It lets me use the command-line SVN/CVS operations (which I find more convenient than the Eric operations[1]) then regenerate the project file. The SVN operations were provided by the pysvn wrapper... and thats where the problem was. ...

Continue reading

Ooh, that wasn't a good use of time (Distracted by the desire to listen to Brave New Waves...)


I used to love listening to Brave New Waves on CBC 2 when I was writing my thesis. Tonight I tried Amarok for the first time, and as I was going through the stations I noticed that there was no CBC 2 stream.

Checking the CBC, their CBC 2 OGG stream still isn't working (it ...

Continue reading

Need a decent unit-testing framework for OpenGL (Unit tests are good things...)


I've just moved the (rather small set of) tests in OpenGL-ctypes into a unittest test case. Discovered in doing that that the nurbs and evaluator code is working on the laptop (just doesn't show up in the real-world tests, suggesting that there's a problem in the setup there). Reinforces the idea that it's the amd64 ...

Continue reading

Magic of unit tests (Pinning down evaluator failure)


Sat down to write a test for the evaluator code. I'd gotten it to the point where it didn't crash the program a while ago, but it was not showing up in the tests/demos. Whittled down one of the tests into a simple unittest, getting rid of textures, lighting, etceteras, but couldn't come up with ...

Continue reading

Okay, I'm really excited about PyCon now (List of accepted talks...)


Just read through the list of accepted talks, beginning to think that I may wind up with a lot of conflicts. Normally I don't go to the talks at a conference (I hang out chatting in the halls), but there's quite a few I need to go to this time [2, 32, (51), 55, ...

Continue reading

Pulling the restructured code together (Refactoring core assumptions...)


Focusing on real work these days. Spent most of yesterday on the restructuring of the VoIP billing system. Got all save two of the test cases for discounts working, they both exercise the same missing feature (date-matching).

I've been procrastinating all morning in the hope that it will just go away :) . Guess I ...

Continue reading

What am I missing? (Things to look into on Saturday)


I'm still seeing failures in OpenGL-ctypes in the nurbs and evaluator calls. I've traced through them, compared them to C versions of the code and have basically run out of reasons for it to fail. What I'm left with is the possibility that I've started tickling a ctypes-on-amd64 error or that I'm doing something monumentally ...

Continue reading

Got OpenGLContext 3D text rendering working with numpy (Finally sit down to fix my FontTools fixes...)


I did some patches months and months ago to make FontTools use numpy to extract font data (outlines and metrics) from TTF font files. However, I messed something up in the patch. The system would render characters, but they seemed to be random characters and they were way too widely spaced.

Yesterday when I sat ...

Continue reading

Apparently ctypes is more interesting than OpenGL (Anti-cool-graphics movement makes its presence felt ;) )


My proposal for a talk at PyCon got accepted, but almost every comment was of the form "Oh, I guess so, but we'd rather just hear about ctypes". So I suppose I'll re-think the talk to just be about ctypes and ignore the whole OpenGL thing. My proposal was more along the lines of "when ...

Continue reading

Not much OpenGL hacking this weekend (But I got some general maintenance done and played a couple of games)


I spent much of the weekend trying to decompress from the week and finish recovering from the cold. I got a tiny bit of OpenGL work done, basically getting OpenGL extensions fixed for Win32. No big deal, after all, who uses Windows these days. Still, nice to have it fixed.

Also got the accounting for ...

Continue reading