<?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; Joelle Gernez</title>
	<atom:link href="http://pivotallabs.com/author/joelle/feed/" rel="self" type="application/rss+xml" />
	<link>http://pivotallabs.com</link>
	<description>Agility Developed</description>
	<lastBuildDate>Fri, 24 May 2013 05:20:56 +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] 06/08/12: coccyx: kok-siks; plural: coccyges</title>
		<link>http://pivotallabs.com/standup-sf-06-08-12-coccyx-kok-siks-plural-coccyges/</link>
		<comments>http://pivotallabs.com/standup-sf-06-08-12-coccyx-kok-siks-plural-coccyges/#comments</comments>
		<pubDate>Fri, 08 Jun 2012 15:10:00 +0000</pubDate>
		<dc:creator>Joelle Gernez</dc:creator>
				<category><![CDATA[Standup]]></category>
		<category><![CDATA[agile]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-sf-06-08-12-coccyx-kok-siks-plural-coccyges/</guid>
		<description><![CDATA[<p><h2>Helps</h2>

<ul>
<li>CI request spec video gem?</li>
</ul>

<p>suggestion: use Capybara error call back and a screen shot utility.</p>

<h2>Interestings</h2>

<ul>
<li>Forgotten Feature: Rails redirect_to and flash</li>
</ul>

<p>You can set parameters in the flash scope when redirecting:</p>

<p>redirect_to pants_path, :notice => "Successfully put on pants!"</p>

<p>redirect_to pants_path, :alert => "Pants are alight! Douse them forthwith!"</p>

<p>redirect_to pants_path, :flash => { :error => "What pants?" }</p>

<ul>
<li>should_receive&#40;"some_string"&#41; gives a helpful 'stack too deep' error</li>
</ul>

<p>Don't accidentally pass should_receive a method name as a string instead of a symbol. You'll get a lovely 'SystemStackError: stack level too deep' error.</p>

<ul>
<li>coccyx: it plugs up backbone</li>
</ul>

<p>https://github.com/onsi/coccyx</p>

<p>coccyx is a tiny little addition to backbone that I cooked up that addresses finding and fixing memory leaks by solving two problems:</p>

<p>1&#41; you can pass constructorName in as a parameter when defining your Backbone class to get a custom constructor name printed out &#40;instead of "child"&#41; in console.log and in Chrome's heap analyzer.</p>

<p>2&#41; you can call view.tearDown&#40;&#41; to automatically unbind any callbacks attached to view.model, view.collection, and delegateEvents.  You can also add a custom beforeTearDown handler to clean up any other references you might be aware of.</p>

<p>The best part is: if you registerSubView&#40;&#41; as you add subviews then calls to tearDown on a root node will walk the subview hierarchy and clean the subviews up too. </p> <a href="http://pivotallabs.com/standup-sf-06-08-12-coccyx-kok-siks-plural-coccyges/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-sf-06-08-12-coccyx-kok-siks-plural-coccyges/">[Standup][SF] 06/08/12: coccyx: kok-siks; plural: coccyges</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Helps</h2>
<ul>
<li>CI request spec video gem?</li>
</ul>
<p>suggestion: use Capybara error call back and a screen shot utility.</p>
<h2>Interestings</h2>
<ul>
<li>Forgotten Feature: Rails redirect_to and flash</li>
</ul>
<p>You can set parameters in the flash scope when redirecting:</p>
<p>redirect_to pants_path, :notice => &#8220;Successfully put on pants!&#8221;</p>
<p>redirect_to pants_path, :alert => &#8220;Pants are alight! Douse them forthwith!&#8221;</p>
<p>redirect_to pants_path, :flash => { :error => &#8220;What pants?&#8221; }</p>
<ul>
<li>should_receive&#40;&#8221;some_string&#8221;&#41; gives a helpful &#8216;stack too deep&#8217; error</li>
</ul>
<p>Don&#8217;t accidentally pass should_receive a method name as a string instead of a symbol. You&#8217;ll get a lovely &#8216;SystemStackError: stack level too deep&#8217; error.</p>
<ul>
<li>coccyx: it plugs up backbone</li>
</ul>
<p>https://github.com/onsi/coccyx</p>
<p>coccyx is a tiny little addition to backbone that I cooked up that addresses finding and fixing memory leaks by solving two problems:</p>
<p>1&#41; you can pass constructorName in as a parameter when defining your Backbone class to get a custom constructor name printed out &#40;instead of &#8220;child&#8221;&#41; in console.log and in Chrome&#8217;s heap analyzer.</p>
<p>2&#41; you can call view.tearDown&#40;&#41; to automatically unbind any callbacks attached to view.model, view.collection, and delegateEvents.  You can also add a custom beforeTearDown handler to clean up any other references you might be aware of.</p>
<p>The best part is: if you registerSubView&#40;&#41; as you add subviews then calls to tearDown on a root node will walk the subview hierarchy and clean the subviews up too. </p>
<p>The post <a href="http://pivotallabs.com/standup-sf-06-08-12-coccyx-kok-siks-plural-coccyges/">[Standup][SF] 06/08/12: coccyx: kok-siks; plural: coccyges</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-sf-06-08-12-coccyx-kok-siks-plural-coccyges/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Standup][SF] 06/06/12: Remember&#8230;</title>
		<link>http://pivotallabs.com/standup-sf-06-06-12-remember/</link>
		<comments>http://pivotallabs.com/standup-sf-06-06-12-remember/#comments</comments>
		<pubDate>Wed, 06 Jun 2012 14:37:00 +0000</pubDate>
		<dc:creator>Joelle Gernez</dc:creator>
				<category><![CDATA[Standup]]></category>
		<category><![CDATA[agile]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-sf-06-06-12-remember/</guid>
		<description><![CDATA[<p><h2>Interestings</h2>

<ul>
<li>Nested route parameters are remembered</li>
</ul>

<p>If you're in a controller action and you get there via a nested route, any path helpers you call automagically get the ID of the resource you're nested under. The route helpers reverse-merge in the parameters of the request.</p>

<p>This means if you have these routes:</p>

<p>resources :magazines do
  resources :ads
end</p>

<p>and you're in an action in the ads controller, nested under magazine 5, you can do this:</p>

<p>edit_magazine_ad_path</p>

<p>without passing in a magazine object. It will pull magazine_id 5 out of the request parameters.</p>

<ul>
<li>&#40;1..100&#41;.grep 38..44</li>
</ul>

<p>results in </p>

<pre><code>[38, 39, 40, 41, 42, 43, 44]
</code></pre>

<p>As per ruby enumerable docs.</p>

<p>This is because grep uses threequel, which on a range is defined as inclusion.  Answer courtesy of <a href="http://gilesbowkett.blogspot.com/2007/11/what-is-threequals.html">Giles Bowkett</a></p> <a href="http://pivotallabs.com/standup-sf-06-06-12-remember/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-sf-06-06-12-remember/">[Standup][SF] 06/06/12: Remember&#8230;</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Interestings</h2>
<ul>
<li>Nested route parameters are remembered</li>
</ul>
<p>If you&#8217;re in a controller action and you get there via a nested route, any path helpers you call automagically get the ID of the resource you&#8217;re nested under. The route helpers reverse-merge in the parameters of the request.</p>
<p>This means if you have these routes:</p>
<p>resources :magazines do<br />
  resources :ads<br />
end</p>
<p>and you&#8217;re in an action in the ads controller, nested under magazine 5, you can do this:</p>
<p>edit_magazine_ad_path</p>
<p>without passing in a magazine object. It will pull magazine_id 5 out of the request parameters.</p>
<ul>
<li>&#40;1..100&#41;.grep 38..44</li>
</ul>
<p>results in </p>
<pre><code>[38, 39, 40, 41, 42, 43, 44]
</code></pre>
<p>As per ruby enumerable docs.</p>
<p>This is because grep uses threequel, which on a range is defined as inclusion.  Answer courtesy of <a href="http://gilesbowkett.blogspot.com/2007/11/what-is-threequals.html">Giles Bowkett</a></p>
<p>The post <a href="http://pivotallabs.com/standup-sf-06-06-12-remember/">[Standup][SF] 06/06/12: Remember&#8230;</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-sf-06-06-12-remember/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Standup][SF] 06/04/12: Crash and protection</title>
		<link>http://pivotallabs.com/standup-sf-06-04-12-crash-and-protection/</link>
		<comments>http://pivotallabs.com/standup-sf-06-04-12-crash-and-protection/#comments</comments>
		<pubDate>Mon, 04 Jun 2012 14:28:00 +0000</pubDate>
		<dc:creator>Joelle Gernez</dc:creator>
				<category><![CDATA[Standup]]></category>
		<category><![CDATA[agile]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-sf-06-04-12-crash-and-protection/</guid>
		<description><![CDATA[<p><h2>Helps</h2>

<ul>
<li>Random phantomjs crashes on ci</li>
</ul>

<p>Phantomjs crashes randomly when running our test suite on CI, but not locally.</p>

<p>Possible leads:
Seen similar issues on Ubuntu but not on Mac.
Try building phantomjs from source.</p>

<h2>Interestings</h2>

<ul>
<li>Model.create&#40;{attrs}, without_protection: true&#41;</li>
</ul>

<p>There is a new way in rails 3 to turn off attr_accessible checks - just pass without_protection: true in as a parameter after your attrs. WTF.</p> <a href="http://pivotallabs.com/standup-sf-06-04-12-crash-and-protection/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-sf-06-04-12-crash-and-protection/">Standup][SF] 06/04/12: Crash and protection</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Helps</h2>
<ul>
<li>Random phantomjs crashes on ci</li>
</ul>
<p>Phantomjs crashes randomly when running our test suite on CI, but not locally.</p>
<p>Possible leads:<br />
Seen similar issues on Ubuntu but not on Mac.<br />
Try building phantomjs from source.</p>
<h2>Interestings</h2>
<ul>
<li>Model.create&#40;{attrs}, without_protection: true&#41;</li>
</ul>
<p>There is a new way in rails 3 to turn off attr_accessible checks &#8211; just pass without_protection: true in as a parameter after your attrs. WTF.</p>
<p>The post <a href="http://pivotallabs.com/standup-sf-06-04-12-crash-and-protection/">Standup][SF] 06/04/12: Crash and protection</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-sf-06-04-12-crash-and-protection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Standup][SF] Standup 11/7/2011:Rescue saga</title>
		<link>http://pivotallabs.com/standup-sf-standup-11-7-2011-ci-needs-love-rescue-saga/</link>
		<comments>http://pivotallabs.com/standup-sf-standup-11-7-2011-ci-needs-love-rescue-saga/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 21:49:00 +0000</pubDate>
		<dc:creator>Joelle Gernez</dc:creator>
				<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-sf-standup-11-7-2011-ci-needs-love-rescue-saga/</guid>
		<description><![CDATA[<p><h2>Ask for Help</h2>

<p>When a rescue worker is stuck on Heroku &#40;Cedar stack Rails 3.1&#41;, spinning up workers increment the total number of workers available but not the number of workers busy.  </p>

<p>To clean that up you should be able to unregister workers on the console.</p>

<blockquote>
    <p>I'd typically go into the console, get the misbehaving >worker and call "unregister_worker" on the instance. It >looks like you might also be able to simply call the >Resque::Worker#prune_dead_workers class method. >Class here: >https://github.com/defunkt/resque/blob/master/lib/resque>/worker.rb </p>
</blockquote> <a href="http://pivotallabs.com/standup-sf-standup-11-7-2011-ci-needs-love-rescue-saga/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-sf-standup-11-7-2011-ci-needs-love-rescue-saga/">[Standup][SF] Standup 11/7/2011:Rescue saga</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Ask for Help</h2>
<p>When a rescue worker is stuck on Heroku &#40;Cedar stack Rails 3.1&#41;, spinning up workers increment the total number of workers available but not the number of workers busy.  </p>
<p>To clean that up you should be able to unregister workers on the console.</p>
<blockquote>
<p>I&#8217;d typically go into the console, get the misbehaving >worker and call &#8220;unregister_worker&#8221; on the instance. It >looks like you might also be able to simply call the >Resque::Worker#prune_dead_workers class method. >Class here: >https://github.com/defunkt/resque/blob/master/lib/resque>/worker.rb </p>
</blockquote>
<p>The post <a href="http://pivotallabs.com/standup-sf-standup-11-7-2011-ci-needs-love-rescue-saga/">[Standup][SF] Standup 11/7/2011:Rescue saga</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-sf-standup-11-7-2011-ci-needs-love-rescue-saga/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 637/678 objects using apc

 Served from: pivotallabs.com @ 2013-05-24 04:59:58 by W3 Total Cache -->