Wednesday, February 17th, 2010
I recently Ding!ed committer for Unladen Swallow I’m currently trying to teach Unladen to recompile functions. This turned out to be more complicated than I anticipated. There is one especially obscure ‘bug’. Enabling recompilation makes the subprocess module tests hang, but only if it is executed after the pickle tests. The hanging test tries to [...]
Posted in Use The Source | No Comments »
Monday, October 19th, 2009
I was quite happy to notice, that my favourite VCS, Mercurial, was released in version 1.3.1! And I’m still using 1.1.2 out of the Ubuntu repository. Eagerly I updated from the release PPA, but what did I know back than. First thing I noticed was the half done translation. German technical terms just suck. More [...]
Posted in Use The Source | No Comments »
Sunday, July 26th, 2009
While studying for my exams, I tried to implement some examples from a book about virtual machines. The result was a nice little program which can compile simple functional programs into python bytecode! The only thing you need is the ply parser generator. To compile a function just use: import topcompiler @topcompile.compile def func(x, y): [...]
Posted in Use The Source | 1 Comment »
Saturday, May 16th, 2009
If you want to enhance your TG2 app with some tech, like .. say a RPC-XML Interface, you can use the special Controller provided by Pylons: XMLRPCController. Unfortunately you can not just mount this controller as any other Turbogears Controller, because it does not support object dispatch. Instead you have to use the Pylons function [...]
Posted in Use The Source | No Comments »
Sunday, May 10th, 2009
While playing around with Sprox and TG2, I found a little bug for which a fix is commited to Sprox, but not yet released. I had to a bit until I found a nice and easy workaround. I just copied the changed code into a Mixin class, which can be patched into the declarative Sprox [...]
Posted in Use The Source | No Comments »
Friday, April 24th, 2009
While surfing around I discovered a nice little Mercurial Extension: hgkeychain. Unfortunately it’s only for Mac. As Gnome has password management of it’s own, I looked there is someway to access it via Python. And there is! So I wrote a quick extension myself: hggnome-keyring It uses the usual yadda yadda for installing (see mercurial [...]
Posted in Use The Source | No Comments »
Monday, February 9th, 2009
Endlich habe ich es geschafft mein neues ‘kleines’ Projekt fertigzustellen: repair.4geeks.de Wie jeder der sich irgendwie mit Computern beschäftigt, habe auch ich meinen Ruf weg. Das hat zur Folge, dass ich genötigt werden Computer von Freunden und Bekannten zu reparieren. Irgendwann kam mir der Gedanke, meine Erlebnisse in wiederverwertbare Form zu gießen. Erste Versuche mit [...]
Posted in Use The Source | No Comments »
Sunday, December 14th, 2008
I just spent 2 hours to find a way to set the value of a tw HiddenField. Unfortunately the author did not think, it would be a good thing to mention such nonrelevant tasks in the documentation. To save you searching for yourself: options = {‘form_name’ : {‘attrs’ : {‘value’:'your_value’}}} Later in the template to [...]
Posted in English, Use The Source | 1 Comment »
Thursday, June 19th, 2008
I’m toying around with a new revision control system: mercurial. It’s written in Python (first big plus) and for the amount of code it’s really awesome. It features distributed source control, fast commits and a really nice web interface. There is also a Tortoise-’Version’ for it (unlike git). Only big negative point: Its hard to [...]
Posted in Use The Source | No Comments »
Friday, October 5th, 2007
To make it more easy to integrate my Sparse Grid framework into existing applications (like those almighty financial applications where one function evaluation takes a whole day to calculate) and of course for easier development/testing, I searched for a way to call python callables from my swig-wrapped c++ code. Lets first have a look in [...]
Posted in English, Uni, Use The Source | No Comments »
Monday, September 17th, 2007
Via Slashdot: An interesting discussion about concurrency in Python. I must say, I have to agree. If you design a new language at the moment, you have to ask yourself some questions: What does my language do for people using no concurrency at all. Are they hindered by the concurrency support (e.g. slower code execution) [...]
Posted in English, Nettalk, Use The Source | No Comments »