Category Archives: Programming

64-bit Scientific Python on Windows

Getting a 64-bit installation of Python with scientific packages on our dear Windows isn’t as simple as running an apt-get or port command. There is an official 64-bit Python build available but extensions like numpy, scipy or matplotlib only have official 32-bit builds. There are commercial distributions such as Enthought that offer all the packages built in 64-bit but at around 200$ per license, this … Continue reading 64-bit Scientific Python on Windows »

My time at Sun Labs and pyaura

My internship at Sun Microsystems Labs, which has been going on for about 15 months – 9 of those full time at their campus in the Boston area – is coming to an end. During the course of those months, I’ve met a lot of very smart and fun people, I’ve worked on very challenging and stimulating problems and I’ve discovered a bunch of really … Continue reading My time at Sun Labs and pyaura »

Using filemerge for mercurial diffs

A friend of mine found a script that brings up OSX’s FileMerge program instead of the text-based file comparisons you get with mercurial with doing an “hg diff”. download this script and make sure its location is in your PATH add the following to .hg/hgrc:

Now type hg opendiff <filename> (hg op is enough), instead of hg diff <filename> Source

SQLite3, php5 and MAMP

The version of php5 bundled with MAMP doesn’t come with sqlite3 support built-in out of the box. Here’s how to add it, considering the following setup : SQLite3 installed through MacPorts php5 used through MAMP I used the php-sqlite3 extension. When you run phpize, make sure you are actually using the one from MAMP by calling it with its full path  /Applications/MAMP/bin/php5/bin/phpize. I then complied … Continue reading SQLite3, php5 and MAMP »

Ways of setting a CSS property to an element in GWT [UPDATED]

When I needed to add or modify a CSS property of an element in Google Web Toolkit (GWT), I’d always do it like this :

However, if there was already any style information for defined for that element, it would be overwritten. You could get the current attributes first and then readd them along with your new info but there is a much cleaner … Continue reading Ways of setting a CSS property to an element in GWT [UPDATED] »

GWT, state and external application-handled links

I came across the problem of having to open an external link (handled by a specific application, in this case Spotify) from a GWT application. The link does not load an actual page in the browser but only triggers Spotify to play songs from the artist specified in the link. For example, for artist Howie Day, this was already implemented in my application simply as … Continue reading GWT, state and external application-handled links »

How does your web page look in every browser? (Updated)

Every web designer knows that making a web page come out just right in every browser can cause quite a headache, especially when combining elements like W3C standards and IE6. It’s hard to have a working copy of all the different browsers and all the different versions to test. Browsershots.org to the rescue! Browsershots makes screenshots of your web design in different browsers. It is … Continue reading How does your web page look in every browser? (Updated) »

Compile against libraries installed with MacPorts

MacPorts installs packages in a non unix-standard location. This can cause problems when trying to compile other software against these packages because they aren’t found by the configure script. I experienced that problem when trying to compile SDL_image, which depends on libraries such as libpng. I had to configure with the following flags :

which indicates in which folders the libraries installed with MacPorts … Continue reading Compile against libraries installed with MacPorts »