<?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 for It's not a blog, It's a feature</title>
	<atom:link href="http://javazquez.com/juan/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://javazquez.com/juan</link>
	<description>Juan A. Vazquez</description>
	<lastBuildDate>Sun, 07 Feb 2010 02:00:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Generating Combinations with Ruby and Recursion by admin</title>
		<link>http://javazquez.com/juan/2009/09/16/generating-combinations-with-ruby-and-recursion/comment-page-1/#comment-577</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 07 Feb 2010 02:00:18 +0000</pubDate>
		<guid isPermaLink="false">http://javazquez.com/juan/?p=233#comment-577</guid>
		<description>Thanks for comment! I updated fixed the flaw and it should now give expected results</description>
		<content:encoded><![CDATA[<p>Thanks for comment! I updated fixed the flaw and it should now give expected results</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generating Combinations with Ruby and Recursion by Ed Schechter</title>
		<link>http://javazquez.com/juan/2009/09/16/generating-combinations-with-ruby-and-recursion/comment-page-1/#comment-576</link>
		<dc:creator>Ed Schechter</dc:creator>
		<pubDate>Wed, 03 Feb 2010 05:00:04 +0000</pubDate>
		<guid isPermaLink="false">http://javazquez.com/juan/?p=233#comment-576</guid>
		<description>What about
[1,3]
[1,4]
[1,2,4]
?</description>
		<content:encoded><![CDATA[<p>What about<br />
[1,3]<br />
[1,4]<br />
[1,2,4]<br />
?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Handling Ruby&#8217;s String.each_char Iterator by Travis B</title>
		<link>http://javazquez.com/juan/2008/06/25/handling-rubys-stringeach_char-iterator/comment-page-1/#comment-541</link>
		<dc:creator>Travis B</dc:creator>
		<pubDate>Fri, 04 Sep 2009 04:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://javazquez.com/juan/?p=7#comment-541</guid>
		<description>If you click on the source in the docs, you get:

# File lib/jcode.rb, line 209
  def each_char
    if block_given?
      scan(/./m) do &#124;x&#124;
        yield x
      end
    else
      scan(/./m)
    end
  end

so yeah, just do &quot;string&quot;.scan(/./m)</description>
		<content:encoded><![CDATA[<p>If you click on the source in the docs, you get:</p>
<p># File lib/jcode.rb, line 209<br />
  def each_char<br />
    if block_given?<br />
      scan(/./m) do |x|<br />
        yield x<br />
      end<br />
    else<br />
      scan(/./m)<br />
    end<br />
  end</p>
<p>so yeah, just do &#8220;string&#8221;.scan(/./m)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Handling Ruby&#8217;s String.each_char Iterator by admin</title>
		<link>http://javazquez.com/juan/2008/06/25/handling-rubys-stringeach_char-iterator/comment-page-1/#comment-539</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 15 Aug 2009 14:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://javazquez.com/juan/?p=7#comment-539</guid>
		<description>&lt;a href=&quot;#comment-529&quot; rel=&quot;nofollow&quot;&gt;@Nick&lt;/a&gt; Great comment, I don&#039;t work with a whole lot of multi-byte character encodings. In this case, Jcode would be the way to go for Ruby 1.8. I haven&#039;t played much with Ruby 1.9 but I am excited to play with the better supported encodings that are baked right in.</description>
		<content:encoded><![CDATA[<p><a href="#comment-529" rel="nofollow">@Nick</a> Great comment, I don&#8217;t work with a whole lot of multi-byte character encodings. In this case, Jcode would be the way to go for Ruby 1.8. I haven&#8217;t played much with Ruby 1.9 but I am excited to play with the better supported encodings that are baked right in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Handling Ruby&#8217;s String.each_char Iterator by Nick</title>
		<link>http://javazquez.com/juan/2008/06/25/handling-rubys-stringeach_char-iterator/comment-page-1/#comment-529</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Mon, 01 Jun 2009 02:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://javazquez.com/juan/?p=7#comment-529</guid>
		<description>Another &quot;thanks&quot; on the pile!

Will, unfortunately each_byte can cause problems with multi-byte character encodings.</description>
		<content:encoded><![CDATA[<p>Another &#8220;thanks&#8221; on the pile!</p>
<p>Will, unfortunately each_byte can cause problems with multi-byte character encodings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Handling Ruby&#8217;s String.each_char Iterator by Marco</title>
		<link>http://javazquez.com/juan/2008/06/25/handling-rubys-stringeach_char-iterator/comment-page-1/#comment-528</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Mon, 25 May 2009 22:51:39 +0000</pubDate>
		<guid isPermaLink="false">http://javazquez.com/juan/?p=7#comment-528</guid>
		<description>Man thank you so much for this, you have no idea how your insight helped me ! 

Thanks from Brazil
Marco</description>
		<content:encoded><![CDATA[<p>Man thank you so much for this, you have no idea how your insight helped me ! </p>
<p>Thanks from Brazil<br />
Marco</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mergesort and Quicksort with Dynamic Languages by cazacugmihai</title>
		<link>http://javazquez.com/juan/2009/01/03/mergesort-and-quicksort-with-dynamic-languages/comment-page-1/#comment-525</link>
		<dc:creator>cazacugmihai</dc:creator>
		<pubDate>Thu, 21 May 2009 07:15:33 +0000</pubDate>
		<guid isPermaLink="false">http://javazquez.com/juan/?p=64#comment-525</guid>
		<description>-------GROOVY QUICKSORT--------------

def quickSort(List lst) {
    if (lst.size() &lt;= 1) return lst
    def (less, greater) = [[], []]
    def pivot = lst.remove(new Random().nextInt(lst.size()))
    lst.each {
        if (it &lt; pivot) less &lt;&lt; it
        else greater &lt;&lt; it
    }
    quickSort(less) + pivot + quickSort(greater)
}

Instead of random parameter you can use (list.size() / 2)</description>
		<content:encoded><![CDATA[<p>&#8212;&#8212;-GROOVY QUICKSORT&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>def quickSort(List lst) {<br />
    if (lst.size() &lt;= 1) return lst<br />
    def (less, greater) = [[], []]<br />
    def pivot = lst.remove(new Random().nextInt(lst.size()))<br />
    lst.each {<br />
        if (it &lt; pivot) less &lt;&lt; it<br />
        else greater &lt;&lt; it<br />
    }<br />
    quickSort(less) + pivot + quickSort(greater)<br />
}</p>
<p>Instead of random parameter you can use (list.size() / 2)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on File I/O Part 1 by Andrey</title>
		<link>http://javazquez.com/juan/2008/06/27/file-io-part-1/comment-page-1/#comment-524</link>
		<dc:creator>Andrey</dc:creator>
		<pubDate>Tue, 19 May 2009 16:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://javazquez.com/juan/?p=9#comment-524</guid>
		<description>Thanks for info. It is sometimes quite difficult to convert some program from one language to another. Such comparisons come in very handy.</description>
		<content:encoded><![CDATA[<p>Thanks for info. It is sometimes quite difficult to convert some program from one language to another. Such comparisons come in very handy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rotating Java Images by hai</title>
		<link>http://javazquez.com/juan/2008/07/11/rotating-java-images/comment-page-1/#comment-523</link>
		<dc:creator>hai</dc:creator>
		<pubDate>Mon, 11 May 2009 16:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://javazquez.com/juan/?p=12#comment-523</guid>
		<description>Thanks, great info nicely written up.  Shame this common functionality is so obscure!</description>
		<content:encoded><![CDATA[<p>Thanks, great info nicely written up.  Shame this common functionality is so obscure!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Handling Ruby&#8217;s String.each_char Iterator by EndtheProhibition</title>
		<link>http://javazquez.com/juan/2008/06/25/handling-rubys-stringeach_char-iterator/comment-page-1/#comment-522</link>
		<dc:creator>EndtheProhibition</dc:creator>
		<pubDate>Sat, 09 May 2009 11:42:58 +0000</pubDate>
		<guid isPermaLink="false">http://javazquez.com/juan/?p=7#comment-522</guid>
		<description>Thanks man! That&#039;s what I was looking for. :)
&quot;string&quot;.each_byte { &#124;f&#124; puts f.chr  }</description>
		<content:encoded><![CDATA[<p>Thanks man! That&#8217;s what I was looking for. <img src='http://javazquez.com/juan/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
&#8220;string&#8221;.each_byte { |f| puts f.chr  }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
