Saturday, August 30, 2008

Papi Juan

"La luna se había levantado hacía mucho tiempo, pero él seguía durmiendo y el pez seguía tirando del bote y éste entraba en un túnel de nubes".(El viejo y el mar)

Sunday, August 10, 2008

Exporting schema in mysql

You can use the mysqldump command. According to the man page, you can invoke it with:

shell> mysqldump [options] db_name [tables]
shell> mysqldump [options] --databases db_name1 [db_name2 db_name3...]
shell> mysqldump [options] --all-databases

If you don't want data to be dumped, you can use
shell> mysqldump -d -user USERNAME --password=PASSWORD DATABASENAME

It will print the schema to stdout.

To create the database using the exported schema my_schema.sql, you just need to :

mysql --user USERNAME --password=PASSWORD DATABASE_NAME < my_schema.sql

Wednesday, August 06, 2008

Quote

"It is dangerous to be right in matters on
which the established authorities are wrong"

"Il est dangereux d’avoir raison
quand le gouvernement à tort"

Voltaire

Saturday, August 02, 2008

Libavcodec

Libavcodec is a very well thought library for decoding/encoding video. It is part of ffmpeg and is used in mplayer. Using libavcodec is very easy from either C or C++. I used to use other libraries, but libavcodec has some advantages over all of them: 1. It is alive and very active in the development comunity. 2. It is easier to use because of its simplistic API. 3. It supports lots of codecs, including MPEG4 and H261. 4. It runs in multiple platforms. 5. It is LGPL, hence you can feel free to use it in your own projects or you can contribute to it in case you find something out of place.

Friday, August 01, 2008

L'Air Clair

Je voudrais te voir une encore fois
Je voudrais aller à coté de ton chemin,
quelque soir, comme l'air
Comme l'air que peut toucher ton visage tout le temps
Comme l'air que sait oú est ce que tu vas chaque matin
Comme l'air que tu conais,
mais je ne vais pas connetre jammais