Archives September 2009
Finally setting up the Asterisk server
Written by
on
in
Tuxedo.
Today just never seemed to materialize. I wound up sleeping most of the afternoon to try to finish off the last of this cold. I spent the evening assembling furniture and then watching a forgettable movie with Soni. In the middle of that I've been working on getting our Asterisk server set up. I have ...
ToscaWidgets JQuery and TinyMCE (Tutorialish-ly)
Written by
on
in
Snaking.
So you've browsed the ToscaWidgets web-site and know that there's a JQuery Plugin and a TinyMCE (Rich-text-editor control) plugin... now how the heck do you use them? Not a lot of documentation for these two pieces, so I've tried to cobble together a minimal example. Fair warning, I'm piecing this together basically without any documentation ...
ToscaWidgets JQuery and Flot Plotting (Tutorialish-ly)
Written by
on
in
Snaking.
Continuing on from our previous tutorial, here's a quick example showing how to create a Flot plotting library plot using tw.jquery's FlotWidget class. In our root.py controller module, we'll import the widget and some support functions:
from tw.jquery import FlotWidget
from math import sin,cos
import simplejson
The FlotWidget is part of the core tw.jquery support, ...
Wrapping JQuery plugins for ToscaWidgets/TurboGears
Written by
on
in
Snaking.
Continuing my explorations of JQuery + TurboGears today, I started working on a simple RTE-light wrapper widget. RTE-light is an extremely small, simple analogue to TinyMCE, so I figured it would be easy to set it up with the tw.tinymce project as reference.
There's a paster script to auto-start a widget project, so that went ...
I forget how advanced TurboGears 2.0 is, sometimes
Written by
on
in
Snaking.
I wanted to code up a single-form application for updating/editing the PyGTA events. Since it runs on Vex and I didn't want to bother them with setting up per-user WSGIs or TurboGears for me (they do give me the space free, after all), I went with bald CGI.
Wow.
I've written very large CGI-only systems ...
First PyGTA Class Begins to Take Shape
Written by
on
in
Snaking.
We had a lively PyGTA this evening on the topic of concurrency. After which I put out a call for those who are interested in helping setup and teach (low-cost) courses on Python.
Our first course looks to be an Introduction to Django, likely on a Saturday in early November, taught by a consultant who ...
Hack to map Vertex Buffer Objects into Numpy arrays...
Written by
on
in
Snaking.
This post from the numpy list shows you how to turn a ctypes c_void_p into a numpy array. The glMapBuffer() function maps your currently-bound array into a void * which you can access directly... combining the two:
def map_buffer( vbo, access=GL_READ_WRITE ): """Map the given buffer into a numpy array...""" func = ctypes.pythonapi.PyBuffer_FromMemory func.restype = ...
Hard-linking and disk-space... whatever...
Written by
on
in
Tuxedo.
Toying yet more with compressing rdiff-backup repositories with hard-linking. Turns out there's already someone who's done it. My script for hard-link finding is different than the (packaged) one he's using, but it seems to have the same basic idea (I use filecmp, though, rather than reading the files myself, and I don't check owner/group/mode ...
Further to back up nirvana...
Written by
on
in
Tuxedo.
Continuing to toy with rdiff-backup. There's enough areas that you *don't* want to back up (or rather, don't need to, such as icon and font caches) that you wind up with some pretty hideous command-line operations if you go that route, but this post is about another need, namely the need to "compress" the storage ...
rdiff-backup with source-control and mozilla-profile handling...
Written by
on
in
Tuxedo.
Can't sleep, so thought I might do some work getting a better backup system built for our machines. I really like rdiff-backup so far, it's got the "rewind to any time" functionality I'd like, along with reasonable query features and fairly simple operation, so this:
rdiff-backup --exclude-if-present .svn --exclude-if-present .bzr --exclude-if-present CVS
pretty much does ...
Daily archives
- Sept. 2, 2009
- Sept. 3, 2009
- Sept. 7, 2009
- Sept. 8, 2009
- Sept. 17, 2009
- Sept. 24, 2009
- Sept. 26, 2009
- Sept. 30, 2009