<?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>Darklg Blog</title>
	<atom:link href="http://darklg.me/feed/" rel="self" type="application/rss+xml" />
	<link>http://darklg.me</link>
	<description>Intégration, développement web, SEO, caféine</description>
	<lastBuildDate>Sat, 04 Feb 2012 12:09:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Darklg Blog fait peau neuve</title>
		<link>http://darklg.me/2012/02/darklg-blog-fait-peau-neuve/</link>
		<comments>http://darklg.me/2012/02/darklg-blog-fait-peau-neuve/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 12:09:42 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Développement PHP / MySQL]]></category>
		<category><![CDATA[Intégration HTML / CSS]]></category>
		<category><![CDATA[Wordpress & CMS]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=687</guid>
		<description><![CDATA[Après plus de 3 ans sur un thème téléchargé et bidouillé jusqu’à plus soif, il était temps pour moi de mettre à profit quelques connaissances acquises chez Colorz pour concevoir mon propre thème WordPress.
]]></description>
			<content:encoded><![CDATA[<p>Après <a href="http://darklg.me/2008/09/darklg-blog-change-de-tete/">plus de 3 ans sur un thème téléchargé et bidouillé</a> jusqu&#8217;à plus soif, il était temps pour moi de mettre à profit quelques connaissances acquises chez <a href="http://www.colorz.fr">Colorz</a> pour concevoir <strong>mon propre thème WordPress</strong>.</p>
<p>L&#8217;apparence de ce dernier ne change pas beaucoup, étant donné que j&#8217;ai toujours aussi peu de compétences en design, mais c&#8217;est <strong>sous le capot</strong> que beaucoup de changements se sont produits.</p>
<h3>Principaux changements</h3>
<ul>
<li>Les fichiers du thème sont <strong>versionnés sur Git</strong>. Pratique pour le déploiement, pour les backups, et pour garder une trace de son évolution.</li>
<li>Les commentaires n&#8217;ont <strong>plus de nofollow</strong>. Je vais probablement regretter la vague de spams, mais tant mieux pour les commentateurs.</li>
<li>Le thème est en <strong>responsive web design</strong>. Donc enfin un vrai thème mobile <img src='http://darklg.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Beaucoup <strong>moins de plugins</strong> derrière. Donc plus de WP-Page Navi, WP-Similar, et donc de meilleures performances.</li>
<li>Le code derrière est <strong>plus solide</strong>, et <strong>mieux rangé</strong>.</li>
</ul>
<p>Le changement le plus significatif pour moi est le départ sur une <strong>nouvelle base</strong> propre, qui me permettra tôt ou tard de publier le code de ce thème, et d&#8217;y apporter des modifications intéressantes !</p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2012/02/darklg-blog-fait-peau-neuve/">Darklg Blog fait peau neuve</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Darklg+Blog+fait+peau+neuve&amp;url=http://darklg.me/2012/02/darklg-blog-fait-peau-neuve/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2012/02/darklg-blog-fait-peau-neuve/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logiciels utilisés pour l&#8217;intégration HTML/CSS sous Mac OS X</title>
		<link>http://darklg.me/2012/01/logiciels-integration-html-css-mac-os-x/</link>
		<comments>http://darklg.me/2012/01/logiciels-integration-html-css-mac-os-x/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 13:16:51 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Intégration HTML / CSS]]></category>
		<category><![CDATA[front-end]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[logiciel]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=686</guid>
		<description><![CDATA[Voici la liste des programmes que j’utilise au quotidien, en tant qu’Intégrateur / Développeur Front-End. Ce ne sont probablement pas les meilleurs, mais ils facilitent énormément mon travail.]]></description>
			<content:encoded><![CDATA[<p>Voici la liste des <strong>programmes</strong> que j&#8217;utilise au quotidien, en tant qu&#8217;<strong>Intégrateur</strong> / <strong>Développeur Front-End</strong>. Ce ne sont probablement pas les meilleurs, mais ils facilitent énormément mon travail.</p>
<h3>Logiciels pour l&#8217;intégrateur</h3>
<ul>
<li><strong><a href="http://www.smilesoftware.com/TextExpander/">TextExpander</a> (34.95$)</strong><br />
Gérer des <a href="http://darklg.me/2011/10/la-magie-des-snippets/" title="La magie des Snippets">snippets</a> dans n&#8217;importe quel logiciel.</li>
<li><strong><a href="http://macromates.com/">TextMate</a> (44.85€)</strong><br />
Editeur de code léger et puissant, <a href="http://darklg.me/2008/11/antiseches-textmate/">bourré d&#8217;astuces</a>.</li>
<li><strong><a href="https://www.google.com/chrome?hl=fr">Google Chrome</a> (Gratuit)</strong><br />
Un navigateur rapide et efficace, doublé d&#8217;un inspecteur de code.</li>
<li><strong><a href="http://www.mamp.info/en/index.html">MAMP</a> (Gratuit)</strong><br />
Apache, MySQL, PHP. <a href="http://darklg.me/2011/09/mettre-a-jour-mamp/">Mise à jour</a> &quot;complexe&quot;.</li>
<li><strong><a href="http://git-scm.com/">Git</a> (Gratuit)</strong><br />
Un logiciel de gestion de versions. Indispensable.</li>
<li><strong><a href="http://mac.github.com/">Github</a> (Gratuit)</strong><br />
Une interface agréable pour Git</li>
<li><strong><a href="https://www.virtualbox.org/">VirtualBox</a> (Gratuit)</strong><br />
Gestion de machines virtuelles pour le débug (<3 IE)</li>
<li><strong><a href="http://imageoptim.pornel.net/">ImageOptim</a> (Gratuit)</strong><br />
Optimiser le poids des images.</li>
<li><strong><a href="http://www.adobe.com/fr/products/photoshop.html">Adobe Photoshop</a> (Cher)</strong><br />
Difficile de se passer de cet éditeur avancé pour découper des maquettes.</li>
<li><strong><a href="http://itunes.apple.com/fr/app/spriteright/id488584662">SpriteRight</a> (3.99€)</strong><br />
Gérer et concevoir vos sprites CSS.</li>
<li><strong><a href="http://itunes.apple.com/fr/app/gradient-pro/id493987260">Gradient Pro</a> (3.99€)</strong><br />
Gérer et concevoir vos dégradés avancés CSS.</li>
<li><strong><a href="http://www.apple.com/downloads/dashboard/developer/htmlentitycharacterlookup.html">Widget HTML Entities</a> (Gratuit)</strong><br />
Un widget simple pour retrouver des entités HTML.</li>
</ul>
<h3>Autres logiciels</h3>
<ul>
<li><strong><a href="http://www.sequelpro.com/">Sequel Pro</a> (Gratuit)</strong><br />
LE logiciel pour gérer vos bases de données.</li>
<li><strong><a href="http://itunes.apple.com/fr/app/reeder/id439845554?mt=12&#038;ls=1">Reeder</a> (7,99€)</strong><br />
Un des meilleurs lecteurs RSS de bureau, synchronisé avec Google Reader.</li>
<li><strong><a href="http://fluidapp.com/">Fluid</a> (Gratuit/4.99$)</strong><br />
Transforme un site web en application de bureau.</li>
<li><strong><a href="http://itunes.apple.com/fr/app/sparrow/id417250177?mt=12">Sparrow</a> (7,99€)</strong><br />
Un logiciel efficace pour votre boîte Gmail (et autres).</li>
</ul>
<p>Et vous, quels sont vos logiciels préférés pour l&#8217;intégration ou le développement front sur Mac ?</p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2012/01/logiciels-integration-html-css-mac-os-x/">Logiciels utilisés pour l&#8217;intégration HTML/CSS sous Mac OS X</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Logiciels+utilis%C3%A9s+pour+l%26%238217%3Bint%C3%A9gration+HTML%2FCSS+sous+Mac+OS+X&amp;url=http://darklg.me/2012/01/logiciels-integration-html-css-mac-os-x/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2012/01/logiciels-integration-html-css-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Pourquoi un serveur dédié ?</title>
		<link>http://darklg.me/2011/12/pourquoi-un-serveur-dedie/</link>
		<comments>http://darklg.me/2011/12/pourquoi-un-serveur-dedie/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 15:48:01 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Divers]]></category>
		<category><![CDATA[serveur dédié]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=684</guid>
		<description><![CDATA[Une discussion entre Clément, Christophe et moi sur les mérites d’un serveur dédié par rapport à un hébergement sur un mutualisé m’a donné envie de faire une liste des avantages d’un serveur dédié pour un intégrateur/développeur.
]]></description>
			<content:encoded><![CDATA[<p>Une discussion entre <a href="http://www.clementdelmas.fr/">Clément</a>, <a href="http://www.shadowkris.com/">Christophe</a> et moi sur les mérites d&#8217;un serveur dédié par rapport à un hébergement sur un mutualisé m&#8217;a donné envie de faire une liste des avantages d&#8217;un serveur dédié pour un intégrateur/développeur.</p>
<ul>
<li><strong>Crontab</strong> : Exécuter des tâches automatiquement, sans déranger les visiteurs avec des faux crons. Magique.</li>
<li><strong>Gestion de la performance</strong> : Installer <a href="http://php.net/manual/fr/book.apc.php">APC</a> ? Adapter sa configuration de serveur pour servir principalement des fichiers statiques avec <a href="http://nginx.org/">NGINX</a>.
</li>
<li><strong>De nouveaux langages</strong> : Vous voulez faire du Ruby on Rails ? Installez-le sur votre serveur ! Vous désirez utiliser les nouveautés de la dernière version de PHP ?.</li>
<li><strong>Des sous-domaines/Sites &laquo;&nbsp;illimités&nbsp;&raquo;</strong> : Vous n&#8217;avez que des petits sites statiques, et le fait de devoir repayer pour un autre hébergement vous embête ? </li>
<li><strong>Pas de restrictions farfelues</strong> : Limites de trafic mensuel, de nombres de bases de données, d&#8217;utilisateurs FTP &#8230; </li>
<li><strong>Un proxy</strong> : Un serveur dédié peut tout à fait servir de relais pour passer outre certaines restrictions de DNS ou autres.</li>
<li><strong>Votre Cloud</strong> : Pas confiance en Dropbox, Apple ou Google pour conserver vos données ? Installez un serveur mail, un accès FTP, un serveur CalDav, rsync !
</li>
<li><strong>La formation</strong> : Mettre les mains dans le cambouis, et les yeux dans la ligne de commande vous apprendront beaucoup sur les coulisses du web.</li>
</ul>
<p>Un serveur, c&#8217;est forcément plus compliqué qu&#8217;un hébergement tout fait, mais les avantages sont non négligeables &#8230; Et le prix n&#8217;est plus vraiment un souci avec les offres <a href="http://www.kimsufi.com/fr/">Kimsufi</a> ou <a href="http://www.online.net/serveur-dedie/comparatif-offres-serveur-dedie-hp.xhtml">Dédibox</a> !</p>
<p>Pour ceux qui sont convaincus, jetez un oeil au <a href="http://www.alsacreations.com/tuto/lire/621-Configuration-d-un-serveur-dedie-de-A-a-Z.html">tutoriel d&#8217;Alsacréations sur les bases de la gestion de serveur dédié</a>, tout simple, rapide à mettre en place, une merveille pour démarrer.</p>
<p>Vous avez des idées pour allonger cette liste ? : )</p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/12/pourquoi-un-serveur-dedie/">Pourquoi un serveur dédié ?</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Pourquoi+un+serveur+d%C3%A9di%C3%A9+%3F&amp;url=http://darklg.me/2011/12/pourquoi-un-serveur-dedie/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/12/pourquoi-un-serveur-dedie/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>[Tips] Accélerer Photoshop et Aperçu sous Mac OS X Lion</title>
		<link>http://darklg.me/2011/12/tips-accelerer-photoshop-apercu-mac-os-lion/</link>
		<comments>http://darklg.me/2011/12/tips-accelerer-photoshop-apercu-mac-os-lion/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 14:42:20 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Vite vu Vite lu Vite écrit.]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac os]]></category>
		<category><![CDATA[optimisation]]></category>
		<category><![CDATA[photoshop]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=677</guid>
		<description><![CDATA[Quelques astuces rapides pour l’optimisation de programmes que j’utilise souvent sur Mac, et qui ont parfois quelques problèmes de performances sur OS X Lion]]></description>
			<content:encoded><![CDATA[<p>Quelques astuces rapides pour l&#8217;optimisation de programmes que j&#8217;utilise souvent sur Mac, et qui ont parfois quelques problèmes de performances sur <strong>OS X Lion</strong></p>
<h3>Accélerer Aperçu / Preview</h3>
<p>Il suffit de désactiver la restauration des fenêtres : quittez Aperçu avec CMD+Alt(option)+Q, puis tapez ceci dans un terminal et validez. <a href="http://apple.stackexchange.com/questions/18445/upgrading-to-lion-now-preview-app-is-excessively-slow">Source</a><br />
<code>defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false</code><br />
(Ou comme me le souligne <a href="http://blog.shadowkris.com/">ShadowKris</a> : &laquo;&nbsp;Préférences Système > Général et décocher &laquo;&nbsp;Restaurer les fenêtres à la fermeture[…]&nbsp;&raquo; plutôt que de geeker au terminal <img src='http://darklg.me/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> &nbsp;&raquo;</p>
<h3>Accélerer Photoshop</h3>
<p>Une traduction partielle de l&#8217;excellent <a href="http://www.aisleone.net/photoshoptimize/">PhotoshOptimize</a>. Ces conseils valent pour un intégrateur, qui n&#8217;a normalement pas à modifier de PSD (mais qui doit le détruire minutieusement), et je ne garantis aucun résultat, forcément. Mais chez moi, OS X Lion et Photoshop s&#8217;entendent mieux :&#8217;)</p>
<p><strong>Réduire les niveaux de cache</strong><br />
Dans Photoshop → Préférences → Performances.<br />
Choisissez &#8217;1&#8242; comme valeur pour le nombre de Niveaux de cache.</p>
<p><strong>Réduire le nombre d&#8217;états dans l&#8217;historique</strong><br />
Dans Photoshop → Préférences → Performances.<br />
Choisissez un petit nombre d&#8217;états d&#8217;Historique (5 pour moi)</p>
<p><strong>Désactivez la prévisualisation des polices</strong><br />
Dans Photoshop → Préférences → Texte.<br />
Décochez la taille d&#8217;aperçu de la police</p>
<p><strong>Désactivez la prévisualisation des images</strong><br />
Dans Photoshop → Préférences → Gestion des fichiers.<br />
Sélectionnez &laquo;&nbsp;Ne jamais enregistrer&nbsp;&raquo; les Aperçus d&#8217;image.</p>
<p><strong>Désactivez l&#8217;export du presse-papier</strong><br />
Dans Photoshop → Préférences → Général.<br />
Décochez &laquo;&nbsp;exporter le presse-papier&nbsp;&raquo;</p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/12/tips-accelerer-photoshop-apercu-mac-os-lion/">[Tips] Accélerer Photoshop et Aperçu sous Mac OS X Lion</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+%5BTips%5D+Acc%C3%A9lerer+Photoshop+et+Aper%C3%A7u+sous+Mac+OS+X+Lion&amp;url=http://darklg.me/2011/12/tips-accelerer-photoshop-apercu-mac-os-lion/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/12/tips-accelerer-photoshop-apercu-mac-os-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Obtenez vos images PlaceHolders avec PlaceHugger !</title>
		<link>http://darklg.me/2011/12/obtenez-vos-images-placeholders-avec-placehugger/</link>
		<comments>http://darklg.me/2011/12/obtenez-vos-images-placeholders-avec-placehugger/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 12:24:53 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Développement PHP / MySQL]]></category>
		<category><![CDATA[Intégration HTML / CSS]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[placeholder]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=674</guid>
		<description><![CDATA[Vous connaissez probablement les sites tels que PlaceKitten ou LoremPixum, qui servent à obtenir des images PlaceHolder, afin d’habiller en vitesse une intégration, dans la même veine qu’un Lorem Ipsum faisant illusion de contenu texte.
]]></description>
			<content:encoded><![CDATA[<p>Vous connaissez probablement les sites tels que <strong>PlaceKitten</strong> ou <strong><a href="http://lorempixum.com">LoremPixum</a></strong>, qui servent à obtenir des images PlaceHolder, afin d&#8217;habiller en vitesse une intégration, dans la même veine qu&#8217;un Lorem Ipsum faisant illusion de contenu texte.</p>
<p>Ces sites ont un défaut qui m&#8217;a été rappelé l&#8217;autre jour, quand PlaceKitten est tombé <strong>hors ligne</strong>, et que mes intégrations ont été déshabillées d&#8217;un coup. Aucun moyen de monétiser (Bannieres sur le site, bof, insertion de marques dans les images, bof), donc une durée de vie limitée en cas de succès soudain et d&#8217;absence de sponsors.</p>
<p>J&#8217;ai donc mis en place un petit script permettant d&#8217;installer votre propre service de placeholders sur votre serveur/machine, afin d&#8217;<strong>éviter les soucis</strong> liés à l&#8217;utilisation d&#8217;un service externe, tels que le ralentissement de vos sites locaux, le manque de fiabilité, etc.</p>
<p>Ce Script doit être dézippé/cloné sur votre serveur/hébergement utilisant Apache &#038; PHP, avec mod_rewrite et GD activés. Plus qu&#8217;à le <strong>lancer</strong>, <strong>glisser des images</strong> en JPG dans le sous-dossier images/ et <strong>c&#8217;est parti</strong> !</p>
<p><a href="https://github.com/Darklg/PlaceHugger">PlaceHugger est un script en PHP, disponible sur GitHub</a></p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/12/obtenez-vos-images-placeholders-avec-placehugger/">Obtenez vos images PlaceHolders avec PlaceHugger !</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Obtenez+vos+images+PlaceHolders+avec+PlaceHugger+%21&amp;url=http://darklg.me/2011/12/obtenez-vos-images-placeholders-avec-placehugger/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/12/obtenez-vos-images-placeholders-avec-placehugger/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Générez du RGBa compatible Internet Explorer avec GiveMeRGBA !</title>
		<link>http://darklg.me/2011/11/generez-rgba-compatible-internet-explorer-givemergba/</link>
		<comments>http://darklg.me/2011/11/generez-rgba-compatible-internet-explorer-givemergba/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 08:31:32 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Développement PHP / MySQL]]></category>
		<category><![CDATA[Intégration HTML / CSS]]></category>
		<category><![CDATA[argb]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[rgba]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=671</guid>
		<description><![CDATA[Vous utilisez CSS3, et avez largement adopté la rgba(), pour mettre en place des couleurs avec transparence. Seulement, voilà, lors des tests sous Google Chrome, tout passe bien, mais une fois sur Internet Explorer 7, ça ne marche pas !
]]></description>
			<content:encoded><![CDATA[<p>Vous utilisez <strong>CSS3</strong>, et avez largement adopté la <a href="http://www.alsacreations.com/tuto/lire/909-CSS-transparence-couleur-rgba.html"><strong>rgba()</strong></a>, pour mettre en place des couleurs avec transparence. Seulement, voilà, lors des tests sous Google Chrome, tout passe bien, mais une fois sur <strong>Internet Explorer 7</strong>, ça ne marche pas !</p>
<p>Heureusement, des hacks existent pour permettre de gérer l&#8217;opacité d&#8217;une couleur sous <strong>Internet Explorer</strong>, pour un background. Des <a href="http://bricss.net/post/12423845540/working-with-8-digit-hex-colors-argb-in-internet" lang="en">filters avec aRGB</a>, demandant une certaine structure, un recalcul des valeurs, un niveau d&#8217;opacité en hexadécimal.</p>
<p>Lors d&#8217;une petite pause dans mon travail chez <a href="http://www.colorz.fr" title="Amazing french web-agency !">Colorz</a>, j&#8217;ai monté <strong>GiveMeRGBA</strong> un outil rapide permettant, en fournissant uniquement la <strong>couleur en hexadécimal</strong>, et le <strong>pourcentage d&#8217;opacité</strong>, de générer tout le code nécessaire pour avoir un fond semi-transparent sur la plupart des navigateurs (dont Internet Explorer 7 et plus). C&#8217;est un script sans prétention, <a lang="en" href="https://github.com/Darklg/GiveMeRGBA" title="GiveMeRGBA sur GitHub">disponible sur Github</a> et ouvert à tout commentaire.</p>
<p><strong>Testez directement <a href="http://lab.darklg.me/GiveMeRGBA">GiveMeRGBA</a></strong></p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/11/generez-rgba-compatible-internet-explorer-givemergba/">Générez du RGBa compatible Internet Explorer avec GiveMeRGBA !</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+G%C3%A9n%C3%A9rez+du+RGBa+compatible+Internet+Explorer+avec+GiveMeRGBA+%21&amp;url=http://darklg.me/2011/11/generez-rgba-compatible-internet-explorer-givemergba/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/11/generez-rgba-compatible-internet-explorer-givemergba/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>[Snippet] Content Spinning en Javascript</title>
		<link>http://darklg.me/2011/11/snippet-content-spinning-en-javascript/</link>
		<comments>http://darklg.me/2011/11/snippet-content-spinning-en-javascript/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 20:48:11 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Intégration HTML / CSS]]></category>
		<category><![CDATA[content spinning]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=667</guid>
		<description><![CDATA[Pour les besoins de mon dernier projet rigolo (PhilMyFields, un bookmarklet qui remplit automatiquement les formulaires d’une page), j’ai eu besoin de creer un script permettant du Content Spinning en JS.]]></description>
			<content:encoded><![CDATA[<p>Le <a href="http://en.wikipedia.org/wiki/Article_spinning" lang="en"><strong>Content Spinning</strong></a> est une technique consistant à écrire des textes contenant des synonymes pour la plupart de ses mots / expressions, afin de pouvoir <strong>générer des phrases aléatoires</strong>, mais d&#8217;un sens similaire, ce qui peut être intéressant <em>pour éviter le duplicate content</em> dans certains cas.</p>
<p>Exemple : &laquo;&nbsp;{Bonjour|Salut}, je m&#8217;appelle {Kevin|Darklg}&nbsp;&raquo; pourra produire &laquo;&nbsp;Bonjour, je m&#8217;appelle Kevin&nbsp;&raquo;, &laquo;&nbsp;Salut, je m&#8217;appelle Darklg&nbsp;&raquo;, &laquo;&nbsp;Salut, je m&#8217;appelle Kevin&nbsp;&raquo;, &#8230;</p>
<p>Pour les besoins de mon dernier projet rigolo (<a href="https://github.com/darklg/PhilMyFields">PhilMyFields</a>, un bookmarklet qui remplit automatiquement les formulaires d&#8217;une page), j&#8217;ai eu besoin de creer un script permettant du <strong>Content Spinning en JS</strong>.</p>
<p>C&#8217;est pour vous, pas besoin de librairie JS, ça peut s&#8217;optimiser, mais c&#8217;est cadeau :</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Retourne un élément au hasard dans un tableau</span>
<span style="color: #003366; font-weight: bold;">function</span> phil_rand_arr<span style="color: #009900;">&#40;</span>tableau<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">return</span> tableau<span style="color: #009900;">&#91;</span>Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> tableau.<span style="color: #660066;">length</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Retourne un texte &quot;spinné&quot;</span>
<span style="color: #003366; font-weight: bold;">function</span> phil_content_spinning<span style="color: #009900;">&#40;</span>txt<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> matches <span style="color: #339933;">=</span> txt.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/{[^{]+}/g</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>matches<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>i <span style="color: #000066; font-weight: bold;">in</span> matches<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			spin <span style="color: #339933;">=</span> matches<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">''</span><span style="color: #339933;">;</span>
			ori_spin <span style="color: #339933;">=</span> spin<span style="color: #339933;">;</span>
			spin <span style="color: #339933;">=</span> spin.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;{&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;}&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			spin_strs <span style="color: #339933;">=</span> spin.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'|'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			txt <span style="color: #339933;">=</span> txt.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span>ori_spin<span style="color: #339933;">,</span>phil_rand_arr<span style="color: #009900;">&#40;</span>spin_strs<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">return</span> txt<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// La démo, la démo, la démo !</span>
console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span>phil_content_spinning<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'{Bonjour|Salut}, je m’appelle {Kevin|Darklg}'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>


<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/11/snippet-content-spinning-en-javascript/">[Snippet] Content Spinning en Javascript</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+%5BSnippet%5D+Content+Spinning+en+Javascript&amp;url=http://darklg.me/2011/11/snippet-content-spinning-en-javascript/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/11/snippet-content-spinning-en-javascript/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Débug rapide d&#8217;Internet Explorer 7 sur Mac</title>
		<link>http://darklg.me/2011/10/debug-rapide-internet-explorer-7-sur-mac/</link>
		<comments>http://darklg.me/2011/10/debug-rapide-internet-explorer-7-sur-mac/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 09:21:30 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Intégration HTML / CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[internet explorer]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=664</guid>
		<description><![CDATA[Plus une astuce qu’un véritable article, mais je viens de tester l’application WineBottler, qui permet, à l’aide de Wine, d’installer une version d’Internet Explorer 7 sur Mac.]]></description>
			<content:encoded><![CDATA[<p>Plus une astuce qu&#8217;un véritable article, mais je viens de tester l&#8217;application <a href="http://winebottler.kronenberg.org">WineBottler</a>, qui permet, à l&#8217;aide de Wine, d&#8217;installer une version d&#8217;<strong>Internet Explorer 7 sur Mac</strong>. <del>Certains vont me dire : MER IL ET FOU.</del>*</p>
<p>J&#8217;ai donc suivi un <a href="http://xsolutions.free.fr/home/mac/soft/IEsurMac.php" title="Attention les yeux, Tutoriel sur IE7">tutoriel d&#8217;installation</a>, pour arriver à un fichier <em>Microsoft Internet Explorer 7.app</em> dans mon dossier d&#8217;Applications.</p>
<p>Le résultat est à la hauteur de mes attentes. L&#8217;interface est buguée, le JS semble difficilement géré, les polices laissées au soin du navigateur ( font-family:serif; et autres sans-serif ) sont hasardeuses, et il semble ignorer les <a href="http://darklg.me/2011/08/internet-explorer-body-css-class/" title="Snippet : Internet Explorer en Body CSS Class">conditions HTML &#038; body multiples</a>.</p>
<p>Malgré ça, il se lance en une poignée de secondes, est donc bien plus rapide qu&#8217;une machine virtuelle, et vous permettra de lancer ponctuellement <strong>Internet Explorer sur votre Mac</strong> en début de projet, plutôt que de devoir faire des &laquo;&nbsp;pauses machine virtuelle&nbsp;&raquo; pour vérifier les bugs éventuels de vos intégrations.</p>
<p>Une arme à double tranchant, mais tout de même une astuce à partager ; )</p>
<p><img src="http://darklg.me/wp-content/uploads/2011/10/darklg-internet-explorer-mac-500x395.png" alt="darklg blog dans internet explorer ma" title="darklg blog dans internet explorer mac" width="500" height="395" /></p>
<p>* <a href="http://www.gamekult.com/forum/topic-dois-je-acheter-la-psp-550218n.html">Grosse référence</a></p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/10/debug-rapide-internet-explorer-7-sur-mac/">Débug rapide d&#8217;Internet Explorer 7 sur Mac</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+D%C3%A9bug+rapide+d%26%238217%3BInternet+Explorer+7+sur+Mac&amp;url=http://darklg.me/2011/10/debug-rapide-internet-explorer-7-sur-mac/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/10/debug-rapide-internet-explorer-7-sur-mac/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Attention aux Custom Post Types !</title>
		<link>http://darklg.me/2011/10/attention-aux-custom-post-types/</link>
		<comments>http://darklg.me/2011/10/attention-aux-custom-post-types/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 15:10:06 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Développement PHP / MySQL]]></category>
		<category><![CDATA[Wordpress & CMS]]></category>
		<category><![CDATA[custom post types]]></category>
		<category><![CDATA[securite]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=662</guid>
		<description><![CDATA[Vous utilisez WordPress 3, et avez monté des sites plus merveilleux les uns que les autres en utilisant les Custom Post Type dans votre administration ? Attention, si certains de vos post-types ne doivent pas être affichés en front, plusieurs choses à retenir : ]]></description>
			<content:encoded><![CDATA[<p>Vous utilisez WordPress 3, et avez monté des sites plus merveilleux les uns que les autres en utilisant les Custom Post Type dans votre administration ?</p>
<p>Attention, si certains de vos post-types ne doivent pas être affichés en front, plusieurs choses à retenir, à la génération du post type :</p>
<p>Si le post type ne doit pas du tout apparaître en front, comme me l&#8217;a rappelé <a href="http://twitter.com/Raherian/status/128856910916108288">Raherian sur Twitter</a>, on peut le désactiver à sa génération dans le code (<a lang="en" href="http://codex.wordpress.org/Function_Reference/register_post_type">register_post_type</a>) en paramètrant <strong>public</strong>, <strong>has_archive</strong> et éventuellement <strong>rewrite</strong> à <strong>FALSE</strong>.<br />
On peut également fournir un array à <strong>rewrite</strong>, avec le paramètre <strong>feeds</strong> à <strong>false</strong> pour éviter la génération de flux !</p>
<p>Edit : La méthode sale est toujours en dessous au cas où vous n&#8217;auriez pas la main sur la création du post type (Plugin mal fichu ou autre).</p>
<h3>Un template single vide</h3>
<p>Creez simplement un fichier de template du nom de single-[moncustomposttype].php, et ne mettez rien dedans. Le template single.php prendrait le relais dans l&#8217;absence de ce dernier, et afficherait votre post_content.</p>
<h3>Un Flux RSS désactivé pour les Custom Post Types</del></h3>
<p>Collez simplement le bout de code suivant dans votre fichier functions.php :</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// N'active le RSS que pour le post-type post</span>
<span style="color: #000000; font-weight: bold;">function</span> dk_rss_disable_feed<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">is_object</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_type</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span><span style="color: #990000;">in_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_type</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        wp_die<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No feed available, please visit our &lt;a href=&quot;'</span> <span style="color: #339933;">.</span> get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;&gt;homepage&lt;/a&gt;!'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'do_feed'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'dk_rss_disable_feed'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'do_feed_rdf'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'dk_rss_disable_feed'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'do_feed_rss'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'dk_rss_disable_feed'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'do_feed_rss2'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'dk_rss_disable_feed'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'do_feed_atom'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'dk_rss_disable_feed'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Basé sur le script de <a href="http://wpengineer.com/287/disable-wordpress-feed/">WP-Engineer</a></p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/10/attention-aux-custom-post-types/">Attention aux Custom Post Types !</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Attention+aux+Custom+Post+Types+%21&amp;url=http://darklg.me/2011/10/attention-aux-custom-post-types/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/10/attention-aux-custom-post-types/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>La magie des Snippets</title>
		<link>http://darklg.me/2011/10/la-magie-des-snippets/</link>
		<comments>http://darklg.me/2011/10/la-magie-des-snippets/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 12:30:04 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Intégration HTML / CSS]]></category>
		<category><![CDATA[Productivité]]></category>
		<category><![CDATA[projet]]></category>
		<category><![CDATA[snippets]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=650</guid>
		<description><![CDATA[J&#8217;aime à croire que la majorité du temps pour une intégration ou un développement se passe à réfléchir sur une architecture de qualité, un squelette ou un algorithme solide. Par conséquent, il est nécessaire de passer le moins de temps possible sur la rédaction du code, tout en diminuant le nombre d&#8217;erreurs bêtes : fautes [...]]]></description>
			<content:encoded><![CDATA[<p>J&#8217;aime à croire que la majorité du temps pour une intégration ou un développement se passe à réfléchir sur une architecture de qualité, un squelette ou un algorithme solide. Par conséquent, il est nécessaire de passer le moins de temps possible sur la rédaction du code, tout en diminuant le nombre d&#8217;erreurs bêtes : fautes de frappes, oublis de propriétés, &#8230;</p>
<p>Une des techniques qui accompagnent ma journée est ainsi l&#8217;utilisation de <strong>Snippets</strong>. Typiquement, il s&#8217;agit de quelques caractères significatifs, et une touche &laquo;&nbsp;Trigger&nbsp;&raquo; qui va transformer ces derniers en de belles lignes de codes. Parmi les avantages : On <strong>gagne du temps</strong>, on <strong>évite de faire des erreurs</strong> sur des structures complexes (gradients en CSS3) et on évite d&#8217;utiliser des fonctions ou outils externes pour générer du code. <strong>Text Expander</strong> m&#8217;apprend ainsi que, sur la semaine dernière, 426 caractères ont été étendus en 25000. Soit un gain de temps de 2h à 40 mots par minutes !</p>
<p>Mon arrière grand père me disait d&#8217;ailleurs qu&#8217;un bon intégrateur avait la touche &laquo;&nbsp;< >&nbsp;&raquo; très propre car elle n&#8217;est jamais utilisée. (Véridique)</p>
<p>Un snippet doit donc être simple, et représentatif de son contenu. Mais attention au piège : il faut maîtriser les bouts de code produits avant de les transformer en snippets, le but étant de ne pas avoir à les taper, pour mesurer leur impact. C&#8217;est pourquoi je déconseille de recopier bêtement la bibliothèque de snippets d&#8217;un collègue, en préférant s&#8217;en inspirer pour concevoir les siens. <a href="http://code.google.com/p/zen-coding/">Zen Coding</a>, dans sa partie snippets; peut néanmoins être un point de départ pour constituer votre bibliothèque.</p>
<p>Voici quelques snippets parmi mes préférés :</p>
<p><strong>a->tab</strong> :</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>[curseur]<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></div></div>

<p><strong>br->tab</strong> :</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">-moz-border-radius <span style="color: #00AA00;">:</span> <span style="color: #00AA00;">&#91;</span>curseur<span style="color: #00AA00;">&#93;</span><span style="color: #993333;">px</span><span style="color: #00AA00;">;</span>
-webkit-border-radius <span style="color: #00AA00;">:</span> <span style="color: #00AA00;">&#91;</span>curseur<span style="color: #00AA00;">&#93;</span><span style="color: #993333;">px</span><span style="color: #00AA00;">;</span>
-webkit-background-<span style="color: #000000; font-weight: bold;">clip</span><span style="color: #00AA00;">:</span> padding-box<span style="color: #00AA00;">;</span>
border-radius <span style="color: #00AA00;">:</span> <span style="color: #00AA00;">&#91;</span>curseur<span style="color: #00AA00;">&#93;</span><span style="color: #993333;">px</span><span style="color: #00AA00;">;</span></pre></div></div>

<p><strong>bg->tab</strong> :</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">background</span> <span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>../images/<span style="color: #00AA00;">&#91;</span>curseur<span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span></pre></div></div>

<p><strong>b->tab</strong> :</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>[curseur]<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span></pre></div></div>

<p><strong>inp->tab</strong> :</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;[fill:id]&quot;</span>&gt;</span>[curseur]<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;[fill:id]&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;[fill:id]&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<p><strong>table->tab</strong> :</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">table</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">thead</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">tr</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">th</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">th</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">th</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">th</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">th</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">th</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">tr</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">thead</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">tbody</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">tr</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">tr</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">tr</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">tr</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">tbody</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">table</span>&gt;</span></pre></div></div>

<p><strong>wpq->tab</strong>  :</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'posts_per_page'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'paged'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$paged</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$the_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$the_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$the_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span>
wp_reset_postdata<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>J&#8217;utilise Text Expander pour les centraliser, me permettant de les utiliser sur différents postes de travail (merci DropBox), et sur différents logiciels (oui, même pour rédiger cet article dans l&#8217;interface WordPress <img src='http://darklg.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ). Des gestionnaires de snippets sont souvent inclus dans les IDE.</p>
<p>Et vous, quels sont vos snippets favoris ?</p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/10/la-magie-des-snippets/">La magie des Snippets</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+La+magie+des+Snippets&amp;url=http://darklg.me/2011/10/la-magie-des-snippets/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/10/la-magie-des-snippets/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

