<?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>Mungomash</title>
	<atom:link href="http://mungomash.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mungomash.com</link>
	<description>web home for Chad Dalton</description>
	<lastBuildDate>Wed, 01 Sep 2010 14:37:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Aim high</title>
		<link>http://mungomash.com/post/142/</link>
		<comments>http://mungomash.com/post/142/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 14:35:56 +0000</pubDate>
		<dc:creator>Chad Dalton</dc:creator>
				<category><![CDATA[Quotes]]></category>

		<guid isPermaLink="false">http://mungomash.com/?p=142</guid>
		<description><![CDATA[
The greater danger for most of us lies not in setting our aim too high and
falling short but in setting our aim too low and achieving our mark.
The greater danger for most of us lies not in setting our aim too high andfalling short but...]]></description>
			<content:encoded><![CDATA[<div style="padding-bottom:1em;"><fb:like href="http://mungomash.com/post/142/" show_faces='false' /></div><blockquote>
<div id="_mcePaste">The greater danger for most of us lies not in setting our aim too high and</div>
<div id="_mcePaste">falling short but in setting our aim too low and achieving our mark.</div>
<p>The greater danger for most of us lies not in setting our aim too high andfalling short but in setting our aim too low and achieving our mark.</p>
<p>- Michelangelo</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mungomash.com/post/142/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimization</title>
		<link>http://mungomash.com/post/141/</link>
		<comments>http://mungomash.com/post/141/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 13:17:56 +0000</pubDate>
		<dc:creator>Chad Dalton</dc:creator>
				<category><![CDATA[Quotes]]></category>

		<guid isPermaLink="false">http://mungomash.com/post/141/</guid>
		<description><![CDATA[It&#8217;s easier to optimize correct code than to correct optimized code.
]]></description>
			<content:encoded><![CDATA[<div style="padding-bottom:1em;"><fb:like href="http://mungomash.com/post/141/" show_faces='false' /></div><p>It&#8217;s easier to optimize correct code than to correct optimized code.</p>
]]></content:encoded>
			<wfw:commentRss>http://mungomash.com/post/141/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dedup objects in Rails</title>
		<link>http://mungomash.com/post/99/</link>
		<comments>http://mungomash.com/post/99/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 23:57:05 +0000</pubDate>
		<dc:creator>Chad Dalton</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://mungomash.com/?p=99</guid>
		<description><![CDATA[Remove duplicate Product Descriptions for display on an eCommerce page.]]></description>
			<content:encoded><![CDATA[<div style="padding-bottom:1em;"><fb:like href="http://mungomash.com/post/99/" show_faces='false' /></div><p><strong>Languange</strong>: Ruby</p>
<p><strong>Framework</strong>: Ruby on Rails</p>
<p><strong>Requirement</strong>: Remove duplicate Product Descriptions for display on an eCommerce web page.</p>
<p><strong>Solution</strong>: Create a method in the Products helper class called dedup_product_descriptions containing this code:</p>
<blockquote>
<div id="_mcePaste">@products = Hash[*(@products).map{|o|[o.description,o]}.flatten].values</div>
</blockquote>
<p>and add this code to the Products view:</p>
<blockquote><p>&lt;% dedup_product_descriptions() %&gt;</p></blockquote>
<p>To make it even more interesting, let&#8217;s say in the case of duplicate descriptions you are required to display the description associated with the most expensive product. No problem. Use this code in the helper method instead of the code above:</p>
<blockquote>
<div>@products = @products.sort{|a,b|a.price&lt;=&gt;b.price}</div>
<div id="_mcePaste">@products = Hash[*(@products).map{|o|[o.description,o]}.flatten].values</div>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mungomash.com/post/99/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>One Two Many</title>
		<link>http://mungomash.com/post/67/</link>
		<comments>http://mungomash.com/post/67/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 15:57:11 +0000</pubDate>
		<dc:creator>Chad Dalton</dc:creator>
				<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://mungomash.com/?p=67</guid>
		<description><![CDATA[
via: xkcd
]]></description>
			<content:encoded><![CDATA[<div style="padding-bottom:1em;"><fb:like href="http://mungomash.com/post/67/" show_faces='false' /></div><p><a href="http://xkcd.com/764/"><img class=" alignnone" title="One Two Many" src="http://imgs.xkcd.com/comics/one_two.png" alt="One Two Many" width="288" height="274" /></a></p>
<p>via: <a href="http://xkcd.com/764/">xkcd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mungomash.com/post/67/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Failure and the creative process</title>
		<link>http://mungomash.com/post/65/</link>
		<comments>http://mungomash.com/post/65/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 18:33:43 +0000</pubDate>
		<dc:creator>Chad Dalton</dc:creator>
				<category><![CDATA[Quotes]]></category>

		<guid isPermaLink="false">http://mungomash.com/?p=65</guid>
		<description><![CDATA[An essential aspect of creativity is not being afraid to fail.
- Dr. Edwin Land
]]></description>
			<content:encoded><![CDATA[<div style="padding-bottom:1em;"><fb:like href="http://mungomash.com/post/65/" show_faces='false' /></div><blockquote><p>An essential aspect of creativity is not being afraid to fail.</p>
<p>- Dr. Edwin Land</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mungomash.com/post/65/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How the world spends its time online</title>
		<link>http://mungomash.com/post/45/</link>
		<comments>http://mungomash.com/post/45/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 19:11:47 +0000</pubDate>
		<dc:creator>Chad Dalton</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://mungomash.com/?p=45</guid>
		<description><![CDATA[
via: VisualEconomics
]]></description>
			<content:encoded><![CDATA[<div style="padding-bottom:1em;"><fb:like href="http://mungomash.com/post/45/" show_faces='false' /></div><p><a href="http://www.visualeconomics.com/how-the-world-spends-its-time-online_2010-06-16/"><img src="http://www.visualeconomics.com/wp-content/uploads/2010/06/timespentonline.gif" alt="timespentonline" width="570" height="1020" /></a></p>
<p>via: <a href="http://www.visualeconomics.com/how-the-world-spends-its-time-online_2010-06-16/">VisualEconomics</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mungomash.com/post/45/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Sheryl Sandberg talks about the end of email</title>
		<link>http://mungomash.com/post/42/</link>
		<comments>http://mungomash.com/post/42/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 02:16:37 +0000</pubDate>
		<dc:creator>Chad Dalton</dc:creator>
				<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://mungomash.com/?p=42</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<div style="padding-bottom:1em;"><fb:like href="http://mungomash.com/post/42/" show_faces='false' /></div><p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://www.youtube.com/v/Gm8NdNy4wOM&amp;rel=0&amp;color1=0xb1b1b1&amp;color2=0xd0d0d0&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/Gm8NdNy4wOM&amp;rel=0&amp;color1=0xb1b1b1&amp;color2=0xd0d0d0&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://mungomash.com/post/42/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ship it!</title>
		<link>http://mungomash.com/post/32/</link>
		<comments>http://mungomash.com/post/32/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 00:17:27 +0000</pubDate>
		<dc:creator>Chad Dalton</dc:creator>
				<category><![CDATA[Quotes]]></category>

		<guid isPermaLink="false">http://mungomash.com/?p=32</guid>
		<description><![CDATA[In the early days we were so focused on speed. We had to ship the thing even if it wasn&#8217;t perfect. We can ship it later and it would be higher quality but someone else might have eaten our lunch by then. &#8211; Jamie Zawinski
We...]]></description>
			<content:encoded><![CDATA[<div style="padding-bottom:1em;"><fb:like href="http://mungomash.com/post/32/" show_faces='false' /></div><blockquote><p>In the early days we were so focused on speed. We had to ship the thing even if it wasn&#8217;t perfect. We can ship it later and it would be higher quality but someone else might have eaten our lunch by then. &#8211; Jamie Zawinski</p>
<p>We were also trying to start a photo hosting-service, which <a href="http://www.flickr.com/">Flickr</a> beat us to. Ours was probably overdesigned: beautifully abstract and plugged into everything. &#8211; Brad Fitzpatrick</p></blockquote>
<p>quotes are from <a href="http://www.codersatwork.com/">Coders at Work</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mungomash.com/post/32/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding additional methods in Ruby</title>
		<link>http://mungomash.com/post/20/</link>
		<comments>http://mungomash.com/post/20/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 00:28:05 +0000</pubDate>
		<dc:creator>Chad Dalton</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://mungomash.com/?p=20</guid>
		<description><![CDATA[You want to write this: 2.weeks.ago ...and have the date two weeks ago returned]]></description>
			<content:encoded><![CDATA[<div style="padding-bottom:1em;"><fb:like href="http://mungomash.com/post/20/" show_faces='false' /></div><p><strong>Language</strong>: Ruby</p>
<p><strong>Requirement</strong>: You want to write this:</p>
<blockquote><p>2.weeks.ago</p></blockquote>
<p>and have the date two weeks ago returned. With Ruby it&#8217;s easy. You can add any method you want to any object (including core objects like FixNum). Fun, huh?</p>
<blockquote>
<div id="_mcePaste">require &#8216;date&#8217;</div>
<div id="_mcePaste">class Weeks</div>
<div id="_mcePaste" style="padding-left: 30px;">def initialize(number)</div>
<div id="_mcePaste" style="padding-left: 60px;">@number = number</div>
<div id="_mcePaste" style="padding-left: 30px;">end</div>
<div id="_mcePaste" style="padding-left: 30px;">def ago()</div>
<div id="_mcePaste" style="padding-left: 60px;">return Date.today &#8211; (@number * 7)</div>
<div id="_mcePaste" style="padding-left: 30px;">end</div>
<div id="_mcePaste">end</div>
<div id="_mcePaste">class Fixnum</div>
<div id="_mcePaste" style="padding-left: 30px;">def weeks</div>
<div id="_mcePaste" style="padding-left: 60px;">return Weeks.new(self)</div>
<div id="_mcePaste" style="padding-left: 30px;">end</div>
<div id="_mcePaste">end</div>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mungomash.com/post/20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Times of change</title>
		<link>http://mungomash.com/post/17/</link>
		<comments>http://mungomash.com/post/17/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 15:55:57 +0000</pubDate>
		<dc:creator>Chad Dalton</dc:creator>
				<category><![CDATA[Quotes]]></category>

		<guid isPermaLink="false">http://mungomash.com/post/17/</guid>
		<description><![CDATA[In times of change, learners inherit the Earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists. - Eric Hoffer
]]></description>
			<content:encoded><![CDATA[<div style="padding-bottom:1em;"><fb:like href="http://mungomash.com/post/17/" show_faces='false' /></div><blockquote><p>In times of change, learners inherit the Earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists. - Eric Hoffer</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mungomash.com/post/17/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
