Author Archives: niemeyer

Comparing package versions in PostgreSQL

This weekend I’ve played a bit with PostgreSQL extensions written in C. A while ago I wrote a Python C extension for Smart to compare Debian package versions. Now I was trying to do something similar inside PostgreSQL, and thus … Continue reading

Posted in C/C++, PostgreSQL, Project, Python | 1 Comment

Moved to a new place!

After a somewhat long effort, all posts were moved to the shiny new blog on labix.org, including comments! The new blog is based on WordPress, and brings a few new features that I was missing in LiveJournal. I of course … Continue reading

Posted in Other | Leave a comment

Support for GPS TrackMaker file format on GPSBabel

Continuing my put-those-bits-out-of-your-hard-drive campaign, I’ve released a patched version of GPSBabel with support for input and output of waypoints, tracks and routes in the binary file format of GPS TrackMaker. The patch was written six months ago (sorry :-) ). … Continue reading

Posted in GPS, Patch, Project | Leave a comment

Mandelbrot Set

I’ve finally posted the Mandelbrot Set code snippet that was sitting on my disk for a while. It computes and draws the Mandelbrot Set fractal using pygame, and also Python for Series 60. Three different screenshots are provided. They show … Continue reading

Posted in Fractal, Python, Snippet | Leave a comment

Hey, nice float!

python-nicefloat is a Python module implementing an algorithm based on the paper “Printing Floating-Point Numbers Quickly and Accurately”, by Robert G. Burger and R. Kent Dybvig. The implemented algorithm will find the shortest, correctly rounded output string representing a decimal … Continue reading

Posted in Math, Project, Python | 4 Comments

Labyrinth Solver

What about a labyrinth solver function in 16 lines of Python? :-)

Posted in Python, Snippet | 4 Comments

Several projects moved

In the last few weeks I’ve been gradually moving projects I maintain to Labix, which is using the Moin software as a CMS. Projects like Smart Package Manager python-dateutil python-constraint and others are all being hosted there now. There’s also … Continue reading

Posted in Project, Python | Leave a comment

Time to shake

I’d like to communicate that I’m shaking my life a bit, and even though I have a lot to say, I’ll try to be relatively short.

Posted in Other | 10 Comments

Python module for Constraint Solving Problems

The constraint module presented in PyCon Brasil and later on EuroPython 2005 is now available. Here is a trivial example, solving the classical rooks problem: problem = Problem() numpieces = 8 cols = range(numpieces) rows = range(numpieces) problem.addVariables(cols, rows) for … Continue reading

Posted in Conference, Project, Puzzle, Python | 5 Comments

Credit where credit is due

From Progeny Componentized Linux page: Our future development efforts will center around bridging the gap between Debian APT and the APT variants that have emerged in the RPM world, as well as adding support for emerging efforts to standardize software … Continue reading

Posted in Other | 7 Comments