Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Controllers in Nevow begin to take shape (Now just have to figure out how to make them reusable...)


Wound up making the trigger-definition code capable of building nested trees of objects, rather than a simple list. It was a fairly straightforward refactoring of the list-handling code. Still haven't figured out how to make the pattern reusable for other projects. Not a high priority just yet.

Should get the hard disk tomorrow to stop ...

Continue reading

Nevow needs some model:view:controller mechanisms (Gets repetitive coding controls manually for each property...)


Spent the bulk of the day getting the trigger mechanisms cleaned up and ready-to-run. These are set up using a Nevow LivePage. Thing is that every control on the page winds up with 2 different pieces of code to set/render the values for the control. One to do the first-pass render, and one to do ...

Continue reading

I seem to have lost all patience with Windows (Should probably get someone else to maintain the toolkit compiler document...)


Booted into Windows intending to do the Win32 platform module for OpenGL-ctypes. To get that working I need to get ctypes built from CVS. Unfortunately, the code requires the _ftol2 function, which isn't available in the toolkit compiler. After 30 minutes of poking at it and only getting the _ctypes (but not the _ctypes_test) extension ...

Continue reading

GLE flies the OpenGL-ctypes skies (Along with major reconstruction of the wrapper module...)


One of the things I'm trying to do with building OpenGL-ctypes is to figure out just what's needed to wrap complex software using the package, and (eventually) to be able to suggest ways to make ctypes easier to use for such tasks. Part of doing that is getting it wrong a couple of times, and ...

Continue reading

What to work on when I get back? (GLU, GLE, GLUT, or Win32 and WGL)


Waiting for Rosey to get her hair dried before I can head off to gram's place. I'm hesitant to plow back into the GLU or GLUT stuff because I've burned so many hours spinning my wheels in there. GLE would be a nice "easy win" (I hope), and the Win32/WGL stuff should be straightforward. I ...

Continue reading

New ctypes error-handling protocol (Simplifying code here and there...)


Thomas added a spiffy new protocol to ctypes to allow for registering error-checking functions for a ctypes cFunction. It's a pretty simple protocol, just assign to the errcheck attribute of the cFunction a function with a signature like so:
def glCheckError( 
result,
function,
cArguments,
*args
):
"""Return final result or raise error"""
return result

With ...

Continue reading

Full-content feeds for CoreBlog (Haven't yet figured out how to make the stylesheets work properly)


One of my readers noted that the Plumbing Life's Depths RDF feeds are rather skimpy in the amount of information included in them (only a very small snippet from the main body of the text). So I've added a full-content (but not extended-content) feed, i.e. a feed that has everything that appears on the main ...

Continue reading

Long day's Ajax into night (Nevow livepage for Cinemon)


Some part of me is definitely a geek. I wound up working more than 14 hours straight today, mostly because I just couldn't stop working on the problem until it was solved, but the problem refused to solve itself.

What I've been doing is creating a trigger definition mechanism using Nevow's LivePage (Ajax) technology. The ...

Continue reading

Substrates are important for productivity (Servers, for instance)


The whole dratted day has been a server-less mess. I did a major graphic re-kit of the VOIP front-end and then tried to pick up all of the little extra pieces that don't require a working server, but when the project is "a front end to this server" it's... uh... less than spectacularly easy to ...

Continue reading

Well at least the redbook demos work (Running tests is a good thing...)


So, I decided I would try running all of the demos/tests that could be expected to run with the current state of OpenGL-ctypes. There's a considerable number of working tests (see the "continue reading" link below for more detail than anyone could possibly care about).

What's better, in doing so, I discovered a fairly big ...

Continue reading