<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><!-- generator="wordpress/2.3.3" --><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Joopp's Blog</title>
	<link>http://blog.joopp.com</link>
	<description>Blogging about web concepts &amp; technology</description>
	<pubDate>Thu, 09 Jul 2009 10:00:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/joopp" type="application/rss+xml" /><feedburner:emailServiceId>joopp</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>Logic vs. ActsAs</title>
		<link>http://blog.joopp.com/2009/07/09/logic-vs-actsas/</link>
		<comments>http://blog.joopp.com/2009/07/09/logic-vs-actsas/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 09:59:45 +0000</pubDate>
		<dc:creator>joost</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[authlogic]]></category>

		<category><![CDATA[openid]]></category>

		<category><![CDATA[plugin]]></category>

		<category><![CDATA[railscast]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[ruby on rails]]></category>

		<category><![CDATA[searchlogic]]></category>

		<guid isPermaLink="false">http://blog.joopp.com/2009/07/09/logic-vs-actsas/</guid>
		<description><![CDATA[There recently came along some new Rails plugins: SearchLogic and AuthLogic. Both are coming from Ben Johnson (BinaryLogic). He seems to have some more logic..
SearchLogic makes it easy to do search and ordering for your models. There is a nice and shiny new version (v2) .. only thing is that it has some bugs.
AuthLogic makes [...]]]></description>
			<content:encoded><![CDATA[<p>There recently came along some new Rails plugins: <a href="http://github.com/binarylogic/searchlogic/tree/master" title="SearchLogic">SearchLogic</a> and <a href="http://github.com/binarylogic/authlogic/tree/master" title="AuthLogic">AuthLogic</a>. Both are coming from Ben Johnson (<a href="http://www.binarylogic.com/">BinaryLogic</a>). He seems to have some more <a href="http://www.binarylogic.com/open-source-projects/">logic</a>..</p>
<p>SearchLogic makes it easy to do search and ordering for your models. There is a nice and shiny new version (v2) .. only thing is that it has some <a href="http://binarylogic.lighthouseapp.com/projects/16601/tickets/92-conflict-with-a-scope-on-a-column-beginning-with-the-name-of-an-association">bugs</a>.</p>
<p>AuthLogic makes it easy to do authentication. See the <a href="http://railscasts.com/episodes/160-authlogic" title="AuthLogic Railscast">AuthLogic RailsCast</a>. Only thing that I miss is a list with known plugins.. so here are some I&#8217;ve found:</p>
<ul>
<li>AuthLogic oAuth - <a href="http://github.com/jrallison/authlogic_oauth/">http://github.com/jrallison/authlogic_oauth/</a></li>
<li>AuthLogic OpenID - <a href="http://github.com/binarylogic/authlogic_openid/">http://github.com/binarylogic/authlogic_openid/</a></li>
<li>AuthLogic LDAP - <a href="http://github.com/binarylogic/authlogic_ldap/">http://github.com/binarylogic/authlogic_ldap/</a></li>
</ul>
<p>Let me know if you know Twitter, Google or any other.. or how they are supported using one of the above..</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.joopp.com%2F2009%2F07%2F09%2Flogic-vs-actsas%2F';
  addthis_title  = 'Logic+vs.+ActsAs';
  addthis_pub    = 'joopp';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.joopp.com/2009/07/09/logic-vs-actsas/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hyves API wrapper put on GitHub</title>
		<link>http://blog.joopp.com/2009/07/09/hyves-api-wrapper-put-on-github/</link>
		<comments>http://blog.joopp.com/2009/07/09/hyves-api-wrapper-put-on-github/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 07:57:53 +0000</pubDate>
		<dc:creator>joost</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[hyves]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://blog.joopp.com/2009/07/09/hyves-api-wrapper-put-on-github/</guid>
		<description><![CDATA[Since the Ruby Hyves API wrapper is not being maintained (at least not by me :)).. I put it on GitHub to be able to do the maintenance more easily.
See:  http://github.com/joost/hyves_api

  addthis_url    = 'http%3A%2F%2Fblog.joopp.com%2F2009%2F07%2F09%2Fhyves-api-wrapper-put-on-github%2F';
  addthis_title  = 'Hyves+API+wrapper+put+on+GitHub';
  addthis_pub    = 'joopp';

]]></description>
			<content:encoded><![CDATA[<p>Since the Ruby Hyves API wrapper is not being maintained (at least not by me :)).. I put it on GitHub to be able to do the maintenance more easily.</p>
<p>See:  <a href="http://github.com/joost/hyves_api" title="Ruby Hyves API wrapper">http://github.com/joost/hyves_api</a></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.joopp.com%2F2009%2F07%2F09%2Fhyves-api-wrapper-put-on-github%2F';
  addthis_title  = 'Hyves+API+wrapper+put+on+GitHub';
  addthis_pub    = 'joopp';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.joopp.com/2009/07/09/hyves-api-wrapper-put-on-github/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Studenten maken iPhone WebApp op basis van YelloYello API</title>
		<link>http://blog.joopp.com/2009/07/02/studenten-maken-iphone-webapp-op-basis-van-yelloyello-api/</link>
		<comments>http://blog.joopp.com/2009/07/02/studenten-maken-iphone-webapp-op-basis-van-yelloyello-api/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 15:47:11 +0000</pubDate>
		<dc:creator>joost</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Concepts]]></category>

		<category><![CDATA[YelloYello]]></category>

		<category><![CDATA[api]]></category>

		<category><![CDATA[hogeschool rotterdam]]></category>

		<category><![CDATA[yelloyello]]></category>

		<guid isPermaLink="false">http://blog.joopp.com/2009/07/02/studenten-maken-iphone-webapp-op-basis-van-yelloyello-api/</guid>
		<description><![CDATA[Het team bestaande uit Martijn Willemse en andere studenten van de Hogeschool Rotterdam heeft afgelopen woensdag hun iPhone WebApp gepresenteerd. De WebApp maakt gebruik van de YelloYello API en kan alles vinden wat handig is tijdens het uitgaan!
Voor iedereen met een iPhone is de applicatie te vinden op: http://www.me2i.nl/mug. Zie onderstaand filmpje en foto&#8217;s voor [...]]]></description>
			<content:encoded><![CDATA[<p>Het team bestaande uit Martijn Willemse en andere studenten van de <a href="http://www.hogeschool-rotterdam.nl/">Hogeschool Rotterdam</a> heeft afgelopen woensdag hun iPhone WebApp gepresenteerd. De WebApp maakt gebruik van de <a href="http://www.yelloyello.com">YelloYello</a> API en kan alles vinden wat handig is tijdens het uitgaan!</p>
<p>Voor iedereen met een iPhone is de applicatie te vinden op: <a href="http://www.me2i.nl/mug">http://www.me2i.nl/mug</a>. Zie onderstaand filmpje en foto&#8217;s voor meer informatie</p>
<p><object class="embed" width="425" height="350" type="application/x-shockwave-flash" data="http://www.youtube.com/v/aQoN-CCsNyQ"><param name="wmode" value="transparent" /><param name="movie" value="http://www.youtube.com/v/aQoN-CCsNyQ" /><em>You need to a flashplayer enabled browser to view this YouTube video</em></object></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.joopp.com%2F2009%2F07%2F02%2Fstudenten-maken-iphone-webapp-op-basis-van-yelloyello-api%2F';
  addthis_title  = 'Studenten+maken+iPhone+WebApp+op+basis+van+YelloYello+API';
  addthis_pub    = 'joopp';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.joopp.com/2009/07/02/studenten-maken-iphone-webapp-op-basis-van-yelloyello-api/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Not the biggest design ripoff.. copyleft..</title>
		<link>http://blog.joopp.com/2009/06/23/not-the-biggest-design-ripoff-copyleft/</link>
		<comments>http://blog.joopp.com/2009/06/23/not-the-biggest-design-ripoff-copyleft/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 20:49:54 +0000</pubDate>
		<dc:creator>joost</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[copyleft]]></category>

		<category><![CDATA[copyright]]></category>

		<category><![CDATA[creative commons]]></category>

		<category><![CDATA[stealing]]></category>

		<category><![CDATA[techcrunch]]></category>

		<category><![CDATA[thenextweb]]></category>

		<guid isPermaLink="false">http://blog.joopp.com/2009/06/23/not-the-biggest-design-ripoff-copyleft/</guid>
		<description><![CDATA[A while ago I read this article on TheNextWeb showing a site copying the complete idea of an OSX piece of software. The writer was hating it.. but in fact this happens all the time..all over the internet!
One example is the technology blog TechCrunch vs. the technology blog TheNextWeb. Look at the sites:

both white&#8217;ish (TheNextWeb [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago I read this article on <a href="http://thenextweb.com/2009/06/17/biggest-design-rip/" title="Biggest Design Ripoff I've Ever Seen">TheNextWeb</a> showing a site copying the complete idea of an OSX piece of software. The writer was hating it.. but in fact this happens <strong>all the time</strong>..<strong>all over the internet!</strong></p>
<p>One example is the <a href="http://www.techcrunch.com/">technology blog TechCrunch</a> vs. the <a href="http://thenextweb.com/">technology blog TheNextWeb</a>. Look at the sites:</p>
<ul>
<li>both white&#8217;ish (TheNextWeb became white recently if I&#8217;m correct)</li>
<li>both have a big banner in top with the featured posts</li>
<li>both have nice bloggy square banners on the right</li>
<li>they just have the same appearance..</li>
</ul>
<p>Of course all blogs look the same.. but this are three typical things.. I can ramble on about both having all these news articles below each other, both having pagination on the bottom of the page, both being coded in html.. <img src='http://blog.joopp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The point I&#8217;m trying to make is.. everything (digital) on the Internet gets copied: movies, music, blog articles, designs, javascript, open source code, blog design, program design, etc..etc.. The question is: what about it? Is it bad? Should we stop it? Does it make things better (like with open source code)? How far can we go? Do we steal a blog design or a complete program? Is turning an OSX app into a WebApp copy-ing or innovative?</p>
<p>Interesting stuff <img src='http://blog.joopp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> that is keeping people busy for a long time..and probably will..</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.joopp.com%2F2009%2F06%2F23%2Fnot-the-biggest-design-ripoff-copyleft%2F';
  addthis_title  = 'Not+the+biggest+design+ripoff..+copyleft..';
  addthis_pub    = 'joopp';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.joopp.com/2009/06/23/not-the-biggest-design-ripoff-copyleft/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Google maps window.jstiming error</title>
		<link>http://blog.joopp.com/2009/04/01/google-maps-windowjstiming-error/</link>
		<comments>http://blog.joopp.com/2009/04/01/google-maps-windowjstiming-error/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 16:18:16 +0000</pubDate>
		<dc:creator>joost</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.joopp.com/2009/04/01/google-maps-windowjstiming-error/</guid>
		<description><![CDATA[I just found out some of our sites using Google Maps stopped working (at least the Google Maps part) because of a window.jstiming javascript error. Now&#8230;. what do you do? Check on twitter.com if other people had the same problem.. and yes.. at least one was.
So now you know it is not YOU that is [...]]]></description>
			<content:encoded><![CDATA[<p>I just found out some of our sites using Google Maps stopped working (at least the Google Maps part) because of a <span class="status-body"><span class="entry-content">window.jstiming javascript error. Now&#8230;. what do you do? Check on <a href="http://search.twitter.com/search?q=window.jstiming">twitter.com</a> if other people had the same problem.. and yes.. at least one was.</span></span></p>
<p>So now you know it is not YOU that is to blame.. but Google <img src='http://blog.joopp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>BTW, fix it using the stable js version (2.s instead of 2.x or whatever you&#8217;re using):</p>
<p><code><br />
&lt;script src="http://maps.google.com/maps?file=api&amp;am<strong>p;v=2.s&amp;</strong>amp;key=yourkey&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
</code></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.joopp.com%2F2009%2F04%2F01%2Fgoogle-maps-windowjstiming-error%2F';
  addthis_title  = 'Google+maps+window.jstiming+error';
  addthis_pub    = 'joopp';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.joopp.com/2009/04/01/google-maps-windowjstiming-error/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The BOM, UTF-8 and Rails</title>
		<link>http://blog.joopp.com/2009/03/16/the-bom-utf-8-and-rails/</link>
		<comments>http://blog.joopp.com/2009/03/16/the-bom-utf-8-and-rails/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 17:15:43 +0000</pubDate>
		<dc:creator>joost</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[bom]]></category>

		<category><![CDATA[ruby on rails]]></category>

		<category><![CDATA[utf8]]></category>

		<guid isPermaLink="false">http://blog.joopp.com/2009/03/16/the-bom-utf-8-and-rails/</guid>
		<description><![CDATA[Some nasty things can happen to your design if your files are saved with a Byte-Order Mark (BOM) character at the beginning. We had a view that was totally f*cked up in Firefox by this. The view was simple:

1
2
3
4
5
Some layout around a
&#60;%= yield %&#62;
or around a
&#60;%= @content_for_layout %&#62;
and a secret character gets put in.. it's [...]]]></description>
			<content:encoded><![CDATA[<p>Some nasty things can happen to your design if your files are saved with a<a href="http://en.wikipedia.org/wiki/Byte-order_mark"> Byte-Order Mark (BOM) </a>character at the beginning. We had a view that was totally f*cked up in Firefox by this. The view was simple:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre>Some layout around a
&lt;%= yield %&gt;
or around a
&lt;%= @content_for_layout %&gt;
and a secret character gets put in.. it's the BOM!</pre></td></tr></table></div>

<p>In our view (in Firefox) there was a new-line added and a div was moved and had a spacing. To remove it check <a href="http://blog.7thcross.com/?p=22">here</a> and use the script <a href="http://rishida.net/blog/?p=102">here</a>!</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.joopp.com%2F2009%2F03%2F16%2Fthe-bom-utf-8-and-rails%2F';
  addthis_title  = 'The+BOM%2C+UTF-8+and+Rails';
  addthis_pub    = 'joopp';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.joopp.com/2009/03/16/the-bom-utf-8-and-rails/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Download those databases..</title>
		<link>http://blog.joopp.com/2009/01/27/download-those-databases/</link>
		<comments>http://blog.joopp.com/2009/01/27/download-those-databases/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 10:53:25 +0000</pubDate>
		<dc:creator>joost</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[database]]></category>

		<category><![CDATA[download]]></category>

		<category><![CDATA[imdb]]></category>

		<guid isPermaLink="false">http://blog.joopp.com/2009/01/27/download-those-databases/</guid>
		<description><![CDATA[What I did know was that you could download wikipedia and also wikitravel. But you can even download the IMDB to some extend. It&#8217;s all in text format.. but it IS available.
I could not find a (Ruby) script that imports all data in a usable database structure however.. anybody got an idea?
[update]
I found IMDbPY that [...]]]></description>
			<content:encoded><![CDATA[<p>What I did know was that you could <a href="http://en.wikipedia.org/wiki/Wikipedia_database" target="_blank">download wikipedia</a> and also <a href="http://wikitravel.org/en/Wikitravel:Offline_Reader_Expedition" target="_blank">wikitravel</a>. But you can even<a href="http://www.imdb.com/interfaces" target="_blank"> download the IMDB</a> to some extend. It&#8217;s all in text format.. but it IS available.</p>
<p>I could not find a (Ruby) script that imports all data in a usable database structure however.. anybody got an idea?</p>
<p>[update]</p>
<p>I found <a href="http://imdbpy.sourceforge.net/" target="_blank">IMDbPY</a> that seems to do just that!</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.joopp.com%2F2009%2F01%2F27%2Fdownload-those-databases%2F';
  addthis_title  = 'Download+those+databases..';
  addthis_pub    = 'joopp';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.joopp.com/2009/01/27/download-those-databases/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Plugin gem dependencies in your environment.rb</title>
		<link>http://blog.joopp.com/2009/01/26/plugin-gem-dependencies-in-your-environmentrb/</link>
		<comments>http://blog.joopp.com/2009/01/26/plugin-gem-dependencies-in-your-environmentrb/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 15:06:15 +0000</pubDate>
		<dc:creator>joost</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[gems]]></category>

		<category><![CDATA[hack]]></category>

		<category><![CDATA[install]]></category>

		<category><![CDATA[plugins]]></category>

		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://blog.joopp.com/2009/01/26/plugin-gem-dependencies-in-your-environmentrb/</guid>
		<description><![CDATA[One good thing in recent Ruby on Rails are Gem Dependencies! However.. they are very frustrating when you need gems in your plugins. This gives you a Catch 22..
The rake task to install gems:

1
sudo rake gems:install # Use sudo! See notes below

gives you an error like:

1
2
3
4
5
6
sudo rake gems:install
(in /your/rails/dir)
rake aborted!
no such file to load -- [...]]]></description>
			<content:encoded><![CDATA[<p>One good thing in recent Ruby on Rails are <a href="http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-dependencies" target="_blank">Gem Dependencies</a>! However.. they are very frustrating when you need gems in your plugins. This gives you a Catch 22..</p>
<p>The rake task to install gems:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="ruby">sudo rake gems:install <span style="color:#008000; font-style:italic;"># Use sudo! See notes below</span></pre></td></tr></table></div>

<p>gives you an error like:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre>sudo rake gems:install
(in /your/rails/dir)
rake aborted!
no such file to load -- gemname
&nbsp;
(See full trace by running task with --trace)</pre></td></tr></table></div>

<p>This is because the Rails::Initializer block in your environment.rb will try to load all plugins.. and those plugins need gems.. and those are the gems you&#8217;ve put in the block.. hmmmm.. nasty.</p>
<p>However. There is a hack to still be able to use the <code>rake gems:install</code> command.. and I&#8217;m going to give it to you <img src='http://blog.joopp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>In your environment.rb, inside the Rails::Initializer block, use the following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="ruby">  <span style="color:#9966CC; font-weight:bold;">if</span> <span style="color:#ff6633; font-weight:bold;">$rails_gem_installer</span> <span style="color:#008000; font-style:italic;"># If we're in a rake gems:install or similar task (this is set by Rails, the $-sign makes it a global variable)</span>
    <span style="color:#008000; font-style:italic;"># We stop the initializer to load the files from the /config/initializers dir. This is to disable the usage of plugins or gems in that code.</span>
    <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">'Disabling the application initializers (rails_gem_installer == true)'</span>
    <span style="color:#9966CC; font-weight:bold;">class</span> <span style="color:#6666ff; font-weight:bold;">Rails::Initializer</span>
      <span style="color:#9966CC; font-weight:bold;">def</span> load_application_initializers; <span style="color:#9966CC; font-weight:bold;">end</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
    <span style="color:#008000; font-style:italic;"># Next, do *only* load the needed plugins that are not dependent on gems. For example exception_notification since that one is used in application.rb.</span>
    <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">'Not loading all plugins (rails_gem_installer == true)'</span>
    config.<span style="color:#9900CC;">plugins</span> = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:exception_notification</span><span style="color:#006600; font-weight:bold;">&#93;</span>
  <span style="color:#9966CC; font-weight:bold;">else</span>
    <span style="color:#008000; font-style:italic;"># Otherwise, when we're just loading the environment.. load everything in the right order. So this is YOUR config.plugins = [something]!</span>
    config.<span style="color:#9900CC;">plugins</span> = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:translatable_columns</span>, <span style="color:#ff3333; font-weight:bold;">:userstamp</span>, <span style="color:#ff3333; font-weight:bold;">:all</span><span style="color:#006600; font-weight:bold;">&#93;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p>Now, using this code you will be able to install gems using the rails tasks even if though the gems are needed by plugins in your application. Whoeepie!</p>
<p><strong>Further notes:</strong><br />
Have you ever used the <code>rake gems:install</code> task without sudo? Then your gems get installed in your homedir (<code>~/.gem/ruby/1.8/</code>). To uninstall them the regular command will not work (at least..with me).. you will have to use</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre>gem uninstall -i ~/.gem/ruby/1.8/ [yourgemname]</pre></td></tr></table></div>

<p>[edit]<br />
You can also disable observers if you have them since they may load models depending on plugins depending on gems depending on the <code>rake gems:install task</code> <img src='http://blog.joopp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="ruby">  <span style="color:#9966CC; font-weight:bold;">if</span> <span style="color:#9966CC; font-weight:bold;">not</span> <span style="color:#ff6633; font-weight:bold;">$rails_gem_installer</span>
    config.<span style="color:#9900CC;">active_record</span>.<span style="color:#9900CC;">observers</span> = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:user_observer</span><span style="color:#006600; font-weight:bold;">&#93;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="ruby">  <span style="color:#008000; font-style:italic;"># For my own notes:</span>
  <span style="color:#008000; font-style:italic;"># You can use ENV['_'], __FILE__ or $0.</span>
  <span style="color:#008000; font-style:italic;"># The latter gives you the most correct results (also when using sudo).</span>
  <span style="color:#008000; font-style:italic;"># So you can also use something like:</span>
  config.<span style="color:#9900CC;">active_record</span>.<span style="color:#9900CC;">observers</span> = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:user_observer</span><span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#9966CC; font-weight:bold;">unless</span> $<span style="color:#006666;">0</span> =~ /bin\/rake$/</pre></td></tr></table></div>

<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.joopp.com%2F2009%2F01%2F26%2Fplugin-gem-dependencies-in-your-environmentrb%2F';
  addthis_title  = 'Plugin+gem+dependencies+in+your+environment.rb';
  addthis_pub    = 'joopp';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.joopp.com/2009/01/26/plugin-gem-dependencies-in-your-environmentrb/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flickr version control</title>
		<link>http://blog.joopp.com/2008/12/15/flickr-version-control/</link>
		<comments>http://blog.joopp.com/2008/12/15/flickr-version-control/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 09:24:53 +0000</pubDate>
		<dc:creator>joost</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[flickr]]></category>

		<category><![CDATA[fun]]></category>

		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://blog.joopp.com/2008/12/15/flickr-version-control/</guid>
		<description><![CDATA[Sometimes your version control creates its own code  
Here&#8217;s Flickr&#8217;s site today showing some revision conflict code  


  addthis_url    = 'http%3A%2F%2Fblog.joopp.com%2F2008%2F12%2F15%2Fflickr-version-control%2F';
  addthis_title  = 'Flickr+version+control';
  addthis_pub    = 'joopp';

]]></description>
			<content:encoded><![CDATA[<p>Sometimes your version control creates its own code <img src='http://blog.joopp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Here&#8217;s Flickr&#8217;s site today showing some revision conflict code <img src='http://blog.joopp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://blog.joopp.com/wp-content/uploads/2008/12/monday-blues-promiscuous-boy-you-already-know-that-i_m-all-yours-what-you-waiting-for-on-flickr-photo-sharing.png" title="Flickr version control annotated"><img src="http://blog.joopp.com/wp-content/uploads/2008/12/monday-blues-promiscuous-boy-you-already-know-that-i_m-all-yours-what-you-waiting-for-on-flickr-photo-sharing.png" alt="Flickr version control annotated" /></a></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.joopp.com%2F2008%2F12%2F15%2Fflickr-version-control%2F';
  addthis_title  = 'Flickr+version+control';
  addthis_pub    = 'joopp';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.joopp.com/2008/12/15/flickr-version-control/feed/</wfw:commentRss>
		</item>
		<item>
		<title>YelloYello in Challenger50</title>
		<link>http://blog.joopp.com/2008/11/05/yelloyello-in-challenger50/</link>
		<comments>http://blog.joopp.com/2008/11/05/yelloyello-in-challenger50/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 08:15:59 +0000</pubDate>
		<dc:creator>joost</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Concepts]]></category>

		<category><![CDATA[YelloYello]]></category>

		<category><![CDATA[challenger50]]></category>

		<category><![CDATA[sprout]]></category>

		<category><![CDATA[yelloyello]]></category>

		<guid isPermaLink="false">http://blog.joopp.com/2008/11/05/yelloyello-in-challenger50/</guid>
		<description><![CDATA[
Tomorrow the ChallengerDay 2008 takes place in Hilversum.
We&#8217;re in the Top10 with YelloYello.. thanks everybody for voting!

  addthis_url    = 'http%3A%2F%2Fblog.joopp.com%2F2008%2F11%2F05%2Fyelloyello-in-challenger50%2F';
  addthis_title  = 'YelloYello+in+Challenger50';
  addthis_pub    = 'joopp';

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.challenger50.nl/" title="Challenger 50 2008"><img src="http://blog.joopp.com/wp-content/uploads/2008/11/challenger50nl-start.png" alt="Challenger50 Top 10" /></a></p>
<p>Tomorrow the <a href="http://www.challengerday.nl/" title="ChallengerDay">ChallengerDay 2008</a> takes place in Hilversum.</p>
<p>We&#8217;re in the Top10 with <a href="http://www.yelloyello.com" title="YelloYello">YelloYello</a>.. <strong>thanks everybody for voting!</strong></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.joopp.com%2F2008%2F11%2F05%2Fyelloyello-in-challenger50%2F';
  addthis_title  = 'YelloYello+in+Challenger50';
  addthis_pub    = 'joopp';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.joopp.com/2008/11/05/yelloyello-in-challenger50/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
