<?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; Max Brunsfeld</title>
	<atom:link href="http://pivotallabs.com/author/mbrunsfeld/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>what, CI Reporter?</title>
		<link>http://pivotallabs.com/what-ci-reporter/</link>
		<comments>http://pivotallabs.com/what-ci-reporter/#comments</comments>
		<pubDate>Thu, 18 Oct 2012 14:41:00 +0000</pubDate>
		<dc:creator>Max Brunsfeld</dc:creator>
				<category><![CDATA[Standup]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/what-ci-reporter/</guid>
		<description><![CDATA[<p><h2>Helps</h2>

<ul>
<li>iPad/iOS - full page redraws</li>
</ul>

<p>iOS devices do a full-page redraw when we introduce new height at the bottom of the page or when backgrounding/foregrounding the browser. How to avoid that?</p>

<ul>
<li>Jasmine not working when run through jenkins</li>
</ul>

<p>Jasmine:ci on firefox fails on CI only with the error:</p>

<p>/home/ci/.rvm/gems/ruby-1.9.3-p194@gemini/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/remote/response.rb:52:in `assert_ok': ReferenceError: jsApiReporter is not defined &#40;Selenium::WebDriver::Error::JavascriptError&#41;</p>

<p>Anyone seen this? It runs great on the command line when we ssh into  the ci box, but fails when run through Jenkins.</p>

<h2>Interestings</h2>

<ul>
<li>JS - objects on prototypes</li>
</ul>

<p>In javascript, if you give a prototype an object property, then mutating that object will do so for <em>all</em> instances of the class.</p>

<p>So if you do this:</p>

<pre><code>MyClass.prototype.things = {
  "foo": "cool"
};

var instance1 = new MyClass&#40;&#41;,
instance2 = new MyClass&#40;&#41;;

instance1.things["bar"] = 5;
</code></pre>

<p>then</p>

<pre><code>instance2.things["bar"] === 5
</code></pre> <a href="http://pivotallabs.com/what-ci-reporter/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/what-ci-reporter/">what, CI Reporter?</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Helps</h2>
<ul>
<li>iPad/iOS &#8211; full page redraws</li>
</ul>
<p>iOS devices do a full-page redraw when we introduce new height at the bottom of the page or when backgrounding/foregrounding the browser. How to avoid that?</p>
<ul>
<li>Jasmine not working when run through jenkins</li>
</ul>
<p>Jasmine:ci on firefox fails on CI only with the error:</p>
<p>/home/ci/.rvm/gems/ruby-1.9.3-p194@gemini/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/remote/response.rb:52:in `assert_ok&#8217;: ReferenceError: jsApiReporter is not defined &#40;Selenium::WebDriver::Error::JavascriptError&#41;</p>
<p>Anyone seen this? It runs great on the command line when we ssh into  the ci box, but fails when run through Jenkins.</p>
<h2>Interestings</h2>
<ul>
<li>JS &#8211; objects on prototypes</li>
</ul>
<p>In javascript, if you give a prototype an object property, then mutating that object will do so for <em>all</em> instances of the class.</p>
<p>So if you do this:</p>
<pre><code>MyClass.prototype.things = {
  "foo": "cool"
};

var instance1 = new MyClass&#40;&#41;,
instance2 = new MyClass&#40;&#41;;

instance1.things["bar"] = 5;
</code></pre>
<p>then</p>
<pre><code>instance2.things["bar"] === 5
</code></pre>
<p>The post <a href="http://pivotallabs.com/what-ci-reporter/">what, CI Reporter?</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/what-ci-reporter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No go on #nogo</title>
		<link>http://pivotallabs.com/no-go-on-nogo/</link>
		<comments>http://pivotallabs.com/no-go-on-nogo/#comments</comments>
		<pubDate>Wed, 17 Oct 2012 17:39:00 +0000</pubDate>
		<dc:creator>Max Brunsfeld</dc:creator>
				<category><![CDATA[Standup]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/no-go-on-nogo/</guid>
		<description><![CDATA[<p><h2>Helps</h2>

<ul>
<li>#nogo links triggered on Firefox 15.0.1</li>
</ul>

<p>We are using jqeury-ui-selectmenu and on some menus, selecting from the menu routes to the embedded href in the link &#40;#nogo&#41; instead of triggering the handlers.  This is only a problem on firefox 15.0.1+. </p>

<h2>Interestings</h2>

<ul>
<li>UTF-8 encoded emails in ActionMailer</li>
</ul>

<p>We ran into a problem with incorrectly encoded UTF-8 characters in emails generated by our rails app.  </p>

<p>We spent a few hours investigating this.  It turns out the premailer-rails3 gem we were using for CSS inlining was at fault.  We switched to the actionmailer_inline_css gem, which handles UTF-8 properly.</p>

<p>This is likely to be an issue for any Rails 3 site that puts user generated content in email templates &#40;names, etc&#41;.</p>

<p>-Maksim</p> <a href="http://pivotallabs.com/no-go-on-nogo/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/no-go-on-nogo/">No go on #nogo</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Helps</h2>
<ul>
<li>#nogo links triggered on Firefox 15.0.1</li>
</ul>
<p>We are using jqeury-ui-selectmenu and on some menus, selecting from the menu routes to the embedded href in the link &#40;#nogo&#41; instead of triggering the handlers.  This is only a problem on firefox 15.0.1+. </p>
<h2>Interestings</h2>
<ul>
<li>UTF-8 encoded emails in ActionMailer</li>
</ul>
<p>We ran into a problem with incorrectly encoded UTF-8 characters in emails generated by our rails app.  </p>
<p>We spent a few hours investigating this.  It turns out the premailer-rails3 gem we were using for CSS inlining was at fault.  We switched to the actionmailer_inline_css gem, which handles UTF-8 properly.</p>
<p>This is likely to be an issue for any Rails 3 site that puts user generated content in email templates &#40;names, etc&#41;.</p>
<p>-Maksim</p>
<p>The post <a href="http://pivotallabs.com/no-go-on-nogo/">No go on #nogo</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/no-go-on-nogo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Super secret special standup</title>
		<link>http://pivotallabs.com/super-secret-special-standup/</link>
		<comments>http://pivotallabs.com/super-secret-special-standup/#comments</comments>
		<pubDate>Mon, 15 Oct 2012 14:51:00 +0000</pubDate>
		<dc:creator>Max Brunsfeld</dc:creator>
				<category><![CDATA[Standup]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/super-secret-special-standup/</guid>
		<description><![CDATA[<p><h1>Interestings</h1>

<ul>
<li><p>Interested in speaking at the East Bay Ruby Meetup?
Ruby-81 meets near on campus at Cal and is looking for speakers. It's a great place to get started with professional public speaking.  </p></li>
<li><p>iOS6's super aggressive caching
IOS6 apps will now much more aggressively cache http requests, even POST requests!  This can trip you up when upgrading, so be prepared to add cache settings to your AJAX requests.</p></li>
</ul>

<p>http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results</p> <a href="http://pivotallabs.com/super-secret-special-standup/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/super-secret-special-standup/">Super secret special standup</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h1>Interestings</h1>
<ul>
<li>
<p>Interested in speaking at the East Bay Ruby Meetup?<br />
Ruby-81 meets near on campus at Cal and is looking for speakers. It&#8217;s a great place to get started with professional public speaking.  </p>
</li>
<li>
<p>iOS6&#8242;s super aggressive caching<br />
IOS6 apps will now much more aggressively cache http requests, even POST requests!  This can trip you up when upgrading, so be prepared to add cache settings to your AJAX requests.</p>
</li>
</ul>
<p>http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results</p>
<p>The post <a href="http://pivotallabs.com/super-secret-special-standup/">Super secret special standup</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/super-secret-special-standup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Standup][SF] 5/17 &#8211; we approve of the juggernaut</title>
		<link>http://pivotallabs.com/standup-sf-5-17/</link>
		<comments>http://pivotallabs.com/standup-sf-5-17/#comments</comments>
		<pubDate>Fri, 18 May 2012 00:27:00 +0000</pubDate>
		<dc:creator>Max Brunsfeld</dc:creator>
				<category><![CDATA[Standup]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-sf-5-17/</guid>
		<description><![CDATA[<p><h2>Ask for Help</h2>

<blockquote>
    <p><em>"Is <a href="https://github.com/maccman/juggernaut.git">Juggernaut</a> still the best library to use for websockets, long-polling etc?"</em></p>
</blockquote>

<p>The last commit on master was about 2 months ago. One pivotal project is using it, and they approve of it. If you're on Heroku, you might try their <a href="https://addons.heroku.com/pusher">pusher</a> service.</p> <a href="http://pivotallabs.com/standup-sf-5-17/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-sf-5-17/">[Standup][SF] 5/17 &#8211; we approve of the juggernaut</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Ask for Help</h2>
<blockquote>
<p><em>&#8220;Is <a href="https://github.com/maccman/juggernaut.git">Juggernaut</a> still the best library to use for websockets, long-polling etc?&#8221;</em></p>
</blockquote>
<p>The last commit on master was about 2 months ago. One pivotal project is using it, and they approve of it. If you&#8217;re on Heroku, you might try their <a href="https://addons.heroku.com/pusher">pusher</a> service.</p>
<p>The post <a href="http://pivotallabs.com/standup-sf-5-17/">[Standup][SF] 5/17 &#8211; we approve of the juggernaut</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-sf-5-17/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Standup][SF] 5/16: Travis CI &#8211; Distributed sticker distribution</title>
		<link>http://pivotallabs.com/standup-sf-5-16-stickers-from-travis/</link>
		<comments>http://pivotallabs.com/standup-sf-5-16-stickers-from-travis/#comments</comments>
		<pubDate>Wed, 16 May 2012 21:09:00 +0000</pubDate>
		<dc:creator>Max Brunsfeld</dc:creator>
				<category><![CDATA[Standup]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-sf-5-16-stickers-from-travis/</guid>
		<description><![CDATA[<p><h2>Ask for Help</h2>

<ul>
<li>"Anybody know of good short-to-medium-term housing in SF?
Try <a href="www.airbnb.com">airbnb</a>, <a href="https://www.vrbo.com/">'vacation rentals by owner'</a>, or <a href="http://www.homeaway.com/">homeaway</a>.</li>
</ul>

<h2>Interesting Things</h2>

<ul>
<li><p>If you're setting up a postgres database using ActiveRecord, and you see an error that looks like this:</p>

<p>new encoding &#40;UTF8&#41; is incompatible with the encoding of the template database &#40;SQL_ASCII&#41;</p></li>
</ul>

<p>then the problem may be that your <code>template1</code> database &#40;the default database that postgres copies from when you <code>CREATE DATABASE</code>&#41; is configured to use ASCII, rather than UTF8. Try adding this option to the relevant section of your <code>database.yml</code>:</p>

<pre><code>template: template0
</code></pre>

<p>More information about <a href="http://www.postgresql.org/docs/8.1/static/manage-ag-templatedbs.html">Template Databases in postgres</a></p>

<ul>
<li>If you donate to <a href="http://travis-ci.org/">Travis CI</a>, then you will receive free stickers.</li>
</ul> <a href="http://pivotallabs.com/standup-sf-5-16-stickers-from-travis/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-sf-5-16-stickers-from-travis/">[Standup][SF] 5/16: Travis CI &#8211; Distributed sticker distribution</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Ask for Help</h2>
<ul>
<li>&#8220;Anybody know of good short-to-medium-term housing in SF?<br />
Try <a href="www.airbnb.com">airbnb</a>, <a href="https://www.vrbo.com/">&#8216;vacation rentals by owner&#8217;</a>, or <a href="http://www.homeaway.com/">homeaway</a>.</li>
</ul>
<h2>Interesting Things</h2>
<ul>
<li>
<p>If you&#8217;re setting up a postgres database using ActiveRecord, and you see an error that looks like this:</p>
<p>new encoding &#40;UTF8&#41; is incompatible with the encoding of the template database &#40;SQL_ASCII&#41;</p>
</li>
</ul>
<p>then the problem may be that your <code>template1</code> database &#40;the default database that postgres copies from when you <code>CREATE DATABASE</code>&#41; is configured to use ASCII, rather than UTF8. Try adding this option to the relevant section of your <code>database.yml</code>:</p>
<pre><code>template: template0
</code></pre>
<p>More information about <a href="http://www.postgresql.org/docs/8.1/static/manage-ag-templatedbs.html">Template Databases in postgres</a></p>
<ul>
<li>If you donate to <a href="http://travis-ci.org/">Travis CI</a>, then you will receive free stickers.</li>
</ul>
<p>The post <a href="http://pivotallabs.com/standup-sf-5-16-stickers-from-travis/">[Standup][SF] 5/16: Travis CI &#8211; Distributed sticker distribution</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-sf-5-16-stickers-from-travis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A convenient &#8216;super&#8217; method for Backbone.js</title>
		<link>http://pivotallabs.com/a-convenient-super-method-for-backbone-js/</link>
		<comments>http://pivotallabs.com/a-convenient-super-method-for-backbone-js/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 03:56:00 +0000</pubDate>
		<dc:creator>Max Brunsfeld</dc:creator>
				<category><![CDATA[Labs]]></category>
		<category><![CDATA[backbone]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/a-convenient-super-method-for-backbone-js/</guid>
		<description><![CDATA[<p><h3>Inheritance in Backbone</h3>

<p><a href="http://documentcloud.github.com/backbone/">Backbone.js</a> comes with a minimalist OO inheritance framework similar to the one employed by <a href="http://coffeescript.org/#classes">CoffeeScript</a>. Each base class has a static method called <code>extend</code> that is used to create a subclass, like this:</p>

<pre><code>User = Backbone.Model.extend&#40;{
  // instance methods
},
{
  // class methods
}&#41;;
</code></pre>

<p><code>extend</code> returns a constructor whose prototype inherits from Backbone.Model.prototype. References to all of Backbone.Model's static methods and properties &#40;including <code>extend</code>&#41; are copied to the new constructor.</p>

<h3>Calling 'super'</h3>

<p>The constructor also receives a <code>__super__</code> property, which references its superclass.</p>

<pre><code>User.__super__ === Backbone.Model.prototype
</code></pre>

<p>This makes it possible to call <code>super</code> inside of a class or and instance method:</p>

<pre><code>User.prototype.save = function&#40;attrs&#41; {
    this.beforeSave&#40;attrs&#41;;
    User.__super__.save.apply&#40;this, arguments&#41;;
};
</code></pre>

<p>CoffeeScript has a <code>super</code> keyword that compiles to the line above, but when using Backbone with plain javascript, its a little grating to have to type that out.</p>

<h3>A small layer of convenience</h3>

<p>I wrote <a href="https://gist.github.com/1542120">this little <code>super</code> method</a> &#40;test-driven using <a href="http://pivotal.github.com/jasmine/">jasmine</a>&#41; which saves me having to repeat the constructor's name all over the place. You call it like this:</p>

<pre><code>User.prototype.save = function&#40;attrs&#41; {
    this.beforeSave&#40;attrs&#41;;
    this._super&#40;"save", arguments&#41;;
};
</code></pre>

<p>The second parameter to <code>_super</code> is the array of arguments to pass to the overridden method. This is to optimize for the common case of passing the <code>arguments</code> object straight through.</p>

<p>There's no way to avoid having to repeat the method name like that, unless you wrap every method definition with a helper function that either passes the overridden method as a parameter &#40;a la <a href="http://www.prototypejs.org/learn/class-inheritance">Prototype.js</a>&#41; or reassigns a hidden <code>super</code> property behind the scenes &#40;like <a href="http://jsclass.jcoglan.com/keywords.html">JS.Class</a> or <a href="http://ejohn.org/blog/simple-javascript-inheritance/">John Resig's approach</a>&#41;. These approaches won't work with Backbone's ultra-minimalist inheritance system.</p> <a href="http://pivotallabs.com/a-convenient-super-method-for-backbone-js/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/a-convenient-super-method-for-backbone-js/">A convenient &#8216;super&#8217; method for Backbone.js</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h3>Inheritance in Backbone</h3>
<p><a href="http://documentcloud.github.com/backbone/">Backbone.js</a> comes with a minimalist OO inheritance framework similar to the one employed by <a href="http://coffeescript.org/#classes">CoffeeScript</a>. Each base class has a static method called <code>extend</code> that is used to create a subclass, like this:</p>
<pre><code>User = Backbone.Model.extend&#40;{
  // instance methods
},
{
  // class methods
}&#41;;
</code></pre>
<p><code>extend</code> returns a constructor whose prototype inherits from Backbone.Model.prototype. References to all of Backbone.Model&#8217;s static methods and properties &#40;including <code>extend</code>&#41; are copied to the new constructor.</p>
<h3>Calling &#8216;super&#8217;</h3>
<p>The constructor also receives a <code>__super__</code> property, which references its superclass.</p>
<pre><code>User.__super__ === Backbone.Model.prototype
</code></pre>
<p>This makes it possible to call <code>super</code> inside of a class or and instance method:</p>
<pre><code>User.prototype.save = function&#40;attrs&#41; {
    this.beforeSave&#40;attrs&#41;;
    User.__super__.save.apply&#40;this, arguments&#41;;
};
</code></pre>
<p>CoffeeScript has a <code>super</code> keyword that compiles to the line above, but when using Backbone with plain javascript, its a little grating to have to type that out.</p>
<h3>A small layer of convenience</h3>
<p>I wrote <a href="https://gist.github.com/1542120">this little <code>super</code> method</a> &#40;test-driven using <a href="http://pivotal.github.com/jasmine/">jasmine</a>&#41; which saves me having to repeat the constructor&#8217;s name all over the place. You call it like this:</p>
<pre><code>User.prototype.save = function&#40;attrs&#41; {
    this.beforeSave&#40;attrs&#41;;
    this._super&#40;"save", arguments&#41;;
};
</code></pre>
<p>The second parameter to <code>_super</code> is the array of arguments to pass to the overridden method. This is to optimize for the common case of passing the <code>arguments</code> object straight through.</p>
<p>There&#8217;s no way to avoid having to repeat the method name like that, unless you wrap every method definition with a helper function that either passes the overridden method as a parameter &#40;a la <a href="http://www.prototypejs.org/learn/class-inheritance">Prototype.js</a>&#41; or reassigns a hidden <code>super</code> property behind the scenes &#40;like <a href="http://jsclass.jcoglan.com/keywords.html">JS.Class</a> or <a href="http://ejohn.org/blog/simple-javascript-inheritance/">John Resig&#8217;s approach</a>&#41;. These approaches won&#8217;t work with Backbone&#8217;s ultra-minimalist inheritance system.</p>
<p>The post <a href="http://pivotallabs.com/a-convenient-super-method-for-backbone-js/">A convenient &#8216;super&#8217; method for Backbone.js</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/a-convenient-super-method-for-backbone-js/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Standup 8/26/2011</title>
		<link>http://pivotallabs.com/standup-8-26-2011/</link>
		<comments>http://pivotallabs.com/standup-8-26-2011/#comments</comments>
		<pubDate>Sat, 27 Aug 2011 06:11:00 +0000</pubDate>
		<dc:creator>Max Brunsfeld</dc:creator>
				<category><![CDATA[Standup]]></category>

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

<ul>
<li>Radio buttons behave strangely when they have no 'value' attribute. If you had a form containing a tag like this:</li>
</ul>

<p><code>&#60;input type="radio" name="foo" /&#62;</code>   &#40;no value attribute&#41;, </p>

<p>and you selected that radio button, then the POST data will contain <code>foo=on</code>. The default value is not an empty string, but the word "on". </p>

<p>You might run into this problem using rails form helpers. If you pass a <code>nil</code> value to ActionView's <a href="http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-radio_button_tag"><code>radio_button_tag</code></a> method, it will render a tag without a 'value' attribute, so the string "on" might show up in your params.</p>

<ul>
<li>Watch out for old middleware that expects the <code>:body</code> method of a <code>Rack::Response</code> to return a string. In newer versions of <a href="http://rack.rubyforge.org/">rack</a>, the method returns an enumerable. We ran into this problem with an old version of <a href="https://github.com/jdpace/PDFKit">pdfkit</a>. It's fixed in the new version.</li>
</ul> <a href="http://pivotallabs.com/standup-8-26-2011/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-8-26-2011/">Standup 8/26/2011</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Interesting Things</h2>
<ul>
<li>Radio buttons behave strangely when they have no &#8216;value&#8217; attribute. If you had a form containing a tag like this:</li>
</ul>
<p><code>&lt;input type="radio" name="foo" /&gt;</code>   &#40;no value attribute&#41;, </p>
<p>and you selected that radio button, then the POST data will contain <code>foo=on</code>. The default value is not an empty string, but the word &#8220;on&#8221;. </p>
<p>You might run into this problem using rails form helpers. If you pass a <code>nil</code> value to ActionView&#8217;s <a href="http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-radio_button_tag"><code>radio_button_tag</code></a> method, it will render a tag without a &#8216;value&#8217; attribute, so the string &#8220;on&#8221; might show up in your params.</p>
<ul>
<li>Watch out for old middleware that expects the <code>:body</code> method of a <code>Rack::Response</code> to return a string. In newer versions of <a href="http://rack.rubyforge.org/">rack</a>, the method returns an enumerable. We ran into this problem with an old version of <a href="https://github.com/jdpace/PDFKit">pdfkit</a>. It&#8217;s fixed in the new version.</li>
</ul>
<p>The post <a href="http://pivotallabs.com/standup-8-26-2011/">Standup 8/26/2011</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-8-26-2011/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Standup 8/24/2011</title>
		<link>http://pivotallabs.com/standup-8-24-2011/</link>
		<comments>http://pivotallabs.com/standup-8-24-2011/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 02:43:00 +0000</pubDate>
		<dc:creator>Max Brunsfeld</dc:creator>
				<category><![CDATA[Standup]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-8-24-2011/</guid>
		<description><![CDATA[<p><h2>Ask for Help</h2>

<p>Cocoa applications can be made scriptable with <a href="http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_intro/SAppsIntro.html">AppleScript</a>. Unfortunately, nobody at the office this morning had experience with this.</p>

<h2>Interesting Things</h2>

<p>SF Pivots should check out the free PCs in the ops area. These were cutting edge linux development machines several years back, and now they and there parts are up for grabs!</p> <a href="http://pivotallabs.com/standup-8-24-2011/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-8-24-2011/">Standup 8/24/2011</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Ask for Help</h2>
<p>Cocoa applications can be made scriptable with <a href="http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_intro/SAppsIntro.html">AppleScript</a>. Unfortunately, nobody at the office this morning had experience with this.</p>
<h2>Interesting Things</h2>
<p>SF Pivots should check out the free PCs in the ops area. These were cutting edge linux development machines several years back, and now they and there parts are up for grabs!</p>
<p>The post <a href="http://pivotallabs.com/standup-8-24-2011/">Standup 8/24/2011</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-8-24-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Standup 8/22/2011</title>
		<link>http://pivotallabs.com/standup-8-22-2011/</link>
		<comments>http://pivotallabs.com/standup-8-22-2011/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 02:39:00 +0000</pubDate>
		<dc:creator>Max Brunsfeld</dc:creator>
				<category><![CDATA[Standup]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-8-22-2011/</guid>
		<description><![CDATA[<p><h2>Ask for Help</h2>

<blockquote>
    <p><em>"Is there a Ruby Gem that will take a string of code and identify what programming language it's written in?"</em></p>
</blockquote>

<p><a href="https://github.com">Github</a> has a gem called <a href="https://github.com/github/linguist">Linguist</a>, but it doesn't identify the language by parsing it. It uses file extensions, hash bang lines, and looks for the presence of certain keywords in the code.</p>

<blockquote>
    <p><em>"Should Akamai be used with, or as a replacement for varnish?"</em></p>
</blockquote>

<p><a href="http://www.akamai.com/">Akamai</a> is a complete replacement for <a href="https://www.varnish-cache.org/">varnish</a>.</p> <a href="http://pivotallabs.com/standup-8-22-2011/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-8-22-2011/">Standup 8/22/2011</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Ask for Help</h2>
<blockquote>
<p><em>&#8220;Is there a Ruby Gem that will take a string of code and identify what programming language it&#8217;s written in?&#8221;</em></p>
</blockquote>
<p><a href="https://github.com">Github</a> has a gem called <a href="https://github.com/github/linguist">Linguist</a>, but it doesn&#8217;t identify the language by parsing it. It uses file extensions, hash bang lines, and looks for the presence of certain keywords in the code.</p>
<blockquote>
<p><em>&#8220;Should Akamai be used with, or as a replacement for varnish?&#8221;</em></p>
</blockquote>
<p><a href="http://www.akamai.com/">Akamai</a> is a complete replacement for <a href="https://www.varnish-cache.org/">varnish</a>.</p>
<p>The post <a href="http://pivotallabs.com/standup-8-22-2011/">Standup 8/22/2011</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-8-22-2011/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 1027/1110 objects using apc

 Served from: pivotallabs.com @ 2013-05-19 02:28:51 by W3 Total Cache -->