Archive for the 'Misc' Category

Small is beautifull: CherryPy

Today, I decided to write a new webapp (this will be out soon). I have been off since a while in the webapp developpement, so it’s a bit hard to start this new project.
I decided to look on recent Quixote’s developpement on Alinea. I first used the same components.. after 2 hours.. nothing works :

issues [...]

admin May 1st, 2005

Glade-2 to .py

In a past life, I spent a lot of time with gtk-1 and glade (for a commercial app). After this experience, I tested several approach:

PyQT (using QTDesigner)
wxPython (w/ wxGlade)
Glade 2 + libglade

Here is my personnal feeling:

PyQT, is really great. But I really don’t like the licence. And since I work in a school, using this [...]

admin January 13th, 2005

Keyboard shortcut with Python-Xlib

I use this little script on another computer for a while. Meanly to remote drive my xmms throught the xmms python module. Anyway I just write this little intro here, perhaps other people may be interested..
This litte script use Xlib python module to grab keys. If the key is special key on my laptop, i [...]

admin December 16th, 2004

Python on a WRT54GS ?

Ok, I ‘ve been off for a little time right now. The main reason, is that I spend some time hacking my new Wireless access point: WRT54GS.
I spend a lot of time tweaking the config to use this in client mode with dhcp thought the WAN port and other nuts. I spend some time on [...]

admin December 1st, 2004

The secret behind memory allocation in Python

I’ve been looking for this for a while !! Why this f***ing Python process eat so much memory ? I freed all the objects, and don’t have any circular references ..
Every advanced Python programmer need to read this carefully.
On the other side, i’m looking for a good shared memory module for Py ? Do you [...]

admin November 5th, 2004

Python ALSA-SIG ? :)

Is it the time for a python alsa SIG ? Phil seems to think about it, why not. I guess it’s time to read the pyrex howto for me:))

admin October 27th, 2004

Obscufated email ?

Little hack to make a bit harder for spammers to parse email address on the web.
def cryptEmailAddress(addr):
r = []
for l in addr:
r.append(’&#%d;’ % ord(l))
return string.join(r,”)

>>>cryptEmailAddress(’jkx@larsen-b.com’)
‘jkx@larse….’
And simply put this in a href mailto: and enjoy :) Check the article’s pages on this website for a example.

admin October 6th, 2004

Alinea 2

Ok let’s go. I’m working on Alinea2 right now. Alinea is the stuff that power this website and others. I’ll hope to get it working quickly.
Beside, this is a big work.. I loose my time with CSS hacking right now ! I guess I should stop this but .. i don’t.
from AlineaLib import motivation
motivation.enable()
Let’s go [...]

admin October 2nd, 2004

Python web developpement: the dilemma / Act 2

After a long trip around the Python web developpement tools, it’s time to fix. In a previous post (please read all comments before ..) we have talk for a long time about various web frameworks. Here is my personnal conclusion:

A web framework has nothing to do with templates. It need to allow to wrap templates [...]

admin September 15th, 2004

A Pie for perl coders

Ok after the parrot challenge, perl coders loose.. so they receive the pie. 2 in fact :)

admin August 9th, 2004