Dell Inspiron 1564

Super,
aujourd’hui j’ai reçu le Dell Inspiron 1564, génial!

J’ouvre la boîte en 4 ème vitesse, j’allume la machine avec Windows 7!
Il me propose de configurer Windows, tous les paramètres sont correcte.

Suivant.

Il me demande de taper mon nom d’utilisateur, comme c’est pour ma maman, je lui met son petit nom “:itsou”.

Ah j’ai fait une faute de frappe… je recommence “:itsou”

“:itsou” ????

merde où est le ‘M’ ?

C’est un clavier QWERTY.

Arf une grosse goutte de sueur froide dégouline sur mes tempes.

Je ferme les yeux, je réouvre… c’est un clavier QWERTY !#@*%

Je retourne sur le site de dell, pour refaire la commande, je me souvenait d’avoir choisis ‘FR’ à un moment…

Sur le site de Dell.be je trouve le nouvel Inspiron 15″, je clic dessus, je refais les étapes une par une…

Choix du Dell: Core-i3 avec l’upgrade 4 Gb / 320 Gb Hdd (http://bit.ly/byr210)

Aller au composant suivant, suivant, oui le windows en FR, suivant, suivant, suivant…

tout est là, c’est correcte, à aucun moment il ne m’a proposé de choisir le clavier… normal?

Eh ben non, je check le résumé… tout en bas, lorsqu’on scroll, Clavier interne – EU/International (Qwerty)…

Bon je fais quoi là maintenant…

J’ai contacté Dell… par mail…

Merde, merde, merde…

#web #continuous #integration: #Autodeploy on #commit

Option 1

post commit auto deploy

post commit auto deploy

In 4 steps

  1. svn commit to the repository
  2. the pre-commit hook will check the code with svnlook and will validate the commit message (based on regexp such has bug# …, text minimal size…)
  3. the post-commit hook will try to connect to the ITT (Integration Team Testing) if you have the good acronym, I’ll update
  4. once connected a script should be launched (and forgot &;) This script should:
    • Do a svn checkout locally so the code could be tested (in /var/www …). This method has several drawback: instability of the site while exporting, destruction of ITT generated file (if any)…
    • Do a svn checkout in a temporary directory (/export/<projectname>) and then use rsync to do a fast compare and copy changes only without deleting the existing, excluding the .svn folders
    • Do a svn export in a temporary directory (/tmp/<projectname>) and then use the same rsync than above but this time you don’t have to exclude the .svn

    The fastest is the second one (svn checkout -> /export/<projectname> + rsync – .svn folders)

Option 2

There is another alternative if you have space and sufficient right on your svn repository: the svn export/svn checkout is done locally and you use rsync to deploy the site on the ITT server.

Option 3

There is a third alternative if you have one more server (a synchro server) that will be used to store the svn export (at least the last one and maybe 2-3 version before) and that will take care of the rsync between one of its local checkout/export and the ITT server.

Conclusion

The last option has the big advantage of being a intermediate repository that can deploy any revision to any server … but that’s another paper.

I used the 3 options, and the first one (the simplest/cheapest) is very easy to maintain and to set up, so it’s a must have for team < 15 … bigger team may think about the other options but will have to put additional resources to design the whole deployment system.

Zend Server CE | PDO | ubuntu 9.10 | /tmp/mysql.sock

You are using PDO and Zend Server CE and Ubuntu 9.10

You have a little problem?

This is The solution (thanks to @DwebConsulting).

  1. sudo service mysql stop
  2. sudo cp /etc/mysql/my.cnf /etc/mysql/my.cnf.bak
  3. sudo cp /etc/mysql/debian.cnf /etc/mysql/debian.cnf.bak
  4. sudo vim /etc/mysql/my.cnf
    1. replace every line starting with “socket =” by “socket = /tmp/mysql.sock”
  5. sudo vim /etc/mysql/debian.cnf
    1. replace every line starting with “socket =” by “socket = /tmp/mysql.sock”
  6. sudo service mysql start

in the Zend Server CE admin (http://localhost:10081/ZendServer/) > Server Setup > Directives >
Search for default_socket and in mysql and mysqli remove the content of the textarea (empty value => default value used instead)
Then click Save Changes and click Restart PHP

It will work until Zend Server CE bug is fixed (release 5.0).

Pear / php update – pear.php.net is using a unsupported protocal

and you get some wonderful error message such as: Notice: Undefined variable: dorest in PEAR/Command/Install.php on line 1220

Sometimes it happens…

Solution: locate the .channels/ directory
For ubuntu with Zend-CE 5.2 it’s in /usr/local/zend/share/pear/.channels/

And delete everything in there

sudo rm /usr/local/zend/share/pear/.channels/*

then do a fresh pear update-channels to reconstruct the serialized cache file in .channels/

sudo pear update-channels

if you also want to also install phpunit


cd /usr/local/zend/bin/
sudo ./pear channel-discover pear.phpunit.de
sudo ./pear install phpunit/PHPUnit

Bru-GTUG #1 Date Poll

Feel free to participate in the Bru-GTUG #1

1st GoogleWave bot in Java

Yesterday I wrote a google wave bot: sbw-app01@appspot.com … in Java.

It’s my first Java app so don’t tell me about the code … I know!

You can ask me then: why Java? Well the python lib is not so well supported, it’s missing a lot of documentation and feature and I didn’t want to participate in the library conception which is more for google guys from my point of view.

So about the bot

The purpose of the bot is, once it is invited, to export the content of the rootblip in order to make the content available outside of google wave.

What’s the purpose? … Well if you find one, then tell me :P

But my first idea was to create a kind of collaborative Wiki based on google wave as main content management system.

My bot only support the basic syntax (annotations that begin with style/..) and not yet the gadget but I’m open to any discussion, suggestion.

Also the sourcecode of the bot is in the be-gtug google code repository, feel free to join/participate/discuss…

I’ll try to rewrite a bit the bot and to clean and re-organize the classes.

And if you want to export your content in xml, then sbw-app01@appspot.com is your (bot)friend!

ERROR 1307 (HY000) at line …: Failed to CREATE PROCEDURE

Just a reminder for myself…

After any mysql upgrade run from the terminal:
sudo mysql_upgrade (mac/*nix)
or
mysql_upgrade.exe (windows)

Mousse de champagne sur sirop de fruits rouge

Ceci fait partie des quelques notes prisent lors de mon mini stage de cuisine reçu pour mon anniversaire, il y a probablement quelques erreurs

Proportions pour 10 personnes, la Recette est d’Edouard Bechoux

Pour le sirop

300 gr de fruits rouge
100 gr de sucre S1
150 gr d’eau
2-3 cuillières de thé vert à la rose (pour faire une infusion)

Pour l’Espuma (mousse)
4 Blanc d’oeuf à battre en neige doucement afin de garder des petites bulles et de faire resortir l’impression de spumante.
400 gr de champagne (ou jus de pomme)
80 de sucre S1

Pour le chocolat
Tempérer 100 gr de chocolat pour faire une fine couche entre le sirop de fruit et l’Espuma.

Le chocolat tempéré doit être placé sur un film plastique (sac de congélation?) et déposé sur une surface NON plane (panier de fruit, boite d’oeufs…) afin de créer un mouvement de vague dans le chocolat OU sur un plastique à plat avec un poids par dessus pour garder le chocolat plat (sinon le chocolat se recourbe en refroidissant.

Le sirop

Faire chauffer bouillir l’eau, rajouter le sucre, retirer du feu et rajouter les fruits réduit en purée, passer.
Refaire bouillir et infuser le thé à la rose, goûter régulièrement et filtrer avec un chinois quand on a obtenu le goût désiré. Attention à l’amertume du thé vert.

Mettre au frigo pour plus tard.

La décoration

Faire un cone avec une feuille de papier sufurisée triangulaire rectangle (si si) je vais publier les photos dès que possible.

Sur du sucre coloré (colorant + sucre -> sechage au four 80°C chaleur tournante, porte ouverte) répandu sur une plaque, dessiner avec du chocolat fondu (contenu dans la poche) des formes verticales composée d’entremelage de traits de chocolat… (ok ok les photos parce qu’on comprend rien…).

!!! la mousse (espuma) retombe après 30 minutes ==> faire la mousse à la fin !!!

Pour faire la mousse

Battre les blancs doucement au début et puis de plus en plus vite jusqu’à obtention d’une mousse consistante homogène.
Rajouter le sucre vers la fin du processus. Le sucre va permettre à la mousse de garder plus longtemps sa structure.
Rajouter tout à la fin le champagne, si les blancs montent encore, continuer le mélange à la spatule plutôt qu’au fouet, il vaut mieux une mousse plus dense et plus riche, qu’une tonne de mousse.

Le montage

Dans un verre:
- le sirop
- les fines lamelles de chocolat
- la mousse
- la déco

Note: C’était excellent

Tao du développeur agile

Tu le fais une première fois
Tu le fais une seconde fois
Tu ne le refera pas une troisième fois

La troisième fois une machine le fera pour toi

Refaire deux fois la même chose, de la même manière, c’est la faire une fois de trop.

Il vaut mieux en profiter pour l’améliorer, la simplifier, l’automatiser

Le Maître laisse à la machine le travail fastidieux et répétitif pour ce concentrer exclusivement sur le travail créatif et récréatif

Tao du développeur agile

There are only 10 types of people in the world: Those who understand binary, and those who don't
Si l’on peut changer un 1 en 0
Si l’on peut changer un 0 en 1
Alors rien n’est impossible, car après tout,
la vie est d’une manière ou d’une autre qu’une infinie succession de 0 et de 1