<?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>SpaceRodent &#187; Code</title>
	<atom:link href="http://www.spacerodent.org/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spacerodent.org</link>
	<description>Move along…Nothing to see here…</description>
	<lastBuildDate>Sun, 07 Aug 2011 05:16:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>iPhone from locked to unlocked back to locked</title>
		<link>http://www.spacerodent.org/2009/09/iphone-from-locked-to-unlocked-back-to-locked/</link>
		<comments>http://www.spacerodent.org/2009/09/iphone-from-locked-to-unlocked-back-to-locked/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 19:27:16 +0000</pubDate>
		<dc:creator>dennisr</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Programs]]></category>

		<guid isPermaLink="false">http://www.spacerodent.org/?p=256</guid>
		<description><![CDATA[I have been an iPhone user since February when I got the 8GB 3G model. I love it. I call it my tricorder. It has everything a geek on the go needs. I have about nine screens of applications and games. A lot of my friends also have iPhones and most of theirs are jail [...]]]></description>
			<content:encoded><![CDATA[<p>I have been an iPhone user since February when I got the 8GB 3G model.  I love it.  I call it my tricorder.  It has everything a geek on the go needs.  I have about nine screens of applications and games.</p>
<p>A lot of my friends also have iPhones and most of theirs are jail broken and run the Cydia app store.  I thought maybe I was missing out so I decided to take the plunge and jail break my phone.</p>
<p>There is a lot of documentation out there and I was a little nervous about doing it.  I wanted to be sure I had the latest and most up-to-date information.</p>
<p>A Google query here and there revealed two primary methods.  Every time I searched for &#8220;iphone unlock&#8221; ads for automaticiphoneunlocker.com were shown.  Its looked good.  I pay $29.99 and download a piece of software that does all the work for me.</p>
<p>Well there is a sucker born every minute and it was my time to be the sucker.</p>
<p>I paid the $29.99 and instead of getting a piece of software that does it automatically I got instructions and multiple downloads that pretty much mimicked everything else out there.  Now the instructions were so detailed even a noob could follow them but still it was not automatic.</p>
<p>I had to follow this complicated 20 plus step process that involved wiping my phone and deleting everything on it. (I had backups so I wasn&#8217;t worried).</p>
<p>The whole process took about 30 minutes quite a bit longer than the five minutes the ad promised.</p>
<p>Okay so my phone was now unlocked and I had this Cydia app store icon &#8211; now what?  Well that was the end of the instructions.  At this point I had to do more googling and reading up on Cydia to see what exactly I could do with it.</p>
<p>In a nutshell its Debian apt-get with a nice front end similar to Synaptic on Ubuntu.</p>
<p>Okay what to install?  Well more googling revealed something called winterboard which is a theme manager.  From there I installed some different themes and a category application.</p>
<p>All of a sudden it was 1997 again and I was playing with <a href="http://www.enlightenment.org/p.php?p=about&#038;l=en">Enlightenment</a>  (an awesome window manager for X).  For its time there was nothing cooler.  Gnome and KDE were babies and if you wanted something &#8220;cool&#8221; you ran it.</p>
<p>I was back in that mindset.  What looks cool.  Oh a neat clock.  New icons!  Look at that awesome wallpaper.</p>
<p>After about an hour playing with the themes and Cydia I realized that one of the reasons I love Apple computers and the iPhone so much is it just works (and it looks good in its own right too).</p>
<p>I have long since given up making my desktop and windows look &#8220;cool&#8221;.  I am firmly in the function over form camp now.</p>
<p>I don&#8217;t want to tweak my phone endlessly.  I don&#8217;t want to worry about upgrades breaking everything.  I didn&#8217;t want to be cool; I just wanted an iPhone.</p>
<p>So I un-unlocked my phone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacerodent.org/2009/09/iphone-from-locked-to-unlocked-back-to-locked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Computer programming unplugged</title>
		<link>http://www.spacerodent.org/2008/04/computer-programming-unplugged/</link>
		<comments>http://www.spacerodent.org/2008/04/computer-programming-unplugged/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 17:26:30 +0000</pubDate>
		<dc:creator>dennisr</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.spacerodent.org/index.php/2008/04/09/computer-programming-unplugged/</guid>
		<description><![CDATA[I just found this via reddit.com and I think it is brilliant! Computer Programming Unplugged]]></description>
			<content:encoded><![CDATA[<p>I just found this via <a href="http://reddit.com/r/programming/info/6f5rc/comments/">reddit.com</a> and I think it is brilliant!  <a href="http://csunplugged.com/">Computer Programming Unplugged</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacerodent.org/2008/04/computer-programming-unplugged/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby&#039;s not ready</title>
		<link>http://www.spacerodent.org/2008/04/rubys-not-ready/</link>
		<comments>http://www.spacerodent.org/2008/04/rubys-not-ready/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 06:07:33 +0000</pubDate>
		<dc:creator>dennisr</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.spacerodent.org/index.php/2008/04/07/rubys-not-ready/</guid>
		<description><![CDATA[I am not a Ruby fan. I really like Python. I have never really been able to accurately explain why I don&#8217;t like Ruby. Well I just found a lengthy post that breaks down the differences in Ruby and Python via reddit: http://glyphobet.net/blog/essay/228. The author does a great job of breaking down the Ruby-isms I [...]]]></description>
			<content:encoded><![CDATA[<p>I am not a Ruby fan.  I really like Python.  I have never really been able to accurately explain why I don&#8217;t like Ruby.  Well I just found a lengthy post that breaks down the differences in Ruby and Python via reddit: <a href="http://glyphobet.net/blog/essay/228">http://glyphobet.net/blog/essay/228</a>.  The author does a great job of breaking down the Ruby-isms I don&#8217;t like and I learned about some I didn&#8217;t know about.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacerodent.org/2008/04/rubys-not-ready/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stupid Title, Great Book</title>
		<link>http://www.spacerodent.org/2008/04/stupid-title-great-book/</link>
		<comments>http://www.spacerodent.org/2008/04/stupid-title-great-book/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 17:48:23 +0000</pubDate>
		<dc:creator>dennisr</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.spacerodent.org/index.php/2008/04/02/stupid-title-great-book/</guid>
		<description><![CDATA[I just picked up Secrets of The Rock Star Programmers: Riding the IT Crest. Wow what a horrible title. Good thing the book is really good. Ed Burns interviews well known folks in the field of programming. He asks them a range of questions from &#8220;How do you setup a new machine to work on?&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>I just picked up <a href="http://www.amazon.com/Secrets-Rock-Star-Programmers-Riding/dp/0071490833">Secrets of The Rock Star Programmers: Riding the IT Crest</a>.  Wow what a horrible title.  Good thing the book is really good.  Ed Burns interviews well known folks in the field of programming.  He asks them a range of questions from &#8220;How do you setup a new machine to work on?&#8221; to &#8220;How do you keep the work/life balance?&#8221;.  Someone once said that to be successful you need to study the habits of successful people, so this is my attempt at that I guess.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacerodent.org/2008/04/stupid-title-great-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Posting from the command line</title>
		<link>http://www.spacerodent.org/2006/08/posting-from-the-command-line/</link>
		<comments>http://www.spacerodent.org/2006/08/posting-from-the-command-line/#comments</comments>
		<pubDate>Mon, 14 Aug 2006 20:41:37 +0000</pubDate>
		<dc:creator>dennisr</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.spacerodent.org/index.php/2006/08/14/posting-from-the-command-line/</guid>
		<description><![CDATA[Posting from the command line is cool. I found a wordpress library for python: http://code.google.com/p/wordpress-library/ and wrote a little script to do the rest.]]></description>
			<content:encoded><![CDATA[<p>Posting from the command line is cool.  I found a wordpress library for python:</p>
<p><a href="http://code.google.com/p/wordpress-library/">http://code.google.com/p/wordpress-library/</a> and wrote a little script to do the rest.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacerodent.org/2006/08/posting-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Nature of Lisp</title>
		<link>http://www.spacerodent.org/2006/05/the-nature-of-lisp/</link>
		<comments>http://www.spacerodent.org/2006/05/the-nature-of-lisp/#comments</comments>
		<pubDate>Tue, 09 May 2006 06:23:55 +0000</pubDate>
		<dc:creator>dennisr</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.spacerodent.org/index.php/2006/05/08/the-nature-of-lisp/</guid>
		<description><![CDATA[I just read a great article on Lisp called the Nature of Lisp as someone who has been trying to figure out why Lisp is so cool to so many people this helped a lot. I suggest you read it.]]></description>
			<content:encoded><![CDATA[<p>I just read a great article on Lisp called the <a href="http://www.defmacro.org/ramblings/lisp.html">Nature of Lisp</a> as someone who has been trying to figure out why Lisp is so cool to so many people this helped a lot.  I suggest you read it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacerodent.org/2006/05/the-nature-of-lisp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Long time, no post&#8230;</title>
		<link>http://www.spacerodent.org/2006/04/long-time-no-post/</link>
		<comments>http://www.spacerodent.org/2006/04/long-time-no-post/#comments</comments>
		<pubDate>Sun, 30 Apr 2006 18:58:46 +0000</pubDate>
		<dc:creator>dennisr</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.spacerodent.org/index.php/2006/04/30/long-time-no-post/</guid>
		<description><![CDATA[I haven&#8217;t written anything in the last week because I have been slammed at work. I moved to a new team and I am doing more development work. This is good because eventually I want to be a full time programmer. Right now I am working in the high level languages like Perl and Python [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t written anything in the last week because I have been slammed at work.  I moved to a new team and I am doing more development work.  This is good because eventually I want to be a full time programmer.  Right now I am working in the high level languages like Perl and Python but I do have C training and I think I would like to do more lower level stuff.</p>
<p>I also am getting my first taste of what it means to be a programmer.  Being a system administrator is fun because you can program when you want to &#8211; if I ever got bored of a script I was working on I could do something else.  Its another story when your primary role is to write that script.  Getting bored? Too bad finish it.</p>
<p>My first project is a Perl script about 2,000 lines long with lots of mySQL interactions.  This also marks the first time I have worked with databases in any meaningful way.  Took me about three or four days to get to the point where I was comfortable writing SQL queries.  The Perl DBI layer makes a lot of this easy.</p>
<p>I am also now writing code that other people depend on which is a lot different from the system administrator scripts I usually write.  Now my code needs to do the right thing under a variety of circumstances.  I am making liberal use of Perl&#8217;s eval statement so I can have some sort of deterministic behavior.</p>
<p>Recently I read a Damien Katz blog entry called <a href="http://damienkatz.net/2006/04/error_code_vs_e.html">Error codes or Exceptions? Why is Reliable Software so Hard?</a> which really spoke to me on my current plight.  I am doing a combination of his three error handling styles &#8211; including the travel back in time one (I have rollback queue that gets poplulated with the actions to undo a step, in the case of an error I just run through the queue and have gone back in time:))</p>
<p>Writing a Perl script this big has really made me appreciate Perl more in its flexability but has also made me yearn for Python more for its cleaner syntax and excellent exception handling.</p>
<p>At this point I am on the fence whether I want to be a full time programmer but this experience is a great way for me to get my toe in the water without jumping in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacerodent.org/2006/04/long-time-no-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python web programming</title>
		<link>http://www.spacerodent.org/2006/03/python-web-programming/</link>
		<comments>http://www.spacerodent.org/2006/03/python-web-programming/#comments</comments>
		<pubDate>Mon, 20 Mar 2006 04:45:25 +0000</pubDate>
		<dc:creator>dennisr</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.spacerodent.org/index.php/2006/03/19/python-web-programming/</guid>
		<description><![CDATA[I starting playing with web.py today to see how easy it would be to make a simple web app. I followed the tutorial and everything was going well until it all stopped working. Took me about 20 minutes to figure out was wrong. Can you see it? urls = ( &#8216;/&#8217;, &#8216;view&#8217; &#8216;/add&#8217;,'add&#8217; ) No? [...]]]></description>
			<content:encoded><![CDATA[<p>I starting playing with <a href="http://webpy.org/">web.py</a> today to see how easy it would be to make a simple web app.</p>
<p>I followed the tutorial and everything was going well until it all stopped working.  Took me about 20 minutes to figure out was wrong.  Can you see it?</p>
<div id="samplewebpy" style="font-family:monospace;">
urls = (<br />
    &#8216;/&#8217;, &#8216;view&#8217;<br />
    &#8216;/add&#8217;,'add&#8217;<br />
)
</div>
<p>No? Look again:</p>
<div id="samplewebpy" style="font-family:monospace;">
urls = (<br />
    &#8216;/&#8217;, &#8216;view&#8217;<font color="red">,</font><br />
    &#8216;/add&#8217;,'add&#8217;<br />
)
</div>
<p>That&#8217;s right I was missing a comma.  Did the program complain? No.  What was the output on the web browser: &#8220;not found&#8221;.</p>
<p>I wasn&#8217;t impressed.  I hate when stuff like that happens.  I will still play with web.py because it is so simple but I will be much more careful in the future.</p>
<p>I play a lot of computer games.  Most of those games require a serial number.  I am going to us web.py to make a small web app to store all of my serial numbers.  Seems like a good test and more complicated than the tutorials &#8220;todo list&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacerodent.org/2006/03/python-web-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl labels</title>
		<link>http://www.spacerodent.org/2006/03/perl-labels/</link>
		<comments>http://www.spacerodent.org/2006/03/perl-labels/#comments</comments>
		<pubDate>Thu, 16 Mar 2006 01:57:15 +0000</pubDate>
		<dc:creator>dennisr</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.spacerodent.org/index.php/2006/03/15/perl-labels/</guid>
		<description><![CDATA[I learned about Perl labels and thought I would pass it on. Basically a label names a block of code descriptively. They are usually uppercase. You can use next, redo and last within a labeled block. On the surface this doesn&#8217;t seem that useful until you start talking about loops within loops. Take the following [...]]]></description>
			<content:encoded><![CDATA[<p>I learned about Perl labels and thought I would pass it on.  Basically a label names a block of code descriptively.  They are usually uppercase.  You can use <b>next</b>, <b>redo</b> and <b>last</b> within a labeled block.  On the surface this doesn&#8217;t seem that useful until you start talking about loops within loops.</p>
<p>Take the following bit of code with out labels:</p>
<pre>
while ( $somecondition ) {
    # do some work
    for my $iterator (1..10) {
        # do some more work
    }
}
</pre>
<p>Let&#8217;s say you want to use <b>next</b> in the for loop to control the while loop.  There isn&#8217;t way to do that here.  You would have to come up with some other logic to handle that.  Using labels its very easy:</p>
<pre>
WHILE:
while ( $somecondition ) {
    # do some work
    FOR:
    for my $iterator (1..10) {
        # do some more work
        next WHILE;
    }
}
</pre>
<p>Of course the above is a meaningless example but you get the idea.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacerodent.org/2006/03/perl-labels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python debugging and emacs</title>
		<link>http://www.spacerodent.org/2006/03/python-debugging-and-emacs/</link>
		<comments>http://www.spacerodent.org/2006/03/python-debugging-and-emacs/#comments</comments>
		<pubDate>Sun, 12 Mar 2006 21:44:04 +0000</pubDate>
		<dc:creator>dennisr</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.spacerodent.org/index.php/2006/03/12/python-debugging-and-emacs/</guid>
		<description><![CDATA[I am normally a vim user but am looking at emacs again. One of the features that emacs has that I love is how it does interactive debugging. First thing to do is to have the python debugger in your path and called &#8216;pdb&#8217;. On my Ubuntu system that would be: cd ~/bin ln -s [...]]]></description>
			<content:encoded><![CDATA[<p>I am normally a vim user but am looking at emacs again.  One of the features that emacs has that I love is how it does interactive debugging.</p>
<p>First thing to do is to have the python debugger in your path and called &#8216;pdb&#8217;.  On my Ubuntu system that would be:</p>
<pre>cd ~/bin
ln -s /usr/lib/python2.4/pdb.py pdb</pre>
<p>Now edit your favorite python script with emacs and start the debugger:</p>
<pre>M-x pdb
pdb
<path to script></path></pre>
<p><img id="image20" src="http://www.spacerodent.org/wp-content/uploads/2006/03/emacs-screenshot.jpg" alt="emacs screenshot" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacerodent.org/2006/03/python-debugging-and-emacs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

