Category Archives: Snippet

Permutations and derangements

Two snippets to compute permuatations and derangements in Python.

Posted in Math, Python, Snippet | 4 Comments

Progress Cell Renderer for pygtk

Here is a Progress Cell Renderer for pygtk based applications. It allows one to embed a progress bar inside a TreeView. It’s being used in Smart to present progress for downloads of packages and other items.

Posted in Python, Snippet | Leave a comment

Using pyperl to build a python-like xchat interface for perl

My weekend was taken by boring academic stuff. More specifically, I’ve built a validator in C, including a tokenizer, a parser, and a scope system, to check for a small subset of the C language syntax. Anyway.. I was still … Continue reading

Posted in Perl, Python, Snippet | 1 Comment

Webmin and Perl inside Python

Today I’ve been talking to Cavassin about Webmin, and wondering if it would be possible to write Python modules for it. I was sure that I wasn’t being original in that idea, and Cavassin also mentioned that he had read … Continue reading

Posted in Perl, Python, Snippet | Leave a comment

UTF8 to ISO-8859-1 xchat converter

Today I’m a little short in time, so I decided to implement one of the bit-sized tasks in my backlog. These UTF8 raw strings appearing in my xchat when someone else is using that encoding is bothering for a long … Continue reading

Posted in Project, Python, Snippet | Leave a comment

Python dateutil module released

I’m a little late here, since python-dateutil was released last week. Anyway, this is a Python package providing powerful extensions to the standard python datetime module, available with Python 2.3. I wrote it because I really missed some generic date/time … Continue reading

Posted in Project, Python, Snippet | Leave a comment