<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>donax.ch</title>
	
	<link>http://www.donax.ch</link>
	<description>ça blogue et c'est piquant...</description>
	<lastBuildDate>Mon, 12 Dec 2011 01:18:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/blog/donax" /><feedburner:info uri="blog/donax" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>blog/donax</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Shopping en ligne</title>
		<link>http://feedproxy.google.com/~r/blog/donax/~3/pj-gWW0xQ8Q/</link>
		<comments>http://www.donax.ch/2011/12/12/shopping-en-ligne/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 01:12:32 +0000</pubDate>
		<dc:creator>Diego Criscenti</dc:creator>
				<category><![CDATA[Divers]]></category>
		<category><![CDATA[Web / Internet]]></category>
		<category><![CDATA[cadeaux]]></category>
		<category><![CDATA[Noël]]></category>
		<category><![CDATA[Shop]]></category>
		<category><![CDATA[Shopping]]></category>

		<guid isPermaLink="false">http://www.donax.ch/?p=1366</guid>
		<description><![CDATA[Je ne sais pas pour vous, mais personnellement ces dernières années, la période avant Noël signifie plutôt MEGA STRESS! En effet, cela correspond souvent au bouclage de l&#8217;année fiscale des [...]]]></description>
			<content:encoded><![CDATA[<p>Je ne sais pas pour vous, mais personnellement ces dernières années, la période avant Noël signifie plutôt MEGA STRESS! En effet, cela correspond souvent au bouclage de l&#8217;année fiscale des sociétés avec tous les projets à finaliser juste avant !</p>
<p>Breeeeeef, tout ça pour dire, que malgré l&#8217;envie de se mêler à l&#8217;ambiance (qq peu électrique) de la chasse aux cadeaux&#8230; on a pas forcément le temps ou l&#8217;envie de le faire.. C&#8217;est pour ça aussi qu&#8217;internet existe <img src='http://www.donax.ch/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Voici donc une liste (non exhaustive bien évidemment) de Shops basés en Suisse qui vous aiderons à accomplir cette lourde tâche: <img src='http://www.donax.ch/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
<span id="more-1366"></span><br />
<a href="http://www.donax.ch/wp-content/shopping.jpg"><img src="http://www.donax.ch/wp-content/shopping.jpg" alt="" title="shopping" width="588" height="152" class="aligncenter size-full wp-image-1373" /></a></p>
<ul>
<li><a href="http://www.qoqa.ch/fr" title="Qoqa.ch" target="_blank">Qoqa.ch</a></li>
<p> > 1 produit par jour divers et varié</p>
<li><a href="http://www.qwine.ch/fr" title="Qwine.ch" target="_blank">Qwine.ch</a></li>
<p> > 2 Offres par semaine sur des spiritueux</p>
<li><a href="http://www.fashionfriends.ch/fr/shop" title="FashionFriends" target="_blank">FashionFriends</a></li>
<p> > habits/accessoires et 1 peu de tout</p>
<li><a href="http://brandstore.fashionfriends.ch/fr/" title="BrandStore" target="_blank">BrandStore</a></li>
<p> > habits</p>
<li><a href="http://beautybox.fashionfriends.ch/fr/" title="BeautyBox" target="_blank">BeautyBox</a></li>
<p> > cosmétiques</p>
<li><a href="http://quaps.fashionfriends.ch/fr/" title="Quaps" target="_blank">Quaps</a></li>
<p> > jouets</p>
<li><a href="http://scoup.fashionfriends.ch/fr/" title="Scoup" target="_blank">Scoup</a></li>
<p> > offres style &laquo;&nbsp;coupon&nbsp;&raquo;</p>
<li><a href="http://www.eboutic.ch/" title="Eboutic" target="_blank">Eboutic</a></li>
<p> > 1 peu de tout</p>
<li><a href="http://www.my-store.ch/fr/" title="My-Store" target="_blank">My-Store</a></li>
<p> > 1 peu de tout</p>
<li><a href="http://www.daydeal.ch/" title="DayDeal" target="_blank">DayDeal</a></li>
<p> > un peu le Qoqa Suisse-allemand </p>
<li><a href="http://www.myprivateboutique.ch/" title="MyPrivateBoutique" target="_blank">MyPrivateBoutique</a></li>
<p> > 1 peu de tout</p>
<li><a href="http://www.topdeal.ch/" title="TopDeal" target="_blank">TopDeal</a></li>
<p> > offres style &laquo;&nbsp;coupon&nbsp;&raquo;</p>
<li><a href="http://www.deindeal.ch/" title="DeinDeal" target="_blank">DeinDeal</a></li>
<p> > offres style &laquo;&nbsp;coupon&nbsp;&raquo;</p>
<li><a href="http://www.groupon.ch/" title="Groupon" target="_blank">Groupon</a></li>
<p> > offres style &laquo;&nbsp;coupon&nbsp;&raquo;</p>
<li><a href="http://www.digitec.ch/" title="Digitec" target="_blank">Digitec</a></li>
<p> > Shop informatique + 1 offre par jour</p>
<li><a href="http://www.microspot.ch/" title="Microspot" target="_blank">Microspot</a></li>
<p> > Shop informatique + 1 offre par jour du mardi au samedi</p>
<li><a href="http://www.coin-op.ch/" title="CoinOp" target="_blank">CoinOp</a></li>
<p> > Dvds / Blurays &#8211; Jeux vidéos &#8211; Figurines &#8211; Bds</p>
<li><a href="http://www.cede.ch/" title="CeDe.ch" target="_blank">CeDe.ch</a></li>
<p> > Dvds / Blurays &#8211; Jeux vidéos &#8211; livres
</ul>
<p>Bon shopping <img src='http://www.donax.ch/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.donax.ch/2011/12/12/shopping-en-ligne/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.donax.ch/2011/12/12/shopping-en-ligne/</feedburner:origLink></item>
		<item>
		<title>World of Goo sur Android</title>
		<link>http://feedproxy.google.com/~r/blog/donax/~3/jQwRHUikKn4/</link>
		<comments>http://www.donax.ch/2011/12/03/world-of-goo-sur-android/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 08:16:53 +0000</pubDate>
		<dc:creator>Nicolas Borboën</dc:creator>
				<category><![CDATA[Divers]]></category>
		<category><![CDATA[2d boy]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[wog]]></category>
		<category><![CDATA[world of goo]]></category>

		<guid isPermaLink="false">http://www.donax.ch/?p=1337</guid>
		<description><![CDATA[Le petit bébé de 2D Boy est enfin disponible sur Android Market. World of Goo est un jeu de construction dont le but est d&#8217;assembler les boules de Goo afin [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.donax.ch/wp-content/donax_wog_150.png"><img src="http://www.donax.ch/wp-content/donax_wog_150.png" alt="World Of Goo" title="World Of Goo" width="100" class="alignleft size-full wp-image-1338" /></a>Le petit bébé de <a href="http://2dboy.com/" target="_blank">2D Boy</a> est enfin disponible sur <a href="https://market.android.com/details?id=com.twodboy.worldofgoofull" title="Android Market WOG" target="_blank">Android Market</a>. <br/>World of Goo est un jeu de construction dont le but est d&#8217;assembler les boules de Goo afin de leur permettre d&#8217;atteindre un tuyau qui les récoltes.<br/>Les 2D Boy (Kyle Gabler et Ron Carmel) sont deux developpeurs indépendants qui ont quitté EA (Electronics Art) pour monter leur propre studio.<br />
 <span id="more-1337"></span><br />
World of Goo est sortit en 2008 sur PC et Wii, puis sur Mac Os X, GNU/Linux, iPad, iPhone puis maintenant pour Android. A l&#8217;instar de <a href="https://market.android.com/details?id=com.fiffigt.spaghetti.full" title="Spaghetti er Marshmallow" target="_blank">Spaghetti et Marshmallow</a>, World of Goo ravira les fans de construction et d&#8217;architecture.<br />
<a href="http://www.donax.ch/wp-content/qrcode_world_of_goo.png"><img src="http://www.donax.ch/wp-content/qrcode_world_of_goo.png" alt="QRcode World Of Goo" title="QRcode World Of Goo" width="150" height="150" class="alignright size-full wp-image-1346" /></a><br />Dans un univers unique et soigné (sonore+graphique) et au scénario innovateur, vous devrez dans un premier temps travailler pour le compte de la World of Goo Corporation en récoltant le plus de Goo possible. Au fur et à mesure des 5 chapitres vous découvrirez l&#8217;histoire des Goo, du peintre des pancartes et de MOM.<br/><br />
Différents sortes de Goo permettent de diversifier les niveaux que vous franchirez en mélant agilité, astuce et précision. De la petite boule de Go noir à  la &laquo;&nbsp;fuse&nbsp;&raquo; (inflamable et similaire à une allumette), la dizaine d&#8217;espèce de Goo vous permettra d&#8217;attendre votre but et de vous rebeller contre la Corporation.<br />
<center><a href="http://www.donax.ch/wp-content/world_of_goo_chapter_4.png"><img src="http://www.donax.ch/wp-content/world_of_goo_chapter_4.png" alt="" title="world_of_goo_chapter_4" width="400" height="163" class="aligncenter size-full wp-image-1355" /></a></center><br />
L&#8217;approche du jeu est génial, l&#8217;univers décalé et polishé, la façon de jouer différente et tous ces compliments ne font que conforter l&#8217;idée que plus de développeurs devraient aussi trouver leur indépendance.</p>
<p>Sur l&#8217;Android Market, une version gratuite qui vous permettra de vous faire une idée jusqu&#8217;à la fin du chapitre un, et pour 3CHF (offre jusqu&#8217;au 5 décembre) vous pourrez vous essayer dans les 5 chapitres.</p>
<p>Bref, une expérience qui en vaut la peine!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donax.ch/2011/12/03/world-of-goo-sur-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.donax.ch/2011/12/03/world-of-goo-sur-android/</feedburner:origLink></item>
		<item>
		<title>Deux distributions a tester…</title>
		<link>http://feedproxy.google.com/~r/blog/donax/~3/Tr6LO8qr22E/</link>
		<comments>http://www.donax.ch/2011/11/16/deux-distributions-a-tester/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 09:23:17 +0000</pubDate>
		<dc:creator>Nicolas Borboën</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Technologie]]></category>

		<guid isPermaLink="false">http://www.donax.ch/?p=1327</guid>
		<description><![CDATA[Avec Unity et Gnome 3 qui font leurs entrées sur scène à travers Ubuntu 11.10 et Fedora 16, les messages de mécontentement des utilisateurs sont pléthores sur les forums. Les [...]]]></description>
			<content:encoded><![CDATA[<p>Avec Unity et Gnome 3 qui font leurs entrées sur scène à travers Ubuntu 11.10 et Fedora 16, les messages de mécontentement des utilisateurs sont pléthores sur les forums. Les critiques émanent même de Linus Torval, père de GNU/Linux, qui dit avoir passé a XFCE alors même si il est inférieur de Gnome 2 est un incroyable pas en avant par rapport à Gnome 3 (<a href="http://linux.slashdot.org/story/11/08/04/0115232/linus-torvalds-ditches-gnome-3-for-xfce" title="Linus et GNOME 3" target="_blank">source</a>).</p>
<p>Deux distributions légères, pour netbook ou portable d&#8217;une autre génération, ont retenu mon attention et mériteraient une installation de test. <span id="more-1327"></span><br />
La première est <a href="http://auroraos.org/" title="Aurora Linux" target="_blank">Aurora</a>, qui se décline dans une édition <a href="http://auroraos.org/release/eeebuntu" title="eeeBuntu" target="_blank">eeePC</a> et une édition Gnome (<a href="http://auroraos.org/release/gnome" title="Aurora Borealis" target="_blank">Aurora Borealis</a>). Aurora est basée sur <a href="http://www.ubuntu.com/" title="Ubuntu" target="_blank">Ubuntu</a>.<br />
<a href="http://www.donax.ch/wp-content/aurorafirefox1.png"><img src="http://www.donax.ch/wp-content/aurorafirefox1.png" alt="" title="Aurora Firefox" width="600" height="320" class="aligncenter size-full wp-image-1328" /></a></p>
<p>La seconde, basée sur Debian, est <a href="http://crunchbanglinux.org/" title="Crunch Bang" target="_blank">CrunchBang</a>. Beaucoup plus &laquo;&nbsp;geek&nbsp;&raquo; elle reste néanmoins soignée. Le système de gestion des fenêtres est <a href="http://openbox.org/" title="OpenBox" target="_blank">OpenBox</a> et <a href="http://www.xfce.org/" title="XFCE" target="_blank">XFCE</a>.<br />
<a href="http://www.donax.ch/wp-content/crunchbang_statler-terminator-terminal.png"><img src="http://www.donax.ch/wp-content/crunchbang_statler-terminator-terminal.png" alt="" title="Crunch Bang" width="450" height="281" class="aligncenter size-full wp-image-1329" /></a></p>
<p>Changer de système est souvent un chemin de croix, mais pourquoi ne pas laisser la chance à des alternatives moins communes ? De votre côté, quels sont vos choix de distributions et de windows manager ?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donax.ch/2011/11/16/deux-distributions-a-tester/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.donax.ch/2011/11/16/deux-distributions-a-tester/</feedburner:origLink></item>
		<item>
		<title>reCaptcha engineering</title>
		<link>http://feedproxy.google.com/~r/blog/donax/~3/Mjc9jZctU3Y/</link>
		<comments>http://www.donax.ch/2011/10/19/recaptcha-engineering/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 10:37:00 +0000</pubDate>
		<dc:creator>Nicolas Borboën</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Web / Internet]]></category>
		<category><![CDATA[captcha]]></category>
		<category><![CDATA[recaptcha]]></category>
		<category><![CDATA[social engineering]]></category>

		<guid isPermaLink="false">http://www.donax.ch/?p=1304</guid>
		<description><![CDATA[L&#8217;idée m&#8217;avait déjà traversé l&#8217;esprit mais j&#8217;ai maintenant une confirmation. Les textes déchiffrés par les internautes dans les captchas ont bel et bien une utilité finale! What is reCAPTCHA? Selon [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.donax.ch/wp-content/recaptcha-example.gif"><img src="http://www.donax.ch/wp-content/recaptcha-example.gif" alt="" title="recaptcha-example" width="314" height="125" class="aligncenter size-full wp-image-1305" /></a><br/><br />
L&#8217;idée m&#8217;avait déjà traversé l&#8217;esprit mais j&#8217;ai maintenant une confirmation. Les textes déchiffrés par les internautes dans les captchas ont bel et bien une utilité finale!</p>
<h3>What is reCAPTCHA?</h3>
<p>Selon l&#8217;explication de Google de la page <span id="more-1304"></span> <a href="http://code.google.com/apis/recaptcha/">http://code.google.com/apis/recaptcha/</a>:</p>
<blockquote><p>
reCAPTCHA is a free CAPTCHA service that protects your site against spam, malicious registrations and other forms of attacks where computers try to disguise themselves as a human; a CAPTCHA is a Completely Automated Public Turing test to tell Computers and Human Apart. reCAPTCHA comes in the form of a widget that you can easily add to your blog, forum, registration form, etc.<br />
In addition to protecting your site, reCAPTCHA also helps us digitize old books and newspapers. Learn how reCAPTCHA works and join our forum.
</p></blockquote>
<h3>reCAPTCHA also helps us digitize old books and newspapers</h3>
<p>Oui, la reconnaissance faite par l&#8217;utilisateur est ensuite assimilée pour aider à la reconnaissance de texte, ou OCR (Optical Character Recognition). J&#8217;ai plusieurs fois eu l&#8217;impression, après avoir validé mon captcha, que la pertinence des lettre n&#8217;étaient pas parfaite même si grosso modo j&#8217;avais juste. Accepter une tolérence d&#8217;erreur dans le captcha, et comparer une large quatité de réponse pour ensuite en déduire la plus probable est un procédé qui semble sensé.<br />
<a href="http://www.donax.ch/wp-content/sample-ocr.png"><img src="http://www.donax.ch/wp-content/sample-ocr.png" alt="" title="sample-ocr" width="544" height="108" class="aligncenter size-full wp-image-1307" /></a></p>
<p>De plus, quoi de plus logique de bénéficier de ce social engineering pour des activités tierses ? Cela évite au site du spam et des bots, et cela permet indirectement à l&#8217;utilsateur de bénéficier de meilleurs traductions, recherche ou rendu sur des livres. Perso, je suis pour.</p>
<h3>Pour en savoir plus&#8230;.</h3>
<p><a href="http://www.google.com/recaptcha/captcha">http://www.google.com/recaptcha/captcha</a><br />
<a href="http://www.google.com/recaptcha/learnmore">http://www.google.com/recaptcha/learnmore</a><br />
<a href="http://code.google.com/apis/recaptcha/">http://code.google.com/apis/recaptcha/</a><br />
et aussi d&#8217;autres articles sur <a href="http://www.rue89.com/2011/10/18/psitt-google-vous-utilise-votre-insu-pour-numeriser-des-livres-225651">rue89</a> et le <a href="http://www.journaldugeek.com/2011/10/19/google-vous-utilise-a-votre-insu-pour-numeriser-des-livres/">Journal du Geek</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donax.ch/2011/10/19/recaptcha-engineering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.donax.ch/2011/10/19/recaptcha-engineering/</feedburner:origLink></item>
		<item>
		<title>Accès au player Radio Suisse Romande et à Google Reade en un clic (Ubuntu)</title>
		<link>http://feedproxy.google.com/~r/blog/donax/~3/JYFoOKwZ4W8/</link>
		<comments>http://www.donax.ch/2011/10/18/web-apps-on-desktop-with-google-chrom/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 18:35:06 +0000</pubDate>
		<dc:creator>Nicolas Borboën</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Web / Internet]]></category>
		<category><![CDATA[couleur 3]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[google-chrom]]></category>
		<category><![CDATA[prism]]></category>
		<category><![CDATA[RSR]]></category>
		<category><![CDATA[web app]]></category>

		<guid isPermaLink="false">http://www.donax.ch/?p=1287</guid>
		<description><![CDATA[Voilà un petit truc pour accéder directement à des applications web en un clic. Avant j&#8217;utilisais Prism &#8211; Bringing web applications to your Desktop, qui est maintenant inutile si l&#8217;on [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.donax.ch/wp-content/c3.gif"><img src="http://www.donax.ch/wp-content/c3.gif" alt="" title="couleur 3" width="150" height="115" class="alignleft size-full wp-image-1288" /></a></p>
<p>Voilà un petit truc pour accéder directement à des applications web en un clic. Avant j&#8217;utilisais <a href="http://prism.mozillalabs.com/" title="Bringing web applications to your Desktop" target="_blank">Prism &#8211; Bringing web applications to your Desktop</a>, qui est maintenant inutile si l&#8217;on utilise Google Chrome qui a rendu les choses plus simple. Cela fonctionne bien sûr avec n&#8217;importe quel site, <a href="https://www.facebook.com/nicolas.borboen">Facebook</a>, <a href="http://www.google.com/reader/shared/ponsfrilus">Google Reader</a>, <a href="https://mail.google.com">Gmail</a>, <a href="http://www.rememberthemilk.com/">Remember the milk</a> ou <a href="http://www.last.fm/user/ponsfrilus">last.fm</a> !<br />
<br />Voilà comment procéder pour Google Reader et le player de Radio Suisse Romande&#8230;<br />
<span id="more-1287"></span></p>
<h3>Comment procéder</h3>
<p><a href="http://www.donax.ch/wp-content/player_couleur3.png"><img src="http://www.donax.ch/wp-content/player_couleur3.png" alt="" title="player_couleur3" width="400" height="457" class="alignleft size-full wp-image-1289" /></a><br />
Le principe est simple: ajouter un lanceur d&#8217;application qui appelle Google Chrome avec une URL spécifique.</p>
<h4>Google Reader</h4>
<p>Pour Google Reader la commande est la suivante:<br />
<code>/usr/bin/google-chrome --app="http://www.google.com/reader/view/"</code></p>
<h4>Radio Suisse Romande</h4>
<p>Pour le player Radio Suisse Romande la commande est la suivante:<br />
<code>/usr/bin/google-chrome --app="http://www.rsr.ch/html/popup.html?conf=/x/player/config.xml?20110909b"</code></p>
<h4>Options</h4>
<p>Par défaut les données utilisateurs sont stockées dans <code>~/.config/google-chrome</code> mais rien n&#8217;empêche de spécifier un répertoire différents pour les application web &laquo;&nbsp;desktop&nbsp;&raquo; avec la commande <code>--user-data-dir=DIR</code>.</p>
<p>Pour éviter les cookies et autres traces indésirables, l&#8217;option <code>--incognito</code> est prescrite.</p>
<p>En cas de proxy, toutes les options nécessaires sont disponibles.</p>
<h3>Alternatives</h3>
<p>D&#8217;autres alternatives sont disponibles, par exemple sous d&#8217;autres systèmes d&#8217;exploitations, comme <a href="http://bubbleshq.com/" title="Bubbles" target="_blank">Bubbles</a>, <a href="http://www.pokki.com/" title="Pokki" target="_blank">Pokki</a> ou encore <a href="http://fluidapp.com/" title="Fluid" target="_blank">Fluid</a>. Les incontournables sont cependant <a href="http://prism.mozillalabs.com/" title="Mozilla Prism" target="_blank">Prism de Mozilla</a>, <a href="http://gears.google.com/" title="Google Gears" target="_blank">Google Gears</a> qui sera néanmoins obsolète dès décembre 2011 et Adobe Air qui laisse cependant <a href="http://www.hongkiat.com/blog/60-useful-adobe-air-applications-you-should-know/" target="_blank">moins de flexibilité quand au choix des applications</a>.</p>
<h3>Conclusion</h3>
<p>Finalement, la solution &laquo;&nbsp;Chromium&nbsp;&raquo; est simple et efficace. Ne reste plus qu&#8217;a trouver de jolies icônes pour vos raccourcis!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donax.ch/2011/10/18/web-apps-on-desktop-with-google-chrom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.donax.ch/2011/10/18/web-apps-on-desktop-with-google-chrom/</feedburner:origLink></item>
		<item>
		<title>Mise à jour sur donax.ch</title>
		<link>http://feedproxy.google.com/~r/blog/donax/~3/-rN4ZuDCV3U/</link>
		<comments>http://www.donax.ch/2011/10/07/mise-a-jour-sur-donax-ch/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 21:16:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Divers]]></category>

		<guid isPermaLink="false">http://www.donax.ch/?p=1276</guid>
		<description><![CDATA[Ce soir nous avons modifié plusieurs éléments du site donax.ch En effet, l&#8217;ancienne page d&#8217;accueil prenait la poussière et contenait des informations redondantes avec l&#8217;installation de WordPress faite sur le [...]]]></description>
			<content:encoded><![CDATA[<p>Ce soir nous avons modifié plusieurs éléments du site <a href="http://www.donax.ch" title="donax.ch">donax.ch</a><br />
<span id="more-1276"></span><br />
En effet, l&#8217;ancienne page d&#8217;accueil prenait la poussière et contenait des informations redondantes avec l&#8217;installation de <a href="http://wordpress.com/" title="WP">WordPress</a> faite sur le sous domaine <a href="http://blog.donax.ch" title="blog.donax.ch">blog.donax.ch</a>.</p>
<p>Après réflexion, le sous domaine blog a été migré sur le domaine principal et remplace dorénavant notre précédente page d&#8217;accueil.</p>
<p>Une redirection permanente (<a href="http://fr.wikipedia.org/wiki/Liste_des_codes_HTTP#Redirection" title="301">301</a>) permet de péréniser les liens de <a href="http://blog.donax.ch" title="blog.donax.ch">blog.donax.ch</a> vers <a href="http://www.donax.ch" title="www.donax.ch">www.donax.ch</a>.</p>
<p>En addition, la mise à jour vers <a href="http://wordpress.com" title="wp">WordPress</a> 3.2.1 et celle de nos plugins a été effectuée.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donax.ch/2011/10/07/mise-a-jour-sur-donax-ch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.donax.ch/2011/10/07/mise-a-jour-sur-donax-ch/</feedburner:origLink></item>
		<item>
		<title>make.opendata.ch – Open Data Hackday</title>
		<link>http://feedproxy.google.com/~r/blog/donax/~3/T-ocy7WHidQ/</link>
		<comments>http://www.donax.ch/2011/09/27/make-opendata-ch-open-data-hackday/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 09:19:55 +0000</pubDate>
		<dc:creator>Nicolas Borboën</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Divers]]></category>

		<guid isPermaLink="false">http://www.donax.ch/?p=1248</guid>
		<description><![CDATA[Lausanne et Zürich accueilleront vendredi 30 septembre et samedi 1er octobre 2011 le premier &#171;&#160;Open Data Camp&#160;&#187; organisé par le &#171;&#160;Swiss Open Systems User Group&#160;&#187;, ch/open. Pendant deux jours, citoyens, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.donax.ch/wp-content/promo_makeopendata.png"><img src="http://www.donax.ch/wp-content/promo_makeopendata-300x168.png" alt="make.opendata.ch - Open Data Hackday" title="make.opendata.ch - Open Data Hackday" width="300" height="168" class="alignleft size-medium wp-image-1249" /></a>Lausanne et Zürich accueilleront vendredi 30 septembre et samedi 1er octobre 2011 le premier &laquo;&nbsp;Open Data Camp&nbsp;&raquo; organisé par le &laquo;&nbsp;Swiss Open Systems User Group&nbsp;&raquo;, <a href="http://ch-open.ch">ch/open</a>. Pendant deux jours, citoyens, programmeurs et designers pourront s&#8217;intéresser à la transparence et les données ouvertes. Ce camp donne suite à la conférence <a href="http://opendata.ch">opendata.ch</a> qui a eu lieu en Juin dernier.<br />
<strong>&laquo;&nbsp;Nous aspirons tous à un accès libre plus grand aux données publiques, car ces données nous appartiennent.&nbsp;&raquo;</strong><span id="more-1248"></span></p>
<h3>Open Data ?</h3>
<p>Les Open Data, ou les données ouvertes, sont des données publiques qui sont librement accessibles d&#8217;accès. Actuellement bon nombre de données sont accessibles moyennant finances, et/ou encore pire, utilisables qu&#8217;avec des licences fermées, alors qu&#8217;a priori, elles sont publiques. Les données géographiques, démographiques, statistiques, ou encore des bases de données recensant des œuvres culturelles, musicales et cinématographiques sont de potentielles sujets à l&#8217;Open Data.<br />
<br />
L&#8217;idée derrière est rendre l&#8217;accès à ces données à la population. Outre le principe philosophique et politique qui se cache derrière, le fait que n&#8217;importe qui puisse utiliser ces données afin de développer des services de qualités me plaît énormément.</p>
<h3>Et ailleurs ?</h3>
<p>Le Royaume Uni a libéré des donnés gouvernementale sous le nom de l&#8217;<a href="http://okfn.org/">Open Knowledge Foundation</a>. Sous l’influence de <a href="http://fr.wikipedia.org/wiki/Tim_Berners-Lee">Tim Berner-Lee</a>, le projet force le gouvernement à publier, parmi d&#8217;autres choses, toutes les dépenses supérieures à 25000£.<br />
<br />
Barack a également fait avancer les choses aux USA en voulant créer un gouvernement avec un niveau d&#8217;ouverture sans précédent. Le site <a href="http://www.data.gov/">data.gov</a> en est le résultat.<br />
<br />
En France une initiative similaire à vu le jour grâce aux impulsions isolées de villes, qui aboutit avec le portail <a href="http://data.gouv.fr">data.gouv.fr</a>.</p>
<h3>En Suisse ?</h3>
<p>En Suisse le libre accès aux données publiques n&#8217;est pas encore au goût du jour, d’où la l&#8217;initiative de <a href="http://www.ch-open.ch/">/ch/open</a> et de l&nbsp;&raquo;association professionnelle et spécialisée de l&#8217;informatique en Suisse (<a href="http://www.s-i.ch/">SI</a>). De plus, la collaboration avec le <a href="http://www.durabilite-numerique.ch/">groupe parlementaire pour une informatique durable</a> a permis de lancer le débat dans les média et les milieux politiques, avec la <a href="http://www.durabilite-numerique.ch/2011/06/open-gov-data-c/">conférence opendata</a> et notamment avec la rédaction d&#8217;un <a href="http://opendata.ch/manifest/">manifeste</a> et de <a href="http://www.parlament.ch/f/suche/Pages/resultate.aspx?collection=CV&#038;query=open%20data&#038;sort=GN&#038;way=desc">diverses actions parlementaires</a>.</p>
<h3>Sur le web ?</h3>
<p><b>Open Data Hackday</b></p>
<ul>
<li><a href="http://search.twitter.com/search?q=%23makeopendata">#makeopendata</a> on Twitter</li>
<li><a href="http://lanyrd.com/2011/makeopendata/">MakeOpenData</a> on Lanyrd</li>
<li>Freenode:<a href="http://webchat.freenode.net/?channels=makeopendata">#makeopendata</a> on IRC</li>
</ul>
<p><b>Autres infos</b></p>
<ul>
<li>Wikipedia: <a href="http://en.wikipedia.org/wiki/Open_data">http://en.wikipedia.org/wiki/Open_data</a></li>
<li><a href="http://www.opendatafoundation.org">Open Data Foundation</a> et <a href="http://opendatacommons.org/">Open Data Common</a></li>
<li>Un article sur ou trouver des Open Data sur <a href="http://www.readwriteweb.com/archives/where_to_find_open_data_on_the.php">Read Write Web</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.donax.ch/2011/09/27/make-opendata-ch-open-data-hackday/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.donax.ch/2011/09/27/make-opendata-ch-open-data-hackday/</feedburner:origLink></item>
		<item>
		<title>www.ps-vd.ch</title>
		<link>http://feedproxy.google.com/~r/blog/donax/~3/gqABW-6whoU/</link>
		<comments>http://www.donax.ch/2011/08/17/www-ps-vd-ch/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 10:37:04 +0000</pubDate>
		<dc:creator>Nicolas Borboën</dc:creator>
				<category><![CDATA[Références]]></category>
		<category><![CDATA[Joomla!]]></category>
		<category><![CDATA[parti socialiste vaudois]]></category>
		<category><![CDATA[ps-vd]]></category>
		<category><![CDATA[www.ps-vd.ch]]></category>

		<guid isPermaLink="false">http://www.donax.ch/?p=1226</guid>
		<description><![CDATA[Parti Socialiste Vaudois Client : Parti Socialiste Vaudois Technologie : Joomla! Site internet : www.ps-vd.ch Réalisation: Donax (nbo) Webdesign + Développement Remaniement complet de cette version mise en place en [...]]]></description>
			<content:encoded><![CDATA[<h1>Parti Socialiste Vaudois</h1>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td width="50%">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td width="150"><b>Client : </b></td>
<td>Parti Socialiste Vaudois</td>
</tr>
<tr>
<td width="150"><b>Technologie : </b></td>
<td>Joomla!</td>
</tr>
</table>
</td>
<td>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td width="150"><b>Site internet : </b></td>
<td><a href="http://www.ps-vd.ch" target="_blank">www.ps-vd.ch</a></td>
</tr>
<tr>
<td width="150"><b>Réalisation: Donax (nbo)</b></td>
<td>Webdesign + Développement</td>
</tr>
</table>
</td>
</tr>
</table>
<p><span id="more-1226"></span><br />
</p>
<p>Remaniement complet de cette version mise en place en 2005 et ayant traversé quelques épreuves (hack, mise à jour et autres réjouissances), le site du Partit Socialiste Vaudois avait besoin d&#8217;un bon coup de lifting (et de botox!). Ceux qui se souviennent de l&#8217;<a href="http://www.donax.ch/wp-content/ps-vd-ch-old.png">ancienne version</a> ne diront pas le contraire&#8230;<br />
<br /><strong>Au programme:</strong>
<ul>
<li>Mise à jour</li>
<li>Revue du template, adaptation sur appareil portables</li>
<li>Personnalisation de la page d&#8217;accueil :
<ul>
<li>Header</li>
<li>Menu avec T3 Framework</li>
<li>Slider, mise en forme des articles, boites de contenu</li>
<li>Footer</li>
</ul>
</li>
<li>Modification des polices</li>
<li>Revue des liens (SEO-SEF)</li>
</ul>
<p><strong>Ce qui a pour résultat:</strong><br />
<a href="http://www.donax.ch/wp-content/ps-vd-ch-new.png"><img src="http://www.donax.ch/wp-content/ps-vd-ch-new-1024x782.png" alt="Nouveau site www.ps-vd.ch" title="Nouveau site www.ps-vd.ch" width="650" class="alignnone size-large wp-image-1229" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.donax.ch/2011/08/17/www-ps-vd-ch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.donax.ch/2011/08/17/www-ps-vd-ch/</feedburner:origLink></item>
		<item>
		<title>MySQL Group_concat, JSON et Tags</title>
		<link>http://feedproxy.google.com/~r/blog/donax/~3/EB23oZ1OFhQ/</link>
		<comments>http://www.donax.ch/2011/08/16/mysql-group_concat-json-et-tags/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 14:11:31 +0000</pubDate>
		<dc:creator>Nicolas Borboën</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Programmation]]></category>
		<category><![CDATA[group_concat]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[tag cloud]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://www.donax.ch/?p=1209</guid>
		<description><![CDATA[Devant faire une liste de mot-clés &#8211; tags &#8211; pour une série de projet je me suis penché sur les différentes méthodes et possibilités de faire un &#171;&#160;tag cloud&#160;&#187;. Voici [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.donax.ch/wp-content/tagcloud.png" alt="" title="tagcloud" width="150" height="96" class="alignleft size-full wp-image-1215" />Devant faire une liste de mot-clés &#8211; tags &#8211; pour une série de projet je me suis penché sur les différentes méthodes et possibilités de faire un &laquo;&nbsp;tag cloud&nbsp;&raquo;. Voici ma solution&#8230; </p>
<h3>La structure de la base de donnée</h3>
<p>Trois tables sont nécessaires: projets, tags, et projects2tags. J&#8217;ai choisi de faire une table relationnelle pour garantir l&#8217;unicité des mots-clés et faciliter ensuite les recherches sur tels ou tels mots-clés.<br />
<span id="more-1209"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #808000; font-style: italic;">/*Table structure for table `projects` */</span>
<span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">TABLE</span> <span style="color: #008000;">`projects`</span> <span style="color: #FF00FF;">&#40;</span>
  <span style="color: #008000;">`project`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">8</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #FF9900; font-weight: bold;">unsigned</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #FF9900; font-weight: bold;">AUTO_INCREMENT</span> <span style="color: #990099; font-weight: bold;">COMMENT</span> <span style="color: #008000;">'PK'</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`title`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">50</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">COMMENT</span> <span style="color: #008000;">'Project title'</span><span style="color: #000033;">,</span>
  <span style="color: #990099; font-weight: bold;">PRIMARY KEY</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`project`</span><span style="color: #FF00FF;">&#41;</span>
<span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">ENGINE</span><span style="color: #CC0099;">=</span>MyISAM <span style="color: #FF9900; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #CC0099;">=</span><span style="color: #008080;">5</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #FF9900; font-weight: bold;">CHARSET</span><span style="color: #CC0099;">=</span>utf8<span style="color: #000033;">;</span>
&nbsp;
<span style="color: #808000; font-style: italic;">/*Data for the table `projects` */</span>
<span style="color: #990099; font-weight: bold;">INSERT</span> <span style="color: #990099; font-weight: bold;">INTO</span> <span style="color: #008000;">`projects`</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`project`</span><span style="color: #000033;">,</span><span style="color: #008000;">`title`</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">VALUES</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">1</span><span style="color: #000033;">,</span><span style="color: #008000;">'My first project'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">2</span><span style="color: #000033;">,</span><span style="color: #008000;">'My second project'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">3</span><span style="color: #000033;">,</span><span style="color: #008000;">'My third project'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">4</span><span style="color: #000033;">,</span><span style="color: #008000;">'My fourth project'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span>
&nbsp;
<span style="color: #808000; font-style: italic;">/*Table structure for table `projects2tags` */</span>
<span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">TABLE</span> <span style="color: #008000;">`projects2tags`</span> <span style="color: #FF00FF;">&#40;</span>
  <span style="color: #008000;">`project<span style="color: #008080; font-weight: bold;">_</span>id`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">8</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #FF9900; font-weight: bold;">unsigned</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`tag<span style="color: #008080; font-weight: bold;">_</span>id`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">8</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #FF9900; font-weight: bold;">unsigned</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>
  <span style="color: #990099; font-weight: bold;">PRIMARY KEY</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`project<span style="color: #008080; font-weight: bold;">_</span>id`</span><span style="color: #000033;">,</span><span style="color: #008000;">`tag<span style="color: #008080; font-weight: bold;">_</span>id`</span><span style="color: #FF00FF;">&#41;</span>
<span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">ENGINE</span><span style="color: #CC0099;">=</span>MyISAM <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #FF9900; font-weight: bold;">CHARSET</span><span style="color: #CC0099;">=</span>utf8<span style="color: #000033;">;</span>
&nbsp;
<span style="color: #808000; font-style: italic;">/*Data for the table `projects2tags` */</span>
<span style="color: #990099; font-weight: bold;">INSERT</span> <span style="color: #990099; font-weight: bold;">INTO</span> <span style="color: #008000;">`projects2tags`</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`project<span style="color: #008080; font-weight: bold;">_</span>id`</span><span style="color: #000033;">,</span><span style="color: #008000;">`tag<span style="color: #008080; font-weight: bold;">_</span>id`</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">VALUES</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">1</span><span style="color: #000033;">,</span><span style="color: #008080;">1</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">1</span><span style="color: #000033;">,</span><span style="color: #008080;">5</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">2</span><span style="color: #000033;">,</span><span style="color: #008080;">6</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">3</span><span style="color: #000033;">,</span><span style="color: #008080;">1</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">3</span><span style="color: #000033;">,</span><span style="color: #008080;">2</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">3</span><span style="color: #000033;">,</span><span style="color: #008080;">3</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">3</span><span style="color: #000033;">,</span><span style="color: #008080;">4</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">3</span><span style="color: #000033;">,</span><span style="color: #008080;">5</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">4</span><span style="color: #000033;">,</span><span style="color: #008080;">7</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">4</span><span style="color: #000033;">,</span><span style="color: #008080;">8</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">4</span><span style="color: #000033;">,</span><span style="color: #008080;">9</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span>
&nbsp;
<span style="color: #808000; font-style: italic;">/*Table structure for table `tags` */</span>
<span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">TABLE</span> <span style="color: #008000;">`tags`</span> <span style="color: #FF00FF;">&#40;</span>
  <span style="color: #008000;">`tag`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">8</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #FF9900; font-weight: bold;">unsigned</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #FF9900; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`name`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">20</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>
  <span style="color: #990099; font-weight: bold;">PRIMARY KEY</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`tag`</span><span style="color: #FF00FF;">&#41;</span>
<span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">ENGINE</span><span style="color: #CC0099;">=</span>MyISAM <span style="color: #FF9900; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #CC0099;">=</span><span style="color: #008080;">10</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #FF9900; font-weight: bold;">CHARSET</span><span style="color: #CC0099;">=</span>utf8<span style="color: #000033;">;</span>
&nbsp;
<span style="color: #808000; font-style: italic;">/*Data for the table `tags` */</span>
<span style="color: #990099; font-weight: bold;">INSERT</span> <span style="color: #990099; font-weight: bold;">INTO</span> <span style="color: #008000;">`tags`</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`tag`</span><span style="color: #000033;">,</span><span style="color: #008000;">`name`</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">VALUES</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">1</span><span style="color: #000033;">,</span><span style="color: #008000;">'tag1'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">2</span><span style="color: #000033;">,</span><span style="color: #008000;">'tag2'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">3</span><span style="color: #000033;">,</span><span style="color: #008000;">'tag3'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">4</span><span style="color: #000033;">,</span><span style="color: #008000;">'tag4'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">5</span><span style="color: #000033;">,</span><span style="color: #008000;">'tag5'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">6</span><span style="color: #000033;">,</span><span style="color: #008000;">'tag6'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">7</span><span style="color: #000033;">,</span><span style="color: #008000;">'tag7'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">8</span><span style="color: #000033;">,</span><span style="color: #008000;">'tag8'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">9</span><span style="color: #000033;">,</span><span style="color: #008000;">'tag9'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></pre></td></tr></table></div>

<p>Ces requêtes vous permettent de créer les 3 tables avec des données de tests.</p>
<p>Comment faire en sorte d&#8217;avoir des résultats facile a traiter, si possible sans post-traitement ?</p>
<h3>La vue</h3>
<p>Avec une vue on peut faciliter les futures requêtes, et déjà mettre en forme les résultats de manière pratique. La commande MySQL GROUP_CONCAT permet de de faire un &laquo;&nbsp;implode&nbsp;&raquo; des résultats pour fournir une liste. J&#8217;ai choisi de faire deux versions de cette liste, une au format JSON &#8211; destinée au traitement des données en PHP &#8211; et l&#8217;autre au format texte afin de faciliter la recherche des projets en fonction de leurs tags. Voici à quoi elle ressemble:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #808000; font-style: italic;">/*View structure for view v_projects */</span>
<span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #CC0099; font-weight: bold;">OR</span> <span style="color: #990099; font-weight: bold;">REPLACE</span> <span style="color: #990099; font-weight: bold;">VIEW</span> <span style="color: #008000;">`Tagging`</span>.<span style="color: #008000;">`v<span style="color: #008080; font-weight: bold;">_</span>projects`</span> 
	<span style="color: #990099; font-weight: bold;">AS</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #008000;">`p`</span>.<span style="color: #008000;">`project`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`p`</span>.<span style="color: #008000;">`title`</span><span style="color: #000033;">,</span> 
	<span style="color: #000099;">CONCAT</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">&quot;{&quot;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #000099;">GROUP_CONCAT</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">&quot;<span style="color: #004000; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #000033;">,</span><span style="color: #008000;">`t`</span>.<span style="color: #008000;">`name`</span><span style="color: #000033;">,</span><span style="color: #008000;">&quot;<span style="color: #004000; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #000033;">,</span><span style="color: #008000;">&quot;:&quot;</span><span style="color: #000033;">,</span><span style="color: #008000;">`t`</span>.<span style="color: #008000;">`tag`</span> <span style="color: #990099; font-weight: bold;">ORDER BY</span> <span style="color: #008000;">`t`</span>.<span style="color: #008000;">`name`</span> <span style="color: #990099; font-weight: bold;">ASC</span><span style="color: #FF00FF;">&#41;</span>
		<span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`projects`</span> <span style="color: #008000;">`p2`</span>
			<span style="color: #000099;">LEFT</span> <span style="color: #990099; font-weight: bold;">JOIN</span> <span style="color: #008000;">`projects2tags`</span> <span style="color: #008000;">`p2t`</span> <span style="color: #990099; font-weight: bold;">ON</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`p2`</span>.<span style="color: #008000;">`project`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">`p2t`</span>.<span style="color: #008000;">`project<span style="color: #008080; font-weight: bold;">_</span>id`</span><span style="color: #FF00FF;">&#41;</span>
			<span style="color: #000099;">LEFT</span> <span style="color: #990099; font-weight: bold;">JOIN</span> <span style="color: #008000;">`tags`</span> <span style="color: #008000;">`t`</span> <span style="color: #990099; font-weight: bold;">ON</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`t`</span>.<span style="color: #008000;">`tag`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">`p2t`</span>.<span style="color: #008000;">`tag<span style="color: #008080; font-weight: bold;">_</span>id`</span><span style="color: #FF00FF;">&#41;</span>
		<span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #008000;">`p2`</span>.<span style="color: #008000;">`project`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">`p`</span>.<span style="color: #008000;">`project`</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #008000;">&quot;}&quot;</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">AS</span> <span style="color: #008000;">`json<span style="color: #008080; font-weight: bold;">_</span>tags`</span><span style="color: #000033;">,</span>
	<span style="color: #000099;">CONCAT</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">&quot;,&quot;</span><span style="color: #000033;">,</span><span style="color: #FF00FF;">&#40;</span><span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #000099;">GROUP_CONCAT</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`t`</span>.<span style="color: #008000;">`name`</span> <span style="color: #990099; font-weight: bold;">ORDER BY</span> <span style="color: #008000;">`t`</span>.<span style="color: #008000;">`name`</span> <span style="color: #990099; font-weight: bold;">ASC</span><span style="color: #FF00FF;">&#41;</span>
		<span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`projects`</span> <span style="color: #008000;">`p2`</span>
			<span style="color: #000099;">LEFT</span> <span style="color: #990099; font-weight: bold;">JOIN</span> <span style="color: #008000;">`projects2tags`</span> <span style="color: #008000;">`p2t`</span> <span style="color: #990099; font-weight: bold;">ON</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`p2`</span>.<span style="color: #008000;">`project`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">`p2t`</span>.<span style="color: #008000;">`project<span style="color: #008080; font-weight: bold;">_</span>id`</span><span style="color: #FF00FF;">&#41;</span>
			<span style="color: #000099;">LEFT</span> <span style="color: #990099; font-weight: bold;">JOIN</span> <span style="color: #008000;">`tags`</span> <span style="color: #008000;">`t`</span> <span style="color: #990099; font-weight: bold;">ON</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`t`</span>.<span style="color: #008000;">`tag`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">`p2t`</span>.<span style="color: #008000;">`tag<span style="color: #008080; font-weight: bold;">_</span>id`</span><span style="color: #FF00FF;">&#41;</span>
		<span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #008000;">`p2`</span>.<span style="color: #008000;">`project`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">`p`</span>.<span style="color: #008000;">`project`</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #008000;">&quot;,&quot;</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">AS</span> <span style="color: #008000;">`lookup<span style="color: #008080; font-weight: bold;">_</span>tags`</span>
	<span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`projects`</span> <span style="color: #008000;">`p`</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></pre></td></tr></table></div>

<p>Cette vue &laquo;&nbsp;v_projects&nbsp;&raquo; est utilisable comme un table habituelle mais ses données sont dynamiques et il est impossible modifier les datas la composant sans passer par les vraies tables.</p>
<h3>En pratique</h3>
<p>Une requête comme <i>SELECT * from v_projects;</i> sort les résultats suivant:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #cc66cc;">1</span>	My first project	<span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;tag1&quot;</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;tag5&quot;</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#125;</span>	<span style="color: #339933;">,</span>tag1<span style="color: #339933;">,</span>tag5<span style="color: #339933;">,</span>
<span style="color: #cc66cc;">2</span>	My second project	<span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;tag6&quot;</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #009900;">&#125;</span>	<span style="color: #339933;">,</span>tag6<span style="color: #339933;">,</span>
<span style="color: #cc66cc;">3</span>	My third project	<span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;tag1&quot;</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;tag2&quot;</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;tag3&quot;</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;tag4&quot;</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;tag5&quot;</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#125;</span>	<span style="color: #339933;">,</span>tag1<span style="color: #339933;">,</span>tag2<span style="color: #339933;">,</span>tag3<span style="color: #339933;">,</span>tag4<span style="color: #339933;">,</span>tag5<span style="color: #339933;">,</span>
<span style="color: #cc66cc;">4</span>	My fourth project	<span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;tag7&quot;</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">7</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;tag8&quot;</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;tag9&quot;</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">9</span><span style="color: #009900;">&#125;</span>	<span style="color: #339933;">,</span>tag7<span style="color: #339933;">,</span>tag8<span style="color: #339933;">,</span>tag9<span style="color: #339933;">,</span></pre></td></tr></table></div>

<p>Les résultats de la colonne json_tags sont facilement exploitables en PHP avec la commande <a href="http://php.net/manual/en/function.json-decode.php">JSON_DECODE()</a> qui les transformera en tableau PHP.</p>
<p>Les résultats de la colonne lookup_tags sont destinés à la recherche en MySQL, soit avec une requête comme <i>SELECT project, title FROM v_projects WHERE lookup_tags LIKE &laquo;&nbsp;%,tag1,%&nbsp;&raquo;;</i>. Vous noterez que le champs a des virgules avant et après, ce qui facilite la recherche &laquo;&nbsp;LIKE&nbsp;&raquo; sur tout le champs en évitant les erreurs de mots raccourcis. La recherche sur tag1 ne retournera pas tag13, tag118, &#8230;</p>
<h3>Littérature</h3>
<ul>
<li>MySQl Group_Concat: <a href="http://dev.mysql.com/doc/refman/5.6/en/group-by-functions.html#function_group-concat">http://dev.mysql.com/doc/refman/5.6/en/group-by-functions.html#function_group-concat</a></li>
<li>Imploding MySQL vs PHP:<a href=" http://stackoverflow.com/questions/5957389/imploding-in-php-vs-imploding-in-mysql-which-uses-less-cpu"> http://stackoverflow.com/questions/5957389/imploding-in-php-vs-imploding-in-mysql-which-uses-less-cpu</a></li>
<li>MySQL TagSchema: <a href="http://forge.mysql.com/wiki/TagSchema">http://forge.mysql.com/wiki/TagSchema</a></li>
<li>Performance: <a href="http://www.pui.ch/phred/archives/2005/06/tagsystems-performance-tests.html">http://www.pui.ch/phred/archives/2005/06/tagsystems-performance-tests.html</a></li>
<li>Méthodes: <a href="http://www.pui.ch/phred/archives/2005/04/tags-database-schemas.html">http://www.pui.ch/phred/archives/2005/04/tags-database-schemas.html</a></li>
<li>Fulltext: <a href="http://www.pui.ch/phred/archives/2005/05/tags-with-mysql-fulltext.html">http://www.pui.ch/phred/archives/2005/05/tags-with-mysql-fulltext.html</a></li>
<li>Général/Design: <a href="http://www.smashingmagazine.com/2007/11/07/tag-clouds-gallery-examples-and-good-practices/">http://www.smashingmagazine.com/2007/11/07/tag-clouds-gallery-examples-and-good-practices/</a> </li>
<li>PHP Json Encode: <a href="http://php.net/manual/en/function.json-encode.php">http://php.net/manual/en/function.json-encode.php</a></li>
</ul>
<h3>A vous de jouer !</h3>
<p>Les sources sont disponibles ici: <a href='http://www.donax.ch/wp-content/tagging.txt'>SQL Tagging with GROUP_CONCAT and JSON</a>. Et vos commentaires sur cette application sont attendus ci-dessous! Merci!</p>
<p><small>crédit photo: <a href="http://www.uni-koblenz.de/~staab/">http://www.uni-koblenz.de/~staab/</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.donax.ch/2011/08/16/mysql-group_concat-json-et-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.donax.ch/2011/08/16/mysql-group_concat-json-et-tags/</feedburner:origLink></item>
		<item>
		<title>MySQL – Listes de pays</title>
		<link>http://feedproxy.google.com/~r/blog/donax/~3/hOYFOsqollY/</link>
		<comments>http://www.donax.ch/2011/07/21/mysql-listes-de-pays/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 09:12:10 +0000</pubDate>
		<dc:creator>Nicolas Borboën</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Web / Internet]]></category>
		<category><![CDATA[countries]]></category>
		<category><![CDATA[country]]></category>
		<category><![CDATA[iso-3166]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.donax.ch/?p=1195</guid>
		<description><![CDATA[A chaque fois la même histoire: trouver une liste de pays formatée en anglais et en français qui utilise les codes ISO-31661-1 est une vraie galère. J&#8217;ai donc créé ma [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.donax.ch/wp-content/flags_small.png" alt="" title="Flags" width="150" height="50" class="alignleft size-full wp-image-1198" /><br />
A chaque fois la même histoire: trouver une liste de pays formatée en anglais et en français qui utilise les codes ISO-31661-1 est une vraie galère. J&#8217;ai donc créé ma propre liste basée sur les données de wikipedia <span id="more-1195"></span>:</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/ISO_3166-1">http://en.wikipedia.org/wiki/ISO_3166-1</a></li>
<li><a href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2</a></li>
<li><a href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-3">http://en.wikipedia.org/wiki/ISO_3166-1_alpha-3</a></li>
<li><a href="http://fr.wikipedia.org/wiki/ISO_3166-1">http://fr.wikipedia.org/wiki/ISO_3166-1</a></li>
</ul>
<p>La table contient les champs suivants: name_en, name_fr, iso2, iso3, number, tld.</p>
<p>Dans le fichier joint (<a href='http://www.donax.ch/wp-content/countries_iso_3166.zip'>Countries ISO-3166-1</a>), vous trouverez <strong>countries.sql</strong> (le fichier qui va bien pour créer sa table et les données des pays) ainsi que le fichier <strong>country_code_iso_3166.ods</strong> (le fichier qui a permis la création de la table avec les différentes listes de wikipédia).</p>
<p><center><strong><a href='http://www.donax.ch/wp-content/countries_iso_3166.zip'>Télécharger le ZIP Countries ISO-3166-1</a></strong></center></p>
<p>J&#8217;espère que cela sera utile à certaines personnes (et si oui, laissez un commentaire). Laissez aussi un commentaire si ceci est purement inutile car vous connaissez LE site qui tient la liste à jour!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donax.ch/2011/07/21/mysql-listes-de-pays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.donax.ch/2011/07/21/mysql-listes-de-pays/</feedburner:origLink></item>
	</channel>
</rss>

