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

Option 1
In 4 steps

svn commit to the repository
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…)
the post-commit hook will try to connect to the ITT (Integration Team Testing) if you have the good acronym, I’ll update
once connected a script [...]

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 [...]

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)

Firefox Ubiquity php search handy command

Just created a Firfow Ubiquity php search command based on 2 other work: http://download.sbw.be/projects/ubiquity/php-search.html

Daily scrum backlog, today, tomorrow …

Mes developpeurs sont plein d’humour … dans le daily scrum backlog du jour j’ai reçu ceci:
TODAY

added update load and delete methods
secured checks
updated database for thumbnails

TOMORROW

Thumbnails handling

TOYOTA

ah bah dis donc, elle bonne celle-là !

Really impress by Google Wave error handling + reporting

While muting a wave and moving it to the trash folder :-)
I can’t wait to wave :P

ubuntu on: ATI Mobility Radeon HD 3650 – hp EliteBook 8530p

To install ubuntu on this PC you need to

desactivate the FAN in the BIOS menu

Deactivate in the BIOS: Fan Always on while on AC Power

desactivate acpi for the ATI card

System > Administration > Hardware Drivers > ATI/AMD propietary FGLRX graphic driver: Install but don’t reboot now !!!
In a terminal: sudo aticonfig –initial
In a terminal: [...]

The last day of epoch (32) – toute une époque :-)

Is Tue, 19 Jan 2038 04:14:07 +0100.
The next second, we will be back on Fri, 13 Dec 1901 20:55:13 +0009.
And unfortunately, I will not be retired at that time… I’m pretty sure that it will be like in the 80s with every developer thinking that his code will last only few months (years)… when it [...]

Distance between cities

First of all I need to cite my sources:

Calculate distance, bearing and more between two Latitude/Longitude points

Geocoding Belgium Postal Codes

The goal of my project was to find out which cities are nearby (within a user specified distance).
Of course users don’t know their city coordinate, so you will have to find out by yourself. To [...]

PHP test – #1

What happens with the following code:

<?php
for($i=a;$i&lt;=z;$i++) echo("$i\n");
?>

And what’s the difference with?

<?php
for($i=a;$i&lt;z;$i++) echo("$i\n");
?>

Why is the result different? and How?

Worst:

<?php
$i=a;
while(strcmp($i,z)<=0){
echo($i."\n");
$i++;
}
?>

Gives exactly the same result as the second exemple.

hints:
http://www.php.net/manual/en/language.types.string.php#language.types.string.conversion
http://www.php.net/manual/en/language.operators.comparison.php
http://www.php.net/manual/en/language.types.string.php