<?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; Justin Richard</title>
	<atom:link href="http://pivotallabs.com/author/justin/feed/" rel="self" type="application/rss+xml" />
	<link>http://pivotallabs.com</link>
	<description>Agility Developed</description>
	<lastBuildDate>Sat, 18 May 2013 23:45:10 +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>[Standup][SF] 11/07/12: CSS tech talk at AirBnB tonight</title>
		<link>http://pivotallabs.com/standup-sf-11-07-12-css-tech-talk-at-airbnb-tonight/</link>
		<comments>http://pivotallabs.com/standup-sf-11-07-12-css-tech-talk-at-airbnb-tonight/#comments</comments>
		<pubDate>Wed, 07 Nov 2012 15:13:00 +0000</pubDate>
		<dc:creator>Justin Richard</dc:creator>
				<category><![CDATA[Standup]]></category>
		<category><![CDATA[agile]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-sf-11-07-12-css-tech-talk-at-airbnb-tonight/</guid>
		<description><![CDATA[<p><h2>Events</h2>

<ul>
<li>Nicole Sullivan: OOCSS and Preprocessors in a tree, K-I-S-S-I-N-G </li>
</ul>

<p>Hosted tech talk at AirBnB tonight</p>

<p><a href="https://www.airbnb.com/meetups/q8daawbyx-tech-talk-nicole-sullivan">https://www.airbnb.com/meetups/q8daawbyx-tech-talk-nicole-sullivan</a></p> <a href="http://pivotallabs.com/standup-sf-11-07-12-css-tech-talk-at-airbnb-tonight/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-sf-11-07-12-css-tech-talk-at-airbnb-tonight/">[Standup][SF] 11/07/12: CSS tech talk at AirBnB tonight</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Events</h2>
<ul>
<li>Nicole Sullivan: OOCSS and Preprocessors in a tree, K-I-S-S-I-N-G </li>
</ul>
<p>Hosted tech talk at AirBnB tonight</p>
<p><a href="https://www.airbnb.com/meetups/q8daawbyx-tech-talk-nicole-sullivan">https://www.airbnb.com/meetups/q8daawbyx-tech-talk-nicole-sullivan</a></p>
<p>The post <a href="http://pivotallabs.com/standup-sf-11-07-12-css-tech-talk-at-airbnb-tonight/">[Standup][SF] 11/07/12: CSS tech talk at AirBnB tonight</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-sf-11-07-12-css-tech-talk-at-airbnb-tonight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5/18/12 Standup &#8211; Performance without downtime please</title>
		<link>http://pivotallabs.com/5-18-12-standup-performance-without-downtime-please/</link>
		<comments>http://pivotallabs.com/5-18-12-standup-performance-without-downtime-please/#comments</comments>
		<pubDate>Sat, 19 May 2012 00:53:00 +0000</pubDate>
		<dc:creator>Justin Richard</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/5-18-12-standup-performance-without-downtime-please/</guid>
		<description><![CDATA[<p><h2>Help</h2>

<p>Q: A team is looking for options to test their app's response times under load.  What's the recommended tool?</p>

<p>A: <a href="https://browsermob.com/performance-testing">Browser Mob</a> was recommended as a hosted option.  They have scripted browsers that make requests against your site.</p>

<p><a href="http://tsung.erlang-projects.org/">Tsung</a> is an Erlang project that can send a bunch of traffic to your site.</p>

<p>Q: Is it possible to deploy without downtime to Heroku?</p>

<p>A: The closest option is to have two apps that share a single database and coordinate your deploys and A/B which one serves the app publicly.  This is clunky.  Perhaps Heroku is working on a supported solution for rolling restarts of dynos.</p> <a href="http://pivotallabs.com/5-18-12-standup-performance-without-downtime-please/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/5-18-12-standup-performance-without-downtime-please/">5/18/12 Standup &#8211; Performance without downtime please</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Help</h2>
<p>Q: A team is looking for options to test their app&#8217;s response times under load.  What&#8217;s the recommended tool?</p>
<p>A: <a href="https://browsermob.com/performance-testing">Browser Mob</a> was recommended as a hosted option.  They have scripted browsers that make requests against your site.</p>
<p><a href="http://tsung.erlang-projects.org/">Tsung</a> is an Erlang project that can send a bunch of traffic to your site.</p>
<p>Q: Is it possible to deploy without downtime to Heroku?</p>
<p>A: The closest option is to have two apps that share a single database and coordinate your deploys and A/B which one serves the app publicly.  This is clunky.  Perhaps Heroku is working on a supported solution for rolling restarts of dynos.</p>
<p>The post <a href="http://pivotallabs.com/5-18-12-standup-performance-without-downtime-please/">5/18/12 Standup &#8211; Performance without downtime please</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/5-18-12-standup-performance-without-downtime-please/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>5/15/12 Standup &#8211; setting the template in database.yml</title>
		<link>http://pivotallabs.com/5-15-12-standup-setting-the-template-in-database-yml/</link>
		<comments>http://pivotallabs.com/5-15-12-standup-setting-the-template-in-database-yml/#comments</comments>
		<pubDate>Tue, 15 May 2012 23:04:00 +0000</pubDate>
		<dc:creator>Justin Richard</dc:creator>
				<category><![CDATA[Standup]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/5-15-12-standup-setting-the-template-in-database-yml/</guid>
		<description><![CDATA[<p><h2>Interesting Things</h2>

<p>You may need to specify a template in your rails database.yml to use the rails connection to create a Postgres database via your rake scripts that has your preferred configuration.</p>

<p>Specifically, a team found they needed to specify a template &#40;template: template0&#41; in their database.yml to create UTF8 encoded databases for their project running on Ubuntu 11.04.</p>

<p>Note that your milage may vary here, since the settings on the template database will vary by platform, config and compilation.  You might not get the same results using template0, but its interested that you can set it since it wasn't obvious that it was even available.</p> <a href="http://pivotallabs.com/5-15-12-standup-setting-the-template-in-database-yml/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/5-15-12-standup-setting-the-template-in-database-yml/">5/15/12 Standup &#8211; setting the template in database.yml</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Interesting Things</h2>
<p>You may need to specify a template in your rails database.yml to use the rails connection to create a Postgres database via your rake scripts that has your preferred configuration.</p>
<p>Specifically, a team found they needed to specify a template &#40;template: template0&#41; in their database.yml to create UTF8 encoded databases for their project running on Ubuntu 11.04.</p>
<p>Note that your milage may vary here, since the settings on the template database will vary by platform, config and compilation.  You might not get the same results using template0, but its interested that you can set it since it wasn&#8217;t obvious that it was even available.</p>
<p>The post <a href="http://pivotallabs.com/5-15-12-standup-setting-the-template-in-database-yml/">5/15/12 Standup &#8211; setting the template in database.yml</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/5-15-12-standup-setting-the-template-in-database-yml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Standup 5/14/12 &#8211; Watch your SafeBuffer</title>
		<link>http://pivotallabs.com/standup-5-14-12-watch-your-safebuffer/</link>
		<comments>http://pivotallabs.com/standup-5-14-12-watch-your-safebuffer/#comments</comments>
		<pubDate>Mon, 14 May 2012 23:03:00 +0000</pubDate>
		<dc:creator>Justin Richard</dc:creator>
				<category><![CDATA[Standup]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-5-14-12-watch-your-safebuffer/</guid>
		<description><![CDATA[<p><h2>Interesting Things</h2>

<p>ActiveSupport::SafeBuffer do not work with all the features of #gsub.  Mind your strings, or fix this bug in ruby!</p>

<pre>
# normal:
1.9.3-p125 :004 &#62; &#34;foo&#34;.gsub&#40;/&#40;?&#60;my_string&#62;.*&#41;/&#41; { $~[:my_string]*2 }
 =&#62; &#34;foofoo&#34;

# broken:
1.9.3-p125 :005 &#62; &#34;foo&#34;.html_safe.gsub&#40;/&#40;?&#60;my_string&#62;.*&#41;/&#41; { $~[:my_string]*2 }
 =&#62; &#34;&#34;

# round trip, back to working
1.9.3-p125 :006 &#62; &#34;foo&#34;.html_safe.to_str.gsub&#40;/&#40;?&#60;my_string&#62;.*&#41;/&#41; { $~[:my_string]*2 }
 =&#62; &#34;foofoo&#34;
&#60;/my_string&#62;&#60;/my_string&#62;&#60;/my_string&#62;</pre> <a href="http://pivotallabs.com/standup-5-14-12-watch-your-safebuffer/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-5-14-12-watch-your-safebuffer/">Standup 5/14/12 &#8211; Watch your SafeBuffer</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Interesting Things</h2>
<p>ActiveSupport::SafeBuffer do not work with all the features of #gsub.  Mind your strings, or fix this bug in ruby!</p>
<pre>
# normal:
1.9.3-p125 :004 &gt; &quot;foo&quot;.gsub&#40;/&#40;?&lt;my_string&gt;.*&#41;/&#41; { $~[:my_string]*2 }
 =&gt; &quot;foofoo&quot;

# broken:
1.9.3-p125 :005 &gt; &quot;foo&quot;.html_safe.gsub&#40;/&#40;?&lt;my_string&gt;.*&#41;/&#41; { $~[:my_string]*2 }
 =&gt; &quot;&quot;

# round trip, back to working
1.9.3-p125 :006 &gt; &quot;foo&quot;.html_safe.to_str.gsub&#40;/&#40;?&lt;my_string&gt;.*&#41;/&#41; { $~[:my_string]*2 }
 =&gt; &quot;foofoo&quot;
&lt;/my_string&gt;&lt;/my_string&gt;&lt;/my_string&gt;</pre>
<p>The post <a href="http://pivotallabs.com/standup-5-14-12-watch-your-safebuffer/">Standup 5/14/12 &#8211; Watch your SafeBuffer</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-5-14-12-watch-your-safebuffer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Standup 12/8/11</title>
		<link>http://pivotallabs.com/standup-12-8-11/</link>
		<comments>http://pivotallabs.com/standup-12-8-11/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 01:11:00 +0000</pubDate>
		<dc:creator>Justin Richard</dc:creator>
				<category><![CDATA[Standup]]></category>

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

<p><a href="http://us.movember.com/mospace/network/webstache">The Pivotal Webstache Movember network cleared $40,000 raised to stop Dude Cancer</a></p>

<p><a href="http://joda-time.sourceforge.net/">Joda-Time</a> provides a quality replacement for the Java date and time classes.  Months are not zero based!</p>

<p>EC2 is scheduling restarts for their physical machines and your instances.  In some cases you can manage your own restart.  Make sure you check your email and your EC2 console.</p>

<h2>Help</h2>

<p>Google Chrome seems to be caching and rendering the last resource served from a URL regardless of its content-type when you navigate via the back button to a page.  Specifically, a client's site serves both HTML and JSON from the same URL.  The JSON is the last request made because it's an async request on the page.  When the user navigates away from this page then back the JSON data is rendered instead of the HTML resource.  Any HTTP header change suggestions we can use to get Chrome to only render the HTML content?</p>

<p>Capybara seems to not allow #click on elements depending on how you call #find.  What's up with this?</p>

<pre>
find&#40;'tr', :id =&#62; 'foo'&#41;.click  #not clickable
find&#40;:css, 'tr#foo'&#41;.click      # is clickable
</pre> <a href="http://pivotallabs.com/standup-12-8-11/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-12-8-11/">Standup 12/8/11</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Interesting</h2>
<p><a href="http://us.movember.com/mospace/network/webstache">The Pivotal Webstache Movember network cleared $40,000 raised to stop Dude Cancer</a></p>
<p><a href="http://joda-time.sourceforge.net/">Joda-Time</a> provides a quality replacement for the Java date and time classes.  Months are not zero based!</p>
<p>EC2 is scheduling restarts for their physical machines and your instances.  In some cases you can manage your own restart.  Make sure you check your email and your EC2 console.</p>
<h2>Help</h2>
<p>Google Chrome seems to be caching and rendering the last resource served from a URL regardless of its content-type when you navigate via the back button to a page.  Specifically, a client&#8217;s site serves both HTML and JSON from the same URL.  The JSON is the last request made because it&#8217;s an async request on the page.  When the user navigates away from this page then back the JSON data is rendered instead of the HTML resource.  Any HTTP header change suggestions we can use to get Chrome to only render the HTML content?</p>
<p>Capybara seems to not allow #click on elements depending on how you call #find.  What&#8217;s up with this?</p>
<pre>
find&#40;'tr', :id =&gt; 'foo'&#41;.click  #not clickable
find&#40;:css, 'tr#foo'&#41;.click      # is clickable
</pre>
<p>The post <a href="http://pivotallabs.com/standup-12-8-11/">Standup 12/8/11</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-12-8-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Standup 12/6/2011</title>
		<link>http://pivotallabs.com/standup-12-6-2011/</link>
		<comments>http://pivotallabs.com/standup-12-6-2011/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 03:53:00 +0000</pubDate>
		<dc:creator>Justin Richard</dc:creator>
				<category><![CDATA[Standup]]></category>

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

<p>A Ruby Class's default 'initialize' method takes zero or any number or arguments depending on the version of Ruby you use.</p>

<p>Given the Foo class:</p>

<pre>
class Foo
end
</pre>

<p>And then attempting to instantiate an instance of Foo with arguments like so:</p>

<pre>
Foo.new&#40;'any argument'&#41;
</pre>

<p>You get an invalid number of arguments error in 1.8.7 and 1.9.3.</p>

<p>However, 1.9.2 and 1.9.1 will just accept any number of arguments.</p>

<p>Ruby spec documents this behavior:
<a href="https://github.com/rubyspec/rubyspec/blob/master/core/object/new_spec.rb">https://github.com/rubyspec/rubyspec/blob/master/core/object/new_spec.rb</a></p>

<p>It appears that this difference between versions was introduced as a feature in 1.9.2 and back ported to 1.9.1 and then reverted in 1.9.3.  Perhaps the reversion should be back ported now?
<a href="http://redmine.ruby-lang.org/issues/2451">http://redmine.ruby-lang.org/issues/2451</a></p>

<h2>Help</h2>

<p>Does anyone know of an API that provides a sales tax lookup service?</p> <a href="http://pivotallabs.com/standup-12-6-2011/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-12-6-2011/">Standup 12/6/2011</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Interesting</h2>
<p>A Ruby Class&#8217;s default &#8216;initialize&#8217; method takes zero or any number or arguments depending on the version of Ruby you use.</p>
<p>Given the Foo class:</p>
<pre>
class Foo
end
</pre>
<p>And then attempting to instantiate an instance of Foo with arguments like so:</p>
<pre>
Foo.new&#40;'any argument'&#41;
</pre>
<p>You get an invalid number of arguments error in 1.8.7 and 1.9.3.</p>
<p>However, 1.9.2 and 1.9.1 will just accept any number of arguments.</p>
<p>Ruby spec documents this behavior:<br />
<a href="https://github.com/rubyspec/rubyspec/blob/master/core/object/new_spec.rb">https://github.com/rubyspec/rubyspec/blob/master/core/object/new_spec.rb</a></p>
<p>It appears that this difference between versions was introduced as a feature in 1.9.2 and back ported to 1.9.1 and then reverted in 1.9.3.  Perhaps the reversion should be back ported now?<br />
<a href="http://redmine.ruby-lang.org/issues/2451">http://redmine.ruby-lang.org/issues/2451</a></p>
<h2>Help</h2>
<p>Does anyone know of an API that provides a sales tax lookup service?</p>
<p>The post <a href="http://pivotallabs.com/standup-12-6-2011/">Standup 12/6/2011</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-12-6-2011/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Standup 5/3/11 &#8211; It&#039;s Tuesday All Day</title>
		<link>http://pivotallabs.com/it-s-tuesday-all-day-2/</link>
		<comments>http://pivotallabs.com/it-s-tuesday-all-day-2/#comments</comments>
		<pubDate>Tue, 03 May 2011 19:12:00 +0000</pubDate>
		<dc:creator>Justin Richard</dc:creator>
				<category><![CDATA[Standup]]></category>
		<category><![CDATA[agile]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/it-s-tuesday-all-day/</guid>
		<description><![CDATA[<p><h2>Interesting</h2>

<ul>
<li><p>Check your instance variable and methods names for conflicts with libraries or frameworks you are using if you get unexpected failures</p>

<p>Example 1: defining @response in your RSpec test setup when expecting to use the response from a HTTP request overwrites the result of the request.  &#40;don't expect @request or @url to do you any favors either&#41;</p>

<p>Example 2: Don't define a #process method on a Rails controller</p></li>
<li><p><a href="http://www.meetup.com/San-Francisco-DevOps/">SF Dev Ops meetup is tonight</a></p></li>
</ul> <a href="http://pivotallabs.com/it-s-tuesday-all-day-2/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/it-s-tuesday-all-day-2/">Standup 5/3/11 &#8211; It&#039;s Tuesday All Day</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Interesting</h2>
<ul>
<li>
<p>Check your instance variable and methods names for conflicts with libraries or frameworks you are using if you get unexpected failures</p>
<p>Example 1: defining @response in your RSpec test setup when expecting to use the response from a HTTP request overwrites the result of the request.  &#40;don&#8217;t expect @request or @url to do you any favors either&#41;</p>
<p>Example 2: Don&#8217;t define a #process method on a Rails controller</p>
</li>
<li>
<p><a href="http://www.meetup.com/San-Francisco-DevOps/">SF Dev Ops meetup is tonight</a></p>
</li>
</ul>
<p>The post <a href="http://pivotallabs.com/it-s-tuesday-all-day-2/">Standup 5/3/11 &#8211; It&#039;s Tuesday All Day</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/it-s-tuesday-all-day-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Standup 10/7/10: Apache &#8211;with-mpm compile option, IE &amp;&amp; Rafael &amp;&amp; jQuery, Modulr</title>
		<link>http://pivotallabs.com/standup-10-7-10/</link>
		<comments>http://pivotallabs.com/standup-10-7-10/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 22:07:00 +0000</pubDate>
		<dc:creator>Justin Richard</dc:creator>
				<category><![CDATA[Standup]]></category>

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

<blockquote>
    <p><em>"Some of our requests are not timing out in the time specified in our mod_proxy settings in Apache."</em></p>
</blockquote>

<p>This team's problem was later refined to the fact that these timeout settings were not being respected on all requests when the server hit a spike in load.  The solution is to recompile Apache with the --with-mpm=worker option.  The default option value is --with-mpm=prefork.  With Apache compiled with the 'worker' value all requests respect the timeout settings.</p>

<blockquote>
    <p><em>"When using <a href="http://raphaeljs.com/">Rafael</a> and <a href="http://jquery.com/">jQuery</a> together in our project our click handlers throw errors in IE 7 and 8"</em></p>
</blockquote>

<p>After further investigation IE seems to keep propagating the click event even though it was handled.  The following javascript was added only in IE browsers to make it behave like the other browsers.</p>

<pre>
if&#40;document.attachEvent&#41; {
  $&#40;divContainingCanvas&#41;.find&#40;&#34;*&#34;&#41;.click&#40;function&#40;event&#41; {
    event.stopPropagation&#40;&#41;;
  }&#41;;
}
</pre>

<h2>Interesting</h2>

<p><a href="http://github.com/codespeaks/modulr">Modulr</a> is a Ruby implementation of a <a href="http://www.commonjs.org/">CommonJS</a> module that combines your multiple javascript files into a single file that is executed in dependency order.  It does this by ordering the execution of your code by the require&#40;&#41; method call.  What's interesting is that you can collapse your <a href="http://nodejs.org/">NodeJS</a> code into a single file to include in a browser and run <a href="http://github.com/pivotal/jasmine">Jasmine</a> tests against.  This is possible because NodeJS uses require&#40;&#41; to link your dependent files together.</p> <a href="http://pivotallabs.com/standup-10-7-10/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-10-7-10/">Standup 10/7/10: Apache &#8211;with-mpm compile option, IE &amp;&amp; Rafael &amp;&amp; jQuery, Modulr</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Help</h2>
<blockquote>
<p><em>&#8220;Some of our requests are not timing out in the time specified in our mod_proxy settings in Apache.&#8221;</em></p>
</blockquote>
<p>This team&#8217;s problem was later refined to the fact that these timeout settings were not being respected on all requests when the server hit a spike in load.  The solution is to recompile Apache with the &#8211;with-mpm=worker option.  The default option value is &#8211;with-mpm=prefork.  With Apache compiled with the &#8216;worker&#8217; value all requests respect the timeout settings.</p>
<blockquote>
<p><em>&#8220;When using <a href="http://raphaeljs.com/">Rafael</a> and <a href="http://jquery.com/">jQuery</a> together in our project our click handlers throw errors in IE 7 and 8&#8243;</em></p>
</blockquote>
<p>After further investigation IE seems to keep propagating the click event even though it was handled.  The following javascript was added only in IE browsers to make it behave like the other browsers.</p>
<pre>
if&#40;document.attachEvent&#41; {
  $&#40;divContainingCanvas&#41;.find&#40;&quot;*&quot;&#41;.click&#40;function&#40;event&#41; {
    event.stopPropagation&#40;&#41;;
  }&#41;;
}
</pre>
<h2>Interesting</h2>
<p><a href="http://github.com/codespeaks/modulr">Modulr</a> is a Ruby implementation of a <a href="http://www.commonjs.org/">CommonJS</a> module that combines your multiple javascript files into a single file that is executed in dependency order.  It does this by ordering the execution of your code by the require&#40;&#41; method call.  What&#8217;s interesting is that you can collapse your <a href="http://nodejs.org/">NodeJS</a> code into a single file to include in a browser and run <a href="http://github.com/pivotal/jasmine">Jasmine</a> tests against.  This is possible because NodeJS uses require&#40;&#41; to link your dependent files together.</p>
<p>The post <a href="http://pivotallabs.com/standup-10-7-10/">Standup 10/7/10: Apache &#8211;with-mpm compile option, IE &amp;&amp; Rafael &amp;&amp; jQuery, Modulr</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-10-7-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Standup 2010.10.4 getting SWFUpload to work with Rails 3</title>
		<link>http://pivotallabs.com/standup-2010-10-4/</link>
		<comments>http://pivotallabs.com/standup-2010-10-4/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 19:10:00 +0000</pubDate>
		<dc:creator>Justin Richard</dc:creator>
				<category><![CDATA[Standup]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-2010-10-4/</guid>
		<description><![CDATA[<p><h2>Help</h2>

<blockquote>
    <p><em>"We're trying to use SWFUpload in Rails 3 by using Rack middleware to rewrite the session cookie passed in via request param.  In a Rails 2.3.x your Rack middleware could clobber the session cookie and reset it before it hits your main app.  However, this isn't happening in Rails 3.  Has anybody run into this before?"</em></p>
</blockquote>

<p>The answer is that as of Rails 2.3.4, the session handler was moved to Rack middleware.  So you need to make sure that your middleware manipulating the session is running before the Rails session middleware is run.  You can do this with something like this:</p>

<pre>
config.middleware.insert_before&#40;config.session_store, FlashSessionCookieMiddleware&#41;
</pre>

<p>Brian Racer has a <a href="http://jetpackweb.com/blog/2009/10/21/rails-2-3-4-and-swfupload-rack-middleware-for-flash-uploads-that-degrade-gracefully/" title="Rails 2.3.4 and SWFUpload – Rack Middleware for Flash Uploads that Degrade Gracefully">good description of getting SWFUpload working with rails 2.3.4</a></p> <a href="http://pivotallabs.com/standup-2010-10-4/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-2010-10-4/">Standup 2010.10.4 getting SWFUpload to work with Rails 3</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Help</h2>
<blockquote>
<p><em>&#8220;We&#8217;re trying to use SWFUpload in Rails 3 by using Rack middleware to rewrite the session cookie passed in via request param.  In a Rails 2.3.x your Rack middleware could clobber the session cookie and reset it before it hits your main app.  However, this isn&#8217;t happening in Rails 3.  Has anybody run into this before?&#8221;</em></p>
</blockquote>
<p>The answer is that as of Rails 2.3.4, the session handler was moved to Rack middleware.  So you need to make sure that your middleware manipulating the session is running before the Rails session middleware is run.  You can do this with something like this:</p>
<pre>
config.middleware.insert_before&#40;config.session_store, FlashSessionCookieMiddleware&#41;
</pre>
<p>Brian Racer has a <a href="http://jetpackweb.com/blog/2009/10/21/rails-2-3-4-and-swfupload-rack-middleware-for-flash-uploads-that-degrade-gracefully/" title="Rails 2.3.4 and SWFUpload – Rack Middleware for Flash Uploads that Degrade Gracefully">good description of getting SWFUpload working with rails 2.3.4</a></p>
<p>The post <a href="http://pivotallabs.com/standup-2010-10-4/">Standup 2010.10.4 getting SWFUpload to work with Rails 3</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-2010-10-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Standup 2/5/2010: Jasmine has shared examples</title>
		<link>http://pivotallabs.com/standup-2-5-2010-jasmine-has-shared-examples/</link>
		<comments>http://pivotallabs.com/standup-2-5-2010-jasmine-has-shared-examples/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 18:15:00 +0000</pubDate>
		<dc:creator>Justin Richard</dc:creator>
				<category><![CDATA[Standup]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-2-5-2010-jasmine-has-shared-examples/</guid>
		<description><![CDATA[<p><p>Interesting##</p>

<p>If you're using <a href="http://github.com/pivotal/jasmine" title="Jasmine JavaScript Test Framework">Jasmine</a> to test your JavaScript code and you miss the shared examples functionality you used in RSpec, you can achieve the same result by just using a plain old function.  Name your function something like "mySharedBehavior" and call it in each of your describe blocks that share the behavior.  Jasmine will execute the function and print your results just as if you repeated all the shared examples in each of your describe blocks.  Be careful not to modify the scope of the function that contains your shared examples &#40;Jasmine needs to control the scope&#41;. </p> <a href="http://pivotallabs.com/standup-2-5-2010-jasmine-has-shared-examples/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-2-5-2010-jasmine-has-shared-examples/">Standup 2/5/2010: Jasmine has shared examples</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Interesting##</p>
<p>If you&#8217;re using <a href="http://github.com/pivotal/jasmine" title="Jasmine JavaScript Test Framework">Jasmine</a> to test your JavaScript code and you miss the shared examples functionality you used in RSpec, you can achieve the same result by just using a plain old function.  Name your function something like &#8220;mySharedBehavior&#8221; and call it in each of your describe blocks that share the behavior.  Jasmine will execute the function and print your results just as if you repeated all the shared examples in each of your describe blocks.  Be careful not to modify the scope of the function that contains your shared examples &#40;Jasmine needs to control the scope&#41;. </p>
<p>The post <a href="http://pivotallabs.com/standup-2-5-2010-jasmine-has-shared-examples/">Standup 2/5/2010: Jasmine has shared examples</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-2-5-2010-jasmine-has-shared-examples/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 1109/1197 objects using apc

 Served from: pivotallabs.com @ 2013-05-19 09:21:22 by W3 Total Cache -->