<?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>Blog.hio.fr</title>
	<atom:link href="http://blog.hio.fr/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.hio.fr</link>
	<description>Success is the ability to go from one failure to another with no loss of enthusiasm.</description>
	<lastBuildDate>Fri, 03 May 2013 08:06:39 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Symfony2 how to add a response header for each request</title>
		<link>http://blog.hio.fr/2013/04/30/symfony2-how-to-add-a-response-header-for-each-request.html</link>
		<comments>http://blog.hio.fr/2013/04/30/symfony2-how-to-add-a-response-header-for-each-request.html#comments</comments>
		<pubDate>Tue, 30 Apr 2013 07:33:50 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[symfony2]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=1100</guid>
		<description><![CDATA[JsonResponseListener.php &#60;?php namespace MyCorp\MyBundle\Listener; &#160; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; &#160; class JsonResponseListener &#123; public function onKernelResponse&#40;FilterResponseEvent $event&#41; &#123; $request = $event-&#62;getRequest&#40;&#41;; &#160; if&#40;strpos&#40;$request-&#62;getHost&#40;&#41;, 'api.'&#41; === false&#41; &#123; return; &#125; $event-&#62;getResponse&#40;&#41;-&#62;headers-&#62;set&#40;'Access-Control-Allow-Headers', 'origin, content-type, accept'&#41;; $event-&#62;getResponse&#40;&#41;-&#62;headers-&#62;set&#40;'Access-Control-Allow-Origin', '*'&#41;; $event-&#62;getResponse&#40;&#41;-&#62;headers-&#62;set&#40;'Access-Control-Allow-Methods', 'POST, GET, PUT, DELETE OPTIONS'&#41;; &#125; &#125; services.xml &#60;?xml version=&#34;1.0&#34; ?&#62; &#160; &#60;container xmlns=&#34;http://symfony.com/schema/dic/services&#34; xmlns:xsi=&#34;http://www.w3.org/2001/XMLSchema-instance&#34; xsi:schemaLocation=&#34;http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd&#34;&#62; &#160; &#60;services&#62; &#60;service id=&#34;mycorp.filter_response_listener&#34; [...]]]></description>
		<wfw:commentRss>http://blog.hio.fr/2013/04/30/symfony2-how-to-add-a-response-header-for-each-request.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mongodb/mongoose simulate rand() on mysql</title>
		<link>http://blog.hio.fr/2012/12/21/mongodbmongoose-simulate-rand-on-mysql.html</link>
		<comments>http://blog.hio.fr/2012/12/21/mongodbmongoose-simulate-rand-on-mysql.html#comments</comments>
		<pubDate>Fri, 21 Dec 2012 14:45:53 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[mongodb]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=1088</guid>
		<description><![CDATA[with nodejs mongoose odm var d = 1 var rand = Math.random&#40;&#41;; var question_count = models.question.count&#40;&#123; difficulty: d&#125;, function&#40;err, count&#41; &#123; if&#40;err&#41; &#123; console.log&#40;err&#41;; return; &#125; models.question.findOne&#40;&#123; difficulty: d &#125;&#41;.limit&#40;-1&#41;.skip&#40; rand * count&#41;.exec&#40;function&#40;err, doc&#41; &#123; if&#40;err&#41; &#123; console.log&#40;err&#41;; return; &#125; if&#40;doc&#41; &#123; res.respond&#40;doc&#41;; &#125; else &#123; res.respond&#40;404&#41;; &#125; &#125;&#41;; &#125;&#41;;]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/12/21/mongodbmongoose-simulate-rand-on-mysql.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>js2coffee.sh</title>
		<link>http://blog.hio.fr/2012/11/26/js2coffee-sh.html</link>
		<comments>http://blog.hio.fr/2012/11/26/js2coffee-sh.html#comments</comments>
		<pubDate>Mon, 26 Nov 2012 11:29:04 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[coffee]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=1078</guid>
		<description><![CDATA[#!/bin/sh &#160; dir=$1 filelist=$&#40;find $dir -name &#34;*.js&#34;&#41; &#160; for i in $filelist do file=$&#40;echo $i&#124;cut -d'.' -f1&#41;.coffee echo &#34;$i to $file&#34; js2coffee $i &#62; /tmp/tmp.coffee &#38;&#38; mv /tmp/tmp.coffee $file rm $i done]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/11/26/js2coffee-sh.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php cron lock method</title>
		<link>http://blog.hio.fr/2012/08/10/php-cron-lock-method.html</link>
		<comments>http://blog.hio.fr/2012/08/10/php-cron-lock-method.html#comments</comments>
		<pubDate>Fri, 10 Aug 2012 14:55:31 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[lock]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=1066</guid>
		<description><![CDATA[&#60;?php class CronJob &#123; private $_lock; &#160; public function __construct&#40;&#41; &#123; $this-&#62;_lock = fopen&#40;__FILE__, 'r'&#41;; &#160; if &#40;!flock&#40;$this-&#62;_lock, LOCK_EX&#124;LOCK_NB&#41;&#41; &#123; die&#40;'already running !'.PHP_EOL&#41;; &#125; &#125; &#160; public function doTheJob&#40;&#41; &#123; // DO THE JOB HERE &#125; &#160; public function __destruct&#40;&#41;&#123; flock&#40;$this-&#62;_lock, LOCK_UN&#41;; fclose&#40;$this-&#62;_lock&#41;; &#125; &#125; php.net:flock]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/08/10/php-cron-lock-method.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twig filter example</title>
		<link>http://blog.hio.fr/2012/07/17/twig-filter-example.html</link>
		<comments>http://blog.hio.fr/2012/07/17/twig-filter-example.html#comments</comments>
		<pubDate>Tue, 17 Jul 2012 08:39:04 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[Silex]]></category>
		<category><![CDATA[twig]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=1058</guid>
		<description><![CDATA[$app-&#62;register&#40;new Silex\Provider\TwigServiceProvider&#40;&#41;, array&#40; 'twig.path' =&#62; __DIR__.'/../src/Views', 'twig.options' =&#62; array&#40; 'charset' =&#62; 'utf-8', 'strict_variables' =&#62; true, 'cache' =&#62; __DIR__.'/cache' &#41; &#41;&#41;; &#160; $app-&#62;before&#40;function&#40;&#41; use&#40;$app&#41; &#123; $app&#91;'twig'&#93;-&#62;addExtension&#40;new \Twig\MyExtension&#40;$app&#41;&#41;; &#125;&#41;; &#60;?php namespace Twig; &#160; class MyExtension extends \Twig_Extension &#123; &#160; public function getName&#40;&#41; &#123; return 'my'; &#125; &#160; public function getFilters&#40;&#41; &#123; return array&#40; 'link' =&#62; new \Twig_Filter_Method&#40;$this, [...]]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/07/17/twig-filter-example.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php array recursive find function</title>
		<link>http://blog.hio.fr/2012/07/15/php-array-recursive-find-function.html</link>
		<comments>http://blog.hio.fr/2012/07/15/php-array-recursive-find-function.html#comments</comments>
		<pubDate>Sun, 15 Jul 2012 19:58:50 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[recursive]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=1053</guid>
		<description><![CDATA[&#60;?php &#160; $array1 = array&#40; 0 =&#62; array&#40; 'id' =&#62; 1, 'name' =&#62; 'HiO' &#41;, 1 =&#62; array&#40; 'id' =&#62; 2, 'name' =&#62; 'Hyun' &#41;, 'key0' =&#62; array&#40; 'id' =&#62; 3, 'name' =&#62; 'test' &#41; &#41;; &#160; &#160; $array2 = array&#40; 0 =&#62; array&#40; 'id' =&#62; 15, 'name' =&#62; 'Plop' &#41;, 1 =&#62; array&#40; 'id' [...]]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/07/15/php-array-recursive-find-function.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick install mongodb debian</title>
		<link>http://blog.hio.fr/2012/05/16/quick-install-mongodb-debian.html</link>
		<comments>http://blog.hio.fr/2012/05/16/quick-install-mongodb-debian.html#comments</comments>
		<pubDate>Wed, 16 May 2012 15:31:37 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mongodb]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=1049</guid>
		<description><![CDATA[sudo -s aptitude install mongodb pecl install mongo echo &#34;extension=mongo.so&#34; &#62; /etc/php5/cgi/conf.d/mongo.ini echo &#34;extension=mongo.so&#34; &#62; /etc/php5/cli/conf.d/mongo.ini git clone https://github.com/jwage/php-mongodb-admin.git]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/05/16/quick-install-mongodb-debian.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Design pattern decorator</title>
		<link>http://blog.hio.fr/2012/05/13/design-pattern-decorator.html</link>
		<comments>http://blog.hio.fr/2012/05/13/design-pattern-decorator.html#comments</comments>
		<pubDate>Sun, 13 May 2012 09:14:05 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[decorator]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=1046</guid>
		<description><![CDATA[&#60;?php &#160; interface IDecorator &#123; public function decorate&#40;&#41;; &#125; &#160; abstract class Decorator implements IDecorator &#123; protected $_toDecorate; &#160; public function __construct&#40;IDecorator $toDecorate&#41; &#123; $this-&#62;_toDecorate = $toDecorate; &#125; &#125; &#160; class Html implements IDecorator &#123; protected $_str; &#160; public function __construct&#40;$str&#41; &#123; $this-&#62;_str = $str; &#125; &#160; public function decorate&#40;&#41; &#123; return $this-&#62;_str; &#125; &#125; [...]]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/05/13/design-pattern-decorator.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install node.js and npm quickly</title>
		<link>http://blog.hio.fr/2012/04/27/install-node-js-and-npm-quickly.html</link>
		<comments>http://blog.hio.fr/2012/04/27/install-node-js-and-npm-quickly.html#comments</comments>
		<pubDate>Fri, 27 Apr 2012 13:53:07 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[npm]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=1037</guid>
		<description><![CDATA[node.js go on nodejs.org download source tar -xvzf node-v0.6.15.tar.gz cd node node-v0.6.15/ ./configure make make test make doc sudo make install npm wget http://npmjs.org/install.sh sudo bash install.sh &#160; tar=/bin/tar version: tar &#40;GNU tar&#41; 1.25 Copyright &#40;C&#41; 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later &#60;http://gnu.org/licenses/gpl.html&#62;. This is free software: you [...]]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/04/27/install-node-js-and-npm-quickly.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symfony2 preExecute Controller</title>
		<link>http://blog.hio.fr/2012/04/17/symfony2-preexecute-controller.html</link>
		<comments>http://blog.hio.fr/2012/04/17/symfony2-preexecute-controller.html#comments</comments>
		<pubDate>Tue, 17 Apr 2012 16:11:34 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[symfony2]]></category>
		<category><![CDATA[listener]]></category>
		<category><![CDATA[preExecute]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=1032</guid>
		<description><![CDATA[Listener/PublisherListener.php &#60;?php namespace Main\PublisherBundle\Listener; &#160; use Symfony\Component\EventDispatcher\Event; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\Event\FilterControllerEvent; &#160; class PublisherListener &#123; &#160; public function onCoreController&#40;FilterControllerEvent $event&#41; &#123; if&#40;HttpKernelInterface::MASTER_REQUEST == $event-&#62;getRequestType&#40;&#41;&#41; &#123; $_controller = $event-&#62;getController&#40;&#41;; if&#40;isset&#40;$_controller&#91;0&#93;&#41;&#41; &#123; $controller = $_controller&#91;0&#93;; if&#40;method_exists&#40;$controller, 'preExecute'&#41;&#41; &#123; $controller-&#62;preExecute&#40;&#41;; &#125; &#125; &#125; &#125; &#125; Resources/config/services.xml &#60;?xml version=&#34;1.0&#34; ?&#62; &#60;container xmlns=&#34;http://symfony.com/schema/dic/services&#34; xmlns:xsi=&#34;http://www.w3.org/2001/XMLSchema-instance&#34; xsi:schemaLocation=&#34;http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd&#34;&#62; &#160; &#60;parameters&#62; &#60;parameter key=&#34;main_publisher.listener.class&#34;&#62;Main\PublisherBundle\Listener\PublisherListener&#60;/parameter&#62; [...]]]></description>
		<wfw:commentRss>http://blog.hio.fr/2012/04/17/symfony2-preexecute-controller.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
