<?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>Nukium &#187; git</title>
	<atom:link href="http://nukium.com/tag/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://nukium.com</link>
	<description>Ressources et tutoriaux : Web 2.0 - PHP - CodeIgniter - Webdesign</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:34: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>lessphp : Un compilateur LESS en PHP !</title>
		<link>http://nukium.com/developpement-php/lessphp-un-compilateur-less-en-php/</link>
		<comments>http://nukium.com/developpement-php/lessphp-un-compilateur-less-en-php/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 09:38:04 +0000</pubDate>
		<dc:creator>Nukium</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[graphisme]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[tutoriel]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://nukium.com/?p=394</guid>
		<description><![CDATA[Lessphp est une classe permettant de compiler du code LESS en code CSS dans un environnement PHP (initialement LESS est disponible pour Ruby). Présentation de cette librairie qui permet d'ajouter des fonctionnalités au code CSS (variables, mixins, etc.).]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fnukium.com%252Fdeveloppement-php%252Flessphp-un-compilateur-less-en-php%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22lessphp%20%3A%20Un%20compilateur%20LESS%20en%20PHP%20%21%22%20%7D);"></div>
<p><img class="size-full wp-image-397 alignleft" title="logo-less" src="http://www.nukium.com/wordpress/wp-content/uploads/2009/08/logo-less.png" alt="logo-less" width="199" height="81" /></p>
<p><strong>LESS </strong>est un environnement de programmation héritant de <strong>CSS </strong>écrit pour Ruby permettant d&#8217;ajouter un grand nombre de fonctionnalités au <strong>CSS</strong> (variables, opérations, utilisation de classes au sein du <strong>CSS</strong>, règles en cascade&#8230;).</p>
<p>En développant avec <strong>LESS</strong>, nous n&#8217;écrivons plus directement de <strong>CSS </strong>mais du <strong>LESS </strong>qui sera compilé en un fichier <strong>CSS</strong> prêt à fonctionner.</p>
<p><strong>Lessphp </strong>rend tout ceci possible dans un environnement <strong>PHP</strong> grâce à une classe à inclure dans vos scripts afin de compiler du <strong>LESS</strong>.</p>
<p><strong>Lessphp</strong> est en cours de développement et ne supporte pas l&#8217;ensemble des fonctionnalités offertes par <strong>LESS</strong> pour le moment, cependant un certain nombre d&#8217;entre-elles sont opérationnelles.</p>
<h2>Quelques exemples</h2>
<ul class="charte">
<li>Inclusion de lessphp et compilation</li>
</ul>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p394code1'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3941"><td class="code" id="p394code1"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require</span> <span style="color: #0000ff;">'lessc.inc.php'</span><span style="color: #339933;">;</span>
&nbsp;
try <span style="color: #009900;">&#123;</span>
    lessc<span style="color: #339933;">::</span><span style="color: #004000;">ccompile</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'input.less'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'out.css'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> catch <span style="color: #009900;">&#40;</span>exception <span style="color: #000088;">$ex</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'lessc fatal error:&lt;br /&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$ex</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getMessage</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: #009900;">&#125;</span></pre></td></tr></table></div>

<ul class="charte">
<li>Utilisation des variables et des opérations :</li>
</ul>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p394code2'); return false;">View Code</a> CSS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3942"><td class="code" id="p394code2"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/** LESS **/</span>
<span style="color: #a1a100;">@base: 2px; /** Déclaration d'une variable **/</span>
&nbsp;
<span style="color: #6666ff;">.myClass</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #00AA00;">+</span> <span style="color: #a1a100;">@base solid red; /** Utilisation de la variable au sein d'une opération **/</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/** CSS RESULT **/</span>
&nbsp;
<span style="color: #6666ff;">.myClass</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">4px</span> <span style="color: #993333;">solid</span> <span style="color: #993333;">red</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/** CSS obtenu après la compilation **/</span></pre></td></tr></table></div>

<ul class="charte">
<li>Utilisation des &laquo;&nbsp;mixins&nbsp;&raquo; (classes au sein du fichier CSS)</li>
</ul>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p394code3'); return false;">View Code</a> CSS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3943"><td class="code" id="p394code3"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/** LESS **/</span>
<span style="color: #a1a100;">@base: 2px; /** Déclaration d'une variable **/</span>
&nbsp;
<span style="color: #6666ff;">.myClass</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #00AA00;">+</span> <span style="color: #a1a100;">@base solid red; /** Utilisation de la variable au sein d'une opération **/</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.mixin</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">red</span><span style="color: #00AA00;">;</span>
.myClass<span style="color: #00AA00;">;</span>  <span style="color: #808080; font-style: italic;">/** Utilisation de la classe .myClass au sein de la classe .mixin **/</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/** CSS RESULT **/</span>
&nbsp;
<span style="color: #6666ff;">.myClass</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">4px</span> <span style="color: #993333;">solid</span> <span style="color: #993333;">red</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.mixin</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #993333;">red</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">4px</span> <span style="color: #993333;">solid</span> <span style="color: #993333;">red</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Nous voyons bien de cette manière que nous pourrions grandement améliorer notre code <strong>CSS</strong> et factoriser énormément de code ! De plus, la compilation s&#8217;effectuant côté serveur, il est tout à fait possible de générer dynamiquement le <strong>CSS</strong> via un appel <strong>ajax</strong> en fonction d&#8217;<strong>évènements homme-machine</strong> par exemple.</p>
<p>Il est à noter que lessphp est disponible sur la plateforme <a href="http://github.com/leafo/lessphp/tree/master">github</a> et qu&#8217;il vous ait donc possible de signaler les éventuels bugs que vous rencontrez ou encore récupérer les toutes dernières versions de la librairie.</p>
<p><strong>Alors, pensez-vous que lessphp pourrait améliorer votre code CSS ?</strong></p>
<h2>Pour plus d&#8217;informations</h2>
<ul class="charte">
<li><a class="external" href="http://leafo.net/lessphp/">Site officiel de lessphp</a></li>
<li><a class="external" href="http://lesscss.org/">Site officiel de LESS (Ruby)</a></li>
<li><a class="external" href="http://lesscss.org/docs.html">Documentation de LESS</a></li>
<li><a class="external" href="http://www.symfony-project.org/plugins/sgLESSPlugin">Plugin lessphp pour Symphony</a></li>
</ul>

 <p><a href="http://nukium.com/wordpress/?flattrss_redirect&amp;id=394&amp;md5=e8bfc96452e69bdbbaafd52e7775a460" title="Flattr" target="_blank"><img src="http://nukium.com/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://nukium.com/developpement-php/lessphp-un-compilateur-less-en-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<atom:link rel="payment" href="http://nukium.com/wordpress/?flattrss_redirect&amp;id=394&amp;md5=e8bfc96452e69bdbbaafd52e7775a460" type="text/html" />"
	</item>
		<item>
		<title>SSH Key : Génération pour utiliser GIT sur Windows Vista</title>
		<link>http://nukium.com/developpement-php/ssh-key-generation-pour-utiliser-git-sur-windows-vista/</link>
		<comments>http://nukium.com/developpement-php/ssh-key-generation-pour-utiliser-git-sur-windows-vista/#comments</comments>
		<pubDate>Thu, 07 May 2009 20:21:53 +0000</pubDate>
		<dc:creator>Nukium</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://nukium.com/?p=211</guid>
		<description><![CDATA[Tutoriel de génération d'une clé publique SSH dans le but d'utiliser les services GitHub ou encore Unfuddle sur Windows Vista.]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fnukium.com%252Fdeveloppement-php%252Fssh-key-generation-pour-utiliser-git-sur-windows-vista%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22SSH%20Key%20%3A%20G%C3%A9n%C3%A9ration%20pour%20utiliser%20GIT%20sur%20Windows%20Vista%22%20%7D);"></div>
<p>Pour vous connecter à un serveur GIT au travers d&#8217;une connexion SSH comme cela peut être le cas sur <strong>GitHub</strong> ou encore <strong>Unfuddle</strong>, vous devez créer et fournir une clé publique SSH.</p>
<p>Lorsqu&#8217;on dispose d&#8217;un jolie terminal Unix cela ne pose pas vraiment de problèmes, la commande <strong>ssh-keygen</strong> est notre amie&#8230;</p>
<p>Mais qu&#8217;en est-il sur<strong> Windows Vista ?</strong></p>
<p>Il existe un logiciel libre fournissant un environnement de travail GIT en mode CLI ainsi que GUI pour Windows Vista appelé msysGit.</p>
<p>Celui-ci fournit également un moyen simple de générer une clé publique SSH, voici comment procéder :</p>
<h2>Comment générer une clé publique SSH avec msysGit</h2>
<p>Premièrement, vous devez posséder <a href="http://code.google.com/p/msysgit/">msysGit</a>, ensuite il faut lancer Git GUI pour accéder à l&#8217;interface graphique du logiciel.</p>
<p>À partir de là, cliquez sur &laquo;&nbsp;Show SSH Key&nbsp;&raquo; dans le menu &laquo;&nbsp;Help&nbsp;&raquo; :</p>
<p><img class="aligncenter size-full wp-image-212" title="msysgit" src="http://www.nukium.com/wordpress/wp-content/uploads/2009/05/msysgit-1.jpg" alt="msysgit" width="499" height="318" /></p>
<p>Cliquez ensuite sur &laquo;&nbsp;Generate&nbsp;&raquo; pour lancer l&#8217;utilitaire de création de clé publique. Ne renseignez pas de mot de passe, cliquez simplement sur OK à chaque fois.</p>
<p>Une fois la clé générée, il ne vous reste plus qu&#8217;à la copier coller dans votre interface GitHub, Unfuddle ou autre <img src='http://nukium.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h2>Serveurs Git gratuits</h2>
<p>J&#8217;en profite pour vous donner les adresses de deux serveur GIT gratuits, Unfuddle ayant la particularité de proposer un nombre illimité de dépôts SVN / GIT <strong>privés</strong> !</p>
<ul class="charte">
<li><a href="http://unfuddle.com/">Unfuddle</a></li>
<li><a href="http://github.com/">GitHub</a></li>
</ul>

 <p><a href="http://nukium.com/wordpress/?flattrss_redirect&amp;id=211&amp;md5=e340267b07331a995fa67c58a6b4f07f" title="Flattr" target="_blank"><img src="http://nukium.com/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://nukium.com/developpement-php/ssh-key-generation-pour-utiliser-git-sur-windows-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://nukium.com/wordpress/?flattrss_redirect&amp;id=211&amp;md5=e340267b07331a995fa67c58a6b4f07f" type="text/html" />"
	</item>
		<item>
		<title>Script de compilation mangos</title>
		<link>http://nukium.com/developpement-php/script-de-compilation-mangos/</link>
		<comments>http://nukium.com/developpement-php/script-de-compilation-mangos/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 13:57:55 +0000</pubDate>
		<dc:creator>Nukium</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[mangos]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[scriptdev2]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://nukium.com/?p=37</guid>
		<description><![CDATA[Comment créer un script shell permettant de compiler mangos sous linux en une seule commande.]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fnukium.com%252Fdeveloppement-php%252Fscript-de-compilation-mangos%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Script%20de%20compilation%20mangos%22%20%7D);"></div>
<p>Voici un script shell basique permettant de lancer la compilation de mangos sous linux en une seule commande. Ce n&#8217;est pas très évolué mais ça peux être pratique <img src='http://nukium.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> <br />
<strong><br />
How to :</strong></p>
<ol>
<li>Téléchargez le fichier update.sh dans le répertoire contenant vos sources GIT</li>
<li>Exécutez : <strong>chmod 777 ./update.sh</strong></li>
<li>Exécutez : <strong>./update.sh</strong> pour lancer la compilation</li>
</ol>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://nukium.com/wordpress/wp-content/plugins/wp-codebox/wp-codebox.php?p=37&amp;download=update.sh">update.sh</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p374"><td class="code" id="p37code4"><pre class="bash" style="font-family:monospace;">autoreconf <span style="color: #660033;">--install</span> <span style="color: #660033;">--force</span>
<span style="color: #c20cb9; font-weight: bold;">aclocal</span>
<span style="color: #c20cb9; font-weight: bold;">autoheader</span>
<span style="color: #c20cb9; font-weight: bold;">autoconf</span>
<span style="color: #c20cb9; font-weight: bold;">automake</span> <span style="color: #660033;">--add-missing</span>
<span style="color: #c20cb9; font-weight: bold;">automake</span> src<span style="color: #000000; font-weight: bold;">/</span>bindings<span style="color: #000000; font-weight: bold;">/</span>ScriptDev2<span style="color: #000000; font-weight: bold;">/</span>Makefile
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> objdir
<span style="color: #7a0874; font-weight: bold;">cd</span> objdir
..<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>mangos <span style="color: #660033;">--sysconfdir</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>mangos<span style="color: #000000; font-weight: bold;">/</span>etc <span style="color: #660033;">--enable-cli</span> <span style="color: #660033;">--enable-ra</span> <span style="color: #660033;">--datadir</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>mangos
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> clean
<span style="color: #7a0874; font-weight: bold;">cd</span> ..
<span style="color: #7a0874; font-weight: bold;">echo</span> Compilation terminee</pre></td></tr></table></div>

<p>N&#8217;oubliez de patcher au préalable votre dépôt GIT avec ScriptDev2 grâce à la commande :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p37code5'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p375"><td class="code" id="p37code5"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git</span> am src<span style="color: #000000; font-weight: bold;">/</span>bindings<span style="color: #000000; font-weight: bold;">/</span>ScriptDev2<span style="color: #000000; font-weight: bold;">/</span>patches<span style="color: #000000; font-weight: bold;">/</span>MaNGOS-xxxx-xx-xx-ScriptDev2.patch</pre></td></tr></table></div>


 <p><a href="http://nukium.com/wordpress/?flattrss_redirect&amp;id=37&amp;md5=4d55a82b10b7faafd64a7580c8a7eb34" title="Flattr" target="_blank"><img src="http://nukium.com/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://nukium.com/developpement-php/script-de-compilation-mangos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://nukium.com/wordpress/?flattrss_redirect&amp;id=37&amp;md5=4d55a82b10b7faafd64a7580c8a7eb34" type="text/html" />"
	</item>
	</channel>
</rss>

