<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>redirect_to :hack &#187; Web development</title>
	<atom:link href="http://blog.coderubik.com/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.coderubik.com</link>
	<description>Thoughts on Ruby on Rails and Web development</description>
	<lastBuildDate>Thu, 25 Mar 2010 17:19:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Distinguish your environments with favicons</title>
		<link>http://blog.coderubik.com/2009/09/distinguish-your-environments-with-favicons/</link>
		<comments>http://blog.coderubik.com/2009/09/distinguish-your-environments-with-favicons/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 12:10:22 +0000</pubDate>
		<dc:creator>Pierre Olivier Martel</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://modelix.net/?p=96</guid>
		<description><![CDATA[I have to admit it, I&#8217;m a real neat freak when it comes to my desktop organization. The same goes with Firefox. I like to keep it clean and minimalistic. That&#8217;s why I&#8217;m using a few Firefox extensions and scripts to hide bookmarks and tab titles. When I developed SalsaJungle.com, I was sometimes confusing my [...]]]></description>
			<content:encoded><![CDATA[<p>I have to admit it, I&#8217;m a real neat freak when it comes to my desktop organization. The same goes with Firefox. I like to keep it clean and minimalistic. That&#8217;s why I&#8217;m using a few <a href="https://addons.mozilla.org/en-US/firefox/addon/3780">Firefox</a> <a href="https://addons.mozilla.org/fr/firefox/addon/2108">extensions</a> and <a href="http://userstyles.org/styles/10169">scripts</a> to hide bookmarks and tab titles.</p>

<p>When I developed <a href="http://montreal.salsajungle.com">SalsaJungle.com</a>, I was sometimes confusing my development and production websites. I know it doesn&#8217;t sound too clever but there are times when I reloaded a page after a fix only to realize that I was looking at the production site. That&#8217;s what happen when you multitask between development and client support.</p>

<p><div class="imagecaptioneasy imagecaptioneasy_nowrap" style="width:539px;"><img src="http://modelix.net/wp-content/uploads/2009/09/screen_capture4.png" alt="Notice the last two tabs which are running the same application on two different environments" height="198" width="539" /><br style="clear:both" /><span>Notice the last two tabs which are running the same application on two different environments</span></div></p>

<p>Well I took the matter in hands and simply created a second favicon with a different background color for my development environment. I named it <code>favicon_dev.ico</code> and put it in the same directory as the <code>favicon.ico</code>. Then I added this little snippet of <a href="http://haml-lang.com/">haml</a> code to my <code>application.html.haml</code> template :</p>



<pre class="prettyprint rb"><code>- if RAILS_ENV == 'development'
  %link{ :rel =&gt; &quot;shortcut icon&quot;, :href =&gt; &quot;/favicon_dev.ico&quot; }
</code></pre>



<p>With this code, I force the path of the favicon to <code>favicon_dev.ico</code> in the development environment.</p>

<p>Et voila! Now I know at a glance that blue is for development and red for production!</p>]]></content:encoded>
			<wfw:commentRss>http://blog.coderubik.com/2009/09/distinguish-your-environments-with-favicons/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->