<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sébastien Barbieri's blog &#187; PHP</title>
	<atom:link href="http://blog.sbw.be/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sbw.be</link>
	<description>My life, my work, my projects</description>
	<lastBuildDate>Mon, 28 Jun 2010 05:28:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Zend Server CE &#124; PDO &#124; ubuntu 9.10 &#124; /tmp/mysql.sock</title>
		<link>http://blog.sbw.be/2009/12/11/zend-ce-pdo-ubuntu-mysql/</link>
		<comments>http://blog.sbw.be/2009/12/11/zend-ce-pdo-ubuntu-mysql/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 14:56:50 +0000</pubDate>
		<dc:creator>Sébastien Barbieri</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ce]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://blog.sbw.be/?p=339</guid>
		<description><![CDATA[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 &#8220;socket =&#8221; by &#8220;socket = /tmp/mysql.sock&#8221; 


sudo vim /etc/mysql/debian.cnf

replace every line starting with &#8220;socket =&#8221; by &#8220;socket = /tmp/mysql.sock&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>You are using PDO and Zend Server CE and Ubuntu 9.10</p>
<p>You have a little problem?</p>
<p>This is The solution (thanks to <a href="http://twitter.com/DwebConsulting">@DwebConsulting</a>).</p>
<ol>
<li>sudo service mysql stop</li>
<li>sudo cp /etc/mysql/my.cnf /etc/mysql/my.cnf.bak</li>
<li>sudo cp /etc/mysql/debian.cnf /etc/mysql/debian.cnf.bak</li>
<li>sudo vim /etc/mysql/my.cnf
<ol>
<li>replace every line starting with &#8220;socket =&#8221; by &#8220;socket = /tmp/mysql.sock&#8221; </li>
</ol>
</li>
<li>sudo vim /etc/mysql/debian.cnf
<ol>
<li>replace every line starting with &#8220;socket =&#8221; by &#8220;socket = /tmp/mysql.sock&#8221; </li>
</ol>
</li>
<li>sudo service mysql start</li>
</ol>
<p>in the Zend Server CE admin (http://localhost:10081/ZendServer/) > Server Setup > Directives ><br />
Search for default_socket and in mysql and mysqli remove the content of the textarea (empty value => default value used instead)<br />
Then click <strong>Save Changes</strong> and click <strong>Restart PHP</strong></p>
<p>It will work until Zend Server CE bug is fixed (release 5.0).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sbw.be/2009/12/11/zend-ce-pdo-ubuntu-mysql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Firefox Ubiquity php search handy command</title>
		<link>http://blog.sbw.be/2009/08/26/firefox-ubiquity-php-search-handy-command/</link>
		<comments>http://blog.sbw.be/2009/08/26/firefox-ubiquity-php-search-handy-command/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 14:22:35 +0000</pubDate>
		<dc:creator>Sébastien Barbieri</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[freelance]]></category>
		<category><![CDATA[truc de g33k]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ubiquity]]></category>

		<guid isPermaLink="false">http://blog.sbw.be/?p=301</guid>
		<description><![CDATA[Just created a Firfow Ubiquity php search command based on 2 other work: http://download.sbw.be/projects/ubiquity/php-search.html
]]></description>
			<content:encoded><![CDATA[<p>Just created a Firfow Ubiquity php search command based on 2 other work: <a href="http://download.sbw.be/projects/ubiquity/php-search.html">http://download.sbw.be/projects/ubiquity/php-search.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sbw.be/2009/08/26/firefox-ubiquity-php-search-handy-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP test &#8211; #1</title>
		<link>http://blog.sbw.be/2009/04/08/php-test-1/</link>
		<comments>http://blog.sbw.be/2009/04/08/php-test-1/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 22:13:05 +0000</pubDate>
		<dc:creator>Sébastien Barbieri</dc:creator>
				<category><![CDATA[Questions existentielles]]></category>
		<category><![CDATA[truc de g33k]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.sbw.be/2009/04/08/php-test-1/</guid>
		<description><![CDATA[What happens with the following code:

&#60;?php
for($i=a;$i&#38;lt;=z;$i++) echo(&#34;$i\n&#34;);
?&#62;

And what&#8217;s the difference with?

&#60;?php
for($i=a;$i&#38;lt;z;$i++) echo(&#34;$i\n&#34;);
?&#62;

Why is the result different? and How?
&#8230;
Worst:

&#60;?php
$i=a;
while(strcmp($i,z)&#60;=0){
   echo($i.&#34;\n&#34;);
   $i++;
}
?&#62;

Gives exactly the same result as the second exemple.
&#8230;
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
]]></description>
			<content:encoded><![CDATA[<p>What happens with the following code:</p>
<pre class="brush: php;">
&lt;?php
for($i=a;$i&amp;lt;=z;$i++) echo(&quot;$i\n&quot;);
?&gt;
</pre>
<p>And what&#8217;s the difference with?</p>
<pre class="brush: php;">
&lt;?php
for($i=a;$i&amp;lt;z;$i++) echo(&quot;$i\n&quot;);
?&gt;
</pre>
<p>Why is the result different? and How?<br />
&#8230;<br />
Worst:</p>
<pre class="brush: php;">
&lt;?php
$i=a;
while(strcmp($i,z)&lt;=0){
   echo($i.&quot;\n&quot;);
   $i++;
}
?&gt;
</pre>
<p>Gives exactly the same result as the second exemple.<br />
&#8230;</p>
<p>hints:<br />
<a href="http://www.php.net/manual/en/language.types.string.php#language.types.string.conversion">http://www.php.net/manual/en/language.types.string.php#language.types.string.conversion</a><br />
<a href="http://www.php.net/manual/en/language.operators.comparison.php">http://www.php.net/manual/en/language.operators.comparison.php</a><br />
<a href="http://www.php.net/manual/en/language.types.string.php">http://www.php.net/manual/en/language.types.string.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sbw.be/2009/04/08/php-test-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Coding Dojo</title>
		<link>http://blog.sbw.be/2009/04/05/coding-dojo/</link>
		<comments>http://blog.sbw.be/2009/04/05/coding-dojo/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 08:03:16 +0000</pubDate>
		<dc:creator>Sébastien Barbieri</dc:creator>
				<category><![CDATA[truc de g33k]]></category>
		<category><![CDATA[Dojo]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.sbw.be/2009/04/05/coding-dojo/</guid>
		<description><![CDATA[@ 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&#8230;
Participants: [...]]]></description>
			<content:encoded><![CDATA[<p>@ São Paulo University <a href="http://www.dtsato.com/blog/wp-content/uploads/2008/06/sato-codingdojo.pdf">http://www.dtsato.com/blog/wp-content/uploads/2008/06/sato-codingdojo.pdf</a> </p>
<p>Session process:</p>
<ol>
<li>Problem choosing (5 min)</li>
<li>Problem discussion (10 min)</li>
<li>Coding session (1h)</li>
<li>Retrospective (10 min)</li>
</ol>
<p>2 Style of coding sessions:</p>
<ul>
<li>Randori dojo</li>
<li>Prepared Kata</li>
</ul>
<p>Session roles:</p>
<ul>
<li>Moderator: Moderating the discussion, conducting the retrospective</li>
<li>Organizer: Room Reservation, setting up computer, projector, sending reminder, preparing the program, cleaning the room</li>
<li>Scribe: Publishing and sharing the result of the meeting, taking photo, video&#8230;</li>
<li>Participants: Maximum 16 (including Moderator/Organize/Scribe)</li>
</ul>
<p>Principles:</p>
<ul>
<li>TDD</li>
<li>Time Boxing (strictly 7 min / programming pair)</li>
<li>Time Boxed Discussion Break</li>
<li>Silence during Randori</li>
<li>Everyone must be in a programming pair</li>
<li>Use only the software hardware prepared fot the session</li>
</ul>
<p>See also: <a href="http://www.codingdojo.org">www.codingdojo.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sbw.be/2009/04/05/coding-dojo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
