Running OpenERP 5.0.3 from sources on Ubuntu 8.10

$ bzr clone lp:openerp $ cd openerp $ ./bzr_set.py -r tag:5.0.3 ../5_0_3 $ cd ../5_0_3/
Open one terminal for the server
$ cd server/bin/
(make sure you have a "terp" user on your system, and that you're logged as this user, and that there is a "terp" database in your PosgtreSQL server)
$ sudo su terp
$ ./openerp-server.py --db_user=terp --db_host=localhost
Open another terminal for the web client
$ cd web/lib/
$ ./populate.sh
(this will insta

Enhance your usage of Firefox

When installing Ubuntu on one of the new machines we get from time to time, there's a common mechanism I repeat over and over with Firefox:
  1. install the Firebug extension
  2. install the Web Developer extension
  3. install the ShowIP extension
  4. install the GooglePreview extension
  5. change the link of the start bar icon to start Firefox, to "firefox -no-remote -ProfileManager %u" instead of "firefox %u"
The latest option allows you to launch Firefox using different profiles, each of them having its own extensions.

Easily avoid using your password in an SSH connexion: ssh-copy-id

On Linux systems, there used to be a mildly complicated but tedious way to allow you to SSH another computer using your public key, which involved finding and copying your public key on the other host, then connecting to the host and putting this key into ~/.ssh/authorized_keys. Now there is a much simpler way to do that... Just launch the following command (with your own data), enter your password, and that's it!
ssh-copy-id  yourusername@remote.host.address
I love administrative simplification!

Java Applet Uploader bug in Gallery 2 + Firefox 3.0

This is a bug we've seen but have been unable to explain so far... for several people, all the Java-based Gallery 2 uploaders applets and apps are crashing the Firefox browser or putting it in an unstable state, preventing us from uploading pictures. Apache doesn't log anything wierd. The Java console isn't very eloquent (but it reports a few exceptions), but the browser doesn't get to show the applications that allow uploading files this way. There is, however, a solution, which is to have a *clean* Firefox getting to the uploader pages.

Quick Perl Regexp in VIM to format e-mails list

I have a list of e-mails that I extracted from MySQL as something like this: name@example.com firstname lastname name2@example.com firstname2 lastname2 name3@example.com firstname3 lastname3 and I want them to be in this format: firstname lastname firsntame2 lastname2 firstname3 lastname3 Using VIM, I can do: :% s/^/ / :% s/()s(w*)s(.*$)/2 3 1/ The last one is a bit more complex but uses the n-style references to parenthesed elements in the matching part.