<?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; Aaron VonderHaar</title>
	<atom:link href="http://pivotallabs.com/author/avonderhaar/feed/" rel="self" type="application/rss+xml" />
	<link>http://pivotallabs.com</link>
	<description>Agility Developed</description>
	<lastBuildDate>Wed, 22 May 2013 22:49:44 +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: 10/29/12: Underscore is sane again</title>
		<link>http://pivotallabs.com/standup-10-29-12-underscore-is-sane-again/</link>
		<comments>http://pivotallabs.com/standup-10-29-12-underscore-is-sane-again/#comments</comments>
		<pubDate>Mon, 29 Oct 2012 14:17:00 +0000</pubDate>
		<dc:creator>Aaron VonderHaar</dc:creator>
				<category><![CDATA[Standup]]></category>
		<category><![CDATA[agile]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-10-29-12-underscore-is-sane-again/</guid>
		<description><![CDATA[<p><h2>Interestings</h2>

<ul>
<li>Underscore 1.4.0 and 1.4.1 helpfully blow up when passed nil.  Underscore 1.4.2 is sane again.</li>
</ul> <a href="http://pivotallabs.com/standup-10-29-12-underscore-is-sane-again/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-10-29-12-underscore-is-sane-again/">Standup: 10/29/12: Underscore is sane again</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Interestings</h2>
<ul>
<li>Underscore 1.4.0 and 1.4.1 helpfully blow up when passed nil.  Underscore 1.4.2 is sane again.</li>
</ul>
<p>The post <a href="http://pivotallabs.com/standup-10-29-12-underscore-is-sane-again/">Standup: 10/29/12: Underscore is sane again</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-10-29-12-underscore-is-sane-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Standup 04/24/2012: Make testing email (almost) pleasurable</title>
		<link>http://pivotallabs.com/standup-04-24-2012-make-testing-email-almost-pleasurable/</link>
		<comments>http://pivotallabs.com/standup-04-24-2012-make-testing-email-almost-pleasurable/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 14:16:00 +0000</pubDate>
		<dc:creator>Aaron VonderHaar</dc:creator>
				<category><![CDATA[Standup]]></category>
		<category><![CDATA[agile]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-04-24-2012-make-testing-email-almost-pleasurable/</guid>
		<description><![CDATA[<p><h2>Ask for Help</h2>

<blockquote>
    <p><em>URL helpers with <a href="https://www.ruby-toolbox.com/projects/draper">Draper</a> must be mocked under test.  Any better solutions?</em></p>
</blockquote>

<ul>
<li>Add a default host environment in the test setup?</li>
<li>Try view tests?</li>
</ul>

<blockquote>
    <p><em>ruby-debug w/ 1.9.3 and RubyMine 4.0.3 => dyld: symbol not found</em></p>
</blockquote>

<ul>
<li>Use debugger gem </li>
</ul>

<blockquote>
    <p><em>Other helps?</em></p>
</blockquote>

<p>... No.</p>

<h2>Interesting Things</h2>

<ul>
<li>For testing - thin default logger &#40;no one claimed this&#41;</li>
<li>debugger gem - use it! &#40;see Helps&#41;</li>
<li>Use <a href="http://litmus.com/">litmus</a> to help debug how your emails look on multiple platforms &#40;blog post forthcoming?&#41;</li>
<li>Don't start a new rails project today &#40;well, maybe if you use non-SSL rubygems&#41;.  <a href="http://railsapps.github.com/openssl-certificate-verify-failed.html">http://railsapps.github.com/openssl-certificate-verify-failed.html</a></li>
</ul> <a href="http://pivotallabs.com/standup-04-24-2012-make-testing-email-almost-pleasurable/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-04-24-2012-make-testing-email-almost-pleasurable/">Standup 04/24/2012: Make testing email (almost) pleasurable</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>URL helpers with <a href="https://www.ruby-toolbox.com/projects/draper">Draper</a> must be mocked under test.  Any better solutions?</em></p>
</blockquote>
<ul>
<li>Add a default host environment in the test setup?</li>
<li>Try view tests?</li>
</ul>
<blockquote>
<p><em>ruby-debug w/ 1.9.3 and RubyMine 4.0.3 => dyld: symbol not found</em></p>
</blockquote>
<ul>
<li>Use debugger gem </li>
</ul>
<blockquote>
<p><em>Other helps?</em></p>
</blockquote>
<p>&#8230; No.</p>
<h2>Interesting Things</h2>
<ul>
<li>For testing &#8211; thin default logger &#40;no one claimed this&#41;</li>
<li>debugger gem &#8211; use it! &#40;see Helps&#41;</li>
<li>Use <a href="http://litmus.com/">litmus</a> to help debug how your emails look on multiple platforms &#40;blog post forthcoming?&#41;</li>
<li>Don&#8217;t start a new rails project today &#40;well, maybe if you use non-SSL rubygems&#41;.  <a href="http://railsapps.github.com/openssl-certificate-verify-failed.html">http://railsapps.github.com/openssl-certificate-verify-failed.html</a></li>
</ul>
<p>The post <a href="http://pivotallabs.com/standup-04-24-2012-make-testing-email-almost-pleasurable/">Standup 04/24/2012: Make testing email (almost) pleasurable</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-04-24-2012-make-testing-email-almost-pleasurable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centering a View within a ScrollView</title>
		<link>http://pivotallabs.com/centering-a-view-within-a-scrollview/</link>
		<comments>http://pivotallabs.com/centering-a-view-within-a-scrollview/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 16:16:00 +0000</pubDate>
		<dc:creator>Aaron VonderHaar</dc:creator>
				<category><![CDATA[Labs]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[scrollview]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/centering-a-view-within-a-scrollview/</guid>
		<description><![CDATA[<p><p>We have a View that we want centered on the screen, but that must scroll when there isn't enough room to show the view fully &#40;for example, when the keyboard is up&#41;.</p>

<p>Our first attempt:</p>

<pre><code>&#60;ScrollView
    android:layout_width=...
    android:layout_width=...
    &#62;
    &#60;View
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        /&#62;
&#60;/ScrollView&#62;
</code></pre> <a href="http://pivotallabs.com/centering-a-view-within-a-scrollview/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/centering-a-view-within-a-scrollview/">Centering a View within a ScrollView</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>We have a View that we want centered on the screen, but that must scroll when there isn&#8217;t enough room to show the view fully &#40;for example, when the keyboard is up&#41;.</p>
<p>Our first attempt:</p>
<pre><code>&lt;ScrollView
    android:layout_width=...
    android:layout_width=...
    &gt;
    &lt;View
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        /&gt;
&lt;/ScrollView&gt;
</code></pre>
<p>Unfortunately there is a bug in Android where setting layout_gravity=&#8221;center&#8221; on a ScrollView&#8217;s child causes incorrect scrolling when you start hiding and showing other views in the layout &#40;the ScrollView will get stuck with an offset such that you can&#8217;t completely scroll to the top, and you can scroll past the bottom&#41;.</p>
<p>Here&#8217;s the solution:</p>
<pre><code>&lt;ScrollView
    android:layout_width=...
    android:layout_width=...
    android:fillViewport="true"
    &gt;
    &lt;LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        /&gt;
        &lt;View
            android:layout_width="fill_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            /&gt;
        &lt;View
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            /&gt;
        &lt;View
            android:layout_width="fill_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            /&gt;
    &lt;/LinearLayout&gt;
&lt;/ScrollView&gt;
</code></pre>
<p>The wrap_content in the LinearLayout is a bit misleading: fillViewport=&#8221;true&#8221; in the ScrollView will cause its child to always be at least as large as the viewport.  &#40;See also <a href="http://www.curious-creature.org/2010/08/15/scrollviews-handy-trick/">Romain Guy&#8217;s article about fillViewport</a>.&#41;</p>
<p>The post <a href="http://pivotallabs.com/centering-a-view-within-a-scrollview/">Centering a View within a ScrollView</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/centering-a-view-within-a-scrollview/feed/</wfw:commentRss>
		<slash:comments>1</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 2/9 queries in 0.009 seconds using apc
Object Caching 560/597 objects using apc

 Served from: pivotallabs.com @ 2013-05-23 00:36:27 by W3 Total Cache -->