<?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>Tophography &#187; Programming</title>
	<atom:link href="http://thetopher.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://thetopher.com</link>
	<description>All things Topher, and other stuff too.</description>
	<lastBuildDate>Thu, 22 Jul 2010 21:41:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Learning Perl</title>
		<link>http://thetopher.com/2008/03/01/learning-perl/</link>
		<comments>http://thetopher.com/2008/03/01/learning-perl/#comments</comments>
		<pubDate>Sat, 01 Mar 2008 08:11:48 +0000</pubDate>
		<dc:creator>Topher</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://thetopher.com/2008/03/01/learning-perl/</guid>
		<description><![CDATA[I had to start learning Perl this week for a little project that I was assigned. I spent most of Tuesday reading out of Programming Perl, and then spent all of Wednesday porting a Bourne Shell script over to Perl. Even though reading from the Camel book for 8 hours in one day was not [...]]]></description>
			<content:encoded><![CDATA[<p>I had to start learning Perl this week for a little project that I was assigned.  I spent most of Tuesday reading out of <a href="http://www.amazon.com/Programming-Perl-3rd-Larry-Wall/dp/0596000278">Programming Perl</a>, and then spent all of Wednesday porting a Bourne Shell script over to Perl.  Even though reading from the Camel book for 8 hours in one day was not particularly enjoyable, I now feel like I&#8217;ve finally gotten over the hump.  Okay, now that I&#8217;ve shared that gem of a pun with you, let me also share the real reason for this post.  I&#8217;ve found Perl to be somewhat artistically inspiring, and in honor of the language, I&#8217;ve created this fine piece of art that I now present to the world.<img src='http://thetopher.com/pics/cat.jpg' alt='Perl Cat' /></p>
<p>And remember,<br />
Real Men use strict;</p>
]]></content:encoded>
			<wfw:commentRss>http://thetopher.com/2008/03/01/learning-perl/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Lesser known C stuff</title>
		<link>http://thetopher.com/2007/03/24/lesser-known-c-stuff/</link>
		<comments>http://thetopher.com/2007/03/24/lesser-known-c-stuff/#comments</comments>
		<pubDate>Sat, 24 Mar 2007 08:27:05 +0000</pubDate>
		<dc:creator>Topher</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://thetopher.com/2007/03/24/lesser-known-c-stuff/</guid>
		<description><![CDATA[I happened to be browsing through the ivtv driver source last night, trying to find out how closed captioning gets recorded. Anyway, I came across an operator that I had never seen before. The ellipses! It was something like this: switch (val) { case 0 ... 10 : printf("Between 0 and 10.n"); break; case 11 [...]]]></description>
			<content:encoded><![CDATA[<p>I happened to be browsing through the <a href="http://ivtvdriver.org/" title="ivtv driver">ivtv driver</a> source last night, trying to find out how closed captioning gets recorded.  Anyway, I came across an operator that I had never seen before. The ellipses!  It was something like this:</p>
<pre><code>
    switch (val)
    {
        case 0 ... 10 :
            printf("Between 0 and 10.n");
            break;
        case 11 ... 50 :
            printf("Somewhere from 11 to 50.n");
            break;
        case 51 ... 99999 :
            printf("Really big.n");
            break;
    }
</code></pre>
<p>Isn&#8217;t that just crazy?  Apparently, it&#8217;s an extension that gcc supports.  I found a nice Red Hat <a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gcc/index.html">manual</a> that has some great stuff on gcc.  I never would have found it without the assistance of <a href="http://theclarkfamily.name/blog/">Lord Byron</a>.  I had to ask the <a href="http://www.plug.org">PLUG</a> mailing list about it because I couldn&#8217;t find anything about it with Google, because I was searching for &#8220;C ellipses operator.&#8221;  <a href="http://theclarkfamily.name/blog/">Lord Byron</a> told me that it was known as a &#8220;case range.&#8221;  It&#8217;s amazing what using correct search terms can do for you.</p>
<p>Anyway, I recall reading somewhere that you should never blog while drunk.  This isn&#8217;t a problem for me since I don&#8217;t drink, but I&#8217;ve been told that lack of sleep can have a similar effects on a person, so I&#8217;m going to put my laptop down and go to sleep now.</p>
<p>[Disclaimer]  This post took me about 2 weeks to write.  I started it two weeks ago, then realized that my version of WordPress was _horrible_ at formatting code.  It was ignoring my &lt;pre&gt; tags!  I decided to upgrade WordPress before I drove myself insane trying to fight against WordPress, but then I got distracted, and never got around to doing the upgrade until now.</p>
]]></content:encoded>
			<wfw:commentRss>http://thetopher.com/2007/03/24/lesser-known-c-stuff/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
