Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

PyOpenGL 3.1.0b1 Available for Testing

PyOpenGL and PyOpenGL_accelerate 3.1.0b1 are now up on PyPI.  There's MS Windows 32 and 64-bit installers for the windows-ians. The main "features" planned for the 3.1.0 release (and available in the beta) are:

  • raw wrappers generated from the ARB source XML definitions, this means that it covers a lot more extensions, including GLX, WGL, EGL ...

Continue reading

Step 1: Get Windows Updated

Booted into Windows to get the PyOpenGL-Accelerate release compiled, and started following my standard "update windows, AV definitions, etc" pre-release steps... and Windows Update failed. Lots of fail (and 3 hours of trolling through MS support and trying dozens of different fixes intended to reset/verify/cleanup Windows Update state) later I wound up with some Windows ...

Continue reading

Finally some EGL/GLES in PyOpenGL

I finally have a working demo using EGL and GLES under X11/Mesa (Kubuntu 12.04). I can run the most basic of ES1 and ES2 (as well as GL) tests under an EGL-provided context hosted by python-xlib (i.e. a raw X11 window). There's no guarantee that actual useful work could be done with it, but clearing ...

Continue reading

Voice Dictation Privilege

Apparently I'm blessed with a Voice Dictation friendly accent and tone. I can pretty much use most Voice Dictation systems, including the ones on Android, Dragon Naturally Speaking, and PocketSphinx. The results aren't mind-blowing-ly good, but if it's quiet and I speak clearly and train anything that gets missed, I get reasonable results.

Watching a ...

Continue reading

Django CSRF explicitly doesn't trust HTTP when submitting to HTTPS

I managed to introduce a wonderful little bug in the Django blog site here. I wanted all contributors (those making comments and myself) to use HTTPS, but I didn't want to rewrite the templates for the Zinnia blog entries, so I just naively redirected the comments form to the HTTPS site. CSRF protection in Django explicitly does ...

Continue reading

os.write() can hang, apparently

Wound up spending the whole afternoon tracking down an "only happens in production" bug where a sub-process would just hang, but only when big chunks of data were involved. Seems that os.write() was trying to write more than the target pipe could handle, so was winding up blocking. To tired to actually confirm that tonight, but ...

Continue reading

Started on Win32 for PyOpenGL

Booted into Windows to get the PyOpenGL xml-generation branch started on extension management. So far not working, as the extension querying mechanism (which is itself an extension) doesn't show up with wglGetProcAddress.  Annoying thing is that it *did* show up while debugging once, but not since then.  I'll likely find a few more bugs once ...

Continue reading

Integrated Graphics Really Does Suck

So apparently I forgot to re-install the fglrx driver after updating my laptop to Kubuntu 13.10.  So as I've been testing PyOpenGL I've been amazed by how cr*ppy the GL performance has been, and I kept running into "this doesn't work at all" bugs for newer features. It did make me actually look at what ...

Continue reading

So Far the Nexus 5 is a Nice Step Up

My youngest threw my (ancient) Motorola Milestone (Android 2.1 era phone) across the room onto a tile floor. Amazingly, the phone still worked, and I've been using it broken for a while now. I almost talked myself into just keeping it, as after all, a few minor cuts on the finger-tip from broken glass don't ...

Continue reading

Testing a Fresh Checkout Encounters Errors

So it turns out that the xml-generation branch for PyOpenGL was entirely broken. I'd cleaned up a module (OpenGL/constants.py) that shouldn't have been necessary any more, as the types and constants were moved into the OpenGL/raw/GL hierarchy.  Oops, turns out that everything imports that module.  Spent a ridiculous amount of time fixing that (i.e. making ...

Continue reading