Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Python's C-api mechanism is just horrible (More #defines than the original)


Giving up on PyOpenGL for the night. Creating a C-level API for a Python module requires either manually maintaining huge vtables, or somehow modelling the whole set. I've been trying to go with modelling the functions in Python, and that just isn't working, it's too awkward to modify the parts that need modification.

Don't know ...

Continue reading

A day with PyOpenGL (At last)


Spending the day working on PyOpenGL. So far a couple of significant bugs and one setup problem fixed. Now starting work on the 2.1.0 branch again.

One of my major goals for 2.1.0 is to make the wrappers more flexible wrt which Numpy versions (if any) are loaded, and potentially to allow for substituting Numarray ...

Continue reading

UU tonight (Suppose I should put in an appearance...)


Was intending to skip it and spend the night working on Cinemon, but I suppose actually talking with Bryan would be a good thing too. Still frustrated with Twisted's documentation. Took a quick break to work on a Job Jar item for the web-checker program.

It's so much easier to work when you have an ...

Continue reading

Twisted needs docstrings!!! (When your primary API docs are auto-generated, you *must* put in docstrings)


Frustrating couple of hours here trying to get Twisted to either use a serial port or a TCP port to test the EFT server. Mostly it's frustrating because the API documentation doesn't tell you what methods are doing, what they return, what their arguments should be, how to deal with the results to accomplish common ...

Continue reading

Cinemon gets code back from common applications... (Or, my day in slogging...)


I've been working on other projects for a couple of weeks now, ripping pieces of Cinemon's application framework out and using them for the other projects as I go. Today I took my "day off" to try to move Cinemon forward.

Most of the day was spent working on the hierarchy-importer. That moved forward quite ...

Continue reading

Kernel modules need dependency notes (Or... how I got the tablet working)


Turns out that the "wacom" kernel module in 2.6 kernels is actually just one of about 5 modules you need to load. With all of them loaded, and some xorg.conf settings copied from a howto, the tablet is again "working" under xorg. However, it still has that annoying habit of getting stuck about 10-20 pixels ...

Continue reading

Breaching seems to have worked (finally) (AMD64 seems to be the ticket (GRP helps too))


So, after this evening's "real" work, I decided once again to try to install Gentoo, but this time I went whole-hog and built with the actual 64-bit architecture (which is far less extensively tested than the 32-bit version). Also decided to use the Gentoo reference platform (GRP) to get the bulk of the compiling done ...

Continue reading

Breaching leads to madness (Gentoo dives back into the insanity)


Left Gentoo last night compiling xorg-x11 (the base windowing system for Linux machines). About 5 in the morning I wake up to find that the dratted thing has stopped with exactly the same errors-in-gcc's-linker that the wipe-and-recreate were supposed to fix.

Tried to boot back into Windows, and it was giving blue-screens-of-death every time. Pulled ...

Continue reading

Breaching going better this time (Don't use USB keyboard and mouse for Knoppix, oh, and use the actual Gentoo CD)


I'm up to the stage where one builds the kernel in the latest Gentoo install. Probably 4 hours wasted trying to get Knoppix to work as the hosting/building environment.

For some silly reason it kept losing my USB keyboard and mouse. After I switched both to PS/2 connectors that problem was solved, but then the ...

Continue reading

A few days of paying work (Just for a change...)


Switched back to the web-"spidering" application yesterday, a few more hours of work today on it. This is really just a web-checking engine that goes out and sees if any of a few tens of thousands of pages have changed in the last day or so and reports the results.

Nothing really complex there, but ...

Continue reading