<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>The Holmes Blog</title>
	<link>http://holmesblog.com</link>
	<description>Our 221B Baker Street.</description>
	<pubDate>Sun, 23 Mar 2008 17:10:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>Installing Git from source in Edgy Eft</title>
		<link>http://holmesblog.com/2008/03/23/installing-git-from-source-in-edgy-eft/</link>
		<comments>http://holmesblog.com/2008/03/23/installing-git-from-source-in-edgy-eft/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 17:10:35 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[edgy eft]]></category>

		<category><![CDATA[git]]></category>

		<category><![CDATA[install]]></category>

		<category><![CDATA[install from source]]></category>

		<category><![CDATA[source]]></category>

		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://holmesblog.com/2008/03/23/installing-git-from-source-in-edgy-eft/</guid>
		<description><![CDATA[download the necessary packages:
sudo apt-get install comerr-dev \
libcurl4-openssl-dev \
libidn11-dev \
libkadm55 \
libkrb5-dev \
texi2html \
texinfo \
docbook2x \
libosp5 \
libxml-namespacesupport-perl \
libxml-sax-expat-perl \
libxml-sax-perl \
opensp
download the latest stable release from here:
http://kernel.org/pub/software/scm/git/
i preferred the global install, and went for
make prefix=/usr all doc info
and then
sudo make prefix=/usr install install-doc
(the INSTALL file suggests adding &#8220;install-info&#8221; to the end of that (to install the docs [...]]]></description>
			<content:encoded><![CDATA[<p><strong>download the necessary packages:</strong></p>
<p>sudo apt-get install comerr-dev \<br />
libcurl4-openssl-dev \<br />
libidn11-dev \<br />
libkadm55 \<br />
libkrb5-dev \<br />
texi2html \<br />
texinfo \<br />
docbook2x \<br />
libosp5 \<br />
libxml-namespacesupport-perl \<br />
libxml-sax-expat-perl \<br />
libxml-sax-perl \<br />
opensp</p>
<p><strong>download the latest stable release from here:</strong></p>
<p>http://kernel.org/pub/software/scm/git/</p>
<p><strong>i preferred the global install, and went for</strong></p>
<p>make prefix=/usr all doc info</p>
<p><strong>and then</strong></p>
<p>sudo make prefix=/usr install install-doc</p>
<p><em>(the INSTALL file suggests adding &#8220;install-info&#8221; to the end of that (to install the docs in INFO format), but I kept getting an error during the make task- no dice.)</em></p>
<p><strong>type</strong></p>
<p>git  &#8211;version</p>
<p><strong>and make sure you&#8217;ve gotten a nice response. If so, done! If not, post a comment here and/or ask around on the git forums.</strong></p>
<p><em>if you&#8217;d like to be adventurous: rather than downloading the latest release candidate, consider going all the way and building from the latest version of the git repository (after getting another version of git to work, natch).</em></p>
]]></content:encoded>
			<wfw:commentRss>http://holmesblog.com/2008/03/23/installing-git-from-source-in-edgy-eft/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Extending Ruby&#8217;s Time class with &#8216;before?&#8217; and &#8216;after?&#8217;</title>
		<link>http://holmesblog.com/2008/01/21/extending-rubys-time-class-with-before-and-after/</link>
		<comments>http://holmesblog.com/2008/01/21/extending-rubys-time-class-with-before-and-after/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 21:43:50 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
		
		<category><![CDATA[ruby]]></category>

		<category><![CDATA[rails]]></category>

		<category><![CDATA[time class]]></category>

		<guid isPermaLink="false">http://holmesblog.com/2008/01/21/extending-rubys-time-class-with-before-and-after/</guid>
		<description><![CDATA[The mixin below allows comparison between two Time objects using the more intuitive and natural-sounding before? and after? methods.
Some examples (using Rails&#8217; ActiveSupport Time extensions or (preferred) the &#8216;units&#8217; gem):

2.minutes.ago.after? Time.now # =&#62;; false


Time.now.before? 2.hours.from_now # =&#62; true


module BeforeAndAfter

&#160; LEFT_SIDE_LARGER &#160;= 1
&#160; RIGHT_SIDE_LARGER&#160;= -1
&#160; EQUAL&#160;&#160; &#160; &#160; &#160; &#160; &#160; = 0
&#160; ACCEPTABLE_SWITCH_VALUES = &#91; [...]]]></description>
			<content:encoded><![CDATA[<p>The mixin below allows comparison between two Time objects using the more intuitive and natural-sounding before? and after? methods.</p>
<p>Some examples (using Rails&#8217; ActiveSupport Time extensions or (preferred) the &#8216;units&#8217; gem):</p>

<div class="wp_syntax"><div class="code"><div class="ruby" style="font-family: monospace;"><span style="color:#006666;">2</span>.<span style="color:#9900CC;">minutes</span>.<span style="color:#9900CC;">ago</span>.<span style="color:#9900CC;">after</span>? <span style="color:#CC00FF; font-weight:bold;">Time</span>.<span style="color:#9900CC;">now</span> <span style="color:#008000; font-style:italic;"># =&gt;; false</span></div></div></div>


<div class="wp_syntax"><div class="code"><div class="ruby" style="font-family: monospace;"><span style="color:#CC00FF; font-weight:bold;">Time</span>.<span style="color:#9900CC;">now</span>.<span style="color:#9900CC;">before</span>? <span style="color:#006666;">2</span>.<span style="color:#9900CC;">hours</span>.<span style="color:#9900CC;">from_now</span> <span style="color:#008000; font-style:italic;"># =&gt; true</span></div></div></div>


<div class="wp_syntax"><div class="code"><div class="ruby" style="font-family: monospace;"><span style="color:#9966CC; font-weight:bold;">module</span> BeforeAndAfter<br />
<br />
&nbsp; LEFT_SIDE_LARGER &nbsp;= <span style="color:#006666;">1</span><br />
&nbsp; RIGHT_SIDE_LARGER&nbsp;= <span style="color:#006666;">-1</span><br />
&nbsp; EQUAL&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span style="color:#006666;">0</span><br />
&nbsp; ACCEPTABLE_SWITCH_VALUES = <span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#ff3333; font-weight:bold;">:before</span> , <span style="color:#ff3333; font-weight:bold;">:after</span> <span style="color:#006600; font-weight:bold;">&#93;</span><br />
<br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">def</span> before?<span style="color:#006600; font-weight:bold;">&#40;</span>input_time<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#0000FF; font-weight:bold;">return</span> comparison<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:before</span>, input_time<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
<br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">def</span> after?<span style="color:#006600; font-weight:bold;">&#40;</span>input_time<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#0000FF; font-weight:bold;">return</span> comparison<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:after</span>, input_time<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
<br />
private<br />
<br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">def</span> comparison<span style="color:#006600; font-weight:bold;">&#40;</span>switch, input_time<span style="color:#006600; font-weight:bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">raise</span> <span style="color:#CC00FF; font-weight:bold;">ArgumentError</span>, <span style="color:#996600;">&quot;bad comparison switch&quot;</span> <span style="color:#9966CC; font-weight:bold;">unless</span> ACCEPTABLE_SWITCH_VALUES.<span style="color:#9966CC; font-weight:bold;">include</span>? switch<br />
<br />
&nbsp; &nbsp; comparison_result = <span style="color:#0000FF; font-weight:bold;">self</span> &lt;=&gt; input_time<br />
<br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">case</span> comparison_result<br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">when</span> LEFT_SIDE_LARGER<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">case</span> switch<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">when</span> <span style="color:#ff3333; font-weight:bold;">:before</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF; font-weight:bold;">return</span> <span style="color:#0000FF; font-weight:bold;">false</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">when</span> <span style="color:#ff3333; font-weight:bold;">:after</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF; font-weight:bold;">return</span> <span style="color:#0000FF; font-weight:bold;">true</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">when</span> RIGHT_SIDE_LARGER<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">case</span> switch<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">when</span> <span style="color:#ff3333; font-weight:bold;">:before</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF; font-weight:bold;">return</span> <span style="color:#0000FF; font-weight:bold;">true</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">when</span> <span style="color:#ff3333; font-weight:bold;">:after</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF; font-weight:bold;">return</span> <span style="color:#0000FF; font-weight:bold;">false</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">when</span> EQUAL<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF; font-weight:bold;">return</span> <span style="color:#0000FF; font-weight:bold;">false</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
<span style="color:#9966CC; font-weight:bold;">end</span><br />
<br />
<span style="color:#CC00FF; font-weight:bold;">Time</span>.<span style="color:#9900CC;">send</span> <span style="color:#ff3333; font-weight:bold;">:include</span> , BeforeAndAfter</div></div></div>

]]></content:encoded>
			<wfw:commentRss>http://holmesblog.com/2008/01/21/extending-rubys-time-class-with-before-and-after/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://holmesblog.com/2007/12/04/hello-world/</link>
		<comments>http://holmesblog.com/2007/12/04/hello-world/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 14:39:53 +0000</pubDate>
		<dc:creator>Watson</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://holmesblog.com/?p=1</guid>
		<description><![CDATA[Becoming a web developer is like finally learning to ride a bike then realizing that real bikes only have two wheels. So, you take off the training wheels and try again, and again, and again. You can finally ride, but now all your friends are buying dirt bikes.
]]></description>
			<content:encoded><![CDATA[<p>Becoming a web developer is like finally learning to ride a bike then realizing that real bikes only have two wheels. So, you take off the training wheels and try again, and again, and again. You can finally ride, but now all your friends are buying dirt bikes. <a href="http://holmesblog.com/2007/12/04/hello-world/#more-1" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://holmesblog.com/2007/12/04/hello-world/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
