<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using a badge to distinguish development and production environments</title>
	<atom:link href="http://labnotes.org/2009/10/08/using-a-badge-to-distinguish-development-and-production-environments/feed/" rel="self" type="application/rss+xml" />
	<link>http://labnotes.org/2009/10/08/using-a-badge-to-distinguish-development-and-production-environments/</link>
	<description></description>
	<lastBuildDate>Sun, 15 Jan 2012 21:29:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jean-Michel</title>
		<link>http://labnotes.org/2009/10/08/using-a-badge-to-distinguish-development-and-production-environments/comment-page-1/#comment-142716</link>
		<dc:creator>Jean-Michel</dc:creator>
		<pubDate>Fri, 18 Dec 2009 10:10:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/?p=1361#comment-142716</guid>
		<description>The line I had to add to make it work in In application layou is:

 RAILS_ENV, :id =&gt; &quot;rails-env&quot; unless RAILS_ENV[/production/] %&gt;</description>
		<content:encoded><![CDATA[<p>The line I had to add to make it work in In application layou is:</p>
<p> RAILS_ENV, :id =&gt; &#8220;rails-env&#8221; unless RAILS_ENV[/production/] %&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ennuyer.net &#187; Blog Archive &#187; Rails Reading - Oct 20, 2009</title>
		<link>http://labnotes.org/2009/10/08/using-a-badge-to-distinguish-development-and-production-environments/comment-page-1/#comment-142297</link>
		<dc:creator>Ennuyer.net &#187; Blog Archive &#187; Rails Reading - Oct 20, 2009</dc:creator>
		<pubDate>Tue, 20 Oct 2009 18:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/?p=1361#comment-142297</guid>
		<description>[...]  Labnotes » Using a badge to distinguish development and production environments  [...]</description>
		<content:encoded><![CDATA[<p>[...]  Labnotes » Using a badge to distinguish development and production environments  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Chaffee</title>
		<link>http://labnotes.org/2009/10/08/using-a-badge-to-distinguish-development-and-production-environments/comment-page-1/#comment-142276</link>
		<dc:creator>Alex Chaffee</dc:creator>
		<pubDate>Sat, 17 Oct 2009 19:37:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/?p=1361#comment-142276</guid>
		<description>Very nice. I&#039;ve adapted it into an Erector widget.

http://github.com/pivotal/erector/blob/master/lib/erector/widgets/environment_badge.rb</description>
		<content:encoded><![CDATA[<p>Very nice. I&#8217;ve adapted it into an Erector widget.</p>
<p><a href="http://github.com/pivotal/erector/blob/master/lib/erector/widgets/environment_badge.rb" rel="nofollow">http://github.com/pivotal/erector/blob/master/lib/erector/widgets/environment_badge.rb</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://labnotes.org/2009/10/08/using-a-badge-to-distinguish-development-and-production-environments/comment-page-1/#comment-142250</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Fri, 09 Oct 2009 03:45:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/?p=1361#comment-142250</guid>
		<description>Nice.

On an app a few years ago, my friend had the idea to change the whole background color--the content itself was in a white box so still legible.

It got to where people referred to the multiple dev/qa instances (it was an enterprise app) by color--app-pink, app-orange, app-black, etc.</description>
		<content:encoded><![CDATA[<p>Nice.</p>
<p>On an app a few years ago, my friend had the idea to change the whole background color&#8211;the content itself was in a white box so still legible.</p>
<p>It got to where people referred to the multiple dev/qa instances (it was an enterprise app) by color&#8211;app-pink, app-orange, app-black, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Assaf</title>
		<link>http://labnotes.org/2009/10/08/using-a-badge-to-distinguish-development-and-production-environments/comment-page-1/#comment-142248</link>
		<dc:creator>Assaf</dc:creator>
		<pubDate>Fri, 09 Oct 2009 02:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/?p=1361#comment-142248</guid>
		<description>Django&#039;s debug toolbar gave birth to Rail&#039;s Rack::Bug:

&lt;a href=&quot;http://github.com/brynary/rack-bug&quot;&gt;http://github.com/brynary/rack-bug&lt;/a&gt;

I did not have the best experience with Rack::Bug so far.</description>
		<content:encoded><![CDATA[<p>Django&#8217;s debug toolbar gave birth to Rail&#8217;s Rack::Bug:</p>
<p><a href="http://github.com/brynary/rack-bug">http://github.com/brynary/rack-bug</a></p>
<p>I did not have the best experience with Rack::Bug so far.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Adams</title>
		<link>http://labnotes.org/2009/10/08/using-a-badge-to-distinguish-development-and-production-environments/comment-page-1/#comment-142247</link>
		<dc:creator>Chris Adams</dc:creator>
		<pubDate>Fri, 09 Oct 2009 02:39:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/?p=1361#comment-142247</guid>
		<description>On Django projects I use a small badge which lists the current Git / SVN revision on non-production sites (i.e. if settings.DEBUG) - this is also a great way to make sure that any internal screenshots are traceable back to a specific point in time. It&#039;s styled-inline to avoid external dependencies - something like &quot;position:fixed; bottom:0px; text-aligned:center; width:100px; margin:auto&quot; works pretty well for one line of text. For git try something like the output from &quot;git describe --tags&quot; - there are a bunch of permutations to match your preferences but the default format (--) is pretty useful.

On a more advanced note, ala Aaron H&#039;s suggestion, steal ideas from the awesome django-debug-toolbar: http://robhudson.github.com/django-debug-toolbar/ - the new UI is very low impact (small badge in the upper right corner, offset down enough to avoid most nav) but expands into a really useful sidebar detailing SQL queries (with backtraces &amp; explain support), template introspection, log messages, etc. I don&#039;t use it in production (I prefer capturing data from real users and, if possible, doing so in a way which can&#039;t cause their requests to fail) so it&#039;s also a reliable cue that you&#039;re not on the production site.</description>
		<content:encoded><![CDATA[<p>On Django projects I use a small badge which lists the current Git / SVN revision on non-production sites (i.e. if settings.DEBUG) &#8211; this is also a great way to make sure that any internal screenshots are traceable back to a specific point in time. It&#8217;s styled-inline to avoid external dependencies &#8211; something like &#8220;position:fixed; bottom:0px; text-aligned:center; width:100px; margin:auto&#8221; works pretty well for one line of text. For git try something like the output from &#8220;git describe &#8211;tags&#8221; &#8211; there are a bunch of permutations to match your preferences but the default format (&#8211;) is pretty useful.</p>
<p>On a more advanced note, ala Aaron H&#8217;s suggestion, steal ideas from the awesome django-debug-toolbar: <a href="http://robhudson.github.com/django-debug-toolbar/" rel="nofollow">http://robhudson.github.com/django-debug-toolbar/</a> &#8211; the new UI is very low impact (small badge in the upper right corner, offset down enough to avoid most nav) but expands into a really useful sidebar detailing SQL queries (with backtraces &amp; explain support), template introspection, log messages, etc. I don&#8217;t use it in production (I prefer capturing data from real users and, if possible, doing so in a way which can&#8217;t cause their requests to fail) so it&#8217;s also a reliable cue that you&#8217;re not on the production site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron H.</title>
		<link>http://labnotes.org/2009/10/08/using-a-badge-to-distinguish-development-and-production-environments/comment-page-1/#comment-142246</link>
		<dc:creator>Aaron H.</dc:creator>
		<pubDate>Fri, 09 Oct 2009 01:59:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/?p=1361#comment-142246</guid>
		<description>I&#039;ve done a similar thing, but I include a div (hidden) that includes any sort of performance metrics or request/session/environment elements I might want to see while debugging.  Then, a simple jQuery call to toggle that div when clicking on the tab gives me extra info as needed.  In fact, you can put this in production and only render it for admins, etc.  

Still, always a good idea.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve done a similar thing, but I include a div (hidden) that includes any sort of performance metrics or request/session/environment elements I might want to see while debugging.  Then, a simple jQuery call to toggle that div when clicking on the tab gives me extra info as needed.  In fact, you can put this in production and only render it for admins, etc.  </p>
<p>Still, always a good idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Mueller</title>
		<link>http://labnotes.org/2009/10/08/using-a-badge-to-distinguish-development-and-production-environments/comment-page-1/#comment-142244</link>
		<dc:creator>Patrick Mueller</dc:creator>
		<pubDate>Thu, 08 Oct 2009 23:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/?p=1361#comment-142244</guid>
		<description>Good idea.  Setting opacity: 0.8 might be useful in case the badge occludes things.  Or might be annoying.  Or maybe set the z-index: -1?</description>
		<content:encoded><![CDATA[<p>Good idea.  Setting opacity: 0.8 might be useful in case the badge occludes things.  Or might be annoying.  Or maybe set the z-index: -1?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

