Archives 2013

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

Nexus 5 Phone Contacts WTF

I needed to phone my mother at one point this weekend.

Pulled up the Nexus phone dialer for one of the first times (I don't actually use my phone as a phone all that much). Said my mother's (full) name, saw a brief flash of her details, and they were promptly replaced with a bunch ...

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/ 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

Restricting Comments

The spammers finally convinced me that I have to restrict comments on the blog.  I was up to a few thousand blog-spams/day, enough that I was forgetting what I was going to blog about before I got through killing them all.  Comments are still open for 2 months, but trackback/pingbacks close within a few days.

PyOpenGL from spec almost there

Was stuck with no internet today, so the world gets a bit of work done on PyOpenGL...

So the branch in which PyOpenGL is generated directly from the Khronos API specification (xml) documents is almost workable. There are a lot of (internal) changes, particularly the OpenGL/raw APIs are pretty heavily rewritten, and I've landed a ...

Continue reading

Bit more forward motion on PyOpenGL-from-spec

The spec-xml-generated wrappers are getting pretty close, only the glGet constant handling is preventing the test_core suite from passing, and I want to rework that to use the spec's enum groupings to provide better coverage of those and be able to flag missing GET enum specs on generation.  Haven't started into GLX/EGL/WGL etc yet, just ...

Continue reading

Monthly archives

Previous year


Next year