<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Mike Burns, Coder</title>
	<atom:link href="http://mikeburnscoder.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikeburnscoder.wordpress.com</link>
	<description></description>
	<lastBuildDate>Mon, 05 Oct 2009 16:54:00 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on An updated way to spider the Web with Ruby by Jesse Crouch</title>
		<link>http://mikeburnscoder.wordpress.com/2007/10/23/an-updated-way-to-spider-the-web-with-ruby/#comment-7920</link>
		<dc:creator>Jesse Crouch</dc:creator>
		<pubDate>Mon, 05 Oct 2009 16:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://mikeburnscoder.wordpress.com/2007/10/23/an-updated-way-to-spider-the-web-with-ruby/#comment-7920</guid>
		<description>Hey Mike -

Any way to specify levels of depth for the spider to go?  Say it starts at mike-burns.com and I don&#039;t want to limit it by domain name, but by levels of links to follow.  First might take you to Digg and then a Digg link takes me to Flickr, etc.  Say I only want to find the first level (Digg) and not go any further.  Any easy way to do that currently?

Thanks again for the bot.  It&#039;s really helped me with my ruby project so far. I&#039;m actually currently using it alongside a rails project that I&#039;m working on.</description>
		<content:encoded><![CDATA[<p>Hey Mike -</p>
<p>Any way to specify levels of depth for the spider to go?  Say it starts at mike-burns.com and I don&#8217;t want to limit it by domain name, but by levels of links to follow.  First might take you to Digg and then a Digg link takes me to Flickr, etc.  Say I only want to find the first level (Digg) and not go any further.  Any easy way to do that currently?</p>
<p>Thanks again for the bot.  It&#8217;s really helped me with my ruby project so far. I&#8217;m actually currently using it alongside a rails project that I&#8217;m working on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Truncating HTML in Ruby by sandip</title>
		<link>http://mikeburnscoder.wordpress.com/2006/11/11/truncating-html-in-ruby/#comment-7914</link>
		<dc:creator>sandip</dc:creator>
		<pubDate>Tue, 23 Jun 2009 13:02:46 +0000</pubDate>
		<guid isPermaLink="false">http://mikeburnscoder.wordpress.com/2006/11/11/truncating-html-in-ruby/#comment-7914</guid>
		<description>Hi,

Thanks for gr8 post!.
It saved my lot of time. 
One quick question...I wanted to escape image and embed tag from my html text.

What changes do i need ????


Thanks,

Sandip R~</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for gr8 post!.<br />
It saved my lot of time.<br />
One quick question&#8230;I wanted to escape image and embed tag from my html text.</p>
<p>What changes do i need ????</p>
<p>Thanks,</p>
<p>Sandip R~</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Newest Blog Post for Each User by Neo</title>
		<link>http://mikeburnscoder.wordpress.com/2006/12/13/newest-blog-post-for-each-user/#comment-7913</link>
		<dc:creator>Neo</dc:creator>
		<pubDate>Fri, 06 Mar 2009 03:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://mikeburnscoder.wordpress.com/2006/12/13/newest-blog-post-for-each-user/#comment-7913</guid>
		<description>&lt;a href=&quot;http://horeroxewu.rack111.com/ralph-lauren-paint/&quot; rel=&quot;nofollow&quot;&gt; ralph lauren paint &lt;/a&gt;
&lt;a href=&quot;http://horeroxewu.rack111.com/golden-doodle/&quot; rel=&quot;nofollow&quot;&gt; golden doodle &lt;/a&gt;
&lt;a href=&quot;http://horeroxewu.rack111.com/margarita-recipes/&quot; rel=&quot;nofollow&quot;&gt; margarita recipes &lt;/a&gt;
&lt;a href=&quot;http://horeroxewu.rack111.com/nsw-tab/&quot; rel=&quot;nofollow&quot;&gt; nsw tab &lt;/a&gt;
&lt;a href=&quot;http://horeroxewu.rack111.com/full-house-cast/&quot; rel=&quot;nofollow&quot;&gt; full house cast &lt;/a&gt;
&lt;a href=&quot;http://horeroxewu.rack111.com/artis-indonesia-memek/&quot; rel=&quot;nofollow&quot;&gt; artis indonesia memek &lt;/a&gt;
&lt;a href=&quot;http://horeroxewu.rack111.com/seattle-premium-outlets/&quot; rel=&quot;nofollow&quot;&gt; seattle premium outlets &lt;/a&gt;
&lt;a href=&quot;http://horeroxewu.rack111.com/rabbit-review/&quot; rel=&quot;nofollow&quot;&gt; rabbit review &lt;/a&gt;
&lt;a href=&quot;http://horeroxewu.rack111.com/map-of-guam/&quot; rel=&quot;nofollow&quot;&gt; map of guam &lt;/a&gt;
&lt;a href=&quot;http://horeroxewu.rack111.com/fleetwood-campers/&quot; rel=&quot;nofollow&quot;&gt; fleetwood campers &lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://horeroxewu.rack111.com/ralph-lauren-paint/" rel="nofollow"> ralph lauren paint </a><br />
<a href="http://horeroxewu.rack111.com/golden-doodle/" rel="nofollow"> golden doodle </a><br />
<a href="http://horeroxewu.rack111.com/margarita-recipes/" rel="nofollow"> margarita recipes </a><br />
<a href="http://horeroxewu.rack111.com/nsw-tab/" rel="nofollow"> nsw tab </a><br />
<a href="http://horeroxewu.rack111.com/full-house-cast/" rel="nofollow"> full house cast </a><br />
<a href="http://horeroxewu.rack111.com/artis-indonesia-memek/" rel="nofollow"> artis indonesia memek </a><br />
<a href="http://horeroxewu.rack111.com/seattle-premium-outlets/" rel="nofollow"> seattle premium outlets </a><br />
<a href="http://horeroxewu.rack111.com/rabbit-review/" rel="nofollow"> rabbit review </a><br />
<a href="http://horeroxewu.rack111.com/map-of-guam/" rel="nofollow"> map of guam </a><br />
<a href="http://horeroxewu.rack111.com/fleetwood-campers/" rel="nofollow"> fleetwood campers </a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spider the Web with Ruby by Carl</title>
		<link>http://mikeburnscoder.wordpress.com/2007/03/31/spider-the-web-with-ruby/#comment-7911</link>
		<dc:creator>Carl</dc:creator>
		<pubDate>Thu, 15 Jan 2009 20:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://mikeburnscoder.wordpress.com/2007/03/31/spider-the-web-with-ruby/#comment-7911</guid>
		<description>Sry but doesnt work for me.
I get no errors/warning with the installation but
if i try your ecample Code i get this:
---
TypeError: wrong argument type Class (expected Module)
Line 3
---
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
Mac OS X Leopard 10.5.6

thx for answers</description>
		<content:encoded><![CDATA[<p>Sry but doesnt work for me.<br />
I get no errors/warning with the installation but<br />
if i try your ecample Code i get this:<br />
&#8212;<br />
TypeError: wrong argument type Class (expected Module)<br />
Line 3<br />
&#8212;<br />
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]<br />
Mac OS X Leopard 10.5.6</p>
<p>thx for answers</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Proxied Spider by Tom White</title>
		<link>http://mikeburnscoder.wordpress.com/2007/11/01/proxied-spider/#comment-7910</link>
		<dc:creator>Tom White</dc:creator>
		<pubDate>Tue, 13 Jan 2009 21:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://mikeburnscoder.wordpress.com/2007/11/01/proxied-spider/#comment-7910</guid>
		<description>It seems the spider should handle ports.  I believe this is a little different then a proxy.  Here is my construct_complete_url(), it allows you to spider sites at ports other than 80.

  def construct_complete_url(base_url, additional_url, parsed_additional_url = nil) #:nodoc:
    parsed_additional_url &#124;&#124;= URI.parse(additional_url)
    case parsed_additional_url.scheme
      when nil
        u = base_url.is_a?(URI) ? base_url : URI.parse(base_url)
        if additional_url[0].chr == &#039;/&#039;
          &quot;#{u.scheme}://#{u.host}:#{u.port}#{additional_url}&quot;
        elsif u.path.nil? &#124;&#124; u.path == &#039;&#039;
          &quot;#{u.scheme}://#{u.host}:#{u.port}/#{additional_url}&quot;
        elsif u.path[0].chr == &#039;/&#039;
          &quot;#{u.scheme}://#{u.host}:#{u.port}#{u.path}/#{additional_url}&quot;
        else
          &quot;#{u.scheme}://#{u.host}:#{u.port}/#{u.path}/#{additional_url}&quot;
        end
    else
      additional_url
    end
  end</description>
		<content:encoded><![CDATA[<p>It seems the spider should handle ports.  I believe this is a little different then a proxy.  Here is my construct_complete_url(), it allows you to spider sites at ports other than 80.</p>
<p>  def construct_complete_url(base_url, additional_url, parsed_additional_url = nil) #:nodoc:<br />
    parsed_additional_url ||= URI.parse(additional_url)<br />
    case parsed_additional_url.scheme<br />
      when nil<br />
        u = base_url.is_a?(URI) ? base_url : URI.parse(base_url)<br />
        if additional_url[0].chr == &#8216;/&#8217;<br />
          &#8220;#{u.scheme}://#{u.host}:#{u.port}#{additional_url}&#8221;<br />
        elsif u.path.nil? || u.path == &#8221;<br />
          &#8220;#{u.scheme}://#{u.host}:#{u.port}/#{additional_url}&#8221;<br />
        elsif u.path[0].chr == &#8216;/&#8217;<br />
          &#8220;#{u.scheme}://#{u.host}:#{u.port}#{u.path}/#{additional_url}&#8221;<br />
        else<br />
          &#8220;#{u.scheme}://#{u.host}:#{u.port}/#{u.path}/#{additional_url}&#8221;<br />
        end<br />
    else<br />
      additional_url<br />
    end<br />
  end</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Uniquify an array of hashes in Ruby by Eric</title>
		<link>http://mikeburnscoder.wordpress.com/2008/01/18/uniquify-an-array-of-hashes-in-ruby/#comment-7909</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Mon, 05 Jan 2009 11:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://mikeburnscoder.wordpress.com/2008/01/18/uniquify-an-array-of-hashes-in-ruby/#comment-7909</guid>
		<description>Thanks a lot, I needed this for this problem:
http://projecteuler.net/index.php?section=problems&amp;id=109 :D</description>
		<content:encoded><![CDATA[<p>Thanks a lot, I needed this for this problem:<br />
<a href="http://projecteuler.net/index.php?section=problems&amp;id=109" rel="nofollow">http://projecteuler.net/index.php?section=problems&amp;id=109</a> :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Uniquify an array of hashes in Ruby by Uniq for Array or Hash with a Deeply Nested Structure &#124; Chasing</title>
		<link>http://mikeburnscoder.wordpress.com/2008/01/18/uniquify-an-array-of-hashes-in-ruby/#comment-7908</link>
		<dc:creator>Uniq for Array or Hash with a Deeply Nested Structure &#124; Chasing</dc:creator>
		<pubDate>Sun, 04 Jan 2009 23:33:04 +0000</pubDate>
		<guid isPermaLink="false">http://mikeburnscoder.wordpress.com/2008/01/18/uniquify-an-array-of-hashes-in-ruby/#comment-7908</guid>
		<description>[...] this post, Mike Burns solve this problem by redefining #hash and #eql?. If you are doing this kind of [...]</description>
		<content:encoded><![CDATA[<p>[...] this post, Mike Burns solve this problem by redefining #hash and #eql?. If you are doing this kind of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby Can&#8217;t open(&#8216;http://digg.com/&#8217;) by Vamsee</title>
		<link>http://mikeburnscoder.wordpress.com/2007/03/29/ruby-cant-openhttpdiggcom/#comment-7907</link>
		<dc:creator>Vamsee</dc:creator>
		<pubDate>Fri, 02 Jan 2009 17:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://mikeburnscoder.wordpress.com/2007/03/29/ruby-cant-openhttpdiggcom/#comment-7907</guid>
		<description>Thank You. This bug, who ever responsible has been driving me crazy.</description>
		<content:encoded><![CDATA[<p>Thank You. This bug, who ever responsible has been driving me crazy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Truncating HTML in Ruby by dbr</title>
		<link>http://mikeburnscoder.wordpress.com/2006/11/11/truncating-html-in-ruby/#comment-7906</link>
		<dc:creator>dbr</dc:creator>
		<pubDate>Sun, 28 Dec 2008 04:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://mikeburnscoder.wordpress.com/2006/11/11/truncating-html-in-ruby/#comment-7906</guid>
		<description>Thanks for the code! I&#039;ve made a few small changes:

- Tags without attributes were created like `&lt;b&gt;` (so I made the `attrs_to_s` method return an space+attrs, and removed the space from the `start_element` case)

- I added the at_end parameter, so you can add a string before the closing tags, most likely &quot;...&quot;

For example:

Instead of..

&gt;&gt; puts &quot;&lt;b&gt;&lt;a&gt;Something&lt;/a&gt;&quot;.truncate_html(5) + &quot;...&quot;
=&gt; &lt;b&gt;&lt;a href=&quot;hi&quot; rel=&quot;nofollow&quot;&gt;Someth&lt;/a&gt;&lt;/b&gt;...

You can do..

&gt;&gt; puts &quot;&lt;b&gt;&lt;a&gt;Something&lt;/a&gt;&quot;.truncate_html(5, at_end = &quot;...&quot;)
=&gt; &lt;b&gt;&lt;a href=&quot;hi&quot; rel=&quot;nofollow&quot;&gt;Someth...&lt;/a&gt;&lt;/b&gt;


- I also changed `p_e[0].first(new_len)` to `p_e[0][0..new_len]` as p_e[0] didn&#039;t seem to have a `.first` method?

Oh, the code:

http://pastie.org/347690</description>
		<content:encoded><![CDATA[<p>Thanks for the code! I&#8217;ve made a few small changes:</p>
<p>- Tags without attributes were created like `<b>` (so I made the `attrs_to_s` method return an space+attrs, and removed the space from the `start_element` case)</p>
<p>- I added the at_end parameter, so you can add a string before the closing tags, most likely &#8220;&#8230;&#8221;</p>
<p>For example:</p>
<p>Instead of..</p>
<p>&gt;&gt; puts &#8220;</b><b><a>Something</a>&#8220;.truncate_html(5) + &#8220;&#8230;&#8221;<br />
=&gt; </b><b><a href="hi" rel="nofollow">Someth</a></b>&#8230;</p>
<p>You can do..</p>
<p>&gt;&gt; puts &#8220;<b><a>Something</a>&#8220;.truncate_html(5, at_end = &#8220;&#8230;&#8221;)<br />
=&gt; </b><b><a href="hi" rel="nofollow">Someth&#8230;</a></b></p>
<p>- I also changed `p_e[0].first(new_len)` to `p_e[0][0..new_len]` as p_e[0] didn&#8217;t seem to have a `.first` method?</p>
<p>Oh, the code:</p>
<p><a href="http://pastie.org/347690" rel="nofollow">http://pastie.org/347690</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on An updated way to spider the Web with Ruby by Michael Forrest</title>
		<link>http://mikeburnscoder.wordpress.com/2007/10/23/an-updated-way-to-spider-the-web-with-ruby/#comment-7905</link>
		<dc:creator>Michael Forrest</dc:creator>
		<pubDate>Thu, 20 Nov 2008 12:03:42 +0000</pubDate>
		<guid isPermaLink="false">http://mikeburnscoder.wordpress.com/2007/10/23/an-updated-way-to-spider-the-web-with-ruby/#comment-7905</guid>
		<description>Hi Mike 

You need to update this example: the handle 2xx should be:

  s.on :success do &#124;a_url, resp, prior_url&#124;
    puts &quot;body: #{resp.body}&quot;  
  end  

Although, for the record, I disapprove of contracting &#039;response&#039; to &#039;resp&#039;, but just put it that way for consistency with the rest of your example.

Thanks for the gem!</description>
		<content:encoded><![CDATA[<p>Hi Mike </p>
<p>You need to update this example: the handle 2xx should be:</p>
<p>  s.on :success do |a_url, resp, prior_url|<br />
    puts &#8220;body: #{resp.body}&#8221;<br />
  end  </p>
<p>Although, for the record, I disapprove of contracting &#8216;response&#8217; to &#8216;resp&#8217;, but just put it that way for consistency with the rest of your example.</p>
<p>Thanks for the gem!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
