<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Eric&#039;s thoughts</title>
	<atom:link href="http://ericzouthoughts.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ericzouthoughts.wordpress.com</link>
	<description>ruby, rails, and more</description>
	<lastBuildDate>Fri, 13 Jan 2012 03:51:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ericzouthoughts.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Eric&#039;s thoughts</title>
		<link>http://ericzouthoughts.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ericzouthoughts.wordpress.com/osd.xml" title="Eric&#039;s thoughts" />
	<atom:link rel='hub' href='http://ericzouthoughts.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to break down a complex project</title>
		<link>http://ericzouthoughts.wordpress.com/2009/08/05/how-to-break-down-a-complex-project/</link>
		<comments>http://ericzouthoughts.wordpress.com/2009/08/05/how-to-break-down-a-complex-project/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 01:57:03 +0000</pubDate>
		<dc:creator>ericzou</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[project management]]></category>

		<guid isPermaLink="false">http://ericzouthoughts.wordpress.com/?p=29</guid>
		<description><![CDATA[steps to break down a (complex web based) project: 1. wireframes for every page draw out all necessary elements &#8211; menus, links, buttons and messages for each of the element on the wireframe, ask questions &#8211; where does this link to, who can see or do this. go through one most important use case, see [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericzouthoughts.wordpress.com&amp;blog=8218865&amp;post=29&amp;subd=ericzouthoughts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>steps to break down a (complex web based) project:</p>
<p>1. wireframes for every page</p>
<ul>
<li> draw out all necessary elements &#8211; menus, links, buttons and messages</li>
<li>for each of the element on the wireframe, ask questions &#8211; where does this link to, who can see or do this.</li>
<li> go through one most important use case, see if the wireframes accomplishe this</li>
</ul>
<p>2. use post-it note or tracker to group functions</p>
<ul>
<li> page by page</li>
<li> break different functions on each page into stories. ask &#8220;can xx exist/make sense without xxx&#8221;. if function A can exist/function/make sense without function B, then they are two stories</li>
<li> detail the story based on the wireframe- include who, what(the function), and how &#8211; e.g. as the owner of the project(who), i can invite other people to join the project(what), by use the text field in left side and click add(how), or as a user(who), i can see a list of the projcts with name, title, and last updated date(what)</li>
</ul>
<p>3. estimate each story or post-it note</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericzouthoughts.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericzouthoughts.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericzouthoughts.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericzouthoughts.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericzouthoughts.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericzouthoughts.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericzouthoughts.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericzouthoughts.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericzouthoughts.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericzouthoughts.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericzouthoughts.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericzouthoughts.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericzouthoughts.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericzouthoughts.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericzouthoughts.wordpress.com&amp;blog=8218865&amp;post=29&amp;subd=ericzouthoughts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericzouthoughts.wordpress.com/2009/08/05/how-to-break-down-a-complex-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b94d418ab6a5068b7d7b9f8ecd72d953?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ericzou</media:title>
		</media:content>
	</item>
		<item>
		<title>Top Ten RubyMine Shortcuts I Use Every Day:</title>
		<link>http://ericzouthoughts.wordpress.com/2009/07/17/top-ten-rubymine-shortcuts-i-use-every-day/</link>
		<comments>http://ericzouthoughts.wordpress.com/2009/07/17/top-ten-rubymine-shortcuts-i-use-every-day/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 14:37:40 +0000</pubDate>
		<dc:creator>ericzou</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[RubyMine]]></category>

		<guid isPermaLink="false">http://ericzouthoughts.wordpress.com/?p=17</guid>
		<description><![CDATA[Here are some RubyMine shortcuts I use everyday 1. cmd + E cmd + E brings up the &#8216;Recent Files&#8217; dialog, but I find it most useful when switching two files back and forth. 2. cmd + [ or cmd + ] similar to &#8216;back&#8217; and &#8216;forward&#8217; buttons, every useful 3. cmd + shift + [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericzouthoughts.wordpress.com&amp;blog=8218865&amp;post=17&amp;subd=ericzouthoughts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><strong>Here are some RubyMine shortcuts I use everyday</strong></h3>
<p><strong>1. cmd + E</strong><br />
cmd + E brings up the &#8216;Recent Files&#8217; dialog, but I find it most useful when switching two files back and forth.</p>
<p><strong>2. cmd + [ or cmd + ]</strong><br />
similar to &#8216;back&#8217; and &#8216;forward&#8217; buttons, every useful</p>
<p><strong>3. cmd + shift + N</strong><br />
find files</p>
<p><strong>4. cmd+ shift + F<br />
</strong> global search</p>
<p><strong>5. cmd + 1 .. 9</strong><br />
bring up different panels</p>
<p><strong>6. ctrl + W</strong><br />
once for single word selection, press multiple times to increase the selection range</p>
<p><strong>7. fn + Up/Down</strong><br />
scroll up/down one page, the other useful shortcut is ctrl + Up/Down which scroll up/down one method</p>
<p><strong>8. cmd + B</strong><br />
look up a method, very useful</p>
<p><strong>9. cmd + option + L</strong><br />
format code &#8211; you have to love this feature, it is awesome.</p>
<p><strong>10 ctrl + N</strong><br />
Use it in project panel to create new files</p>
<h3><strong>Here are some shortcuts I should really start to use</strong></h3>
<p><strong>1. opt + shift + C</strong><br />
bring up all recent changes</p>
<p><strong>2. cmd + shift + A</strong><br />
Go to Action. if you can&#8217;t remember shortcuts, this is the way to look it up</p>
<h3><strong>Bonus:</strong></h3>
<p>There is an excellent productivity guide in RubyMine helper. It even records how many times you use each feature. so check it out.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericzouthoughts.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericzouthoughts.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericzouthoughts.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericzouthoughts.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericzouthoughts.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericzouthoughts.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericzouthoughts.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericzouthoughts.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericzouthoughts.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericzouthoughts.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericzouthoughts.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericzouthoughts.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericzouthoughts.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericzouthoughts.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericzouthoughts.wordpress.com&amp;blog=8218865&amp;post=17&amp;subd=ericzouthoughts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericzouthoughts.wordpress.com/2009/07/17/top-ten-rubymine-shortcuts-i-use-every-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b94d418ab6a5068b7d7b9f8ecd72d953?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ericzou</media:title>
		</media:content>
	</item>
		<item>
		<title>count v.s. lenght v.s. size</title>
		<link>http://ericzouthoughts.wordpress.com/2009/06/20/count-v-s-lenght-v-s-size/</link>
		<comments>http://ericzouthoughts.wordpress.com/2009/06/20/count-v-s-lenght-v-s-size/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 17:24:04 +0000</pubDate>
		<dc:creator>ericzou</dc:creator>
				<category><![CDATA[rails programming]]></category>
		<category><![CDATA[activerecord]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://ericzouthoughts.wordpress.com/?p=14</guid>
		<description><![CDATA[there are couple difference between count and length, generally speaking, count does&#8217;t load the array so it is faster. However, there are situation count won&#8217;t give you an accurate number here is an example suppose you have three tables &#8216;users&#8217;, &#8216;roles&#8217;, and the join table &#8216;roles_users&#8217;, and you want to all active users that has [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericzouthoughts.wordpress.com&amp;blog=8218865&amp;post=14&amp;subd=ericzouthoughts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>there are couple difference between count and length, generally speaking, count does&#8217;t load the array so it is faster. However, there are situation count won&#8217;t give you an accurate number<br />
here is an example</p>
<p>suppose you have three tables &#8216;users&#8217;, &#8216;roles&#8217;, and the join table &#8216;roles_users&#8217;, and you want to all active users that has role of &#8216;user&#8217; or &#8216;admin&#8217;<br />
Here is how to get it in rails:</p>
<pre style='color:#d1d1d1;background:#000000;'>named_scope :active, :joins<span style='color:#d2cd86;'>=</span>&gt; :roles,
     :conditions<span style='color:#d2cd86;'>=</span>&gt;<span style='color:#d2cd86;'>[</span><span style='color:#00c4c4;'>'state=? and roles.name in (?) '</span>, <span style='color:#00c4c4;'>'active'</span>, <span style='color:#d2cd86;'>[</span><span style='color:#00c4c4;'>'user'</span>, <span style='color:#00c4c4;'>'admin'</span><span style='color:#d2cd86;'>]</span> <span style='color:#d2cd86;'>]</span>, :group<span style='color:#d2cd86;'>=</span>&gt;<span style='color:#00c4c4;'>'id'</span>
</pre>
<p>here group is necessary otherwise you will get duplicate users records if users has more than one role.</p>
<p>Here is where length different than count:<br />
say joe is the only user and he has both user and admin roles</p>
<pre style='color:#d1d1d1;background:#000000;'>User<span style='color:#d2cd86;'>.</span>active<span style='color:#d2cd86;'>.</span>count <span style='color:#9999a9;'># returns 2</span>
User<span style='color:#d2cd86;'>.</span>active<span style='color:#d2cd86;'>.</span>length <span style='color:#9999a9;'># returns 1</span>
</pre>
<p>It is easy to figure out why through SQL:<br />
the named_scope translate to </p>
<pre style='color:#d1d1d1;background:#000000;'><span style='color:#e66170;font-weight:bold;'>select</span> u<span style='color:#d2cd86;'>.</span>id, u<span style='color:#d2cd86;'>.</span>first_name, u<span style='color:#d2cd86;'>.</span>email
from users u
inner join roles_users ru on ru<span style='color:#d2cd86;'>.</span>user_id <span style='color:#d2cd86;'>=</span> u<span style='color:#d2cd86;'>.</span>id
inner join roles r on r<span style='color:#d2cd86;'>.</span>id <span style='color:#d2cd86;'>=</span> ru<span style='color:#d2cd86;'>.</span>role_id
where u<span style='color:#d2cd86;'>.</span>state <span style='color:#d2cd86;'>=</span> <span style='color:#00c4c4;'>'active'</span> <span style='color:#e66170;font-weight:bold;'>and</span> r<span style='color:#d2cd86;'>.</span>name <span style='color:#e66170;font-weight:bold;'>in</span> <span style='color:#d2cd86;'>(</span><span style='color:#00c4c4;'>'user'</span>, <span style='color:#00c4c4;'>'admin'</span><span style='color:#d2cd86;'>)</span>
group by u<span style='color:#d2cd86;'>.</span>id;
</pre>
<p>the count translates to </p>
<pre style='color:#d1d1d1;background:#000000;'><span style='color:#e66170;font-weight:bold;'>select</span> count<span style='color:#d2cd86;'>(</span><span style='color:#d2cd86;'>*</span><span style='color:#d2cd86;'>)</span>, u<span style='color:#d2cd86;'>.</span>id, u<span style='color:#d2cd86;'>.</span>first_name, u<span style='color:#d2cd86;'>.</span>email
from users u
inner join roles_users ru on ru<span style='color:#d2cd86;'>.</span>user_id <span style='color:#d2cd86;'>=</span> u<span style='color:#d2cd86;'>.</span>id
inner join roles r on r<span style='color:#d2cd86;'>.</span>id <span style='color:#d2cd86;'>=</span> ru<span style='color:#d2cd86;'>.</span>role_id
where u<span style='color:#d2cd86;'>.</span>id <span style='color:#d2cd86;'>=</span> <span style='color:#008c00;'>2</span> <span style='color:#e66170;font-weight:bold;'>and</span> r<span style='color:#d2cd86;'>.</span>name <span style='color:#e66170;font-weight:bold;'>in</span> <span style='color:#d2cd86;'>(</span><span style='color:#00c4c4;'>'user'</span>, <span style='color:#00c4c4;'>'admin'</span><span style='color:#d2cd86;'>)</span>
group by u<span style='color:#d2cd86;'>.</span>id;
</pre>
<pre style='color:#d1d1d1;background:#000000;'>without group by
<span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span>
| id | first_name | email              |
<span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span>
|  <span style='color:#008c00;'>1</span> | Joe        |    joe@example<span style='color:#d2cd86;'>.</span>com |
|  <span style='color:#008c00;'>1</span> | Joe        |    joe@example<span style='color:#d2cd86;'>.</span>com |
<span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span>
<span style='color:#008c00;'>5</span> rows <span style='color:#e66170;font-weight:bold;'>in</span> set <span style='color:#d2cd86;'>(</span><span style='color:#009f00;'>0.00</span> sec<span style='color:#d2cd86;'>)</span>

with group by
<span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span>
| id | first_name | email              |
<span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span>
|  <span style='color:#008c00;'>1</span> | Joe        |    joe@example<span style='color:#d2cd86;'>.</span>com |
<span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span>
<span style='color:#008c00;'>1</span> row <span style='color:#e66170;font-weight:bold;'>in</span> set <span style='color:#d2cd86;'>(</span><span style='color:#009f00;'>0.00</span> sec<span style='color:#d2cd86;'>)</span>

using count <span style='color:#e66170;font-weight:bold;'>and</span> here is why it returns <span style='color:#008c00;'>2</span>
<span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span>
| count<span style='color:#d2cd86;'>(</span><span style='color:#d2cd86;'>*</span><span style='color:#d2cd86;'>)</span> | id | first_name | email              |
<span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span>
|        <span style='color:#008c00;'>2</span> |  <span style='color:#008c00;'>1</span> | Joe        |    joe@example<span style='color:#d2cd86;'>.</span>com |
<span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>-</span><span style='color:#d2cd86;'>+</span>
<span style='color:#008c00;'>1</span> row <span style='color:#e66170;font-weight:bold;'>in</span> set <span style='color:#d2cd86;'>(</span><span style='color:#009f00;'>0.00</span> sec<span style='color:#d2cd86;'>)</span>
</pre>
<p>the bottom line: don&#8217;t use count when using :group</p>
<p>p.s. for more difference between length, size and count, read this blog post: http://rhnh.net/2007/09/26/counting-activerecord-associations-count-size-or-length</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericzouthoughts.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericzouthoughts.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericzouthoughts.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericzouthoughts.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericzouthoughts.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericzouthoughts.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericzouthoughts.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericzouthoughts.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericzouthoughts.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericzouthoughts.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericzouthoughts.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericzouthoughts.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericzouthoughts.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericzouthoughts.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericzouthoughts.wordpress.com&amp;blog=8218865&amp;post=14&amp;subd=ericzouthoughts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericzouthoughts.wordpress.com/2009/06/20/count-v-s-lenght-v-s-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b94d418ab6a5068b7d7b9f8ecd72d953?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ericzou</media:title>
		</media:content>
	</item>
		<item>
		<title>pass parameters in rake test</title>
		<link>http://ericzouthoughts.wordpress.com/2009/06/20/pass-parameters-in-rake-test/</link>
		<comments>http://ericzouthoughts.wordpress.com/2009/06/20/pass-parameters-in-rake-test/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 17:11:48 +0000</pubDate>
		<dc:creator>ericzou</dc:creator>
				<category><![CDATA[ruby programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rake]]></category>

		<guid isPermaLink="false">http://ericzouthoughts.wordpress.com/?p=11</guid>
		<description><![CDATA[parameters are passed in rake test through ENV hash, here is an example: $&#62;rake foo:bar example='this is an example' namespace :foo do desc 'example' task :bar do puts "parameter = #{ENV['example']}" end end<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericzouthoughts.wordpress.com&amp;blog=8218865&amp;post=11&amp;subd=ericzouthoughts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>parameters are passed in rake test through ENV hash, here is an example:</p>
<pre style='color:#d1d1d1;background:#000000;'>$&gt;rake foo:bar example<span style='color:#d2cd86;'>=</span><span style='color:#00c4c4;'>'this is an example'</span>

namespace :foo <span style='color:#e66170;font-weight:bold;'>do</span>
  desc <span style='color:#00c4c4;'>'example'</span>
  task :bar <span style='color:#e66170;font-weight:bold;'>do</span>
    <span style='color:#e66170;font-weight:bold;'>puts</span> <span style='color:#00c4c4;'>"parameter = #{ENV['example']}"</span>
  <span style='color:#e66170;font-weight:bold;'>end</span>
<span style='color:#e66170;font-weight:bold;'>end</span>
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericzouthoughts.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericzouthoughts.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericzouthoughts.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericzouthoughts.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericzouthoughts.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericzouthoughts.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericzouthoughts.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericzouthoughts.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericzouthoughts.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericzouthoughts.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericzouthoughts.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericzouthoughts.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericzouthoughts.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericzouthoughts.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericzouthoughts.wordpress.com&amp;blog=8218865&amp;post=11&amp;subd=ericzouthoughts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericzouthoughts.wordpress.com/2009/06/20/pass-parameters-in-rake-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b94d418ab6a5068b7d7b9f8ecd72d953?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ericzou</media:title>
		</media:content>
	</item>
		<item>
		<title>execute shell command in ruby rake task</title>
		<link>http://ericzouthoughts.wordpress.com/2009/06/20/execute-shell-command-in-ruby-rake-task/</link>
		<comments>http://ericzouthoughts.wordpress.com/2009/06/20/execute-shell-command-in-ruby-rake-task/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 17:07:41 +0000</pubDate>
		<dc:creator>ericzou</dc:creator>
				<category><![CDATA[ruby programming]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rake]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://ericzouthoughts.wordpress.com/?p=3</guid>
		<description><![CDATA[There are a few differnt options to execute shell cmd in ruby rake task: 1. exec 2. system 3. backtick &#8220; 4. %x{} %x{} returns back to rake task whereas  exec and system does not (exec replace the current process with a new one, system return true or false ) so if you  do something [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericzouthoughts.wordpress.com&amp;blog=8218865&amp;post=3&amp;subd=ericzouthoughts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are a few differnt options to execute shell cmd in ruby rake task:<br />
1. exec<br />
2. system<br />
3. backtick &#8220;<br />
4. %x{}</p>
<p>%x{} returns back to rake task whereas  exec and system does not (exec replace the current process with a new one, system return true or false )<br />
so if you  do something like</p>
<pre style='color:#d1d1d1;background:#000000;'>desc <span style='color:#00c4c4;'>'example'</span>
  task :example <span style='color:#e66170;font-weight:bold;'>do</span>
    <span style='color:#e66170;font-weight:bold;'>exec</span> <span style='color:#b060b0;'>{</span>cmd_one<span style='color:#b060b0;'>}</span>
    <span style='color:#e66170;font-weight:bold;'>exec</span> <span style='color:#b060b0;'>{</span>cmd_two<span style='color:#b060b0;'>}</span>
  <span style='color:#e66170;font-weight:bold;'>end</span>
<span style='color:#e66170;font-weight:bold;'>end</span>
</pre>
<p>cmd two will never get executed. Switch to %x{} instead.</p>
<p>btw, you can run multiple rake task like this</p>
<pre style='color:#d1d1d1;background:#000000;'>desc <span style='color:#00c4c4;'>'example'</span>
  task :example <span style='color:#e66170;font-weight:bold;'>do</span>
    Rake::Task<span style='color:#d2cd86;'>[</span><span style='color:#00c4c4;'>'name_space:task_one'</span><span style='color:#d2cd86;'>]</span>
    Rake::Task<span style='color:#d2cd86;'>[</span><span style='color:#00c4c4;'>'name_space:task_two'</span><span style='color:#d2cd86;'>]</span>
  <span style='color:#e66170;font-weight:bold;'>end</span>
<span style='color:#e66170;font-weight:bold;'>end</span>
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ericzouthoughts.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ericzouthoughts.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ericzouthoughts.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ericzouthoughts.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ericzouthoughts.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ericzouthoughts.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ericzouthoughts.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ericzouthoughts.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ericzouthoughts.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ericzouthoughts.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ericzouthoughts.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ericzouthoughts.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ericzouthoughts.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ericzouthoughts.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ericzouthoughts.wordpress.com&amp;blog=8218865&amp;post=3&amp;subd=ericzouthoughts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ericzouthoughts.wordpress.com/2009/06/20/execute-shell-command-in-ruby-rake-task/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b94d418ab6a5068b7d7b9f8ecd72d953?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ericzou</media:title>
		</media:content>
	</item>
	</channel>
</rss>
