<?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>jan on ruby</title>
	<atom:link href="http://onruby.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://onruby.wordpress.com</link>
	<description>randomly on ruby</description>
	<lastBuildDate>Wed, 28 Jan 2009 19:17:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='onruby.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>jan on ruby</title>
		<link>http://onruby.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://onruby.wordpress.com/osd.xml" title="jan on ruby" />
	<atom:link rel='hub' href='http://onruby.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Abandoned this blog</title>
		<link>http://onruby.wordpress.com/2009/01/28/abandoned-this-blog/</link>
		<comments>http://onruby.wordpress.com/2009/01/28/abandoned-this-blog/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 19:17:13 +0000</pubDate>
		<dc:creator>Jan Kubr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://onruby.flempo.com/?p=81</guid>
		<description><![CDATA[I have abandoned this blog in favor of my new homepage http://jankubr.com. I&#8217;ll keep the content here but only under the http://onruby.wordpress.com URL. If you want to keep up to date with what&#8217;s going on with me, follow me on Twitter where all the fun has moved these days. I&#8217;m at @jankubr. You can also follow me on Github to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=81&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<p>I have abandoned this blog in favor of my new homepage <a title="Jan Kubr" href="http://jankubr.com" target="_blank">http://jankubr.com</a>. I&#8217;ll keep the content here but only under the <a title="by jan on ruby" href="http://onruby.wordpress.com" target="_blank">http://onruby.wordpress.com</a> URL. If you want to keep up to date with what&#8217;s going on with me, follow me on Twitter where all the fun has moved these days. I&#8217;m at <a title="@jankubr" href="http://twitter.com/jankubr" target="_blank">@jankubr</a>. You can also follow me on <a title="Jan Kubr" href="http://github.com/jankubr" target="_blank">Github</a> to see what&#8217;s new in my lab.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onruby.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onruby.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onruby.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onruby.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onruby.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onruby.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onruby.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onruby.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onruby.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onruby.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onruby.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onruby.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onruby.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onruby.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=81&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onruby.wordpress.com/2009/01/28/abandoned-this-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea875673199ca2e6b6ba0eeda0e7e009?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Jan Kubr</media:title>
		</media:content>
	</item>
		<item>
		<title>Something static in RuntimeError</title>
		<link>http://onruby.wordpress.com/2008/12/09/something-static-in-runtimeerror/</link>
		<comments>http://onruby.wordpress.com/2008/12/09/something-static-in-runtimeerror/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 15:22:56 +0000</pubDate>
		<dc:creator>Jan Kubr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[net::sftp]]></category>
		<category><![CDATA[runtimerror]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://onruby.flempo.com/?p=77</guid>
		<description><![CDATA[If you have two Net::SFTP::Exceptions in one process, the error messages get concatenated. This is probably because the message method of RuntimError (or of something above) returns something static which gets reset only in the initialize method: class MyError &#60; RuntimeError   def initialize(response)     @response = response   end   def message     m [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=77&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you have two Net::SFTP::Exceptions in one process, the error messages get concatenated. This is probably because the <em>message</em> method of RuntimError (or of something above) returns something static which gets reset only in the initialize method:</p>
<pre>class MyError &lt; RuntimeError
  def initialize(response)
    @response = response
  end

  def message
    m = super
    m &lt;&lt; @response
  end
end

2.times do
  begin
    raise MyError.new('error')
  rescue RuntimeError =&gt; e
    puts e.message
  end
end</pre>
<p>Which outputs:<br />
MyErrorerror<br />
MyErrorerrorerror</p>
<p>If you call super from the <em>initialize</em> method or change the last line in the <em>message</em> method to &#8220;m + @response&#8221; the outputs are more as expected:<br />
MyErrorerror<br />
MyErrorerror</p>
<p>errorerror<br />
errorerror</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onruby.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onruby.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onruby.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onruby.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onruby.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onruby.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onruby.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onruby.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onruby.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onruby.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onruby.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onruby.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onruby.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onruby.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=77&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onruby.wordpress.com/2008/12/09/something-static-in-runtimeerror/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea875673199ca2e6b6ba0eeda0e7e009?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Jan Kubr</media:title>
		</media:content>
	</item>
		<item>
		<title>Timeout::Error is not a subclass of StandardError</title>
		<link>http://onruby.wordpress.com/2008/11/25/timeouterror-is-not-a-subclass-of-standarderror/</link>
		<comments>http://onruby.wordpress.com/2008/11/25/timeouterror-is-not-a-subclass-of-standarderror/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 11:42:57 +0000</pubDate>
		<dc:creator>Jan Kubr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[standardError]]></category>
		<category><![CDATA[timeout:error]]></category>

		<guid isPermaLink="false">http://onruby.wordpress.com/?p=75</guid>
		<description><![CDATA[Since Timeout::Error is not a subclass of StandardError, you&#8217;ll need to do something like this to catch the exception:   rescue StandardError, Timeout::Error =&#62; e Not too much fun, but it certainly didn&#8217;t make me as angry as the guy I linked to above ;-)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=75&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Since <a href="http://jerith.livejournal.com/40063.html" target="_blank">Timeout::Error is not a subclass of StandardError</a>, you&#8217;ll need to do something like this to catch the exception:</p>
<pre>  rescue StandardError, Timeout::Error =&gt; e</pre>
<p>Not too much fun, but it certainly didn&#8217;t make me as angry as the guy I linked to above ;-)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onruby.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onruby.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onruby.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onruby.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onruby.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onruby.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onruby.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onruby.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onruby.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onruby.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onruby.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onruby.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onruby.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onruby.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=75&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onruby.wordpress.com/2008/11/25/timeouterror-is-not-a-subclass-of-standarderror/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea875673199ca2e6b6ba0eeda0e7e009?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Jan Kubr</media:title>
		</media:content>
	</item>
		<item>
		<title>Merb can&#8217;t connect to the database with data_objects_adapter.rb:137:in `initialize&#8217;: wrong number of arguments (8 for 1) (ArgumentError)</title>
		<link>http://onruby.wordpress.com/2008/11/18/merb-cant-connect-to-the-database-with-data_objects_adapterrb137in-initialize-wrong-number-of-arguments-8-for-1-argumenterror/</link>
		<comments>http://onruby.wordpress.com/2008/11/18/merb-cant-connect-to-the-database-with-data_objects_adapterrb137in-initialize-wrong-number-of-arguments-8-for-1-argumenterror/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 10:32:14 +0000</pubDate>
		<dc:creator>Jan Kubr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[8 for 1]]></category>
		<category><![CDATA[addressable]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[merb]]></category>

		<guid isPermaLink="false">http://onruby.wordpress.com/?p=72</guid>
		<description><![CDATA[Another Merb breakage after upgrading. Thanks to some Japanese guy I figured how to solve this one. You&#8217;ll need the addressable gem in version 1.0.4 and to add this to your dependecies.rb: dependency "addressable", '1.0.4', :require_as =&#62; 'uri' before the dm-core dependency.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=72&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Another Merb breakage after upgrading. Thanks to some <a href="http://d.hatena.ne.jp/norizo3/20081117/1226928379" target="_blank">Japanese guy</a> I figured how to solve this one. You&#8217;ll need the addressable gem in version 1.0.4 and to add this to your dependecies.rb:</p>
<pre>dependency "addressable", '1.0.4', :require_as =&gt; 'uri'</pre>
<p>before the <em>dm-core</em> dependency.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onruby.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onruby.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onruby.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onruby.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onruby.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onruby.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onruby.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onruby.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onruby.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onruby.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onruby.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onruby.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onruby.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onruby.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=72&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onruby.wordpress.com/2008/11/18/merb-cant-connect-to-the-database-with-data_objects_adapterrb137in-initialize-wrong-number-of-arguments-8-for-1-argumenterror/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea875673199ca2e6b6ba0eeda0e7e009?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Jan Kubr</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby can be so weird</title>
		<link>http://onruby.wordpress.com/2008/11/17/ruby-can-be-so-weird/</link>
		<comments>http://onruby.wordpress.com/2008/11/17/ruby-can-be-so-weird/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 11:19:05 +0000</pubDate>
		<dc:creator>Jan Kubr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[methods]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://onruby.wordpress.com/?p=70</guid>
		<description><![CDATA[See this pastie; I just ran into this issue. Good I knew about the problem already from worrying but interesting David Majda&#8217;s presentation.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=70&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>See this <a href="http://pastie.org/316752" target="_blank">pastie</a>; I just ran into this issue. Good I knew about the problem already from worrying but interesting <a href="http://www.majda.cz/download/znate-dobre-ruby.html" target="_blank">David Majda&#8217;s presentation</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onruby.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onruby.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onruby.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onruby.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onruby.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onruby.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onruby.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onruby.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onruby.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onruby.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onruby.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onruby.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onruby.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onruby.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=70&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onruby.wordpress.com/2008/11/17/ruby-can-be-so-weird/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea875673199ca2e6b6ba0eeda0e7e009?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Jan Kubr</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby is not slow</title>
		<link>http://onruby.wordpress.com/2008/11/12/ruby-is-not-slow/</link>
		<comments>http://onruby.wordpress.com/2008/11/12/ruby-is-not-slow/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 07:40:21 +0000</pubDate>
		<dc:creator>Jan Kubr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[slow]]></category>

		<guid isPermaLink="false">http://onruby.wordpress.com/?p=66</guid>
		<description><![CDATA[I think one of the greatest contributions of the Merb guys is spreading the message that Ruby is not slow. Even Rails is faster than most mainstream PHP frameworks. Wow. (I looked up the research they refer to to see if they don&#8217;t cheat by comparing Rails and Merb to CakePHP. They don&#8217;t, it is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=66&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I think one of the greatest contributions of the Merb guys is spreading the message that Ruby is not slow. Even <a href="http://www.slideshare.net/wycats/merb-camp-keynote-presentation" target="_blank">Rails is faster than most mainstream PHP frameworks</a>. Wow.</p>
<p>(I looked up the <a href="http://www.avnetlabs.com/php/php-framework-comparison-benchmarks" target="_blank">research</a> they refer to to see if they don&#8217;t cheat by comparing Rails and Merb to CakePHP. They don&#8217;t, it is the fastest PHP framework from the sample group.</p>
<p>[UPDATE: Nope, was wrong; please read the comments.])</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onruby.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onruby.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onruby.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onruby.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onruby.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onruby.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onruby.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onruby.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onruby.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onruby.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onruby.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onruby.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onruby.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onruby.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=66&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onruby.wordpress.com/2008/11/12/ruby-is-not-slow/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea875673199ca2e6b6ba0eeda0e7e009?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Jan Kubr</media:title>
		</media:content>
	</item>
		<item>
		<title>warning: already initialized constant C</title>
		<link>http://onruby.wordpress.com/2008/11/12/warning-already-initialized-constant-c/</link>
		<comments>http://onruby.wordpress.com/2008/11/12/warning-already-initialized-constant-c/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 07:27:22 +0000</pubDate>
		<dc:creator>Jan Kubr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[already initialized constant]]></category>
		<category><![CDATA[broken windows]]></category>
		<category><![CDATA[warnings]]></category>

		<guid isPermaLink="false">http://onruby.wordpress.com/?p=64</guid>
		<description><![CDATA[Not caring about warnings is bad. Broken windows do matter. Here&#8217;s how to avoid this one:  warning: already initialized constant C Simply define the constant only if not yet defined: C = 'value' unless defined?(C)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=64&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Not caring about warnings is bad. <a href="http://www.artima.com/intv/fixitP.html" target="_blank">Broken windows</a> do matter. Here&#8217;s how to avoid this one:</p>
<pre> warning: already initialized constant C</pre>
<p>Simply define the constant only if not yet defined:</p>
<pre>C = 'value' unless defined?(C)</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onruby.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onruby.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onruby.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onruby.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onruby.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onruby.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onruby.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onruby.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onruby.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onruby.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onruby.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onruby.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onruby.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onruby.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=64&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onruby.wordpress.com/2008/11/12/warning-already-initialized-constant-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea875673199ca2e6b6ba0eeda0e7e009?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Jan Kubr</media:title>
		</media:content>
	</item>
		<item>
		<title>Sharp knives</title>
		<link>http://onruby.wordpress.com/2008/11/11/sharp-knives/</link>
		<comments>http://onruby.wordpress.com/2008/11/11/sharp-knives/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 10:25:35 +0000</pubDate>
		<dc:creator>Jan Kubr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[duck typing]]></category>

		<guid isPermaLink="false">http://onruby.wordpress.com/?p=60</guid>
		<description><![CDATA[Duck typing is like sharp knives: You do need protect yourself. If you don&#8217;t, you end up with this: function propagate_artist(element) {     element = $(element); instead of this: function propagate_artist(element_id) {     element = $(element_id); Too subtle for you? Can I please not work with you then?<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=60&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Duck typing is like sharp knives: You do need protect yourself. If you don&#8217;t, you end up with this:</p>
<pre>function propagate_artist(element) {
    element = $(element);</pre>
<p>instead of this:</p>
<pre>function propagate_artist(element_id) {
    element = $(element_id);</pre>
<p>Too subtle for you? Can I please not work with you then?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onruby.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onruby.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onruby.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onruby.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onruby.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onruby.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onruby.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onruby.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onruby.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onruby.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onruby.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onruby.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onruby.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onruby.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=60&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onruby.wordpress.com/2008/11/11/sharp-knives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea875673199ca2e6b6ba0eeda0e7e009?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Jan Kubr</media:title>
		</media:content>
	</item>
		<item>
		<title>Having troubles daemonizing your Ruby app?</title>
		<link>http://onruby.wordpress.com/2008/11/02/having-troubles-daemonizing-your-ruby-app/</link>
		<comments>http://onruby.wordpress.com/2008/11/02/having-troubles-daemonizing-your-ruby-app/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 22:54:42 +0000</pubDate>
		<dc:creator>Jan Kubr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[daemonize]]></category>
		<category><![CDATA[dirname]]></category>

		<guid isPermaLink="false">http://onruby.wordpress.com/?p=56</guid>
		<description><![CDATA[You might have the same problem I had with using daemonize (might be with anything else, too): File.dirname(__FILE__) doesn&#8217;t work after right daemonizing. Although I haven&#8217;t been able to catch the exception message or whatever info, I&#8217;m almost sure the problem is that daemonize does a Dir.chdir &#8220;/&#8221;. Try run this script from a file [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=56&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You might have the same problem I had with using <a href="http://grub.ath.cx/daemonize/" target="_blank">daemonize</a> (might be with anything else, too): File.dirname(__FILE__) doesn&#8217;t work after right daemonizing.</p>
<p>Although I haven&#8217;t been able to catch the exception message or whatever info, I&#8217;m almost sure the problem is that daemonize does a Dir.chdir &#8220;/&#8221;. Try run this script from a file in any directory and it will always print &#8220;/&#8221;:</p>
<pre>Dir.chdir "/"
puts File.expand_path(File.dirname(__FILE__))</pre>
<p>Anyway, save the path to the directory before daemonizing and you&#8217;ll be fine.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onruby.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onruby.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onruby.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onruby.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onruby.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onruby.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onruby.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onruby.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onruby.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onruby.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onruby.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onruby.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onruby.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onruby.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=56&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onruby.wordpress.com/2008/11/02/having-troubles-daemonizing-your-ruby-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea875673199ca2e6b6ba0eeda0e7e009?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Jan Kubr</media:title>
		</media:content>
	</item>
		<item>
		<title>Chose Freeswitch over Asterisk</title>
		<link>http://onruby.wordpress.com/2008/10/28/chose-freeswitch-over-asterisk/</link>
		<comments>http://onruby.wordpress.com/2008/10/28/chose-freeswitch-over-asterisk/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 22:09:50 +0000</pubDate>
		<dc:creator>Jan Kubr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[freeswitch]]></category>
		<category><![CDATA[telfa]]></category>

		<guid isPermaLink="false">http://onruby.wordpress.com/?p=52</guid>
		<description><![CDATA[Our PBX/IVR web-based generator Telfa has been moved from Asterisk to Freeswitch. Why? Asterisk just seems to come from a different world than what I am used to. Inflexible and problematic. Very long configuration files with ancient syntax. Now I&#8217;m far from pretending I&#8217;ve used Asterisk enough to understand it pros and cons well, but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=52&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Our PBX/IVR web-based generator <a title="Telfa - VOIP PBX configurable on the web" href="http://telfa.cz" target="_blank">Telfa</a> has been moved from <a title="Asterisk" href="http://asterisk.org/" target="_blank">Asterisk</a> to <a title="Freeswitch" href="http://freeswitch.org/" target="_blank">Freeswitch</a>. Why?</p>
<p>Asterisk just seems to come from a different world than what I am used to. Inflexible and problematic. Very long configuration files with ancient syntax. Now I&#8217;m far from pretending I&#8217;ve used Asterisk enough to understand it pros and cons well, but I have a decent software development experience and I can tell when something &#8220;smells.&#8221; I didn&#8217;t want to build our system (that I want to be flexible and scale well) on some old technology that is only living from its past.</p>
<p>And (most importantly) there are many people experienced with both Asterisk and Freeswitch favoring the latter: <a title="Asterisk vs. Freeswitch" href="http://www.anders.com/cms/266/Asterisk.vs.FreeSWITCH" target="_blank">Anders Brownworth</a>, <a title="Jonathan Palley" href="http://rubyforge.org/pipermail/telegraph-users/2008-July/000136.html" target="_blank">Jonathan Palley</a> (creator of <a title="Telegraph" href="http://code.google.com/p/telegraph/" target="_blank">Telegraph</a>, a Rails plugin that lets you talk to Freeswitch), or of course the creator of Freeswitch (and former Asterisk developer!) <a title="Anthony Missale" href="http://www.freeswitch.org/node/117" target="_blank">Anthony Minessale</a> himself.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onruby.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onruby.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onruby.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onruby.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onruby.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onruby.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onruby.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onruby.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onruby.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onruby.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onruby.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onruby.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onruby.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onruby.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onruby.wordpress.com&amp;blog=2723855&amp;post=52&amp;subd=onruby&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onruby.wordpress.com/2008/10/28/chose-freeswitch-over-asterisk/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea875673199ca2e6b6ba0eeda0e7e009?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Jan Kubr</media:title>
		</media:content>
	</item>
	</channel>
</rss>
