Howto reset network device after swapping disks from one PC to another

I had a problem with a very old Compaq PC not detecting the keyboard anymore. I used the PC as a local server, not a real problem, except that the BIOS didn't allow the PC to boot when the keyboard was not plugged in. One solution there might have been to use some USB keyboard (I didn't get a chance to try that - didn't have any USB keyboard lying around). Luckily enough, I happened to have a clone of this computer, so I just swapped the disks from one PC to the other, and booted.

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

Fixes for Gallery 2 French translation in module 'core'

After years using G2, I finally fixed the fr.po for core module and submitted it to latest registered French translator of Gallery2 several weeks again. After review, he encoded the following tracker on SF.net for everybody to benefit from it, even if no G2 update is ever published again:
https://sourceforge.net/tracker/?func=detail&aid=2846783&group_id=7130&atid=582564

As G2 is using gettext, updating it it fairly easy.

Enjoy!

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.

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.

Descrubriendo la XO/OLPC

Como lo he mencionado antes, D0keos Latinoamérica acaba de recibir un prestamo de 6 XO para el desarrollo de un proyecto de integración D0keos-OLPC. Este articulo es el reporte de lo que estoy descubriendo, para que sirva a los demás.

Las XO corren Fedora

[olpc@xo-4B-D2-A3 ~]$ cat /etc/redhat-release OLPC release 9 (Joyride) [olpc@xo-4B-D2-A3 ~]$ uname -a Linux xo-4B-D2-A3.localdomain 2.6.25-20090223.1.olpc.69098d87d56945c #1 PREEMPT Mon Feb 23 13:37:03 EST 2009 i586 i586 i386 GNU/Linux [olpc@xo-4B-D2-A3 ~]$ cat /proc/version Linux version 2.6.25-20090223.1.olpc.69098d87d