<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Building &#8220;Tag Cloud&#8221; in Rails</title>
	<atom:link href="http://blainegarrett.com/2007/09/28/building-tag-cloud-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://blainegarrett.com/2007/09/28/building-tag-cloud-in-rails/</link>
	<description>Blaine Garrett's Home on the Web - Art, Programming, Ideas, and more</description>
	<lastBuildDate>Wed, 25 Jan 2012 11:48:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Eduardo Mucelli</title>
		<link>http://blainegarrett.com/2007/09/28/building-tag-cloud-in-rails/comment-page-1/#comment-11</link>
		<dc:creator>Eduardo Mucelli</dc:creator>
		<pubDate>Mon, 03 Nov 2008 14:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://blainegarrett.com/blog/2007/09/28/building-tag-cloud-in-rails/#comment-11</guid>
		<description>Inspite of:

 pmin = 100 # Minimum font size
 pmax = 400 #Maximum font size
 vmin = 10000000000000 #Super large number to init min
 vmax = -1000000000000 #Super small number to init max
 for search in @popular_searches
     if (search.popularity  vmax)
         vmax = search.popularity
     end
 end

You could write in 2 lines:

vmin = @popular_searches.sort! {&#124;x,y&#124; x.popularity (LESS EQUAL GREATER simbols) y.popularity }.first
vmax = @popular_searches.sort! {&#124;x,y&#124; x.popularity (LESS EQUAL GREATER simbols) y.popularity }.last</description>
		<content:encoded><![CDATA[<p>Inspite of:</p>
<p> pmin = 100 # Minimum font size<br />
 pmax = 400 #Maximum font size<br />
 vmin = 10000000000000 #Super large number to init min<br />
 vmax = -1000000000000 #Super small number to init max<br />
 for search in @popular_searches<br />
     if (search.popularity  vmax)<br />
         vmax = search.popularity<br />
     end<br />
 end</p>
<p>You could write in 2 lines:</p>
<p>vmin = @popular_searches.sort! {|x,y| x.popularity (LESS EQUAL GREATER simbols) y.popularity }.first<br />
vmax = @popular_searches.sort! {|x,y| x.popularity (LESS EQUAL GREATER simbols) y.popularity }.last</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eduardo Mucelli</title>
		<link>http://blainegarrett.com/2007/09/28/building-tag-cloud-in-rails/comment-page-1/#comment-10</link>
		<dc:creator>Eduardo Mucelli</dc:creator>
		<pubDate>Mon, 03 Nov 2008 14:24:47 +0000</pubDate>
		<guid isPermaLink="false">http://blainegarrett.com/blog/2007/09/28/building-tag-cloud-in-rails/#comment-10</guid>
		<description>In the last post the html parser ate some of my code:

Inspite of:

&#124;x,y&#124; x.popularity y.popularity

should be:

&#124;x,y&#124; x.popularity (LESS EQUAL GREATER simbols) y.popularity</description>
		<content:encoded><![CDATA[<p>In the last post the html parser ate some of my code:</p>
<p>Inspite of:</p>
<p>|x,y| x.popularity y.popularity</p>
<p>should be:</p>
<p>|x,y| x.popularity (LESS EQUAL GREATER simbols) y.popularity</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eduardo Mucelli</title>
		<link>http://blainegarrett.com/2007/09/28/building-tag-cloud-in-rails/comment-page-1/#comment-9</link>
		<dc:creator>Eduardo Mucelli</dc:creator>
		<pubDate>Mon, 03 Nov 2008 14:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://blainegarrett.com/blog/2007/09/28/building-tag-cloud-in-rails/#comment-9</guid>
		<description>In the last post the html parser ate some code:

Inspite of:

&#124;x,y&#124; x.popularity y.popularity

should be:

&#124;x,y&#124; x.popularity (LESS EQUAL GREATER simbols) y.popularity</description>
		<content:encoded><![CDATA[<p>In the last post the html parser ate some code:</p>
<p>Inspite of:</p>
<p>|x,y| x.popularity y.popularity</p>
<p>should be:</p>
<p>|x,y| x.popularity (LESS EQUAL GREATER simbols) y.popularity</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eduardo Mucelli</title>
		<link>http://blainegarrett.com/2007/09/28/building-tag-cloud-in-rails/comment-page-1/#comment-8</link>
		<dc:creator>Eduardo Mucelli</dc:creator>
		<pubDate>Mon, 03 Nov 2008 14:20:54 +0000</pubDate>
		<guid isPermaLink="false">http://blainegarrett.com/blog/2007/09/28/building-tag-cloud-in-rails/#comment-8</guid>
		<description>Inspite of:

 pmin = 100 # Minimum font size
 pmax = 400 #Maximum font size
 vmin = 10000000000000 #Super large number to init min
 vmax = -1000000000000 #Super small number to init max
 for search in @popular_searches
     if (search.popularity  vmax)
         vmax = search.popularity
     end
 end

You could write in 2 lines:

vmin = @popular_searches.sort! {&#124;x,y&#124; x.popularity  y.popularity }.first
vmax = @popular_searches.sort! {&#124;x,y&#124; x.popularity  y.popularity }.last</description>
		<content:encoded><![CDATA[<p>Inspite of:</p>
<p> pmin = 100 # Minimum font size<br />
 pmax = 400 #Maximum font size<br />
 vmin = 10000000000000 #Super large number to init min<br />
 vmax = -1000000000000 #Super small number to init max<br />
 for search in @popular_searches<br />
     if (search.popularity  vmax)<br />
         vmax = search.popularity<br />
     end<br />
 end</p>
<p>You could write in 2 lines:</p>
<p>vmin = @popular_searches.sort! {|x,y| x.popularity  y.popularity }.first<br />
vmax = @popular_searches.sort! {|x,y| x.popularity  y.popularity }.last</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brecht Monkerhey</title>
		<link>http://blainegarrett.com/2007/09/28/building-tag-cloud-in-rails/comment-page-1/#comment-12</link>
		<dc:creator>Brecht Monkerhey</dc:creator>
		<pubDate>Sun, 08 Jun 2008 15:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://blainegarrett.com/blog/2007/09/28/building-tag-cloud-in-rails/#comment-12</guid>
		<description>Nice! Simple yet works flawless and saved me half an hour of trying and testing to get that size right. Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Nice! Simple yet works flawless and saved me half an hour of trying and testing to get that size right. Thanks a lot.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

