I’m reviving my blog because we’re going traveling again! Our plan is to spend March in Peru, April in Bolivia, and May in Colombia. We don’t have many commitments yet, so that could still change a lot. The blog is using Jekyll now instead of Wordpress. I have nothing against Wordpress, but I just wasn’t staying on top of security updates. With Jekyll I don’t have to because it just generates static sites.
Cairo is great for rendering stuff, but doesn't give you many options to export your data. The Python Image Library has good options to save stuff. The problem I ran into is that I have a ARGB32 pycairo surface, and PIL doesn't support ARGB32. It supports RGBA instead. After much experimentation, I came up with the following piece of code, using numpy to solve this problem: def pilImageFromCairoSurface( surface ): cairoFormat = surface.
I spent some time mucking around with the awesome and xmonad tiling window managers this weekend. I ended up with an xmonad config that I'm sure is nothing special but that works well for me. One thing that I do want is to launch certain programs (like nm-applet) when I first log in. On top of that, I want to be able to restart the window manager without exiting all my running programs.