Archive for the 'Use The Source' Category

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

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):
“”"let i [...]

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

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

Perl

Thursday, March 5th, 2009

If you do not know perl, don’t fret.. it’s extremely easy to learn.
Found in a programming forum from non-coders for non-coders…
I lol’d!

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

Rawr TankDK

Thursday, January 8th, 2009

Finally my latest addition to Rawr got released with the new version: The TankDK module!
It’s a theory craft program that provides Death Knights with the possibility to optimize their gear to the best. It is not finished yet, so if you have any proposals or comments post them at Elitist Jerks.

ThWBoard and reCAPTCHA

Monday, January 5th, 2009

At UO-BaB we still use ThWBoard as forum software. While bots seem not be able to spam it, probably because of the low distribution, we get a lot of bogus registrations. These generate a lot of undeliverable mails which choke our support mailbox.
I finally decided to do something against this and implemented a reCAPTCHA check [...]

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 show your form:
${tmpl_context.form(child_args=options)}

Updates…

Monday, September 1st, 2008

I just realized, that Turbogears 2 is coming along nicely. The new documentation, while a bit hidden, looks great. As I really prefer Pylons over CherryPy, I’m quite happy to see that. I think, I convinced a friend of mine to implement his webshop in TG2.
I committed a new optimization method to Rawr. I hope [...]

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

Vortex

Saturday, February 9th, 2008

I updated my code to support arbitrary geometries and fixed some more bug and was finally able to get some stable results for another nice problem:
The Von Kármán vortex street
Instead of a cylinder, I used a tilted plat, but it works nevertheless and is, imho, more interesting, because its no longer symmetric.

Lid-driven cavity

Wednesday, February 6th, 2008

A small video showing my self-programmed cfd code simulating a lid-driven cavity flow. I used a 200×200 grid to simulate a fluid with Reynolds number of 500. The whole simulation took about 15 minutes to run on a P4. The visualization was done with Paraview, which produced the streamlines from the velocity field.
I try to [...]