<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" version="2.0">
  <channel xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <title><![CDATA[Axel ETCHEVERRY - Développeur Web 2.0, php5 | Zend Framework et Ajax]]></title>
    <link>http://www.axel-etcheverry.com/blog</link>
    <description><![CDATA[Développeur de site web 2.0 en php5 ajax, Création de site web PHP/xHTML - AJAX - Zend Framework sur toulouse]]></description>
    <pubDate>Fri, 11 Aug 2017 04:54:10 +0000</pubDate>
    <managingEditor>euskadi31@gmail.com (Axel ETCHEVERRY)</managingEditor>
    <copyright>© 2017 Axel ETCHEVERRY</copyright>
    <generator>Zend Framework</generator>
    <language>fr</language>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <item xmlns:wfw="http://wellformedweb.org/CommentAPI/">
      <title><![CDATA[Créer son propre package gentoo (ebuild)]]></title>
      <link>http://www.axel-etcheverry.com/blog/article/creer-son-propre-package-gentoo-%28ebuild%29.html</link>
      <guid>http://www.axel-etcheverry.com/blog/article/creer-son-propre-package-gentoo-%28ebuild%29.html</guid>
      <description><![CDATA[je vais vous expliquer comment créer et installer un ebuild.

Comment utiliser ses propres ebuilds
Créer un dossier où vous stockez vos propres ebuilds.
$ mkdir -p /usr/local/portage

puis ajouter cette ligne dans le /etc/make.conf
PORTDIR_OVERLAY=\&quot;/usr/local/portage\&quot;

Attention à bien respecter les catégories et les noms des dossiers.

Comment faire vos propres ebuilds
Jeter un oeil à l'ossature ebuild, ce fichier est sur tous les systèmes Gentoo.
$ less /usr/portage/skel.ebuild

voici quelques liens utiles:


entoo Linux Developers HOWTO : http://www.gentoo.org/doc/en/gentoo-howto.xml
Gentoo Linux Development Policy : http://www.gentoo.org/doc/en/policy.xml
Proposer des scripts ebuilds : http://www.gentoo.org/doc/en/ebuild-submit.xml


Ajouter des ebuilds a gentoo

$ mkdir -p /usr/local/portage/&#91;CATEGORIE&#93;/&#91;PACKAGE_NAME&#93;
$ cd /usr/local/portage/&#91;CATEGORIE&#93;/&#91;PACKAGE_NAME&#93;
$ cp /home/you/&#91;PACKAGE_NAME&#93;-&#91;VERSION&#93;.ebuild .
$ ebuild &#91;PACKAGE_NAME&#93;-&#91;VERSION&#93;.ebuild digest

Remplacer [CATEGORIE] par la catégorie de votre package par exemple dev-php5 pour une extension php, [PACKAGE_NAME] par le nom de votre package par exemple pecl-oauth et [VERSION] par la version de votre package, par exemple 1.0.0 ce qui donne au final pecl-oauth-1.0.0.ebuild.

Installation du package

$ emerge -av &#91;CATEGORIE&#93;/&#91;PACKAGE_NAME&#93;-&#91;VERSION&#93;

Source]]></description>
      <pubDate>Fri, 10 Sep 2010 11:51:40 +0000</pubDate>
      <category>Gentoo</category>
      <comments>http://www.axel-etcheverry.com/blog/article/creer-son-propre-package-gentoo-%28ebuild%29.html#comments</comments>
      <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.axel-etcheverry.com/blog/feed/rss/comment-20.xml</wfw:commentRss>
    </item>
    <item xmlns:wfw="http://wellformedweb.org/CommentAPI/">
      <title><![CDATA[Utiliser oAuth pour l'API Twitter]]></title>
      <link>http://www.axel-etcheverry.com/blog/article/utiliser-oauth-pour-l-api-twitter.html</link>
      <guid>http://www.axel-etcheverry.com/blog/article/utiliser-oauth-pour-l-api-twitter.html</guid>
      <description><![CDATA[Je vais expliquer comment utiliser oAuth pour se connecter à son compte twitter via un scripte qui tourne en background (cron, etc..) donc vous n'avez pas besoin de vous logger à twitter pour l'utiliser.

Dans un premier temps, il vous faut un token et un tokenSecret que vous trouverez dans la page detail de votre application twitter créée auparavant (bien sûr je pars du pricipe que vous avez déja une application twitter).

Vos applications sont listées ici

Une fois dans la page detail cliquer sur "My Access Token"

Dans cet exemple j'utilise l'extension pecl oAuth.

&lt;?php
$consumerKey = '[consumerKey]';
$consumerSecret = '[consumerSecret]';
$token = '[access_token]';
$tokenSecret = '[access_token_secret]';
&nbsp;
$twitter = new OAuth&#40;$consumerKey, $consumerSecret, OAUTH_SIG_METHOD_HMACSHA1&#41;;
$twitter-&gt;setToken&#40;$token, $tokenSecret&#41;;
&nbsp;
// return la liste des amis/following
$twitter-&gt;fetch&#40;'http://api.twitter.com/statuses/friends.json'&#41;;
$friends = json_decode&#40;$twitter-&gt;getLastResponse&#40;&#41;&#41;;

Vous trouverez plus d'infos sur oauth single token.
]]></description>
      <pubDate>Fri, 10 Sep 2010 10:31:57 +0000</pubDate>
      <category>PHP</category>
      <comments>http://www.axel-etcheverry.com/blog/article/utiliser-oauth-pour-l-api-twitter.html#comments</comments>
      <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.axel-etcheverry.com/blog/feed/rss/comment-19.xml</wfw:commentRss>
    </item>
    <item xmlns:wfw="http://wellformedweb.org/CommentAPI/">
      <title><![CDATA[Installer pecl-oauth sur Gentoo avec emerge]]></title>
      <link>http://www.axel-etcheverry.com/blog/article/installer-pecl-oauth-sur-gentoo-avec-emerge.html</link>
      <guid>http://www.axel-etcheverry.com/blog/article/installer-pecl-oauth-sur-gentoo-avec-emerge.html</guid>
      <description><![CDATA[je vais vous expliquer comment installer l'extension pecl-oauth.

avant de commencer je vous recommande de lire ce billet (Créer son propre package gentoo (ebuild)) sur la création d'ebuid.

vous devez créer un dossier dev-php5/pecl-oauth
$ mkdir -p /usr/local/portage/dev-php5/pecl-oauth
$ cd /usr/local/portage/dev-php5/pecl-oauth
$ nano pecl-oauth-1.0.0.ebuild

contenu du ebuild:
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
&nbsp;
EAPI=\&quot;2\&quot;
&nbsp;
PHP_EXT_NAME=\&quot;oauth\&quot;
PHP_EXT_INI=\&quot;yes\&quot;
PHP_EXT_ZENDEXT=\&quot;no\&quot;
&nbsp;
inherit php-ext-pecl-r1
&nbsp;
DESCRIPTION=\&quot;A native PHP-extension to provide OAuth authentication protocol support\&quot;
&nbsp;
LICENSE=\&quot;BSD\&quot;
SLOT=\&quot;0\&quot;
KEYWORDS=\&quot;~amd64 ~x86\&quot;
IUSE=\&quot;examples\&quot;
&nbsp;
DEPEND=\&quot;dev-lang/php[curl,hash,ssl]\&quot;
RDEPEND=\&quot;${DEPEND}\&quot;
&nbsp;
need_php_by_category
&nbsp;

pour installer le ebuild il vous suffit d’exécuter cette commande
$ ebuild pecl-oauth-1.0.0.ebuild digest
$ emerge -av pecl-oauth

voila c'est tout simple, vous pouvez bien sûr adapter ce billet à d'autres extensions par example pecl-sphinx (je vais sûrement créer un billet à ce sujet).]]></description>
      <pubDate>Fri, 10 Sep 2010 07:51:12 +0000</pubDate>
      <category>PHP</category>
      <comments>http://www.axel-etcheverry.com/blog/article/installer-pecl-oauth-sur-gentoo-avec-emerge.html#comments</comments>
      <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.axel-etcheverry.com/blog/feed/rss/comment-18.xml</wfw:commentRss>
    </item>
    <item xmlns:wfw="http://wellformedweb.org/CommentAPI/">
      <title><![CDATA[Remplacer logo iTunes 10 par l'ancien]]></title>
      <link>http://www.axel-etcheverry.com/blog/article/remplacer-logo-itunes-10-par-l-ancien.html</link>
      <guid>http://www.axel-etcheverry.com/blog/article/remplacer-logo-itunes-10-par-l-ancien.html</guid>
      <description><![CDATA[Si vous n'appréciez pas la nouvelle icône d'iTunes 10, vous pouvez facilement la modifier sur Mac OS X.

Il vous suffit de remplacer les nouveaux icons par les icons d'iTunes 9

Télécharger les icons d'iTunes 9 ici.

puis aller dans Application click droit sur iTunes - Afficher le contenu du paquet, puis aller dans le dossier Contents - Resources et coller les icons dedans.
]]></description>
      <pubDate>Thu, 02 Sep 2010 18:44:07 +0000</pubDate>
      <category>Mac OS X</category>
      <comments>http://www.axel-etcheverry.com/blog/article/remplacer-logo-itunes-10-par-l-ancien.html#comments</comments>
      <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.axel-etcheverry.com/blog/feed/rss/comment-17.xml</wfw:commentRss>
    </item>
    <item xmlns:wfw="http://wellformedweb.org/CommentAPI/">
      <title><![CDATA[Installer php-sphinx sur Gentoo]]></title>
      <link>http://www.axel-etcheverry.com/blog/article/installer-php-sphinx-sur-gentoo.html</link>
      <guid>http://www.axel-etcheverry.com/blog/article/installer-php-sphinx-sur-gentoo.html</guid>
      <description><![CDATA[Suite à la réinstallation de mon serveur sous gentoo, j'ai été confronté à un problème d'installation de l'extension pecl php-sphinx.

je vous livre la solution qui a marché pour moi.

Installation de libsphinxclient
$ wget http://www.sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz
$ tar -zxvf sphinx-0.9.8.1.tar.gz
$ cd sphinx-0.9.8.1/api/libsphinxclient
$ CXXCPP=\&quot;gcc -E\&quot; ./configure
$ make
$ sudo make install

Installation de php-sphinx
$ wget http://pecl.php.net/get/sphinx-1.0.4.tgz
$ tar -xvzf sphinx-1.0.4.tgz
$ cd sphinx-1.0.4/
$ phpize
$ aclocal
$ libtoolize --force
$ autoheader
$ autoconf
$ ./configure
$ make
$ sudo make install

ensuite il faut activer l'extension dans la config php.

créer un fichier sphinx.ini et ajouter cette ligne :
extension=sphinx.so
créer le lien symbolique 
$ sudo ln -s /etc/php/apache2-php5/ext/sphinx.ini /etc/php/apache2-php5/ext-active/sphinx.ini]]></description>
      <pubDate>Tue, 24 Aug 2010 09:11:30 +0000</pubDate>
      <category>PHP</category>
      <comments>http://www.axel-etcheverry.com/blog/article/installer-php-sphinx-sur-gentoo.html#comments</comments>
      <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.axel-etcheverry.com/blog/feed/rss/comment-16.xml</wfw:commentRss>
    </item>
    <item xmlns:wfw="http://wellformedweb.org/CommentAPI/">
      <title><![CDATA[Installer php-sphinx sur Mac OS X]]></title>
      <link>http://www.axel-etcheverry.com/blog/article/installer-php-sphinx-sur-mac-os-x.html</link>
      <guid>http://www.axel-etcheverry.com/blog/article/installer-php-sphinx-sur-mac-os-x.html</guid>
      <description><![CDATA[Voici comment installer l'extension sphinx pour php sur un systeme Mac OSX 1.6.x

il faut d'abord installer Sphinx via port.
shell sudo port install sphinx

Pour Mac OSX Lion (10.7) 
shell sudo port install sphinx configure.compiler=llvm-gcc-4.2

Installation de la libsphinxclient
shell wget http://www.sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz
shell tar -zxvf sphinx-0.9.8.1.tar.gz
shell cd sphinx-0.9.8.1/api/libsphinxclient
shell CXXCPP=\&quot;gcc -E\&quot; ./configure --prefix=/opt/sphinx
shell make
shell sudo make install
il faut maintenant installer l'extension php-sphinx
sudo pecl install sphinx
à un moment il vous demande d'indiquer le préfixe d'installation de libsphinxclient ajouter /opt/sphinx voir ci-dessous
downloading sphinx-1.0.4.tgz ...
Starting to download sphinx-1.0.4.tgz (12,280 bytes)
.....done: 12,280 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Please provide the installation prefix of libsphinxclient [autodetect] : /opt/sphinx
une fois la compilation finie il vous suffit d'ajouter l'extension dans le php.ini
&#91;sphinx&#93;
extension=sphinx.so]]></description>
      <pubDate>Tue, 03 Aug 2010 12:24:49 +0000</pubDate>
      <category>PHP</category>
      <comments>http://www.axel-etcheverry.com/blog/article/installer-php-sphinx-sur-mac-os-x.html#comments</comments>
      <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.axel-etcheverry.com/blog/feed/rss/comment-14.xml</wfw:commentRss>
    </item>
    <item xmlns:wfw="http://wellformedweb.org/CommentAPI/">
      <title><![CDATA[iOS 4 : Repasser son iPhone sous OS 3.1.3]]></title>
      <link>http://www.axel-etcheverry.com/blog/article/ios-4-%3A-repasser-son-iphone-sous-os-3.1.3.html</link>
      <guid>http://www.axel-etcheverry.com/blog/article/ios-4-%3A-repasser-son-iphone-sous-os-3.1.3.html</guid>
      <description><![CDATA[Effectuez une sauvegarde
On n'est jamais trop prudent. Avant de procéder à toute manipulation, sauvegardez le contenu de votre appareil.

Passer en mode de récupération
branchez votre iPhone. Il apparaît dans la colonne bibliothèque comme à son habitude. Eteignez l'appareil. Maintenez enfoncé à présent le bouton de mise en route ainsi que le bouton central (Home) pendant dix secondes (le délais est important). Lorsque l'écran s'éteint, relâchez le bouton de mise en marche mais pas le bouton central. Maintenez-le enfoncé jusqu'à ce que le message « iTunes a détecté un iPhone en mode de récupération. Vous devez le restaurer pour pouvoir l'utiliser avec iTunes » s'affiche. Il signifie que vous êtes dans le mode restauration DFU (le bon mode). Cliquez sur le bouton OK du message. 

Télécharger l'os


iPhone 3.1.3 Download
iPhone 3G 3.1.3 Download
iPhone 3GS 3.1.3 Download


Procédez à la restauration
Apartir de maintenant, l'opération devient délicate. Si vous êtes sur Mac, maintenez la touche Alt enfoncée (aussi appelée Option) et si vous êtes sur PC, maintenez la touche Majuscule enfoncée et cliquez sur Restaurer. Choisissez le fichier iPhone1,*_3.1.3_7E18_Restore.ipsw que vous avez téléchargé, puis cliquez sur Choisir. iTunes procède à la restauration du système en effaçant au passage les données contenues dans l'iPhone. L'opération ne dure que quelques minutes. A la fin de la restauration, iTunes affiche un message d'erreur indiquant que l'iPhone n'a pu être restauré en raison d'une erreur inconnue (1015). C'est normal et ce n'est pas grave. La restauration s'est tout de même effectuée. Cliquez sur OK.

Sortez du mode de restauration
Votre iPhone redémarre et iTunes affiche le message indiquant que votre appareil est en mode Restauration. Il faut sortir de ce mode « proprement » pour continuer la procédure. Pour cela, faites appel au logiciel gratuit RecBoot à télécharger ici pour Mac et ici pour PC. Lancez le logiciel et cliquez sur Exit Recovery Mode. Au bout de quelques secondes, l'iPhone redémarre une fois de plus. Si ce n'est pas le cas, débranchez-le puis rebranchez-le à votre ordinateur.

Déverrouillez votre carte SIM
L'iPhone a redémarré et est apparu dans la colonne bibliothèque d'iTunes. 
Vous êtes invité à déverrouiller votre carte SIM en saisissant le code PIN. Mais quelques secondes après avoir validé votre code, nouveau message d'erreur d'iTunes indiquant qu'Apple n'est pas en mesure de lire votre carte SIM. Pas de panique. Apple n'autorisant pas cette manipulation (ce retour en arrière), il est nécessaire de « forcer la main ». Pour cela, accédez au fichier hosts. Dans Windows, naviguez jusqu'au dossier 
C:\Windows\System32\drivers\etc\hosts
Sur Mac, déroulez le menu Aller, Aller au dossier et saisissez /etc. Attention, sur Mac il peut être nécessaire de modifier les autorisations d'accès pour modifier le fichier hosts. Ouvrez ce fichier avec le bloc-notes (sur Windows) ou Text Edit (sur Mac) et, ajoutez la ligne suivante à la fin du texte affiché : 

74.208.105.171 gs.apple.com.
Enregistrez le fichier et fermez-le.

Débranchez votre iPhone puis rebranchez le. Déverrouillez votre carte SIM normalement en saisissant votre code PIN. iTunes le reconnaît à présent normalement. 

[ Source ]]]></description>
      <pubDate>Wed, 28 Jul 2010 07:39:22 +0000</pubDate>
      <category>iPhone</category>
      <comments>http://www.axel-etcheverry.com/blog/article/ios-4-%3A-repasser-son-iphone-sous-os-3.1.3.html#comments</comments>
      <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.axel-etcheverry.com/blog/feed/rss/comment-13.xml</wfw:commentRss>
    </item>
    <item xmlns:wfw="http://wellformedweb.org/CommentAPI/">
      <title><![CDATA[Télécharger une vidéo youtube en PHP]]></title>
      <link>http://www.axel-etcheverry.com/blog/article/telecharger-une-video-youtube-en-php.html</link>
      <guid>http://www.axel-etcheverry.com/blog/article/telecharger-une-video-youtube-en-php.html</guid>
      <description><![CDATA[Attention cette classe a des dépendances, notamment du Zend Framework 1.8

Dépendances

Zend_Json
Zend_Http_Client


Exemple
&lt;?php
require_once 'Youtube.php';
&nbsp;
$youtube = new Youtube&#40;'http://www.youtube.com/watch?v=232AQHdnhTE'&#41;;
$youtube-&gt;setFormat&#40;Youtube::FORMAT_480P&#41;;
$info = $youtube-&gt;download&#40;'./path/the/video/', 'movie_name'&#41;;

Code
&lt;?php
/**
 * @author Axel ETCHEVERRY
 * @link http://www.axel-etcheverry.com
 * @copyright Copyright (c) 2010, Axel ETCHEVERRY (http://www.axel-etcheverry.com).
 * Displays &lt;a href=\&quot;http://opensource.org/licenses/gpl-license.php\&quot;&gt;GNU Public License&lt;/a&gt;
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 * @version Youtube 1.0
 */
&nbsp;
/**
 * @see Zend_Json
 */
require_once 'Zend/Json.php';
&nbsp;
/**
 * @see Zend_Http_Client
 */
require_once 'Zend/Http/Client.php';
&nbsp;
class Youtube
&#123;
    const FORMAT_360P  = 6;
    const FORMAT_480P  = 18;
    const FORMAT_720P  = 22;
    const FORMAT_1080P = 37;
    /**
     * Youtube id
     *
     * @var string
     * @access protected
     */
    protected $_id;
&nbsp;
    /**
     * Youtube provider
     * @var string
     * @access protected
     */
    protected $_provider = 'http://www.youtube.com/get_video';
&nbsp;
    /**
     * Vidéo format
     *
     * @var integer
     * @access protected
     */
    protected $_format;
&nbsp;
    /**
     * 
     * @param string $url
     */
    public function __construct&#40;$url&#41;
    &#123;
        $this-&gt;_id = self::getId&#40;$url&#41;;
    &#125;
&nbsp;
    /**
     * get yotube id
     *
     * @param string $url
     * @return String
     * @access public
     * @static
     */
    public static function getId&#40;$url&#41;
    &#123;
        $url = parse_url&#40;$url, PHP_URL_QUERY&#41;;
        parse_str&#40;$url, $query&#41;;
        return $query&#91;'v'&#93;;
    &#125;
&nbsp;
    /**
     * set the vidéo format
     *
     * @param integer $format
     * @return Youtube
     * @access public
     */
    public function setFormat&#40;$format&#41;
    &#123;
        $this-&gt;_format = &#40;int&#41;$format;
        return $this;
    &#125;
&nbsp;
    /**
     * Download video
     *
     * @param string $path
     * @param string $name
     * @return array
     * @access public
     */
    public function download&#40;$path = './', $name = ''&#41;
    &#123;
        $content = file_get_contents&#40;'http://www.youtube.com/watch?v=' . $this-&gt;_id&#41;;
&nbsp;
        preg_match&#40;\&quot;/'SWF_ARGS': (.*),/\&quot;, $content, $matches);
        unset($content);
&nbsp;
        $json = Zend_Json::decode($matches[1]);
        unset($matches);
&nbsp;
        $client = new Zend_Http_Client();
        $client-&gt;setUri($this-&gt;_provider . '?video_id=' . $this-&gt;_id . '&amp;t=' . urldecode($json['t']) . '&amp;fmt=' . $this-&gt;_format);
        unset($json);
&nbsp;
        $client-&gt;setConfig(array(
            'maxredirects' =&gt; 0,
            'timeout'      =&gt; 30
        ));
&nbsp;
        $response = $client-&gt;request();
&nbsp;
        unset($client);
&nbsp;
        $headers = $response-&gt;getHeaders();
&nbsp;
        unset($response);
&nbsp;
        if(empty($name))
        {
            $name = $this-&gt;_id;
        }
&nbsp;
        $filename = $path . $name . '.mp4';
&nbsp;
        file_put_contents($filename, file_get_contents($headers['Location']));
&nbsp;
        unset($headers);
&nbsp;
        $info = Zend_Json::decode(file_get_contents('http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch?v%3D' . $this-&gt;_id . '&amp;format=json'));
&nbsp;
        return array(
            'id'     =&gt; $this-&gt;_id, 
            'format' =&gt; $this-&gt;_format, 
            'title'  =&gt; $info['title'], 
            'file'   =&gt; $filename
        );
    }
}

]]></description>
      <pubDate>Tue, 09 Feb 2010 20:24:54 +0000</pubDate>
      <category>PHP</category>
      <comments>http://www.axel-etcheverry.com/blog/article/telecharger-une-video-youtube-en-php.html#comments</comments>
      <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.axel-etcheverry.com/blog/feed/rss/comment-8.xml</wfw:commentRss>
    </item>
    <item xmlns:wfw="http://wellformedweb.org/CommentAPI/">
      <title><![CDATA[Minimiser le javascript et css avec eclipse]]></title>
      <link>http://www.axel-etcheverry.com/blog/article/minimiser-le-javascript-et-css-avec-eclipse.html</link>
      <guid>http://www.axel-etcheverry.com/blog/article/minimiser-le-javascript-et-css-avec-eclipse.html</guid>
      <description><![CDATA[Pour se faire il faut juste un script shell/bash a faire exécuter par Eclipse.

Prérequis

YUI Compressor

Scripts
minifier.sh
#!/bin/bash
# minifies js and css files
if &#91; -f $1 &#93;
then
    file=`echo $1 | sed 's/.src//'`
    java -jar yuicompressor-&#123;version&#125;.jar $1 -o $file --charset utf-8 --nomunge
fi
minifier.bat
@echo off
set givenfile=%1
set file=%givenfile:.src=%
java -jar yuicompressor-&#123;version&#125;.jar %1 -o %file% --charset utf-8 --nomunge
Installation
Dans votre projet eclipse rajouter un dossier build et copier le jar yuicompressor-{version}.jar et les 2 scripts minifier.sh et minifier.bat

Configuration
Faite un click droit sur votre projet puis aller dans Properties puis dans Builders,
Ajouter un nouveau buider (bouton New...).
Puis sélectionner Program puis OK.
Ensuite choisissez le nom du nouveau builder par exemple js and css minifier,
dans l'onglet Main on ajoute le path du script minifier.(sh|bat) dans le champ Location
${project_loc}/build/minifier.sh
dans le champ Working Directory
${project_loc}/build
dans le champ Arguments
${resource_loc}

puis dans l'onglet Refresh cocher la case Refresh resources upon completion. et sélectionner The selected resource

dans l'onglet Build Options cocher les cases After a "Clean", During manual builds, During auto builds et Specify working set of relevant resources puis clicker sur [Specify Resources...] pour sélectionner les répertoires et fichiers a prendre en compte.

Utilisation
je par du principe que le projet est une application Zend Framework MVC

donc dans le dossier /public/scripts et public/styles, 
vous devais avoir les fichiers source des js et css sous cette forme {filename}.src.js et {filename}.src.css le script minifier vas créer les fichiers minimiser sous le même non {filename}.js et {filename}.css

à chaque enregistrement de fichier css ou js le script vas minimiser le fichier.

exemple:
fichier source : jquery.src.js
fichier minimiser : jquery.js

Remplacez {version} avec la version de yuicompressor qui a été téléchargé.
Remplacez {filename} par le nom de fichier js ou css.

source]]></description>
      <pubDate>Thu, 10 Dec 2009 10:35:59 +0000</pubDate>
      <category>Eclipse PDT</category>
      <comments>http://www.axel-etcheverry.com/blog/article/minimiser-le-javascript-et-css-avec-eclipse.html#comments</comments>
      <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.axel-etcheverry.com/blog/feed/rss/comment-6.xml</wfw:commentRss>
    </item>
    <item xmlns:wfw="http://wellformedweb.org/CommentAPI/">
      <title><![CDATA[Installer wget sur Mac OSX]]></title>
      <link>http://www.axel-etcheverry.com/blog/article/installer-wget-sur-mac-osx.html</link>
      <guid>http://www.axel-etcheverry.com/blog/article/installer-wget-sur-mac-osx.html</guid>
      <description><![CDATA[Mac OS X est livré sans wget. Commencez en vous inscrivant à Apple Developer Connection et télécharger XCode 3.0. Ensuite, ouvrez le terminal et tapez:

shell&gt; ftp ftp://ftp.gnu.org/gnu/wget/wget-latest.tar.gz
shell&gt; tar -xvzf wget-latest.tar.gz
shell&gt; cd wget-&#123;version&#125;
shell&gt; ./configure
shell&gt; make
shell&gt; sudo make install
Remplacez {version} avec la version de wget qui a été téléchargé (illustré lors de la décompression de l'archive).]]></description>
      <pubDate>Tue, 01 Dec 2009 18:46:13 +0000</pubDate>
      <category>Mac OS X</category>
      <comments>http://www.axel-etcheverry.com/blog/article/installer-wget-sur-mac-osx.html#comments</comments>
      <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.axel-etcheverry.com/blog/feed/rss/comment-5.xml</wfw:commentRss>
    </item>
    <item xmlns:wfw="http://wellformedweb.org/CommentAPI/">
      <title><![CDATA[Installation sphinx plus extension php-sphinx]]></title>
      <link>http://www.axel-etcheverry.com/blog/article/installation-sphinx-plus-extension-php-sphinx.html</link>
      <guid>http://www.axel-etcheverry.com/blog/article/installation-sphinx-plus-extension-php-sphinx.html</guid>
      <description><![CDATA[Pour commencer à utiliser Sphinx avec PHP et MySQL, commencez par télécharger l'archive des sources Sphinx (v0.9.8.1) et de compiler les fichiers sources de Sphinx et ses bibliothèques.
En supposant que vous êtes sur un système Debian, voici comment faire :

shell tar -xzvf sphinx-0.9.8.1.tar.gz
shell cd sphinx-0.9.8.1
shell ./configure --with-mysql
shell make
shell make install
shell cd api/libsphinxclient
shell ./configure
shell make
shell make install
Une fois Sphinx et libsphinxclient installés, télécharger, compiler et installer la dernière version de l'extension Sphinx de PHP en utilisant l'installateur automatique PECL, comme ci-dessous:

shell pecl install sphinx
Vous pouvez également réaliser cette opération manuellement, en téléchargeant les sources de l'extension Sphinx et de l'installer avec la commande phpize:

shell tar -xzvf sphinx-1.0.0.tar.gz
shell cd sphinx-1.0.0/
shell phpize
shell ./configure
shell make
shell make install
Quelle que soit la méthode que vous choisissez, vous devrez vous retrouver avec un module PHP sphinx.so dans votre répertoire d'extensions PHP. Vous devez maintenant activer l'extension dans la configuration du fichier php.ini, redémarrez votre serveur Web, et vérifiez que l'extension est activée avec un appel rapide à la fonction phpinfo().

]]></description>
      <pubDate>Wed, 14 Oct 2009 22:14:57 +0000</pubDate>
      <category>PHP</category>
      <comments>http://www.axel-etcheverry.com/blog/article/installation-sphinx-plus-extension-php-sphinx.html#comments</comments>
      <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.axel-etcheverry.com/blog/feed/rss/comment-4.xml</wfw:commentRss>
    </item>
    <item xmlns:wfw="http://wellformedweb.org/CommentAPI/">
      <title><![CDATA[Comment vider votre cache DNS Mac]]></title>
      <link>http://www.axel-etcheverry.com/blog/article/comment-vider-votre-cache-dns-mac.html</link>
      <guid>http://www.axel-etcheverry.com/blog/article/comment-vider-votre-cache-dns-mac.html</guid>
      <description><![CDATA[Si vous avez Léopard (10.5), tapez dans un terminal
shell&gt; dscacheutil -flushcache Sinon tapez 
shell&gt; lookupd -flushcache]]></description>
      <pubDate>Mon, 14 Sep 2009 23:03:48 +0000</pubDate>
      <category>Mac OS X</category>
      <comments>http://www.axel-etcheverry.com/blog/article/comment-vider-votre-cache-dns-mac.html#comments</comments>
      <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.axel-etcheverry.com/blog/feed/rss/comment-3.xml</wfw:commentRss>
    </item>
    <item xmlns:wfw="http://wellformedweb.org/CommentAPI/">
      <title><![CDATA[Updatedb sous Mac OSX Leopard]]></title>
      <link>http://www.axel-etcheverry.com/blog/article/updatedb-sous-mac-osx-leopard.html</link>
      <guid>http://www.axel-etcheverry.com/blog/article/updatedb-sous-mac-osx-leopard.html</guid>
      <description><![CDATA[Dans les systemes de type Unix, lorsque je souhaite mettre à jour ma base de données de fichiers j'execute updatedb.
Sous Leopard cette commande n’existe pas.
Donc pour mettre à jour votre base de données locale vous devez exécuter :
shell&gt; sudo /usr/libexec/locate.updatedb]]></description>
      <pubDate>Sun, 13 Sep 2009 17:24:17 +0000</pubDate>
      <category>Mac OS X</category>
      <comments>http://www.axel-etcheverry.com/blog/article/updatedb-sous-mac-osx-leopard.html#comments</comments>
      <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.axel-etcheverry.com/blog/feed/rss/comment-2.xml</wfw:commentRss>
    </item>
  </channel>
</rss>
