<?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>gumbercules.net &#187; Random Things</title>
	<atom:link href="http://gumbercules.net/category/random/feed/" rel="self" type="application/rss+xml" />
	<link>http://gumbercules.net</link>
	<description>As strong and flexible as Gumby and Hercules combined!</description>
	<lastBuildDate>Mon, 31 Aug 2009 19:17:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Cover Copier</title>
		<link>http://gumbercules.net/2008/04/30/cover-copier/</link>
		<comments>http://gumbercules.net/2008/04/30/cover-copier/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 23:09:35 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Random Things]]></category>

		<guid isPermaLink="false">http://gumbercules.net/2008/04/30/cover-copier/</guid>
		<description><![CDATA[Here&#8217;s a little script I created to copy all of the covers from my mp3 folders over to my flac folders. It also came in handy a few days ago when I accidentally deleted all of the covers that were present on my Sansa. #! /usr/bin/env python &#160; import os import sys import shutil import [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a little script I created to copy all of the covers from my mp3 folders over to my flac folders. It also came in handy a few days ago when I accidentally deleted all of the covers that were present on my Sansa.</p>
<blockquote>

<div class="wp_syntax"><div class="code"><pre class="python"><span style="color: #808080; font-style: italic;">#! /usr/bin/env python</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">sys</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">shutil</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">string</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">for</span> root, <span style="color: #008000;">dir</span>, files <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">walk</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">sys</span>.<span style="color: black;">argv</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">len</span><span style="color: black;">&#40;</span><span style="color: #008000;">dir</span><span style="color: black;">&#41;</span> == <span style="color: #ff4500;">0</span>:
        copy_from = <span style="color: #dc143c;">sys</span>.<span style="color: black;">argv</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">2</span><span style="color: black;">&#93;</span> + <span style="color: #483d8b;">'/'</span> + root.<span style="color: black;">replace</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">sys</span>.<span style="color: black;">argv</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span>,<span style="color: #483d8b;">''</span><span style="color: black;">&#41;</span>.<span style="color: black;">translate</span><span style="color: black;">&#40;</span>
                <span style="color: #dc143c;">string</span>.<span style="color: black;">maketrans</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">':&lt;&gt;<span style="color: #000099; font-weight: bold;">\|</span>*?'</span>,<span style="color: #483d8b;">'_______'</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">try</span>:
            <span style="color: #ff7700;font-weight:bold;">for</span> <span style="color: #008000;">file</span> <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">listdir</span><span style="color: black;">&#40;</span>copy_from<span style="color: black;">&#41;</span>:
                <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">file</span> == <span style="color: #483d8b;">'.directory'</span> <span style="color: #ff7700;font-weight:bold;">or</span> <span style="color: #008000;">file</span>.<span style="color: black;">endswith</span><span style="color: black;">&#40;</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'.jpg'</span>,<span style="color: #483d8b;">'.jpeg'</span>,<span style="color: #483d8b;">'.png'</span>,<span style="color: #483d8b;">'.gif'</span>,<span style="color: #483d8b;">'.bmp'</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>:
                    copy_file = copy_from + <span style="color: #483d8b;">'/'</span> + <span style="color: #008000;">file</span>
                    <span style="color: #dc143c;">shutil</span>.<span style="color: #dc143c;">copy</span><span style="color: black;">&#40;</span>copy_file, root<span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">except</span> <span style="color: #008000;">OSError</span>: <span style="color: #ff7700;font-weight:bold;">pass</span></pre></div></div>

</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://gumbercules.net/2008/04/30/cover-copier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FAT sanitizer</title>
		<link>http://gumbercules.net/2008/03/03/fat-sanitizer/</link>
		<comments>http://gumbercules.net/2008/03/03/fat-sanitizer/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 18:38:02 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Random Things]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://gumbercules.net/2008/03/03/fat-sanitizer/</guid>
		<description><![CDATA[Have you ever had to move a lot of files from a sane filesystem to one that behaves more like FAT? Do these files have &#8220;strange&#8221; characters in their names, such as &#8216;:&#8217;, &#8216;?&#8217;, or &#8216;*&#8217;? This simple utility can rename these files so that the FAT-invalid characters are replaced with &#8216;_&#8217;. Works great for [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever had to move a lot of files from a sane filesystem to one that behaves more like FAT? Do these files have &#8220;strange&#8221; characters in their names, such as &#8216;:&#8217;, &#8216;?&#8217;, or &#8216;*&#8217;? This simple utility can rename these files so that the FAT-invalid characters are replaced with &#8216;_&#8217;. Works great for &#8220;fixing&#8221; the filenames on your music collection before transferring it to your portable audio player. You can download it <a href="/files/fat_sanitize">here</a>.</p>
<blockquote>

<div class="wp_syntax"><div class="code"><pre class="ruby"><span style="color:#008000; font-style:italic;">#!/usr/bin/env ruby</span>
&nbsp;
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'find'</span>
&nbsp;
bad_str = <span style="color:#996600;">&quot;:&lt;&gt;<span style="color:#000099;">\\</span>|*?<span style="color:#000099;">\&quot;</span>&quot;</span>
bad_files = <span style="color:#CC0066; font-weight:bold;">Array</span>.<span style="color:#9900CC;">new</span>
&nbsp;
<span style="color:#CC00FF; font-weight:bold;">Find</span>.<span style="color:#9900CC;">find</span><span style="color:#006600; font-weight:bold;">&#40;</span>ARGV<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> |file|
	bad_files.<span style="color:#9900CC;">push</span> file
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#008000; font-style:italic;"># reverse array so bad directories come after the files</span>
bad_files.<span style="color:#9900CC;">reverse</span>!
&nbsp;
bad_files.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> |file|
	basename = <span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">basename</span><span style="color:#006600; font-weight:bold;">&#40;</span>file<span style="color:#006600; font-weight:bold;">&#41;</span>
	<span style="color:#9966CC; font-weight:bold;">if</span> basename.<span style="color:#9900CC;">count</span><span style="color:#006600; font-weight:bold;">&#40;</span>bad_str<span style="color:#006600; font-weight:bold;">&#41;</span> &gt; <span style="color:#006666;">0</span>
		dirname = <span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">dirname</span><span style="color:#006600; font-weight:bold;">&#40;</span>file<span style="color:#006600; font-weight:bold;">&#41;</span>
		new_file = <span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">join</span><span style="color:#006600; font-weight:bold;">&#40;</span>dirname, basename.<span style="color:#9900CC;">tr</span><span style="color:#006600; font-weight:bold;">&#40;</span>bad_str, <span style="color:#996600;">'_'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
		<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#006600; font-weight:bold;">&#91;</span>file, <span style="color:#996600;">' -&gt; '</span>, new_file<span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#9900CC;">join</span>
		<span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">rename</span><span style="color:#006600; font-weight:bold;">&#40;</span> file, new_file <span style="color:#006600; font-weight:bold;">&#41;</span>
	<span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://gumbercules.net/2008/03/03/fat-sanitizer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pumpkin Carving</title>
		<link>http://gumbercules.net/2007/10/30/pumpkin-carving/</link>
		<comments>http://gumbercules.net/2007/10/30/pumpkin-carving/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 12:20:11 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Nintendo]]></category>
		<category><![CDATA[Random Things]]></category>

		<guid isPermaLink="false">http://gumbercules.net/2007/10/30/pumpkin-carving/</guid>
		<description><![CDATA[Sparked by a trip to SuperFresh to get some biscuits for dinner, I came across some huge pumpkins for $3. Thus, I was inspired to create a nerdy pumpkin for Halloween. I did all the carving with my Dremel rotary tool and a dinner knife. To keep it from rotting, I covered it in WD-40. [...]]]></description>
			<content:encoded><![CDATA[<p>Sparked by a trip to SuperFresh to get some biscuits for dinner, I came across some huge pumpkins for $3. Thus, I was inspired to create a nerdy pumpkin for Halloween. I did all the carving with my Dremel rotary tool and a dinner knife. To keep it from rotting, I covered it in WD-40.<br />
<span id="more-43"></span><br />
<img src='http://gumbercules.net/wordpress/wp-content/p1010467_1.thumbnail.jpg' /><br />
This is the initial sketch. I drew it with a pen so I could erase it with soap and water if I screwed up really badly.</p>
<p><img src='http://gumbercules.net/wordpress/wp-content/p1010471_1.thumbnail.jpg' /><br />
Here it is before I skinned it down past the membrane. At this point, it looks the most like a &#8220;real&#8221; metroid.</p>
<p><img src='http://gumbercules.net/wordpress/wp-content/p1010474_1.thumbnail.jpg' /><br />
Skinned it down past the membrane, and now it&#8217;s ready to be lit up for the first time.</p>
<p><img src='http://gumbercules.net/wordpress/wp-content/p1010479_1.thumbnail.jpg' /><br />
You can&#8217;t actually see the real first time it was lit up. I only used one candle at first, and no light came through. I had to add 5 more to make it look good. For the rest of the process of carving it, I used a flashlight instead of lighting six candles every time I made a small change.</p>
<p><img src='http://gumbercules.net/wordpress/wp-content/p1010484_1.thumbnail.jpg' /><br />
The pincers were cut out fully to make that part shine the brightest.</p>
<p><img src='http://gumbercules.net/wordpress/wp-content/p1010486_1.thumbnail.jpg' /><br />
Here is a picture of me carving it. I started it while my wife was at work, so she took it when she came home.</p>
<p><img src='http://gumbercules.net/wordpress/wp-content/p1010487_1.thumbnail.jpg' /><br />
This is the final revision. All of the metroid is completely skinned. The brain things in the center are rounded, and the things that attach them to the rest of the metroid fade away into the rest of it now.</p>
<p><img src='http://gumbercules.net/wordpress/wp-content/p1010491_1.thumbnail.jpg' /><br />
Here it is lit up with a flashlight in the kitchen. This picture was taken with a muffled flash, so I could show more detail.</p>
<p><img src='http://gumbercules.net/wordpress/wp-content/p1010498_1.thumbnail.jpg' /><br />
This is it outside on our makeshift patio. The process is complete.</p>
]]></content:encoded>
			<wfw:commentRss>http://gumbercules.net/2007/10/30/pumpkin-carving/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>lolcat iz pleezd</title>
		<link>http://gumbercules.net/2007/06/15/lolcat-iz-pleezd/</link>
		<comments>http://gumbercules.net/2007/06/15/lolcat-iz-pleezd/#comments</comments>
		<pubDate>Fri, 15 Jun 2007 15:27:47 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Random Things]]></category>

		<guid isPermaLink="false">http://gumbercules.net/2007/06/15/lolcat-iz-pleezd/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div align="center"><a class="imagelink" href="http://gumbercules.net/wordpress/wp-content/uploads/2007/06/iizbukket.jpg" title="iizbukket.jpg"><img id="image34" src="http://gumbercules.net/wordpress/wp-content/uploads/2007/06/iizbukket.thumbnail.jpg" alt="iizbukket.jpg" /></a><a class="imagelink" href="http://gumbercules.net/wordpress/wp-content/uploads/2007/06/iizninja.jpg" title="iizninja.jpg"><img id="image35" src="http://gumbercules.net/wordpress/wp-content/uploads/2007/06/iizninja.thumbnail.jpg" alt="iizninja.jpg" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://gumbercules.net/2007/06/15/lolcat-iz-pleezd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>server go boom</title>
		<link>http://gumbercules.net/2007/06/14/server-go-boom/</link>
		<comments>http://gumbercules.net/2007/06/14/server-go-boom/#comments</comments>
		<pubDate>Thu, 14 Jun 2007 19:11:31 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Random Things]]></category>

		<guid isPermaLink="false">http://gumbercules.net/2007/06/14/server-go-boom/</guid>
		<description><![CDATA[Not quite boom. More like a processor cooling fan grinding and my room stinking. Nevertheless, I got a new case, power supply, and some efficient fans for it to make it happy. Everything is back up now, so all of you visitors (0) can get back to reading and checking out my code, and all [...]]]></description>
			<content:encoded><![CDATA[<p>Not quite <b>boom</b>. More like a processor cooling fan grinding and my room stinking. Nevertheless, I got a new case, power supply, and some efficient fans for it to make it happy. Everything is back up now, so all of you visitors (0) can get back to reading and checking out my code, and all you bots can get back to crawling and attacking.</p>
]]></content:encoded>
			<wfw:commentRss>http://gumbercules.net/2007/06/14/server-go-boom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Motorcycle!</title>
		<link>http://gumbercules.net/2007/05/07/motorcycle/</link>
		<comments>http://gumbercules.net/2007/05/07/motorcycle/#comments</comments>
		<pubDate>Mon, 07 May 2007 23:53:45 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Random Things]]></category>

		<guid isPermaLink="false">http://gumbercules.net/2007/05/07/motorcycle/</guid>
		<description><![CDATA[I picked up my new motorcycle this past weekend. It&#8217;s a Kawasaki Vulcan EN500 LTD, and it fits me perfectly. I&#8217;ll post some pics of me and it later.]]></description>
			<content:encoded><![CDATA[<p>I picked up my new motorcycle this past weekend. It&#8217;s a Kawasaki Vulcan EN500 LTD, and it fits me perfectly. I&#8217;ll post some pics of me and it later.</p>
]]></content:encoded>
			<wfw:commentRss>http://gumbercules.net/2007/05/07/motorcycle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Kitty!</title>
		<link>http://gumbercules.net/2007/05/01/new-kitty/</link>
		<comments>http://gumbercules.net/2007/05/01/new-kitty/#comments</comments>
		<pubDate>Wed, 02 May 2007 01:50:32 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Random Things]]></category>

		<guid isPermaLink="false">http://gumbercules.net/2007/05/01/new-kitty/</guid>
		<description><![CDATA[Meet Koko. She&#8217;s my new cute kitty. She seems to be getting along well with my existing kitty, Gizmo. He does play a little rough, though.]]></description>
			<content:encoded><![CDATA[<p>Meet Koko. She&#8217;s my new cute kitty. She seems to be getting along well with my existing kitty, Gizmo. He does play a little rough, though.<br />
<a class="imagelink" href="http://gumbercules.net/wordpress/wp-content/uploads/2007/05/lulz.jpg" title="lulz"><img id="image28" src="http://gumbercules.net/wordpress/wp-content/uploads/2007/05/lulz.thumbnail.jpg" alt="lulz" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://gumbercules.net/2007/05/01/new-kitty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Donations accepted</title>
		<link>http://gumbercules.net/2007/04/30/donations-accepted/</link>
		<comments>http://gumbercules.net/2007/04/30/donations-accepted/#comments</comments>
		<pubDate>Mon, 30 Apr 2007 17:38:16 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Random Things]]></category>

		<guid isPermaLink="false">http://gumbercules.net/2007/04/30/donations-accepted/</guid>
		<description><![CDATA[This is just to let anyone who likes the software I write know that I am now accepting donations through PayPal. I&#8217;m not begging for your money, but if you feel that you&#8217;d like to reward me for providing you with some free software, it&#8217;s there for you to do. It also gives me more [...]]]></description>
			<content:encoded><![CDATA[<p>This is just to let anyone who likes the software I write know that I am now accepting donations through PayPal. I&#8217;m not begging for your money, but if you feel that you&#8217;d like to reward me for providing you with some free software, it&#8217;s there for you to do. It also gives me more of a reason to keep on doing it. Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://gumbercules.net/2007/04/30/donations-accepted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arch FTW!</title>
		<link>http://gumbercules.net/2007/03/20/arch-ftw/</link>
		<comments>http://gumbercules.net/2007/03/20/arch-ftw/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 14:32:44 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Arch]]></category>
		<category><![CDATA[Random Things]]></category>

		<guid isPermaLink="false">http://gumbercules.net/wordpress/2007/03/20/arch-ftw/</guid>
		<description><![CDATA[I&#8217;ve been using Arch Linux on my laptop for about a month now, and last night I was ready to give up on it. One update completely borked a lot of packages. But after researching a little more, I discovered that the mirror I synced to was using a more up-to-date tree than the rest [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using Arch Linux on my laptop for about a month now, and last night I was ready to give up on it. One update completely borked a lot of packages. But after researching a little more, I discovered that the mirror I synced to was using a more up-to-date tree than the rest of the mirrors. So I actually set my mirrors correctly, removed the unstable packages that were installed from the broken mirror, and went about my merry way.</p>
]]></content:encoded>
			<wfw:commentRss>http://gumbercules.net/2007/03/20/arch-ftw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
