<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en" xml:base="http://www.mattberther.com/wp-atom.php">
	<title type="text">mattberther.com</title>
	<subtitle type="text">Agile Manager and Occasional Code Monkey</subtitle>

	<updated>2009-09-24T23:51:00Z</updated>
	<generator uri="http://wordpress.org/" version="2.8.5">WordPress</generator>

	<link rel="alternate" type="text/html" href="http://www.mattberther.com" />
	<id>http://www.mattberther.com/feed/atom/</id>
	

			<link rel="self" href="http://feeds.feedburner.com/mattberther" type="application/atom+xml" /><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fmattberther" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fmattberther" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fmattberther" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.bloglines.com/sub/http://feeds.feedburner.com/mattberther" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fmattberther" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fmattberther" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fmattberther" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry>
		<author>
			<name>Matt Berther</name>
						<uri>http://www.mattberther.com</uri>
					</author>
		<title type="html"><![CDATA[Problems running cucumber with nokogiri]]></title>
		<link rel="alternate" type="text/html" href="http://www.mattberther.com/2009/09/24/problems-running-cucumber-with-nokogiri/" />
		<id>http://www.mattberther.com/?p=1078</id>
		<updated>2009-09-24T23:51:00Z</updated>
		<published>2009-09-24T23:47:42Z</published>
		<category scheme="http://www.mattberther.com" term="Uncategorized" />		<summary type="html"><![CDATA[I installed cucumber last night and began trying to get some of the scenarios to work. One thing that kept plaguing me was the error message that kept coming up about using an old version of libxml2:
HI. You&#8217;re using libxml2 version 2.6.16 which is over 4 years old and has plenty of bugs. We suggest [...]]]></summary>
		<content type="html" xml:base="http://www.mattberther.com/2009/09/24/problems-running-cucumber-with-nokogiri/">&lt;p&gt;I installed cucumber last night and began trying to get some of the scenarios to work. One thing that kept plaguing me was the error message that kept coming up about using an old version of libxml2:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;HI. You&amp;#8217;re using libxml2 version 2.6.16 which is over 4 years old and has plenty of bugs. We suggest that for maximum HTML/XML parsing pleasure, you upgrade your version of libxml2 and re-install nokogiri. If you like using libxml2 version 2.6.16, but don&amp;#8217;t like this warning, please define the constant I_KNOW_I_AM_USING_AN_OLD_AND_BUGGY_VERSION_OF_LIBXML2 before requiring nokogiri.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;It turns out that this was relatively simply to correct on OSX Leopard by executing the following commands:&lt;/p&gt;
&lt;pre class="console"&gt;sudo gem uninstall nokogiri
curl -O ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz
tar -zxvf libxml2-2.7.3.tar.gz
cd libxml2-2.7.3
./configure
make
sudo make install
sudo gem install nokogiri -- --with-xml2-include=/usr/local/include/libxml2 --with-xml2-lib=/usr/local/lib
&lt;/pre&gt;
&lt;p&gt;Although I did not see any problems from using the old version, I did get frustrated by receiving the error all the time. Problem solved.&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=jqT7f2lRgAc:QsasFaznSzI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=jqT7f2lRgAc:QsasFaznSzI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?i=jqT7f2lRgAc:QsasFaznSzI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=jqT7f2lRgAc:QsasFaznSzI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=jqT7f2lRgAc:QsasFaznSzI:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<link rel="replies" type="text/html" href="http://www.mattberther.com/2009/09/24/problems-running-cucumber-with-nokogiri/#comments" thr:count="2" />
		<link rel="replies" type="application/atom+xml" href="http://www.mattberther.com/2009/09/24/problems-running-cucumber-with-nokogiri/feed/atom/" thr:count="2" />
		<thr:total>2</thr:total>
	</entry>
		<entry>
		<author>
			<name>Matt Berther</name>
						<uri>http://www.mattberther.com</uri>
					</author>
		<title type="html"><![CDATA[IIS7 and static files]]></title>
		<link rel="alternate" type="text/html" href="http://www.mattberther.com/2009/07/16/iis7-and-static-files/" />
		<id>http://www.mattberther.com/?p=1076</id>
		<updated>2009-07-16T23:19:12Z</updated>
		<published>2009-07-16T23:19:11Z</published>
		<category scheme="http://www.mattberther.com" term="Uncategorized" />		<summary type="html"><![CDATA[So, the other day I was trying to debug a problem with one of our web applications. I had gone through the steps of making the appropriate changes to my IIS configuration for this application, so that it utilized the Classic .NET App Pool and everything seemed to be running properly. That is, until I [...]]]></summary>
		<content type="html" xml:base="http://www.mattberther.com/2009/07/16/iis7-and-static-files/">&lt;p&gt;So, the other day I was trying to debug a problem with one of our web applications. I had gone through the steps of making the appropriate changes to my IIS configuration for this application, so that it utilized the Classic .NET App Pool and everything seemed to be running properly. That is, until I noticed that some javascript files and some images were not rendering properly.&lt;/p&gt;
&lt;p&gt;As I utilized Firebug to try and understand what was going on, I saw that the javascript and image files were being sent with a content-length header of 0 bytes. Curious, what was causing this for some files but not all? I finally realized that the difference was that the files not being sent were static files.&lt;/p&gt;
&lt;p&gt;Thoroughly befuddled now, I began to scour the web.config file to see if something had gotten committed that caused this to happen. This was not the case. Ultimately what I found was that Microsoft, in their infinite wisdom, decided that, when picking the default settings for installing IIS7 on Windows 7 RC, people probably did not have static content that they would like to publish on the web, and therefore left the static file handler turned off. Seriously! WTF?! &lt;/p&gt;
&lt;p&gt;Anyways, to turn this on, go to Start | Control Panel | Programs and Features | Turn Windows Features On or Off | Internet Information Services | World Wide Web Services | Common Http Features and check the Static Content box.&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=Rre-4cHVXg0:yOa0e_PliLY:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=Rre-4cHVXg0:yOa0e_PliLY:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?i=Rre-4cHVXg0:yOa0e_PliLY:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=Rre-4cHVXg0:yOa0e_PliLY:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=Rre-4cHVXg0:yOa0e_PliLY:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<link rel="replies" type="text/html" href="http://www.mattberther.com/2009/07/16/iis7-and-static-files/#comments" thr:count="2" />
		<link rel="replies" type="application/atom+xml" href="http://www.mattberther.com/2009/07/16/iis7-and-static-files/feed/atom/" thr:count="2" />
		<thr:total>2</thr:total>
	</entry>
		<entry>
		<author>
			<name>Matt Berther</name>
						<uri>http://www.mattberther.com</uri>
					</author>
		<title type="html"><![CDATA[Chuck Norris: The Programmer]]></title>
		<link rel="alternate" type="text/html" href="http://www.mattberther.com/2009/06/15/chuck-norris-the-programmer/" />
		<id>http://www.mattberther.com/?p=1073</id>
		<updated>2009-06-15T21:10:03Z</updated>
		<published>2009-06-15T21:10:03Z</published>
		<category scheme="http://www.mattberther.com" term="Uncategorized" />		<summary type="html"><![CDATA[Saw this from codesqueeze earlier today&#8230; Hilarious stuff. :)

When Chuck Norris throws exceptions, it’s across the room.
All arrays Chuck Norris declares are of infinite size, because Chuck Norris knows no bounds.
Chuck Norris doesn’t have disk latency because the hard drive knows to hurry the hell up.
Chuck Norris writes code that optimizes itself.
Chuck Norris can’t test [...]]]></summary>
		<content type="html" xml:base="http://www.mattberther.com/2009/06/15/chuck-norris-the-programmer/">&lt;p&gt;Saw this from &lt;a href="http://www.codesqueeze.com/the-ultimate-top-25-chuck-norris-the-programmer-jokes/" target="_blank"&gt;codesqueeze&lt;/a&gt; earlier today&amp;#8230; Hilarious stuff. :)&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;When Chuck Norris throws exceptions, it’s across the room.&lt;/li&gt;
&lt;li&gt;All arrays Chuck Norris declares are of infinite size, because Chuck Norris knows no bounds.&lt;/li&gt;
&lt;li&gt;Chuck Norris doesn’t have disk latency because the hard drive knows to hurry the hell up.&lt;/li&gt;
&lt;li&gt;Chuck Norris writes code that optimizes itself.&lt;/li&gt;
&lt;li&gt;Chuck Norris can’t test for equality because he has no equal.&lt;/li&gt;
&lt;li&gt;Chuck Norris doesn’t need garbage collection because he doesn’t call .Dispose(), he calls .DropKick().&lt;/li&gt;
&lt;li&gt;Chuck Norris’s first program was kill -9.&lt;/li&gt;
&lt;li&gt;Chuck Norris burst the dot com bubble.&lt;/li&gt;
&lt;li&gt;All browsers support the hex definitions #chuck and #norris for the colors black and blue.&lt;/li&gt;
&lt;li&gt;MySpace actually isn’t your space, it’s Chuck’s (he just lets you use it).&lt;/li&gt;
&lt;li&gt;Chuck Norris can write infinite recursion functions…and have them return.&lt;/li&gt;
&lt;li&gt;Chuck Norris can solve the Towers of Hanoi in one move.&lt;/li&gt;
&lt;li&gt;The only pattern Chuck Norris knows is God Object.&lt;/li&gt;
&lt;li&gt;Chuck Norris finished World of Warcraft.&lt;/li&gt;
&lt;li&gt;Project managers never ask Chuck Norris for estimations…ever.&lt;/li&gt;
&lt;li&gt;Chuck Norris doesn’t use web standards as the web will conform to him.&lt;/li&gt;
&lt;li&gt;“It works on my machine” always holds true for Chuck Norris.&lt;/li&gt;
&lt;li&gt;Whiteboards are white because Chuck Norris scared them that way.&lt;/li&gt;
&lt;li&gt;Chuck Norris doesn’t do Burn Down charts, he does Smack Down charts.&lt;/li&gt;
&lt;li&gt;Chuck Norris can delete the Recycling Bin.&lt;/li&gt;
&lt;li&gt;Chuck Norris’s beard can type 140 wpm.&lt;/li&gt;
&lt;li&gt;Chuck Norris can unit test entire applications with a single assert.&lt;/li&gt;
&lt;li&gt;Chuck Norris doesn’t bug hunt as that signifies a probability of failure, he goes bug killing.&lt;/li&gt;
&lt;li&gt;Chuck Norris’s keyboard doesn’t have a Ctrl key because nothing controls Chuck Norris.&lt;/li&gt;
&lt;li&gt;When Chuck Norris is web surfing websites get the message “Warning: Internet Explorer has deemed this user to be malicious or dangerous. Proceed?”&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=mwtKQmHgr7w:gnl1C-Q2Vx8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=mwtKQmHgr7w:gnl1C-Q2Vx8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?i=mwtKQmHgr7w:gnl1C-Q2Vx8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=mwtKQmHgr7w:gnl1C-Q2Vx8:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=mwtKQmHgr7w:gnl1C-Q2Vx8:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<link rel="replies" type="text/html" href="http://www.mattberther.com/2009/06/15/chuck-norris-the-programmer/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://www.mattberther.com/2009/06/15/chuck-norris-the-programmer/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	</entry>
		<entry>
		<author>
			<name>Matt Berther</name>
						<uri>http://www.mattberther.com</uri>
					</author>
		<title type="html"><![CDATA[Properly utilizing XslCompiledTransform]]></title>
		<link rel="alternate" type="text/html" href="http://www.mattberther.com/2009/02/27/properly-utilizing-xslcompiledtransform/" />
		<id>http://www.mattberther.com/?p=1071</id>
		<updated>2009-02-28T02:30:02Z</updated>
		<published>2009-02-28T02:30:01Z</published>
		<category scheme="http://www.mattberther.com" term="Uncategorized" />		<summary type="html"><![CDATA[Not long ago, we noticed some degradation in performance after we upgraded to .NET 2.0 and migrated to the XslCompiledTransform class from the now obsolete XslTransform class. Our implementation was fairly straightforward, although we hid it behind an interface for easy mocking/testing.
The code looked something like the below:
public interface TransformLoader
&#123;
    XslCompiledTransform Load&#40;string [...]]]></summary>
		<content type="html" xml:base="http://www.mattberther.com/2009/02/27/properly-utilizing-xslcompiledtransform/">&lt;p&gt;Not long ago, we noticed some degradation in performance after we upgraded to .NET 2.0 and migrated to the XslCompiledTransform class from the now obsolete XslTransform class. Our implementation was fairly straightforward, although we hid it behind an interface for easy mocking/testing.&lt;/p&gt;
&lt;p&gt;The code looked something like the below:&lt;/p&gt;
&lt;pre class="dean_ch"&gt;&lt;span style="color: #0600FF;"&gt;public&lt;/span&gt; &lt;span style="color: #FF0000;"&gt;interface&lt;/span&gt; TransformLoader
&lt;span style="color: #000000;"&gt;&amp;#123;&lt;/span&gt;
    XslCompiledTransform Load&lt;span style="color: #000000;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;string&lt;/span&gt; name&lt;span style="color: #000000;"&gt;&amp;#41;&lt;/span&gt;;
&lt;span style="color: #000000;"&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span style="color: #FF0000;"&gt;class&lt;/span&gt; XslTransformLoader : TransformLoader
&lt;span style="color: #000000;"&gt;&amp;#123;&lt;/span&gt;
    &lt;span style="color: #0600FF;"&gt;public&lt;/span&gt; XslCompiledTransform Load&lt;span style="color: #000000;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;string&lt;/span&gt; name&lt;span style="color: #000000;"&gt;&amp;#41;&lt;/span&gt;
    &lt;span style="color: #000000;"&gt;&amp;#123;&lt;/span&gt;
        XslCompiledTransform transform = &lt;a href="http://www.google.com/search?q=new+msdn.microsoft.com"&gt;&lt;span style="color: #008000;"&gt;new&lt;/span&gt;&lt;/a&gt; XslCompiledTransform&lt;span style="color: #000000;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;#41;&lt;/span&gt;;
        transform.&lt;span style="color: #0000FF;"&gt;Load&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;#40;&lt;/span&gt;name&lt;span style="color: #000000;"&gt;&amp;#41;&lt;/span&gt;;
        &lt;span style="color: #0600FF;"&gt;return&lt;/span&gt; transform;
    &lt;span style="color: #000000;"&gt;&amp;#125;&lt;/span&gt;
&lt;span style="color: #000000;"&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;This is a pretty standard implementation, although after JetBrains .Trace pointed out that a majority of the time was being spent in the Load method, we started doing some research. As it turns out, we mistakenly understood the XslCompiledTransform to be smart enough to determine whether or not the transform had already been compiled. If it was, we thought, it would use the compiled version. As it turns out, this is not the case. To effectively utilize this class, it is important to save off the instance of the class for subsequent uses.&lt;/p&gt;
&lt;p&gt;To do this, we created a new implementation, the CachedXslTransformLoader, which looks like this:&lt;/p&gt;
&lt;pre class="dean_ch"&gt;&lt;span style="color: #FF0000;"&gt;class&lt;/span&gt; CachedXslTransformLoader : TransformLoader
&lt;span style="color: #000000;"&gt;&amp;#123;&lt;/span&gt;
    &lt;span style="color: #0600FF;"&gt;private&lt;/span&gt; Dictionary&amp;lt;string, XslCompiledTransform&amp;gt; transforms = &lt;a href="http://www.google.com/search?q=new+msdn.microsoft.com"&gt;&lt;span style="color: #008000;"&gt;new&lt;/span&gt;&lt;/a&gt; Dictionary&amp;lt;string, XslCompiledTransform&amp;gt;&lt;span style="color: #000000;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
    &lt;span style="color: #0600FF;"&gt;public&lt;/span&gt; XslCompiledTransform Load&lt;span style="color: #000000;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;string&lt;/span&gt; name&lt;span style="color: #000000;"&gt;&amp;#41;&lt;/span&gt;
    &lt;span style="color: #000000;"&gt;&amp;#123;&lt;/span&gt;
        XslCompiledTransform transform = &lt;span style="color: #0600FF;"&gt;null&lt;/span&gt;;
        &lt;span style="color: #0600FF;"&gt;if&lt;/span&gt; &lt;span style="color: #000000;"&gt;&amp;#40;&lt;/span&gt;!transforms.&lt;span style="color: #0000FF;"&gt;TryGetValue&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;#40;&lt;/span&gt;name, &lt;span style="color: #0600FF;"&gt;out&lt;/span&gt; transform&lt;span style="color: #000000;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;#41;&lt;/span&gt;
        &lt;span style="color: #000000;"&gt;&amp;#123;&lt;/span&gt;
            transform = &lt;a href="http://www.google.com/search?q=new+msdn.microsoft.com"&gt;&lt;span style="color: #008000;"&gt;new&lt;/span&gt;&lt;/a&gt; XslCompiledTransform&lt;span style="color: #000000;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;#41;&lt;/span&gt;;
            transform.&lt;span style="color: #0000FF;"&gt;Load&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;#40;&lt;/span&gt;name&lt;span style="color: #000000;"&gt;&amp;#41;&lt;/span&gt;;
            transforms&lt;span style="color: #000000;"&gt;&amp;#91;&lt;/span&gt;name&lt;span style="color: #000000;"&gt;&amp;#93;&lt;/span&gt; = transform;
        &lt;span style="color: #000000;"&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span style="color: #0600FF;"&gt;return&lt;/span&gt; transform;
    &lt;span style="color: #000000;"&gt;&amp;#125;&lt;/span&gt;
&lt;span style="color: #000000;"&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;When running the older XslTransformLoader through a loop of 100 transformations with our XSLT and XML files, we found that it was taking approximately 48 seconds to transform the entire loop. However, when utilizing the new CachedXslTransformLoader, the exact same loop only took 1.3 seconds to execute.&lt;/p&gt;
&lt;p&gt;This is where the performance improvements from the XslCompiledTransform really come to fruition, so make sure that you are saving off the instance of the class. As we saw, the class is not smart enough to determine whether or not the XSL has already been compiled.&lt;/p&gt;
&lt;p&gt;By the way, the performance problem we were experiencing went away with this minor change. On another note, it was nice to see this adhere to the open/closed principle. We were able to correct issues in the system by adding new code, not by touching existing/tested code.&lt;/p&gt;
&lt;p&gt;Bottom line: when using XslCompiledTransform, make sure to save off the instance and reuse it for maximum performance benefit.&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=KFQw9o23fE4:g09qxg3pJg8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=KFQw9o23fE4:g09qxg3pJg8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?i=KFQw9o23fE4:g09qxg3pJg8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=KFQw9o23fE4:g09qxg3pJg8:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=KFQw9o23fE4:g09qxg3pJg8:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<link rel="replies" type="text/html" href="http://www.mattberther.com/2009/02/27/properly-utilizing-xslcompiledtransform/#comments" thr:count="2" />
		<link rel="replies" type="application/atom+xml" href="http://www.mattberther.com/2009/02/27/properly-utilizing-xslcompiledtransform/feed/atom/" thr:count="2" />
		<thr:total>2</thr:total>
	</entry>
		<entry>
		<author>
			<name>Matt Berther</name>
						<uri>http://www.mattberther.com</uri>
					</author>
		<title type="html"><![CDATA[Sometimes the problem is in your tests]]></title>
		<link rel="alternate" type="text/html" href="http://www.mattberther.com/2009/02/13/sometimes-the-problem-is-in-your-tests/" />
		<id>http://www.mattberther.com/?p=1069</id>
		<updated>2009-02-13T21:29:38Z</updated>
		<published>2009-02-13T21:29:37Z</published>
		<category scheme="http://www.mattberther.com" term="Uncategorized" />		<summary type="html"><![CDATA[I was TDDing a new website that I&#8217;ve been working on last night and got caught in the interesting predicament where the tests failed, but the production code worked. For the life of me, I could not figure out why my test was failing. It turns out, I missed a tiny little piece of documentation [...]]]></summary>
		<content type="html" xml:base="http://www.mattberther.com/2009/02/13/sometimes-the-problem-is-in-your-tests/">&lt;p&gt;I was TDDing a new website that I&amp;#8217;ve been working on last night and got caught in the interesting predicament where the tests failed, but the production code worked. For the life of me, I could not figure out why my test was failing. It turns out, I missed a tiny little piece of documentation on how &lt;a href="http://thoughtbot.com/projects/shoulda/" target="_blank"&gt;shoulda&lt;/a&gt; works. &lt;/p&gt;
&lt;p&gt;By the way, before we get into this, if you are writing Ruby code and writing tests (you are, arent you?), do yourself a favor and check out the &lt;a href="http://thoughtbot.com/projects/shoulda/"&gt;shoulda&lt;/a&gt; library. Excellent work from the great folks at thoughtbot.&lt;/p&gt;
&lt;pre class="dean_ch"&gt;context &lt;span style="color:#996600;"&gt;&amp;quot;with valid attributes&amp;quot;&lt;/span&gt; &lt;span style="color:#9966CC; font-weight:bold;"&gt;do&lt;/span&gt;
  setup &lt;span style="color:#9966CC; font-weight:bold;"&gt;do&lt;/span&gt;
    &lt;span style="color:#0066ff; font-weight:bold;"&gt;@user&lt;/span&gt; = Factory.&lt;span style="color:#9900CC;"&gt;create&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color:#ff3333; font-weight:bold;"&gt;:user&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;
    &lt;span style="color:#0066ff; font-weight:bold;"&gt;@updated_attributes&lt;/span&gt; = Factory.&lt;span style="color:#9900CC;"&gt;attributes_for&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color:#ff3333; font-weight:bold;"&gt;:user&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
    put &lt;span style="color:#ff3333; font-weight:bold;"&gt;:update&lt;/span&gt;, &lt;span style="color:#ff3333; font-weight:bold;"&gt;:id&lt;/span&gt; =&amp;gt; &lt;span style="color:#0066ff; font-weight:bold;"&gt;@user&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;id&lt;/span&gt;, &lt;span style="color:#ff3333; font-weight:bold;"&gt;:user&lt;/span&gt; =&amp;gt; &lt;span style="color:#0066ff; font-weight:bold;"&gt;@updated_attributes&lt;/span&gt;
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;
&amp;nbsp;
  should_not_change &lt;span style="color:#996600;"&gt;&amp;quot;User.count&amp;quot;&lt;/span&gt;
  should_respond_with &lt;span style="color:#ff3333; font-weight:bold;"&gt;:success&lt;/span&gt;
  should_redirect_to &lt;span style="color:#996600;"&gt;'root_url'&lt;/span&gt;
&lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;For quite some time, every test was passing with the exception of &lt;code&gt;should_not_change "User.count"&lt;/code&gt;. After consulting the documentation and source code for shoulda, I realized what should_not_change was actually doing.&lt;/p&gt;
&lt;p&gt;The should_not_change macro was evaluating the User.count statement *PRIOR* to the setup method executing and stored the result in a variable. Then when the test executes, it evaluated the User.count statement again. Since the Factory.create call in the setup method created a new instance in the database, of course, User.count would change. &lt;/p&gt;
&lt;p&gt;To get around this particular example, I ended up having to create a nested context to make the test pass. I dont necessarily like this, but it does get the test to pass and gives me an opportunity to change it if someone has a better solution.&lt;/p&gt;
&lt;pre class="dean_ch"&gt;context &lt;span style="color:#996600;"&gt;&amp;quot;updating User information&amp;quot;&lt;/span&gt; &lt;span style="color:#9966CC; font-weight:bold;"&gt;do&lt;/span&gt;
  setup &lt;span style="color:#9966CC; font-weight:bold;"&gt;do&lt;/span&gt;
    &lt;span style="color:#0066ff; font-weight:bold;"&gt;@user&lt;/span&gt; = Factory.&lt;span style="color:#9900CC;"&gt;create&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color:#ff3333; font-weight:bold;"&gt;:user&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;
    &lt;span style="color:#0066ff; font-weight:bold;"&gt;@updated_attributes&lt;/span&gt; = Factory.&lt;span style="color:#9900CC;"&gt;attributes_for&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color:#ff3333; font-weight:bold;"&gt;:user&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;
&amp;nbsp;
  context &lt;span style="color:#996600;"&gt;&amp;quot;with valid attributes&amp;quot;&lt;/span&gt; &lt;span style="color:#9966CC; font-weight:bold;"&gt;do&lt;/span&gt;
    setup &lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#123;&lt;/span&gt; put &lt;span style="color:#ff3333; font-weight:bold;"&gt;:update&lt;/span&gt;, &lt;span style="color:#ff3333; font-weight:bold;"&gt;:id&lt;/span&gt; =&amp;gt; &lt;span style="color:#0066ff; font-weight:bold;"&gt;@user&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;id&lt;/span&gt;, &lt;span style="color:#ff3333; font-weight:bold;"&gt;:user&lt;/span&gt; =&amp;gt; &lt;span style="color:#0066ff; font-weight:bold;"&gt;@updated_attributes&lt;/span&gt; &lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
    should_not_change &lt;span style="color:#996600;"&gt;&amp;quot;User.count&amp;quot;&lt;/span&gt;
    should_respond_with &lt;span style="color:#ff3333; font-weight:bold;"&gt;:success&lt;/span&gt;
    should_redirect_to &lt;span style="color:#996600;"&gt;'root_url'&lt;/span&gt;
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;
&lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;Indeed, sometimes the problem lies in your tests.&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=ONs1YggjFtM:zmHvTPcItUo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=ONs1YggjFtM:zmHvTPcItUo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?i=ONs1YggjFtM:zmHvTPcItUo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=ONs1YggjFtM:zmHvTPcItUo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=ONs1YggjFtM:zmHvTPcItUo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<link rel="replies" type="text/html" href="http://www.mattberther.com/2009/02/13/sometimes-the-problem-is-in-your-tests/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://www.mattberther.com/2009/02/13/sometimes-the-problem-is-in-your-tests/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	</entry>
		<entry>
		<author>
			<name>Matt Berther</name>
						<uri>http://www.mattberther.com</uri>
					</author>
		<title type="html"><![CDATA[puts vs print in ruby]]></title>
		<link rel="alternate" type="text/html" href="http://www.mattberther.com/2009/02/11/puts-vs-print-in-ruby/" />
		<id>http://www.mattberther.com/?p=1067</id>
		<updated>2009-02-12T02:46:47Z</updated>
		<published>2009-02-12T02:46:47Z</published>
		<category scheme="http://www.mattberther.com" term="Uncategorized" />		<summary type="html"><![CDATA[I discovered something a bit peculiar about the puts and print methods in Ruby. puts seems to flush immediately, and therefore shows up on $stdout right away. Take the code example below:
5.times &#123;
  puts &#34;.&#34;
  sleep 2
&#125;
This functions exactly the way that you would expect. It places a single period on $stdout, followed [...]]]></summary>
		<content type="html" xml:base="http://www.mattberther.com/2009/02/11/puts-vs-print-in-ruby/">&lt;p&gt;I discovered something a bit peculiar about the &lt;code&gt;puts&lt;/code&gt; and &lt;code&gt;print&lt;/code&gt; methods in Ruby. &lt;code&gt;puts&lt;/code&gt; seems to flush immediately, and therefore shows up on $stdout right away. Take the code example below:&lt;/p&gt;
&lt;pre class="dean_ch"&gt;&lt;span style="color:#006666;"&gt;5&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;times&lt;/span&gt; &lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#123;&lt;/span&gt;
  &lt;span style="color:#CC0066; font-weight:bold;"&gt;puts&lt;/span&gt; &lt;span style="color:#996600;"&gt;&amp;quot;.&amp;quot;&lt;/span&gt;
  &lt;span style="color:#CC0066; font-weight:bold;"&gt;sleep&lt;/span&gt; &lt;span style="color:#006666;"&gt;2&lt;/span&gt;
&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;This functions exactly the way that you would expect. It places a single period on $stdout, followed by a two second pause for five iterations. &lt;code&gt;puts&lt;/code&gt; inserts a new line character as well, so instead of placing each period on the same line, each one is on a new line. &lt;code&gt;print&lt;/code&gt; does not insert the automatic newline sequence, so it would place each one on the same line. However, the code below does not function the way you would expect.&lt;/p&gt;
&lt;pre class="dean_ch"&gt;&lt;span style="color:#006666;"&gt;5&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;times&lt;/span&gt; &lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#123;&lt;/span&gt;
  &lt;span style="color:#CC0066; font-weight:bold;"&gt;print&lt;/span&gt; &lt;span style="color:#996600;"&gt;&amp;quot;.&amp;quot;&lt;/span&gt;
  &lt;span style="color:#CC0066; font-weight:bold;"&gt;sleep&lt;/span&gt; &lt;span style="color:#006666;"&gt;2&lt;/span&gt;
&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;The code above waits for 10 seconds and then prints all 5 periods. As it turns out, this is because the &lt;code&gt;print&lt;/code&gt; method buffers the output. The easiest way to get around this (for a situation like the above) is to set the sync property on $stdout.&lt;/p&gt;
&lt;pre class="dean_ch"&gt;STDOUT.&lt;span style="color:#9900CC;"&gt;sync&lt;/span&gt; = &lt;span style="color:#0000FF; font-weight:bold;"&gt;true&lt;/span&gt;
&lt;span style="color:#006666;"&gt;5&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;times&lt;/span&gt; &lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#123;&lt;/span&gt;
  &lt;span style="color:#CC0066; font-weight:bold;"&gt;print&lt;/span&gt; &lt;span style="color:#996600;"&gt;&amp;quot;.&amp;quot;&lt;/span&gt;
  &lt;span style="color:#CC0066; font-weight:bold;"&gt;sleep&lt;/span&gt; &lt;span style="color:#006666;"&gt;2&lt;/span&gt;
&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;This sets $stdout to avoid buffering the input, which most modern operating systems do. If you find yourself in a situation where you need to have a small amount of output sent immediately to the screen, this is a good technique to utilize to serve this requirement.&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=UWo-N_IspKw:8H5t51akDp0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=UWo-N_IspKw:8H5t51akDp0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?i=UWo-N_IspKw:8H5t51akDp0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=UWo-N_IspKw:8H5t51akDp0:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=UWo-N_IspKw:8H5t51akDp0:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<link rel="replies" type="text/html" href="http://www.mattberther.com/2009/02/11/puts-vs-print-in-ruby/#comments" thr:count="7" />
		<link rel="replies" type="application/atom+xml" href="http://www.mattberther.com/2009/02/11/puts-vs-print-in-ruby/feed/atom/" thr:count="7" />
		<thr:total>7</thr:total>
	</entry>
		<entry>
		<author>
			<name>Matt Berther</name>
						<uri>http://www.mattberther.com</uri>
					</author>
		<title type="html"><![CDATA[Implementing method_missing]]></title>
		<link rel="alternate" type="text/html" href="http://www.mattberther.com/2009/02/10/implementing-method_missing/" />
		<id>http://www.mattberther.com/?p=1064</id>
		<updated>2009-02-11T06:41:32Z</updated>
		<published>2009-02-11T04:39:22Z</published>
		<category scheme="http://www.mattberther.com" term="Uncategorized" />		<summary type="html"><![CDATA[Earlier, I was working on creating a script that would iterate a set of folders and execute a chunk of code against that file when it was found. The script itself is easy enough to write with straight ruby. For example:
Dir.glob&#40;&#34;./**/*&#34;&#41;.each do &#124;f&#124;
  # your ruby code here
end
However, as much as we tend to [...]]]></summary>
		<content type="html" xml:base="http://www.mattberther.com/2009/02/10/implementing-method_missing/">&lt;p&gt;Earlier, I was working on creating a script that would iterate a set of folders and execute a chunk of code against that file when it was found. The script itself is easy enough to write with straight ruby. For example:&lt;/p&gt;
&lt;pre class="dean_ch"&gt;&lt;span style="color:#CC00FF; font-weight:bold;"&gt;Dir&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;glob&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color:#996600;"&gt;&amp;quot;./**/*&amp;quot;&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;each&lt;/span&gt; &lt;span style="color:#9966CC; font-weight:bold;"&gt;do&lt;/span&gt; |f|
  &lt;span style="color:#008000; font-style:italic;"&gt;# your ruby code here&lt;/span&gt;
&lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;However, as much as we tend to do this during our daily life, I was hoping to hide this behind an api that some less technical users may be able to use. To promote reuse, I created a class that would provide this functionality.&lt;/p&gt;
&lt;pre class="dean_ch"&gt;&lt;span style="color:#9966CC; font-weight:bold;"&gt;class&lt;/span&gt; FileWalker
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;def&lt;/span&gt; root_path=&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;path&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;
    &lt;span style="color:#0066ff; font-weight:bold;"&gt;@root_path&lt;/span&gt; = path
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;
&amp;nbsp;
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;def&lt;/span&gt; each_file_of_type&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;type, &amp;amp;block&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;
    &lt;span style="color:#CC00FF; font-weight:bold;"&gt;Dir&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;glob&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color:#996600;"&gt;&amp;quot;#{@root_path}/**/#{type}&amp;quot;&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;each&lt;/span&gt; &lt;span style="color:#9966CC; font-weight:bold;"&gt;do&lt;/span&gt; |f|
      &lt;span style="color:#9966CC; font-weight:bold;"&gt;yield&lt;/span&gt; f
    &lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;
&lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;The users of this API utilized it in a manner which you would expect (coming from a statically-typed language):&lt;/p&gt;
&lt;pre class="dean_ch"&gt;walker = FileWalker.&lt;span style="color:#9900CC;"&gt;new&lt;/span&gt;
walker.&lt;span style="color:#9900CC;"&gt;root_path&lt;/span&gt; = &lt;span style="color:#996600;"&gt;&amp;quot;.&amp;quot;&lt;/span&gt;
walker.&lt;span style="color:#9900CC;"&gt;each_file_of_type&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color:#996600;"&gt;&amp;quot;*.rb&amp;quot;&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt; &lt;span style="color:#9966CC; font-weight:bold;"&gt;do&lt;/span&gt; |file|
  &lt;span style="color:#008000; font-style:italic;"&gt;# your ruby code here&lt;/span&gt;
&lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;While this covered the functional requirements of what I was hoping to do, I really did not like the way this reads. One, the user of the API was expected to implement the wildcard for the type. Two, did I say that I didnt like the way it reads? What I was really hoping for was an API that worked like this:&lt;/p&gt;
&lt;pre class="dean_ch"&gt;FileWalker.&lt;span style="color:#9900CC;"&gt;dir&lt;/span&gt; &lt;span style="color:#996600;"&gt;&amp;quot;.&amp;quot;&lt;/span&gt; &lt;span style="color:#9966CC; font-weight:bold;"&gt;do&lt;/span&gt;
  each_rb_file &lt;span style="color:#9966CC; font-weight:bold;"&gt;do&lt;/span&gt; |f|
    &lt;span style="color:#008000; font-style:italic;"&gt;# your ruby code here&lt;/span&gt;
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;
&lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;The first thing you&amp;#8217;ll notice is that I remove the file specification from the call with the each_rb_file method. However, I certainly do not want to corrupt the FileWalker class with dozens of methods to iterate different file types. Having to add a new method every time I want to iterate a different file type would most certainly violate the open/closed principle. &lt;/p&gt;
&lt;p&gt;As I thought about the best way to accomplish both the API I desired and the long-term maintenance, I decided to take advantage of a great method on ruby&amp;#8217;s Object class called method_missing. method_missing is a method that gets called every time a method on the receiver does not exist. The method gets passed three arguments, the name of the method, any arguments to the method, and a block to execute. &lt;/p&gt;
&lt;p&gt;Using a little regexp magic, I am able to intercept calls to each_rb_file and delegate them to the earlier each_file_of_type method (which is now private). Take a look:&lt;/p&gt;
&lt;pre class="dean_ch"&gt;&lt;span style="color:#9966CC; font-weight:bold;"&gt;class&lt;/span&gt; FileWalker
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;def&lt;/span&gt; initialize&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;path&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;
    &lt;span style="color:#0066ff; font-weight:bold;"&gt;@root_path&lt;/span&gt; = path
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;
&amp;nbsp;
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;def&lt;/span&gt; &lt;span style="color:#0000FF; font-weight:bold;"&gt;self&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;dir&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;path, &amp;amp;block&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;
    walker = new&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;path&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;
    walker.&lt;span style="color:#9900CC;"&gt;instance_eval&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;&amp;amp;block&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt; &lt;span style="color:#9966CC; font-weight:bold;"&gt;if&lt;/span&gt; block_given?
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;
&amp;nbsp;
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;def&lt;/span&gt; method_missing&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;method, *args, &amp;amp;block&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;
    &lt;span style="color:#9966CC; font-weight:bold;"&gt;if&lt;/span&gt; method.&lt;span style="color:#9900CC;"&gt;to_s&lt;/span&gt; =~ /^each_&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;.+&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;_file/
      each_file_of_type &lt;span style="color:#996600;"&gt;&amp;quot;*.#{Regexp.last_match[1]}&amp;quot;&lt;/span&gt;, &amp;amp;block
    &lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;
&amp;nbsp;
private
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;def&lt;/span&gt; each_file_of_type&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;type, &amp;amp;block&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;
    &lt;span style="color:#CC00FF; font-weight:bold;"&gt;Dir&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;glob&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color:#996600;"&gt;&amp;quot;#{@root_path}/**/#{type}&amp;quot;&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;each&lt;/span&gt; &lt;span style="color:#9966CC; font-weight:bold;"&gt;do&lt;/span&gt; |f|
      &lt;span style="color:#9966CC; font-weight:bold;"&gt;yield&lt;/span&gt; f
    &lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;
&lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;So, as you can see with a little method_missing mojo, we now have access to any number of methods that allow us to retrieve all files of a particular extension. The above script and class will work with any sort of file extension. Calling each_exe_file, each_xml_file, or each_py_file will all function the same way, without adding any new code. The advantage here, as mentioned earlier, are that 1) we get to provide a *readable* API to our consumers, and 2) we conform to the open/closed principle by not having to modify already written and tested code to implement a new extension.&lt;/p&gt;
&lt;p&gt;If you&amp;#8217;ve not looked much at method_missing and ruby, I encourage you to discover it more. I&amp;#8217;ve only touched the surface with its capabilities. Others have gone much further, including implementing an entire XML dsl utilizing this method. &lt;/p&gt;
&lt;p&gt;Perhaps in a subsequent post I&amp;#8217;ll dive into how I&amp;#8217;d go about implementing this&amp;#8230; til then. &lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=4nwx_BHXsBY:2gXHQ2BIk5U:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=4nwx_BHXsBY:2gXHQ2BIk5U:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?i=4nwx_BHXsBY:2gXHQ2BIk5U:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=4nwx_BHXsBY:2gXHQ2BIk5U:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=4nwx_BHXsBY:2gXHQ2BIk5U:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<link rel="replies" type="text/html" href="http://www.mattberther.com/2009/02/10/implementing-method_missing/#comments" thr:count="2" />
		<link rel="replies" type="application/atom+xml" href="http://www.mattberther.com/2009/02/10/implementing-method_missing/feed/atom/" thr:count="2" />
		<thr:total>2</thr:total>
	</entry>
		<entry>
		<author>
			<name>Matt Berther</name>
						<uri>http://www.mattberther.com</uri>
					</author>
		<title type="html"><![CDATA[Testing Helper Modules with Rails 2.2]]></title>
		<link rel="alternate" type="text/html" href="http://www.mattberther.com/2009/01/27/testing-helper-modules-with-rails-22/" />
		<id>http://www.mattberther.com/?p=1058</id>
		<updated>2009-01-28T05:03:21Z</updated>
		<published>2009-01-28T05:02:15Z</published>
		<category scheme="http://www.mattberther.com" term="Uncategorized" />		<summary type="html"><![CDATA[I recently found myself in a situation where I wanted to make sure that the current year is always displayed in the copyright statement at the bottom of a Rails application. At first glance, this is easy enough. All that a person needs to do is add the following to their application.html.erb:
Copyright &#38;copy; 2007-&#60;%= Date.today.year.to_s [...]]]></summary>
		<content type="html" xml:base="http://www.mattberther.com/2009/01/27/testing-helper-modules-with-rails-22/">&lt;p&gt;I recently found myself in a situation where I wanted to make sure that the current year is always displayed in the copyright statement at the bottom of a Rails application. At first glance, this is easy enough. All that a person needs to do is add the following to their application.html.erb:&lt;/p&gt;
&lt;pre class="dean_ch"&gt;Copyright &amp;amp;copy; 2007-&amp;lt;%= Date.today.year.to_s %&amp;gt;&lt;/pre&gt;
&lt;p&gt;However, as we start to implement this, it becomes apparent that this is not very test driven. I sought to find a way to implement and verify this functionality with a breaking test first.&lt;/p&gt;
&lt;p&gt;Since view tests can often be very brittle, I really wanted to implement this in my ApplicationHelper module, so that I could hopefully test it easier, but also reuse to functionality in other areas.&lt;/p&gt;
&lt;p&gt;Testing Rails helpers has been hard historically, but as I investigated how I might test this functionality in the ApplicationHelper module, I discovered the ActionView::TestCase base class. This class provided all the hook up that I needed to call methods on my helpers. Armed with this, I set out to write my test:&lt;/p&gt;
&lt;pre class="dean_ch"&gt;&lt;span style="color:#9966CC; font-weight:bold;"&gt;class&lt;/span&gt; ApplicationHelperTest &amp;lt; &lt;span style="color:#6666ff; font-weight:bold;"&gt;ActionView::TestCase&lt;/span&gt;
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;def&lt;/span&gt; test_copyright_includes_current_year
    actual_copyright = copyright_text&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;
    assert&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;actual_copyright.&lt;span style="color:#9966CC; font-weight:bold;"&gt;include&lt;/span&gt;?&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color:#CC00FF; font-weight:bold;"&gt;Date&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;today&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;year&lt;/span&gt;.&lt;span style="color:#9900CC;"&gt;to_s&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;, &lt;span style="color:#996600;"&gt;&amp;quot;Copyright must include current year.&amp;quot;&lt;/span&gt;&lt;span style="color:#006600; font-weight:bold;"&gt;&amp;#41;&lt;/span&gt;
  &lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;
&lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;This fails pretty quickly, since it cant find ActionView::TestCase. The easiest way to resolve this is to add &lt;code&gt;require 'action_view/test_case'&lt;/code&gt; to your test_helper.rb. When we run the test again, it fails again, since the copyright_text method does not exist, so we flip back over to the ApplicationHelper module and implement the method.&lt;/p&gt;
&lt;/pre&gt;
&lt;pre class="dean_ch"&gt;&lt;span style="color:#9966CC; font-weight:bold;"&gt;def&lt;/span&gt; copyright_text
  &lt;span style="color:#996600;"&gt;&amp;quot;Copyright &amp;amp;copy; 2007-#{Date.today.year}, Company Name. All Rights Reserved.&amp;quot;&lt;/span&gt;
&lt;span style="color:#9966CC; font-weight:bold;"&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;Voila. Our tests now pass. The last step is to add a call to this helper method in the view:&lt;/p&gt;
&lt;pre class="dean_ch"&gt;&amp;lt;%= copyright_text %&amp;gt;&lt;/pre&gt;
&lt;p&gt;We may take this a step further and also implement additional checks around the copyright statement, which can be easily done with the assert_match method. This was not needed in my particular case though.&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=tEJSoWviIdw:gZK2twa3iIU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=tEJSoWviIdw:gZK2twa3iIU:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?i=tEJSoWviIdw:gZK2twa3iIU:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=tEJSoWviIdw:gZK2twa3iIU:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=tEJSoWviIdw:gZK2twa3iIU:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<link rel="replies" type="text/html" href="http://www.mattberther.com/2009/01/27/testing-helper-modules-with-rails-22/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://www.mattberther.com/2009/01/27/testing-helper-modules-with-rails-22/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	</entry>
		<entry>
		<author>
			<name>Matt Berther</name>
						<uri>http://www.mattberther.com</uri>
					</author>
		<title type="html"><![CDATA[New MacBook Pro]]></title>
		<link rel="alternate" type="text/html" href="http://www.mattberther.com/2009/01/19/new-macbook-pro/" />
		<id>http://www.mattberther.com/?p=1056</id>
		<updated>2009-01-20T03:58:12Z</updated>
		<published>2009-01-20T03:58:11Z</published>
		<category scheme="http://www.mattberther.com" term="Uncategorized" />		<summary type="html"><![CDATA[About 18 months ago, I purchased my first MacBook Pro&#8230; a 17 inch monster laptop. I absolutely loved the big (1920&#215;1200) display that I purchased as an additional feature.
Over the course of the past year, I realized that I was not really very mobile with that behemoth. Obviously, at more than 17 inches wide and [...]]]></summary>
		<content type="html" xml:base="http://www.mattberther.com/2009/01/19/new-macbook-pro/">&lt;p&gt;About 18 months ago, I purchased my first MacBook Pro&amp;#8230; a 17 inch monster laptop. I absolutely loved the big (1920&amp;#215;1200) display that I purchased as an additional feature.&lt;/p&gt;
&lt;p&gt;Over the course of the past year, I realized that I was not really very mobile with that behemoth. Obviously, at more than 17 inches wide and almost 7 pounds, it can be quite a cumbersome unit to drag around with you. Even more, the space it takes up on your lap makes it almost unusable. Calling it a &amp;#8220;laptop&amp;#8221; was a bit of a stretch.&lt;/p&gt;
&lt;p&gt;No more&amp;#8230; earlier today, I traded in that MacBook Pro and got the new 15&amp;#8243; unibody MBP. 320gb of drive space, with 4gb of ram packed into a nice little 5 pound chassis. Not quite as small as my wife&amp;#8217;s 13&amp;#8243; MacBook, but certainly more inline with what I would consider a laptop. All that said, I really do miss the 1920&amp;#215;1200 resolution, even though the LED display on this is much brighter. If I do want that resolution, I can always plug it into my wife&amp;#8217;s 24&amp;#8243; Cinema display.&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=5-YQSM6T_VQ:mDg0K7E7Qls:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=5-YQSM6T_VQ:mDg0K7E7Qls:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?i=5-YQSM6T_VQ:mDg0K7E7Qls:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=5-YQSM6T_VQ:mDg0K7E7Qls:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=5-YQSM6T_VQ:mDg0K7E7Qls:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<link rel="replies" type="text/html" href="http://www.mattberther.com/2009/01/19/new-macbook-pro/#comments" thr:count="1" />
		<link rel="replies" type="application/atom+xml" href="http://www.mattberther.com/2009/01/19/new-macbook-pro/feed/atom/" thr:count="1" />
		<thr:total>1</thr:total>
	</entry>
		<entry>
		<author>
			<name>Matt Berther</name>
						<uri>http://www.mattberther.com</uri>
					</author>
		<title type="html"><![CDATA[Hiding an email address from spam harvesters]]></title>
		<link rel="alternate" type="text/html" href="http://www.mattberther.com/2009/01/15/hiding-an-email-address-from-spam-harvesters/" />
		<id>http://www.mattberther.com/?p=1052</id>
		<updated>2009-01-16T06:09:55Z</updated>
		<published>2009-01-16T06:09:39Z</published>
		<category scheme="http://www.mattberther.com" term="Uncategorized" />		<summary type="html"><![CDATA[Using a little css trickery, you can completely hide your email address from spam harvesters. The drawback to this approach is that it will only work on sites that read left-to-right as it uses CSS to reverse the direction of text.
Add this class somewhere in your CSS file.
span.reverse &#123;
  unicode-bidi: bidi-override;
  direction: rtl;
&#125;
&#160;
At [...]]]></summary>
		<content type="html" xml:base="http://www.mattberther.com/2009/01/15/hiding-an-email-address-from-spam-harvesters/">&lt;p&gt;Using a little css trickery, you can completely hide your email address from spam harvesters. The drawback to this approach is that it will only work on sites that read left-to-right as it uses CSS to reverse the direction of text.&lt;/p&gt;
&lt;p&gt;Add this class somewhere in your CSS file.&lt;/p&gt;
&lt;pre class="dean_ch"&gt;span&lt;span style="color: #6666ff;"&gt;.reverse&lt;/span&gt; &lt;span style="color: #66cc66;"&gt;&amp;#123;&lt;/span&gt;
  &lt;span style="color: #000000; font-weight: bold;"&gt;unicode-bidi&lt;/span&gt;: &lt;span style="color: #993333;"&gt;bidi-override&lt;/span&gt;;
  &lt;span style="color: #000000; font-weight: bold;"&gt;direction&lt;/span&gt;: rtl;
&lt;span style="color: #66cc66;"&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;&lt;/pre&gt;
&lt;p&gt;At the point that you are ready to present the email address, code it in your HTML, but just key it in backwards. For example:&lt;/p&gt;
&lt;pre class="dean_ch"&gt;&amp;lt;span class=&amp;quot;reverse&amp;quot;&amp;gt;moc.rehtrebttam@retsambew&amp;lt;/span&amp;gt;&lt;/pre&gt;
&lt;p&gt;The CSS above will then override the reading direction and present the text to the user in the correct order.&lt;/p&gt;
&lt;p&gt;Pretty clever technique.&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=g3N5OM2UWuA:ZukxoqETI8I:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=g3N5OM2UWuA:ZukxoqETI8I:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?i=g3N5OM2UWuA:ZukxoqETI8I:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=g3N5OM2UWuA:ZukxoqETI8I:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mattberther?a=g3N5OM2UWuA:ZukxoqETI8I:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mattberther?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<link rel="replies" type="text/html" href="http://www.mattberther.com/2009/01/15/hiding-an-email-address-from-spam-harvesters/#comments" thr:count="7" />
		<link rel="replies" type="application/atom+xml" href="http://www.mattberther.com/2009/01/15/hiding-an-email-address-from-spam-harvesters/feed/atom/" thr:count="7" />
		<thr:total>7</thr:total>
	</entry>
	</feed>
