<?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>[an error occurred while processing this directive].com &#187; code</title>
	<atom:link href="http://anerroroccurredwhileprocessingthisdirective.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://anerroroccurredwhileprocessingthisdirective.com</link>
	<description></description>
	<lastBuildDate>Thu, 24 Dec 2009 16:50:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Craigslist BS Filter</title>
		<link>http://anerroroccurredwhileprocessingthisdirective.com/2009/10/02/craigslist-bs-filter/</link>
		<comments>http://anerroroccurredwhileprocessingthisdirective.com/2009/10/02/craigslist-bs-filter/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 07:17:55 +0000</pubDate>
		<dc:creator>billy</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://anerroroccurredwhileprocessingthisdirective.com/?p=141</guid>
		<description><![CDATA[I&#8217;m moving and have been trudging through craigslist apartment listings daily.  I CANNOT stand all the cliché buzzwords, misuse of symbols, and overall bs of realtors.
So, I cooked up a greasemonkey script that gets cuts through the bs and dramatically cleans up the apartment listings.
The post:
$1500/1BR XXXX-LARGE ***** SUPER MINT ***** MUST SEE.  [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m moving and have been trudging through craigslist apartment listings daily.  I CANNOT stand all the cliché buzzwords, misuse of symbols, and overall bs of realtors.</p>
<p>So, I cooked up a <a href="http://userscripts.org/scripts/show/58994" target="_blank">greasemonkey script</a> that gets cuts through the bs and dramatically cleans up the apartment listings.</p>
<p>The post:</p>
<p><b>$1500/1BR XXXX-LARGE ***** SUPER MINT ***** MUST SEE.  WILL NOT LAST 1BR Apt</b></p>
<p>Becomes:</p>
<p><b>1500/1Br Large 1Br Apt</b></p>
<p>ahhhhhhhhh, much better on my eyes.</p>
<p>The actions performed by the script are:</p>
<ul>
<li>Replace a whole mess of cliche phrases and buzzwords
<li>Get rid of all symbols
<li>Remove repeating spaces
<li>F I X &nbsp;  S P A C E D  &nbsp;  O U T &nbsp;  W O R D S
<li>Properly Case Every Word
</ul>
<p>If you missed the link to the script, you can <a href="http://userscripts.org/scripts/show/58994" target="_blank">grab it here</a>.  It requires firefox and the <a href="https://addons.mozilla.org/en-US/firefox/addon/748" target="_blank">greasemonkey extension</a>.</p>
<p><script type="text/javascript">digg_url = "http://anerroroccurredwhileprocessingthisdirective.com/2009/10/02/craigslist-bs-filter/";</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script><script language="javascript">reddit_url="http://anerroroccurredwhileprocessingthisdirective.com/2009/10/02/craigslist-bs-filter/"</script><script language="javascript" src="http://reddit.com/button.js?t=2"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://anerroroccurredwhileprocessingthisdirective.com/2009/10/02/craigslist-bs-filter/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Google Error</title>
		<link>http://anerroroccurredwhileprocessingthisdirective.com/2008/04/04/google-error/</link>
		<comments>http://anerroroccurredwhileprocessingthisdirective.com/2008/04/04/google-error/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 18:00:05 +0000</pubDate>
		<dc:creator>billy</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://anerroroccurredwhileprocessingthisdirective.com/2008/04/04/google-error/</guid>
		<description><![CDATA[Here&#8217;s something you don&#8217;t see every day.  Google was giving me intermittent page errors

Errors usually give a little bit of insight into how sites are being ran.  It looks like google is using squid for caching.
]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s something you don&#8217;t see every day.  Google was giving me intermittent page errors</p>
<p><img src="http://static.anerroroccurredwhileprocessingthisdirective.com/googleerror.gif"></p>
<p>Errors usually give a little bit of insight into how sites are being ran.  It looks like google is using squid for caching.</p>
]]></content:encoded>
			<wfw:commentRss>http://anerroroccurredwhileprocessingthisdirective.com/2008/04/04/google-error/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Go to Home</title>
		<link>http://anerroroccurredwhileprocessingthisdirective.com/2008/03/22/go-to-home/</link>
		<comments>http://anerroroccurredwhileprocessingthisdirective.com/2008/03/22/go-to-home/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 23:38:37 +0000</pubDate>
		<dc:creator>billy</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://anerroroccurredwhileprocessingthisdirective.com/2008/03/22/go-to-home/</guid>
		<description><![CDATA[The best ideas come from finding something you do all the time, realize you do it, and then automate it.
With me, I discovered that I frequently go to the base domain of a website by going to the URL, highlighting and deleting the junk on the end of the domain name and then pressing enter. [...]]]></description>
			<content:encoded><![CDATA[<p>The best ideas come from finding something you do all the time, realize you do it, and then automate it.</p>
<p>With me, I discovered that I frequently go to the base domain of a website by going to the URL, highlighting and deleting the junk on the end of the domain name and then pressing enter.  I HATE doing it.  I also have to do it when websites don&#8217;t link to their home page.</p>
<p>So here&#8217;s an easy solution.  A bookmarklet!</p>
<p>Drag the link below to your bookmarks bar (or in IE, right-click and add to favorites):</p>
<div style="padding:20px">
<a href="javascript:var url = new String(location.href);var re = new RegExp('https?://([A-Za-z0-9.-]+)');var res = url.match(re);location.href=res[0];" style="font-size:15px;text-decoration:underline">Go to Home</a>
</div>
<p>Here is the code:</p>
<blockquote><p>
var url = new String(location.href);var re = new RegExp(&#8217;https?://([A-Za-z0-9.-]+)&#8217;);var res = url.match(re);location.href=res[0];
</p></blockquote>
<p>Enjoy <img src='http://anerroroccurredwhileprocessingthisdirective.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://anerroroccurredwhileprocessingthisdirective.com/2008/03/22/go-to-home/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Useful script for downloading on linux</title>
		<link>http://anerroroccurredwhileprocessingthisdirective.com/2007/10/05/useful-script-for-downloading-on-linux/</link>
		<comments>http://anerroroccurredwhileprocessingthisdirective.com/2007/10/05/useful-script-for-downloading-on-linux/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 19:27:10 +0000</pubDate>
		<dc:creator>billy</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://anerroroccurredwhileprocessingthisdirective.com/2007/10/05/useful-script-for-downloading-on-linux/</guid>
		<description><![CDATA[I always go through the same three steps to download a file (in tar.gz format)

wget the tar.gz file I want
untar it
remove the original file I downloaded

So I made a bash script that does those three steps in one.  Use it the same way as wget (# simple.sh http://path/to/file.tar.gz)


#!/bin/bash 

# change this to whatever extension [...]]]></description>
			<content:encoded><![CDATA[<p>I always go through the same three steps to download a file (in tar.gz format)</p>
<ol>
<li>wget the tar.gz file I want</li>
<li>untar it</li>
<li>remove the original file I downloaded</li>
</ol>
<p>So I made a bash script that does those three steps in one.  Use it the same way as wget (# simple.sh http://path/to/file.tar.gz)</p>
<pre>
<code>
#!/bin/bash 

# change this to whatever extension you'd like to handle
ext=".tar.gz"

# flags to pass to tar
flg="-zxvf"

wget $1

file=`ls -t *$ext | grep -i -m 1 "^.*$ext$"`

if [[ -n $file ]]
then
    tar $flg $file
    unlink $file
else
    echo "Could not find the downloaded file."
fi

</code>
</pre>
<p>You can download it via this <a href='http://anerroroccurredwhileprocessingthisdirective.com/wp-content/uploads/2007/10/simple.txt' title='simple.txt'>link</a> (Remember to make it executable and to change its extension)</p>
]]></content:encoded>
			<wfw:commentRss>http://anerroroccurredwhileprocessingthisdirective.com/2007/10/05/useful-script-for-downloading-on-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
