<?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 Kabisa Blog</title>
	<atom:link href="http://blog.kabisa.nl/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kabisa.nl</link>
	<description>The Ruby on Rails Experts</description>
	<lastBuildDate>Wed, 17 Mar 2010 08:31:52 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Running cucumber features with sunspot_rails by Patrick Baselier</title>
		<link>http://blog.kabisa.nl/2010/02/03/running-cucumber-features-with-sunspot_rails/comment-page-1/#comment-66</link>
		<dc:creator>Patrick Baselier</dc:creator>
		<pubDate>Wed, 17 Mar 2010 08:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kabisa.nl/?p=75#comment-66</guid>
		<description>Thanks Frank, you&#039;re absolutely right. I corrected the code.</description>
		<content:encoded><![CDATA[<p>Thanks Frank, you&#8217;re absolutely right. I corrected the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Xen: How to fix &#8220;SIOCSIFADDR: No such device&#8221; by gcphost</title>
		<link>http://blog.kabisa.nl/2009/12/11/xen-how-to-fix-siocsifaddr-no-such-device/comment-page-1/#comment-52</link>
		<dc:creator>gcphost</dc:creator>
		<pubDate>Sun, 14 Feb 2010 01:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kabisa.nl/?p=47#comment-52</guid>
		<description>great article - the solution was what i needed for xen center using the debian 4 install - works like a charm.</description>
		<content:encoded><![CDATA[<p>great article &#8211; the solution was what i needed for xen center using the debian 4 install &#8211; works like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running cucumber features with sunspot_rails by Frank</title>
		<link>http://blog.kabisa.nl/2010/02/03/running-cucumber-features-with-sunspot_rails/comment-page-1/#comment-49</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 11 Feb 2010 08:53:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kabisa.nl/?p=75#comment-49</guid>
		<description>I&#039;m sorry but I don&#039;t see how you call your custom class. The last code at the bottom is calling the Sunspot class, not the CukeSunspot one so I don&#039;t think your class will be used. Or did I miss something?</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry but I don&#8217;t see how you call your custom class. The last code at the bottom is calling the Sunspot class, not the CukeSunspot one so I don&#8217;t think your class will be used. Or did I miss something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using transactions with Ruby DataMapper by Ariejan</title>
		<link>http://blog.kabisa.nl/2010/01/21/using-transactions-with-ruby-datamapper/comment-page-1/#comment-43</link>
		<dc:creator>Ariejan</dc:creator>
		<pubDate>Fri, 22 Jan 2010 08:05:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kabisa.nl/?p=52#comment-43</guid>
		<description>To mimic AR&#039;s behaviour, you could do the following

&lt;pre lang=&quot;ruby&quot;&gt;User.transaction do &#124;t&#124;
  begin
    User.first.update(:name =&gt; &quot;John Smith&quot;)
    Address.first.update(:street =&gt; &quot;Oak St. 400&quot;)
  rescue
    t.rollback
  end
end&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>To mimic AR&#8217;s behaviour, you could do the following</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">User.<span style="color:#9900CC;">transaction</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>t<span style="color:#006600; font-weight:bold;">|</span>
  <span style="color:#9966CC; font-weight:bold;">begin</span>
    User.<span style="color:#9900CC;">first</span>.<span style="color:#9900CC;">update</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:name</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;John Smith&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
    Address.<span style="color:#9900CC;">first</span>.<span style="color:#9900CC;">update</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:street</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;Oak St. 400&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  <span style="color:#9966CC; font-weight:bold;">rescue</span>
    t.<span style="color:#9900CC;">rollback</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to setup Ruby on Rails, Apache and Passenger on Debian Linux by How to setup Ruby on Rails, Apache and Passenger on Debian Linux &#171; Nigi Fabio Blog</title>
		<link>http://blog.kabisa.nl/2009/12/08/how-to-setup-ruby-on-rails-apache-and-passenger-on-debian-linux/comment-page-1/#comment-16</link>
		<dc:creator>How to setup Ruby on Rails, Apache and Passenger on Debian Linux &#171; Nigi Fabio Blog</dc:creator>
		<pubDate>Thu, 10 Dec 2009 00:42:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kabisa.nl/?p=40#comment-16</guid>
		<description>[...] here    Posted in howto. Leave a Comment [...]</description>
		<content:encoded><![CDATA[<p>[...] here    Posted in howto. Leave a Comment [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby and SSL Certificate Validation by Ariejan</title>
		<link>http://blog.kabisa.nl/2009/12/04/ruby-and-ssl-certificate-validation/comment-page-1/#comment-10</link>
		<dc:creator>Ariejan</dc:creator>
		<pubDate>Fri, 04 Dec 2009 14:54:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kabisa.nl/?p=31#comment-10</guid>
		<description>In a recent Rails 2.3.5 and Ruby 1.8.7 project, I monkey-patched Net:HTTP in environment.rb (maybe it can be moved to a separate initializer). 

I put the cacert.pem file in the config directory.

&lt;pre lang=&quot;ruby&quot;&gt;class Net::HTTP
  alias_method :old_initialize, :initialize
  def initialize(*args)
    old_initialize(*args)
    @ssl_context = OpenSSL::SSL::SSLContext.new
    @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_PEER
    @ssl_context.ca_file = File.join(RAILS_ROOT, &#039;config&#039;, &#039;cacert.pem&#039;)
  end
end&lt;/pre&gt;

Whenever SSL is used, the cacert.pem file is loaded. Awesome!</description>
		<content:encoded><![CDATA[<p>In a recent Rails 2.3.5 and Ruby 1.8.7 project, I monkey-patched Net:HTTP in environment.rb (maybe it can be moved to a separate initializer). </p>
<p>I put the cacert.pem file in the config directory.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> <span style="color:#6666ff; font-weight:bold;">Net::HTTP</span>
  alias_method <span style="color:#ff3333; font-weight:bold;">:old_initialize</span>, <span style="color:#ff3333; font-weight:bold;">:initialize</span>
  <span style="color:#9966CC; font-weight:bold;">def</span> initialize<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">*</span>args<span style="color:#006600; font-weight:bold;">&#41;</span>
    old_initialize<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">*</span>args<span style="color:#006600; font-weight:bold;">&#41;</span>
    <span style="color:#0066ff; font-weight:bold;">@ssl_context</span> = <span style="color:#6666ff; font-weight:bold;">OpenSSL::SSL::SSLContext</span>.<span style="color:#9900CC;">new</span>
    <span style="color:#0066ff; font-weight:bold;">@ssl_context</span>.<span style="color:#9900CC;">verify_mode</span> = <span style="color:#6666ff; font-weight:bold;">OpenSSL::SSL::VERIFY_PEER</span>
    <span style="color:#0066ff; font-weight:bold;">@ssl_context</span>.<span style="color:#9900CC;">ca_file</span> = <span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">join</span><span style="color:#006600; font-weight:bold;">&#40;</span>RAILS_ROOT, <span style="color:#996600;">'config'</span>, <span style="color:#996600;">'cacert.pem'</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Whenever SSL is used, the cacert.pem file is loaded. Awesome!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
