<?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 Keith's Blog</title>
	<atom:link href="http://kfahlgren.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://kfahlgren.com/blog</link>
	<description>Keith on XML, Publishing, Ruby, Birds, &#038; San Francisco</description>
	<lastBuildDate>Wed, 09 Sep 2009 14:05:30 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on RescueTime Is Da Bomb! by mark</title>
		<link>http://kfahlgren.com/blog/2008/02/14/rescuetime-is-da-bomb/comment-page-1/#comment-125</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Wed, 09 Sep 2009 14:05:30 +0000</pubDate>
		<guid isPermaLink="false">http://kfahlgren.com/blog/2008/02/14/rescuetime-is-da-bomb/#comment-125</guid>
		<description>Thanks for the props.

I just came across this and thought I&#039;d let you know you can go grab a new improved pasteable JS embed from our any of our reporting views.

That will fix your error!
Mark Wolgemuth @ RescueTime</description>
		<content:encoded><![CDATA[<p>Thanks for the props.</p>
<p>I just came across this and thought I&#8217;d let you know you can go grab a new improved pasteable JS embed from our any of our reporting views.</p>
<p>That will fix your error!<br />
Mark Wolgemuth @ RescueTime</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Multipart POST in Ruby by Keith</title>
		<link>http://kfahlgren.com/blog/2006/11/01/multipart-post-in-ruby-2/comment-page-1/#comment-124</link>
		<dc:creator>Keith</dc:creator>
		<pubDate>Sun, 04 Jan 2009 02:54:32 +0000</pubDate>
		<guid isPermaLink="false">http://kfahlgren.com/blog/?p=24#comment-124</guid>
		<description>Thanks, Stanislav.</description>
		<content:encoded><![CDATA[<p>Thanks, Stanislav.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Multipart POST in Ruby by stanislav.vitvitskiy</title>
		<link>http://kfahlgren.com/blog/2006/11/01/multipart-post-in-ruby-2/comment-page-1/#comment-123</link>
		<dc:creator>stanislav.vitvitskiy</dc:creator>
		<pubDate>Thu, 25 Dec 2008 15:23:07 +0000</pubDate>
		<guid isPermaLink="false">http://kfahlgren.com/blog/?p=24#comment-123</guid>
		<description>The above post is partial. So I posted the full source on my own blog http://stanislavvitvitskiy.blogspot.com/2008/12/multipart-post-in-ruby.html</description>
		<content:encoded><![CDATA[<p>The above post is partial. So I posted the full source on my own blog <a href="http://stanislavvitvitskiy.blogspot.com/2008/12/multipart-post-in-ruby.html" rel="nofollow">http://stanislavvitvitskiy.blogspot.com/2008/12/multipart-post-in-ruby.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Multipart POST in Ruby by stanislav.vitvitskiy</title>
		<link>http://kfahlgren.com/blog/2006/11/01/multipart-post-in-ruby-2/comment-page-1/#comment-122</link>
		<dc:creator>stanislav.vitvitskiy</dc:creator>
		<pubDate>Thu, 25 Dec 2008 14:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://kfahlgren.com/blog/?p=24#comment-122</guid>
		<description>I played around it a bit and came up with the class more suitable for bigger files ( such as video ).

&lt;pre&gt;
class Multipart
  
  def initialize( file_names )
    @file_names = file_names
  end
  
  def post( to_url )
    boundary = &#039;----RubyMultipartClient&#039; + rand(1000000).to_s + &#039;ZZZZZ&#039;
    
    parts = []
    streams = []
    @file_names.each do &#124;param_name, filepath&#124;
      pos = filepath.rindex(&#039;/&#039;)
      filename = filepath[pos + 1, filepath.length - pos]
      parts &lt;&lt; StringPart.new ( &quot;--&quot; + boundary + &quot;\r\n&quot; +
      &quot;Content-Disposition: form-data; name=\&quot;&quot; + param_name.to_s + &quot;\&quot;; filename=\&quot;&quot; + filename + &quot;\&quot;\r\n&quot; +
      &quot;Content-Type: video/x-msvideo\r\n\r\n&quot;)
      stream = File.open(filepath, &quot;rb&quot;)
      streams &lt;&lt; stream
      parts &lt;&lt; StreamPart.new (stream, File.size(filepath))
    end
    parts &lt;= @parts.size
      return nil;
    end
    
    how_much_current_part = @parts[@part_no].size - @part_offset
    
    how_much_current_part = if how_much_current_part &gt; how_much
      how_much
    else
      how_much_current_part
    end
    
    how_much_next_part = how_much - how_much_current_part
    
    current_part = @parts[@part_no].read(@part_offset, how_much_current_part )

    if how_much_next_part &gt; 0
      @part_no += 1
      @part_offset = 0
      next_part = read ( how_much_next_part  )
      current_part + if next_part
        next_part
      else
        &#039;&#039;
      end
    else
      @part_offset += how_much_current_part
      current_part
    end
  end
end
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I played around it a bit and came up with the class more suitable for bigger files ( such as video ).</p>
<pre>
class Multipart

  def initialize( file_names )
    @file_names = file_names
  end

  def post( to_url )
    boundary = '----RubyMultipartClient' + rand(1000000).to_s + 'ZZZZZ'

    parts = []
    streams = []
    @file_names.each do |param_name, filepath|
      pos = filepath.rindex('/')
      filename = filepath[pos + 1, filepath.length - pos]
      parts &lt;&lt; StringPart.new ( "--" + boundary + "\r\n" +
      "Content-Disposition: form-data; name=\"" + param_name.to_s + "\"; filename=\"" + filename + "\"\r\n" +
      "Content-Type: video/x-msvideo\r\n\r\n")
      stream = File.open(filepath, "rb")
      streams &lt;&lt; stream
      parts &lt;&lt; StreamPart.new (stream, File.size(filepath))
    end
    parts &lt;= @parts.size
      return nil;
    end

    how_much_current_part = @parts[@part_no].size - @part_offset

    how_much_current_part = if how_much_current_part &gt; how_much
      how_much
    else
      how_much_current_part
    end

    how_much_next_part = how_much - how_much_current_part

    current_part = @parts[@part_no].read(@part_offset, how_much_current_part )

    if how_much_next_part &gt; 0
      @part_no += 1
      @part_offset = 0
      next_part = read ( how_much_next_part  )
      current_part + if next_part
        next_part
      else
        ''
      end
    else
      @part_offset += how_much_current_part
      current_part
    end
  end
end
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on More JRuby Play: JFreeChart by Evan</title>
		<link>http://kfahlgren.com/blog/2007/04/12/more-jruby-play-jfreechart/comment-page-1/#comment-121</link>
		<dc:creator>Evan</dc:creator>
		<pubDate>Mon, 30 Jun 2008 12:44:58 +0000</pubDate>
		<guid isPermaLink="false">http://kfahlgren.com/blog/2007/04/12/more-jruby-play-jfreechart/#comment-121</guid>
		<description>Nice!  Great Summary.

I&#039;ve had similar experience with SVG::Graph and slightly more recently Gruff.  Gruff seemed the better of the two by a wide margin.  That said, it requires RMagick which is (a) a PITA and (b) impractical with JRuby.</description>
		<content:encoded><![CDATA[<p>Nice!  Great Summary.</p>
<p>I&#8217;ve had similar experience with SVG::Graph and slightly more recently Gruff.  Gruff seemed the better of the two by a wide margin.  That said, it requires RMagick which is (a) a PITA and (b) impractical with JRuby.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Talk: AtomPub Makes You Cool at Code4Lib2008 by Keith</title>
		<link>http://kfahlgren.com/blog/2008/02/26/talk-atompub-makes-you-cool-at-code4lib2008/comment-page-1/#comment-120</link>
		<dc:creator>Keith</dc:creator>
		<pubDate>Wed, 18 Jun 2008 20:02:37 +0000</pubDate>
		<guid isPermaLink="false">http://kfahlgren.com/blog/2008/02/26/talk-atompub-makes-you-cool-at-code4lib2008/#comment-120</guid>
		<description>And the video is available here: &lt;a href=&quot;http://www.archive.org/details/code4lib.conf.2008.lightningtalk.AtomPublishingProtocol&quot; rel=&quot;nofollow&quot;&gt;http://www.archive.org/details/code4lib.conf.2008.lightningtalk.AtomPublishingProtocol&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>And the video is available here: <a href="http://www.archive.org/details/code4lib.conf.2008.lightningtalk.AtomPublishingProtocol" rel="nofollow">http://www.archive.org/details/code4lib.conf.2008.lightningtalk.AtomPublishingProtocol</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JRuby + JFreeChart = Sparklines by punk21</title>
		<link>http://kfahlgren.com/blog/2007/04/13/jruby-jfreechart-sparklines/comment-page-1/#comment-119</link>
		<dc:creator>punk21</dc:creator>
		<pubDate>Wed, 18 Jun 2008 04:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://kfahlgren.com/blog/2007/04/13/jruby-jfreechart-sparklines/#comment-119</guid>
		<description>Hey guys, Having problem while drawing Sparkline Charts then chk this out &lt;a href=&quot;http://visifire.com&quot; rel=&quot;nofollow&quot;&gt;visifire&lt;/a&gt; an amazing charting component which is powered by silverlight offered under open source</description>
		<content:encoded><![CDATA[<p>Hey guys, Having problem while drawing Sparkline Charts then chk this out <a href="http://visifire.com" rel="nofollow">visifire</a> an amazing charting component which is powered by silverlight offered under open source</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JRuby + JFreeChart = Sparklines by slonkak</title>
		<link>http://kfahlgren.com/blog/2007/04/13/jruby-jfreechart-sparklines/comment-page-1/#comment-118</link>
		<dc:creator>slonkak</dc:creator>
		<pubDate>Thu, 17 Apr 2008 18:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://kfahlgren.com/blog/2007/04/13/jruby-jfreechart-sparklines/#comment-118</guid>
		<description>Would you be so kind as to help our a Ruby/Java noob?  Say I just created a default, blank rails app in my jRuby install.  I have the jfreechart and jcommon JARs in my classpath.  What all do I  have to do to get your code to work and start producing charts.  I don&#039;t know Ruby (nor the MVC framework), I don&#039;t know Java, and I most certainly don&#039;t know how Java works with jRuby.  I would like to learn, but since I learn by example, and most examples on the net are very incomplete, I&#039;m having a hard time.  Could you provide any assistance?</description>
		<content:encoded><![CDATA[<p>Would you be so kind as to help our a Ruby/Java noob?  Say I just created a default, blank rails app in my jRuby install.  I have the jfreechart and jcommon JARs in my classpath.  What all do I  have to do to get your code to work and start producing charts.  I don&#8217;t know Ruby (nor the MVC framework), I don&#8217;t know Java, and I most certainly don&#8217;t know how Java works with jRuby.  I would like to learn, but since I learn by example, and most examples on the net are very incomplete, I&#8217;m having a hard time.  Could you provide any assistance?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on RubyConf 2007 Second Day Afternoon by Christoffer Sawicki</title>
		<link>http://kfahlgren.com/blog/2007/11/03/rubyconf-2007-second-day-afternoon/comment-page-1/#comment-117</link>
		<dc:creator>Christoffer Sawicki</dc:creator>
		<pubDate>Mon, 17 Mar 2008 15:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://kfahlgren.com/blog/2007/11/03/rubyconf-2007-second-day-afternoon/#comment-117</guid>
		<description>&lt;a href=&quot;http://alioth.debian.org/&quot; rel=&quot;nofollow&quot;&gt;Alioth&lt;/a&gt; is not a set of benchmarks; it&#039;s a &lt;a href=&quot;http://gforge.org/&quot; rel=&quot;nofollow&quot;&gt;GForge&lt;/a&gt; run by &lt;a href=&quot;http://www.debian.org/&quot; rel=&quot;nofollow&quot;&gt;the Debian project&lt;/a&gt;. &lt;a href=&quot;http://shootout.alioth.debian.org/&quot; rel=&quot;nofollow&quot;&gt;The Computer Language Benchmarks Game&lt;/a&gt; is hosted at Alioth, though.</description>
		<content:encoded><![CDATA[<p><a href="http://alioth.debian.org/" rel="nofollow">Alioth</a> is not a set of benchmarks; it&#8217;s a <a href="http://gforge.org/" rel="nofollow">GForge</a> run by <a href="http://www.debian.org/" rel="nofollow">the Debian project</a>. <a href="http://shootout.alioth.debian.org/" rel="nofollow">The Computer Language Benchmarks Game</a> is hosted at Alioth, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on For heaven&#8217;s sake, please just install hoe! by Christoffer Sawicki</title>
		<link>http://kfahlgren.com/blog/2008/02/21/for-heavens-sake-please-just-install-hoe/comment-page-1/#comment-116</link>
		<dc:creator>Christoffer Sawicki</dc:creator>
		<pubDate>Mon, 17 Mar 2008 14:50:31 +0000</pubDate>
		<guid isPermaLink="false">http://kfahlgren.com/blog/2008/02/21/for-heavens-sake-please-just-install-hoe/#comment-116</guid>
		<description>The &lt;code&gt;-y&lt;/code&gt; option (also known as &lt;code&gt;--include-dependencies&lt;/code&gt;) to &lt;code&gt;gem install&lt;/code&gt; makes things a little more bearable.

P.S. Comment preview would be nice. D.S.</description>
		<content:encoded><![CDATA[<p>The <code>-y</code> option (also known as <code>--include-dependencies</code>) to <code>gem install</code> makes things a little more bearable.</p>
<p>P.S. Comment preview would be nice. D.S.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
