Archives 2012
Make your nginx-proxied Django site detect SSL (HTTPS)
Written by
on
in
Snaking.
One of the nice new features in Django 1.4 is that it allows you to (easily) detect an upstream server's use of ssl using request.is_secure(). This means that your nginx configuration can use http or https on the same server and your Django site can detect it. The magic is accomplished by *always* setting a ...
Control Default ALSA Device via Environment Variable
Written by
on
in
Tuxedo.
Say you want to target audio to one of N (virtual) devices in ALSA for a tree of processes. That is, you want to say "hey, all you lot, play out channels 2 and 3 of the sound card as though they were a separate card" and then tell another set of processes to do ...
Any LibreOffice/OpenOffice/PyUno Gurus in the House?
Written by
on
in
Snaking.
I'm trying to code up a service that needs to auto-play presentations (mostly Powerpoint). Users (who may not be at all technically savvy) need to be able to upload the files and have them advance regardless of whether they have properly specified auto-play settings (if they *have* set the advance properly, we want to respect ...
Django JQuery File Upload
Written by
on
in
Snaking.
I'm sure there must be a really nice packaging of this, but so far all I've found is example projects that don't quite do what I'd want... so here's the basic setup; you have a Django model with File fields that you want to convert to using JQuery File Upload. For now, we'll assume you ...
Build PIL on a custom Python2.6 on recent Ubuntu
Written by
on
in
Snaking.
If you need PIL in your custom Python 2.6 build (your build needs to be custom if you want to target LTS Ubuntu Server's default Python while working on a more recent Ubuntu), you will likely find your PIL build doesn't work (because, of course, you have a 64-bit build of Ubuntu and the libraries ...
First Lessons in Programming, Software Carpentry Review
Written by
on
in
Snaking.
As mentioned a few times, Matt Davis and I taught the Python section of the Software Carpentry Boot Camp this past week. Overall the experience was positive. We had approximately 4 (stretched to 5) hours, and developed our own curriculum with a fairly strong narrative. Almost every exercise focused on a task, taking a CSV ...
Software Carpentry Collaboration
Written by
on
in
Snaking.
Matt Davis and I are going to teach the Software Carpentry session on Python tomorrow at University of Toronto. Pretty happy with how the collaboration worked so far. We loaded a bzr repository into Dropbox then both branched the (local) repository, pushing, rebasing etc on our file:/// urls. We got pretty-much instance notices when things ...
Green Fields are Fun!
Written by
on
in
Snaking.
Sitting down and playing with "what needs to be in the box" for OpenGLContext 3.0 (the most boring working title I can come up with). Time constraints suggest I'll have to do a migration rather than a re-implementation, so the name is probably apt. The GUI-library integration is fine, the scenegraph engine, node-paths, matrix calculation, ...
Phenomenal Enterprise-Grade Messaging: Itty Bitty Message Size
Written by
on
in
Snaking.
(Read that in Robin Williams' Genie Voice) A project I used to work on has been informed by certain rabbit-mq types that they should not send messages > 15KB on a RabbitMQ server because it would "chew up all the subscription threads and limit throughput"... which... wow, dropped off a robustness/scalability/credibility cliff there.
Planning to use Numpy Structured Data Types
Written by
on
in
Snaking.
One of the things I'd like to have for a revised OpenGLContext/scenegraph API is a nice, efficient, friendly, mechanism for processing buffer data. I currently tend to follow VRML97's OpenGL 1.1-style array model, which is very dated these days. Each component of a vertex is separated out into position, normal, and textureCoordinate arrays and the ...
Monthly archives
- January 2012
- February 2012
- March 2012
- April 2012
- May 2012
- June 2012
- July 2012
- September 2012
- October 2012
- November 2012
- December 2012