<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.parenthese.be/feed/rss2/xslt" ?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
  <title>(parenthèse.be)</title>
  <link>http://www.parenthese.be/</link>
  
  <description />
  <language>fr</language>
  <pubDate>Mon, 30 Jan 2012 12:42:51 +0100</pubDate>
  <copyright />
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/parenthesebe" /><feedburner:info uri="parenthesebe" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
    <title>facebook_distance_of_time_in_words</title>
    <link>http://feedproxy.google.com/~r/parenthesebe/~3/SosIvm9waXg/facebook_distance_of_time_in_words</link>
    <guid isPermaLink="false">urn:md5:7515e91bf49218b25e99626617de373c</guid>
    <pubDate>Sat, 09 Jan 2010 21:33:00 +0100</pubDate>
    <dc:creator>Cédric</dc:creator>
        <category>Ruby on Rails</category>
        <category>distance_of_time_in_words</category><category>helper</category><category>Rails</category>    
    <description>&lt;p&gt;&lt;code&gt;facebook_distance_of_time_in_words&lt;/code&gt; est un helper Rails qui
permet d'afficher la temps écoulé entre une date donnée et maintenant d'une
manière similaire à Facebook.&lt;/p&gt;
&lt;h2&gt;Installation&lt;/h2&gt;
&lt;pre&gt;
script/plugin install git://github.com/cedricbousmanne/facebook_distance_of_time_in_words.git
&lt;/pre&gt;
&lt;h2&gt;Utilisation&lt;/h2&gt;
&lt;p&gt;Dans votre vue, à l'endroit désiré, utilisez
&lt;code&gt;facebook_distance_of_time_in_words()&lt;/code&gt; de la même manière que
&lt;code&gt;&lt;a href="http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M001695" hreflang="en"&gt;distance_of_time_in_words()&lt;/a&gt;&lt;/code&gt; :&lt;/p&gt;
&lt;pre&gt;
&amp;lt;%= facebook_distance_of_time_in_words(@object.created_at) %&amp;gt;
&lt;/pre&gt;
&lt;h3&gt;Exemples&lt;/h3&gt;
&lt;pre&gt;

Time.now
# =&amp;gt; Sun Jan 10 15:27:03 +0100 2010 

facebook_distance_of_time_in_words(Time.now-1.minute)
# =&amp;gt; aujourd'hui à 15:26

facebook_distance_of_time_in_words(Time.now-5.minutes)
# =&amp;gt; aujourd'hui à 15:22

facebook_distance_of_time_in_words(Time.now-33.minutes)
# =&amp;gt; aujourd'hui à 14:54

facebook_distance_of_time_in_words(Time.now-1.hour)
# =&amp;gt; il y a environ une heure

facebook_distance_of_time_in_words(Time.now-1.4.hours)
# =&amp;gt; il y a environ une heure

facebook_distance_of_time_in_words(Time.now-1.6.hours)
# =&amp;gt; il y a environ 2 heures

facebook_distance_of_time_in_words(Time.now-3.hours)
# =&amp;gt; il y a environ 3 heures

facebook_distance_of_time_in_words(Time.now-23.hours)
# =&amp;gt; hier à 16:27

facebook_distance_of_time_in_words(Time.now-1.day)
# =&amp;gt; hier à 15:27

facebook_distance_of_time_in_words(Time.now-1.day-12.hours)
# =&amp;gt; hier à 03:27

facebook_distance_of_time_in_words(Time.now-2.days)
# =&amp;gt; vendredi à 15:27

facebook_distance_of_time_in_words(Time.now-3.days)
# =&amp;gt; jeudi à 15:27

facebook_distance_of_time_in_words(Time.now-4.days)
# =&amp;gt; mercredi à 15:27

facebook_distance_of_time_in_words(Time.now-5.days)
# =&amp;gt; mardi à 15:27

facebook_distance_of_time_in_words(Time.now-6.days)
# =&amp;gt; lundi à 15:27

facebook_distance_of_time_in_words(Time.now-7.days)
# =&amp;gt; il y a 7 jours

&lt;/pre&gt;
&lt;h2&gt;Localisation&lt;/h2&gt;
&lt;p&gt;Les fichiers de traductions sont disponibles dans le dossiers /locales. A
l'heure actuelle, seuls le français et l'anglais sont disponible. Si vous vous
sentez l'âme d'un traducteur et que vous désirer partager votre travail,
n'hésitez pas à me faire parvenir vos traductions.&lt;/p&gt;
&lt;p&gt;Fichier de traduction en français :&lt;/p&gt;
&lt;pre&gt;
fr:
  facebook_distance_of_time_in_words:
    yesterday_at_time: &amp;quot;hier à {{hour}}&amp;quot;
    day_with_hour: &amp;quot;{{day}} à {{hour}}&amp;quot;
    days_ago: &amp;quot;il y a {{day_string}}&amp;quot;
    today_at_time: &amp;quot;aujourd'hui à {{hour}}&amp;quot;
  time:
    formats:
      fdotin_day_name: &amp;quot;%A&amp;quot;
      fdotin_hour_minute: &amp;quot;%H:%M&amp;quot;
  date:
    formats:
      fdotin_day_name: &amp;quot;%A&amp;quot;
      fdotin_hour_minute: &amp;quot;%H:%M&amp;quot;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/parenthesebe/~4/SosIvm9waXg" height="1" width="1"/&gt;</description>
    
    
    
          <comments>http://www.parenthese.be/post/2010/01/09/facebook_distance_of_time_in_words#comment-form</comments>
      <wfw:comment>http://www.parenthese.be/post/2010/01/09/facebook_distance_of_time_in_words#comment-form</wfw:comment>
      <wfw:commentRss>http://www.parenthese.be/feed/atom/comments/474229</wfw:commentRss>
      <feedburner:origLink>http://www.parenthese.be/post/2010/01/09/facebook_distance_of_time_in_words</feedburner:origLink></item>
    
  <item>
    <title>Ruby on Rails ActionMailer Error : OpenSSL::SSL::SSLError (hostname was not match with the server certificate)</title>
    <link>http://feedproxy.google.com/~r/parenthesebe/~3/h3MVxESUuCI/Ruby-on-Rails-ActionMailer-Error-%3A-OpenSSL%3A%3ASSL%3A%3ASSLError-%28hostname-was-not-match-with-the-server-certificate%29</link>
    <guid isPermaLink="false">urn:md5:0abf6d3853c90a34e4a478fa13559386</guid>
    <pubDate>Mon, 04 Jan 2010 17:25:00 +0100</pubDate>
    <dc:creator>Cédric</dc:creator>
        <category>Développement Web</category>
        <category>ActionMailer</category><category>Rails</category>    
    <description>&lt;p&gt;Here's the error i got today, while testing my application online :&lt;/p&gt;
&lt;p&gt;&lt;code&gt;OpenSSL::SSL::SSLError (hostname was not match with the server
certificate)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;A way to fix this issue is to set &lt;strong&gt;enable_starttls_auto&lt;/strong&gt; to
false. Therefore i use a before_filter in my
&lt;strong&gt;ApplicationController&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
class ApplicationController &amp;lt; ActionController::Base
  before_filter :set_mailer_options

  protected

  def set_mailer_options
    ActionMailer::Base.smtp_settings = {
      :enable_starttls_auto =&amp;gt; false,
      :domain =&amp;gt; &amp;quot;yourhost.com&amp;quot;
    }
  end
end
&lt;/pre&gt;
&lt;p&gt;That's it, ActionMailer will never ever try to connect to your mail server
with TLS again.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/parenthesebe/~4/h3MVxESUuCI" height="1" width="1"/&gt;</description>
    
    
    
          <comments>http://www.parenthese.be/post/2010/01/04/Ruby-on-Rails-ActionMailer-Error-%3A-OpenSSL%3A%3ASSL%3A%3ASSLError-%28hostname-was-not-match-with-the-server-certificate%29#comment-form</comments>
      <wfw:comment>http://www.parenthese.be/post/2010/01/04/Ruby-on-Rails-ActionMailer-Error-%3A-OpenSSL%3A%3ASSL%3A%3ASSLError-%28hostname-was-not-match-with-the-server-certificate%29#comment-form</wfw:comment>
      <wfw:commentRss>http://www.parenthese.be/feed/atom/comments/473106</wfw:commentRss>
      <feedburner:origLink>http://www.parenthese.be/post/2010/01/04/Ruby-on-Rails-ActionMailer-Error-%3A-OpenSSL%3A%3ASSL%3A%3ASSLError-%28hostname-was-not-match-with-the-server-certificate%29</feedburner:origLink></item>
    
  <item>
    <title>Extreme JavaScript Performance</title>
    <link>http://feedproxy.google.com/~r/parenthesebe/~3/9UIUB5ajfXA/Extreme-JavaScript-Performance</link>
    <guid isPermaLink="false">urn:md5:5067e70ffaf4cb290539bd2474f843be</guid>
    <pubDate>Wed, 11 Nov 2009 10:40:00 +0100</pubDate>
    <dc:creator>Cédric</dc:creator>
        <category>Développement Web</category>
        <category>javascript</category><category>optimisation</category><category>performance</category>    
    <description>&lt;p&gt;&lt;a href="http://www.slideshare.net/madrobby/extreme-javascript-performance" title="Extreme JavaScript Performance"&gt;Extreme JavaScript Performance&lt;/a&gt;&lt;/p&gt;
&lt;object style="margin: 0;" width="425" height="355"&gt;&lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=2449719&amp;amp;stripped_title=extreme-javascript-performance" /&gt;
&lt;param name="allowFullScreen" value="true" /&gt;
&lt;param name="allowScriptAccess" value="always" /&gt;
&lt;p&gt;View more &lt;a href="http://www.slideshare.net/"&gt;documents&lt;/a&gt; from &lt;a href="http://www.slideshare.net/madrobby"&gt;Thomas Fuchs&lt;/a&gt;.&lt;/p&gt;
&lt;/object&gt;&lt;img src="http://feeds.feedburner.com/~r/parenthesebe/~4/9UIUB5ajfXA" height="1" width="1"/&gt;</description>
    
    
    
          <comments>http://www.parenthese.be/post/2009/11/11/Extreme-JavaScript-Performance#comment-form</comments>
      <wfw:comment>http://www.parenthese.be/post/2009/11/11/Extreme-JavaScript-Performance#comment-form</wfw:comment>
      <wfw:commentRss>http://www.parenthese.be/feed/atom/comments/459214</wfw:commentRss>
      <feedburner:origLink>http://www.parenthese.be/post/2009/11/11/Extreme-JavaScript-Performance</feedburner:origLink></item>
    
  <item>
    <title>On recommence!</title>
    <link>http://feedproxy.google.com/~r/parenthesebe/~3/fZuFGDMrrPk/first</link>
    <guid isPermaLink="false">urn:md5:62f286c7e734c3a914a727be684a2211</guid>
    <pubDate>Thu, 29 Oct 2009 11:32:00 +0000</pubDate>
    <dc:creator>Cédric</dc:creator>
            
    <description>Ouch… La pilulle à du mal à passer. Après cinq ans de blogging, et quelques
semaines de distraction, le serveur sur lequel était hébergé ce blog à été
remis à zéro, mettant ainsi à la corbeille tout les articles que j'avais publié
ces dernières années.&lt;br /&gt;
&lt;br /&gt;
Même si je ne sais pas encore exactement si je vais recommencer à blogguer
régulièrement ou pas, j'ai eu envie de relancer un blog from scratch, en
attendant de voir si une sauvegarde relativement récente de ma base de donnée
peut-être récupérée.&lt;br /&gt;
&lt;br /&gt;
En attendant, on va croiser les doigts et espérer que tout ne soit pas perdu
;-)&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/parenthesebe/~4/fZuFGDMrrPk" height="1" width="1"/&gt;</description>
    
    
    
          <comments>http://www.parenthese.be/post/2009/10/29/first#comment-form</comments>
      <wfw:comment>http://www.parenthese.be/post/2009/10/29/first#comment-form</wfw:comment>
      <wfw:commentRss>http://www.parenthese.be/feed/atom/comments/456092</wfw:commentRss>
      <feedburner:origLink>http://www.parenthese.be/post/2009/10/29/first</feedburner:origLink></item>
    
</channel>
</rss>

