<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>Neyric.com</title>
    <link>http://www.neyric.com/</link>
    <description />
    <language>fr-FR</language>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/neyricdotcom" type="application/rss+xml" /><item>
      <title>New York changed</title>
      <description>&lt;p&gt;Pierre est à New York ? Vous ne savez pas qui est Pierre ?&lt;/p&gt;

&lt;p&gt;Une chose est sûre, l'espace aérien de la ville n'est plus aussi accessible qu'il ne l'était.&lt;/p&gt;

&lt;p&gt;En fouillant dans mes cartons, j'ai retrouvé quelques photos d'un voyage à New York en 1995. Si mes souvenirs sont exacts, nous avions pris un avion (pas un avion de ligne hein... 4 places c'est tout!) depuis Boston. L'arrivée à NYC était très impressionnante, et nous avions pu approcher Manhattan de très près.&lt;/p&gt;


&lt;a href="http://flickr.com/photos/neyric/2477900109/in/photostream/"&gt;&lt;img src="http://farm3.static.flickr.com/2089/2477900109_a14e832257.jpg?v=0" border="0"/&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;


&lt;a href="http://flickr.com/photos/neyric/2477900575/in/photostream/"&gt;&lt;img src="http://farm3.static.flickr.com/2156/2477900575_1d435e0c18.jpg?v=0" border="0"/&gt;&lt;/a&gt;

&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/neyricdotcom/~4/286968978" height="1" width="1"/&gt;</description>
      <author>Eric Abouaf</author>
      <pubDate>Fri, 09 May 2008 18:23:02 +0200</pubDate>
      <link>http://feeds.feedburner.com/~r/neyricdotcom/~3/286968978/new-york-changed</link>
      <guid isPermaLink="false">new-york-changed</guid>
    <feedburner:origLink>http://www.neyric.com/new-york-changed</feedburner:origLink></item>
    <item>
      <title>Vos flux sur timeline</title>
      <description>&lt;p&gt;
Toujours à propos des timelines (cf &lt;a href="http://www.neyric.com/blog/dipity-timelines"&gt;post précédent sur Dipity&lt;/a&gt;), le projet SIMILE ("Semantic Interoperability of Metadata and Information in unLike Environments" ouf !) dispose d'un &lt;a href="http://simile.mit.edu/timeline/" target="_new"&gt;très bon composant de timeline&lt;/a&gt;.
&lt;/p&gt;

&lt;p&gt;Je me suis amusé à transformer quelques flux RSS au format XML attendu par cet outil pour visualiser mon utilisation de divers web services. Voici un screenshot du rendu (&lt;a href="http://neyric.com/~neyric/timeline/"&gt;cliquez pour voir la démo&lt;/a&gt; !)&lt;/p&gt;

&lt;a href="http://neyric.com/~neyric/timeline/"&gt;
&lt;img src='http://www.neyric.com/files/neyric-timeline.jpg'/&gt;&lt;br /&gt;
http://neyric.com/~neyric/timeline/&lt;/a&gt;

&lt;p&gt;J'adore. Et vous, vous voulez la même ? ;)&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/neyricdotcom/~4/285405452" height="1" width="1"/&gt;</description>
      <author>Eric Abouaf</author>
      <pubDate>Wed, 07 May 2008 16:34:19 +0200</pubDate>
      <link>http://feeds.feedburner.com/~r/neyricdotcom/~3/285405452/vos-flux-sur-timeline</link>
      <guid isPermaLink="false">vos-flux-sur-timeline</guid>
    <feedburner:origLink>http://www.neyric.com/vos-flux-sur-timeline</feedburner:origLink></item>
    <item>
      <title>Dipity timelines</title>
      <description>&lt;p&gt;&lt;a href="http://www.dipity.com" target="_new"&gt;Dipity&lt;/a&gt; est un service très sympa permettant de créer des frises chronologiques ("timelines" en anglais).&lt;/p&gt;

&lt;p&gt;L'un des principaux avantages de ce service, est de pouvoir créer des timelines très rapidement grâce à n'importe quel flux rss. Vous pouvez ensuite rajouter des photos/vidéos ou encore un positionnement géographique sur chacun des évènements.&lt;/p&gt;

&lt;p&gt;Vous pouvez ensuite exporter le composant vers votre site. Voici un exemple qui utilise le flux RSS &lt;a href=" http://clicrdv.com/rss"&gt;Actualités de ClicRDV&lt;/a&gt;: &lt;/p&gt;

&lt;script src="http://www.dipity.com/user/neyric/timeline/ClicRDV/embed"&gt;&lt;/script&gt;&lt;img src="http://feeds.feedburner.com/~r/neyricdotcom/~4/281977259" height="1" width="1"/&gt;</description>
      <author>Eric Abouaf</author>
      <pubDate>Fri, 02 May 2008 10:21:38 +0200</pubDate>
      <link>http://feeds.feedburner.com/~r/neyricdotcom/~3/281977259/dipity-timelines</link>
      <guid isPermaLink="false">dipity-timelines</guid>
    <feedburner:origLink>http://www.neyric.com/dipity-timelines</feedburner:origLink></item>
    <item>
      <title>A new Javascript blog is born</title>
      <description>&lt;p&gt;Hi everyone !&lt;br /&gt;
I finally made the step of splitting my personal website into two different websites. My javascript-related posts have become way too pervasive.&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;&lt;a href="http://javascript.neyric.com/"&gt;http://javascript.neyric.com/&lt;/a&gt; - neyric's Javascript Blog&lt;/li&gt;
 &lt;li&gt;This website, which will only contains my french articles.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For RSS readers, be sure to subscribe to &lt;a href="http://javascript.neyric.com/blog/feed/"&gt;http://javascript.neyric.com/blog/feed/&lt;/a&gt; if you're interested in Javascript.&lt;/p&gt;


&lt;hr /&gt;


&lt;p&gt;Bonjour à tous !&lt;br /&gt;
J'ai finallement décidé de séparer mon site personnel en deux. Mes articles concernant le javascript sont devenus trop envahissants.&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;&lt;a href="http://javascript.neyric.com/"&gt;http://javascript.neyric.com/&lt;/a&gt; - neyric's Javascript Blog&lt;/li&gt;
 &lt;li&gt;Ce site, qui ne contiendra que des articles en français.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pour ceux qui me suivent par RSS, n'oubliez pas de vous inscrire à &lt;a href="http://javascript.neyric.com/blog/feed/"&gt;http://javascript.neyric.com/blog/feed/&lt;/a&gt; si vous vous intéressez au Javascript.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/neyricdotcom/~4/279919335" height="1" width="1"/&gt;</description>
      <author>Eric Abouaf</author>
      <pubDate>Fri, 08 Feb 2008 14:47:29 +0100</pubDate>
      <link>http://feeds.feedburner.com/~r/neyricdotcom/~3/279919335/a-new-javascript-blog-is-born</link>
      <guid isPermaLink="false">a-new-javascript-blog-is-born</guid>
    <feedburner:origLink>http://www.neyric.com/a-new-javascript-blog-is-born</feedburner:origLink></item>
    <item>
      <title>ClicRDV sur TV7</title>
      <description>&lt;div&gt;&lt;object width="420" height="520"&gt;&lt;param name="movie" value="http://www.dailymotion.com/swf/x4air0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.dailymotion.com/swf/x4air0" type="application/x-shockwave-flash" width="420" height="520" allowFullScreen="true" allowScriptAccess="always"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://www.dailymotion.com/video/x4air0_clicrdv-tv7-bordeaux-06-fevrier-200_tech"&gt;ClicRDV - TV7 Bordeaux - 06 fevrier 2008&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;i&gt;envoy&amp;eacute; par &lt;a href="http://www.dailymotion.com/neyric"&gt;neyric&lt;/a&gt;&lt;/i&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/neyricdotcom/~4/279919336" height="1" width="1"/&gt;</description>
      <author>Eric Abouaf</author>
      <pubDate>Wed, 06 Feb 2008 18:03:59 +0100</pubDate>
      <link>http://feeds.feedburner.com/~r/neyricdotcom/~3/279919336/clicrdv-sur-tv7</link>
      <guid isPermaLink="false">clicrdv-sur-tv7</guid>
    <feedburner:origLink>http://www.neyric.com/clicrdv-sur-tv7</feedburner:origLink></item>
    <item>
      <title>Clic rendez vous s'appelle ClicRDV</title>
      <description>&lt;p&gt;Beaucoup de personnes cherchent désespérément "clic rendez vous" sur google afin de trouver le site de notre société qui s'appelle en réalité &lt;a href="http://www.clicrdv.com/" target="_new"&gt;ClicRDV&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Cette erreur est normale, puisque ce nom se prononce bien "clic rendez-vous". Nous avons donc réservé le nom de domaine &lt;a href="http://www.clic-rendez-vous.com/"&gt;clic-rendez-vous.com&lt;/a&gt; qui redirige vers le bon site internet !&lt;/p&gt;

Espérons que les gens nous trouverons plus facilement !&lt;img src="http://feeds.feedburner.com/~r/neyricdotcom/~4/279919337" height="1" width="1"/&gt;</description>
      <author>Eric Abouaf</author>
      <pubDate>Tue, 05 Feb 2008 15:27:02 +0100</pubDate>
      <link>http://feeds.feedburner.com/~r/neyricdotcom/~3/279919337/clic-rendez-vous-sappelle-clicrdv</link>
      <guid isPermaLink="false">clic-rendez-vous-sappelle-clicrdv</guid>
    <feedburner:origLink>http://www.neyric.com/clic-rendez-vous-sappelle-clicrdv</feedburner:origLink></item>
    <item>
      <title>KGS Go Rank for Facebook.com</title>
      <description>&lt;p&gt;&lt;a href="http://www.gokgs.com/"&gt;KGS&lt;/a&gt; is the name of the internet server where we play &lt;a href="http://en.wikipedia.org/wiki/Go_%28board_game%29"&gt;GO&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I created a small &lt;a href="http://www.facebook.com"&gt;facebook&lt;/a&gt; application that displays your KGS rank graph on your facebook profile page. It looks like that: &lt;/p&gt;

&lt;center&gt;&lt;img src="http://www.gokgs.com/servlet/graph/neyric-fr_FR.png" height="240" width="320"&gt;&lt;/center&gt;&lt;br&gt;

&lt;p&gt;To install it, login to facebook then go to :
&lt;a href="http://apps.facebook.com/kgsgorank/"&gt;&lt;img src="http://photos-b.ak.facebook.com/photos-ak-sctm/v43/50/696680762/app2_696680762_4764562509_5402.gif" style="border: 0pt none ;"&gt; http://apps.facebook.com/kgsgorank/&lt;/a&gt;&lt;/p&gt;

See you on KGS or facebook !&lt;img src="http://feeds.feedburner.com/~r/neyricdotcom/~4/279919338" height="1" width="1"/&gt;</description>
      <author>Eric Abouaf</author>
      <pubDate>Wed, 22 Aug 2007 10:31:00 +0200</pubDate>
      <link>http://feeds.feedburner.com/~r/neyricdotcom/~3/279919338/kgs-go-rank-for-facebookcom</link>
      <guid isPermaLink="false">kgs-go-rank-for-facebookcom</guid>
    <feedburner:origLink>http://www.neyric.com/kgs-go-rank-for-facebookcom</feedburner:origLink></item>
    <item>
      <title>How to delete a many-to-many association with Rails</title>
      <description>&lt;p&gt;Judging by the number of Ruby on Rails developpers asking themselves this question,&lt;br&gt;
this is the missing example of Rails. (It's not in my Rails reference book, and 
I've never seen any example on any blog.)&lt;/p&gt;

&lt;p&gt;One solution is to create a new model for the association. It &lt;b&gt;schould&lt;/b&gt; be the case&lt;br&gt;
if you add attributes to the association (because &lt;i&gt;push_with_attributes&lt;/i&gt; is now deprecated).&lt;br&gt;
You can then simply find the association given the ids of your linked object and call destroy.&lt;/p&gt;

&lt;p&gt;However, when you don't have any attribute in your liaison, the &lt;i&gt;has_and_belongs_to_many&lt;/i&gt;&lt;br&gt;
is nicer to work with. (you don't need a rails model for the liaison.)&lt;br&gt;
Here is a link to the methods &lt;a href="http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#M000645"&gt;
&lt;i&gt;has_and_belongs_to_many&lt;/i&gt; adds&lt;/a&gt; where we can read :&lt;/p&gt;
&lt;br&gt;
&lt;pre&gt;"collection.delete(object, …) - removes one or more objects from the 
collection by removing their associations from the join table.
This does not destroy the objects."
&lt;/pre&gt;
&lt;br&gt;
&lt;p&gt;Let's assume we dispose of 2 models 'Post' and 'Category' with a N-N association :&lt;/p&gt;

&lt;pre name="code2" class="ruby"&gt;class Post &lt; ActiveRecord::Base
  has_and_belongs_to_many :categories
end

class Category &lt; ActiveRecord::Base
  has_and_belongs_to_many :posts
end

&lt;/pre&gt;

&lt;p&gt;To delete an association (remove a post from a category) you can use this method :&lt;/p&gt;

&lt;pre name="code2" class="ruby"&gt;  def remove_post_from_category
     post = Post.find(params[:post][:id])
     category = post.categories.find(params[:category][:id])

     if category
        post.categories.delete(category)
     end

  end

&lt;/pre&gt;

&lt;p&gt;This function will destroy the association but &lt;b&gt;won't&lt;/b&gt; destroy the category.&lt;/p&gt;

&lt;p&gt;You can also removes all the categories from the posts by using :&lt;/p&gt;
&lt;br&gt;
&lt;pre&gt;collection.clear - removes every object from the collection. 
This does not destroy the objects.&lt;/pre&gt;
&lt;br&gt;
&lt;p&gt;In our example :&lt;/p&gt;

&lt;pre name="code2" class="ruby"&gt; 
post.categories.clear
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/neyricdotcom/~4/279919339" height="1" width="1"/&gt;</description>
      <author>Eric Abouaf</author>
      <pubDate>Sun, 08 Jul 2007 12:59:53 +0200</pubDate>
      <link>http://feeds.feedburner.com/~r/neyricdotcom/~3/279919339/how-to-delete-a-many-to-many-association-with-rails</link>
      <guid isPermaLink="false">how-to-delete-a-many-to-many-association-with-rails</guid>
    <feedburner:origLink>http://www.neyric.com/how-to-delete-a-many-to-many-association-with-rails</feedburner:origLink></item>
    <item>
      <title>Bluetooth juggling ball update</title>
      <description>&lt;p&gt;Voici quelques photos des nouvelles balles contenant les capteurs WiTilt.&lt;/p&gt;

&lt;center&gt;

  &lt;img src="/images/posts/bluetooth-juggling-ball/bjb_19_ballesconnecteur.jpg" style="width: 480px; height: 360px;"&gt;
  &lt;p&gt;Voici les 3 nouvelles balles avec le connecteur pour le WiTilt.&lt;/p&gt;

  &lt;img src="/images/posts/bluetooth-juggling-ball/bjb_20_ballesfermees.jpg" style="width: 480px; height: 360px;"&gt;
  &lt;p&gt;Les balles fermées ne laissent absolument rien voir de différent.&lt;/p&gt;

  &lt;img src="/images/posts/bluetooth-juggling-ball/bjb_21_ouverturefermee.jpg" style="width: 480px; height: 360px;"&gt;
  &lt;p&gt;L'ouverture se voit à peine de près et devient totalement invisible à un mètre.&lt;/p&gt;

&lt;/center&gt;&lt;img src="http://feeds.feedburner.com/~r/neyricdotcom/~4/279919340" height="1" width="1"/&gt;</description>
      <author>Eric Abouaf</author>
      <pubDate>Sat, 07 Jul 2007 22:36:22 +0200</pubDate>
      <link>http://feeds.feedburner.com/~r/neyricdotcom/~3/279919340/bluetooth-juggling-ball-update</link>
      <guid isPermaLink="false">bluetooth-juggling-ball-update</guid>
    <feedburner:origLink>http://www.neyric.com/bluetooth-juggling-ball-update</feedburner:origLink></item>
    <item>
      <title>Get rid of favicon.ico 404 errors with rails</title>
      <description>&lt;p&gt;Every time your browser loads an new url, it also request a file 
called 'favicon.ico' in the same subdirectory. This generates a LOT of 
errors in the Ruby on Rails logs of my app.&lt;/p&gt;

&lt;p&gt;One way to avoid those errors is to redirect the browser to the root /favicon.ico file.&lt;br&gt;
Just add this line in the /public/.htaccess file of your rails project :&lt;/p&gt;

&lt;pre style="background-color: black; color: white;"&gt; RewriteRule ^(.*)favicon.ico$ favicon.ico [QSA]
&lt;/pre&gt;

&lt;p&gt;Do you use another method to resolve this problem ?&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/neyricdotcom/~4/279919341" height="1" width="1"/&gt;</description>
      <author>Eric Abouaf</author>
      <pubDate>Sat, 07 Jul 2007 17:29:01 +0200</pubDate>
      <link>http://feeds.feedburner.com/~r/neyricdotcom/~3/279919341/get-rid-of-faviconico-404-errors-with-rails</link>
      <guid isPermaLink="false">get-rid-of-faviconico-404-errors-with-rails</guid>
    <feedburner:origLink>http://www.neyric.com/get-rid-of-faviconico-404-errors-with-rails</feedburner:origLink></item>
  </channel>
</rss>
