my Geek::Story;

01/12/2009

01/12/2009

Filed under: — guedou @ 9:00



[Big: 6.5M] [Small: 324K]

Mon nouveau livre de chevet :)

31/08/2009

31/08/2009

Filed under: — guedou @ 9:00



[Big: 508K] [Small: 248K] [Location]

Le 13ème depuis un toit du Kremlin-Bicêtre. En zoomant un peu, on voit même les mats d’Ozone sur l’une des tours (^^)b

29/07/2009

29/07/2009

Filed under: — guedou @ 1:00

Une petite astuce rapide qu’elle est bien pour pivoter simplement les images dans le répertoire courant.

for IMG in *.jpg
do
  exiftool $IMG |grep Orientation |grep Rotate && mogrify -rotate -90 $IMG && exiftool -Orientation="Horizontal (normal)" $IMG
done
rm *_original

02/07/2009

02/07/2009

Filed under: — guedou @ 0:00



[Big: 692K] [Small: 340K] [Location]

Pendant “Laisse moi Ernest” au Motel.

A ma grande suprise, Safari sur iPhone permet de géolaliser l’utilisateur avec la même récette JavaScript d’hier.



[Big: 72K] [Small: 240K]



[Big: 60K] [Small: 196K]

01/07/2009

01/07/2009

Filed under: — guedou @ 0:00



[Big: 4.7M] [Small: 352K] [Location]

Un petit mojito en terrasse et ça repart !

Firefox 3.5 est sorti hier amenant avec lui tout plein de nouveautés. Notamment, la possibilité de géolocaliser l’utilisateur via un savant appel d’une fonction JavaScript. Voici un très court exemple affichant un lien vers google maps correspondant à l’emplacement de l’utilisateur.
Pour tester, c’est ici (note: j’ai ajouté la même fonctionnalité au Moblog).

<script type="text/javascript">
  if (navigator.geolocation)
  {
    navigator.geolocation.getCurrentPosition(
      function(position)
      {
        var latitude = position.coords.latitude;
        var longitude = position.coords.longitude;
        var url = "http://maps.google.fr/maps?q=";
        url += latitude + "+" + longitude;
        document.write("<a href=" + url + ">" + url + "</a>");
      }
    );
  }
  else
  {
    document.write("geolocation is not supported in your browser");
  }
</script>