<?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>worrbase</title>
	<atom:link href="http://www.worrbase.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.worrbase.com</link>
	<description>Highlighting the thrilling adventures of William Orr</description>
	<lastBuildDate>Tue, 06 Jul 2010 08:04:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Formspring API Issues</title>
		<link>http://www.worrbase.com/2010/07/06/formspring-api-issues/</link>
		<comments>http://www.worrbase.com/2010/07/06/formspring-api-issues/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 08:04:16 +0000</pubDate>
		<dc:creator>worr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[formspring]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.worrbase.com/2010/07/06/formspring-api-issues/</guid>
		<description><![CDATA[I&#8217;ve been working on my Perl library for Formspring.me, and I&#8217;ve run into a pretty egregious issue. Apparently they aren&#8217;t following the OAuth spec correctly, and aren&#8217;t returning  a oauth_callback_confirmed parameter. The problem for me lies in that the wonderful Perl OAuth library, Net::OAuth requires that the OAuth response return this parameter, and errors [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on my Perl library for Formspring.me, and I&#8217;ve run into a pretty egregious issue. Apparently they aren&#8217;t following the OAuth spec correctly, and aren&#8217;t returning  a oauth_callback_confirmed parameter. The problem for me lies in that the wonderful Perl OAuth library, Net::OAuth requires that the OAuth response return this parameter, and errors if it&#8217;s not present. I&#8217;ve emailed api@formspring.me about it, but they have yet to answer my email.</p>
<p>[1] http://tools.ietf.org/html/rfc5849#section-2.1</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worrbase.com/2010/07/06/formspring-api-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Formspring.me API beta</title>
		<link>http://www.worrbase.com/2010/06/03/formspring-me-api-beta/</link>
		<comments>http://www.worrbase.com/2010/06/03/formspring-me-api-beta/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 07:19:11 +0000</pubDate>
		<dc:creator>worr</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[cpan]]></category>
		<category><![CDATA[formspring]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.worrbase.com/?p=40</guid>
		<description><![CDATA[formspring.me released a beta version of their API today. For those of you who don&#8217;t know, formspring.me is the popular social networking site that allows people to ask and answer anonymous questions. It uses Facebook Connect for user auth, as well as letting users sign up on the site if they don&#8217;t have a Facebook [...]]]></description>
			<content:encoded><![CDATA[<p>formspring.me released a beta version of their API today. For those of you who don&#8217;t know, formspring.me is the popular social networking site that allows people to ask and answer anonymous questions. It uses Facebook Connect for user auth, as well as letting users sign up on the site if they don&#8217;t have a Facebook account.</p>
<p>Apparently, as a joke some time ago, I signed up for the beta API. So I decided to develop a Perl module allowing easy use of the Formspring.me API. You can follow the development of it on my <a href="http://github.com/worr/WWW--Formspring" onclick="pageTracker._trackPageview('/outgoing/github.com/worr/WWW--Formspring?referer=');">github</a>. I plan to release this code to CPAN when I&#8217;m done so that other people can use it.</p>
<p>Since I&#8217;m new to the CPAN world, if one of you astute readers notices something blatantly wrong about my code, I&#8217;d appreciate it if you&#8217;d point it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worrbase.com/2010/06/03/formspring-me-api-beta/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My first COBOL program on z/OS</title>
		<link>http://www.worrbase.com/2010/04/25/my-first-cobol-program-on-zos/</link>
		<comments>http://www.worrbase.com/2010/04/25/my-first-cobol-program-on-zos/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 09:42:23 +0000</pubDate>
		<dc:creator>worr</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[cobol]]></category>
		<category><![CDATA[JCL]]></category>
		<category><![CDATA[mainframes]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[z/OS]]></category>

		<guid isPermaLink="false">http://www.worrbase.com/?p=34</guid>
		<description><![CDATA[Today, I got Hello World working in COBOL on an IBM Z9. This is actually surprisingly more difficult than it would seem. But I&#8217;m gonna document it here so I remember how to do it, and also in case some random z/OS n00b stumbles upon this entry.
Here is the Hello World file I wrote:

1
2
3
4
5
IDENTIFICATION DIVISION.
PROGRAM-ID. [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I got Hello World working in COBOL on an IBM Z9. This is actually surprisingly more difficult than it would seem. But I&#8217;m gonna document it here so I remember how to do it, and also in case some random z/OS n00b stumbles upon this entry.</p>
<p>Here is the Hello World file I wrote:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="cobol" style="font-family:monospace;"><span style="color: #008000; font-weight: bold;">IDENTIFICATION</span> <span style="color: #008000; font-weight: bold;">DIVISION</span><span style="color: #000066;">.</span>
<span style="color: #008000; font-weight: bold;">PROGRAM-ID</span><span style="color: #000066;">.</span> HELLO<span style="color: #000066;">.</span>
<span style="color: #008000; font-weight: bold;">PROCEDURE</span> <span style="color: #008000; font-weight: bold;">DIVISION</span><span style="color: #000066;">.</span>
    <span style="color: #000000; font-weight: bold;">DISPLAY</span> <span style="color: #ff0000;">'Hello, World'</span><span style="color: #000066;">.</span>
    <span style="color: #008000; font-weight: bold;">STOP</span> <span style="color: #008000; font-weight: bold;">RUN</span><span style="color: #000066;">.</span></pre></td></tr></table></div>

<p>Seems pretty easy, right? Well, yeah, no duh. It&#8217;s Hello World. I grabbed it from a Wikipedia article. It&#8217;s not exactly innovative genius. However, compiling it and linking it is a different story.</p>
<p>I tried at first using the ISPF foreground COBOL compiler. However, this was very non-obvious, and the documentation was lacking. All the documentation I found consisted mostly of how to do it through TSO, where it made mention that an ISPF interface did exist.</p>
<p>So then I went the JCL route.</p>
<p>IBM has some great documentation on how to do this. However, it is definitely not in the 900+ page Enterprise COBOL for z/OS Programming Guide. That was really just confusing. <a href="http://publib.boulder.ibm.com/infocenter/zos/basics/index.jsp?topic=/com.ibm.zos.zappldev/toc.htm" onclick="pageTracker._trackPageview('/outgoing/publib.boulder.ibm.com/infocenter/zos/basics/index.jsp?topic=/com.ibm.zos.zappldev/toc.htm&amp;referer=');">Here is the great documentation.</a> This is what got me off the ground.</p>
<p>My JCL ended up looking like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="" style="font-family:monospace;">//CLGP JOB
//CLG EXEC IGYWCLG
//COBOL.SYSIN DD DSN=HLQ.EXPERIME.COBOL<span class="br0">&#40;</span>HELLO<span class="br0">&#41;</span>,DISP=SHR</pre></td></tr></table></div>

<p>It&#8217;s really pretty simple. The first line just declares the name of the job (CLGP), the next line executes the terribly named COBOL compile, link-editor, and run JCL procedure. IBM wrote it so you don&#8217;t have to. The last line just loads the dataset member that contains all of the COBOL code.</p>
<p>See? Mainframes and COBOL are THAT easy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worrbase.com/2010/04/25/my-first-cobol-program-on-zos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LTSP</title>
		<link>http://www.worrbase.com/2010/04/22/ltsp/</link>
		<comments>http://www.worrbase.com/2010/04/22/ltsp/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 08:52:40 +0000</pubDate>
		<dc:creator>worr</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Systems Administration]]></category>

		<guid isPermaLink="false">http://www.worrbase.com/?p=32</guid>
		<description><![CDATA[I finally finished rolling out the new changes to CSH&#8217;s usercenter. I decided to move away from Fully Automatic Installation and move towards the thin client solution provided by LTSP.
FAI was really painful to test, as well as significantly more painful to manage. LTSP allows us to only update one machine, and install upgrades without [...]]]></description>
			<content:encoded><![CDATA[<p>I finally finished rolling out the new changes to CSH&#8217;s usercenter. I decided to move away from Fully Automatic Installation and move towards the thin client solution provided by <a href="http://ltsp.org" onclick="pageTracker._trackPageview('/outgoing/ltsp.org?referer=');">LTSP</a>.</p>
<p>FAI was really painful to test, as well as significantly more painful to manage. LTSP allows us to only update one machine, and install upgrades without having to reboot the machines to receive the softupdates (the FAI way).</p>
<p>One machine, in this case a virtual machine on CSH&#8217;s Xen cluster, runs all of the software for the clients. The terminal client connects to the terminal server&#8217;s login prompt until the user logs in. Then the client automatically ssh&#8217;s (with X forwarding of course) to the server and subsequently runs all of their software off of that.</p>
<p>It is bandwidth heavy (on that segment of our network anyway), but it works very well. The clients are just as fast with the X forwarding as they would be with a locally installed OS (these machines are ultra slow).</p>
<p>Really, there isn&#8217;t much to say other than FAI is terrible. Related: I plan on setting up <a href="http://www.puppetlabs.com/" onclick="pageTracker._trackPageview('/outgoing/www.puppetlabs.com/?referer=');">puppet</a> at some point for myself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worrbase.com/2010/04/22/ltsp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>COBOL</title>
		<link>http://www.worrbase.com/2010/03/13/cobol/</link>
		<comments>http://www.worrbase.com/2010/03/13/cobol/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 08:24:01 +0000</pubDate>
		<dc:creator>worr</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[cobol]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[mainframes]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[totally not 60 years old]]></category>

		<guid isPermaLink="false">http://www.worrbase.com/?p=19</guid>
		<description><![CDATA[So I haven&#8217;t really posted in the last month, mainly because I haven&#8217;t done anything interesting. I&#8217;ve been writing some Perl code using Catalyst and Mason. But that&#8217;s not terribly exciting.
I am however, taking a Mainframes course at RIT this quarter. It promises to be relatively exciting. In it, we get to learn the intricacies [...]]]></description>
			<content:encoded><![CDATA[<p>So I haven&#8217;t really posted in the last month, mainly because I haven&#8217;t done anything interesting. I&#8217;ve been writing some Perl code using Catalyst and Mason. But that&#8217;s not terribly exciting.</p>
<p>I am however, taking a Mainframes course at RIT this quarter. It promises to be relatively exciting. In it, we get to learn the intricacies of z/OS, and how to manage one of those beasts. That&#8217;ll be fun. Surprisingly, there&#8217;s a programming project towards the end of it (it&#8217;s surprising because it&#8217;s a Networking and Sysadmin course, we don&#8217;t program much). And since I&#8217;m learning how to administer and use mainframes, I thought to myself, &#8220;Hell, let&#8217;s do this project in COBOL.&#8221; So here I sit, trying to find a decent COBOL tutorial on the internet.</p>
<p>If anyone finds one, please send it to me. It&#8217;d be nice.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worrbase.com/2010/03/13/cobol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google App Engine, Twitter4J and OAuth</title>
		<link>http://www.worrbase.com/2010/03/13/google-app-engine-twitter4j-and-oauth/</link>
		<comments>http://www.worrbase.com/2010/03/13/google-app-engine-twitter4j-and-oauth/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 08:17:26 +0000</pubDate>
		<dc:creator>worr</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[app engine]]></category>
		<category><![CDATA[datastore]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[gwt]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[oauth]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter4j]]></category>

		<guid isPermaLink="false">http://www.worrbase.com/?p=18</guid>
		<description><![CDATA[So I&#8217;m writing a Twitter app in Java on Google App Engine right now with my friend, Dave Bright. We&#8217;re using Google Web Toolkit for our frontend, and App Engine for hosting and database and such. Twitter4J is our Twitter library of choice.
Since we ran into a spot of trouble using OAuth with the Twitter4J [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;m writing a Twitter app in Java on Google App Engine right now with my friend, Dave Bright. We&#8217;re using Google Web Toolkit for our frontend, and App Engine for hosting and database and such. <a href="http://twitter4j.org" onclick="pageTracker._trackPageview('/outgoing/twitter4j.org?referer=');">Twitter4J</a> is our Twitter library of choice.</p>
<p>Since we ran into a spot of trouble using OAuth with the Twitter4J library, I decided to give a bit of a brief tutorial on how to get it working on App Engine. There is actually very different than the code in my as I do some more error checking, and need to do some other stuff with my datastore.</p>
<h2>Twitter4J OAuth Overview</h2>
<ol>
<li>Set the consumer key and secret for your twitter object with setOAuthConsumer(key, secret)</li>
<li>Get a request token with getRequestToken(callback_uri)</li>
<li>Persist the request token somewhere, we&#8217;ll need the original later when we need to get the access token.</li>
<li>Redirect the user to the URL returned by getAuthorizationURL()</li>
<li>Get the persisted request token, setOAuthConsumer again.</li>
<li>Call getOAuthAccessToken(request_token, oauth_verifier) to get an access token</li>
<li>Persist that token with the user data, you&#8217;ll need this everytime you want to authenticate.</li>
</ol>
<h2>Some incomplete example code</h2>
<p>Please note, this is not code I actually have in production anywhere. It&#8217;s original code just for the blog.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">String</span> authenticate<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    TwitterFactory tf <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> TwitterFactory<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    Twitter twitter <span style="color: #339933;">=</span> tf.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// This is actually really important, as Twitter WILL NOT send you back the oauth_verifier if</span>
    <span style="color: #666666; font-style: italic;">// you don't provide the callback URI, even if you provide a callback on their site</span>
    twitter.<span style="color: #006633;">setOAuthConsumer</span><span style="color: #009900;">&#40;</span>CONSUMER_KEY, CONSUMER_SECRET<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    RequestToken rtoken <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> RequestToken<span style="color: #009900;">&#40;</span>CALLBACK_URI<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// This is a special class that just relates the token to the RequestToken object in the app engine</span>
    <span style="color: #666666; font-style: italic;">// datastore. The token string itself is the key.</span>
    OAuthTemp temp <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> OAuthTemp<span style="color: #009900;">&#40;</span>rtoken.<span style="color: #006633;">getToken</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>, rtoken<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Our persistence manager is named pm</span>
    pm.<span style="color: #006633;">makePersistent</span><span style="color: #009900;">&#40;</span>temp<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">return</span> rtoken.<span style="color: #006633;">getAuthorizationURL</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>The second bit of the code gets called when the user is returned to the page. You need to get the oauth_token and the oauth_verifier GET variables and pass them to this function.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> authenticatePartII<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> oauth_token, <span style="color: #003399;">String</span> oauth_verifier<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    TwitterFactory tf <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> TwitterFactory<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    Twitter twitter <span style="color: #339933;">=</span> tf.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Get the temp object out of the datastore, and get the old RequestToken</span>
    <span style="color: #666666; font-style: italic;">// Yes, it MUST be the old RequestToken. Or at least, have all the same parameters</span>
    <span style="color: #666666; font-style: italic;">// as the old RequestToken.</span>
    <span style="color: #003399;">Key</span> k <span style="color: #339933;">=</span> <span style="color: #003399;">KeyFactory</span>.<span style="color: #006633;">createKey</span><span style="color: #009900;">&#40;</span>OAuthTemp.<span style="color: #000000; font-weight: bold;">class</span>.<span style="color: #006633;">getSimpleName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>, oauth_token<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    OAuthTemp temp <span style="color: #339933;">=</span> pm.<span style="color: #006633;">getObjectById</span><span style="color: #009900;">&#40;</span>OAuthTemp.<span style="color: #000000; font-weight: bold;">class</span>, k<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    RequestToken rtoken <span style="color: #339933;">=</span> temp.<span style="color: #006633;">getrtoken</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// You MUST provide the original RequestToken and the oauth_verifier passed to you by Twitter</span>
    twitter.<span style="color: #006633;">setOAuthConsumer</span><span style="color: #009900;">&#40;</span>CONSUMER_KEY, CONSUMER_SECRET<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    AccessToken ac  <span style="color: #339933;">=</span> twitter.<span style="color: #006633;">getOAuthAccessToken</span><span style="color: #009900;">&#40;</span>rtoken, oauth_verifier<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// You really don't need the RequestToken information after you got your AccessToken, so</span>
    <span style="color: #666666; font-style: italic;">// delete it.</span>
    twitter.<span style="color: #006633;">setOAuthAccessToken</span><span style="color: #009900;">&#40;</span>ac<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    pm.<span style="color: #006633;">deletePersistent</span><span style="color: #009900;">&#40;</span>temp<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// However you store user data, you ought to associate the AcessToken object you</span>
    <span style="color: #666666; font-style: italic;">// just got with your twitter user, and pop it in the datastore. I'll leave that bit up to you.</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>That&#8217;s all there really is to it. The Twitter4J library isn&#8217;t the best documented library, and just looking at the Javadocs and the Desktop-centric code examples isn&#8217;t really that helpful. I hope this clears up some confusion on how to get Twitter4J working with OAuth.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worrbase.com/2010/03/13/google-app-engine-twitter4j-and-oauth/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Useless programs are the best programs</title>
		<link>http://www.worrbase.com/2010/01/31/useless-programs-are-the-best-programs/</link>
		<comments>http://www.worrbase.com/2010/01/31/useless-programs-are-the-best-programs/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 10:02:31 +0000</pubDate>
		<dc:creator>worr</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[apt-echo]]></category>
		<category><![CDATA[boredom]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[jokes]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[useless]]></category>
		<category><![CDATA[waste of time]]></category>

		<guid isPermaLink="false">http://www.worrbase.com/?p=17</guid>
		<description><![CDATA[A couple of weekends ago, a couple of friends and I were joking about making a useless Debian utility called apt-echo. So that weekend, I sat down and wrote it in Perl. I also went and made a Debian package, complete with relevant documentation. I never really put it anywhere.
So I got bored and decided [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of weekends ago, a couple of friends and I were joking about making a useless Debian utility called apt-echo. So that weekend, I sat down and wrote it in Perl. I also went and made a Debian package, complete with relevant documentation. I never really put it anywhere.</p>
<p>So I got bored and decided to make a really an awesome web 1.0 page for apt-echo, as well as off it for download. I even set up a github repo for it. If you want to see the site, it&#8217;s <a href="http://apt-echo.worrbase.com" onclick="pageTracker._trackPageview('/outgoing/apt-echo.worrbase.com?referer=');">right here</a>.</p>
<p>So go ahead, install it. Maybe someone will find it useful one day. It&#8217;s slightly faster than aptitude search, and it has few dependencies. Send me an e-mail if there are bugs. Or if you like it. Or if you found a way for it to be useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worrbase.com/2010/01/31/useless-programs-are-the-best-programs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My major is too easy&#8230;</title>
		<link>http://www.worrbase.com/2010/01/18/my-major-is-too-easy/</link>
		<comments>http://www.worrbase.com/2010/01/18/my-major-is-too-easy/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 08:10:24 +0000</pubDate>
		<dc:creator>worr</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[boredom]]></category>
		<category><![CDATA[brainfuck]]></category>
		<category><![CDATA[code generation]]></category>
		<category><![CDATA[csh]]></category>
		<category><![CDATA[hello world]]></category>
		<category><![CDATA[interpreter]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[useless]]></category>

		<guid isPermaLink="false">http://www.worrbase.com/?p=16</guid>
		<description><![CDATA[This weekend, I had absolutely nothing to do. I didn&#8217;t have any homework, studying, projects or the like because my major is far too easy. So I got bored and wrote a complete Brainfuck interpreter in Perl.
The interpreter was the easiest; it took me a morning to get that working albeit without support for nested [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend, I had absolutely nothing to do. I didn&#8217;t have any homework, studying, projects or the like because my major is far too easy. So I got bored and wrote a complete <a href="http://en.wikipedia.org/wiki/Brainfuck" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Brainfuck?referer=');">Brainfuck</a> interpreter in Perl.</p>
<p>The interpreter was the easiest; it took me a morning to get that working albeit without support for nested parens. After that, I decided to write a text to Brainfuck converter, which (not surprisingly) turns text into executable Brainfuck code. Maybe if I get bored again, I could write a module to output the equivalent Perl or C code given some Brainfuck code.</p>
<p>This was my first real project using object oriented Perl. In all honesty, I like that Perl&#8217;s object system allows for many different types of objects (objects can be scalars, arrays, or hashes) and how flexible that is. Unfortunately, I didn&#8217;t get to exploit that flexibility in my code. It&#8217;s still cool though.</p>
<p>What I wrote is 2 Perl modules that make up the linked list that store data generated by Brainfuck code, a Perl module that interprets and runs the code, and a Perl module that translates text to executable Brainfuck code. I know I could have used a pre-built linked list, but I thought it was more fun to write my own.</p>
<p>The biggest challenge was definitely writing the translation code. I could&#8217;ve done it the easy way, and just output x amount of pluses for the character code of each letter, but I decided that was the lamest way to write Brainfuck. Instead, I looped through each character in the phrase, and added some nodes in my Brainfuck code that corresponded to the tens place of each character code. Then, when outputting a character, my Brainfuck code would change the data pointer to the node that was set to the tens place of the character code of the desired character, and increment or decrement it to the proper value.</p>
<p>A more ideal way to do it (to generate cleaner Brainfuck, at least) is to set each of those prep nodes to the nearest multiple of 20 for each character code, and then use whichever node is closest to the desired value. Maybe if I feel like doing more with this, then I&#8217;ll add that feature (probably not).</p>
<p>In addition to writing all this, I also made a <a href="http://github.com/worr" onclick="pageTracker._trackPageview('/outgoing/github.com/worr?referer=');">GitHub</a> account. My GitHub has all the above code, so you can clone the repo if you want to see what the code looks like (it&#8217;s actually really easy to read Perl).</p>
<p>This whole idea came from an idea on CSH. A guy here decided to publish a &#8220;Hello World of the Week&#8221; article in our newsletter, and to combat him I wrote a Brainfuck version of Hello World. This contest grew, and other people joined (albeit humorously) with such contributions as a boot loader that printed out Hello World, Hello World in White Space, and Hello World in Microsoft Word. My contribution (also in my git repo) generated valid Brainfuck code for the phrase Hello World, and then ran it through my interpreter (aka Hello World in 425ish lines).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worrbase.com/2010/01/18/my-major-is-too-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>omirssi: An Omegle irssi plugin</title>
		<link>http://www.worrbase.com/2009/12/25/omirssi-an-omegle-irssi-plugin/</link>
		<comments>http://www.worrbase.com/2009/12/25/omirssi-an-omegle-irssi-plugin/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 20:57:24 +0000</pubDate>
		<dc:creator>worr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[boredom]]></category>
		<category><![CDATA[easy]]></category>
		<category><![CDATA[irssi]]></category>
		<category><![CDATA[omegle]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.worrbase.com/?p=15</guid>
		<description><![CDATA[Sometimes I really hate going home. I&#8217;m on Christmas break, and I&#8217;ve spent the majority of my time just watching movies in my basement. I got really bored, so yesterday morning while I was watching &#8220;Juno&#8221; (love that movie), I wrote an Omegle script for irssi. I just made up a google code page for [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I really hate going home. I&#8217;m on Christmas break, and I&#8217;ve spent the majority of my time just watching movies in my basement. I got really bored, so yesterday morning while I was watching &#8220;Juno&#8221; (love that movie), I wrote an <a href="http://omegle.com" target="_self" onclick="pageTracker._trackPageview('/outgoing/omegle.com?referer=');">Omegle</a> script for irssi. I just made up a <a href="http://code.google.com/p/omirssi" target="_self" onclick="pageTracker._trackPageview('/outgoing/code.google.com/p/omirssi?referer=');">google code</a> page for download, so have at it irssi users. Maybe I&#8217;ll get around to adding it to the big list of irssi scripts sometime soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worrbase.com/2009/12/25/omirssi-an-omegle-irssi-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>E-mail me!</title>
		<link>http://www.worrbase.com/2009/12/14/e-mail-me/</link>
		<comments>http://www.worrbase.com/2009/12/14/e-mail-me/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 13:35:41 +0000</pubDate>
		<dc:creator>worr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[unimportant]]></category>

		<guid isPermaLink="false">http://www.worrbase.com/?p=14</guid>
		<description><![CDATA[Got my mail server up and running (finally). Now you can e-mail me at will@worrbase.com.
]]></description>
			<content:encoded><![CDATA[<p>Got my mail server up and running (finally). Now you can e-mail me at will@worrbase.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worrbase.com/2009/12/14/e-mail-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
