updated yesod intro

This commit is contained in:
Yann Esposito (Yogsototh) 2013-01-30 12:05:36 +01:00
parent 9c09c371dc
commit 186d5364dc
8 changed files with 874 additions and 877 deletions

View file

@ -20,8 +20,7 @@ begindiv(intro)
%tldr %tldr
[Yesod](http://www.yesodweb.com) is a web framework which recently reached the maturity for which you should consider to use it. [Yesod](http://www.yesodweb.com) is a framework which has recently matured to the point where you should consider using it. Before telling you why you should learn Haskell and use Yesod, I will illustrate the many features Yesod introduces which are missing in other frameworks.
Before telling you why you should learn Haskell and use yesod, I will talk about ideas yesod introduced and I didn't saw in other frameworks before.
enddiv enddiv

View file

@ -22,8 +22,7 @@ en: %tldr
fr: %tlal fr: %tlal
en: [Yesod](http://www.yesodweb.com) is a web framework which recently reached the maturity for which you should consider to use it. en: [Yesod](http://www.yesodweb.com) is a framework which has recently matured to the point where you should consider using it. Before telling you why you should learn Haskell and use Yesod, I will illustrate the many features Yesod introduces which are missing in other frameworks.
en: Before telling you why you should learn Haskell and use yesod, I will talk about ideas yesod introduced and I didn't saw in other frameworks before.
fr: Cela fait un moment que je suis la progression du [framework yesod](http://www.yesodweb.com). fr: Cela fait un moment que je suis la progression du [framework yesod](http://www.yesodweb.com).
fr: À mon humble avis on peut commencer à l'utiliser pour des applications sérieuses (comprendre en prod). fr: À mon humble avis on peut commencer à l'utiliser pour des applications sérieuses (comprendre en prod).
fr: Avant de vous dire pourquoi vous devriez aussi le considérer, je préfère vous parler de bonnes idées (parmi d'autres) introduites par yesod que je n'avais jamais vu ailleurs. fr: Avant de vous dire pourquoi vous devriez aussi le considérer, je préfère vous parler de bonnes idées (parmi d'autres) introduites par yesod que je n'avais jamais vu ailleurs.

View file

@ -72,7 +72,7 @@ Imperative language could also benefit from this functional organization.</p>
<ul id="markdown-toc"> <ul id="markdown-toc">
<li><a href="#introduction">Introduction</a></li> <li><a href="#introduction">Introduction</a></li>
<li><a href="#first-version">First version</a> <ul> <li><a href="#first-version">First version</a> <ul>
<li><a href="#lets-play-the-song-of-our-people">Let&rsquo;s play the song of our people</a></li> <li><a href="#lets-play-the-song-of-our-people">Let&#8217;s play the song of our people</a></li>
<li><a href="#let-us-start">Let us start</a></li> <li><a href="#let-us-start">Let us start</a></li>
</ul> </ul>
</li> </li>
@ -157,7 +157,7 @@ We start cleaning the code at the 5<sup>th</sup> section.</p>
The first being mostly some boilerplate<sup id="fnref:011"><a href="#fn:011" rel="footnote">2</a></sup>. The first being mostly some boilerplate<sup id="fnref:011"><a href="#fn:011" rel="footnote">2</a></sup>.
And the second part more focused on OpenGL and content.</p> And the second part more focused on OpenGL and content.</p>
<h3 id="lets-play-the-song-of-our-people">Let&rsquo;s play the song of our people</h3> <h3 id="lets-play-the-song-of-our-people">Let&#8217;s play the song of our people</h3>
<div class="codehighlight"> <div class="codehighlight">
@ -393,7 +393,7 @@ It is a bit long before the first image appears, but if you resize the window, i
This property is a direct consequence of purity. This property is a direct consequence of purity.
If you look closely, you see that <code>allPoints</code> is a pure list. If you look closely, you see that <code>allPoints</code> is a pure list.
Therefore, calling <code>allPoints</code> will always render the same result and Haskell is clever enough to use this property. Therefore, calling <code>allPoints</code> will always render the same result and Haskell is clever enough to use this property.
While Haskell doesn&rsquo;t garbage collect <code>allPoints</code> the result is reused for free. While Haskell doesn&#8217;t garbage collect <code>allPoints</code> the result is reused for free.
We did not specified this value should be saved for later use. We did not specified this value should be saved for later use.
It is saved for us.</p> It is saved for us.</p>
@ -631,7 +631,7 @@ instead of using a 3D projection of quaternions.
I am pretty sure this construction is not useful for numbers. I am pretty sure this construction is not useful for numbers.
But it will be enough for us to create something that look nice.</p> But it will be enough for us to create something that look nice.</p>
<p>This section is quite long, but don&rsquo;t be afraid, <p>This section is quite long, but don&#8217;t be afraid,
most of the code is some OpenGL boilerplate. most of the code is some OpenGL boilerplate.
If you just want to skim this section, If you just want to skim this section,
here is a high level representation:</p> here is a high level representation:</p>
@ -647,7 +647,7 @@ here is a high level representation:</p>
<p>Drawing: </p> <p>Drawing: </p>
<ul> <ul>
<li>set doubleBuffer, handle depth, window size&hellip;</li> <li>set doubleBuffer, handle depth, window size&#8230;</li>
<li>Use state to apply some transformations</li> <li>Use state to apply some transformations</li>
</ul> </ul>
</li> </li>
@ -903,7 +903,7 @@ Mainly there are two parts: apply some transformations, draw the object.</p>
<h3 id="the-3d-mandelbrot">The 3D Mandelbrot</h3> <h3 id="the-3d-mandelbrot">The 3D Mandelbrot</h3>
<p>We have finished with the OpenGL section, let&rsquo;s talk about how we <p>We have finished with the OpenGL section, let&#8217;s talk about how we
generate the 3D points and colors. generate the 3D points and colors.
First, we will set the number of details to 200 pixels in the three dimensions.</p> First, we will set the number of details to 200 pixels in the three dimensions.</p>
@ -1017,7 +1017,7 @@ depthPoints = do
<p>If you prefer the first version, then just imagine how hard it will be to change the enumeration of the point from (x,y) to (x,z) for example.</p> <p>If you prefer the first version, then just imagine how hard it will be to change the enumeration of the point from (x,y) to (x,z) for example.</p>
<p>Also, we didn&rsquo;t searched for negative values. <p>Also, we didn&#8217;t searched for negative values.
This modified Mandelbrot is no more symmetric relatively to the plan <code>y=0</code>. This modified Mandelbrot is no more symmetric relatively to the plan <code>y=0</code>.
But it is symmetric relatively to the plan <code>z=0</code>. But it is symmetric relatively to the plan <code>z=0</code>.
Then I mirror these values. </p> Then I mirror these values. </p>
@ -1242,7 +1242,7 @@ ymandel x y z = mandel (2*x/width) (2*y/height) (2*z/deep) 64
</div> </div>
<p>This code is cleaner but many things doesn&rsquo;t feel right. <p>This code is cleaner but many things doesn&#8217;t feel right.
First, all the user interaction code is outside our main file. First, all the user interaction code is outside our main file.
I feel it is okay to hide the detail for the rendering. I feel it is okay to hide the detail for the rendering.
But I would have preferred to control the user actions.</p> But I would have preferred to control the user actions.</p>
@ -1276,12 +1276,12 @@ We will have two choices: </p>
</li> </li>
<li> <li>
<p>Our main problem come from user interaction. <p>Our main problem come from user interaction.
If you ask &ldquo;the Internet&rdquo;, If you ask &#8220;the Internet&#8221;,
about how to deal with user interaction with a functional paradigm, about how to deal with user interaction with a functional paradigm,
the main answer is to use <em>functional reactive programming</em> (FRP). the main answer is to use <em>functional reactive programming</em> (FRP).
I won&rsquo;t use FRP in this article. I won&#8217;t use FRP in this article.
Instead, I&rsquo;ll use a simpler while less effective way to deal with user interaction. Instead, I&#8217;ll use a simpler while less effective way to deal with user interaction.
But The method I&rsquo;ll use will be as pure and functional as possible.</p> But The method I&#8217;ll use will be as pure and functional as possible.</p>
</li> </li>
</ol> </ol>
@ -1303,7 +1303,7 @@ First, what the main loop should look like if we could make our own:</p>
<li>a function taking two parameters: time and world state and render a new world without user interaction.</li> <li>a function taking two parameters: time and world state and render a new world without user interaction.</li>
</ul> </ul>
<p>Here is a real working code, I&rsquo;ve hidden most display functions. <p>Here is a real working code, I&#8217;ve hidden most display functions.
The YGL, is a kind of framework to display 3D functions. The YGL, is a kind of framework to display 3D functions.
But it can easily be extended to many kind of representation.</p> But it can easily be extended to many kind of representation.</p>
@ -1523,7 +1523,7 @@ idleAction tnew world = world {
<p>Now the function which will generate points in 3D. <p>Now the function which will generate points in 3D.
The first parameter (<code>res</code>) is the resolution of the vertex generation. The first parameter (<code>res</code>) is the resolution of the vertex generation.
More precisely, <code>res</code> is distance between two points on one direction. More precisely, <code>res</code> is distance between two points on one direction.
We need it to &ldquo;close&rdquo; our shape.</p> We need it to &#8220;close&#8221; our shape.</p>
<p>The type <code>Function3D</code> is <code>Point -&gt; Point -&gt; Maybe Point</code>. <p>The type <code>Function3D</code> is <code>Point -&gt; Point -&gt; Maybe Point</code>.
Because we consider partial functions Because we consider partial functions
@ -1592,7 +1592,7 @@ ymandel x y z = fromIntegral (mandel x y z 64) / 64
</div> </div>
<p>I won&rsquo;t explain how the magic occurs here. <p>I won&#8217;t explain how the magic occurs here.
If you are interested, just read the file <a href="code/05_Mandelbulb/YGL.hs"><code>YGL.hs</code></a>. If you are interested, just read the file <a href="code/05_Mandelbulb/YGL.hs"><code>YGL.hs</code></a>.
It is commented a lot.</p> It is commented a lot.</p>
@ -1612,8 +1612,8 @@ It is commented a lot.</p>
<p>Our code architecture feel very clean. <p>Our code architecture feel very clean.
All the meaningful code is in our main file and all display details are All the meaningful code is in our main file and all display details are
externalized. externalized.
If you read the code of <code>YGL.hs</code>, you&rsquo;ll see I didn&rsquo;t made everything perfect. If you read the code of <code>YGL.hs</code>, you&#8217;ll see I didn&#8217;t made everything perfect.
For example, I didn&rsquo;t finished the code of the lights. For example, I didn&#8217;t finished the code of the lights.
But I believe it is a good first step and it will be easy to go further. But I believe it is a good first step and it will be easy to go further.
Unfortunately the program of the preceding session is extremely slow. Unfortunately the program of the preceding session is extremely slow.
We compute the Mandelbulb for each frame now.</p> We compute the Mandelbulb for each frame now.</p>
@ -1897,20 +1897,20 @@ ymandel x y z = fromIntegral (mandel x y z 64) / 64
<p>As we can use imperative style in a functional language, <p>As we can use imperative style in a functional language,
know you can use functional style in imperative languages. know you can use functional style in imperative languages.
This article exposed a way to organize some code in a functional way. This article exposed a way to organize some code in a functional way.
I&rsquo;d like to stress the usage of Haskell made it very simple to achieve this.</p> I&#8217;d like to stress the usage of Haskell made it very simple to achieve this.</p>
<p>Once you are used to pure functional style, <p>Once you are used to pure functional style,
it is hard not to see all advantages it offers.</p> it is hard not to see all advantages it offers.</p>
<p>The code in the two last sections is completely pure and functional. <p>The code in the two last sections is completely pure and functional.
Furthermore I don&rsquo;t use <code>GLfloat</code>, <code>Color3</code> or any other OpenGL type. Furthermore I don&#8217;t use <code>GLfloat</code>, <code>Color3</code> or any other OpenGL type.
If I want to use another library in the future, If I want to use another library in the future,
I would be able to keep all the pure code and simply update the YGL module.</p> I would be able to keep all the pure code and simply update the YGL module.</p>
<p>The <code>YGL</code> module can be seen as a &ldquo;wrapper&rdquo; around 3D display and user interaction. <p>The <code>YGL</code> module can be seen as a &#8220;wrapper&#8221; around 3D display and user interaction.
It is a clean separator between the imperative paradigm and functional paradigm.</p> It is a clean separator between the imperative paradigm and functional paradigm.</p>
<p>If you want to go further, it shouldn&rsquo;t be hard to add parallelism. <p>If you want to go further, it shouldn&#8217;t be hard to add parallelism.
This should be easy mainly because most of the visible code is pure. This should be easy mainly because most of the visible code is pure.
Such an optimization would have been harder by using directly the OpenGL library.</p> Such an optimization would have been harder by using directly the OpenGL library.</p>
@ -1920,7 +1920,7 @@ O(n².log(n)) to O(n³).</p>
<hr/><div class="footnotes"> <hr/><div class="footnotes">
<ol> <ol>
<li id="fn:001"> <li id="fn:001">
<p>Unfortunately, I couldn&rsquo;t make this program to work on my Mac. More precisely, I couldn&rsquo;t make the <a href="http://openil.sourceforge.net/">DevIL</a> library work on Mac to output the image. Yes I have done a <code>brew install libdevil</code>. But even a minimal program who simply write some <code>jpg</code> didn&rsquo;t worked. I tried both with <code>Haskell</code> and <code>C</code>.<a href="#fnref:001" rel="reference">&#8617;</a></p> <p>Unfortunately, I couldn&#8217;t make this program to work on my Mac. More precisely, I couldn&#8217;t make the <a href="http://openil.sourceforge.net/">DevIL</a> library work on Mac to output the image. Yes I have done a <code>brew install libdevil</code>. But even a minimal program who simply write some <code>jpg</code> didn&#8217;t worked. I tried both with <code>Haskell</code> and <code>C</code>.<a href="#fnref:001" rel="reference">&#8617;</a></p>
</li> </li>
<li id="fn:011"> <li id="fn:011">
<p>Generally in Haskell you need to declare a lot of import lines. <p>Generally in Haskell you need to declare a lot of import lines.

View file

@ -104,7 +104,7 @@ Imperative language could also benefit from this functional organization.&lt;/p&
&lt;div class="intro"&gt; &lt;div class="intro"&gt;
&lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Too long; didn't read"&gt;tl;dr&lt;/abbr&gt;: &lt;/span&gt; Web typography sucks and we&amp;rsquo;ll have to wait forever before it will be fixed.&lt;/p&gt; &lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Too long; didn't read"&gt;tl;dr&lt;/abbr&gt;: &lt;/span&gt; Web typography sucks and we&amp;#8217;ll have to wait forever before it will be fixed.&lt;/p&gt;
&lt;/div&gt; &lt;/div&gt;
@ -141,7 +141,7 @@ We can all create better web typography ourselves, today.&#187;&lt;/p&gt;
&lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Too long; didn't read"&gt;tl;dr&lt;/abbr&gt;: &lt;/span&gt; A simple yesod tutorial. &lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Too long; didn't read"&gt;tl;dr&lt;/abbr&gt;: &lt;/span&gt; A simple yesod tutorial.
Yesod is a Haskell web framework. Yesod is a Haskell web framework.
You shouldn&amp;rsquo;t need to know Haskell. &lt;/p&gt; You shouldn&amp;#8217;t need to know Haskell. &lt;/p&gt;
&lt;blockquote&gt; &lt;blockquote&gt;
&lt;center&gt;&lt;span class="sc"&gt;&lt;b&gt;Table of content&lt;/b&gt;&lt;/span&gt;&lt;/center&gt; &lt;center&gt;&lt;span class="sc"&gt;&lt;b&gt;Table of content&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;
@ -203,8 +203,7 @@ Then some believed it would be a good idea to invent many &lt;span class="sc"&gt
&lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Too long; didn't read"&gt;tl;dr&lt;/abbr&gt;: &lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Too long; didn't read"&gt;tl;dr&lt;/abbr&gt;: &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.yesodweb.com"&gt;Yesod&lt;/a&gt; is a web framework which recently reached the maturity for which you should consider to use it. &lt;p&gt;&lt;a href="http://www.yesodweb.com"&gt;Yesod&lt;/a&gt; is a framework which has recently matured to the point where you should consider using it. Before telling you why you should learn Haskell and use Yesod, I will illustrate the many features Yesod introduces which are missing in other frameworks.&lt;/p&gt;
Before telling you why you should learn Haskell and use yesod, I will talk about ideas yesod introduced and I didn&amp;rsquo;t saw in other frameworks before.&lt;/p&gt;
&lt;/div&gt; &lt;/div&gt;
@ -212,11 +211,11 @@ Before telling you why you should learn Haskell and use yesod, I will talk about
&lt;h2 id="type-safety"&gt;Type safety&lt;/h2&gt; &lt;h2 id="type-safety"&gt;Type safety&lt;/h2&gt;
&lt;p&gt;Let&amp;rsquo;s start by an obligatory link from &lt;a href="http://xkcd.com"&gt;xkcd&lt;/a&gt;:&lt;/p&gt; &lt;p&gt;Let&amp;#8217;s start by an obligatory link from &lt;a href="http://xkcd.com"&gt;xkcd&lt;/a&gt;:&lt;/p&gt;
&lt;img src="http://imgs.xkcd.com/comics/exploits_of_a_mom.png" alt="SQL injection by a mom" /&gt; &lt;img src="http://imgs.xkcd.com/comics/exploits_of_a_mom.png" alt="SQL injection by a mom" /&gt;
&lt;p&gt;When you create a web application, a lot of time is spent dealing with ...&lt;/p&gt;&lt;/img&gt;&lt;/img&gt;</content> &lt;p&gt;When you create a web application, a lot of time is spent dealing with strin...&lt;/p&gt;&lt;/img&gt;&lt;/img&gt;</content>
</entry> </entry>
<entry> <entry>
<id>tag:yannesposito.com,2011-09-28:/Scratch/en/blog/Higher-order-function-in-zsh/</id> <id>tag:yannesposito.com,2011-09-28:/Scratch/en/blog/Higher-order-function-in-zsh/</id>
@ -327,7 +326,7 @@ It is not even good to learn programming...&lt;/p&gt;&lt;/img&gt;&lt;/img&gt;</c
&lt;/blockquote&gt; &lt;/blockquote&gt;
&lt;p&gt;Learn &lt;a href="http://www.vim.org"&gt;vim&lt;/a&gt; and it will be your last text editor. &lt;p&gt;Learn &lt;a href="http://www.vim.org"&gt;vim&lt;/a&gt; and it will be your last text editor.
There isn&amp;rsquo;t any better text editor that I know of. There isn&amp;#8217;t any better text editor that I know of.
It is hard to learn, but incredible to use.&lt;/p&gt; It is hard to learn, but incredible to use.&lt;/p&gt;
&lt;p&gt;I suggest you teach yourself ...&lt;/p&gt;&lt;/img&gt;</content> &lt;p&gt;I suggest you teach yourself ...&lt;/p&gt;&lt;/img&gt;</content>
@ -413,9 +412,9 @@ I use a different password on all website.&lt;/p&gt;
&lt;p&gt;Disclamer, this is an unashamed attempt to make you download my iPhone app&amp;nbsp;;-). &lt;p&gt;Disclamer, this is an unashamed attempt to make you download my iPhone app&amp;nbsp;;-).
You&amp;rsquo;re always here? You&amp;#8217;re always here?
Even if you won&amp;rsquo;t download my app, you should read more. Even if you won&amp;#8217;t download my app, you should read more.
My method doesn&amp;rsquo;t necessitate my app. My method doesn&amp;#8217;t necessitate my app.
It is both safe and easy to use everyday.&lt;/p&gt; It is both safe and easy to use everyday.&lt;/p&gt;
&lt;p&gt;If you just want to &lt;em&gt;use&lt;/em&gt; the tools without searching to understand why it is safe, just jump at the &lt;/p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/img&gt;</content> &lt;p&gt;If you just want to &lt;em&gt;use&lt;/em&gt; the tools without searching to understand why it is safe, just jump at the &lt;/p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/img&gt;</content>
@ -453,7 +452,7 @@ It is both safe and easy to use everyday.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Update&lt;/em&gt;: I might change my mind now. Why? &lt;p&gt;&lt;em&gt;Update&lt;/em&gt;: I might change my mind now. Why?
I just discovered a &lt;a href="https://github.com/rstacruz/js2coffee"&gt;js2coffee converter&lt;/a&gt;. Furthermore Denis Knauf told me about a &lt;code&gt;CoffeeScript.eval&lt;/code&gt; function. I just discovered a &lt;a href="https://github.com/rstacruz/js2coffee"&gt;js2coffee converter&lt;/a&gt;. Furthermore Denis Knauf told me about a &lt;code&gt;CoffeeScript.eval&lt;/code&gt; function.
And as Denis said: &amp;ldquo;it is time to use Coffeescript as a javascript with Ruby-like syntax not a Ruby-like programming language&amp;rdquo;.&lt;/p&gt; And as Denis said: &amp;#8220;it is time to use Coffeescript as a javascript with Ruby-like syntax not a Ruby-like programming language&amp;#8221;.&lt;/p&gt;
&lt;/div&gt; &lt;/div&gt;
@ -532,7 +531,7 @@ When we are used to &lt;span style="text-transform: uppercase"&gt;L&lt;sup style
&lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Too long; didn't read"&gt;tl;dr&lt;/abbr&gt;: &lt;/span&gt; Played to process a &lt;code&gt;wav&lt;/code&gt; file. &lt;code&gt;C&lt;/code&gt; was easier and cleaner than Ruby.&lt;/p&gt; &lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Too long; didn't read"&gt;tl;dr&lt;/abbr&gt;: &lt;/span&gt; Played to process a &lt;code&gt;wav&lt;/code&gt; file. &lt;code&gt;C&lt;/code&gt; was easier and cleaner than Ruby.&lt;/p&gt;
&lt;p&gt;edit: I wanted this program to work only on one specific machine (a x86 on a 32 bit Ubuntu). Therefore I didn&amp;rsquo;t had any portability consideration. This is only a &lt;em&gt;hack&lt;/em&gt;.&lt;/p&gt; &lt;p&gt;edit: I wanted this program to work only on one specific machine (a x86 on a 32 bit Ubuntu). Therefore I didn&amp;#8217;t had any portability consideration. This is only a &lt;em&gt;hack&lt;/em&gt;.&lt;/p&gt;
&lt;/div&gt; &lt;/div&gt;
@ -541,7 +540,7 @@ When we are used to &lt;span style="text-transform: uppercase"&gt;L&lt;sup style
&lt;p&gt;I had to compute the sum of the absolute values of data of a &lt;code&gt;.wav&lt;/code&gt; file. &lt;p&gt;I had to compute the sum of the absolute values of data of a &lt;code&gt;.wav&lt;/code&gt; file.
For efficiency (and fun) reasons, I had chosen &lt;code&gt;C&lt;/code&gt; language.&lt;/p&gt; For efficiency (and fun) reasons, I had chosen &lt;code&gt;C&lt;/code&gt; language.&lt;/p&gt;
&lt;p&gt;I didn&amp;rsquo;t programmed in &lt;code&gt;C&lt;/code&gt; for a long time. &lt;p&gt;I didn&amp;#8217;t programmed in &lt;code&gt;C&lt;/code&gt; for a long time.
From my memory it was a pain to read and write to files. From my memory it was a pain to read and write to files.
But in the end I was really impressed by the code I get. But in the end I was really impressed by the code I get.
It was really clean. It was really clean.
@ -578,10 +577,10 @@ This is even more impressive know...&lt;/p&gt;</content>
&lt;/div&gt; &lt;/div&gt;
&lt;p&gt;I&amp;rsquo;ve (re)discovered how to become S/MIME compliant. &lt;p&gt;I&amp;#8217;ve (re)discovered how to become S/MIME compliant.
I am now suprised how easy it was. I am now suprised how easy it was.
Some years ago it was far more difficult. Some years ago it was far more difficult.
Now I&amp;rsquo;m able to sign and encrypt my emails.&lt;/p&gt; Now I&amp;#8217;m able to sign and encrypt my emails.&lt;/p&gt;
&lt;h2 id="why-is-it-important"&gt;Why ...&lt;/h2&gt;&lt;/img&gt;</content> &lt;h2 id="why-is-it-important"&gt;Why ...&lt;/h2&gt;&lt;/img&gt;</content>
</entry> </entry>
@ -605,7 +604,7 @@ But the major problem came from, &lt;code&gt;font-shadow&lt;/code&gt; and gradie
Then my new design obey to the following rules:&lt;/p&gt; Then my new design obey to the following rules:&lt;/p&gt;
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;no CSS element begining by &amp;lsquo;-moz&amp;rsquo; or &amp;lsquo;-webkit&amp;rsquo;, etc&amp;hellip;,&lt;/li&gt; &lt;li&gt;no CSS element begining by &amp;#8216;-moz&amp;#8217; or &amp;#8216;-webkit&amp;#8217;, etc&amp;#8230;,&lt;/li&gt;
&lt;li&gt;no text shadow,&lt;/li&gt; &lt;li&gt;no text shadow,&lt;/li&gt;
&lt;li&gt;clean (I mean delete) most javascript.&lt;/li&gt; &lt;li&gt;clean (I mean delete) most javascript.&lt;/li&gt;
&lt;/ul&gt; &lt;/ul&gt;
@ -626,7 +625,7 @@ Then my new design obey to the following rules:&lt;/p&gt;
<content type="html">&lt;p&gt;You can remark at the bottom of each page I provide a last modification date. <content type="html">&lt;p&gt;You can remark at the bottom of each page I provide a last modification date.
This label was first calculated using the &lt;code&gt;mtime&lt;/code&gt; of the file on the file system. This label was first calculated using the &lt;code&gt;mtime&lt;/code&gt; of the file on the file system.
But many times I modify this date just to force some recompilation. But many times I modify this date just to force some recompilation.
Therefore the date wasn&amp;rsquo;t a date of &lt;em&gt;real&lt;/em&gt; modification.&lt;/p&gt; Therefore the date wasn&amp;#8217;t a date of &lt;em&gt;real&lt;/em&gt; modification.&lt;/p&gt;
&lt;p&gt;I use &lt;a href="http://git-scm.org"&gt;git&lt;/a&gt; to version my website. &lt;p&gt;I use &lt;a href="http://git-scm.org"&gt;git&lt;/a&gt; to version my website.
And fortunately I can know the last date of &lt;em&gt;real&lt;/em&gt; change of a file. And fortunately I can know the last date of &lt;em&gt;real&lt;/em&gt; change of a file.
@ -678,8 +677,8 @@ NSString *hex_hash = [self hex_sha1:@"some NSString to be sha1'ed"];
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/en/blog/2010-08-31-send-mail-from-command-line-with-attached-file/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/en/blog/2010-08-31-send-mail-from-command-line-with-attached-file/"/>
<content type="html">&lt;p&gt;I had to send a mail using only command line. <content type="html">&lt;p&gt;I had to send a mail using only command line.
I was surprised it isn&amp;rsquo;t straightforward at all. I was surprised it isn&amp;#8217;t straightforward at all.
I didn&amp;rsquo;t had &lt;code&gt;pine&lt;/code&gt; nor &lt;code&gt;mutt&lt;/code&gt; or anything like that. I didn&amp;#8217;t had &lt;code&gt;pine&lt;/code&gt; nor &lt;code&gt;mutt&lt;/code&gt; or anything like that.
Just &lt;code&gt;mail&lt;/code&gt; and &lt;code&gt;mailx&lt;/code&gt;.&lt;/p&gt; Just &lt;code&gt;mail&lt;/code&gt; and &lt;code&gt;mailx&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;What Internet say (via google) is&lt;/p&gt; &lt;p&gt;What Internet say (via google) is&lt;/p&gt;
@ -689,7 +688,7 @@ Just &lt;code&gt;mail&lt;/code&gt; and &lt;code&gt;mailx&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;I tried it. &lt;p&gt;I tried it.
And it works almost each times. And it works almost each times.
But for my file, it didn&amp;rsquo;t worked. But for my file, it didn&amp;#8217;t worked.
I compressed it to &lt;code&gt;.gz&lt;/code&gt;, &lt;code&gt;.bz2&lt;/code&gt; and &lt;code&gt;.zip&lt;/code&gt;. I compressed it to &lt;code&gt;.gz&lt;/code&gt;, &lt;code&gt;.bz2&lt;/code&gt; and &lt;code&gt;.zip&lt;/code&gt;.
Using &lt;code&gt;.bz2&lt;/code&gt; format it worked nicely, but not with other formats. Using &lt;code&gt;.bz2&lt;/code&gt; format it worked nicely, but not with other formats.
Instead of having an attached file I saw this in my email.&lt;/p&gt; Instead of having an attached file I saw this in my email.&lt;/p&gt;
@ -769,7 +768,7 @@ I was inspired by Readability and iBooks&lt;small&gt;&amp;copy;&lt;/small&gt; (t
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/en/blog/2010-07-07-CSS-rendering-problems-by-navigator/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/en/blog/2010-07-07-CSS-rendering-problems-by-navigator/"/>
<content type="html">&lt;p&gt;Some &lt;a href="http://reddit.com"&gt;Reddit&lt;/a&gt; users reported my website was really long to load and to scroll. <content type="html">&lt;p&gt;Some &lt;a href="http://reddit.com"&gt;Reddit&lt;/a&gt; users reported my website was really long to load and to scroll.
They thinks it was because of the &amp;lsquo;1px shadow&amp;rsquo; I apply on all the text. They thinks it was because of the &amp;#8216;1px shadow&amp;#8217; I apply on all the text.
I was a bit surprised, because I make some test into a really &lt;em&gt;slow&lt;/em&gt; virtual machine. And all have always worked fine. In fact, what slow down so much are by order of importance:&lt;/p&gt; I was a bit surprised, because I make some test into a really &lt;em&gt;slow&lt;/em&gt; virtual machine. And all have always worked fine. In fact, what slow down so much are by order of importance:&lt;/p&gt;
&lt;ol&gt; &lt;ol&gt;
@ -803,7 +802,7 @@ I was a bit surprised, because I make some test into a really &lt;em&gt;slow&lt;
&lt;li&gt;Tried to make &lt;a href="http://yannesposito.com/Softwares/YPassword.html"&gt;YPassword&lt;/a&gt; in jQuery and with Cappuccino.&lt;/li&gt; &lt;li&gt;Tried to make &lt;a href="http://yannesposito.com/Softwares/YPassword.html"&gt;YPassword&lt;/a&gt; in jQuery and with Cappuccino.&lt;/li&gt;
&lt;li&gt;Cappuccino nice in desktop browser but 1.4MB, not compatible with iPhone.&lt;/li&gt; &lt;li&gt;Cappuccino nice in desktop browser but 1.4MB, not compatible with iPhone.&lt;/li&gt;
&lt;li&gt;jQuery not as nice as the Cappuccino version but 106KB. iPhone compatible.&lt;/li&gt; &lt;li&gt;jQuery not as nice as the Cappuccino version but 106KB. iPhone compatible.&lt;/li&gt;
&lt;li&gt;I&amp;rsquo;ll give a try to Dashcode 3.&lt;/li&gt; &lt;li&gt;I&amp;#8217;ll give a try to Dashcode 3.&lt;/li&gt;
&lt;/ul&gt; &lt;/ul&gt;
@ -929,7 +928,7 @@ You can get it on &lt;a href="http://github.com/yogsototh/nanoc3_blog"&gt;github
&lt;li&gt;&lt;a href="http://intensedebate.org"&gt;intenseDebate&lt;/a&gt; comments integration (asynchronous)&amp;nbsp;;&lt;/li&gt; &lt;li&gt;&lt;a href="http://intensedebate.org"&gt;intenseDebate&lt;/a&gt; comments integration (asynchronous)&amp;nbsp;;&lt;/li&gt;
&lt;li&gt;Portable with and without javascript, XHTML Strict 1.0 / CSS3,&lt;/li&gt; &lt;li&gt;Portable with and without javascript, XHTML Strict 1.0 / CSS3,&lt;/li&gt;
&lt;li&gt;Write in markdown format (no HTML editing needed),&lt;/li&gt; &lt;li&gt;Write in markdown format (no HTML editing needed),&lt;/li&gt;
&lt;li&gt;Typographic ameliorations (no &amp;lsquo;:&amp;rsquo; ...&lt;/li&gt;&lt;/ul&gt;</content> &lt;li&gt;Typographic ameliorations (no &amp;#8216;:&amp;#8217; ...&lt;/li&gt;&lt;/ul&gt;</content>
</entry> </entry>
<entry> <entry>
<id>tag:yannesposito.com,2010-06-14:/Scratch/en/blog/2010-06-14-multi-language-choices/</id> <id>tag:yannesposito.com,2010-06-14:/Scratch/en/blog/2010-06-14-multi-language-choices/</id>
@ -960,12 +959,12 @@ here is an example of english text.
&lt;p&gt;This way of handling translations force you to write completely an article in one language, copy it, and translate it.&lt;/p&gt; &lt;p&gt;This way of handling translations force you to write completely an article in one language, copy it, and translate it.&lt;/p&gt;
&lt;p&gt;However, most of time, there are common parts like images, source code, etc&amp;hellip; &lt;p&gt;However, most of time, there are common parts like images, source code, etc&amp;#8230;
When I want to correct some mistake on these parts, I have to make twice the work. With sometimes adding another mistake in only one language.&lt;/p&gt; When I want to correct some mistake on these parts, I have to make twice the work. With sometimes adding another mistake in only one language.&lt;/p&gt;
&lt;p&gt;This is why I preferred to handle it differently. &lt;p&gt;This is why I preferred to handle it differently.
I use &lt;em&gt;tags&lt;/em&gt; on a single file. I use &lt;em&gt;tags&lt;/em&gt; on a single file.
Finally my files...&lt;/p&gt;</content> Finally my files ...&lt;/p&gt;</content>
</entry> </entry>
<entry> <entry>
<id>tag:yannesposito.com,2010-05-24:/Scratch/en/blog/2010-05-24-Trees--Pragmatism-and-Formalism/</id> <id>tag:yannesposito.com,2010-05-24:/Scratch/en/blog/2010-05-24-Trees--Pragmatism-and-Formalism/</id>
@ -990,7 +989,7 @@ Finally my files...&lt;/p&gt;</content>
&lt;li&gt;Used a pen and a sheet of paper&lt;/li&gt; &lt;li&gt;Used a pen and a sheet of paper&lt;/li&gt;
&lt;li&gt;Made some math.&lt;/li&gt; &lt;li&gt;Made some math.&lt;/li&gt;
&lt;li&gt;Crushed the problem in 10 minutes&lt;/li&gt; &lt;li&gt;Crushed the problem in 10 minutes&lt;/li&gt;
&lt;li&gt;Conclusion: The pragmatism shouldn&amp;rsquo;t mean &amp;ldquo;never use theory&amp;rdquo;.&lt;/li&gt; &lt;li&gt;Conclusion: The pragmatism shouldn&amp;#8217;t mean &amp;#8220;never use theory&amp;#8221;.&lt;/li&gt;
&lt;/ul&gt; &lt;/ul&gt;
@ -1052,14 +1051,14 @@ I entered in the...&lt;/p&gt;</content>
&lt;p&gt;The more you wait to do something, the more difficult it is to start doing it.&lt;/p&gt; &lt;p&gt;The more you wait to do something, the more difficult it is to start doing it.&lt;/p&gt;
&lt;/blockquote&gt; &lt;/blockquote&gt;
&lt;p&gt;I had to write another post for this blog. I had added many article idea in my todolist. But, I made many other things, and I&amp;rsquo;ve always said (until now), I&amp;rsquo;ll do this later. What changed my mind is the haunt of this simple remark about how to be productive in programming. &lt;p&gt;I had to write another post for this blog. I had added many article idea in my todolist. But, I made many other things, and I&amp;#8217;ve always said (until now), I&amp;#8217;ll do this later. What changed my mind is the haunt of this simple remark about how to be productive in programming.
&amp;gt; Stop write &lt;code&gt;TODO&lt;/code&gt; in your code and make it now!&lt;br /&gt; &amp;gt; Stop write &lt;code&gt;TODO&lt;/code&gt; in your code and make it now!&lt;br /&gt;
&amp;gt; You&amp;rsquo;ll be surprised by the results.&lt;/p&gt; &amp;gt; You&amp;#8217;ll be surprised by the results.&lt;/p&gt;
&lt;p&gt;In short: &lt;p&gt;In short:
&amp;gt; &lt;strong&gt;Just do it!&lt;/strong&gt; ou &lt;strong&gt;Juste fait le&lt;/strong&gt; comme auraient dit les nuls.&lt;/p&gt; &amp;gt; &lt;strong&gt;Just do it!&lt;/strong&gt; ou &lt;strong&gt;Juste fait le&lt;/strong&gt; comme auraient dit les nuls.&lt;/p&gt;
&lt;p&gt;Finally I&amp;rsquo;ll certainly write blog post more often for a ...&lt;/p&gt;&lt;/p&gt;</content> &lt;p&gt;Finally I&amp;#8217;ll certainly write blog post more often for a ...&lt;/p&gt;&lt;/p&gt;</content>
</entry> </entry>
<entry> <entry>
<id>tag:yannesposito.com,2010-03-23:/Scratch/en/blog/2010-03-23-Encapsulate-git/</id> <id>tag:yannesposito.com,2010-03-23:/Scratch/en/blog/2010-03-23-Encapsulate-git/</id>
@ -1125,7 +1124,7 @@ clientB: project adapted for client B&lt;/p&gt;
&lt;p&gt;&lt;code&gt;git clone&lt;/code&gt; can only fetch the master branch.&lt;/p&gt; &lt;p&gt;&lt;code&gt;git clone&lt;/code&gt; can only fetch the master branch.&lt;/p&gt;
&lt;p&gt;If you don&amp;rsquo;t have much branches, you can simply use clone your project and then use the following command:&lt;/p&gt; &lt;p&gt;If you don&amp;#8217;t have much branches, you can simply use clone your project and then use the following command:&lt;/p&gt;
&lt;div&gt; &lt;div&gt;
@ -1183,7 +1182,7 @@ ext=File.extname(str)
<uri>yannesposito.com</uri> <uri>yannesposito.com</uri>
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/en/blog/2010-02-18-split-a-file-by-keyword/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/en/blog/2010-02-18-split-a-file-by-keyword/"/>
<content type="html">&lt;p&gt;Strangely enough, I didn&amp;rsquo;t find any built-in tool to split a file by keyword. I made one myself in &lt;code&gt;awk&lt;/code&gt;. I put it here mostly for myself. But it could also helps someone else. <content type="html">&lt;p&gt;Strangely enough, I didn&amp;#8217;t find any built-in tool to split a file by keyword. I made one myself in &lt;code&gt;awk&lt;/code&gt;. I put it here mostly for myself. But it could also helps someone else.
The following code split a file for each line containing the word &lt;code&gt;UTC&lt;/code&gt;.&lt;/p&gt; The following code split a file for each line containing the word &lt;code&gt;UTC&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt; &lt;div&gt;

View file

@ -59,7 +59,7 @@
<div class="intro"> <div class="intro">
<p><span class="sc"><abbr title="Trop long à lire">tlàl</abbr>&nbsp;: </span> Un exemple progressif d&rsquo;utilisation d&rsquo;Haskell. <p><span class="sc"><abbr title="Trop long à lire">tlàl</abbr>&nbsp;: </span> Un exemple progressif d&#8217;utilisation d&#8217;Haskell.
Vous pourrez voir un ensemble de Mandelbrot étendu à la troisième dimension. Vous pourrez voir un ensemble de Mandelbrot étendu à la troisième dimension.
De plus le code sera très propre. De plus le code sera très propre.
Les détails de rendu sont séparés dans un module externe. Les détails de rendu sont séparés dans un module externe.
@ -72,7 +72,7 @@ Vous pouvez vous inspirer de ce code utilisant le paradigme fonctional dans tous
<ul id="markdown-toc"> <ul id="markdown-toc">
<li><a href="#introduction">Introduction</a></li> <li><a href="#introduction">Introduction</a></li>
<li><a href="#first-version">First version</a> <ul> <li><a href="#first-version">First version</a> <ul>
<li><a href="#lets-play-the-song-of-our-people">Let&rsquo;s play the song of our people</a></li> <li><a href="#lets-play-the-song-of-our-people">Let&#8217;s play the song of our people</a></li>
<li><a href="#let-us-start">Let us start</a></li> <li><a href="#let-us-start">Let us start</a></li>
</ul> </ul>
</li> </li>
@ -157,7 +157,7 @@ We start cleaning the code at the 5<sup>th</sup> section.</p>
The first being mostly some boilerplate<sup id="fnref:011"><a href="#fn:011" rel="footnote">2</a></sup>. The first being mostly some boilerplate<sup id="fnref:011"><a href="#fn:011" rel="footnote">2</a></sup>.
And the second part more focused on OpenGL and content.</p> And the second part more focused on OpenGL and content.</p>
<h3 id="lets-play-the-song-of-our-people">Let&rsquo;s play the song of our people</h3> <h3 id="lets-play-the-song-of-our-people">Let&#8217;s play the song of our people</h3>
<div class="codehighlight"> <div class="codehighlight">
@ -393,7 +393,7 @@ It is a bit long before the first image appears, but if you resize the window, i
This property is a direct consequence of purity. This property is a direct consequence of purity.
If you look closely, you see that <code>allPoints</code> is a pure list. If you look closely, you see that <code>allPoints</code> is a pure list.
Therefore, calling <code>allPoints</code> will always render the same result and Haskell is clever enough to use this property. Therefore, calling <code>allPoints</code> will always render the same result and Haskell is clever enough to use this property.
While Haskell doesn&rsquo;t garbage collect <code>allPoints</code> the result is reused for free. While Haskell doesn&#8217;t garbage collect <code>allPoints</code> the result is reused for free.
We did not specified this value should be saved for later use. We did not specified this value should be saved for later use.
It is saved for us.</p> It is saved for us.</p>
@ -631,7 +631,7 @@ instead of using a 3D projection of quaternions.
I am pretty sure this construction is not useful for numbers. I am pretty sure this construction is not useful for numbers.
But it will be enough for us to create something that look nice.</p> But it will be enough for us to create something that look nice.</p>
<p>This section is quite long, but don&rsquo;t be afraid, <p>This section is quite long, but don&#8217;t be afraid,
most of the code is some OpenGL boilerplate. most of the code is some OpenGL boilerplate.
If you just want to skim this section, If you just want to skim this section,
here is a high level representation:</p> here is a high level representation:</p>
@ -647,7 +647,7 @@ here is a high level representation:</p>
<p>Drawing: </p> <p>Drawing: </p>
<ul> <ul>
<li>set doubleBuffer, handle depth, window size&hellip;</li> <li>set doubleBuffer, handle depth, window size&#8230;</li>
<li>Use state to apply some transformations</li> <li>Use state to apply some transformations</li>
</ul> </ul>
</li> </li>
@ -903,7 +903,7 @@ Mainly there are two parts: apply some transformations, draw the object.</p>
<h3 id="the-3d-mandelbrot">The 3D Mandelbrot</h3> <h3 id="the-3d-mandelbrot">The 3D Mandelbrot</h3>
<p>We have finished with the OpenGL section, let&rsquo;s talk about how we <p>We have finished with the OpenGL section, let&#8217;s talk about how we
generate the 3D points and colors. generate the 3D points and colors.
First, we will set the number of details to 200 pixels in the three dimensions.</p> First, we will set the number of details to 200 pixels in the three dimensions.</p>
@ -1017,7 +1017,7 @@ depthPoints = do
<p>If you prefer the first version, then just imagine how hard it will be to change the enumeration of the point from (x,y) to (x,z) for example.</p> <p>If you prefer the first version, then just imagine how hard it will be to change the enumeration of the point from (x,y) to (x,z) for example.</p>
<p>Also, we didn&rsquo;t searched for negative values. <p>Also, we didn&#8217;t searched for negative values.
This modified Mandelbrot is no more symmetric relatively to the plan <code>y=0</code>. This modified Mandelbrot is no more symmetric relatively to the plan <code>y=0</code>.
But it is symmetric relatively to the plan <code>z=0</code>. But it is symmetric relatively to the plan <code>z=0</code>.
Then I mirror these values. </p> Then I mirror these values. </p>
@ -1242,7 +1242,7 @@ ymandel x y z = mandel (2*x/width) (2*y/height) (2*z/deep) 64
</div> </div>
<p>This code is cleaner but many things doesn&rsquo;t feel right. <p>This code is cleaner but many things doesn&#8217;t feel right.
First, all the user interaction code is outside our main file. First, all the user interaction code is outside our main file.
I feel it is okay to hide the detail for the rendering. I feel it is okay to hide the detail for the rendering.
But I would have preferred to control the user actions.</p> But I would have preferred to control the user actions.</p>
@ -1276,12 +1276,12 @@ We will have two choices: </p>
</li> </li>
<li> <li>
<p>Our main problem come from user interaction. <p>Our main problem come from user interaction.
If you ask &ldquo;the Internet&rdquo;, If you ask &#8220;the Internet&#8221;,
about how to deal with user interaction with a functional paradigm, about how to deal with user interaction with a functional paradigm,
the main answer is to use <em>functional reactive programming</em> (FRP). the main answer is to use <em>functional reactive programming</em> (FRP).
I won&rsquo;t use FRP in this article. I won&#8217;t use FRP in this article.
Instead, I&rsquo;ll use a simpler while less effective way to deal with user interaction. Instead, I&#8217;ll use a simpler while less effective way to deal with user interaction.
But The method I&rsquo;ll use will be as pure and functional as possible.</p> But The method I&#8217;ll use will be as pure and functional as possible.</p>
</li> </li>
</ol> </ol>
@ -1303,7 +1303,7 @@ First, what the main loop should look like if we could make our own:</p>
<li>a function taking two parameters: time and world state and render a new world without user interaction.</li> <li>a function taking two parameters: time and world state and render a new world without user interaction.</li>
</ul> </ul>
<p>Here is a real working code, I&rsquo;ve hidden most display functions. <p>Here is a real working code, I&#8217;ve hidden most display functions.
The YGL, is a kind of framework to display 3D functions. The YGL, is a kind of framework to display 3D functions.
But it can easily be extended to many kind of representation.</p> But it can easily be extended to many kind of representation.</p>
@ -1523,7 +1523,7 @@ idleAction tnew world = world {
<p>Now the function which will generate points in 3D. <p>Now the function which will generate points in 3D.
The first parameter (<code>res</code>) is the resolution of the vertex generation. The first parameter (<code>res</code>) is the resolution of the vertex generation.
More precisely, <code>res</code> is distance between two points on one direction. More precisely, <code>res</code> is distance between two points on one direction.
We need it to &ldquo;close&rdquo; our shape.</p> We need it to &#8220;close&#8221; our shape.</p>
<p>The type <code>Function3D</code> is <code>Point -&gt; Point -&gt; Maybe Point</code>. <p>The type <code>Function3D</code> is <code>Point -&gt; Point -&gt; Maybe Point</code>.
Because we consider partial functions Because we consider partial functions
@ -1592,7 +1592,7 @@ ymandel x y z = fromIntegral (mandel x y z 64) / 64
</div> </div>
<p>I won&rsquo;t explain how the magic occurs here. <p>I won&#8217;t explain how the magic occurs here.
If you are interested, just read the file <a href="code/05_Mandelbulb/YGL.hs"><code>YGL.hs</code></a>. If you are interested, just read the file <a href="code/05_Mandelbulb/YGL.hs"><code>YGL.hs</code></a>.
It is commented a lot.</p> It is commented a lot.</p>
@ -1612,8 +1612,8 @@ It is commented a lot.</p>
<p>Our code architecture feel very clean. <p>Our code architecture feel very clean.
All the meaningful code is in our main file and all display details are All the meaningful code is in our main file and all display details are
externalized. externalized.
If you read the code of <code>YGL.hs</code>, you&rsquo;ll see I didn&rsquo;t made everything perfect. If you read the code of <code>YGL.hs</code>, you&#8217;ll see I didn&#8217;t made everything perfect.
For example, I didn&rsquo;t finished the code of the lights. For example, I didn&#8217;t finished the code of the lights.
But I believe it is a good first step and it will be easy to go further. But I believe it is a good first step and it will be easy to go further.
Unfortunately the program of the preceding session is extremely slow. Unfortunately the program of the preceding session is extremely slow.
We compute the Mandelbulb for each frame now.</p> We compute the Mandelbulb for each frame now.</p>
@ -1897,20 +1897,20 @@ ymandel x y z = fromIntegral (mandel x y z 64) / 64
<p>As we can use imperative style in a functional language, <p>As we can use imperative style in a functional language,
know you can use functional style in imperative languages. know you can use functional style in imperative languages.
This article exposed a way to organize some code in a functional way. This article exposed a way to organize some code in a functional way.
I&rsquo;d like to stress the usage of Haskell made it very simple to achieve this.</p> I&#8217;d like to stress the usage of Haskell made it very simple to achieve this.</p>
<p>Once you are used to pure functional style, <p>Once you are used to pure functional style,
it is hard not to see all advantages it offers.</p> it is hard not to see all advantages it offers.</p>
<p>The code in the two last sections is completely pure and functional. <p>The code in the two last sections is completely pure and functional.
Furthermore I don&rsquo;t use <code>GLfloat</code>, <code>Color3</code> or any other OpenGL type. Furthermore I don&#8217;t use <code>GLfloat</code>, <code>Color3</code> or any other OpenGL type.
If I want to use another library in the future, If I want to use another library in the future,
I would be able to keep all the pure code and simply update the YGL module.</p> I would be able to keep all the pure code and simply update the YGL module.</p>
<p>The <code>YGL</code> module can be seen as a &ldquo;wrapper&rdquo; around 3D display and user interaction. <p>The <code>YGL</code> module can be seen as a &#8220;wrapper&#8221; around 3D display and user interaction.
It is a clean separator between the imperative paradigm and functional paradigm.</p> It is a clean separator between the imperative paradigm and functional paradigm.</p>
<p>If you want to go further, it shouldn&rsquo;t be hard to add parallelism. <p>If you want to go further, it shouldn&#8217;t be hard to add parallelism.
This should be easy mainly because most of the visible code is pure. This should be easy mainly because most of the visible code is pure.
Such an optimization would have been harder by using directly the OpenGL library.</p> Such an optimization would have been harder by using directly the OpenGL library.</p>
@ -1920,7 +1920,7 @@ O(n².log(n)) to O(n³).</p>
<hr/><div class="footnotes"> <hr/><div class="footnotes">
<ol> <ol>
<li id="fn:001"> <li id="fn:001">
<p>Unfortunately, I couldn&rsquo;t make this program to work on my Mac. More precisely, I couldn&rsquo;t make the <a href="http://openil.sourceforge.net/">DevIL</a> library work on Mac to output the image. Yes I have done a <code>brew install libdevil</code>. But even a minimal program who simply write some <code>jpg</code> didn&rsquo;t worked. I tried both with <code>Haskell</code> and <code>C</code>.<a href="#fnref:001" rel="reference">&#8617;</a></p> <p>Unfortunately, I couldn&#8217;t make this program to work on my Mac. More precisely, I couldn&#8217;t make the <a href="http://openil.sourceforge.net/">DevIL</a> library work on Mac to output the image. Yes I have done a <code>brew install libdevil</code>. But even a minimal program who simply write some <code>jpg</code> didn&#8217;t worked. I tried both with <code>Haskell</code> and <code>C</code>.<a href="#fnref:001" rel="reference">&#8617;</a></p>
</li> </li>
<li id="fn:011"> <li id="fn:011">
<p>Generally in Haskell you need to declare a lot of import lines. <p>Generally in Haskell you need to declare a lot of import lines.

View file

@ -52,7 +52,7 @@ just continue to read as a standard web page.
&lt;div class="intro"&gt; &lt;div class="intro"&gt;
&lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt; Un exemple progressif d&amp;rsquo;utilisation d&amp;rsquo;Haskell. &lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt; Un exemple progressif d&amp;#8217;utilisation d&amp;#8217;Haskell.
Vous pourrez voir un ensemble de Mandelbrot &#233;tendu &#224; la troisi&#232;me dimension. Vous pourrez voir un ensemble de Mandelbrot &#233;tendu &#224; la troisi&#232;me dimension.
De plus le code sera tr&#232;s propre. De plus le code sera tr&#232;s propre.
Les d&#233;tails de rendu sont s&#233;par&#233;s dans un module externe. Les d&#233;tails de rendu sont s&#233;par&#233;s dans un module externe.
@ -117,7 +117,7 @@ We can all create better web typography ourselves, today.&#194;&#187;&lt;/p&gt;
&lt;p&gt;ou en fran&#195;&#167;ais&amp;nbsp;:&lt;/p&gt; &lt;p&gt;ou en fran&#195;&#167;ais&amp;nbsp;:&lt;/p&gt;
&lt;blockquote&gt; &lt;blockquote&gt;
&lt;p&gt;&#194;&#171;Nous ne somme pas oblig&#195;&#169; d&amp;rsquo;attendre le d&#195;&#169;veloppement des navigateurs. &lt;p&gt;&#194;&#171;Nous ne somme pas oblig&#195;&#169; d&amp;#8217;attendre le d&#195;&#169;veloppement des navigateurs.
Nous pouvons cr&#195;...&lt;/p&gt;&lt;/blockquote&gt;&lt;/img&gt;</content> Nous pouvons cr&#195;...&lt;/p&gt;&lt;/blockquote&gt;&lt;/img&gt;</content>
</entry> </entry>
<entry> <entry>
@ -141,7 +141,7 @@ Nous pouvons cr&#195;...&lt;/p&gt;&lt;/blockquote&gt;&lt;/img&gt;</content>
&lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt; Un tutoriel pour yesod, un framework web Haskell. &lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt; Un tutoriel pour yesod, un framework web Haskell.
Vous ne devriez pas avoir besoin de savoir programmer en Haskell. Vous ne devriez pas avoir besoin de savoir programmer en Haskell.
Par contre je suis d&#233;sol&#233; pour les francophones, Par contre je suis d&#233;sol&#233; pour les francophones,
mais je n&amp;rsquo;ai pas eu le courage de traduire cet article en Fran&#231;ais.&lt;/p&gt; mais je n&amp;#8217;ai pas eu le courage de traduire cet article en Fran&#231;ais.&lt;/p&gt;
&lt;blockquote&gt; &lt;blockquote&gt;
&lt;center&gt;&lt;span class="sc"&gt;&lt;b&gt;Table of content&lt;/b&gt;&lt;/span&gt;&lt;/center&gt; &lt;center&gt;&lt;span class="sc"&gt;&lt;b&gt;Table of content&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;
@ -167,13 +167,13 @@ mais je n&amp;rsquo;ai pas eu le courage de traduire cet article en Fran&#231;ai
&lt;div class="intro"&gt; &lt;div class="intro"&gt;
&lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt; Utiliser m4 pour accro&#238;tre le pouvoir d&amp;rsquo;&lt;span class="sc"&gt;xslt&lt;/span&gt; et d&amp;rsquo;&lt;span class="sc"&gt;svg&lt;/span&gt;. Example cool, les fractales.&lt;/p&gt; &lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt; Utiliser m4 pour accro&#238;tre le pouvoir d&amp;#8217;&lt;span class="sc"&gt;xslt&lt;/span&gt; et d&amp;#8217;&lt;span class="sc"&gt;svg&lt;/span&gt;. Example cool, les fractales.&lt;/p&gt;
&lt;/div&gt; &lt;/div&gt;
&lt;p&gt;Lorsqu&amp;rsquo;&lt;span class="sc"&gt;xml&lt;/span&gt; f&#251;t invent&#233; beaucoup pensaient que c&amp;rsquo;&#233;tait l&amp;rsquo;avenir. &lt;p&gt;Lorsqu&amp;#8217;&lt;span class="sc"&gt;xml&lt;/span&gt; f&#251;t invent&#233; beaucoup pensaient que c&amp;#8217;&#233;tait l&amp;#8217;avenir.
Passer de fichiers plat &#224; des fichiers structur&#233;s standardis&#233;s f&#251;t un grand progr&#232;s dans beaucoup de domaines. Passer de fichiers plat &#224; des fichiers structur&#233;s standardis&#233;s f&#251;t un grand progr&#232;s dans beaucoup de domaines.
Cerain se mirent &#224; voir du &lt;span class="sc"&gt;xml&lt;/span&gt; de partout. Cerain se mirent &#224; voir du &lt;span class="sc"&gt;xml&lt;/span&gt; de partout.
&#192; tel point que les les format compatibles &lt;span class="sc"&gt;xml&lt;/span&gt; naquirent de toute part. &#192; tel point que les les format compatibles &lt;span class="sc"&gt;xml&lt;/span&gt; naquirent de toute part.
@ -198,8 +198,8 @@ Non seulement comme format de fichier, mais...&lt;/p&gt;&lt;/img&gt;</content>
&lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Cela fait un moment que je suis la progression du &lt;a href="http://www.yesodweb.com"&gt;framework yesod&lt;/a&gt;. &lt;p&gt;Cela fait un moment que je suis la progression du &lt;a href="http://www.yesodweb.com"&gt;framework yesod&lt;/a&gt;.
&#192; mon humble avis on peut commencer &#224; l&amp;rsquo;utiliser pour des applications s&#233;rieuses (comprendre en prod). &#192; mon humble avis on peut commencer &#224; l&amp;#8217;utiliser pour des applications s&#233;rieuses (comprendre en prod).
Avant de vous dire pourquoi vous devriez aussi le consid&#233;rer, je pr&#233;f&#232;re vous parler de bonnes id&#233;es (parmi d&amp;rsquo;autres) introduites par yesod que je n&amp;rsquo;avais jamais vu ailleurs.&lt;/p&gt; Avant de vous dire pourquoi vous devriez aussi le consid&#233;rer, je pr&#233;f&#232;re vous parler de bonnes id&#233;es (parmi d&amp;#8217;autres) introduites par yesod que je n&amp;#8217;avais jamais vu ailleurs.&lt;/p&gt;
&lt;/div&gt; &lt;/div&gt;
@ -207,7 +207,7 @@ Avant de vous dire pourquoi vous devriez aussi le consid&#233;rer, je pr&#233;f&
&lt;h2 id="types-saufs"&gt;Types saufs&lt;/h2&gt; &lt;h2 id="types-saufs"&gt;Types saufs&lt;/h2&gt;
&lt;p&gt;Commen&#231;ons par une BD d&amp;rsquo;&lt;a href="http://xkcd.com"&gt;xkcd&lt;/a&gt;&amp;nbsp;:&lt;/p&gt; &lt;p&gt;Commen&#231;ons par une BD d&amp;#8217;&lt;a href="http://xkcd.com"&gt;xkcd&lt;/a&gt;&amp;nbsp;:&lt;/p&gt;
&lt;/img&gt;</content> &lt;/img&gt;</content>
</entry> </entry>
@ -269,7 +269,7 @@ $ mapa '$1*2' {1..3...&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/img&gt;</content
&lt;div class="intro"&gt; &lt;div class="intro"&gt;
&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt; Mon avis succinct et hautement subjectif concernant les diff&#233;rents languages de programmation que j&amp;rsquo;ai utilis&#233;. &lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt; Mon avis succinct et hautement subjectif concernant les diff&#233;rents languages de programmation que j&amp;#8217;ai utilis&#233;.
&lt;/div&gt; &lt;/div&gt;
@ -282,8 +282,8 @@ $ mapa '$1*2' {1..3...&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/img&gt;</content
Je devais avoir 10-11 ans. Je devais avoir 10-11 ans.
Sous &lt;code&gt;MO5&lt;/code&gt;, &lt;code&gt;Amstrad CPC 6128&lt;/code&gt; et m&#234;me &lt;code&gt;Atari STe&lt;/code&gt;. Sous &lt;code&gt;MO5&lt;/code&gt;, &lt;code&gt;Amstrad CPC 6128&lt;/code&gt; et m&#234;me &lt;code&gt;Atari STe&lt;/code&gt;.
Le langage des &lt;code&gt;GOTO&lt;/code&gt;s. Le langage des &lt;code&gt;GOTO&lt;/code&gt;s.
Je suis empleint de nostalgie rien que d&amp;rsquo;y penser. Je suis empleint de nostalgie rien que d&amp;#8217;y penser.
C&amp;rsquo;est &#224; peu pr&#234;t le seul int&#233;r&#234;t de ce langage.&lt;/p&gt; C&amp;#8217;est &#224; peu pr&#234;t le seul int&#233;r&#234;t de ce langage.&lt;/p&gt;
...&lt;/img&gt;&lt;/img&gt;</content> ...&lt;/img&gt;&lt;/img&gt;</content>
</entry> </entry>
@ -309,7 +309,7 @@ C&amp;rsquo;est &#224; peu pr&#234;t le seul int&#233;r&#234;t de ce langage.&lt
&lt;/div&gt; &lt;/div&gt;
&lt;p&gt;&lt;a href="http://www.vim.org"&gt;Vim&lt;/a&gt; ou l&amp;rsquo;&#233;diteur qui vallait 3 milliards&amp;nbsp;:&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.vim.org"&gt;Vim&lt;/a&gt; ou l&amp;#8217;&#233;diteur qui vallait 3 milliards&amp;nbsp;:&lt;/p&gt;
&lt;blockquote&gt; &lt;blockquote&gt;
&lt;p&gt;Meilleur, plus fort, plus rapide.&lt;/p&gt; &lt;p&gt;Meilleur, plus fort, plus rapide.&lt;/p&gt;
@ -329,11 +329,11 @@ Sa prise en mais est difficile, mais payante....&lt;/p&gt;&lt;/img&gt;</content>
<uri>yannesposito.com</uri> <uri>yannesposito.com</uri>
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/A-more-convenient-diff/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/A-more-convenient-diff/"/>
<content type="html">&lt;p&gt;&lt;code&gt;diff&lt;/code&gt; est un utilitaire tr&#232;s pratique, mais il n&amp;rsquo;est pas facile &#224; lire pour nous, les Hommes.&lt;/p&gt; <content type="html">&lt;p&gt;&lt;code&gt;diff&lt;/code&gt; est un utilitaire tr&#232;s pratique, mais il n&amp;#8217;est pas facile &#224; lire pour nous, les Hommes.&lt;/p&gt;
&lt;p&gt;C&amp;rsquo;est pourquoi, lorsque vous utilisez &lt;code&gt;git&lt;/code&gt;, il vous montre un formatage plus agr&#233;able avec des couleurs.&lt;/p&gt; &lt;p&gt;C&amp;#8217;est pourquoi, lorsque vous utilisez &lt;code&gt;git&lt;/code&gt;, il vous montre un formatage plus agr&#233;able avec des couleurs.&lt;/p&gt;
&lt;p&gt;Voici le script que j&amp;rsquo;utilise lorsque je veux avoir un &lt;code&gt;diff&lt;/code&gt; &#224; la git.&lt;/p&gt; &lt;p&gt;Voici le script que j&amp;#8217;utilise lorsque je veux avoir un &lt;code&gt;diff&lt;/code&gt; &#224; la git.&lt;/p&gt;
&lt;div class="codefile"&gt;&lt;a href="/Scratch/fr/blog/A-more-convenient-diff/code/ydiff"&gt;&amp;#x27A5; ydiff&lt;/a&gt;&lt;/div&gt; &lt;div class="codefile"&gt;&lt;a href="/Scratch/fr/blog/A-more-convenient-diff/code/ydiff"&gt;&amp;#x27A5; ydiff&lt;/a&gt;&lt;/div&gt;
@ -361,7 +361,7 @@ function colorize_diff {
<uri>yannesposito.com</uri> <uri>yannesposito.com</uri>
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/Haskell-Mandelbrot/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/Haskell-Mandelbrot/"/>
<content type="html">&lt;p&gt;Voici le code &amp;ldquo;obfusqu&#233;&amp;rdquo;&amp;nbsp;:&lt;/p&gt; <content type="html">&lt;p&gt;Voici le code &amp;#8220;obfusqu&#233;&amp;#8221;&amp;nbsp;:&lt;/p&gt;
&lt;div class="codefile"&gt;&lt;a href="/Scratch/fr/blog/Haskell-Mandelbrot/code/animandel.hs"&gt;&amp;#x27A5; animandel.hs&lt;/a&gt;&lt;/div&gt; &lt;div class="codefile"&gt;&lt;a href="/Scratch/fr/blog/Haskell-Mandelbrot/code/animandel.hs"&gt;&amp;#x27A5; animandel.hs&lt;/a&gt;&lt;/div&gt;
@ -390,19 +390,19 @@ main ...&lt;/code&gt;&lt;/pre&gt;</content>
&lt;div class="intro"&gt; &lt;div class="intro"&gt;
&lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt; Une m&#233;thode de gestion des mots de passes que j&amp;rsquo;utilise avec succ&#232;s depuis quelques ann&#233;es.&lt;br /&gt; &lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt; Une m&#233;thode de gestion des mots de passes que j&amp;#8217;utilise avec succ&#232;s depuis quelques ann&#233;es.&lt;br /&gt;
&lt;strong&gt;&lt;code&gt;sha1( mot_de_passe + nom_de_domaine )&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt; &lt;strong&gt;&lt;code&gt;sha1( mot_de_passe + nom_de_domaine )&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;
Je ne m&#233;morise qu&amp;rsquo;un seul mot de passe de tr&#232;s bonne qualit&#233;. Je ne m&#233;morise qu&amp;#8217;un seul mot de passe de tr&#232;s bonne qualit&#233;.
J&amp;rsquo;utilise des mots de passe diff&#233;rents sur tous les sites.&lt;/p&gt; J&amp;#8217;utilise des mots de passe diff&#233;rents sur tous les sites.&lt;/p&gt;
&lt;/div&gt; &lt;/div&gt;
&lt;p&gt;Avant de commencer, je tiens &#224; pr&#233;ciser qu&amp;rsquo;il s&amp;rsquo;agit d&amp;rsquo;une tentative de vous vendre mon appli iPhone&amp;nbsp;;-).&lt;/p&gt; &lt;p&gt;Avant de commencer, je tiens &#224; pr&#233;ciser qu&amp;#8217;il s&amp;#8217;agit d&amp;#8217;une tentative de vous vendre mon appli iPhone&amp;nbsp;;-).&lt;/p&gt;
&lt;p&gt;Vous &#234;tes toujours l&#224;&amp;nbsp;? &lt;p&gt;Vous &#234;tes toujours l&#224;&amp;nbsp;?
Bon, d&amp;rsquo;accord, m&#234;me si vous ne t&#233;l&#233;chargez pas mon application vous pouvez quand m&#234;me utiliser ma ...&lt;/p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/img&gt;</content> Bon, d&amp;#8217;accord, m&#234;me si vous ne t&#233;l&#233;chargez pas mon application vous pouvez quand m&#234;me utiliser ma ...&lt;/p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/img&gt;</content>
</entry> </entry>
<entry> <entry>
<id>tag:yannesposito.com,2011-04-20:/Scratch/fr/blog/2011-04-20-Now-hosted-on-github/</id> <id>tag:yannesposito.com,2011-04-20:/Scratch/fr/blog/2011-04-20-Now-hosted-on-github/</id>
@ -416,7 +416,7 @@ Bon, d&amp;rsquo;accord, m&#234;me si vous ne t&#233;l&#233;chargez pas mon appl
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2011-04-20-Now-hosted-on-github/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2011-04-20-Now-hosted-on-github/"/>
<content type="html">&lt;img alt="Title image" src="/Scratch/img/blog/2011-04-20-Now-hosted-on-github/main.png" /&gt; <content type="html">&lt;img alt="Title image" src="/Scratch/img/blog/2011-04-20-Now-hosted-on-github/main.png" /&gt;
&lt;p&gt;J&amp;rsquo;h&#233;berge mon site sur github &#224; partir d&amp;rsquo;aujourd&amp;rsquo;hui.&lt;/p&gt; &lt;p&gt;J&amp;#8217;h&#233;berge mon site sur github &#224; partir d&amp;#8217;aujourd&amp;#8217;hui.&lt;/p&gt;
&lt;/img&gt;</content> &lt;/img&gt;</content>
</entry> </entry>
<entry> <entry>
@ -435,9 +435,9 @@ Bon, d&amp;rsquo;accord, m&#234;me si vous ne t&#233;l&#233;chargez pas mon appl
&lt;div class="encadre"&gt; &lt;div class="encadre"&gt;
&lt;p&gt;&lt;em&gt;Mise &#224; jour&amp;nbsp;:&lt;/em&gt; Je pense que je vais finallement changer d&amp;rsquo;avis. &lt;p&gt;&lt;em&gt;Mise &#224; jour&amp;nbsp;:&lt;/em&gt; Je pense que je vais finallement changer d&amp;#8217;avis.
Pourquoi&amp;nbsp;? Pourquoi&amp;nbsp;?
Tout d&amp;rsquo;abord, je viens de d&#233;couvrir un convertisseur javascript vers coffeescript, ensuite Denis Knauf m&amp;rsquo;a laiss&#233; un commentaire et m&amp;rsquo;a appris l&amp;rsquo;existence d&amp;rsquo;une fonction &lt;code&gt;CoffeeScript.eval&lt;/code&gt;. De plus, il faut voir CoffeeScript comme javascript avec une syntaxe similaire &#224; Ruby et pas comme un langage similaire &#224; Ruby.&lt;/p&gt; Tout d&amp;#8217;abord, je viens de d&#233;couvrir un convertisseur javascript vers coffeescript, ensuite Denis Knauf m&amp;#8217;a laiss&#233; un commentaire et m&amp;#8217;a appris l&amp;#8217;existence d&amp;#8217;une fonction &lt;code&gt;CoffeeScript.eval&lt;/code&gt;. De plus, il faut voir CoffeeScript comme javascript avec une syntaxe similaire &#224; Ruby et pas comme un langage similaire &#224; Ruby.&lt;/p&gt;
&lt;/div&gt; &lt;/div&gt;
@ -447,7 +447,7 @@ Tout d&amp;rsquo;abord, je viens de d&#233;couvrir un convertisseur javascript v
&lt;div class="intro"&gt; &lt;div class="intro"&gt;
&lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt; Qu&amp;rsquo;est-ce qui n&amp;rsquo;allait pas avec Coffeescript? La meta-programmation, ...&lt;/p&gt;&lt;/div&gt;&lt;/img&gt;</content> &lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt; Qu&amp;#8217;est-ce qui n&amp;#8217;allait pas avec Coffeescript? La meta-programmation, ...&lt;/p&gt;&lt;/div&gt;&lt;/img&gt;</content>
</entry> </entry>
<entry> <entry>
<id>tag:yannesposito.com,2011-01-01:/Scratch/fr/blog/2011-01-03-Happy-New-Year/</id> <id>tag:yannesposito.com,2011-01-01:/Scratch/fr/blog/2011-01-03-Happy-New-Year/</id>
@ -461,15 +461,15 @@ Tout d&amp;rsquo;abord, je viens de d&#233;couvrir un convertisseur javascript v
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2011-01-03-Happy-New-Year/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2011-01-03-Happy-New-Year/"/>
<content type="html">&lt;p&gt;Bonne et heureuse ann&#233;e&amp;nbsp;!&lt;/p&gt; <content type="html">&lt;p&gt;Bonne et heureuse ann&#233;e&amp;nbsp;!&lt;/p&gt;
&lt;p&gt;J&amp;rsquo;&#233;tais tr&#232;s occup&#233; ces derniers mois. &lt;p&gt;J&amp;#8217;&#233;tais tr&#232;s occup&#233; ces derniers mois.
Maintenant il me semble que je vais pouvoir faire revivre ce blog.&lt;/p&gt; Maintenant il me semble que je vais pouvoir faire revivre ce blog.&lt;/p&gt;
&lt;p&gt;J&amp;rsquo;ai fait un outil qui permet d&amp;rsquo;&#233;crire des livre en utilisant une syntaxe proche de markdown. &lt;p&gt;J&amp;#8217;ai fait un outil qui permet d&amp;#8217;&#233;crire des livre en utilisant une syntaxe proche de markdown.
C&amp;rsquo;est un markdown avec des macros (essentiel pour les textes longs). C&amp;#8217;est un markdown avec des macros (essentiel pour les textes longs).
De plus le syst&#232;me g&#232;re la g&#233;n&#233;ration de pages HTML ainsi que du PDF engendr&#233; avec du XeLaTeX. De plus le syst&#232;me g&#232;re la g&#233;n&#233;ration de pages HTML ainsi que du PDF engendr&#233; avec du XeLaTeX.
Je n&amp;rsquo;en ai pas encore termin&#233; avec &#231;a. Mais si je tarde trop, je communiquerai lorsque j&amp;rsquo;aurai fini le minimum.&lt;/p&gt; Je n&amp;#8217;en ai pas encore termin&#233; avec &#231;a. Mais si je tarde trop, je communiquerai lorsque j&amp;#8217;aurai fini le minimum.&lt;/p&gt;
&lt;p&gt;J&amp;rsquo;ai &#233;crit un framework MVC pour application javascript simple mais n&#233;anmoins tr&#232;s rapide.&lt;/p&gt; &lt;p&gt;J&amp;#8217;ai &#233;crit un framework MVC pour application javascript simple mais n&#233;anmoins tr&#232;s rapide.&lt;/p&gt;
&lt;p&gt;Meilleurs v&#339;ux &#224; tous&amp;nbsp;!&lt;/p&gt; &lt;p&gt;Meilleurs v&#339;ux &#224; tous&amp;nbsp;!&lt;/p&gt;
</content> </content>
@ -488,14 +488,14 @@ Je n&amp;rsquo;en ai pas encore termin&#233; avec &#231;a. Mais si je tarde trop
&lt;div class="intro"&gt; &lt;div class="intro"&gt;
&lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt; J&amp;rsquo;ai fait un syst&#232;me simple de macros pour mon blog. Par exemple, il me suffit d&amp;rsquo;&#233;crire %&lt;span&gt;&lt;/span&gt;latex et &#231;a affiche &lt;span style="text-transform: uppercase"&gt;L&lt;sup style="vertical-align: 0.15em; margin-left: -0.36em; margin-right: -0.15em; font-size: .85em"&gt;a&lt;/sup&gt;T&lt;sub style="vertical-align: -0.5ex; margin-left: -0.1667em; margin-right: -0.125em; font-size: 1em"&gt;e&lt;/sub&gt;X&lt;/span&gt;.&lt;/p&gt; &lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt; J&amp;#8217;ai fait un syst&#232;me simple de macros pour mon blog. Par exemple, il me suffit d&amp;#8217;&#233;crire %&lt;span&gt;&lt;/span&gt;latex et &#231;a affiche &lt;span style="text-transform: uppercase"&gt;L&lt;sup style="vertical-align: 0.15em; margin-left: -0.36em; margin-right: -0.15em; font-size: .85em"&gt;a&lt;/sup&gt;T&lt;sub style="vertical-align: -0.5ex; margin-left: -0.1667em; margin-right: -0.125em; font-size: 1em"&gt;e&lt;/sub&gt;X&lt;/span&gt;.&lt;/p&gt;
&lt;/div&gt; &lt;/div&gt;
&lt;p&gt;J&amp;rsquo;ai ajouter un syst&#232;me de macro pour mon syst&#232;me de blog. &lt;p&gt;J&amp;#8217;ai ajouter un syst&#232;me de macro pour mon syst&#232;me de blog.
Lorsqu&amp;rsquo;on est habitu&#233; &#224; &lt;span style="text-transform: uppercase"&gt;L&lt;sup style="vertical-align: 0.15em; margin-left: -0.36em; margin-right: -0.15em; font-size: .85em"&gt;a&lt;/sup&gt;T&lt;/span&gt;&lt;/p&gt;</content> Lorsqu&amp;#8217;on est habitu&#233; &#224; &lt;span style="text-transform: uppercase"&gt;L&lt;sup style="vertical-align: 0.15em; margin-left: -0.36em; margin-right: -0.15em; font-size: .85em"&gt;a&lt;/sup&gt;T&lt;/span&gt;&lt;/p&gt;</content>
</entry> </entry>
<entry> <entry>
<id>tag:yannesposito.com,2010-10-14:/Scratch/fr/blog/2010-10-14-Fun-with-wav/</id> <id>tag:yannesposito.com,2010-10-14:/Scratch/fr/blog/2010-10-14-Fun-with-wav/</id>
@ -519,10 +519,10 @@ Lorsqu&amp;rsquo;on est habitu&#233; &#224; &lt;span style="text-transform: uppe
&lt;/div&gt; &lt;/div&gt;
&lt;p&gt;J&amp;rsquo;ai eu besoin de calculer la somme des valeurs absolue des donn&#233;es d&amp;rsquo;un fichier &lt;code&gt;wav&lt;/code&gt;. &lt;p&gt;J&amp;#8217;ai eu besoin de calculer la somme des valeurs absolue des donn&#233;es d&amp;#8217;un fichier &lt;code&gt;wav&lt;/code&gt;.
Pour des raison d&amp;rsquo;efficacit&#233; (et aussi de fun), j&amp;rsquo;ai fait le programme en &lt;code&gt;C&lt;/code&gt;.&lt;/p&gt; Pour des raison d&amp;#8217;efficacit&#233; (et aussi de fun), j&amp;#8217;ai fait le programme en &lt;code&gt;C&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Cel&#224; faisait longtemps que je n&amp;rsquo;avais pas programm&#233; en &lt;code&gt;C&lt;/code&gt;. &lt;p&gt;Cel&#224; faisait longtemps que je n&amp;#8217;avais pas programm&#233; en &lt;code&gt;C&lt;/code&gt;.
De m&#233;moire il &#233;tait peu ais&#233; de manipuler des ...&lt;/p&gt;</content> De m&#233;moire il &#233;tait peu ais&#233; de manipuler des ...&lt;/p&gt;</content>
</entry> </entry>
<entry> <entry>
@ -547,16 +547,16 @@ De m&#233;moire il &#233;tait peu ais&#233; de manipuler des ...&lt;/p&gt;</cont
&lt;li&gt;R&#233;cup&#233;rez un certificat sign&#233; par une AC: &lt;a href="http://www.instantssl.com/ssl-certificate-products/free-email-certificate.html"&gt;cliquez ici pour un certificat gratuit&lt;/a&gt;&amp;nbsp;;&lt;/li&gt; &lt;li&gt;R&#233;cup&#233;rez un certificat sign&#233; par une AC: &lt;a href="http://www.instantssl.com/ssl-certificate-products/free-email-certificate.html"&gt;cliquez ici pour un certificat gratuit&lt;/a&gt;&amp;nbsp;;&lt;/li&gt;
&lt;li&gt;ouvrez le fichier&amp;nbsp;;&lt;/li&gt; &lt;li&gt;ouvrez le fichier&amp;nbsp;;&lt;/li&gt;
&lt;li&gt;supprimer le fichier en mode s&#233;curis&#233;&amp;nbsp;;&lt;/li&gt; &lt;li&gt;supprimer le fichier en mode s&#233;curis&#233;&amp;nbsp;;&lt;/li&gt;
&lt;li&gt;utilisez Mail plut&#244;t que l&amp;rsquo;interface web de gmail.&lt;/li&gt; &lt;li&gt;utilisez Mail plut&#244;t que l&amp;#8217;interface web de gmail.&lt;/li&gt;
&lt;/ul&gt; &lt;/ul&gt;
&lt;/div&gt; &lt;/div&gt;
&lt;p&gt;J&amp;rsquo;ai (re)d&#233;couvert comment adoptez la norme S/MIME. &lt;p&gt;J&amp;#8217;ai (re)d&#233;couvert comment adoptez la norme S/MIME.
J&amp;rsquo;ai &#233;t&#233; surpris de voir &#224; quel point ce fut ais&#233;. J&amp;#8217;ai &#233;t&#233; surpris de voir &#224; quel point ce fut ais&#233;.
Il y a seulement quelques ann&#233;es c&amp;rsquo;&#233;...&lt;/p&gt;&lt;/img&gt;</content> Il y a seulement quelques ann&#233;es c&amp;#8217;&#233;...&lt;/p&gt;&lt;/img&gt;</content>
</entry> </entry>
<entry> <entry>
<id>tag:yannesposito.com,2010-10-06:/Scratch/fr/blog/2010-10-06-New-Blog-Design-Constraints/</id> <id>tag:yannesposito.com,2010-10-06:/Scratch/fr/blog/2010-10-06-New-Blog-Design-Constraints/</id>
@ -568,15 +568,15 @@ Il y a seulement quelques ann&#233;es c&amp;rsquo;&#233;...&lt;/p&gt;&lt;/img&gt
<uri>yannesposito.com</uri> <uri>yannesposito.com</uri>
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-10-06-New-Blog-Design-Constraints/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-10-06-New-Blog-Design-Constraints/"/>
<content type="html">&lt;p&gt;Vous avez pu constater que j&amp;rsquo;ai modifi&#233; le design de mon blog. <content type="html">&lt;p&gt;Vous avez pu constater que j&amp;#8217;ai modifi&#233; le design de mon blog.
Maintenant il doit &#234;tre beaucoup plus l&#233;ger qu&amp;rsquo;avant. Maintenant il doit &#234;tre beaucoup plus l&#233;ger qu&amp;#8217;avant.
Je n&amp;rsquo;utilise plus de CSS3 et beaucoup moins de javascript. Je n&amp;#8217;utilise plus de CSS3 et beaucoup moins de javascript.
Bien entendu, m&#234;me avant, mes pages &#233;taient parfaitement lisibles sans javascript. Bien entendu, m&#234;me avant, mes pages &#233;taient parfaitement lisibles sans javascript.
Mais, je me suis aper&#231;u que les syst&#232;mes de CSS3 sont loin d&amp;rsquo;&#234;tre au point. Mais, je me suis aper&#231;u que les syst&#232;mes de CSS3 sont loin d&amp;#8217;&#234;tre au point.
J&amp;rsquo;utilisait des gradient en CSS3, ainsi que des ombres sous le texte. &#199;a avait un rendu tr&#232;s sympa. Sauf&amp;hellip; J&amp;#8217;utilisait des gradient en CSS3, ainsi que des ombres sous le texte. &#199;a avait un rendu tr&#232;s sympa. Sauf&amp;#8230;
Ce n&amp;rsquo;&#233;tait pas compatible ie6, sous Chrome le rendu &#233;tait d&amp;rsquo;une lenteur incroyable. Ce n&amp;#8217;&#233;tait pas compatible ie6, sous Chrome le rendu &#233;tait d&amp;#8217;une lenteur incroyable.
J&amp;rsquo;ai donc d&#233;cid&#233; de faire un site &#224; minima. J&amp;#8217;ai donc d&#233;cid&#233; de faire un site &#224; minima.
Je voulais qu&amp;rsquo;il soit joli &lt;em&gt;et&lt;/em&gt; le plus simple possible pour assurer sa compatibilit&#233;. Je voulais qu&amp;#8217;il soit joli &lt;em&gt;et&lt;/em&gt; le plus simple possible pour assurer sa compatibilit&#233;.
Les r&#232;gles que je me suis fix&#233;es sont donc:&lt;/p&gt; Les r&#232;gles que je me suis fix&#233;es sont donc:&lt;/p&gt;
</content> </content>
@ -591,14 +591,14 @@ Les r&#232;gles que je me suis fix&#233;es sont donc:&lt;/p&gt;
<uri>yannesposito.com</uri> <uri>yannesposito.com</uri>
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-09-02-Use-git-to-calculate-trusted-mtimes/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-09-02-Use-git-to-calculate-trusted-mtimes/"/>
<content type="html">&lt;p&gt;Vous pouvez remarquer qu&amp;rsquo;&#224; la fin de chaque page je donne une date de derni&#232;re modification. <content type="html">&lt;p&gt;Vous pouvez remarquer qu&amp;#8217;&#224; la fin de chaque page je donne une date de derni&#232;re modification.
Pr&#233;c&#233;demment cette date &#233;tait calcul&#233;e en utilisant la date du fichier. Pr&#233;c&#233;demment cette date &#233;tait calcul&#233;e en utilisant la date du fichier.
Mais il arrive fr&#233;quemment que je fasse un &lt;code&gt;touch&lt;/code&gt; d&amp;rsquo;un fichier pour engendrer tout le site de nouveau. Mais il arrive fr&#233;quemment que je fasse un &lt;code&gt;touch&lt;/code&gt; d&amp;#8217;un fichier pour engendrer tout le site de nouveau.
Donc la date n&amp;rsquo;est pas n&#233;cessairement la &lt;em&gt;vraie&lt;/em&gt; de modification du contenue.&lt;/p&gt; Donc la date n&amp;#8217;est pas n&#233;cessairement la &lt;em&gt;vraie&lt;/em&gt; de modification du contenue.&lt;/p&gt;
&lt;p&gt;J&amp;rsquo;utilise &lt;a href="http://git-scm.org"&gt;git&lt;/a&gt; pour &lt;em&gt;versionner&lt;/em&gt; mon site web. &lt;p&gt;J&amp;#8217;utilise &lt;a href="http://git-scm.org"&gt;git&lt;/a&gt; pour &lt;em&gt;versionner&lt;/em&gt; mon site web.
Et cet outil me permet de r&#233;cup&#233;rer la derni&#232;re date de &lt;em&gt;vraie&lt;/em&gt; modification d&amp;rsquo;un fichier. Et cet outil me permet de r&#233;cup&#233;rer la derni&#232;re date de &lt;em&gt;vraie&lt;/em&gt; modification d&amp;#8217;un fichier.
Voici comment je m&amp;rsquo;y prend avec &lt;a href="http://nanoc.stoneship.org"&gt;nanoc&lt;/a&gt;&amp;nbsp;:&lt;/p&gt; Voici comment je m&amp;#8217;y prend avec &lt;a href="http://nanoc.stoneship.org"&gt;nanoc&lt;/a&gt;&amp;nbsp;:&lt;/p&gt;
&lt;div class="codefile"&gt;&lt;/div&gt;</content> &lt;div class="codefile"&gt;&lt;/div&gt;</content>
</entry> </entry>
@ -612,10 +612,10 @@ Voici comment je m&amp;rsquo;y prend avec &lt;a href="http://nanoc.stoneship.org
<uri>yannesposito.com</uri> <uri>yannesposito.com</uri>
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-09-02-base64-and-sha1-on-iPhone/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-09-02-base64-and-sha1-on-iPhone/"/>
<content type="html">&lt;p&gt;Allons directement &#224; l&amp;rsquo;essentiel&amp;nbsp;: <content type="html">&lt;p&gt;Allons directement &#224; l&amp;#8217;essentiel&amp;nbsp;:
voici deux fonctions &#224; int&#233;grer &#224; votre application iPhone pour afficher l&amp;rsquo;encodage en base64 ou en hexadecimal du hash sha1 d&amp;rsquo;un string en Objective-C pour iPhone.&lt;/p&gt; voici deux fonctions &#224; int&#233;grer &#224; votre application iPhone pour afficher l&amp;#8217;encodage en base64 ou en hexadecimal du hash sha1 d&amp;#8217;un string en Objective-C pour iPhone.&lt;/p&gt;
&lt;p&gt;Pour l&amp;rsquo;usage c&amp;rsquo;est tr&#232;s simple, copiez le code dans la classe de votre choix. &lt;p&gt;Pour l&amp;#8217;usage c&amp;#8217;est tr&#232;s simple, copiez le code dans la classe de votre choix.
Puis&amp;nbsp;:&lt;/p&gt; Puis&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;&lt;code class="objective-c"&gt;#import &amp;lt;CommonCrypto/CommonDigest.h&amp;gt; &lt;pre&gt;&lt;code class="objective-c"&gt;#import &amp;lt;CommonCrypto/CommonDigest.h&amp;gt;
@ -625,8 +625,8 @@ NSString *b64_hash = [self b64_sha1:@"some NSString to be sha1'ed"];
NSString *hex_hash = [self hex_sha1:@"some NSString to be sha1'ed"]; NSString *hex_hash = [self hex_sha1:@"some NSString to be sha1'ed"];
&lt;/code&gt;&lt;/pre&gt; &lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;L&amp;rsquo;algorithme pour l&amp;rsquo;encodage en &lt;code&gt;base64&lt;/code&gt; doit &#234;tre programm&#233; sur iPhone. &lt;p&gt;L&amp;#8217;algorithme pour l&amp;#8217;encodage en &lt;code&gt;base64&lt;/code&gt; doit &#234;tre programm&#233; sur iPhone.
Il n&amp;rsquo;y a pas de librairie officielle qui s&amp;rsquo;occupe de &#231;a.&lt;/p&gt; Il n&amp;#8217;y a pas de librairie officielle qui s&amp;#8217;occupe de &#231;a.&lt;/p&gt;
&lt;div class="codefile"&gt;&lt;/div&gt;</content> &lt;div class="codefile"&gt;&lt;/div&gt;</content>
</entry> </entry>
@ -640,19 +640,19 @@ Il n&amp;rsquo;y a pas de librairie officielle qui s&amp;rsquo;occupe de &#231;a
<uri>yannesposito.com</uri> <uri>yannesposito.com</uri>
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-08-31-send-mail-from-command-line-with-attached-file/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-08-31-send-mail-from-command-line-with-attached-file/"/>
<content type="html">&lt;p&gt;J&amp;rsquo;ai d&#251; envoyer un mail en ligne de commande r&#233;cemment. <content type="html">&lt;p&gt;J&amp;#8217;ai d&#251; envoyer un mail en ligne de commande r&#233;cemment.
Quelle ne f&#251;t pas ma surprise lorsque je constatais que ce n&amp;rsquo;&#233;tait vraiment pas &#233;vident. Quelle ne f&#251;t pas ma surprise lorsque je constatais que ce n&amp;#8217;&#233;tait vraiment pas &#233;vident.
Je n&amp;rsquo;avais ni &lt;code&gt;pine&lt;/code&gt; ni &lt;code&gt;mutt&lt;/code&gt;. Seulement &lt;code&gt;mail&lt;/code&gt; et &lt;code&gt;mailx&lt;/code&gt;.&lt;/p&gt; Je n&amp;#8217;avais ni &lt;code&gt;pine&lt;/code&gt; ni &lt;code&gt;mutt&lt;/code&gt;. Seulement &lt;code&gt;mail&lt;/code&gt; et &lt;code&gt;mailx&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Ce qu&amp;rsquo;on trouve sur internet pour envoyer un mail avec fichier attach&#233; c&amp;rsquo;est &#231;a&amp;nbsp;:&lt;/p&gt; &lt;p&gt;Ce qu&amp;#8217;on trouve sur internet pour envoyer un mail avec fichier attach&#233; c&amp;#8217;est &#231;a&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;&lt;code class="zsh"&gt;uuencode fic.jpg fic.jpg | mail -s 'Subject' &lt;pre&gt;&lt;code class="zsh"&gt;uuencode fic.jpg fic.jpg | mail -s 'Subject'
&lt;/code&gt;&lt;/pre&gt; &lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Bon, alors, b&#234;te et disciplin&#233; j&amp;rsquo;ai essay&#233;. &lt;p&gt;Bon, alors, b&#234;te et disciplin&#233; j&amp;#8217;ai essay&#233;.
Et bien, &#231;a marche &lt;em&gt;presque&lt;/em&gt; tout le temps. Et bien, &#231;a marche &lt;em&gt;presque&lt;/em&gt; tout le temps.
Pour mon fichier &#231;a n&amp;rsquo;a pas march&#233; du tout. Pour mon fichier &#231;a n&amp;#8217;a pas march&#233; du tout.
Je l&amp;rsquo;ai compress&#233; au format &lt;code&gt;.gz&lt;/code&gt;, &lt;code&gt;.bz2&lt;/code&gt; et &lt;code&gt;.zip&lt;/code&gt;. Je l&amp;#8217;ai compress&#233; au format &lt;code&gt;.gz&lt;/code&gt;, &lt;code&gt;.bz2&lt;/code&gt; et &lt;code&gt;.zip&lt;/code&gt;.
Avec le format &lt;code&gt;.bz2&lt;/code&gt; le mail re&#231;u avait bien un fichie...&lt;/p&gt;</content> Avec le format &lt;code&gt;.bz2&lt;/code&gt; le mail re&#231;u avait bien un fichie...&lt;/p&gt;</content>
</entry> </entry>
<entry> <entry>
@ -667,14 +667,14 @@ Avec le format &lt;code&gt;.bz2&lt;/code&gt; le mail re&#231;u avait bien un fic
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-08-23-Now-heberged-on-heroku/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-08-23-Now-heberged-on-heroku/"/>
<content type="html">&lt;h1 class="first" id="maintenant-sur-herokuhttpherokucom"&gt;Maintenant sur &lt;a href="http://heroku.com"&gt;Heroku&lt;/a&gt;&lt;/h1&gt; <content type="html">&lt;h1 class="first" id="maintenant-sur-herokuhttpherokucom"&gt;Maintenant sur &lt;a href="http://heroku.com"&gt;Heroku&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;J&amp;rsquo;ai chang&#233; mon h&#233;bergeur. Mobileme n&amp;rsquo;est absolument pas adapt&#233; &#224; la diffusion de mon blog. C&amp;rsquo;est pourquoi je suis pass&#233; &#224; &lt;a href="http://heroku.com"&gt;Heroku&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;J&amp;#8217;ai chang&#233; mon h&#233;bergeur. Mobileme n&amp;#8217;est absolument pas adapt&#233; &#224; la diffusion de mon blog. C&amp;#8217;est pourquoi je suis pass&#233; &#224; &lt;a href="http://heroku.com"&gt;Heroku&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Mais comme vous devez le savoir mon blog est un site compl&#232;tement statique. &lt;p&gt;Mais comme vous devez le savoir mon blog est un site compl&#232;tement statique.
J&amp;rsquo;utilise &lt;a href="http://nanoc.stoneship.org/"&gt;nanoc&lt;/a&gt; pour l&amp;rsquo;engendrer. J&amp;#8217;utilise &lt;a href="http://nanoc.stoneship.org/"&gt;nanoc&lt;/a&gt; pour l&amp;#8217;engendrer.
Avoir un site statique am&#232;ne beaucoup d&amp;rsquo;avantages par rapport &#224; un site dynamique. Surtout en terme de s&#233;curit&#233;. Avoir un site statique am&#232;ne beaucoup d&amp;#8217;avantages par rapport &#224; un site dynamique. Surtout en terme de s&#233;curit&#233;.
Voici comment configurer un site statique sur heroku.&lt;/p&gt; Voici comment configurer un site statique sur heroku.&lt;/p&gt;
&lt;p&gt;La racine de mes fichiers est &amp;lsquo;/output&amp;rsquo;. Vous devez simplement cr&#233;er deux fichiers. Un fichier &lt;code&gt;config.ru&lt;/code&gt;&lt;/p&gt;</content> &lt;p&gt;La racine de mes fichiers est &amp;#8216;/output&amp;#8217;. Vous devez simplement cr&#233;er deux fichiers. Un fichier &lt;code&gt;config.ru&lt;/code&gt;&lt;/p&gt;</content>
</entry> </entry>
<entry> <entry>
<id>tag:yannesposito.com,2010-08-11:/Scratch/fr/blog/2010-07-09-Indecidabilities/</id> <id>tag:yannesposito.com,2010-08-11:/Scratch/fr/blog/2010-07-09-Indecidabilities/</id>
@ -699,11 +699,11 @@ Voici comment configurer un site statique sur heroku.&lt;/p&gt;
<uri>yannesposito.com</uri> <uri>yannesposito.com</uri>
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-07-31-New-style-after-holidays/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-07-31-New-style-after-holidays/"/>
<content type="html">&lt;p&gt;Avant les vacances beaucoup d&amp;rsquo;utilisateurs se sont plaints de la lenteur de rendu de mon site. <content type="html">&lt;p&gt;Avant les vacances beaucoup d&amp;#8217;utilisateurs se sont plaints de la lenteur de rendu de mon site.
Il s&amp;rsquo;agit notamment de probl&#232;mes avec Chrome en particulier. Il s&amp;#8217;agit notamment de probl&#232;mes avec Chrome en particulier.
Mais pour &#233;viter tout probl&#232;me. Mais pour &#233;viter tout probl&#232;me.
J&amp;rsquo;ai compl&#232;tement modifi&#233; le style de mon site web. J&amp;#8217;ai compl&#232;tement modifi&#233; le style de mon site web.
Il est inspir&#233; du style de l&amp;rsquo;application iBooks&lt;small&gt;&amp;copy;&lt;/small&gt; sur iPhone&lt;small&gt;&amp;copy;&lt;/small&gt;.&lt;/p&gt; Il est inspir&#233; du style de l&amp;#8217;application iBooks&lt;small&gt;&amp;copy;&lt;/small&gt; sur iPhone&lt;small&gt;&amp;copy;&lt;/small&gt;.&lt;/p&gt;
&lt;p&gt;Dites moi ce que vous pensez de ce nouveau design.&lt;/p&gt; &lt;p&gt;Dites moi ce que vous pensez de ce nouveau design.&lt;/p&gt;
</content> </content>
@ -718,10 +718,10 @@ Il est inspir&#233; du style de l&amp;rsquo;application iBooks&lt;small&gt;&amp;
<uri>yannesposito.com</uri> <uri>yannesposito.com</uri>
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-07-07-CSS-rendering-problems-by-navigator/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-07-07-CSS-rendering-problems-by-navigator/"/>
<content type="html">&lt;p&gt;Beaucoup d&amp;rsquo;utilisateurs de &lt;a href="http://reddit.com"&gt;Reddit&lt;/a&gt; m&amp;rsquo;ont rapport&#233; que mon site &#233;tait tr&#232;s long &#224; charger et &#224; &lt;em&gt;scroller&lt;/em&gt;. <content type="html">&lt;p&gt;Beaucoup d&amp;#8217;utilisateurs de &lt;a href="http://reddit.com"&gt;Reddit&lt;/a&gt; m&amp;#8217;ont rapport&#233; que mon site &#233;tait tr&#232;s long &#224; charger et &#224; &lt;em&gt;scroller&lt;/em&gt;.
Ils pensaient qu&amp;rsquo;il s&amp;rsquo;agissait d&amp;rsquo;un probl&#232;me d&#251; aux ombres que j&amp;rsquo;applique sur le texte. Ils pensaient qu&amp;#8217;il s&amp;#8217;agissait d&amp;#8217;un probl&#232;me d&#251; aux ombres que j&amp;#8217;applique sur le texte.
J&amp;rsquo;&#233;tais un peu surpris puisque je fais mes tests sur une machine vraiment tr&#232;s lente et je n&amp;rsquo;avais jamais d&#233;tect&#233; ces probl&#232;mes. J&amp;#8217;&#233;tais un peu surpris puisque je fais mes tests sur une machine vraiment tr&#232;s lente et je n&amp;#8217;avais jamais d&#233;tect&#233; ces probl&#232;mes.
En r&#233;alit&#233;, ce qui ralenti le rendu de ce site est par ordre d&amp;rsquo;importance&amp;nbsp;:&lt;/p&gt; En r&#233;alit&#233;, ce qui ralenti le rendu de ce site est par ordre d&amp;#8217;importance&amp;nbsp;:&lt;/p&gt;
&lt;ol&gt; &lt;ol&gt;
&lt;li&gt;Les d&#233;grad&#233;s sur Chrome (pas dans Safari sur Mac)&lt;/li&gt; &lt;li&gt;Les d&#233;grad&#233;s sur Chrome (pas dans Safari sur Mac)&lt;/li&gt;
@ -730,7 +730,7 @@ En r&#233;alit&#233;, ce qui ralenti le rendu de ce site est par ordre d&amp;rsq
&lt;h2 id="les-dgrads"&gt;les d&#233;grad&#233;s&lt;/h2&gt; &lt;h2 id="les-dgrads"&gt;les d&#233;grad&#233;s&lt;/h2&gt;
&lt;p&gt;Sur Safari il n&amp;rsquo;y a absolument aucun probl&#232;me avec les d&#233;grad&#233;s. Par contre sur Chrome sous Linux le si...&lt;/p&gt;</content> &lt;p&gt;Sur Safari il n&amp;#8217;y a absolument aucun probl&#232;me avec les d&#233;grad&#233;s. Par contre sur Chrome sous Linux le si...&lt;/p&gt;</content>
</entry> </entry>
<entry> <entry>
<id>tag:yannesposito.com,2010-07-05:/Scratch/fr/blog/2010-07-05-Cappuccino-and-Web-applications/</id> <id>tag:yannesposito.com,2010-07-05:/Scratch/fr/blog/2010-07-05-Cappuccino-and-Web-applications/</id>
@ -749,10 +749,10 @@ En r&#233;alit&#233;, ce qui ralenti le rendu de ce site est par ordre d&amp;rsq
&lt;p&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;:&lt;/p&gt; &lt;p&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;:&lt;/p&gt;
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;J&amp;rsquo;ai essay&#233; de faire une version de &lt;a href="http://yannesposito.com/Softwares/YPassword.html"&gt;YPassword&lt;/a&gt; en jQuery et avec Cappuccino.&lt;/li&gt; &lt;li&gt;J&amp;#8217;ai essay&#233; de faire une version de &lt;a href="http://yannesposito.com/Softwares/YPassword.html"&gt;YPassword&lt;/a&gt; en jQuery et avec Cappuccino.&lt;/li&gt;
&lt;li&gt;Cappuccino est tr&#232;s bien sur les navigateurs non mobile mais l&amp;rsquo;application p&#232;se 1.4Mo et n&amp;rsquo;est pas compatible avec l&amp;rsquo;iPhone.&lt;/li&gt; &lt;li&gt;Cappuccino est tr&#232;s bien sur les navigateurs non mobile mais l&amp;#8217;application p&#232;se 1.4Mo et n&amp;#8217;est pas compatible avec l&amp;#8217;iPhone.&lt;/li&gt;
&lt;li&gt;la version jQuery n&amp;rsquo;est pas aussi jolie que la version r&#233;alis&#233;e avec Cappuccino mais elle p&#232;se seulement 106Ko et est compatible avec l&amp;rsquo;iPhone.&lt;/li&gt; &lt;li&gt;la version jQuery n&amp;#8217;est pas aussi jolie que la version r&#233;alis&#233;e avec Cappuccino mais elle p&#232;se seulement 106Ko et est compatible avec l&amp;#8217;iPhone.&lt;/li&gt;
&lt;li&gt;J&amp;rsquo;essayerai Dashcode 3&lt;/li&gt; &lt;li&gt;J&amp;#8217;essayerai Dashcode 3&lt;/li&gt;
&lt;/ul&gt; &lt;/ul&gt;
@ -810,12 +810,12 @@ function initCode() {
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-06-17-hide-yourself-to-analytics/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-06-17-hide-yourself-to-analytics/"/>
<content type="html">&lt;p&gt;Voici un moyen tr&#232;s simple de ne plus &#234;tre comptabilis&#233; dans les visites de son propre site. <content type="html">&lt;p&gt;Voici un moyen tr&#232;s simple de ne plus &#234;tre comptabilis&#233; dans les visites de son propre site.
Tout d&amp;rsquo;abord, vous devriez jeter un coup d&amp;rsquo;&#339;il sur comment &lt;a href="/Scratch/fr/blog/2010-06-17-track-events-with-google-analytics"&gt;je g&#232;re les syst&#232;mes de r&#233;cup&#233;ration de statistiques&lt;/a&gt;. Tout d&amp;#8217;abord, vous devriez jeter un coup d&amp;#8217;&#339;il sur comment &lt;a href="/Scratch/fr/blog/2010-06-17-track-events-with-google-analytics"&gt;je g&#232;re les syst&#232;mes de r&#233;cup&#233;ration de statistiques&lt;/a&gt;.
Je centralise tout dans un seul fichier javascript ce qui facilite le travail.&lt;/p&gt; Je centralise tout dans un seul fichier javascript ce qui facilite le travail.&lt;/p&gt;
&lt;p&gt;Cette m&#233;thode n&#233;cessite l&amp;rsquo;utilisation de &lt;code&gt;jquery-cookie&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;Cette m&#233;thode n&#233;cessite l&amp;#8217;utilisation de &lt;code&gt;jquery-cookie&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Avant de comptabiliser les visites, je v&#233;rifie que la cl&#233; &lt;code&gt;admin&lt;/code&gt; n&amp;rsquo;est pas utilis&#233;e dans mes cookies.&lt;/p&gt; &lt;p&gt;Avant de comptabiliser les visites, je v&#233;rifie que la cl&#233; &lt;code&gt;admin&lt;/code&gt; n&amp;#8217;est pas utilis&#233;e dans mes cookies.&lt;/p&gt;
&lt;pre&gt;&lt;code class="javascript"&gt; var admin = $.cookie('admin'); &lt;pre&gt;&lt;code class="javascript"&gt; var admin = $.cookie('admin');
if (! admin) { if (! admin) {
@ -835,7 +835,7 @@ Je centralise tout dans un seul fichier javascript ce qui facilite le travail.&l
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-06-17-track-events-with-google-analytics/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-06-17-track-events-with-google-analytics/"/>
<content type="html">&lt;p&gt;Voici comment analyser tous les clics que font vos utilisateurs sur votre blog en incluant google analytics de fa&#231;on asynchrone.&lt;/p&gt; <content type="html">&lt;p&gt;Voici comment analyser tous les clics que font vos utilisateurs sur votre blog en incluant google analytics de fa&#231;on asynchrone.&lt;/p&gt;
&lt;p&gt;Dans le html, il faut utiliser &lt;a href="http://jquery.com"&gt;jQuery&lt;/a&gt; et un fichier que j&amp;rsquo;ai appel&#233; &lt;code&gt;yga.js&lt;/code&gt;&amp;nbsp;:&lt;/p&gt; &lt;p&gt;Dans le html, il faut utiliser &lt;a href="http://jquery.com"&gt;jQuery&lt;/a&gt; et un fichier que j&amp;#8217;ai appel&#233; &lt;code&gt;yga.js&lt;/code&gt;&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;&lt;code class="html"&gt; &amp;lt;script type="text/javascript" src="jquery.js"&amp;gt;&amp;lt;/script&amp;gt; &lt;pre&gt;&lt;code class="html"&gt; &amp;lt;script type="text/javascript" src="jquery.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type="text/javascript" src="yga.js"&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;script type="text/javascript" src="yga.js"&amp;gt;&amp;lt;/script&amp;gt;
@ -859,7 +859,7 @@ Je centralise tout dans un seul fichier javascript ce qui facilite le travail.&l
<uri>yannesposito.com</uri> <uri>yannesposito.com</uri>
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-06-15-Get-my-blog-engine/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-06-15-Get-my-blog-engine/"/>
<content type="html">&lt;p&gt;J&amp;rsquo;ai publi&#233; une version &lt;em&gt;light&lt;/em&gt; de mon syst&#232;me de blog hier soir. Par &lt;em&gt;light&lt;/em&gt; il faut comprendre avec un CSS plus &#233;pur&#233; et plus portable (sans les bords ronds). <content type="html">&lt;p&gt;J&amp;#8217;ai publi&#233; une version &lt;em&gt;light&lt;/em&gt; de mon syst&#232;me de blog hier soir. Par &lt;em&gt;light&lt;/em&gt; il faut comprendre avec un CSS plus &#233;pur&#233; et plus portable (sans les bords ronds).
Vous pouvez le r&#233;cup&#233;rer sur &lt;a href="http://github.com/yogsototh/nanoc3_blog"&gt;github.com&lt;/a&gt;.&lt;/p&gt; Vous pouvez le r&#233;cup&#233;rer sur &lt;a href="http://github.com/yogsototh/nanoc3_blog"&gt;github.com&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Que pouvez-vous attendre de ce syst&#232;me de blog&amp;nbsp;?&lt;/p&gt; &lt;p&gt;Que pouvez-vous attendre de ce syst&#232;me de blog&amp;nbsp;?&lt;/p&gt;
@ -881,8 +881,8 @@ Vous pouvez le r&#233;cup&#233;rer sur &lt;a href="http://github.com/yogsototh/n
<uri>yannesposito.com</uri> <uri>yannesposito.com</uri>
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-06-14-multi-language-choices/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-06-14-multi-language-choices/"/>
<content type="html">&lt;p&gt;Je traduis la plupart de mes articles pour qu&amp;rsquo;ils soient disponibles en fran&#231;ais et en anglais. <content type="html">&lt;p&gt;Je traduis la plupart de mes articles pour qu&amp;#8217;ils soient disponibles en fran&#231;ais et en anglais.
La fa&#231;on que l&amp;rsquo;on m&amp;rsquo;a conseill&#233; &#233;tait d&amp;rsquo;avoir un fichier par langue. En g&#233;n&#233;ral &#231;a donne &#231;a.&lt;/p&gt; La fa&#231;on que l&amp;#8217;on m&amp;#8217;a conseill&#233; &#233;tait d&amp;#8217;avoir un fichier par langue. En g&#233;n&#233;ral &#231;a donne &#231;a.&lt;/p&gt;
&lt;pre class="twilight"&gt; &lt;pre class="twilight"&gt;
Bonjour, Bonjour,
@ -899,11 +899,11 @@ here is an example of english text.
&lt;/pre&gt; &lt;/pre&gt;
&lt;p&gt;Cette fa&#231;on de traduire vous impose une certaine fa&#231;on de traduire. &lt;p&gt;Cette fa&#231;on de traduire vous impose une certaine fa&#231;on de traduire.
D&amp;rsquo;abord &#233;crire enti&#232;rement le texte dans une langue, D&amp;#8217;abord &#233;crire enti&#232;rement le texte dans une langue,
puis copier le fichier et enfin retraduire dans une nouvelle langue.&lt;/p&gt; puis copier le fichier et enfin retraduire dans une nouvelle langue.&lt;/p&gt;
&lt;p&gt;Le probl&#232;me, c&amp;rsquo;est que tr&#232;s souvent, les articles ont des parties communes non n&#233;gligeables. Par exemple, les images, les codes sources, etc&amp;hellip; &lt;p&gt;Le probl&#232;me, c&amp;#8217;est que tr&#232;s souvent, les articles ont des parties communes non n&#233;gligeables. Par exemple, les images, les codes sources, etc&amp;#8230;
Lorsque je m&amp;...&lt;/p&gt;</content> Lorsque je m&amp;#...&lt;/p&gt;</content>
</entry> </entry>
<entry> <entry>
<id>tag:yannesposito.com,2010-05-24:/Scratch/fr/blog/2010-05-24-Trees--Pragmatism-and-Formalism/</id> <id>tag:yannesposito.com,2010-05-24:/Scratch/fr/blog/2010-05-24-Trees--Pragmatism-and-Formalism/</id>
@ -922,13 +922,13 @@ Lorsque je m&amp;...&lt;/p&gt;</content>
&lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt;&amp;nbsp;:&lt;/p&gt; &lt;p&gt;&lt;span class="sc"&gt;&lt;abbr title="Trop long &#224; lire"&gt;tl&#224;l&lt;/abbr&gt;&amp;nbsp;: &lt;/span&gt;&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;J&amp;rsquo;ai essay&#233; de programmer un simple filtre&amp;nbsp;;&lt;/li&gt; &lt;li&gt;J&amp;#8217;ai essay&#233; de programmer un simple filtre&amp;nbsp;;&lt;/li&gt;
&lt;li&gt;J&amp;rsquo;ai &#233;t&#233; bloqu&#233; pendant deux jours&amp;nbsp;;&lt;/li&gt; &lt;li&gt;J&amp;#8217;ai &#233;t&#233; bloqu&#233; pendant deux jours&amp;nbsp;;&lt;/li&gt;
&lt;li&gt;J&amp;rsquo;ai arr&#234;t&#233; de penser comme un robot&amp;nbsp;;&lt;/li&gt; &lt;li&gt;J&amp;#8217;ai arr&#234;t&#233; de penser comme un robot&amp;nbsp;;&lt;/li&gt;
&lt;li&gt;J&amp;rsquo;ai utilis&#233; un papier et un stylo&amp;nbsp;;&lt;/li&gt; &lt;li&gt;J&amp;#8217;ai utilis&#233; un papier et un stylo&amp;nbsp;;&lt;/li&gt;
&lt;li&gt;J&amp;rsquo;ai fait un peu de maths&amp;nbsp;;&lt;/li&gt; &lt;li&gt;J&amp;#8217;ai fait un peu de maths&amp;nbsp;;&lt;/li&gt;
&lt;li&gt;J&amp;rsquo;ai r&#233;solu le probl&#232;me en 10 minutes&amp;nbsp;;&lt;/li&gt; &lt;li&gt;J&amp;#8217;ai r&#233;solu le probl&#232;me en 10 minutes&amp;nbsp;;&lt;/li&gt;
&lt;li&gt;Conclusion: Pragmatisme n&amp;rsquo;est pas&amp;nbsp;: &amp;laquo;n&amp;rsquo;utilisez jamais la th&#233;orie&amp;raquo;. &lt;li&gt;Conclusion: Pragmatisme n&amp;#8217;est pas&amp;nbsp;: &amp;laquo;n&amp;#8217;utilisez jamais la th&#233;orie&amp;raquo;.
&lt;/div&gt; &lt;/div&gt;
@ -946,7 +946,7 @@ Lorsque je m&amp;...&lt;/p&gt;</content>
<uri>yannesposito.com</uri> <uri>yannesposito.com</uri>
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-05-19-How-to-cut-HTML-and-repair-it/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-05-19-How-to-cut-HTML-and-repair-it/"/>
<content type="html">&lt;p&gt;Sur ma page d&amp;rsquo;accueil vous pouvez voir la liste des mes derniers articles avec le d&#233;but de ceux-ci. Pour arriver &#224; faire &#231;a, j&amp;rsquo;ai besoin de couper le code XHTML de mes pages en plein milieu. Il m&amp;rsquo;a donc fallu trouver un moyen de les r&#233;parer.&lt;/p&gt; <content type="html">&lt;p&gt;Sur ma page d&amp;#8217;accueil vous pouvez voir la liste des mes derniers articles avec le d&#233;but de ceux-ci. Pour arriver &#224; faire &#231;a, j&amp;#8217;ai besoin de couper le code XHTML de mes pages en plein milieu. Il m&amp;#8217;a donc fallu trouver un moyen de les r&#233;parer.&lt;/p&gt;
&lt;p&gt;Prenons un exemple&amp;nbsp;:&lt;/p&gt; &lt;p&gt;Prenons un exemple&amp;nbsp;:&lt;/p&gt;
@ -960,7 +960,7 @@ Lorsque je m&amp;...&lt;/p&gt;</content>
&amp;lt;/div&amp;gt; &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt; &lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Apr&#232;s avoir coup&#233;, j&amp;rsquo;obtiens&amp;nbsp;:&lt;/p&gt; &lt;p&gt;Apr&#232;s avoir coup&#233;, j&amp;#8217;obtiens&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;&lt;code class="html"&gt;&amp;lt;div class="corps"&amp;gt; &lt;pre&gt;&lt;code class="html"&gt;&amp;lt;div class="corps"&amp;gt;
&amp;lt;div class="intro"&amp;gt; &amp;lt;div class="intro"&amp;gt;
@ -980,12 +980,12 @@ Lorsque je m&amp;...&lt;/p&gt;</content>
<content type="html">&lt;p&gt;Bonjour &#224; tous&amp;nbsp;!&lt;/p&gt; <content type="html">&lt;p&gt;Bonjour &#224; tous&amp;nbsp;!&lt;/p&gt;
&lt;blockquote cite="http://www.madore.org/~david/weblog/2010-05.html#d.2010-05-12.1752"&gt; &lt;blockquote cite="http://www.madore.org/~david/weblog/2010-05.html#d.2010-05-12.1752"&gt;
&lt;p&gt;&amp;hellip;plus on retarde quelque chose, plus il devient difficile de s&amp;rsquo;y mettre&amp;hellip;&lt;/p&gt; &lt;p&gt;&amp;#8230;plus on retarde quelque chose, plus il devient difficile de s&amp;#8217;y mettre&amp;#8230;&lt;/p&gt;
&lt;/blockquote&gt; &lt;/blockquote&gt;
&lt;p&gt;Je devais &#233;crire d&amp;rsquo;autres articles pour ce blog. J&amp;rsquo;ai not&#233; plein d&amp;rsquo;id&#233;es dans mes &lt;em&gt;todolist&lt;/em&gt;. Mais j&amp;rsquo;avais pas mal d&amp;rsquo;autres choses &#224; faire. Et jusqu&amp;rsquo;ici, j&amp;rsquo;ai toujours dit &amp;laquo;je le ferai plus tard&amp;raquo;. Ce qui m&amp;rsquo;a fait agir, c&amp;rsquo;est la petite r&#233;flexion que j&amp;rsquo;avais lu une fois. &lt;p&gt;Je devais &#233;crire d&amp;#8217;autres articles pour ce blog. J&amp;#8217;ai not&#233; plein d&amp;#8217;id&#233;es dans mes &lt;em&gt;todolist&lt;/em&gt;. Mais j&amp;#8217;avais pas mal d&amp;#8217;autres choses &#224; faire. Et jusqu&amp;#8217;ici, j&amp;#8217;ai toujours dit &amp;laquo;je le ferai plus tard&amp;raquo;. Ce qui m&amp;#8217;a fait agir, c&amp;#8217;est la petite r&#233;flexion que j&amp;#8217;avais lu une fois.
&amp;gt; Arr&#233;tez d&amp;rsquo;&#233;crire des &lt;code&gt;TODO&lt;/code&gt; dans votre code est faites le maintenant&amp;nbsp;!&lt;br /&gt; &amp;gt; Arr&#233;tez d&amp;#8217;&#233;crire des &lt;code&gt;TODO&lt;/code&gt; dans votre code est faites le maintenant&amp;nbsp;!&lt;br /&gt;
&amp;gt; Vous serez surpris de l&amp;rsquo;efficacit&#233; de cette mesure.&lt;/p&gt; &amp;gt; Vous serez surpris de l&amp;#8217;efficacit&#233; de cette mesure.&lt;/p&gt;
&lt;p&gt;En r&#233;sum&#233;&amp;nbsp;: &lt;p&gt;En r&#233;sum&#233;&amp;nbsp;:
&amp;gt; &lt;/p&gt;&lt;/p&gt;</content> &amp;gt; &lt;/p&gt;&lt;/p&gt;</content>
@ -1002,16 +1002,16 @@ Lorsque je m&amp;...&lt;/p&gt;</content>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-03-23-Encapsulate-git/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-03-23-Encapsulate-git/"/>
<content type="html">&lt;p&gt;&lt;span class="intro"&gt; <content type="html">&lt;p&gt;&lt;span class="intro"&gt;
Voici une solution pour conserver des branches divergentes avec &lt;code&gt;git&lt;/code&gt;. Voici une solution pour conserver des branches divergentes avec &lt;code&gt;git&lt;/code&gt;.
Parce qu&amp;rsquo;il est facile de &lt;em&gt;merger&lt;/em&gt; par erreur, je propose un script qui encapsule le comportement de &lt;code&gt;git&lt;/code&gt; pour interdire certains &lt;em&gt;merges&lt;/em&gt; dangereux. Mais qui permet aussi de faire des merges en cascades de la racines vers les autres branches. Parce qu&amp;#8217;il est facile de &lt;em&gt;merger&lt;/em&gt; par erreur, je propose un script qui encapsule le comportement de &lt;code&gt;git&lt;/code&gt; pour interdire certains &lt;em&gt;merges&lt;/em&gt; dangereux. Mais qui permet aussi de faire des merges en cascades de la racines vers les autres branches.
&lt;/span&gt;&lt;/p&gt; &lt;/span&gt;&lt;/p&gt;
&lt;h2 id="se-prmunir-contre-les-erreurs"&gt;Se pr&#233;munir contre les erreurs&lt;/h2&gt; &lt;h2 id="se-prmunir-contre-les-erreurs"&gt;Se pr&#233;munir contre les erreurs&lt;/h2&gt;
&lt;p&gt;Je travaille sur un projet dans lequel certaines de mes branches &lt;code&gt;git&lt;/code&gt; doivent rester divergentes. Et les divergences devraient aller en s&amp;rsquo;accentuant.&lt;/p&gt; &lt;p&gt;Je travaille sur un projet dans lequel certaines de mes branches &lt;code&gt;git&lt;/code&gt; doivent rester divergentes. Et les divergences devraient aller en s&amp;#8217;accentuant.&lt;/p&gt;
&lt;p&gt;J&amp;rsquo;utilise aussi certaines branches qui contiennent la partie commune de ces projets.&lt;/p&gt; &lt;p&gt;J&amp;#8217;utilise aussi certaines branches qui contiennent la partie commune de ces projets.&lt;/p&gt;
&lt;p&gt;Disons que j&amp;rsquo;ai les branches&amp;nbsp;:&lt;/p&gt; &lt;p&gt;Disons que j&amp;#8217;ai les branches&amp;nbsp;:&lt;/p&gt;
...</content> ...</content>
</entry> </entry>
@ -1049,7 +1049,7 @@ Parce qu&amp;rsquo;il est facile de &lt;em&gt;merger&lt;/em&gt; par erreur, je p
&lt;p&gt;&lt;code&gt;git clone&lt;/code&gt; peut seulement r&#233;cuper la branche &lt;code&gt;master&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;&lt;code&gt;git clone&lt;/code&gt; peut seulement r&#233;cuper la branche &lt;code&gt;master&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Si vous n&amp;rsquo;avez pas beaucoup de branches, vous pouvez simplement les clone le project et ensuite pour chacune d&amp;rsquo;entre elle lancer la commande suivante&amp;nbsp;:&lt;/p&gt; &lt;p&gt;Si vous n&amp;#8217;avez pas beaucoup de branches, vous pouvez simplement les clone le project et ensuite pour chacune d&amp;#8217;entre elle lancer la commande suivante&amp;nbsp;:&lt;/p&gt;
&lt;div&gt; &lt;div&gt;
@ -1065,10 +1065,10 @@ Parce qu&amp;rsquo;il est facile de &lt;em&gt;merger&lt;/em&gt; par erreur, je p
<uri>yannesposito.com</uri> <uri>yannesposito.com</uri>
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-02-23-When-regexp-is-not-the-best-solution/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-02-23-When-regexp-is-not-the-best-solution/"/>
<content type="html">&lt;p&gt;Les expressions r&#233;guli&#232;res sont tr&#232;s utiles. Cependant, elles ne sont pas toujours la meilleure mani&#232;re d&amp;rsquo;aborder certain probl&#232;me autour des chaines de caract&#232;res. <content type="html">&lt;p&gt;Les expressions r&#233;guli&#232;res sont tr&#232;s utiles. Cependant, elles ne sont pas toujours la meilleure mani&#232;re d&amp;#8217;aborder certain probl&#232;me autour des chaines de caract&#232;res.
Et surtout quand les transformations que vous voulez accomplir sont simples.&lt;/p&gt; Et surtout quand les transformations que vous voulez accomplir sont simples.&lt;/p&gt;
&lt;p&gt;Je voulais savoir comment r&#233;cup&#233;rer le plus vite possible l&amp;rsquo;extension d&amp;rsquo;un nom de fichier. Il y a trois mani&#232;re naturelle d&amp;rsquo;accomplir cel&#224;&amp;nbsp;:&lt;/p&gt; &lt;p&gt;Je voulais savoir comment r&#233;cup&#233;rer le plus vite possible l&amp;#8217;extension d&amp;#8217;un nom de fichier. Il y a trois mani&#232;re naturelle d&amp;#8217;accomplir cel&#224;&amp;nbsp;:&lt;/p&gt;
&lt;div&gt; &lt;div&gt;
@ -1085,7 +1085,7 @@ ext=File.extname(str)
&lt;/div&gt; &lt;/div&gt;
&lt;p&gt;A premi&#232;re vue, je pensais que l&amp;rsquo;expression r&#233;guli&#232;re serait plus rapide que le &lt;code&gt;split&lt;/code&gt; parce qu&amp;rsquo;il pouvait y avoir plusieurs de &lt;code&gt;.&lt;/code&gt; dans un nom de fichie...&lt;/p&gt;</content> &lt;p&gt;A premi&#232;re vue, je pensais que l&amp;#8217;expression r&#233;guli&#232;re serait plus rapide que le &lt;code&gt;split&lt;/code&gt; parce qu&amp;#8217;il pouvait y avoir plusieurs de &lt;code&gt;.&lt;/code&gt; dans un nom de fichie...&lt;/p&gt;</content>
</entry> </entry>
<entry> <entry>
<id>tag:yannesposito.com,2010-02-18:/Scratch/fr/blog/2010-02-18-split-a-file-by-keyword/</id> <id>tag:yannesposito.com,2010-02-18:/Scratch/fr/blog/2010-02-18-split-a-file-by-keyword/</id>
@ -1097,8 +1097,8 @@ ext=File.extname(str)
<uri>yannesposito.com</uri> <uri>yannesposito.com</uri>
</author> </author>
<link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-02-18-split-a-file-by-keyword/"/> <link rel="alternate" href="http://yannesposito.com/Scratch/fr/blog/2010-02-18-split-a-file-by-keyword/"/>
<content type="html">&lt;p&gt;Assez bizarrement, je n&amp;rsquo;ai trouv&#233; aucun outil UNIX pour d&#233;couper un fichier par mot cl&#233;. <content type="html">&lt;p&gt;Assez bizarrement, je n&amp;#8217;ai trouv&#233; aucun outil UNIX pour d&#233;couper un fichier par mot cl&#233;.
Alors j&amp;rsquo;en ai fait un en &lt;code&gt;awk&lt;/code&gt;. Je le met ici principalement pour moi, mais &#231;a peut toujours servir &#224; quelqu&amp;rsquo;un d&amp;rsquo;autre. Alors j&amp;#8217;en ai fait un en &lt;code&gt;awk&lt;/code&gt;. Je le met ici principalement pour moi, mais &#231;a peut toujours servir &#224; quelqu&amp;#8217;un d&amp;#8217;autre.
Le code suivant d&#233;coupe un fichier pour chacune de ses ligne contenant le mot &lt;code&gt;UTC&lt;/code&gt;.&lt;/p&gt; Le code suivant d&#233;coupe un fichier pour chacune de ses ligne contenant le mot &lt;code&gt;UTC&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt; &lt;div&gt;
@ -1114,13 +1114,13 @@ BEGIN{i=0;}
&lt;/div&gt; &lt;/div&gt;
&lt;p&gt;En r&#233;alit&#233;, j&amp;rsquo;avais besoin de cet outils pour avoir un fichier par jour. Chaque ligne contenant UTC ayant le format suivant&amp;nbsp;:&lt;/p&gt; &lt;p&gt;En r&#233;alit&#233;, j&amp;#8217;avais besoin de cet outils pour avoir un fichier par jour. Chaque ligne contenant UTC ayant le format suivant&amp;nbsp;:&lt;/p&gt;
&lt;pre class="twilight"&gt; &lt;pre class="twilight"&gt;
Mon Dec 7 10:32:30 UTC 2009 Mon Dec 7 10:32:30 UTC 2009
&lt;/pre&gt; &lt;/pre&gt;
&lt;p&gt;J&amp;rsquo;en suis finallement arriv&#233; au code suivant&amp;nbsp;:&lt;/p&gt; &lt;p&gt;J&amp;#8217;en suis finallement arriv&#233; au code suivant&amp;nbsp;:&lt;/p&gt;
&lt;div&gt; &lt;div&gt;
...&lt;/div&gt;</content> ...&lt;/div&gt;</content>

File diff suppressed because it is too large Load diff

View file

@ -107,7 +107,7 @@
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Copyright ©, Yann Esposito</a> <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Copyright ©, Yann Esposito</a>
</div> </div>
<div id="lastmod"> <div id="lastmod">
Modified: 01/23/2013 Modified: 01/30/2013
</div> </div>
<div> <div>
Entirely done with Entirely done with