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).

sudo service mysql stop
sudo cp /etc/mysql/my.cnf /etc/mysql/my.cnf.bak
sudo cp /etc/mysql/debian.cnf /etc/mysql/debian.cnf.bak
sudo vim /etc/mysql/my.cnf

replace every line starting with “socket =” by “socket = /tmp/mysql.sock”

sudo vim /etc/mysql/debian.cnf

replace every line starting with “socket =” by “socket = /tmp/mysql.sock” [...]

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

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

Coding Dojo

@ São Paulo University http://www.dtsato.com/blog/wp-content/uploads/2008/06/sato-codingdojo.pdf
Session process:

Problem choosing (5 min)
Problem discussion (10 min)
Coding session (1h)
Retrospective (10 min)

2 Style of coding sessions:

Randori dojo
Prepared Kata

Session roles:

Moderator: Moderating the discussion, conducting the retrospective
Organizer: Room Reservation, setting up computer, projector, sending reminder, preparing the program, cleaning the room
Scribe: Publishing and sharing the result of the meeting, taking photo, video…
Participants: [...]