Save the ions!

Category: Python

Newton’s method for square root

A while back, my friend Yannick showed me that the source code for Return to Castle Wolfenstein had been made public. The part that interested him the most was the way they (he knew the name of the developer, I forgot it, sorry) calculated square roots. I’ll let you have a look at it first: [...]

Introducing (python-)caldav

During the last few days, I’ve been busy writing a CalDAV client library for work. This is a requirement because we are going to integrate calendars from various sources in one of our websites. CalDAV is clearly the way to go, but as far as libraries go, the only one I’ve been able to find [...]

Django Debug Toolbar

I wish for two things: That there was some kind of RT function with rss feeds (the only feature I like about twitter) That Django Debug Toolbar is merged in django 1.2+   via Planet GNOME BTW, I can’t believe no one else on Planet Django mentioned it yet!

Modifying the regexp for usernames in django-admin

About a month ago, I built a centralized authentication backend using django-roa for my company, AUF. It’s actually a cascading authentication system, since I copy locally (in Django’s own authentication system) the account, once validated. That was working just fine, until I tried adding some of my users’ local accounts in different groups. The distant [...]

Introducing django-exportateur

Exportateur? OK, this article is a bit late, but I think it’s still necessary to properly introduce a new project. At work last week, I had to write a generic way of exporting a QuerySet to csv, ods, and maybe some other format later on. Since I work at AUF, I frenched up the project’s [...]

Logging your instances' history in Django

History tables? While working on a rewrite of one of our web app here at AUF, I needed to replicate a logging functionality. The old system was written with php4 (please don’t barf on your screen), and so you can imagine how such a thing could have been done: Get current entry in the table. [...]

Packaging python applications/modules for Debian

I got to work on a fun project yesterday, I needed to build a script that could generate a Debian package from a python module. Yes, that does sound easy enough… Except that it’s not! First of all, how does one build a .deb package? There’s lots of documentation on that, probably way too much, [...]