Unladen Swallow

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 [...]

Downgrade

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 [...]

Simple ML to Python

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): [...]

Using Pylons-Controller in Turbogears 2.0

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 [...]

Sprox and TG2

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 [...]

Mercurial: hggnome-keyring Extension

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 [...]

repair.4geeks.de

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 [...]

ToscaWidgets headache

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 [...]

Mercurial

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 [...]

Calling Python functions from SWIG/C++

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 [...]

Python 3k

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) [...]