Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

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

Image-handling code would be more useful if it *worked*, of course (Well, images seem to work fine, it's *textures* that are messed up)


Shademan postponed the movie until tomorrow, so I did a bit more work on OpenGL-ctypes. Quite a lot of wrapping of exotic functions I've never had a reason to call (mostly image-processing functions). Of course, I have no tests for any of those, so who knows if they work.

However, I seem to have lost, ...

Continue reading

Image handling begins to shape up (Wrappers upon wrappers upon wrappers...)


Managed to get the image-handling code starting to look like a reasonable approach to the problem. Still quite a few functions un-wrapped, but in most cases the effort to wrap is now down to two lines of code. Also got quite a few more of the glGet* functions implemented. GLUT is still basically nonfunctional, and ...

Continue reading

Doh! Don't assume constant formatting in GL headers (Not all that surprising it's been failing... though it didn't start magically working yet...)


Turns out that all of the GLU and GLUT constants were mis-declared. I used the same script to rip them out of the header as I did for GL... but in gl.h the constants are declared in hexidecimal. In the other two they are declared in decimal, and the script got a little carried away ...

Continue reading

OpenGL works *so* much better when using error checking (But don't forget that you can't use it within glBegin/glEnd)


Just finished the surgery to make OpenGL-ctypes do error-checking for all functions that allow error checking (i.e. those outside of glBegin/glEnd). It's still a bit ugly looking in there (the scar from having two wrapper classes will eventually have to be removed), but it does make the system work with considerably more of the tests ...

Continue reading

Long day on documentation (Much easier to read now)


Spent the whole day (modulo a few minutes fixing a bug) on user-level documentation for Cinemon. Looking back it's kind of amazing that I left so much of it in point-form, there's still a number of sections that need fleshing out, but the big topics are now at least discussed in full sentences :) . ...

Continue reading

Guess it's time to start thinking about PyCon2006 presentations (On the assumption that I'll somehow justify a ticket to Texas)


The real question is what to present? The last two years I've done presentations on "black magic" (metaclasses and descriptors), and those were fun, but we've probably covered most of the interesting material in there. And even then, the presentations were really more like classes/lectures, there was no new information other than organisational structure and ...

Continue reading

Figured out part of the wonkiness (Amazing what happens when you read the XXX comments...)


For those of you who don't program, XXX comments are not blue/off-colour comments, but "I'm moving too fast here to stop and try to figure out how to deal with this corner case, come back and consider it when ready" (or something to that effect). Some IDEs will even build a todo list out of ...

Continue reading

Ooh, look, the day is dying (Where do the dead days go?)


I wound up waking up rather early today (some bleepard with a fax machine keeps trying to spam our (non-esistent) fax machine). Mostly worked on finishing stuff for the VOIP billing system (e.g. formatting line items for the customer's bills), with a bit of Cinemon work toward the end of the day.

Anyway, think I'll ...

Continue reading