<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>Rhaamo's world</title>
 <link href="http://bavomatic.net/atom.xml" rel="self"/>
 <link href="http://bavomatic.net/"/>
 <updated>2010-08-13T20:53:39+02:00</updated>
 <id>http://bavomatic.net/</id>
 <author>
   <name>Marc 'rhaamo' Lagrange</name>
   <email>rhaamo@gruik.at</email>
 </author>

 
 <entry>
   <title>Photon: A Rails3 Photo Gallery</title>
   <link href="http://bavomatic.net/rails3/2010/08/12/photon-rails3-photo-gallery.html"/>
   <updated>2010-08-12T00:00:00+02:00</updated>
   <id>http://bavomatic.net/rails3/2010/08/12/photon-rails3-photo-gallery</id>
   <content type="html">&lt;p&gt;What is Photon, features and how to download.&lt;/p&gt;
&lt;p&gt;&lt;!-- -**-END-**- --&gt;&lt;/p&gt;
&lt;h2&gt;What is Photon ?&lt;/h2&gt;
&lt;p&gt;Photon is a simple Photo Gallery writen in Rails3.&lt;/p&gt;
&lt;h2&gt;Features&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;Multi file upload in one time&lt;/li&gt;
	&lt;li&gt;Upload files from remote &lt;span class=&quot;caps&quot;&gt;URL&lt;/span&gt; (&lt;span class=&quot;caps&quot;&gt;WIP&lt;/span&gt;)&lt;/li&gt;
	&lt;li&gt;Local file storage (no S3)&lt;/li&gt;
	&lt;li&gt;Thumbnails and others sizes processed in background (DelayedJob)&lt;/li&gt;
	&lt;li&gt;Support of JPGs, GIFs and PNGs&lt;/li&gt;
	&lt;li&gt;Partial &lt;span class=&quot;caps&quot;&gt;EXIF&lt;/span&gt; support (hackable to add more)&lt;/li&gt;
	&lt;li&gt;&lt;span class=&quot;caps&quot;&gt;GPS&lt;/span&gt; &lt;span class=&quot;caps&quot;&gt;EXIF&lt;/span&gt; Tags support and Mini-Map (via &lt;span class=&quot;caps&quot;&gt;OSM&lt;/span&gt;) display&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Get the sources!&lt;/h2&gt;
&lt;p&gt;Go here: &lt;a href=&quot;http://github.com/rhaamo/photon&quot;&gt;Photon on GitHub&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;text&quot;&gt;$ git clone git://github.com/rhaamo/photon.git
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;h2&gt;Deployment&lt;/h2&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;text&quot;&gt;$ cd photon
$ rake db:migrate
$ rake db:seed # optional, you will need to create manually an &amp;quot;admin&amp;quot; account
               # see the db/seeds.rb file for that
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content>
 </entry>
 
 <entry>
   <title>Maemo5/N900 Got RNotify frontend of libnotify</title>
   <link href="http://bavomatic.net/debian/2010/06/14/n900-got-rnotify.html"/>
   <updated>2010-06-14T00:00:00+02:00</updated>
   <id>http://bavomatic.net/debian/2010/06/14/n900-got-rnotify</id>
   <content type="html">&lt;p&gt;I&amp;#8217;ve finally got RNotify on the N900, this is how to get it.&lt;br /&gt;
&lt;!-- -**-END-**- --&gt;&lt;/p&gt;
&lt;h1&gt;Use it at your own risks, it can eat your kitten or baby&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; I&amp;#8217;ve fixed the gtk2 package, now working.&lt;/p&gt;
&lt;h2&gt;Intro&lt;/h2&gt;
&lt;p&gt;I want to use RNotify in a ruby app for my N900 but&amp;#8230; There is no gtk2 nor glib nor RNotify in the maemo repositories&amp;#8230;&lt;/p&gt;
&lt;p&gt;I&amp;#8217;ve rebuilt theses packages and direct-dependencies from the debian&amp;#8217;s one and provide it. (also note this is my firsts debian&amp;#8217;s packages rebuild)&lt;/p&gt;
&lt;p&gt;All packages are build with &amp;#8216;debian/optify&amp;#8217; to &amp;#8216;auto&amp;#8217; and i&amp;#8217;ve run &amp;#8216;maemo-optify-deb debname.deb&amp;#8217; for all debs, hope it&amp;#8217;s good.&lt;/p&gt;
&lt;h2&gt;Requirements&lt;/h2&gt;
&lt;p&gt;I do not remember exactly what to install, use it at your own risks etc. Contact me or comment for anything to add here :)&lt;/p&gt;
&lt;p&gt;You need the maemo-extras-devel (search the web for this) and probably maemo-extras then (i assume you are probably a geek-hacker and have installed &amp;#8216;rootsh&amp;#8217;)&lt;/p&gt;
&lt;p&gt;Install this:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# apt-get install ruby irb rdoc wget&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;p&gt;Then got all debs:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# cd /home/user/MyDocs&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# mkdir root&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# cd root&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;there is more space here&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# wget -A.deb -nH -m -l 1 http://pub.rhaamo.li/Debian/armel/&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;p&gt;Install all packages with &lt;strong&gt;dpkg -i packagename.deb&lt;/strong&gt; in order:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;_armel.deb&lt;/strong&gt; then &lt;strong&gt;_all.deb&lt;/strong&gt; and in order:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;libglib &amp;#8594; libcairo &amp;#8594; libpango &amp;#8594; libatk &amp;#8594; libgdk &amp;#8594; libgtk2 &amp;#8594; libnotify &amp;#8594; rubygems (optional but usefull)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;p&gt;Not too hard, but you &lt;strong&gt;really need&lt;/strong&gt; to do &lt;em&gt;require &amp;#8216;glib2&amp;#8217;&lt;/em&gt; before &lt;em&gt;require &amp;#8216;rnotify&amp;#8217;&lt;/em&gt; or you will get a beautifull fail.&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;glib2&amp;#39;&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;rnotify&amp;#39;&lt;/span&gt;

&lt;span class=&quot;no&quot;&gt;Notify&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;init&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;test&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;notif&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Notify&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Notification&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;X&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kp&quot;&gt;nil&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kp&quot;&gt;nil&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kp&quot;&gt;nil&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;notif&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;timeout&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;5000&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;notif&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;update&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;notif test&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;message de test&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kp&quot;&gt;nil&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;notif&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;show&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;p&gt;That&amp;#8217;s all, the &lt;a href=&quot;http://ruby-libnotify.rubyforge.org/&quot;&gt;docs are here&lt;/a&gt;&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Using acts_as_versioned with rails3</title>
   <link href="http://bavomatic.net/rails3/2010/06/12/using-acts-as-versioned-with-rails3.html"/>
   <updated>2010-06-12T00:00:00+02:00</updated>
   <id>http://bavomatic.net/rails3/2010/06/12/using-acts-as-versioned-with-rails3</id>
   <content type="html">&lt;p&gt;Simple usage of acts as versioned plugin with rails3.&lt;/p&gt;
&lt;p&gt;&lt;!-- -**-END-**- --&gt;&lt;/p&gt;
&lt;h2&gt;Intro&lt;/h2&gt;
&lt;p&gt;In this post i will use some values from one of my projects:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Model name: &amp;#8220;paste&amp;#8221;&lt;/li&gt;
	&lt;li&gt;Some columns inside the model etc.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Don&amp;#8217;t lost to adapt for you&amp;#8230;&lt;/p&gt;
&lt;h2&gt;Installation&lt;/h2&gt;
&lt;p&gt;Just put inside your &lt;strong&gt;Gemfile&lt;/strong&gt;:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;&lt;span class=&quot;n&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;acts_as_versioned&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:git&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;git://github.com/xspond/acts_as_versioned.git&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:branch&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;rails3&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;h2&gt;Config&lt;/h2&gt;
&lt;p&gt;In the model to acts_as_versioned, add:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;&lt;span class=&quot;n&quot;&gt;acts_as_versioned&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:table_name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:paste_versions&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;p&gt;Add a migration:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;AddVersionedPaste&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;ActiveRecord&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Migration&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;up&lt;/span&gt;
    &lt;span class=&quot;no&quot;&gt;Paste&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;create_versioned_table&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;

  &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;down&lt;/span&gt;
    &lt;span class=&quot;no&quot;&gt;Paste&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;drop_versioned_table&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;p&gt;Then run &lt;em&gt;rake db:migrate&lt;/em&gt; , i need to run it twice, it fails on &lt;em&gt;Paste.create\&lt;em&gt;versioned\&lt;/em&gt;table&lt;/em&gt; the first time (don&amp;#8217;t know why).&lt;/p&gt;
&lt;h2&gt;Using&lt;/h2&gt;
&lt;p&gt;I will use it from &lt;em&gt;rails console&lt;/em&gt; but it&amp;#8217;s the same from inside the app.&lt;/p&gt;
&lt;p&gt;At this point from the &lt;em&gt;www&lt;/em&gt; i create a paste, then edit it.&lt;/p&gt;
&lt;p&gt;Our &amp;#8216;paste&amp;#8217;:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;&lt;span class=&quot;n&quot;&gt;yespaste&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dev&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Paste&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;find_by_id&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#&amp;lt;Paste id: 1, pid: &amp;quot;lrns2Lmxfo&amp;quot;, language: &amp;quot;plaintext&amp;quot;, expiration: 1276347188, expiration_choosed: 3600, comment: &amp;quot;foo v2&amp;quot;, paste: &amp;quot;foo v2&amp;quot;, private: 0, no_bbcode: 0, user_id: 1, created_at: &amp;quot;2010-06-12 11:47:26&amp;quot;, updated_at: &amp;quot;2010-06-12 11:53:08&amp;quot;, version: 2&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;p&gt;As you can see, it&amp;#8217;s the &amp;#8216;&lt;em&gt;v2&lt;/em&gt;&amp;#8217;, i&amp;#8217;ve put &amp;#8216;&lt;em&gt;v1&lt;/em&gt;&amp;#8217; before the edit, so it&amp;#8217;s good.&lt;/p&gt;
&lt;p&gt;But the &amp;#8216;&lt;em&gt;v1&lt;/em&gt;&amp;#8217; paste isn&amp;#8217;t lost, see:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;&lt;span class=&quot;n&quot;&gt;yespaste&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dev&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;versions&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#&amp;lt;Paste::Version id: 1, paste_id: 1, version: 1, pid: &amp;quot;N45mzQmCUG&amp;quot;, language: &amp;quot;plaintext&amp;quot;, expiration: 1276346846, expiration_choosed: 3600, comment: &amp;quot;foo v1&amp;quot;, paste: &amp;quot;foo v1&amp;quot;, private: 0, no_bbcode: 0, user_id: 1, created_at: &amp;quot;2010-06-12 11:47:26&amp;quot;, updated_at: &amp;quot;2010-06-12 11:47:26&amp;quot;&amp;gt;, #&amp;lt;Paste::Version id: 2, paste_id: 1, version: 2, pid: &amp;quot;lrns2Lmxfo&amp;quot;, language: &amp;quot;plaintext&amp;quot;, expiration: 1276347188, expiration_choosed: 3600, comment: &amp;quot;foo v2&amp;quot;, paste: &amp;quot;foo v2&amp;quot;, private: 0, no_bbcode: 0, user_id: 1, created_at: &amp;quot;2010-06-12 11:47:26&amp;quot;, updated_at: &amp;quot;2010-06-12 11:53:08&amp;quot;&amp;gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;p&gt;No, not lost, just versioned, so you can also do:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;&lt;span class=&quot;n&quot;&gt;yespaste&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dev&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;versions&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;find_by_version&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#&amp;lt;Paste::Version id: 1, paste_id: 1, version: 1, pid: &amp;quot;N45mzQmCUG&amp;quot;, language: &amp;quot;plaintext&amp;quot;, expiration: 1276346846, expiration_choosed: 3600, comment: &amp;quot;prout v1&amp;quot;, paste: &amp;quot;proutprout v1&amp;quot;, private: 0, no_bbcode: 0, user_id: 1, created_at: &amp;quot;2010-06-12 11:47:26&amp;quot;, updated_at: &amp;quot;2010-06-12 11:47:26&amp;quot;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content>
 </entry>
 
 <entry>
   <title>Migration du blog vers Jekyll</title>
   <link href="http://bavomatic.net/blog/2010/06/05/migration-du-blog-vers-jekyll.html"/>
   <updated>2010-06-05T00:00:00+02:00</updated>
   <id>http://bavomatic.net/blog/2010/06/05/migration-du-blog-vers-jekyll</id>
   <content type="html">&lt;p&gt;&lt;!-- -**-END-**- --&gt;&lt;br /&gt;
Moi aussi j&amp;#8217;ai vu &lt;a href=&quot;http://jstorimer.com/2009/12/29/jekyll-on-heroku.html&quot;&gt;Jekyll on Heroku&lt;/a&gt; et je me suis dit, &amp;#8220;pourquoi pas&amp;#8221;, mon CBlog datant des hommes préhistoriques et voulant jouer avec des rubys, je me suis lancé.&lt;/p&gt;
&lt;p&gt;Comme souvent, je suis aller piquer un design chez &lt;a href=&quot;http://design.bender-labs.org/&quot;&gt;Bender&lt;/a&gt; ;), maintenant reste à le remplir le nouveau blog.&lt;/p&gt;
&lt;p&gt;Les commentaires arriveront bientôt (merci &lt;a href=&quot;http://ange.librium.org/06-04-2010/Jekyll-Heroku-Comments.html&quot;&gt;ange&lt;/a&gt;), et quelques anciens posts &lt;strong&gt;utiles&lt;/strong&gt; aussi, les autres seront archivées et disponibles bientôt.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class=&quot;caps&quot;&gt;EDIT&lt;/span&gt;:&lt;/strong&gt; Ils sont la :)&lt;br /&gt;
&lt;strong&gt;&lt;span class=&quot;caps&quot;&gt;EDIT&lt;/span&gt;:&lt;/strong&gt; J&amp;#8217;ai refait de zéro le design :)&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Custom HTML-Maker for RBBCode</title>
   <link href="http://bavomatic.net/ruby/2010/02/20/custom_html_tag_maker_for_rbbcode.html"/>
   <updated>2010-02-20T00:00:00+01:00</updated>
   <id>http://bavomatic.net/ruby/2010/02/20/custom_html_tag_maker_for_rbbcode</id>
   <content type="html">&lt;p&gt;How to write a custom &lt;span class=&quot;caps&quot;&gt;HTML&lt;/span&gt;-Maker for RBBCode&lt;/p&gt;
&lt;p&gt;&lt;!-- -**-END-**- --&gt;&lt;/p&gt;
&lt;p&gt;For YesPaste i use &lt;a href=&quot;http://github.com/jarrett/rbbcode/&quot;&gt;RBBCode&lt;/a&gt; for BBCode parsing and need to have a custom tag: &lt;em&gt;code&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;By default &lt;strong&gt;TagNode&lt;/strong&gt; doesn&amp;#8217;t have &lt;em&gt;pure&lt;/em&gt; (read: non parsed) text, after reading &lt;a href=&quot;http://github.com/jarrett/rbbcode/tree/master/lib/rbbcode/&quot;&gt;the source code&lt;/a&gt; i got it:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;YesPasteHtmlMaker&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;RbbCode&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;HtmlMaker&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;html_from_code_tag&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;node&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;node&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nil?&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;lang&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&amp;#39;plaintext&amp;#39;&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;lang&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;node&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;value&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;inner_html&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;node&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;children&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;inject&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;output&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;child&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;output&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;make_html&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;child&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;gsub&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;quot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;br&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;gt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;quot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;,&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;quot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;\&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;quot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;)&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;tokens&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;CodeRay&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;scan&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;inner_html&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lang&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:line_numbers&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;gt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:table&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tokens&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;BBCode_render&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;html_maker&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;YesPasteHtmlMaker&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;new&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;parser&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;RbbCode&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Parser&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:html_maker&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;gt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;html_maker&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;html&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;parser&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;parse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;html&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content>
 </entry>
 
 <entry>
   <title>Mimetype d'un fichier en C</title>
   <link href="http://bavomatic.net/C/2009/12/08/magic-mimetypes.html"/>
   <updated>2009-12-08T00:00:00+01:00</updated>
   <id>http://bavomatic.net/C/2009/12/08/magic-mimetypes</id>
   <content type="html">&lt;p&gt;Obtenir le mimetype d&amp;#8217;un fichier en C&lt;br /&gt;
&lt;!-- -**-END-**- --&gt;&lt;/p&gt;
&lt;p&gt;La lib magic est parfaite pour ça. &lt;em&gt;man 3 libmagic&lt;/em&gt; sous FreeBSD.&lt;/p&gt;
&lt;p&gt;Petit exemple:&lt;/p&gt;
&lt;p&gt;BSDmakefile:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;makefile&quot;&gt;&lt;span class=&quot;nv&quot;&gt;PROG&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;           mimetype
LDFLAGS+&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;       -lmagic
CFLAGS+&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;        -Wall -g -ggdb3
&lt;span class=&quot;nv&quot;&gt;NO_MAN&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;         yes

&lt;span class=&quot;cp&quot;&gt;.include &amp;lt;bsd.prog.mk&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;p&gt;Code:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;c&quot;&gt;&lt;span class=&quot;cp&quot;&gt;#include &amp;lt;magic.h&amp;gt;&lt;/span&gt;
&lt;span class=&quot;cp&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;
&lt;span class=&quot;cp&quot;&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;
&lt;span class=&quot;cp&quot;&gt;#include &amp;lt;err.h&amp;gt;&lt;/span&gt;

&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt;
&lt;span class=&quot;nf&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;argc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;char&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;argv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[])&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;char&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;program_name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;argv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;];&lt;/span&gt;
    &lt;span class=&quot;kt&quot;&gt;char&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;filename&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;argv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;];&lt;/span&gt;

    &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;filename&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;fprintf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;stderr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;quot;Usage: %s file&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;program_name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

    &lt;span class=&quot;k&quot;&gt;struct&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;magic_set&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;magic&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;magic_open&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MAGIC_MIME_TYPE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;magic&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;err&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;quot;magic_set&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

    &lt;span class=&quot;n&quot;&gt;magic_load&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;magic&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

    &lt;span class=&quot;n&quot;&gt;printf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;quot;%s: %s&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;filename&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;magic_file&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;magic&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;filename&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt;

    &lt;span class=&quot;n&quot;&gt;magic_close&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;magic&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content>
 </entry>
 
 <entry>
   <title>OpenBSD en domU HVM et carte réseau giga</title>
   <link href="http://bavomatic.net/OpenBSD/2009/10/11/openbsd-domu-hvm-reseau.html"/>
   <updated>2009-10-11T00:00:00+02:00</updated>
   <id>http://bavomatic.net/OpenBSD/2009/10/11/openbsd-domu-hvm-reseau</id>
   <content type="html">&lt;p&gt;Jusqu&amp;#8217;a maintenant la realteck foirais sur un &lt;strong&gt;blah0: watchdog timeout&lt;/strong&gt; et il fallait utiliser la &lt;em&gt;ne2k_pci&lt;/em&gt; qui présentait le désavantage d&amp;#8217;être en 10BaseT (pas cool).&lt;/p&gt;
&lt;p&gt;Maintenant, depuis Xen 3.3.1 ou peut-être un poil avant, on peut utiliser &lt;em&gt;e1000&lt;/em&gt;.&lt;br /&gt;
&lt;!-- -**-END-**- --&gt;&lt;/p&gt;
&lt;p&gt;Et ça fonctionne très bien !&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;text&quot;&gt;# ifconfig em0
em0: flags=8843&amp;lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&amp;gt; mtu 1500
        lladdr 00:16:3e:15:7e:b4
         priority: 0
         groups: egress
         media: Ethernet autoselect (1000baseT full-duplex)
         status: active
         inet 42.42.42.42 netmask 0xffffffc0 broadcast 42.42.42.42
         inet6 ...%em0 prefixlen 64 scopeid 0x1
# dmesg|grep em0
em0 at pci0 dev 4 function 0 &amp;quot;Intel PRO/1000MT (82540EM)&amp;quot; rev 0x03: apic 1 int 5 (irq 5), address 00:16:3e:15:7e:b4
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content>
 </entry>
 
 
</feed>