<?xml 
version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
>

<channel xml:lang="fr">
	<title>tips &amp; tricks</title>
	<link>http://www.ashorlivs.fr/</link>
	<description>... la bo&#238;te &#224; outils d'un d&#233;veloppeur web front/back freelance passionn&#233; Ashorlivs SARL
29 rue d'Astorg, 75008 Paris. Bureau (office) : +33 1 43 38 23 24
Mobile : +33 6 77 76 62 85 Here &amp; there : LinkedIn &#8226; Viadeo &#8226; Facebook &#8226; Twitter &#8226; Last.fm &#8226; YouTube &#8226; Chardine !</description>
	<language>fr</language>
	<generator>SPIP - www.spip.net</generator>




<item xml:lang="fr">
		<title>jQuery Supersized plugin : load images from a nested list</title>
		<link>http://www.ashorlivs.fr/javascript-jquery/article/jquery-supersized-plugin-load</link>
		<guid isPermaLink="true">http://www.ashorlivs.fr/javascript-jquery/article/jquery-supersized-plugin-load</guid>
		<dc:date>2012-03-29T07:21:17Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Germain Guglielmetti</dc:creator>



		<description>Markup JavaScript jQuery(function($) images = [] ; $('#slideshow ul li').each(function(index) var image = image : $(this).find('img').attr('src') ; images.push(image) ; ) ; $.supersized( // Functionality slideshow : 1, // Slideshow on/off autoplay :	1, // Slideshow starts playing automatically start_slide : 1, // Start slide (0 is random) stop_loop :	0, // Pauses slideshow on last slide random : 0, // Randomize slide order (...)

-
&lt;a href="http://www.ashorlivs.fr/javascript-jquery/" rel="directory"&gt;Javascript (+ jQuery)&lt;/a&gt;


		</description>



		

	</item>
<item xml:lang="fr">
		<title>OS X : renommer des fichiers en 1 ligne</title>
		<link>http://www.ashorlivs.fr/linux-apache-co/article/os-x-renommer-des-fichiers-en-1</link>
		<guid isPermaLink="true">http://www.ashorlivs.fr/linux-apache-co/article/os-x-renommer-des-fichiers-en-1</guid>
		<dc:date>2012-03-20T18:14:58Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Germain Guglielmetti</dc:creator>



		<description>Pour remplacer les underscores par des tirets : for f in *; do mv $f `echo $f | tr '_' '-'`; done;

-
&lt;a href="http://www.ashorlivs.fr/linux-apache-co/" rel="directory"&gt;Linux, Apache, &amp; co.&lt;/a&gt;


		</description>



		

	</item>
<item xml:lang="fr">
		<title>WordPress 3+ : database locale, database distante</title>
		<link>http://www.ashorlivs.fr/php/article/wordpress-3-database-locale</link>
		<guid isPermaLink="true">http://www.ashorlivs.fr/php/article/wordpress-3-database-locale</guid>
		<dc:date>2012-03-18T23:47:38Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Germain Guglielmetti</dc:creator>



		<description>C'est tellement facile que &#231;a ne m&#233;rite pas le nom d'astuce, mais je mets &#224; disposition ce petit if car je l'utilise vraiment souvent et c'est plus simple de copier/coller :) // ** R&#233;glages MySQL - Votre h&#233;bergeur doit vous fournir ces informations. ** // if(strstr($_SERVER['SERVER_NAME'], '.localhost') || strstr($_SERVER['SERVER_NAME'], '192.168')) define('DB_NAME', 'db_testXXX'); define('DB_USER', 'root'); define('DB_PASSWORD', 'root'); define('DB_HOST', 'localhost'); else (...)

-
&lt;a href="http://www.ashorlivs.fr/php/" rel="directory"&gt;PHP&lt;/a&gt;


		</description>



		

	</item>
<item xml:lang="fr">
		<title>Requ&#233;rir une authentification .htaccess que si le site est sur serveur distant</title>
		<link>http://www.ashorlivs.fr/linux-apache-co/article/requerir-une-authentification</link>
		<guid isPermaLink="true">http://www.ashorlivs.fr/linux-apache-co/article/requerir-une-authentification</guid>
		<dc:date>2012-03-18T23:45:41Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Germain Guglielmetti</dc:creator>



		<description>La situation Vous travaillez en local Vous poussez le site sur un serveur distant de pr&#233;-prod ou prod Il y a un .htaccess distant pour prot&#233;ger l'acc&#232;s &#199;a conflict avec votre localhostcar les chemins ne sont pas identiques L'id&#233;e Ne requ&#233;rir l'authentification que si l'URL est distante. Le code Yay in your .htaccess... # AUTH AuthName &quot;MY SITE 2012&quot; AuthType Basic AuthUserFile &quot;/home/testXXXX/www/.htpasswd&quot; AuthType Basic &lt;limit GET&gt; satisfy any order deny,allow (...)

-
&lt;a href="http://www.ashorlivs.fr/linux-apache-co/" rel="directory"&gt;Linux, Apache, &amp; co.&lt;/a&gt;


		</description>



		

	</item>
<item xml:lang="fr">
		<title>Authentification SSH sans password par cl&#233;</title>
		<link>http://www.ashorlivs.fr/linux-apache-co/article/authentification-ssh-sans-password</link>
		<guid isPermaLink="true">http://www.ashorlivs.fr/linux-apache-co/article/authentification-ssh-sans-password</guid>
		<dc:date>2012-03-08T21:16:56Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Germain Guglielmetti</dc:creator>



		<description>Un grand classique, mais comme on ne le fait pas tous jours, mieux vaut archiver les commandes. Sur la machine source : ssh-keygen -t dsa Ne pas entrer de passphrase. Ce qui g&#233;n&#232;re deux fichiers : source@machine ~ $ ls -l .ssh/ total 12 -rw------- 1 source users 672 Mar 8 22:08 id_dsa -rw-r--r-- 1 source users 605 Mar 8 22:08 id_dsa.pub -rw-r--r-- 1 source users 391 Mar 8 22:02 known_hosts T&#233;l&#233;charger Entre les deux machines : Copier la cl&#233; de fa&#231;on s&#233;curis&#233;e vers la machine cible : (...)

-
&lt;a href="http://www.ashorlivs.fr/linux-apache-co/" rel="directory"&gt;Linux, Apache, &amp; co.&lt;/a&gt;


		</description>



		

	</item>
<item xml:lang="fr">
		<title>Ashorlivs pr&#233;sente con2con : un plugin pour adapter les images aux conteneurs</title>
		<link>http://www.ashorlivs.fr/javascript-jquery/article/ashorlivs-presente-con2con-un</link>
		<guid isPermaLink="true">http://www.ashorlivs.fr/javascript-jquery/article/ashorlivs-presente-con2con-un</guid>
		<dc:date>2012-03-04T06:58:37Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Germain Guglielmetti</dc:creator>



		<description>J'ai la joie de vous faire part de la naissance de con2con (which stands for &quot;Contents to Containers&quot; of course) sur GITHUB : http://ashorlivs.github.com/jquery.... Ce plugin jQuery, inspir&#233; de Supersized, permet de fitter une image non pas relativement aux dimensions du fullscreen, mais relativement aux dimensions de son conteneur parent. Il est possible d'avoir plusieurs images con2con sur une m&#234;me page. Le code source est disponible en t&#233;l&#233;chargement sur (...)

-
&lt;a href="http://www.ashorlivs.fr/javascript-jquery/" rel="directory"&gt;Javascript (+ jQuery)&lt;/a&gt;


		</description>



		

	</item>
<item xml:lang="fr">
		<title>Commandes utiles pour GIT</title>
		<link>http://www.ashorlivs.fr/linux-apache-co/article/commandes-utiles-pour-git</link>
		<guid isPermaLink="true">http://www.ashorlivs.fr/linux-apache-co/article/commandes-utiles-pour-git</guid>
		<dc:date>2012-02-24T00:13:56Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Germain Guglielmetti</dc:creator>



		<description>Pour cr&#233;er un nouveau repository ssh USER@SERVER mkdir REPO cd REPO git --bare init T&#233;l&#233;charger Pour pousser des fichiers dans le repository ssh://USER@SERVER/home/USER/REPO Pour cloner le repository git clone ssh://USER@SERVER/home/USER/REPO Pour t&#233;l&#233;charger un ZIP de la derni&#232;re version du master git archive --format zip --output latest.zip --remote=ssh://USER@SERVER/home/git/REPO master Pour cr&#233;er un changelog git log &gt; (...)

-
&lt;a href="http://www.ashorlivs.fr/linux-apache-co/" rel="directory"&gt;Linux, Apache, &amp; co.&lt;/a&gt;


		</description>



		

	</item>
<item xml:lang="fr">
		<title>Interroger une API Java &#224; travers PHP/JavaBridge</title>
		<link>http://www.ashorlivs.fr/php/article/interroger-une-api-java-a-travers</link>
		<guid isPermaLink="true">http://www.ashorlivs.fr/php/article/interroger-une-api-java-a-travers</guid>
		<dc:date>2011-12-20T18:34:22Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Germain Guglielmetti</dc:creator>



		<description>PHP/JavaBridge est une interface permettant de faire communiquer PHP avec une machine virtuelle Java. Pr&#233;-requis PHP5 et une version r&#233;cente de Java : ashorlivs:webapps ashorlivs$ java -version java version &quot;1.6.0_29&quot; Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-10M3527) Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode) Installation de Tomcat 7 La proc&#233;dure pour OS X est d&#233;crite par Wolf Paulus sur son blog. Le but &#233;tant de pouvoir acc&#233;der au manager de Tomcat : (...)

-
&lt;a href="http://www.ashorlivs.fr/php/" rel="directory"&gt;PHP&lt;/a&gt;


		</description>



		

	</item>
<item xml:lang="fr">
		<title>R&#233;cup&#233;rer les headers HTML en javascript</title>
		<link>http://www.ashorlivs.fr/javascript-jquery/article/recuperer-les-headers-html-en</link>
		<guid isPermaLink="true">http://www.ashorlivs.fr/javascript-jquery/article/recuperer-les-headers-html-en</guid>
		<dc:date>2011-12-04T05:47:32Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Germain Guglielmetti</dc:creator>



		<description>Le script suivant... &lt;script type=&quot;text/javascript&quot;&gt; javascript:var req = new XMLHttpRequest&amp;#40;&amp;#41;; req.open&amp;#40;'GET', document.location, false&amp;#41;;req.send&amp;#40;null&amp;#41;;var headers = req.getAllResponseHeaders&amp;#40;&amp;#41;.toLowerCase&amp;#40;&amp;#41;; console.log&amp;#40;headers&amp;#41;; &lt;/script&gt; T&#233;l&#233;charger ... permet d'afficher : wrapper.shtml:19contenu1.shtml#xhr date: sun, 04 dec 2011 05:45:32 gmt connection: keep-alive content-length: (...)

-
&lt;a href="http://www.ashorlivs.fr/javascript-jquery/" rel="directory"&gt;Javascript (+ jQuery)&lt;/a&gt;


		</description>



		

	</item>
<item xml:lang="fr">
		<title>Date relative (il y a x jours/heures/minutes/secondes, x days/hours/minutes ago)</title>
		<link>http://www.ashorlivs.fr/php/article/date-relative-il-y-a-x-jours</link>
		<guid isPermaLink="true">http://www.ashorlivs.fr/php/article/date-relative-il-y-a-x-jours</guid>
		<dc:date>2011-11-06T07:17:50Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Germain Guglielmetti</dc:creator>



		<description>J'ai bien aim&#233; cette fonction trouv&#233; sur Dev Zone, mais il manquait quelques trucs pour qu'elle satisfasse tous mes besoins. Pluriel de &quot;Month&quot;... oui je sais je chipote Deuxi&#232;me modification : retour en rempla&#231;ant des arguments d'une chaine utilisable par sprintf Troisi&#232;me modification (&#224; venir) : internationalisation pour le framework Kohana. /** * Affiche une date relative sous la forme il y a x jours/heures/minutes/secondes * D'apr&#232;s une fonction post&#233;e sur le site Dev Zone * (...)

-
&lt;a href="http://www.ashorlivs.fr/php/" rel="directory"&gt;PHP&lt;/a&gt;


		</description>



		

	</item>



</channel>

</rss>

