<?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>Pivotal Labs &#187; Rajan Agaskar</title>
	<atom:link href="http://pivotallabs.com/author/rajan/feed/" rel="self" type="application/rss+xml" />
	<link>http://pivotallabs.com</link>
	<description>Agility Developed</description>
	<lastBuildDate>Tue, 18 Jun 2013 20:25:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Restart post-migration</title>
		<link>http://pivotallabs.com/restart-post-migration/</link>
		<comments>http://pivotallabs.com/restart-post-migration/#comments</comments>
		<pubDate>Fri, 16 Nov 2012 17:17:00 +0000</pubDate>
		<dc:creator>Rajan Agaskar</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/restart-post-migration/</guid>
		<description><![CDATA[<p><h2>Helps</h2>

<h3>Exceptional / Airbrake?</h3>

<p>Exceptional purchased Airbrake</p>

<p>APIs are different, is there a clear winner?</p>

<hr />

<p>No clear winner -- errbit is an open source solution that uses the airbrake gem. </p>

<p>https://github.com/errbit/errbit</p>

<h2>Interestings</h2>

<h3>Turns out... heroku restart</h3>

<p>The only logical explanation we have for the bug with update_attributes failing silently is that we migrated without restarting. We speculate that some dynos had cached the old schema and never got the update &#40;before restarting&#41;.</p>

<h3>Rspec 'have_content'</h3>

<p>If you use the CSS <code>text-transform: uppercase</code> property on some content that you wish to test with  <code>have_content</code>, then:</p>

<ul>
<li>it will actually match on the original case of your text</li>
<li>in case of failure, it will display the UPPERCASED expected text, so you'll get interesting messages such as:</li>
</ul>

<p><code>expected there to be content "NOV" in "NOV 8, 2012 — DEC 8, 2012"</code></p> <a href="http://pivotallabs.com/restart-post-migration/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/restart-post-migration/">Restart post-migration</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Helps</h2>
<h3>Exceptional / Airbrake?</h3>
<p>Exceptional purchased Airbrake</p>
<p>APIs are different, is there a clear winner?</p>
<hr />
<p>No clear winner &#8212; errbit is an open source solution that uses the airbrake gem. </p>
<p>https://github.com/errbit/errbit</p>
<h2>Interestings</h2>
<h3>Turns out&#8230; heroku restart</h3>
<p>The only logical explanation we have for the bug with update_attributes failing silently is that we migrated without restarting. We speculate that some dynos had cached the old schema and never got the update &#40;before restarting&#41;.</p>
<h3>Rspec &#8216;have_content&#8217;</h3>
<p>If you use the CSS <code>text-transform: uppercase</code> property on some content that you wish to test with  <code>have_content</code>, then:</p>
<ul>
<li>it will actually match on the original case of your text</li>
<li>in case of failure, it will display the UPPERCASED expected text, so you&#8217;ll get interesting messages such as:</li>
</ul>
<p><code>expected there to be content "NOV" in "NOV 8, 2012 — DEC 8, 2012"</code></p>
<p>The post <a href="http://pivotallabs.com/restart-post-migration/">Restart post-migration</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/restart-post-migration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Capybara 2.0 is out.</title>
		<link>http://pivotallabs.com/capybara-2-0-is-out/</link>
		<comments>http://pivotallabs.com/capybara-2-0-is-out/#comments</comments>
		<pubDate>Thu, 15 Nov 2012 17:13:00 +0000</pubDate>
		<dc:creator>Rajan Agaskar</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/capybara-2-0-is-out/</guid>
		<description><![CDATA[<p><h2>Helps</h2>

<h3>SPF/DKIM for validating received email From: field?</h3>

<p>We're working on a feature where a user can reply to emails. We want to trust the "From:" field to identify the user, but aren't sure how to set everything up properly.</p>

<p>We're using SendGrid's "Parse API" to receive the emails, and it tells us that we get an spf 'permerror' when sending from pivotallabs.com, but not from regular gmail.com or hotmail.com. What gives?</p>

<hr />

<p>SPF only authenticates the envelope domain, so headers can't be trusted. DKIM has the option to auth specific headers, so you <em>may</em> be able to trust DKIM. </p>

<h2>Interestings</h2>

<h3>Capybara 2.0 released</h3>

<p>https://groups.google.com/forum/?fromgroups=&#38;pli=1#!topic/ruby-capybara/C0O7nP2YG1A</p>

<ul>
<li>Error on ambiguous match</li>
<li>Drop Ruby 1.8 support</li>
<li>External gems like capybara-webkit may not be compatible yet</li>
<li>Not backwards compatible with 1.x</li>
</ul> <a href="http://pivotallabs.com/capybara-2-0-is-out/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/capybara-2-0-is-out/">Capybara 2.0 is out.</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Helps</h2>
<h3>SPF/DKIM for validating received email From: field?</h3>
<p>We&#8217;re working on a feature where a user can reply to emails. We want to trust the &#8220;From:&#8221; field to identify the user, but aren&#8217;t sure how to set everything up properly.</p>
<p>We&#8217;re using SendGrid&#8217;s &#8220;Parse API&#8221; to receive the emails, and it tells us that we get an spf &#8216;permerror&#8217; when sending from pivotallabs.com, but not from regular gmail.com or hotmail.com. What gives?</p>
<hr />
<p>SPF only authenticates the envelope domain, so headers can&#8217;t be trusted. DKIM has the option to auth specific headers, so you <em>may</em> be able to trust DKIM. </p>
<h2>Interestings</h2>
<h3>Capybara 2.0 released</h3>
<p>https://groups.google.com/forum/?fromgroups=&amp;pli=1#!topic/ruby-capybara/C0O7nP2YG1A</p>
<ul>
<li>Error on ambiguous match</li>
<li>Drop Ruby 1.8 support</li>
<li>External gems like capybara-webkit may not be compatible yet</li>
<li>Not backwards compatible with 1.x</li>
</ul>
<p>The post <a href="http://pivotallabs.com/capybara-2-0-is-out/">Capybara 2.0 is out.</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/capybara-2-0-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Try using Mongo</title>
		<link>http://pivotallabs.com/try-using-mongo/</link>
		<comments>http://pivotallabs.com/try-using-mongo/#comments</comments>
		<pubDate>Wed, 14 Nov 2012 17:27:00 +0000</pubDate>
		<dc:creator>Rajan Agaskar</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/try-using-mongo/</guid>
		<description><![CDATA[<p><h2>Helps</h2>

<h3>AR/PG silently not saving commits under heavy load</h3>

<ul>
<li>People wondered if the transaction was getting rolled back, etc, everything seemed normal, but about 1 in 5 times the record wouldn't write after an update_attributes.</li>
</ul>

<h3>Slanger for Pusher testing?</h3>

<ul>
<li>Nobody has used Slanger.</li>
</ul>

<h2>Interestings</h2>

<h3>Rspec and_call_original</h3>

<p>New with Rspec 2.12, rspec mocks now have the ability to call through to the original implementation.</p>

<p>example:
  banana.should_receive&#40;:split&#41;.and_call_original</p>

<p>asserts that banana.split was called, and also executes banana.split</p>

<h3>Don't commit Gemfile.lock in your gems</h3>

<p>See http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/</p>

<p>tl;dr</p>

<p><em>ACCORDING TO YEHUDA</em> ... if you are maintaining a <em>GEM</em></p>

<p>git rm --cached Gemfile.lock
echo "Gemfile.lock" >> .gitignore
git add .gitignore
git ci -m "Remove Gemfile.lock -- cf. http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gem"</p>

<p>&#40;this advice may be controversial&#41;</p>

<h3>AWS ELB overwrites X-Forwarded-Proto and X-Forwarded-Port</h3>

<p>http://aws.typepad.com/aws/2010/10/keeping-customers-happy-another-new-elastic-load-balancer-feature.html</p> <a href="http://pivotallabs.com/try-using-mongo/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/try-using-mongo/">Try using Mongo</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Helps</h2>
<h3>AR/PG silently not saving commits under heavy load</h3>
<ul>
<li>People wondered if the transaction was getting rolled back, etc, everything seemed normal, but about 1 in 5 times the record wouldn&#8217;t write after an update_attributes.</li>
</ul>
<h3>Slanger for Pusher testing?</h3>
<ul>
<li>Nobody has used Slanger.</li>
</ul>
<h2>Interestings</h2>
<h3>Rspec and_call_original</h3>
<p>New with Rspec 2.12, rspec mocks now have the ability to call through to the original implementation.</p>
<p>example:<br />
  banana.should_receive&#40;:split&#41;.and_call_original</p>
<p>asserts that banana.split was called, and also executes banana.split</p>
<h3>Don&#8217;t commit Gemfile.lock in your gems</h3>
<p>See http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/</p>
<p>tl;dr</p>
<p><em>ACCORDING TO YEHUDA</em> &#8230; if you are maintaining a <em>GEM</em></p>
<p>git rm &#8211;cached Gemfile.lock<br />
echo &#8220;Gemfile.lock&#8221; >> .gitignore<br />
git add .gitignore<br />
git ci -m &#8220;Remove Gemfile.lock &#8212; cf. http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gem&#8221;</p>
<p>&#40;this advice may be controversial&#41;</p>
<h3>AWS ELB overwrites X-Forwarded-Proto and X-Forwarded-Port</h3>
<p>http://aws.typepad.com/aws/2010/10/keeping-customers-happy-another-new-elastic-load-balancer-feature.html</p>
<p>The post <a href="http://pivotallabs.com/try-using-mongo/">Try using Mongo</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/try-using-mongo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Rails, Ruby patches. Download them.</title>
		<link>http://pivotallabs.com/new-rails-ruby-patches-download-them/</link>
		<comments>http://pivotallabs.com/new-rails-ruby-patches-download-them/#comments</comments>
		<pubDate>Mon, 12 Nov 2012 17:20:00 +0000</pubDate>
		<dc:creator>Rajan Agaskar</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/new-rails-ruby-patches-download-them/</guid>
		<description><![CDATA[<p><h2>Helps</h2>

<h3>Adding an "external" dependency</h3>

<p>The heroku_san gem used to depend on the Heroku CLI gem, 'heroku' which has been sunsetted in favor of the Heroku Toolbelt. What's a reliable way of including this dependency in the gem library?</p>

<h2>Interestings</h2>

<h3>Smallest Federated Wiki</h3>

<p>Ward Cunningham, inventor of the Wiki, has been working on a sequel called "Smallest Federated Wiki". It's packed with novel ideas about collaboration, markup, mobile emphasis, etc. </p>

<p>Best resources so far:
Presentation at RealTimeConf
http://vimeo.com/52637141</p>

<p>videos:
http://wardcunningham.github.com/</p>

<h3>New Rails and Ruby patches</h3>

<p>patch 327 is avail. for Ruby: http://www.ruby-lang.org/en/news/2012/11/09/ruby19-hashdos-cve-2012-5371/</p>

<p>rails 3.2.9 is out this morning: https://github.com/rails/rails/tree/3-2-stable</p> <a href="http://pivotallabs.com/new-rails-ruby-patches-download-them/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/new-rails-ruby-patches-download-them/">New Rails, Ruby patches. Download them.</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Helps</h2>
<h3>Adding an &#8220;external&#8221; dependency</h3>
<p>The heroku_san gem used to depend on the Heroku CLI gem, &#8216;heroku&#8217; which has been sunsetted in favor of the Heroku Toolbelt. What&#8217;s a reliable way of including this dependency in the gem library?</p>
<h2>Interestings</h2>
<h3>Smallest Federated Wiki</h3>
<p>Ward Cunningham, inventor of the Wiki, has been working on a sequel called &#8220;Smallest Federated Wiki&#8221;. It&#8217;s packed with novel ideas about collaboration, markup, mobile emphasis, etc. </p>
<p>Best resources so far:<br />
Presentation at RealTimeConf</p>
<p><iframe src="http://player.vimeo.com/video/52637141" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></p>
<p>videos:</p>
<p>http://wardcunningham.github.com/</p>
<h3>New Rails and Ruby patches</h3>
<p>patch 327 is avail. for Ruby: http://www.ruby-lang.org/en/news/2012/11/09/ruby19-hashdos-cve-2012-5371/</p>
<p>rails 3.2.9 is out this morning: https://github.com/rails/rails/tree/3-2-stable</p>
<p>The post <a href="http://pivotallabs.com/new-rails-ruby-patches-download-them/">New Rails, Ruby patches. Download them.</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/new-rails-ruby-patches-download-them/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Standup 03/12/10</title>
		<link>http://pivotallabs.com/standup-03-12-10/</link>
		<comments>http://pivotallabs.com/standup-03-12-10/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 17:14:00 +0000</pubDate>
		<dc:creator>Rajan Agaskar</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-03-12-10/</guid>
		<description><![CDATA[<p><h2>Helps</h2>

<p>Q: How can I plot thousands of points on a Google Map without said map being undraggable?
A: It may make sense to use <a href="http://geochalkboard.wordpress.com/2009/03/11/density-mapping-in-google-maps-with-heatmapapi/">Google's HeatMap API</a> after the number of plotted points exceeds 500. Other strategies are discussed here: <a href="http://www.svennerberg.com/2009/01/handling-large-amounts-of-markers-in-google-maps/">Handling Large Amounts of Markers in Google Maps</a></p>

<h2>Interesting</h2>

<ul>
<li><p>Using <a href="http://david.dojotoolkit.org/recss.html">ReCSS</a> with Sass.
If you happen to be using SASS you can still make use of awesome ReCSS bookmarklets &#40;including <a href="http://www.eahanson.com/2009/02/28/a-bookmarklet-to-reload-a-pages-css/">one by Pivotal's own Erik Hanson</a>&#41; by using the <a href="http://wiki.github.com/chriseppstein/compass/command-line-tool">compass command line tool</a> and watching your project for changes. <em>Totally rad!</em></p></li>
<li><p><a href="http://www.rubyenterpriseedition.com/">Ruby Enterprise Edition</a>
Is awesome, if you use the <a href="http://www.rubyenterpriseedition.com/documentation.html#_garbage_collector_and_object_space">garbage collection tweaks</a>. One team installed it and saw a 50% savings in their test suite running times -- over 15 minutes! Combined with parallel spec it can be a real winner. If you're on Leopard, you may need to install the version from Oct 2009, as the latest fails with a Marshall.load error on install. <em>2 legit!</em></p></li>
<li><p>All your RubyMine problems can be fixed!
By reverting to RubyMine 1.1.1. At least if your problems are: inconsistent functionality with the merge tool, and RubyMine occasionally refusing to recognize spec files correctly. <em>That's def!</em></p></li>
<li><p>Spring Forward this Sunday to save the daylight, and terrorize the programmers. Thanks a lot, farmers-slash-botanists. <em>WORD Y'ALL. I'M OUT.</em></p></li>
</ul> <a href="http://pivotallabs.com/standup-03-12-10/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-03-12-10/">Standup 03/12/10</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Helps</h2>
<p>Q: How can I plot thousands of points on a Google Map without said map being undraggable?<br />
A: It may make sense to use <a href="http://geochalkboard.wordpress.com/2009/03/11/density-mapping-in-google-maps-with-heatmapapi/">Google&#8217;s HeatMap API</a> after the number of plotted points exceeds 500. Other strategies are discussed here: <a href="http://www.svennerberg.com/2009/01/handling-large-amounts-of-markers-in-google-maps/">Handling Large Amounts of Markers in Google Maps</a></p>
<h2>Interesting</h2>
<ul>
<li>
<p>Using <a href="http://david.dojotoolkit.org/recss.html">ReCSS</a> with Sass.<br />
If you happen to be using SASS you can still make use of awesome ReCSS bookmarklets &#40;including <a href="http://www.eahanson.com/2009/02/28/a-bookmarklet-to-reload-a-pages-css/">one by Pivotal&#8217;s own Erik Hanson</a>&#41; by using the <a href="http://wiki.github.com/chriseppstein/compass/command-line-tool">compass command line tool</a> and watching your project for changes. <em>Totally rad!</em></p>
</li>
<li>
<p><a href="http://www.rubyenterpriseedition.com/">Ruby Enterprise Edition</a><br />
Is awesome, if you use the <a href="http://www.rubyenterpriseedition.com/documentation.html#_garbage_collector_and_object_space">garbage collection tweaks</a>. One team installed it and saw a 50% savings in their test suite running times &#8212; over 15 minutes! Combined with parallel spec it can be a real winner. If you&#8217;re on Leopard, you may need to install the version from Oct 2009, as the latest fails with a Marshall.load error on install. <em>2 legit!</em></p>
</li>
<li>
<p>All your RubyMine problems can be fixed!<br />
By reverting to RubyMine 1.1.1. At least if your problems are: inconsistent functionality with the merge tool, and RubyMine occasionally refusing to recognize spec files correctly. <em>That&#8217;s def!</em></p>
</li>
<li>
<p>Spring Forward this Sunday to save the daylight, and terrorize the programmers. Thanks a lot, farmers-slash-botanists. <em>WORD Y&#8217;ALL. I&#8217;M OUT.</em></p>
</li>
</ul>
<p>The post <a href="http://pivotallabs.com/standup-03-12-10/">Standup 03/12/10</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-03-12-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Standup 12/10/2009</title>
		<link>http://pivotallabs.com/standup-12-10-2009/</link>
		<comments>http://pivotallabs.com/standup-12-10-2009/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 17:16:00 +0000</pubDate>
		<dc:creator>Rajan Agaskar</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-12-10-2009/</guid>
		<description><![CDATA[<p><h2>Helps</h2>

<ul>
<li>Fast/Simple share widget plugins?
A project was in need of a turn-key plugin to provide Digg/Twitter/Facebook links. The two suggestions were the ever-popular "roll-your-own", and pivotal's own <a href="http://github.com/pivotal/bookmark_fu">bookmark_fu</a>. The latter of which, if you glance downwards and towards the right, you'll see in use on this very blog! &#40;Unless, of course, you're using Google Reader and robbing us of our ad revenue riches&#41;.</li>
</ul>

<h2>Interesting</h2>

<ul>
<li>SpecRails Superclass Shenanigans</li>
</ul>

<p>A Pivot found that when spec_rails is loaded, the superclass of spec suites changes to ActiveSupport::TestCase, instead of ExampleGroup &#40;which, in this case, had a number of useful and necessary methods added to it&#41;. [1] </p>

<ul>
<li><a href="http://github.com/cldwalker/hirb/">hirb</a></li>
</ul>

<p>This carefully named plugin provides really nice sql-console-style formatting for ActiveRecord queries made from the irb console.  I'm going to install it right away so I can pretend I still remember how to write MySQL queries by hand!   </p>

<p>[1] I was working on a brilliant analogy that referenced Dick Dastardly and Muttley here, but I totally failed. Still, Wacky Races was totally rad, right? Radder than sneakily replacing superclasses, anyhow.  </p> <a href="http://pivotallabs.com/standup-12-10-2009/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-12-10-2009/">Standup 12/10/2009</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Helps</h2>
<ul>
<li>Fast/Simple share widget plugins?<br />
A project was in need of a turn-key plugin to provide Digg/Twitter/Facebook links. The two suggestions were the ever-popular &#8220;roll-your-own&#8221;, and pivotal&#8217;s own <a href="http://github.com/pivotal/bookmark_fu">bookmark_fu</a>. The latter of which, if you glance downwards and towards the right, you&#8217;ll see in use on this very blog! &#40;Unless, of course, you&#8217;re using Google Reader and robbing us of our ad revenue riches&#41;.</li>
</ul>
<h2>Interesting</h2>
<ul>
<li>SpecRails Superclass Shenanigans</li>
</ul>
<p>A Pivot found that when spec_rails is loaded, the superclass of spec suites changes to ActiveSupport::TestCase, instead of ExampleGroup &#40;which, in this case, had a number of useful and necessary methods added to it&#41;. [1] </p>
<ul>
<li><a href="http://github.com/cldwalker/hirb/">hirb</a></li>
</ul>
<p>This carefully named plugin provides really nice sql-console-style formatting for ActiveRecord queries made from the irb console.  I&#8217;m going to install it right away so I can pretend I still remember how to write MySQL queries by hand!   </p>
<p>[1] I was working on a brilliant analogy that referenced Dick Dastardly and Muttley here, but I totally failed. Still, Wacky Races was totally rad, right? Radder than sneakily replacing superclasses, anyhow.  </p>
<p>The post <a href="http://pivotallabs.com/standup-12-10-2009/">Standup 12/10/2009</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-12-10-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Standup 12/9/2009</title>
		<link>http://pivotallabs.com/standup-12-9-2009/</link>
		<comments>http://pivotallabs.com/standup-12-9-2009/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 17:18:00 +0000</pubDate>
		<dc:creator>Rajan Agaskar</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-12-9-2009/</guid>
		<description><![CDATA[<p><h2>Interesting Things</h2>

<ul>
<li><p><a href="http://github.com/nakajima/fixjour">Fixjour</a> blows up on validations for associated models</p>

<p>Two Pivots experienced this problem on separate projects. The general consensus was that generating objects with correct associations can be difficult.  <a href="http://github.com/thoughtbot/factory_girl">FactoryGirl</a> was recommended as a fixture plugin that handles this problem particularly well. It was also suggested that rolling your own object mothers was trivial &#40;fisticuffs ensued&#41;.</p></li>
<li><p>timeout.rb </p></li>
</ul>

<p>Timeout.rb raises an exception to kill child threads; it so happens that this exception can be caught, and possibly swallowed. This is truly a  Noid to be avoided at all costs.</p>

<ul>
<li>UPDATE: Tests using <a href="http://github.com/thoughtbot/paperclip">Paperclip</a> fail to run</li>
</ul>

<p>When Paperclip cannot find <code>identify</code> in the path, it will raise an error that suggests it has been called with incorrect arguments. This is a bold-faced lie. </p>

<p>One Pivot remarked that these tests should really be mocking Paperclip in the first place, which seems an appropriate response to dishonesty. </p> <a href="http://pivotallabs.com/standup-12-9-2009/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-12-9-2009/">Standup 12/9/2009</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Interesting Things</h2>
<ul>
<li>
<p><a href="http://github.com/nakajima/fixjour">Fixjour</a> blows up on validations for associated models</p>
<p>Two Pivots experienced this problem on separate projects. The general consensus was that generating objects with correct associations can be difficult.  <a href="http://github.com/thoughtbot/factory_girl">FactoryGirl</a> was recommended as a fixture plugin that handles this problem particularly well. It was also suggested that rolling your own object mothers was trivial &#40;fisticuffs ensued&#41;.</p>
</li>
<li>
<p>timeout.rb </p>
</li>
</ul>
<p>Timeout.rb raises an exception to kill child threads; it so happens that this exception can be caught, and possibly swallowed. This is truly a  Noid to be avoided at all costs.</p>
<ul>
<li>UPDATE: Tests using <a href="http://github.com/thoughtbot/paperclip">Paperclip</a> fail to run</li>
</ul>
<p>When Paperclip cannot find <code>identify</code> in the path, it will raise an error that suggests it has been called with incorrect arguments. This is a bold-faced lie. </p>
<p>One Pivot remarked that these tests should really be mocking Paperclip in the first place, which seems an appropriate response to dishonesty. </p>
<p>The post <a href="http://pivotallabs.com/standup-12-9-2009/">Standup 12/9/2009</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-12-9-2009/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Standup 12/8/2009</title>
		<link>http://pivotallabs.com/standup-12-8-2009/</link>
		<comments>http://pivotallabs.com/standup-12-8-2009/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 17:46:00 +0000</pubDate>
		<dc:creator>Rajan Agaskar</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-12-8-2009/</guid>
		<description><![CDATA[<p><h2>Interesting Things</h2>

<ul>
<li>fleegix.date.Date - Javascript, DST, and You</li>
</ul>

<p>In 1895, George Vernon Hudson somehow managed to convince the world &#40;of the Wellington Philosophical Society&#41; that Daylight Savings Time was a good idea.[1] Hudson, an amateur entomologist, was motivated by his desire to look for bugs <em>after</em> work.[2] Sadly he did not forsee that determining DST for multiple regions using JavaScript would be a non-trivial task. </p>

<p>Javascript provides some rudimentary timezone support with Date.parse, but does not automatically apply daylight savings time, in other words: </p>

<p><code>Date.parse&#40;'Sep 9 2009 11:00:00 PST'&#41;;</code></p>

<p>and </p>

<p><code>Date.parse&#40;'Sep 9 2009 11:00:00 PDT'&#41;;</code> </p>

<p>return different timestamps. <a href="http://js.fleegix.org/plugins/date/date">fleegix.date.Date</a> &#40;a plugin for the <a href="http://github.com/mde/fleegix-js-javascript-toolkit">fleegix.js</a> library&#41; lets you express the timezone as a region string, automatically taking into account whether or not that region observes Daylight Savings Time &#40;by using Olson files&#41;, and providing the same interface as the native Javascript date. This means you can get an proper timestamp with the following: </p>

<p><code>new fleegix.date.Date&#40;'9/9/2009 11:00:00', 'America/Los_Angeles'&#41;;</code> </p>

<p>This is arguably more useful than Daylight Savings Time itself. </p>

<ul>
<li>RightScale errors</li>
</ul>

<p>Two Pivots experienced an issue where RightScale was caching their connection to Amazon upon creation. This led to the connection start time parameter getting further and further out of date until Amazon failed to accept the upload with a 'Request Time Too Skewed' error. No workaround was discussed, but it was roundly decided that any error with the word "Skewed" in it is pretty awesome. [3]  </p>

<p>[1] Well, according to Wikipedia, so it might as well have been Ron Paul for all we know.</p>

<p>[2] aaaaaand rimshot.</p>

<p>[3] Not really.</p> <a href="http://pivotallabs.com/standup-12-8-2009/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-12-8-2009/">Standup 12/8/2009</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Interesting Things</h2>
<ul>
<li>fleegix.date.Date &#8211; Javascript, DST, and You</li>
</ul>
<p>In 1895, George Vernon Hudson somehow managed to convince the world &#40;of the Wellington Philosophical Society&#41; that Daylight Savings Time was a good idea.[1] Hudson, an amateur entomologist, was motivated by his desire to look for bugs <em>after</em> work.[2] Sadly he did not forsee that determining DST for multiple regions using JavaScript would be a non-trivial task. </p>
<p>Javascript provides some rudimentary timezone support with Date.parse, but does not automatically apply daylight savings time, in other words: </p>
<p><code>Date.parse&#40;'Sep 9 2009 11:00:00 PST'&#41;;</code></p>
<p>and </p>
<p><code>Date.parse&#40;'Sep 9 2009 11:00:00 PDT'&#41;;</code> </p>
<p>return different timestamps. <a href="http://js.fleegix.org/plugins/date/date">fleegix.date.Date</a> &#40;a plugin for the <a href="http://github.com/mde/fleegix-js-javascript-toolkit">fleegix.js</a> library&#41; lets you express the timezone as a region string, automatically taking into account whether or not that region observes Daylight Savings Time &#40;by using Olson files&#41;, and providing the same interface as the native Javascript date. This means you can get an proper timestamp with the following: </p>
<p><code>new fleegix.date.Date&#40;'9/9/2009 11:00:00', 'America/Los_Angeles'&#41;;</code> </p>
<p>This is arguably more useful than Daylight Savings Time itself. </p>
<ul>
<li>RightScale errors</li>
</ul>
<p>Two Pivots experienced an issue where RightScale was caching their connection to Amazon upon creation. This led to the connection start time parameter getting further and further out of date until Amazon failed to accept the upload with a &#8216;Request Time Too Skewed&#8217; error. No workaround was discussed, but it was roundly decided that any error with the word &#8220;Skewed&#8221; in it is pretty awesome. [3]  </p>
<p>[1] Well, according to Wikipedia, so it might as well have been Ron Paul for all we know.</p>
<p>[2] aaaaaand rimshot.</p>
<p>[3] Not really.</p>
<p>The post <a href="http://pivotallabs.com/standup-12-8-2009/">Standup 12/8/2009</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-12-8-2009/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Standup 12/7/2009</title>
		<link>http://pivotallabs.com/standup-12-7-2009/</link>
		<comments>http://pivotallabs.com/standup-12-7-2009/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 17:13:00 +0000</pubDate>
		<dc:creator>Rajan Agaskar</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-12-7-2009/</guid>
		<description><![CDATA[<p><h2>Interesting Things</h2>

<ul>
<li>Pivotal Core Bundle - Deprecations deprecated!</li>
</ul>

<p>Two Pivots heroically removed some deprecated extensions and rake tasks from the Pivotal Core Bundle. Do not be surprised if your favorite code jams &#40;like cancel_default_validates_associated class method&#41; disappear next time you pull.  </p>

<ul>
<li>Move files fast!
Some lucky pivot discovered that <code>mv file.tgz *</code> will move all files in the current path into the last file or directory it can find. </li>
</ul>

<p>If for some reason you do not want this to happen, it is recommended that you always specify a destination when moving files. </p>

<p>To help you remember this protip, here's a totally worthless analogy that involves automobiles: would you get into a cab without telling the driver where you wanted to go? </p>

<p>No, you would not, because he would take you to IHOP, and you hate pancakes. You wanted to go to Waffle House, which is unfortunate, because the nearest Waffle House is in Nevada.</p> <a href="http://pivotallabs.com/standup-12-7-2009/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-12-7-2009/">Standup 12/7/2009</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Interesting Things</h2>
<ul>
<li>Pivotal Core Bundle &#8211; Deprecations deprecated!</li>
</ul>
<p>Two Pivots heroically removed some deprecated extensions and rake tasks from the Pivotal Core Bundle. Do not be surprised if your favorite code jams &#40;like cancel_default_validates_associated class method&#41; disappear next time you pull.  </p>
<ul>
<li>Move files fast!<br />
Some lucky pivot discovered that <code>mv file.tgz *</code> will move all files in the current path into the last file or directory it can find. </li>
</ul>
<p>If for some reason you do not want this to happen, it is recommended that you always specify a destination when moving files. </p>
<p>To help you remember this protip, here&#8217;s a totally worthless analogy that involves automobiles: would you get into a cab without telling the driver where you wanted to go? </p>
<p>No, you would not, because he would take you to IHOP, and you hate pancakes. You wanted to go to Waffle House, which is unfortunate, because the nearest Waffle House is in Nevada.</p>
<p>The post <a href="http://pivotallabs.com/standup-12-7-2009/">Standup 12/7/2009</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-12-7-2009/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hackfest For The Light</title>
		<link>http://pivotallabs.com/hackfest-for-the-light/</link>
		<comments>http://pivotallabs.com/hackfest-for-the-light/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 23:52:00 +0000</pubDate>
		<dc:creator>Rajan Agaskar</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/hackfest-for-the-light/</guid>
		<description><![CDATA[<p><p>Harlan Wood, one of our client developers, has founded a monthly hackfest project that may be of interest to the Rails community. From Harlan: </p>

<blockquote>
    <p>"I am putting together a monthly Hackfest for the Light, kicking off in late January.  The idea is to put some of the great skills in our community to use on socially responsible software projects of any sort, with a preference toward open source, ruby/rails, and great testing, but open to just about anything.  Participants will introduce projects of interest, or just bring their coding/UI skills, and developers and designers will work together on whichever projects inspire them. </p>

    <p>An example project I'm working on is a creative collaboration remixing engine -- like a github for creative commons licenced creative works.  More on that here: <a href="http://enlightenedstructure.info/pub/WikiDragon">http://enlightenedstructure.info/pub/WikiDragon</a>.</p>

    <p>I've created a meetup group &#40; <a href="http://www.meetup.com/Hackfest-for-the-Light/">http://www.meetup.com/Hackfest-for-the-Light/</a> &#41; -- this is the best way to stay in touch if you're interested.</p>

    <p>H@rlan Knight Wood"</p>
</blockquote> <a href="http://pivotallabs.com/hackfest-for-the-light/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/hackfest-for-the-light/">Hackfest For The Light</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Harlan Wood, one of our client developers, has founded a monthly hackfest project that may be of interest to the Rails community. From Harlan: </p>
<blockquote>
<p>&#8220;I am putting together a monthly Hackfest for the Light, kicking off in late January.  The idea is to put some of the great skills in our community to use on socially responsible software projects of any sort, with a preference toward open source, ruby/rails, and great testing, but open to just about anything.  Participants will introduce projects of interest, or just bring their coding/UI skills, and developers and designers will work together on whichever projects inspire them. </p>
<p>An example project I&#8217;m working on is a creative collaboration remixing engine &#8212; like a github for creative commons licenced creative works.  More on that here: <a href="http://enlightenedstructure.info/pub/WikiDragon">http://enlightenedstructure.info/pub/WikiDragon</a>.</p>
<p>I&#8217;ve created a meetup group &#40; <a href="http://www.meetup.com/Hackfest-for-the-Light/">http://www.meetup.com/Hackfest-for-the-Light/</a> &#41; &#8212; this is the best way to stay in touch if you&#8217;re interested.</p>
<p>H@rlan Knight Wood&#8221;</p>
</blockquote>
<p>The post <a href="http://pivotallabs.com/hackfest-for-the-light/">Hackfest For The Light</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/hackfest-for-the-light/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using apc
Database Caching using apc
Object Caching 1101/1212 objects using apc

 Served from: pivotallabs.com @ 2013-06-18 15:50:22 by W3 Total Cache -->