<?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 &#187; astuce</title>
	<atom:link href="http://darklg.me/tag/astuce/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>Compresser et ranger son CSS avec PHP.</title>
		<link>http://darklg.me/2010/02/compresser-ranger-css-php/</link>
		<comments>http://darklg.me/2010/02/compresser-ranger-css-php/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 17:19:07 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Développement PHP / MySQL]]></category>
		<category><![CDATA[Intégration HTML / CSS]]></category>
		<category><![CDATA[astuce]]></category>
		<category><![CDATA[compresser]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=328</guid>
		<description><![CDATA[Voici une méthode permettant de compresser des CSS, que j&#8217;utilise depuis quelques mois. Elle répond à plusieurs impératifs : Réduire le nombre de CSS chargés au minimum, pour économiser les requêtes HTTP. Permettre de créer des fichiers CSS à la volée, sans code php à l&#8217;interieur, et de les diviser le plus possible. Compresser le [...]]]></description>
			<content:encoded><![CDATA[<p>Voici une méthode permettant de compresser des CSS, que j&#8217;utilise depuis quelques mois. Elle répond à plusieurs impératifs :</p>
<ul>
<li>Réduire le nombre de CSS chargés au minimum, pour économiser les requêtes HTTP.</li>
<li>Permettre de créer des fichiers CSS à la volée, sans code php à l&#8217;interieur, et de les diviser le plus possible.</li>
<li>Compresser le résultat.</li>
<li>Mettre en cache la version compressée, qui sera servie au visiteur.</li>
</ul>
<p>Cette méthode est grandement inspirée de l&#8217;article sur la <a href="http://www.catswhocode.com/blog/3-ways-to-compress-css-files-using-php">compression des CSS chez CatsWhoCode</a>, que j&#8217;ai décortiqué pendant un bout de temps <img src='http://darklg.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>On fera donc appel à ces fichiers :</p>
<ul>
<li>style.php : appelé pour créer la page, mais qui transmet également les instructions CSS.</li>
<li>style-min.css : Le CSS final, appelé par la version du site.</li>
<li>style/ : Le sous dossier contenant tous vos CSS.</li>
</ul>
<p>Les éventuelles images devront être dans le même répertoire que style.php.</p>
<p>Voici donc le code commenté de style.php :</p>
<p>On déclare le contenu comme étant du CSS, pour être sûr de son interpretation.</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: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-type: text/css&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Ensuite, il faut inclure les CSS, que l&#8217;on va trier dans l&#8217;ordre alphabétique, pour permettre d&#8217;éventuels hacks, et surtout une idée de l&#8217;ordre des instructions.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// On cree une variable de retour pour contenir le CSS.</span>
<span style="color: #000088;">$retour_css</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// On parcourt le sous-dossier style/</span>
<span style="color: #000088;">$dir</span> <span style="color: #339933;">=</span> <span style="color: #990000;">opendir</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;style/&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$fichiers</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// On ajoute chaque fichier à un tableau 'fichiers'</span>
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fichier</span> <span style="color: #339933;">=</span> <span style="color: #990000;">readdir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dir</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fichier</span><span style="color: #339933;">!=</span><span style="color: #0000ff;">&quot;.&quot;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$fichier</span><span style="color: #339933;">!=</span><span style="color: #0000ff;">&quot;..&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$fichiers</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'style/'</span><span style="color: #339933;">.</span><span style="color: #000088;">$fichier</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
<span style="color: #990000;">closedir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Tri par ordre alphabetique des fichiers</span>
<span style="color: #990000;">asort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fichiers</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// inclusion des fichiers ... dans l'ordre</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fichiers</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$fichier</span><span style="color: #009900;">&#41;</span>
	<span style="color: #000088;">$retour_css</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fichier</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>La fonction compress() va agir sur plusieurs points :</p>
<ul>
<li>Retirer les caractères &laquo;&nbsp;inutiles&nbsp;&raquo;, comme les commentaires, tabulations, et transformer les espaces multiples en espaces simples, etc.</li>
<li>Permettre la mise en place d&#8217;un léger système de variables. Utile si vous avez beaucoup de fichiers <img src='http://darklg.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> compress<span style="color: #009900;">&#40;</span><span style="color: #000088;">$buffer</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$variables_css</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
	<span style="color: #0000ff;">'COULEUR1'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'#003366'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'COULEUR2'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'#336699'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'FONT1'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'Georgia, serif'</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// On remplace les variables par leur valeur</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$variables_css</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$code_variable</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$valeur</span><span style="color: #009900;">&#41;</span>
	<span style="color: #000088;">$buffer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'{'</span><span style="color: #339933;">.</span><span style="color: #000088;">$code_variable</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'}'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$valeur</span><span style="color: #339933;">,</span> <span style="color: #000088;">$buffer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Suppression des commentaires</span>
	<span style="color: #000088;">$buffer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'!/\*[^*]*\*+([^/][^*]*\*+)*/!'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$buffer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Suppression des tabulations, espaces multiples, retours à la ligne, etc.</span>
	<span style="color: #000088;">$buffer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'  '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'	 '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'	 '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$buffer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Suppression des derniers espaces inutiles</span>
	<span style="color: #000088;">$buffer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' { '</span><span style="color: #339933;">,</span><span style="color: #0000ff;">' {'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'{ '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'{'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$buffer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$buffer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' } '</span><span style="color: #339933;">,</span><span style="color: #0000ff;">' }'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'} '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'}'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$buffer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$buffer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' : '</span><span style="color: #339933;">,</span><span style="color: #0000ff;">' :'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">': '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">':'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$buffer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$buffer</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Compression du CSS</span>
<span style="color: #000088;">$retour_css</span> <span style="color: #339933;">=</span> compress<span style="color: #009900;">&#40;</span><span style="color: #000088;">$retour_css</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Enfin, nous allons mettre en cache le contenu de la variable $retour_css, et l&#8217;afficher, pour les tests.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Mise en cache du fichier style-min.css</span>
<span style="color: #990000;">file_put_contents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'style-min.css'</span><span style="color: #339933;">,</span><span style="color: #000088;">$retour_css</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// On affiche le contenu compressé</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$retour_css</span><span style="color: #339933;">;</span></pre></div></div>

<p>Vous pouvez créer autant de fichiers CSS que vous le désirez dans le sous-dossier style/, afin de séparer couleurs, tailles, réglages de base, Reset CSS et autres grilles.</p>
<p>Vous m&#8217;avez lu jusqu&#8217;ici ? Woah <img src='http://darklg.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Apprenez donc que ce code est sous licence <a href="http://fr.wikipedia.org/wiki/WTF_Public_License">WTFPL</a>, qu&#8217;un lien vers cet article sera accueilli avec grand bonheur, et qu&#8217;un commentaire constructif le sera également <img src='http://darklg.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </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/2010/02/compresser-ranger-css-php/">Compresser et ranger son CSS avec PHP.</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Compresser+et+ranger+son+CSS+avec+PHP.&amp;url=http://darklg.me/2010/02/compresser-ranger-css-php/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2010/02/compresser-ranger-css-php/feed/</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
		<item>
		<title>Astuce Firefox 3 : le bouton &#171;&#160;Fermer un Onglet&#160;&#187;</title>
		<link>http://darklg.me/2008/12/astuce-firefox-3-le-bouton-fermer-un-onglet/</link>
		<comments>http://darklg.me/2008/12/astuce-firefox-3-le-bouton-fermer-un-onglet/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 12:18:38 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Mozilla firefox]]></category>
		<category><![CDATA[astuce]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[onglet]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=186</guid>
		<description><![CDATA[Par défaut, Mozilla Firefox affiche un bouton de fermeture sur chaque onglet. Etant donné qu&#8217;il est toujours affiché, il prend une place non négligeable si vous avez beaucoup d&#8217;onglets ouverts. De plus, il est possible que vous ne l&#8217;utilisiez jamais, car vous connaissez les autres astuces pour fermer un onglet : Le raccourci Ctrl + [...]]]></description>
			<content:encoded><![CDATA[<p>Par défaut, <strong>Mozilla Firefox</strong> affiche un bouton de fermeture sur chaque onglet. Etant donné qu&#8217;il est toujours affiché, il prend une place non négligeable si vous avez beaucoup d&#8217;onglets ouverts. De plus, il est possible que vous ne l&#8217;utilisiez jamais, car vous connaissez les autres astuces pour fermer un onglet :</p>
<ul>
<li>Le raccourci Ctrl + W / Pomme + W ( Mac )</li>
<li>Le &laquo;&nbsp;clic milieu&nbsp;&raquo; sur l&#8217;onglet.</li>
</ul>
<p>Heureusement, les développeurs de Mozilla Firefox ont implémenté un réglage assez utile dans about:config : Le paramètre &laquo;&nbsp;<strong>browser.tabs.closeButtons</strong>&laquo;&nbsp;.<br />
Il peut prendre 4 valeurs distinctes, selon le réglage que vous souhaitez :</p>
<ul>
<li>0 &#8211; Affiche un bouton de fermeture seulement sur l&#8217;onglet actif.</li>
<li>1 &#8211; Affiche un bouton de fermeture sur tous les onglets ( par défaut ).</li>
<li>2 &#8211; N&#8217;affiche aucun bouton de fermeture.</li>
<li>3 &#8211; Affiche un bouton de fermeture à la fin de la barre d&#8217;onglets. ( mon choix )</li>
</ul>
<p>Pour modifier cette option, suivez le guide.</p>
<ul>
<li>Ouvrez un nouvel onglet dans Firefox. ( Ctrl + T / Pomme + T )</li>
<li>Dans la barre d&#8217;adresse, tapez about:config</li>
<li>Si Firefox vous le demande, répondez que &nbsp;&raquo; oui, vous ferez attention &laquo;&nbsp;.</li>
<li>Dans le champ de recherche, tapez &laquo;&nbsp;<strong>browser.tabs.closeButtons</strong>&laquo;&nbsp;.</li>
<li>D&#8217;un habile clic droit sur la ligne de &laquo;&nbsp;<strong>browser.tabs.closeButtons</strong>&nbsp;&raquo; cliquez sur modifier.</li>
<li>Entrez la valeur que vous désirez, et validez.</li>
<li>Fermez l&#8217;onglet.</li>
</ul>
<p>En espérant que ça vous serve <img src='http://darklg.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://www.ghacks.net/2008/12/11/change-the-location-of-close-button-in-firefox/">Vu chez GHacks</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/2008/12/astuce-firefox-3-le-bouton-fermer-un-onglet/">Astuce Firefox 3 : le bouton &laquo;&nbsp;Fermer un Onglet&nbsp;&raquo;</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Astuce+Firefox+3+%3A+le+bouton+%26laquo%3B%26nbsp%3BFermer+un+Onglet%26nbsp%3B%26raquo%3B&amp;url=http://darklg.me/2008/12/astuce-firefox-3-le-bouton-fermer-un-onglet/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2008/12/astuce-firefox-3-le-bouton-fermer-un-onglet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP] Comment désactiver l&#039;entête x-powered-by</title>
		<link>http://darklg.me/2008/10/php-desactiver-entete-x-powered-by/</link>
		<comments>http://darklg.me/2008/10/php-desactiver-entete-x-powered-by/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 16:01:59 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Développement PHP / MySQL]]></category>
		<category><![CDATA[astuce]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=143</guid>
		<description><![CDATA[L&#8217;entête HTTP x-powered-by permet d&#8217;afficher dans l&#8217;entête d&#8217;une page générée par PHP, la version de PHP utilisée. Utile aux développeurs, son usage est déconseillé en production, car il informe sur les failles de votre serveur, peut causer des erreurs de type &#160;&#187; Cannot Modify Header Information &#171;&#160;, et provoquer d&#8217;atroces souffrances. Bon ok, le dernier [...]]]></description>
			<content:encoded><![CDATA[<p>L&#8217;entête HTTP <strong>x-powered-by</strong> permet d&#8217;afficher dans l&#8217;entête d&#8217;une page générée par PHP, la version de PHP utilisée.<br />
Utile aux développeurs, son usage est déconseillé en production, car il informe sur les failles de votre serveur, peut causer des erreurs de type &nbsp;&raquo; <strong>Cannot Modify Header Information</strong> &laquo;&nbsp;, et provoquer d&#8217;atroces souffrances. Bon ok, le dernier point est assez subjectif.</p>
<p>Pour désactiver <strong>x-powered-by</strong>, il vous suffit de créer &#8211; ou de modifier &#8211; un fichier php.ini dans le dossier où s&#8217;execute votre script et d&#8217;ajouter la ligne :<br />
<code>expose_php = off</code></p>
<p>Si vous pouvez modifier votre fichier php.ini principal, c&#8217;est encore mieux !</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/2008/10/php-desactiver-entete-x-powered-by/">[PHP] Comment désactiver l&#039;entête x-powered-by</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+%5BPHP%5D+Comment+d%C3%A9sactiver+l%26%23039%3Bent%C3%AAte+x-powered-by&amp;url=http://darklg.me/2008/10/php-desactiver-entete-x-powered-by/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2008/10/php-desactiver-entete-x-powered-by/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Des couleurs plus belles avec Firefox 3</title>
		<link>http://darklg.me/2008/06/des-couleurs-plus-belles-avec-firefox/</link>
		<comments>http://darklg.me/2008/06/des-couleurs-plus-belles-avec-firefox/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 23:40:21 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Mozilla firefox]]></category>
		<category><![CDATA[astuce]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=32</guid>
		<description><![CDATA[Vous aussi vous trouvez qu&#8217;une fois affichées sur votre page web, vos photos ont l&#8217;air plus fade que sous votre éditeur photo ? Une solution s&#8217;offre à vous : La gestion des couleurs avancées de Firefox 3. Pour l&#8217;activer, tapez &#171;&#160;about:config&#160;&#187; dans votre barre d&#8217;adresse. Dans le filtre, tapez &#171;&#160;gfx.color_management.enabled&#160;&#187; et mettez la valeur à [...]]]></description>
			<content:encoded><![CDATA[<p>Vous aussi vous trouvez qu&#8217;une fois affichées sur votre page web, vos photos ont l&#8217;air plus fade que sous votre éditeur photo ?<br />
Une solution s&#8217;offre à vous : <strong>La gestion des couleurs avancées de Firefox 3</strong>.</p>
<p>Pour l&#8217;activer, tapez &laquo;&nbsp;<strong>about:config</strong>&nbsp;&raquo; dans votre barre d&#8217;adresse.<br />
Dans le filtre, tapez &laquo;&nbsp;<strong>gfx.color_management.enabled</strong>&nbsp;&raquo; et mettez la valeur à &laquo;&nbsp;<strong>true</strong>&nbsp;&raquo; (clic droit, inverser).<br />
Redémarrez Firefox, et admirez !</p>
<p>( Bon ok, l&#8217;amélioration est légère, mais &#8230; c&#8217;est toujours ça ! )<br />
 Attention, un impact de 10-15% sur les performances est à prévoir &#8230; <img src='http://darklg.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Vu sur <a href="http://lifehacker.com/396742/tweak-firefox-to-display-richer-colors">LifeHacker</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/2008/06/des-couleurs-plus-belles-avec-firefox/">Des couleurs plus belles avec Firefox 3</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Des+couleurs+plus+belles+avec+Firefox+3&amp;url=http://darklg.me/2008/06/des-couleurs-plus-belles-avec-firefox/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2008/06/des-couleurs-plus-belles-avec-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3 astuces CSS fort utiles</title>
		<link>http://darklg.me/2008/06/3-astuces-css/</link>
		<comments>http://darklg.me/2008/06/3-astuces-css/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 13:54:53 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Intégration HTML / CSS]]></category>
		<category><![CDATA[astuce]]></category>
		<category><![CDATA[astuces]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[reset]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=20</guid>
		<description><![CDATA[Voici quelques astuces CSS assez utiles, mais très peu utilisées. Au menu : Bien utiliser &#60;HTML&#62; et &#60;BODY&#62; Appliquer un style à tous les éléments. Donner plusieurs &#171;&#160;class&#160;&#187; à un élément Bien utiliser &#60;HTML&#62; et &#60;BODY&#62; &#60;HTML&#62;, comme tout autre élément, peut être personnalisé via les CSS. Par exemple, on peut lui ajouter un background, [...]]]></description>
			<content:encoded><![CDATA[<p>Voici quelques <strong>astuces CSS</strong> assez utiles, mais très peu utilisées.<br />
Au menu :</p>
<ul>
<li>Bien utiliser &lt;HTML&gt; et &lt;BODY&gt;</li>
<li>Appliquer un style à tous les éléments.</li>
<li>Donner plusieurs &laquo;&nbsp;class&nbsp;&raquo; à un élément</li>
</ul>
<h3>Bien utiliser &lt;HTML&gt; et &lt;BODY&gt;</h3>
<p>&lt;HTML&gt;, comme tout autre élément, peut être personnalisé via les CSS.<br />
Par exemple, on peut lui ajouter un background, un margin ou autre.<br />
&lt;BODY&gt;, quant à lui, est interprété par la plupart des navigateurs comme un élément de type block.<br />
Cette astuce implique donc de bien réfléchir à la nécessité d&#8217;utiliser un block type &laquo;&nbsp;mapage&nbsp;&raquo;, ou &laquo;&nbsp;tout&nbsp;&raquo; comme j&#8217;ai (trop) souvent trouvé dans des templates <img src='http://darklg.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>Appliquer un style à tous les éléments.</h3>
<p>Il est possible d&#8217;appliquer un style général à tous les éléments, via *<br />
Cette technique est utilisée par certaines feuilles de <a href="http://blog.alsacreations.com/2007/07/02/369-reset-css-une-technique-a-manier-avec-precaution">Reset CSS</a>, pour appliquer des marges intérieurs et extérieures de 0 par défaut sur tous les éléments.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span>	<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span>	<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<h3>Donner plusieurs &laquo;&nbsp;class&nbsp;&raquo; à un élément</h3>
<p>Il est possible de donner plusieurs valeurs à un attribut class, ce qui permet de gérer plus proprement certains éléments.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* CSS */</span>
<span style="color: #6666ff;">.rose</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span>	<span style="color: #00AA00;">:</span> pink<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.souligne</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span>	<span style="color: #00AA00;">:</span> <span style="color: #993333;">underline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;em class=&quot;rose souligne&quot;&gt;texte rose et souligné&lt;/em&gt;</pre></div></div>

<p>avec comme résultat &laquo;&nbsp;<em style="color:pink;text-decoration:underline;">texte rose et souligné</em>&laquo;&nbsp;.<br />
edit : comme l&#8217;a noté <a href="http://www.kazhar.org">Kazhar</a> dans les commentaires, il faut nommer ses classes CSS en fonction de l&#8217;utilité de l&#8217;élément, mais pour le coup, il me fallait un exemple facile à comprendre, et à expliquer <img src='http://darklg.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>En espérant que ces <strong>3 astuces en CSS</strong> vous aient été utiles <img src='http://darklg.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </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/2008/06/3-astuces-css/">3 astuces CSS fort utiles</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+3+astuces+CSS+fort+utiles&amp;url=http://darklg.me/2008/06/3-astuces-css/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2008/06/3-astuces-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Astuce Firefox 3 : Raccourcis Suivant / Précédent</title>
		<link>http://darklg.me/2008/05/astuce-firefox-3-raccourci-suivant-precedent/</link>
		<comments>http://darklg.me/2008/05/astuce-firefox-3-raccourci-suivant-precedent/#comments</comments>
		<pubDate>Mon, 26 May 2008 23:00:14 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Mozilla firefox]]></category>
		<category><![CDATA[astuce]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=17</guid>
		<description><![CDATA[Le saviez-vous ? Lorsqu&#8217;on tape Ctrl+Z ou Ctrl+Y dans la barre d&#8217;adresses de Firefox 3, on peut afficher, respectivement, les adresses url précédentes et suivantes de notre navigation dans l&#8217;onglet courant. Une astuce courte, mais qui peut servir ! Un article publi&#233; sur Darklg Blog &#169; 2012 Lien vers l'article original : Astuce Firefox 3 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/darklg/2526166984/" title="Barre d'adresses Firefox de darklg, sur Flickr"><img src="http://farm4.static.flickr.com/3096/2526166984_2cff64ff81_o.png" alt="Barre d'adresses Firefox" /></a><br />
Le saviez-vous ?<br />
Lorsqu&#8217;on tape Ctrl+Z ou Ctrl+Y dans la barre d&#8217;adresses de Firefox 3, on peut afficher, respectivement, les adresses url précédentes et suivantes de notre navigation dans l&#8217;onglet courant.</p>
<p>Une astuce courte, mais qui peut servir !</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/2008/05/astuce-firefox-3-raccourci-suivant-precedent/">Astuce Firefox 3 : Raccourcis Suivant / Précédent</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Astuce+Firefox+3+%3A+Raccourcis+Suivant+%2F+Pr%C3%A9c%C3%A9dent&amp;url=http://darklg.me/2008/05/astuce-firefox-3-raccourci-suivant-precedent/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2008/05/astuce-firefox-3-raccourci-suivant-precedent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Astuce Firefox 3 : Augmenter le nombre d&#039;Add-Ons recommandés</title>
		<link>http://darklg.me/2008/05/astuce-firefox-augmenter-le-nombre-d-addons-recommandes/</link>
		<comments>http://darklg.me/2008/05/astuce-firefox-augmenter-le-nombre-d-addons-recommandes/#comments</comments>
		<pubDate>Mon, 26 May 2008 18:15:13 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Mozilla firefox]]></category>
		<category><![CDATA[astuce]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=16</guid>
		<description><![CDATA[La nouvelle version du navigateur Mozilla Firefox vous propose un gestionnaire d&#8217;extensions et d&#8217;add-ons refait, avec des suggestions d&#8217;extensions recommandées par la communauté. Par défaut, vous avez de 3 à 5 propositions, mais il est possible de configurer Firefox pour passer de 0 à 8 propositions. Pour ceci, plusieurs étapes rapides et simples : Tapez [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/darklg/2525262558/" title="Modules recommandés de darklg, sur Flickr"><img src="http://farm3.static.flickr.com/2375/2525262558_fc769a1332_o.png" alt="Modules recommandés" /></a><br />
La nouvelle version du navigateur Mozilla Firefox vous propose un gestionnaire d&#8217;extensions et d&#8217;add-ons refait, avec des suggestions d&#8217;extensions recommandées par la communauté.<br />
Par défaut, vous avez de 3 à 5 propositions, mais il est possible de configurer Firefox pour passer de 0 à 8 propositions.<br />
Pour ceci, plusieurs étapes rapides et simples :</p>
<ul>
<li>Tapez &laquo;&nbsp;about:config&nbsp;&raquo; dans votre barre d&#8217;adresse. Validez si vous recevez un avertissement.</li>
<li>Recherchez &laquo;&nbsp;extensions.getAddons.maxResults&nbsp;&raquo; via le filtre, et passez la valeur au chiffre que vous désirez ( entre 0 et 8 )</li>
<li>C&#8217;est fait !</li>
</ul>
<p>Note : Un bug empêche mon Firefox de passer au dessus de 4, bizarre bizarre <img src='http://darklg.me/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' /> </p>
<p>Une astuce dégotée sur <a href="http://www.ghacks.net/2008/05/26/increase-number-of-recommended-add-ons-in-firefox-3/">Ghacks.net</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/2008/05/astuce-firefox-augmenter-le-nombre-d-addons-recommandes/">Astuce Firefox 3 : Augmenter le nombre d&#039;Add-Ons recommandés</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Astuce+Firefox+3+%3A+Augmenter+le+nombre+d%26%23039%3BAdd-Ons+recommand%C3%A9s&amp;url=http://darklg.me/2008/05/astuce-firefox-augmenter-le-nombre-d-addons-recommandes/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2008/05/astuce-firefox-augmenter-le-nombre-d-addons-recommandes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

