Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

OpenGL-ctypes extensions inching forward (Autogeneration (and working) are the sticky parts...)


Today (after defeating grams 4 games to 2) I started in on the OpenGL-ctypes extensions. Weird thing is, I can't see in PyOpenGL where it's passing in the GL context to the function-binding code. I could have sworn we needed the extension initialised for each context, but it looks as though the context is only ...

Continue reading

When graphs attack! (I'm such an OpenGL tease...)


Nothing to do with OpenGL-ctypes. Spent what little time I was awake yesterday on getting the upstream channel signal-quality monitor graphs written for Cinemon. Matplotlib is fine, but somehow the interface feels... mushy... like I just dump data in and hope that it comes out okay.

That kind of mushiness is good for what the ...

Continue reading

Nights of poker and programming gambles (Push the queuing effects lower in the software stack...)


Got into a mental exhaustion state last night. Decided to go out to Starbucks with Shane instead of pushing at the code. As has become normal for him, he wanted to play poker.

We each won one game (that is, took all the chips in multiple hands). My win was rather fast, I just played ...

Continue reading

A day with Nevow and LivePage (Good news is that the SVN version fixes the bug...)


I discovered a bug in the released Nevow that I am using for the trigger configuration pages in Cinemon. The bug is fairly simple, when a user returns to a page (loading it from their browser's cache), the server has not rendered the page for this loading. Because Nevow constructs the client connection object during ...

Continue reading

Wow, this feels good (Realisations while boring other people...)


Dave was mentioning that he's getting into the cable-modem running business after dinner (in turn after UU). So of course I blathered on and on about Cinemon.

And somewhere in the middle of blathering it hit me "this is a really good product". Sure, it's a tiny niche application. Sure, there are things that could ...

Continue reading

Some are merely bronze (nVidia doesn't appear too stable at the moment...)


First the good news: I just squeaked through by the hair of my teeth to defeat grams at pool. I messed up twice trying to snooker her, winding up instead giving her perfect 2 or 3 foot shots to win the game. But the second time (the last game of the day) she horribly miss-shot, ...

Continue reading

Meetings stretch days (Temporal hamburger helper...)


I like meetings (I'm a people junkie), but they leave me with this nagging little voice that tells me I need to make up for the time spent in them. So I wind up working a full day after the meeting, which turns the day into a long grind.

Anyway, we're finally getting a permanent ...

Continue reading

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