<?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>boompty boomp</title>
	<atom:link href="http://rollerdisco.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rollerdisco.wordpress.com</link>
	<description>... at the roller rink disco ...</description>
	<lastBuildDate>Wed, 25 Feb 2009 03:37:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='rollerdisco.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>boompty boomp</title>
		<link>http://rollerdisco.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://rollerdisco.wordpress.com/osd.xml" title="boompty boomp" />
	<atom:link rel='hub' href='http://rollerdisco.wordpress.com/?pushpress=hub'/>
		<item>
		<title>wp-syntax -&gt; SyntaxHighlighter</title>
		<link>http://rollerdisco.wordpress.com/2009/02/24/wp-syntax-syntaxhighlighter/</link>
		<comments>http://rollerdisco.wordpress.com/2009/02/24/wp-syntax-syntaxhighlighter/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 10:41:28 +0000</pubDate>
		<dc:creator>rollerdisco</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://rollerdisco.wordpress.com/?p=217</guid>
		<description><![CDATA[Fortunately, WordPress.com uses SyntaxHighlighter (see http://support.wordpress.com/code/), so I&#8217;ll need to convert all my old tags that rely on the wp-syntax plugin to this new format before being able to import my WordPress.org posts. Update: Done! However, if the syntax highlighting looks a bit funny, that&#8217;s because I&#8217;ve used &#8220;php&#8221; for everything, since WordPress.com&#8217;s implementation of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=217&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Fortunately, WordPress.com uses SyntaxHighlighter (see <a href="http://support.wordpress.com/code/">http://support.wordpress.com/code/</a>), so I&#8217;ll need to convert all my old tags that rely on the wp-syntax plugin to this new format before being able to import my WordPress.org posts.</p>
<p><strong>Update:</strong> Done!  However, if the syntax highlighting looks a bit funny, that&#8217;s because I&#8217;ve used &#8220;php&#8221; for everything, since WordPress.com&#8217;s implementation of SyntaxHighlighter doesn&#8217;t seem to include bash/shell, rails, etc.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rollerdisco.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rollerdisco.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rollerdisco.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rollerdisco.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rollerdisco.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rollerdisco.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rollerdisco.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rollerdisco.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rollerdisco.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rollerdisco.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rollerdisco.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rollerdisco.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rollerdisco.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rollerdisco.wordpress.com/217/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=217&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rollerdisco.wordpress.com/2009/02/24/wp-syntax-syntaxhighlighter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2c4daef4f53ae2389dd6f55f61e9e74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rollerdisco</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing build tools on Debian / Ubuntu</title>
		<link>http://rollerdisco.wordpress.com/2009/01/08/installing-build-tools-on-debian-ubuntu/</link>
		<comments>http://rollerdisco.wordpress.com/2009/01/08/installing-build-tools-on-debian-ubuntu/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 00:45:25 +0000</pubDate>
		<dc:creator>rollerdisco</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.defunct.ca/?p=207</guid>
		<description><![CDATA[Instead of installing each package one-by-one, you can: # apt-get install build-essential On my machine, this installed: The following NEW packages will be installed binutils build-essential cpp cpp-4.1 dpkg-dev g++ g++-4.1 gcc gcc-4.1 libssp0 libstdc++6-4.1-dev make patch<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=207&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Instead of installing each package one-by-one, you can:</p>
<pre class="brush: php;">
# apt-get install build-essential
</pre>
<p>On my machine, this installed:</p>
<pre class="brush: php;">
The following NEW packages will be installed
  binutils build-essential cpp cpp-4.1 dpkg-dev g++ g++-4.1 gcc gcc-4.1 libssp0 libstdc++6-4.1-dev make patch
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rollerdisco.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rollerdisco.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rollerdisco.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rollerdisco.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rollerdisco.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rollerdisco.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rollerdisco.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rollerdisco.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rollerdisco.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rollerdisco.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rollerdisco.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rollerdisco.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rollerdisco.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rollerdisco.wordpress.com/207/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=207&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rollerdisco.wordpress.com/2009/01/08/installing-build-tools-on-debian-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2c4daef4f53ae2389dd6f55f61e9e74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rollerdisco</media:title>
		</media:content>
	</item>
		<item>
		<title>Removing associated records</title>
		<link>http://rollerdisco.wordpress.com/2008/12/16/removing-associated-records/</link>
		<comments>http://rollerdisco.wordpress.com/2008/12/16/removing-associated-records/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 13:04:59 +0000</pubDate>
		<dc:creator>rollerdisco</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.defunct.ca/?p=203</guid>
		<description><![CDATA[I was doing the following to remove associated records from comments when removing the parent event record: @event = Event.find(params[:id]) @comments = @event.comments.find(:all) if @event.destroy &#38;&#38; Comment.destroy(@comments) flash[:notice] = &#34;Event deleted&#34; else flash[:error] = &#34;There was a problem deleting the event&#34; end redirect_to :action =&#62; 'index' This worked fine, but changing the event model to: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=203&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was doing the following to remove associated records from comments when removing the parent event record:</p>
<pre class="brush: php;">
@event = Event.find(params[:id])
@comments = @event.comments.find(:all)

if @event.destroy &amp;&amp; Comment.destroy(@comments)
  flash[:notice] = &quot;Event deleted&quot;
else
  flash[:error] = &quot;There was a problem deleting the event&quot;
end

redirect_to :action =&gt; 'index'
</pre>
<p>This worked fine, but changing the event model to:</p>
<pre class="brush: php;">
has_many :comments, :dependent =&gt; :destroy
</pre>
<p>&#8230; means I can change the controller code to:</p>
<pre class="brush: php;">
@event = Event.find(params[:id])

if @event.destroy
  flash[:notice] = &quot;Event deleted&quot;
else
  flash[:error] = &quot;There was a problem deleting the event&quot;
end

redirect_to :action =&gt; 'index'
</pre>
<p>On a side note, you have to do Comment.destroy(@comments) since this doesn&#8217;t work:</p>
<pre class="brush: php;">
&gt;&gt; @event = Event.find(1)
=&gt; #&lt;event id: 1, name: &quot;Fabric&quot;, location_id: 1, lineup: &quot;Mark Farina&lt;br /&gt;Terry Francis&lt;br /&gt;Jon Marsh&lt;br /&gt;James ...&quot;, date: &quot;2005-04-23&quot;, url: &quot;www.fabriclondon.com&quot;, tickets: &quot;&quot;, price: &quot;Â£15/Â£12 NUS&quot;, time: &quot;N/A&quot;, user_id: 1&gt;
&gt;&gt; @comments = @event.comments.find(:all)
=&gt; []
&gt;&gt; @comments.destroy
NoMethodError: undefined method `destroy' for []:Array
        from (irb):3
&gt;&gt; Comment.destroy(@comments)
=&gt; []
&gt;&gt;
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rollerdisco.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rollerdisco.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rollerdisco.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rollerdisco.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rollerdisco.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rollerdisco.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rollerdisco.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rollerdisco.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rollerdisco.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rollerdisco.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rollerdisco.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rollerdisco.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rollerdisco.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rollerdisco.wordpress.com/203/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=203&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rollerdisco.wordpress.com/2008/12/16/removing-associated-records/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2c4daef4f53ae2389dd6f55f61e9e74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rollerdisco</media:title>
		</media:content>
	</item>
		<item>
		<title>Rails Finders &#8211; Array Conditions</title>
		<link>http://rollerdisco.wordpress.com/2008/12/08/rails-finders-array-conditions/</link>
		<comments>http://rollerdisco.wordpress.com/2008/12/08/rails-finders-array-conditions/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 17:46:13 +0000</pubDate>
		<dc:creator>rollerdisco</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.defunct.ca/?p=198</guid>
		<description><![CDATA[From http://guides.rubyonrails.com/finders.html: The reason for doing code like: +Client.first(:conditions =&#62; [&#34;orders_count = ?&#34;, params[:orders]])+ instead of: +Client.first(:conditions =&#62; &#34;orders_count = #{params[:orders]}&#34;)+ is because of parameter safety. Putting the variable directly into the conditions string will pass the variable to the database as-is. This means that it will be an unescaped variable directly from a user [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=198&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>From <a href="http://guides.rubyonrails.com/finders.html">http://guides.rubyonrails.com/finders.html</a>:</p>
<p>The reason for doing code like:</p>
<pre class="brush: php;">
+Client.first(:conditions =&gt; [&quot;orders_count = ?&quot;, params[:orders]])+
</pre>
<p>instead of:</p>
<pre class="brush: php;">
+Client.first(:conditions =&gt; &quot;orders_count = #{params[:orders]}&quot;)+
</pre>
<p>is because of parameter safety. Putting the variable directly into the conditions string will pass the variable to the database as-is. This means that it will be an unescaped variable directly from a user who may have malicious intent. If you do this, you put your entire database at risk because once a user finds out he or she can exploit your database they can do just about anything to it. Never ever put your parameters directly inside the conditions string.</p>
<p>Awesome!  I didn&#8217;t know that.  These <a href="http://guides.rubyonrails.com/">Rails Guides</a> are SERIOUSLY awesome!  Thank you to the guys involved w/ these!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rollerdisco.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rollerdisco.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rollerdisco.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rollerdisco.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rollerdisco.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rollerdisco.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rollerdisco.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rollerdisco.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rollerdisco.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rollerdisco.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rollerdisco.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rollerdisco.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rollerdisco.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rollerdisco.wordpress.com/198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=198&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rollerdisco.wordpress.com/2008/12/08/rails-finders-array-conditions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2c4daef4f53ae2389dd6f55f61e9e74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rollerdisco</media:title>
		</media:content>
	</item>
		<item>
		<title>Tomcat</title>
		<link>http://rollerdisco.wordpress.com/2008/11/24/tomcat/</link>
		<comments>http://rollerdisco.wordpress.com/2008/11/24/tomcat/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 17:55:13 +0000</pubDate>
		<dc:creator>rollerdisco</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.defunct.ca/?p=192</guid>
		<description><![CDATA[We had a customer at work who was trying to set up a DataSource in META-INF/context.xml as outlined here. He was using RHEL 5 w/ stock RHEL 5 tomcat / java (1.4!) RPMs. Unfortunately, no matter what he tried he wasn&#8217;t able to get it to work. After searching and searching we realized it was [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=192&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We had a customer at work who was trying to set up a DataSource in META-INF/context.xml as outlined <a href="http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html">here</a>.  He was using RHEL 5 w/ stock RHEL 5 tomcat / java (1.4!) RPMs.  Unfortunately, no matter what he tried he wasn&#8217;t able to get it to work.  After searching and searching we realized it was due to a missing file (naming-factory-dbcp.jar) in the RHEL tomcat install.  Several others have also found this to be a problem:</p>
<p><a href="https://bugzilla.redhat.com/show_bug.cgi?id=217141">https://bugzilla.redhat.com/show_bug.cgi?id=217141</a><br />
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=217630">https://bugzilla.redhat.com/show_bug.cgi?id=217630 </a></p>
<p>We grabbed that file from the tomcat binary install tarball, dumped it into /var/lib/tomcat5/common/lib/, and that seemed to do the trick.  However, we also had to upgrade java to 1.5/1.6 for whatever reason, so keep an eye on that also.  <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rollerdisco.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rollerdisco.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rollerdisco.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rollerdisco.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rollerdisco.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rollerdisco.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rollerdisco.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rollerdisco.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rollerdisco.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rollerdisco.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rollerdisco.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rollerdisco.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rollerdisco.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rollerdisco.wordpress.com/192/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=192&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rollerdisco.wordpress.com/2008/11/24/tomcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2c4daef4f53ae2389dd6f55f61e9e74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rollerdisco</media:title>
		</media:content>
	</item>
		<item>
		<title>mongrel_rails</title>
		<link>http://rollerdisco.wordpress.com/2008/11/17/mongrel_rails/</link>
		<comments>http://rollerdisco.wordpress.com/2008/11/17/mongrel_rails/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 11:10:54 +0000</pubDate>
		<dc:creator>rollerdisco</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.defunct.ca/?p=187</guid>
		<description><![CDATA[Today I had a call from a customer running Apache 2.2 and several mongrel instances. It seems that after a reboot the server did not start the mongrel instances. They had a script to be run after boot containing: /usr/local/apache2/bin/apachectl start /usr/local/bin/mongrel_rails cluster::start The mongrel_rails cluster::start command failed due to missing configuration file, and a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=187&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I had a call from a customer running Apache 2.2 and several mongrel instances.  It seems that after a reboot the server did not start the mongrel instances.  They had a script to be run after boot containing:</p>
<pre class="brush: php;">
/usr/local/apache2/bin/apachectl start
/usr/local/bin/mongrel_rails cluster::start
</pre>
<p>The mongrel_rails cluster::start command failed due to missing configuration file, and a quick google search reveiled the command mongrel_cluster_ctl.  As I understand it, mongrel_rails is to start an individual mongrel instance like so:</p>
<pre class="brush: php;">
cd /path/to/application
/usr/local/bin/mongrel_rails cluster::start -C config/mongrel_cluster.yml
</pre>
<p>&#8230; while mongrel_cluster_ctl will start all the configurations symlinked in /etc/mongrel_cluster.  Running like so did the trick:</p>
<pre class="brush: php;">
/usr/local/bin/mongrel_cluster_ctl start
</pre>
<p>Wow, Passenger seems so much more straight-forward!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rollerdisco.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rollerdisco.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rollerdisco.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rollerdisco.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rollerdisco.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rollerdisco.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rollerdisco.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rollerdisco.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rollerdisco.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rollerdisco.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rollerdisco.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rollerdisco.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rollerdisco.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rollerdisco.wordpress.com/187/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=187&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rollerdisco.wordpress.com/2008/11/17/mongrel_rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2c4daef4f53ae2389dd6f55f61e9e74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rollerdisco</media:title>
		</media:content>
	</item>
		<item>
		<title>AdSense on WordPress blog</title>
		<link>http://rollerdisco.wordpress.com/2008/11/12/adsense-on-wordpress-blog/</link>
		<comments>http://rollerdisco.wordpress.com/2008/11/12/adsense-on-wordpress-blog/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 21:37:11 +0000</pubDate>
		<dc:creator>rollerdisco</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.defunct.ca/?p=177</guid>
		<description><![CDATA[I was looking to add some ads under the right-hand menu and found the following. I&#8217;ve since created a file called google.inc in my site&#8217;s document root and then added the following near the end of wp-content/themes/default/sidebar.php: &#60;/ul&#62; &#60;/li&#62; &#60;?php } ?&#62; &#60;?php include( ABSPATH . 'google.inc'); ?&#62; &#60;?php endif; ?&#62; &#60;/ul&#62; &#60;/div&#62; I&#8217;ll need [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=177&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was looking to add some ads under the right-hand menu and found the <a href="http://www.tamba2.org.uk/wordpress/adsense/">following</a>.  I&#8217;ve since created a file called google.inc in my site&#8217;s document root and then added the following near the end of wp-content/themes/default/sidebar.php:</p>
<pre class="brush: php;">
                                &lt;/ul&gt;
                                &lt;/li&gt;
                        &lt;?php } ?&gt;

                        &lt;?php include( ABSPATH . 'google.inc'); ?&gt;

                        &lt;?php endif; ?&gt;
                &lt;/ul&gt;
        &lt;/div&gt;
</pre>
<p>I&#8217;ll need to look into a plugin so that I don&#8217;t need to hack this each time I upgrade WordPress versions.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rollerdisco.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rollerdisco.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rollerdisco.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rollerdisco.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rollerdisco.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rollerdisco.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rollerdisco.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rollerdisco.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rollerdisco.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rollerdisco.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rollerdisco.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rollerdisco.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rollerdisco.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rollerdisco.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=177&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rollerdisco.wordpress.com/2008/11/12/adsense-on-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2c4daef4f53ae2389dd6f55f61e9e74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rollerdisco</media:title>
		</media:content>
	</item>
		<item>
		<title>Old(er) modules via CPAN</title>
		<link>http://rollerdisco.wordpress.com/2008/11/10/older-modules-via-cpan/</link>
		<comments>http://rollerdisco.wordpress.com/2008/11/10/older-modules-via-cpan/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 12:09:26 +0000</pubDate>
		<dc:creator>rollerdisco</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.defunct.ca/?p=172</guid>
		<description><![CDATA[Today I tried to install Data::FormValidator via CPAN but the &#8220;make test&#8221; for version 4.61 failed for whatever reasons (it seemed to be looking for perl 6, which this box is obviously not using). A quick google search reveiled that you can issue the following to install an older version: cpan&#62; install M/MA/MARKSTOS/Data-FormValidator-4.57.tar.gz (I found [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=172&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I tried to install Data::FormValidator via CPAN but the &#8220;make test&#8221; for version 4.61 failed for whatever reasons (it seemed to be looking for perl 6, which this box is obviously not using).  A quick google search reveiled that you can issue the following to install an older version:</p>
<pre class="brush: php;">
cpan&gt; install M/MA/MARKSTOS/Data-FormValidator-4.57.tar.gz
</pre>
<p>(I found the previous version by looking at a CPAN <a href="http://www.mirrorservice.org/sites/ftp.funet.fi/pub/languages/perl/CPAN/authors/id/M/MA/MARKSTOS/">mirror</a>, but there probably is a CPAN command to search for previous versions also.)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rollerdisco.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rollerdisco.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rollerdisco.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rollerdisco.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rollerdisco.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rollerdisco.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rollerdisco.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rollerdisco.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rollerdisco.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rollerdisco.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rollerdisco.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rollerdisco.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rollerdisco.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rollerdisco.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=172&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rollerdisco.wordpress.com/2008/11/10/older-modules-via-cpan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2c4daef4f53ae2389dd6f55f61e9e74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rollerdisco</media:title>
		</media:content>
	</item>
		<item>
		<title>Debugging Apache segmentation faults</title>
		<link>http://rollerdisco.wordpress.com/2008/10/13/debugging-apache-segmentation-faults/</link>
		<comments>http://rollerdisco.wordpress.com/2008/10/13/debugging-apache-segmentation-faults/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 16:00:11 +0000</pubDate>
		<dc:creator>rollerdisco</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.defunct.ca/?p=163</guid>
		<description><![CDATA[I haven&#8217;t used this extensively, but worth documenting for future reference: # /etc/init.d/httpd stop # gdb /usr/sbin/httpd GNU gdb Red Hat Linux (6.5-37.el5_2.2rh) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=163&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t used this extensively, but worth documenting for future reference:</p>
<pre class="brush: php;">
# /etc/init.d/httpd stop
# gdb /usr/sbin/httpd
GNU gdb Red Hat Linux (6.5-37.el5_2.2rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type &quot;show copying&quot; to see the conditions.
There is absolutely no warranty for GDB.  Type &quot;show warranty&quot; for details.
This GDB was configured as &quot;i386-redhat-linux-gnu&quot;...
(no debugging symbols found)
Using host libthread_db library &quot;/lib/libthread_db.so.1&quot;.

(gdb) run -X
</pre>
<p>At this point, go ahead and hit the site in an attempt to reproduce the segmentation fault.  Once you&#8217;ve got a segmentation fault (it should return you to the (gdb) shell), run:</p>
<pre class="brush: php;">
(gdb) backtrace
</pre>
<p>That should hopefully give you some indication as to where the segmentation fault is happening.</p>
<p>Update:  You can also &#8216;bind&#8217; to a running process by doing:</p>
<pre class="brush: php;">
# gdb -p &lt;pid&gt;
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rollerdisco.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rollerdisco.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rollerdisco.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rollerdisco.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rollerdisco.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rollerdisco.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rollerdisco.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rollerdisco.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rollerdisco.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rollerdisco.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rollerdisco.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rollerdisco.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rollerdisco.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rollerdisco.wordpress.com/163/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=163&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rollerdisco.wordpress.com/2008/10/13/debugging-apache-segmentation-faults/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2c4daef4f53ae2389dd6f55f61e9e74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rollerdisco</media:title>
		</media:content>
	</item>
		<item>
		<title>Running a syntax check on /etc/my.cnf</title>
		<link>http://rollerdisco.wordpress.com/2008/10/09/running-a-syntax-check-on-etcmycnf/</link>
		<comments>http://rollerdisco.wordpress.com/2008/10/09/running-a-syntax-check-on-etcmycnf/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 08:51:29 +0000</pubDate>
		<dc:creator>rollerdisco</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.defunct.ca/?p=158</guid>
		<description><![CDATA[Usually, I update variables on the fly using something like: mysql&#62; SET GLOBAL max_connections = 150; &#8230; and then modify /etc/my.cnf to make the change persistent. The problem in doing this is that you&#8217;re not verifying that your /etc/my.cnf is correct and can only hope that a restart doesn&#8217;t encounter any problems. Fortunately, Sai emailed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=158&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Usually, I update variables on the fly using something like:</p>
<pre class="brush: php;">
mysql&gt; SET GLOBAL max_connections = 150;
</pre>
<p>&#8230; and then modify /etc/my.cnf to make the change persistent.</p>
<p>The problem in doing this is that you&#8217;re not verifying that your /etc/my.cnf is correct and can only hope that a restart doesn&#8217;t encounter any problems.</p>
<p>Fortunately, Sai emailed us a great little tip to verify the syntax.  You can run the following which will report errors in /etc/my.cnf:</p>
<pre class="brush: php;">
# /usr/libexec/mysqld --help --verbose
081009  9:55:36 [ERROR] /usr/libexec/mysqld: unknown variable 'mmax_connections=150'

#
</pre>
<p>Perfect.  Just what the doctor ordered.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rollerdisco.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rollerdisco.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rollerdisco.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rollerdisco.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rollerdisco.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rollerdisco.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rollerdisco.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rollerdisco.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rollerdisco.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rollerdisco.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rollerdisco.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rollerdisco.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rollerdisco.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rollerdisco.wordpress.com/158/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rollerdisco.wordpress.com&amp;blog=6696803&amp;post=158&amp;subd=rollerdisco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rollerdisco.wordpress.com/2008/10/09/running-a-syntax-check-on-etcmycnf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2c4daef4f53ae2389dd6f55f61e9e74?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rollerdisco</media:title>
		</media:content>
	</item>
	</channel>
</rss>
