Category archives: Snaking
Discussions of programming, particularly of programming Python
Hope they aren't all this slow (First extension for testing goes very poorly...)
Written by
on
in
Snaking.
Decided to test the wrapper for one of the few PyOpenGL extensions to which I actually have access, ARB vertex object buffer. Unfortunately, so far 2 out of 3 functions have required completely custom wrappers. This is going to be a very slow process if all 180+ new wrappers need this kind of attention.
The ...!-->!-->
New PyTable is out girls and boys (0.8.0 adds the PySQLite support)
Written by
on
in
Snaking.
Did a release of PyTable last night. Only significant changes are the PySQLite 2.0 support and the general support for non-pyformat database drivers.
Today, as my dinner and a movie plans have fallen through :( , I shall endeavour to get some groceries laid in, and then see if we can't get PyOpenGL 2.0.2 built, ...!-->!-->
Better pyformat on non-pyformat database support (And the PySQLite driver is basically finished...)
Written by
on
in
Snaking.
The PySQLite driver is now to the point where it can run the full PyTable test suite. I also rewrote the pyformat support so that it parses (well, really just does a minimal bit of tokenising to recognise strings) the SQL in order to avoid extraneous escaping.
8 more unbillable hours (VNC makes things *so* slow...)
Written by
on
in
Snaking.
So far today, my entire useful output has been getting the SIP demo set up on the laptop. Um, argh.
VNC was a serious PITA. Internet Explorer (they don't have a real browser on the machine) messed up every single .tar.gz I downloaded. Cygwin's tar and gzip kept crashing in such a way that VNC ...!-->!-->
The remains of the day (Pre-meeting...)
Written by
on
in
Snaking.
Before the meeting I spent much of the day working on a presentation for PyGTA next Tuesday. Basically I'm focussing on New Style classes and all the features and implications they have. Particularly focussing on the descriptor API.
I've been using descriptors for a long time now. They are the basis of both OpenGLContext's VRML97 ...!-->!-->
Remember to flip the switch (Cinemon bug is so shallow it's stupid...)
Written by
on
in
Snaking.
As Tim and I were leaving my place to head to the management meeting I realised that the symptoms Bryan had just described to me (and most of the mysteriously disappearing symptoms from yesterday) would all be explained if the Physical Group watchers were somehow managing to crash silently (i.e. without logging any errors).
When ...!-->!-->
Too much to hope for (Something triggers a cascading failure again)
Written by
on
in
Snaking.
Something in the code introduced to improve the discovery process has managed to produce a failure where the main operations block for too long, causing the zombie watcher to attempt to restart, but it's unable to kill the main process.
Have to figure out a reliable way to force the killing... also need to figure ...!-->!-->
Long day's bug-hunting into night (Strange little bugs scurry under discovery...)
Written by
on
in
Snaking.
Cinemon was displaying some strange behaviour during discovery, mostly dropping off modems and/or discovering them only after 4 or 5 scans. Haven't been able to isolate the proximate cause yet, but the effect seems to have been fixed.
I hate it when a fix works but I don't know why.
Using pyformat queries on non-pyformat databases (Or, why I was getting frustrated with PySQLite)
Written by
on
in
Snaking.
I use the DBAPI's pyformat query format exclusively. It's supported by both the PostgreSQL and MySQL drivers, and it's just a superior mechanism for creating queries (especially with PyTable's SQLQuery class). So, of course, as I was writing the SQLite driver for PyTable I was obviously using pyformat queries.
Problem was, SQLite doesn't support them, ...!-->!-->
Report the error with *some* specificity (Getting somewhat tired of "error preparing statement" messages)
Written by
on
in
Snaking.
SQLite has this annoying habit of reporting all syntax errors with just the text "error preparing statement". That becomes a serious PITA when you're auto-generating huge query strings, but even with the short schema-discovery queries I'm finding it frustrating.