You can remark at the bottom of each page I provide a last modification date.
-This label was first calculated using the mtime of the file on the file system.
-But many times I modify this date just to force some recompilation.
-Therefore the date wasn’t a date of real modification.
-
-
I use git to version my website.
-And fortunately I can know the last date of real change of a file.
-This is how I do this with nanoc:
Of course I know it is really slow and absolutely not optimized.
-But it works as expected.
-Now the date you see at the bottom is exactly the date I modified the content of the page.
-
-
Thanks to Eric Sunshine to provide me some hints at cleaning my code.
Lets be straight:
-here are two functions to add to your code to have base64 and hexadecimal version of the sha1 hash of an NSString.
-
-
To use it, simply copy the code in your class and use as this:
-
-
-#import<CommonCrypto/CommonDigest.h>
-...
-NSString *b64_hash = [selfb64_sha1:@"some NSString to be sha1'ed"];
-...
-NSString *hex_hash = [selfhex_sha1:@"some NSString to be sha1'ed"];
-
-
-
The base64 algorithm must be programmed by hand on iPhone!
-
-
\ No newline at end of file
diff --git a/output/Scratch/en/blog/feed/feed.xml b/output/Scratch/en/blog/feed/feed.xml
deleted file mode 100644
index 1298e9d6a..000000000
--- a/output/Scratch/en/blog/feed/feed.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
- http://yannesposito.com/
- Yogsototh's last blogs entries
- 2010-09-02T13:54:10Z
-
-
-
- Yann Esposito
- http://yannesposito.com
-
-
- tag:yannesposito.com,2010-09-02:/Scratch/en/blog/2010-09-02-Use-git-to-calculate-trusted-mtimes/
- Use git to calculate trusted mtimes
- 2010-09-02T13:54:10Z
- 2010-09-02T13:54:10Z
-
- Yann Esposito
- yannesposito.com
-
-
- <p>You can remark at the bottom of each page I provide a last modification date.
-This label was first calculated using the <code>mtime</code> of the file on the file system.
-But many times I modify this date just to force some recompilation.
-Therefore the date wasn’t a date of <em>real</em> modification.</p>
-
-<p>I use <a href="http://git-scm.org">git</a> to version my website.
-And fortunately I can know the last date of <em>real</em> change of a file.
-This is how I do this with <a href="http://nanoc.stoneship.org">nanoc</a>:</p>
-
-<div class="code"><div class="file"><a href="/Scratch/en/blog/2010-09-02-Use-git-to-calculate-trusted-mtimes/code/gitmtime.rb"> ➥ gitmtime.rb </a></div><div class="withfile">
-<pre class="twilight">
-<span class="Keyword">def</span> </pre></div></div>
-
-
- tag:yannesposito.com,2010-09-02:/Scratch/en/blog/2010-09-02-base64-and-sha1-on-iPhone/
- base64 and sha1 on iPhone
- 2010-09-01T22:02:17Z
- 2010-09-01T22:02:17Z
-
- Yann Esposito
- yannesposito.com
-
-
- <p>Lets be straight:
-here are two functions to add to your code to have <code>base64</code> and <code>hexadecimal</code> version of the <code>sha1</code> hash of an NSString.</p>
-
-<p>To use it, simply copy the code in your class and use as this:</p>
-
-<pre class="twilight">
-<span class="CCCPreprocessorLine">#<span class="CCCPreprocessorDirective">import</span> <span class="String"><span class="String"><</span>CommonCrypto/CommonDigest.h<span class="String">></span></span></span>
-...
-<span class="Support">NSString</span> *b64_hash = [<span class="Variable">self</span> <span class="SupportFunction">b64_sha1<span class="SupportFunction">:</span></span><span class="String"><span class="String">@"</span>some NSString to be sha1'ed<span class="String">"</span></span>];
-...
-</pre>
-
-
diff --git a/output/Scratch/en/blog/index.html b/output/Scratch/en/blog/index.html
deleted file mode 100644
index 0948741dd..000000000
--- a/output/Scratch/en/blog/index.html
+++ /dev/null
@@ -1,242 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Blog
-
-
-
-
-
Here you’ll can find mostly technical articles.
-Some are just reminder of technical tips.
-But some are long and technically detailled articles.
-
-
-
I do my best to traduce each page in french and in english.
-It not always easy. English is not my natural language.
-I make many errors, orthographic, grammatical, typographical…
-
-
Thanks not to judge me based on these errors! And don’t forget content is more important than presentation!
-
-
The first impression I’ll let you if we meet in real life should be different from the one I let you based on my website.
-
-
I wish you to find something useful or interesting on this website.
The page you’re looking at doesn’t exists on the server.
-If you have followed an internal link, you can tell me by mail and I’ll fix it as soon as possible.
-
-
-
-
-
-
-
-
La page que vous recherchez n’est pas présente sur le site.
-Si vous avez suivi un lien vous pouvez me prévenir par mail et je réparerai ça dès que possible.
You can remark at the bottom of each page I provide a last modification date.
-This label was first calculated using the mtime of the file on the file system.
-But many times I modify this date just to force some recompilation.
-Therefore the date wasn’t a date of real modification.
-
-
I use git to version my website.
-And fortunately I can know the last date of real change of a file.
-This is how I do this with nanoc:
YClock is a nice clock screensaver.
-It has three themes: white, black and red.
-It is based on a QuartzComposition and with some little Objective-C code to handle gently the frame per second.
Vous pouvez remarquer qu’à la fin de chaque page je donne une date de dernière modification.
-Précédemment cette date était calculée en utilisant la date du fichier.
-Mais il arrive fréquemment que je fasse un touch d’un fichier pour engendrer tout le site de nouveau.
-Donc la date n’est pas nécessairement la vraie de modification du contenue.
-
-
J’utilise git pour versionner mon site web.
-Et cet outil me permet de récupérer la dernière date de vraie modification d’un fichier.
-Voici comment je m’y prend avec nanoc :
Bien entendu je sais que c’est très lent et absolument pas optimisé.
-Mais ça fonctionne comme prévu.
-Maintenant la date que vous voyez en bas de la page correspond exactement à la dernière date de modification de son contenu.
-
-
Je tiens à remercier Eric Sunshine pour ses conseils sur ce problème.
Allons directement à l’essentiel :
-voici deux fonctions à intégrer à votre application iPhone pour afficher l’encodage en base64 ou en hexadecimal du hash sha1 d’un string en Objective-C pour iPhone.
-
-
Pour l’usage c’est très simple, copiez le code dans la classe de votre choix.
-Puis :
-
-
-#import<CommonCrypto/CommonDigest.h>
-...
-NSString *b64_hash = [selfb64_sha1:@"some NSString to be sha1'ed"];
-...
-NSString *hex_hash = [selfhex_sha1:@"some NSString to be sha1'ed"];
-
-
-
L’algorithme pour l’encodage en base64 doit être programmé sur iPhone.
-Il n’y a pas de librairie officielle qui s’occupe de ça.
-
-
\ No newline at end of file
diff --git a/output/Scratch/fr/blog/feed/feed.xml b/output/Scratch/fr/blog/feed/feed.xml
deleted file mode 100644
index 7540b32c2..000000000
--- a/output/Scratch/fr/blog/feed/feed.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
- http://yannesposito.com/
- Yogsototh's last blogs entries
- 2010-09-02T13:54:10Z
-
-
-
- Yann Esposito
- http://yannesposito.com
-
-
- tag:yannesposito.com,2010-09-02:/Scratch/fr/blog/2010-09-02-Use-git-to-calculate-trusted-mtimes/
- Utilisation de git pour calculer les mtimes
- 2010-09-02T13:54:10Z
- 2010-09-02T13:54:10Z
-
- Yann Esposito
- yannesposito.com
-
-
- <p>Vous pouvez remarquer qu’à la fin de chaque page je donne une date de dernière modification.
-Précédemment cette date était calculée en utilisant la date du fichier.
-Mais il arrive fréquemment que je fasse un <code>touch</code> d’un fichier pour engendrer tout le site de nouveau.
-Donc la date n’est pas nécessairement la <em>vraie</em> de modification du contenue.</p>
-
-<p>J’utilise <a href="http://git-scm.org">git</a> pour <em>versionner</em> mon site web.
-Et cet outil me permet de récupérer la dernière date de <em>vraie</em> modification d’un fichier.
-Voici comment je m’y prend avec <a href="http://nanoc.stoneship.org">nanoc</a> :</p>
-
-<div class="code"><div class="file"></div></div>
-
-
- tag:yannesposito.com,2010-09-02:/Scratch/fr/blog/2010-09-02-base64-and-sha1-on-iPhone/
- base64 et sha1 sur iPhone
- 2010-09-01T22:02:17Z
- 2010-09-01T22:02:17Z
-
- Yann Esposito
- yannesposito.com
-
-
- <p>Allons directement à l’essentiel :
-voici deux fonctions à intégrer à votre application iPhone pour afficher l’encodage en base64 ou en hexadecimal du hash sha1 d’un string en Objective-C pour iPhone.</p>
-
-<p>Pour l’usage c’est très simple, copiez le code dans la classe de votre choix.
-Puis :</p>
-
-<pre class="twilight">
-<span class="CCCPreprocessorLine">#<span class="CCCPreprocessorDirective">import</span> <span class="String"><span class="String"><</span>CommonCrypto/CommonDigest.h<span class="String">></span></span></span>
-...
-<span class="Support">NSString</span> *b64_hash = [<span class="Variable">self</span> <span class="SupportFunction">b64_sha1<span class="SupportFunction">:</span></span><span class="String"></span></pre>
-
-
diff --git a/output/Scratch/fr/blog/index.html b/output/Scratch/fr/blog/index.html
deleted file mode 100644
index d5fe9b8cf..000000000
--- a/output/Scratch/fr/blog/index.html
+++ /dev/null
@@ -1,244 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Blog
-
-
-
-
-
Vous trouverez ici des articles qui sont pour la plupart
-écrits en anglais et qui sont techniques.
-Certain sont justes là pour me souvenir de petits trucs, que
-d’autres pourraient trouver utiles. Mais il y a aussi de
-long articles techniques qui vont un peu plus dans les détails.
-
-
-
Je fais de mon mieux pour traduire chaque page en anglais et en français.
-Cependant, ce n’est pas toujours évident.
-Il m’arrive de faire de nombreuses fautes d’orthographes, des erreurs typographiques et autres.
-
-
Merci de ne pas me juger sur ces erreurs et de ne pas oublier que le fond est plus important que la forme.
-
-
L’impression que ce site laisse de moi n’est certainement pas l’impression que je vous laisserais si on se rencontrait.
-
-
Je vous souhaite de trouver ce que vous cherchez sur ce site.
-
-Vous pouvez aussi vous abonner au flux RSS pour être certain d'être prévenu quand un nouvel article est posté. Pour plus d'explications vous pouvez vous référer à cette page.
-
-
-
Vous pouvez remarquer qu’à la fin de chaque page je donne une date de dernière modification.
-Précédemment cette date était calculée en utilisant la date du fichier.
-Mais il arrive fréquemment que je fasse un touch d’un fichier pour engendrer tout le site de nouveau.
-Donc la date n’est pas nécessairement la vraie de modification du contenue.
-
-
J’utilise git pour versionner mon site web.
-Et cet outil me permet de récupérer la dernière date de vraie modification d’un fichier.
-Voici comment je m’y prend avec nanoc :
Allons directement à l’essentiel :
-voici deux fonctions à intégrer à votre application iPhone pour afficher l’encodage en base64 ou en hexadecimal du hash sha1 d’un string en Objective-C pour iPhone.
-
-
Pour l’usage c’est très simple, copiez le code dans la classe de votre choix.
-Puis :
YClock est un économiseur d’écran qui vous donne l’heure.i
-Il a trois thèmes clair, rouge et noir.
-Il utilise une base de QuartzComposition + du code objective-C pour la gestion du nombre d’images par seconde.