Category archives: Snaking
Discussions of programming, particularly of programming Python
PyOpenGL 3.1.0b1 Available for Testing
Written by
on
in
Snaking.
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 ...
Step 1: Get Windows Updated
Written by
on
in
Snaking.
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 ...
Finally some EGL/GLES in PyOpenGL
Written by
on
in
Snaking.
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 ...
Voice Dictation Privilege
Written by
on
in
Snaking,
Tuxedo,
Young Coders.
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 ...
Django CSRF explicitly doesn't trust HTTP when submitting to HTTPS
Written by
on
in
Snaking.
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 ...
os.write() can hang, apparently
Written by
on
in
Snaking.
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 ...
Started on Win32 for PyOpenGL
Written by
on
in
Snaking.
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 ...
Integrated Graphics Really Does Suck
Written by
on
in
Snaking,
Tuxedo.
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 ...
So Far the Nexus 5 is a Nice Step Up
Written by
on
in
Snaking.
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 ...
Testing a Fresh Checkout Encounters Errors
Written by
on
in
Snaking.
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 ...