Découvrez Pierre Perret!
lundi 14 juillet 2008
samedi 12 juillet 2008
Très cher pétrole
Lu sur le forum du site 60 millions de consommateurs:
Regarder le calcul, c'est intéressant, mais çà demande à être vérifié!
Et là, très chers consommateurs
On se pose la question suivante:
Si le Baril est moins cher pour nous en Europe qu'en 2000
Pourquoi l'essence est elle 25% plus chère qu'en 2000 ?
Il y en a qui doivent se remplir les poches !!!!!
Regarder le calcul, c'est intéressant, mais çà demande à être vérifié!
vendredi 11 juillet 2008
la commande find - petit tutoriel
I have blogged before that knowledge of command-line tools is essential to take the next step in programming productivity. I think it would be useful to provide simple tutorials for these powerful tools, starting with find. I hope you agree, and would appreciate your feedback via the contact page or in the comments.
Tutorial
If you’re on Windows, I would recommend installing Cygwin to bring the power of a real shell to your OS. Let us start with a simple example and build upon it:
view plaincopy to clipboardprint?
1.
find . -name "*.css"
find . -name "*.css"
This will list all CSS files (and directories ending with ".css") under the current directory (represented by "."). We only want to match files so we’ll go ahead and change it to this:
view plaincopy to clipboardprint?
1.
find . -type f -name "*.css"
find . -type f -name "*.css"
Now we will only match CSS files. Nothing special? Fine, I see how it is. Let’s find all CSS files that do something with your HTML ID #content next:
view plaincopy to clipboardprint?
1.
find . -name "*.css" -exec grep -l "#content" {} \;
find . -name "*.css" -exec grep -l "#content" {} \;
Here we combine find with grep (covered in detail later) using the
We’re starting to get productive now, so let’s keep going. Suppose now we want to change every reference to the color #FF0000 (red) to #00FF00 (green). Normally you would have to have your editor search and replace them, if it even has that capability. Even then it’s slow, this statement is fast:
view plaincopy to clipboardprint?
1.
find . -name "*.css" -exec sed -ier 's/#(FF0000|F00)\b/#0F0/' {} \;
find . -name "*.css" -exec sed -ier 's/#(FF0000|F00)\b/#0F0/' {} \;
Gasp! Wait a minute, I just searched for both ways to specify red and replaced it with green in my CSS!! How long would that have taken otherwise? Do you see now how you can code faster by automating it and combining powerful tools? Let’s look at some other cool search options find has to offer:
Other Examples
view plaincopy to clipboardprint?
1.
# find files changed in the last 1 day
2.
find . -ctime -1 -type f
3.
4.
#find files larger than 1 Mb in /tmp
5.
find /tmp -size 1M -type f
6.
7.
#find files newer than main.css in ~/src
8.
find ~/src -newer main.css
# find files changed in the last 1 day
find . -ctime -1 -type f
#find files larger than 1 Mb in /tmp
find /tmp -size 1M -type f
#find files newer than main.css in ~/src
find ~/src -newer main.css
Conclusion
By itself, find is only as good as say… Google Desktop. The real power, as with other shell tools, is the ability to combine with other tools seamlessly. Effective use of tools like find very often make the difference between an average programmer and one that is 10x more effective (actual multiples up for debate).
These are just some of the basic features of find. Take advice from Chris Coyier and use your new power responsibly. Find is a beautiful tool.
Tutorial
If you’re on Windows, I would recommend installing Cygwin to bring the power of a real shell to your OS. Let us start with a simple example and build upon it:
view plaincopy to clipboardprint?
1.
find . -name "*.css"
find . -name "*.css"
This will list all CSS files (and directories ending with ".css") under the current directory (represented by "."). We only want to match files so we’ll go ahead and change it to this:
view plaincopy to clipboardprint?
1.
find . -type f -name "*.css"
find . -type f -name "*.css"
Now we will only match CSS files. Nothing special? Fine, I see how it is. Let’s find all CSS files that do something with your HTML ID #content next:
view plaincopy to clipboardprint?
1.
find . -name "*.css" -exec grep -l "#content" {} \;
find . -name "*.css" -exec grep -l "#content" {} \;
Here we combine find with grep (covered in detail later) using the
We’re starting to get productive now, so let’s keep going. Suppose now we want to change every reference to the color #FF0000 (red) to #00FF00 (green). Normally you would have to have your editor search and replace them, if it even has that capability. Even then it’s slow, this statement is fast:
view plaincopy to clipboardprint?
1.
find . -name "*.css" -exec sed -ier 's/#(FF0000|F00)\b/#0F0/' {} \;
find . -name "*.css" -exec sed -ier 's/#(FF0000|F00)\b/#0F0/' {} \;
Gasp! Wait a minute, I just searched for both ways to specify red and replaced it with green in my CSS!! How long would that have taken otherwise? Do you see now how you can code faster by automating it and combining powerful tools? Let’s look at some other cool search options find has to offer:
Other Examples
view plaincopy to clipboardprint?
1.
# find files changed in the last 1 day
2.
find . -ctime -1 -type f
3.
4.
#find files larger than 1 Mb in /tmp
5.
find /tmp -size 1M -type f
6.
7.
#find files newer than main.css in ~/src
8.
find ~/src -newer main.css
# find files changed in the last 1 day
find . -ctime -1 -type f
#find files larger than 1 Mb in /tmp
find /tmp -size 1M -type f
#find files newer than main.css in ~/src
find ~/src -newer main.css
Conclusion
By itself, find is only as good as say… Google Desktop. The real power, as with other shell tools, is the ability to combine with other tools seamlessly. Effective use of tools like find very often make the difference between an average programmer and one that is 10x more effective (actual multiples up for debate).
These are just some of the basic features of find. Take advice from Chris Coyier and use your new power responsibly. Find is a beautiful tool.
mercredi 9 juillet 2008
lundi 30 juin 2008
cron et date
#!/bin/sh
DATE=$(date +%d-%m-%Y-%H-%M)
/usr/local/mysql/bin/mysqldump -u root ccmusers > /home/backup/ccmusers${DATE}.sql
Libellés :
reminder
dimanche 29 juin 2008
Mon iPod Touch se prend pour un iPhone
Depuis que j'ai mis à jour iTunes (7.2.6.9) voici le message qui s'affiche:
C'est déjà arriver à quelqu'un ?
Tiens en cherchant sur Google je suis tombé sur çà
au final çà pourrait être intéressant ... à suivre
Un iPhone est détecté mais il n’est pas correctement identifié.
Veuillez le déconnecter et le connecter à nouveau, puis réssayer.
C'est déjà arriver à quelqu'un ?
Tiens en cherchant sur Google je suis tombé sur çà
au final çà pourrait être intéressant ... à suivre
jeudi 26 juin 2008
Resto Jap
Foujita 2 - Restaurant Japonais - Excellent (aussi bon que le resto japonais que j'avais fait à Saïgon) - Cher mais trop bon
Foujita 2
7 rue du 29 Juillet
75001 PARIS
Métro Tuileries (entre le jardin et Le marché Saint Honoré)
Foujita 2
7 rue du 29 Juillet
75001 PARIS
Métro Tuileries (entre le jardin et Le marché Saint Honoré)
Libellés :
3615 mylife,
paris,
restaurant,
sushi
mardi 24 juin 2008
dimanche 22 juin 2008
4HWW
Reprendre une tâche importante lorsqu'on a été interrompu peut exiger jusqu'à 45 minutes de remise en condition psychologique. Plus d'un quart des 9 heures de bureau quotidiennes (28%) sont englouties par ce genre d'interruptions.
La semaine de 4 heures / Timothy Ferriss / P 104
Référence:
http://www.google.fr/search?hl=fr&q=The+cost+of+not+paying+attention+how+interruptions+impacts+knowledge+workers+productivity&btnG=Recherche+Google&meta=
Libellés :
4HWW,
interruption,
organisation
On ne badine pas avec l'amour
"Adieu, Camille, retourne à ton couvent, et lorsqu'on te fera de ces récits hideux qui t'ont empoisonnée, réponds ce que je vais te dire : Tous les hommes sont menteurs, inconstants, faux, bavards, hypocrites, orgueilleux ou lâches, méprisables et sensuels ; toutes les femmes sont perfides, artificieuses, vaniteuses, curieuses et dépravées ; le monde n'est qu'un égout sans fond où les phoques les plus informes rampent et se tordent sur des montagnes de fange ; mais il y a au monde une chose sainte et sublime, c'est l'union de deux de ces êtres, si imparfaits et si affreux. On est souvent trompé en amour, souvent blessé et souvent malheureux ; mais on aime, et quand on est sur le bord de sa tombe, on se retourne pour regarder en arrière, et on se dit : J'ai souffert souvent, je me suis trompé quelques fois ; mais j'ai aimé. C'est moi qui ai vécu, et non pas un être factice créé par mon orgueil et mon ennui."
Perdican dans on ne badine pas avec l'amour cité par Michaël Youn dans le GQ de juillet 2008 - P 76.
Libellés :
amour
vendredi 20 juin 2008
lundi 5 mai 2008
samedi 29 septembre 2007
lundi 17 septembre 2007
samedi 15 septembre 2007
J'en ai rêvé ...
A une époque où avec quelques amis on cherchait des idées de "bizness", j'avais dit que si j'en avais les moyens financiers et les compétences et tout le toutim un truc qui m'aurait botté cela aurait été de lancer un système, voir un appareil permettant d'avoir 2 cartes sim dans un téléphone.
Au détour d'une pub google je suis tombé sur ce site ... Pas mal non?
Au détour d'une pub google je suis tombé sur ce site ... Pas mal non?
Libellés :
technologie,
téléphone
dimanche 9 septembre 2007
Clément - No Life est sur Facebook

Vous vous souvenez peut-être de Clément, l'adolescent qui avait fait le sujet d'un reportage sur Arte, qui avait fait le tour du "web"? ("pourquoi prendre une clio quand on peut prendre une mustang ?). Et bien il est désormais sur facebook ... Il y'a même un groupe des "fans" de Clément le No Life ...
Par autodérision il a nommé son profil Clément No Life.
Libellés :
facebook,
nolife,
procrastination