<?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/"
	>

<channel>
	<title>r-williams</title>
	<atom:link href="http://www.r-williams.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.r-williams.com</link>
	<description></description>
	<lastBuildDate>Fri, 01 Aug 2008 18:17:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>403 error using ProxyPass in Apache2 on Debian</title>
		<link>http://www.r-williams.com/2008/08/403-proxypass-apache2-on-debian/</link>
		<comments>http://www.r-williams.com/2008/08/403-proxypass-apache2-on-debian/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 18:17:18 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.r-williams.com/?p=4</guid>
		<description><![CDATA[If you get a 403 error when using proxypass on debian make sure you enable (a2enmod) the &#8216;proxy_http&#8217; module as well as the &#8216;proxy&#8217; module.
To send all request to a single mongrel instance use the following syntax:
&#60;VirtualHost *&#62;
        DocumentRoot /var/www/yourwebsite
        ProxyPass [...]]]></description>
			<content:encoded><![CDATA[<p>If you get a 403 error when using proxypass on debian make sure you enable (a2enmod) the &#8216;proxy_http&#8217; module as well as the &#8216;proxy&#8217; module.</p>
<p>To send all request to a single mongrel instance use the following syntax:</p>
<pre class="apache:nocontrols:nogutter">&lt;VirtualHost *&gt;
        DocumentRoot /var/www/yourwebsite
        ProxyPass / http://localhost:4000/
        ProxyPassReverse / http://localhost:4000/
&lt;VirtualHost&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.r-williams.com/2008/08/403-proxypass-apache2-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the radio in a Honda Civic</title>
		<link>http://www.r-williams.com/2008/07/changing-radio-in-honda-civic/</link>
		<comments>http://www.r-williams.com/2008/07/changing-radio-in-honda-civic/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 21:36:21 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Car]]></category>

		<guid isPermaLink="false">http://www.r-williams.com/?p=7</guid>
		<description><![CDATA[If you&#8217;re bored i would definitely recommend changing your car radio! The sound improvement is amazing and being able to connect an iPod instead of fumbling around for cds while trying to keep the car in a straight line is definitely worth it.

Make sure everything is well grounded and that the signal cables are far [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">If you&#8217;re bored i <strong>would </strong>definitely recommend changing your car radio! The sound improvement is amazing and being able to connect an iPod instead of fumbling around for cds while trying to keep the car in a straight line is definitely worth it.</p>
<p style="text-align: center;"><a href="http://www.r-williams.com/wp-content/uploads/2008/07/before.jpg"><img class="aligncenter size-medium wp-image-6" title="Fitting a new radio" src="http://www.r-williams.com/wp-content/uploads/2008/07/before.jpg" alt="My Car in a right state" width="300" height="200" /></a></p>
<p style="text-align: left;">Make sure everything is well grounded and that the signal cables are far away from the power cables or else you get a <a href="http://www.termpro.com/articles/noise.html" target="_blank">horrible whine coming from the alternator</a>, especially if you put a sub in the boot.</p>
<p style="text-align: center;"><a href="http://www.r-williams.com/wp-content/uploads/2008/07/after.jpg"><img class="aligncenter size-medium wp-image-8" title="After the radio was fitted" src="http://www.r-williams.com/wp-content/uploads/2008/07/after.jpg" alt="" width="326" height="95" /></a></p>
<p style="text-align: left;">If you&#8217;ve got a Honda Civic 7th Gen 2000-2004 then this <a href="http://www.fitaudio.com/?View=entry&amp;EntryID=19" target="_blank">guide</a> should help, It definitely helped me. Just watch out for the yellow cables, they are for the airbags and are best left well alone <img src='http://www.r-williams.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (Oh.. and disconnect the negative battery lead, to be on the safe side)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.r-williams.com/2008/07/changing-radio-in-honda-civic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unobtrusively add Google Analytics code to a page with jQuery</title>
		<link>http://www.r-williams.com/2008/07/unobtrusively-add-analytics-with-jquery/</link>
		<comments>http://www.r-williams.com/2008/07/unobtrusively-add-analytics-with-jquery/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 09:55:59 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.r-williams.com/?p=5</guid>
		<description><![CDATA[The standard analytics code is only 400 bytes or so.. Spread over a few thousand pages that 400 bytes soon eats into your bandwidth costs.
Most of the sites i currently work on use jQuery to add additional functionality without being to obtrusive to people that have JavaScript turned off. 
JavaScript has to be turned on [...]]]></description>
			<content:encoded><![CDATA[<p>The standard analytics code is only 400 bytes or so.. Spread over a few thousand pages that 400 bytes soon eats into your bandwidth costs.</p>
<p>Most of the sites i currently work on use <a href="http://jquery.com">jQuery</a> to add additional functionality without being to obtrusive to people that have JavaScript turned off. </p>
<p>JavaScript has to be turned on for Google&#8217;s code to work! So we can safely inject the code when the page is fully loaded and clients that have JavaScript turned off will be none the wiser.</p>
<p>Place the following code into a site wide file that loads after <a href="http://jquery.com">jQuery</a> and change the tracker code (gaTrackCode) to the one you received from analytics.</p>
<pre name="code" class="javascript:nocontrols:nogutter">
// google analytics tracking code
jQuery(document).ready(function($) {
  var gaTrackCode = "UA-123456789";
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");

  jQuery.getScript(gaJsHost + "google-analytics.com/ga.js", function(){
    var pageTracker = _gat._getTracker(gaTrackCode);
    pageTracker._initData();
    pageTracker._trackPageview();
  });
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.r-williams.com/2008/07/unobtrusively-add-analytics-with-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple Blocks in Ruby Classes</title>
		<link>http://www.r-williams.com/2008/04/simple-blocks-in-ruby-classes/</link>
		<comments>http://www.r-williams.com/2008/04/simple-blocks-in-ruby-classes/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 23:35:44 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.r-williams.com/?p=3</guid>
		<description><![CDATA[Simplify your code and stay DRY by wrapping commonly used commands in a block.
If you ever find your self writing ugly code like this:

db = Database.new
db.open
orders = db.fetch_orders
db.close

It may be worth looking at ruby&#8217;s block syntax so you can instead write:

Database.new do &#124;db&#124;
  orders = db.fetch_orders
end

Just check if a block is given inside the [...]]]></description>
			<content:encoded><![CDATA[<p>Simplify your code and stay <acronym title="Don't Repeat Yourself">DRY</acronym> by wrapping commonly used commands in a block.</p>
<p>If you ever find your self writing ugly code like this:</p>
<pre name="code" class="ruby:nocontrols:nogutter">
db = Database.new
db.open
orders = db.fetch_orders
db.close
</pre>
<p>It may be worth looking at ruby&#8217;s block syntax so you can instead write:</p>
<pre name="code" class="ruby:nocontrols:nogutter">
Database.new do |db|
  orders = db.fetch_orders
end
</pre>
<p>Just check if a block is given inside the initialize method and wrap it with the open and close method calls.</p>
<pre name="code" class="ruby:nogutter">
class Database

  def initialize
    if block_given?
      open
        yield self
      close
    end
  end

  def open
  end

  def close
  end

  def fetch_orders
  end
end
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.r-williams.com/2008/04/simple-blocks-in-ruby-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
