Save the ions!

Category: Programming

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

UVa

A while back, when I was a student in Paris, one of our teachers told us about some project from University of Valladolid (I can’t remember the actual name of the project), it was a contest for programmers, and the goal was to solve as many simple algorithmic problems as possible. At that time, I [...]

Fun VoIP use

As I was cleaning up data on my cellphone tonight, I found a video I had recorded about a year ago. I was working -as a side-contract- on a VoIP telephony / PA / bell system for schools. At the lab I was working, I had about 10 phones, 6 speakers (for the hallways), and [...]

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

Quickly using OpenSSL in C

A little while ago, I was working on a client/server communication module, and I wanted it to be secure. Looking at the documentation I could find, I quickly figured out that it wouldn’t necessarily be easy to do. Amongst the first issues are the validity of the server’s certificate, which, as I didn’t want to [...]