<?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>The Nameless Site</title>
	<atom:link href="http://www.halkeye.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.halkeye.net</link>
	<description>Meow Meow Meow Meow</description>
	<lastBuildDate>Sun, 01 Jan 2012 21:58:53 +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>Terraria</title>
		<link>http://www.halkeye.net/2011/09/13/terraria/</link>
		<comments>http://www.halkeye.net/2011/09/13/terraria/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 19:39:33 +0000</pubDate>
		<dc:creator>halkeye</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[PC]]></category>

		<guid isPermaLink="false">http://www.halkeye.net/?p=415</guid>
		<description><![CDATA[Sometime during the last big steam sale (I think it was the summer sale) my roommate and I both picked up Terraria off of steam. I don&#8217;t think either of us played it for months. It was always on the to play list, but I was busy with other games, he was busy with Minecraft. So we just put it off. Man was that a mistake. I played it a bit [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime during the last big steam sale (I think it was the summer sale) my roommate and I both picked up <a title="Terraria" href="http://store.steampowered.com/app/105600/?snr=1_4_4__13">Terraria</a> off of steam. I don&#8217;t think either of us played it for months. It was always on the to play list, but I was busy with other games, he was busy with Minecraft. So we just put it off.</p>
<p>Man was that a mistake.</p>
<p>I played it a bit one night waiting for a group to show up for another game. The group ended up canceling so I kept playing. Next thing I had known 3 hours had gone by,  It wasn&#8217;t hard to get my roommate interested. It was a simple game with low requirements.</p>
<p>I quickly found and setup a <a href="http://www.tdsm.org/">multiplayer server</a> for the two of us.</p>
<p>Fast forward a couple weeks. I get back from family trip/PAX to find my roommate has built a couple really sweet houses.</p>
<p><a href="http://www.halkeye.net/files/2011/09/Screenshot-Terraria-RoomatesHouse.png"><img class="alignnone size-thumbnail wp-image-421" src="http://www.halkeye.net/files/2011/09/Screenshot-Terraria-RoomatesHouse-150x150.png" alt="" width="150" height="150" /></a></p>
<p>Got my friend <a title="For Great Justice" href="http://www.forgreatjustice.ca/">Nigel</a> playing on my server the last few nights. Last night My roommate and I went down to the lava areas to mine for <a href="http://terraria.wikia.com/wiki/Obsidian">Obsidian</a>, after about an hour, we came back up, to find Nigel had been busy on his own house. I can&#8217;t wait to see what we do next. I think the group exploring is the most fun.</p>
<p>I have to say I know I&#8217;ve gotten my $10 worth (it was on sale, so actually less) probably a hundred times over so far.</p>
<p>
I&#8217;ve always been annoyed there is no steam cloud support. You can&#8217;t switch between computers to play the same character/world.</p>
<p>Today I remembered that <a href="http://db.tt/CfzMzrE">dropbox</a> is a cheap and easy cloud save game support</p>
<p>
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p415code3'); return false;">View Code</a> WINBATCH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4153"><td class="code" id="p415code3"><pre class="winbatch" style="font-family:monospace;">junction <span style="color: #ff0000;">&quot;%USERPROFILE%\Documents\My Games\Terraria&quot;</span> Terraria</pre></td></tr></table></div>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halkeye.net/2011/09/13/terraria/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lacuna Expanse</title>
		<link>http://www.halkeye.net/2010/10/20/lacuna-expanse/</link>
		<comments>http://www.halkeye.net/2010/10/20/lacuna-expanse/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 20:08:55 +0000</pubDate>
		<dc:creator>halkeye</dc:creator>
				<category><![CDATA[Gaming]]></category>

		<guid isPermaLink="false">http://www.halkeye.net/?p=391</guid>
		<description><![CDATA[With all the new recent games that have come out, across all systems, I keep finding it surprising that I&#8217;m playing a browser based (originally) mmo. I describe the game as a merge of both simcity and any space trading sim. I&#8217;ve sucked in at least 2 coworkers, and a few others have tried this game out. I love the public wiki based help system, complete with a public tech tree. Its [...]]]></description>
			<content:encoded><![CDATA[<p>With all the new recent games that have come out, across all systems, I keep finding it surprising that I&#8217;m playing a browser based (originally) mmo.</p>
<p>I describe the game as a merge of both simcity and any space trading sim. I&#8217;ve sucked in at least 2 coworkers, and a few others have tried this game out. I love the <a href="http://community.lacunaexpanse.com/wiki">public wiki based help system</a>, complete with a <a href="http://community.lacunaexpanse.com/wiki/tech-tree">public tech tree</a>. Its very cool how every ingame building and ship (and a few others) all make sure to have a wiki link which people can expand.</p>
<p>The game has a completely open jsonrpc based api. Which allows all kinds of fun tools to be created. I&#8217;ve seen one set of tools being created to generate nice solar system maps, and we&#8217;ve been discussing various other random tools at work.</p>
<p>I think its awesome how you are safe and can continue to do the single player experience of building your planet up, but the instant you send out colony ships and expand you are no longer protected. I now have 2 colonies and having a minor fight with one of my neighbors, and I can&#8217;t wait to see what other multi-player options there are.</p>
<p>So go ahead and <a href="https://us1.lacunaexpanse.com/#referral=3989a52e-cbfb-35db-8592-e46f0bf902fa">join</a> lacuna and send me (halkeye) a message hi.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halkeye.net/2010/10/20/lacuna-expanse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dragon Quest IX Completion Stats</title>
		<link>http://www.halkeye.net/2010/08/22/dragon-quest-ix-completion-stats/</link>
		<comments>http://www.halkeye.net/2010/08/22/dragon-quest-ix-completion-stats/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 05:42:09 +0000</pubDate>
		<dc:creator>halkeye</dc:creator>
				<category><![CDATA[Gaming]]></category>

		<guid isPermaLink="false">http://www.halkeye.net/?p=389</guid>
		<description><![CDATA[Finally finished the game (DQIX) tonight @ 10:25pm&#8230; Random notes and stats to remember this by: beat the final boss in 5 or 6 rounds my 2 gladiators did 1500 damage (at 50 tension) and nearly 2000 (at 50+double up) it helped i didn&#8217;t use forbearance so one guy didn&#8217;t get slaughtered 3 rounds for tension + 1 for magic mirror + 1 for double up + 1 to attack [...]]]></description>
			<content:encoded><![CDATA[<p>Finally finished the game (DQIX) tonight @ 10:25pm&#8230;</p>
<p>Random notes and stats to remember this by:<br />
beat the final boss in 5 or 6 rounds<br />
my 2 gladiators did 1500 damage (at 50 tension) and nearly 2000 (at 50+double up)<br />
it helped i didn&#8217;t use forbearance<br />
so one guy didn&#8217;t get slaughtered<br />
3 rounds for tension + 1 for magic mirror + 1 for double up + 1 to attack = 6 rounds</p>
<p>Stats:<br />
Time Spent Playing: 122:29<br />
Time Spent in multiplayer: 13:52<br />
Battle Victories: 2869<br />
Times Alchemy Performed: 103<br />
Accolades EArnt: 120<br />
Quests Completed: 37<br />
Grottoes Completed: 24<br />
Guests Canvassed: 79<br />
Defeated Monster List Completion: 79%<br />
Wardrobe Completion: 25%<br />
Item List Completion: 51%<br />
Alchenomicon Completion: 19%<br />
mini medals: 59</p>
<p>Levels:</p>
<p>Goku &#8211; Lv.47</p>
<p>Cassie  - Lv.47</p>
<p>Norbert &#8211; Lv 37</p>
<p>Stacey &#8211; Lv. 35</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halkeye.net/2010/08/22/dragon-quest-ix-completion-stats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging ssh+svn</title>
		<link>http://www.halkeye.net/2010/07/09/debugging-sshsvn/</link>
		<comments>http://www.halkeye.net/2010/07/09/debugging-sshsvn/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 15:31:46 +0000</pubDate>
		<dc:creator>halkeye</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh+svn]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.halkeye.net/?p=388</guid>
		<description><![CDATA[Posting here in case anyone else needs to know. Was trying to debug a ssh+svn connection. There is a very simple way to get debugging turned on: $ export SVN_SSH="ssh -v " $ svn checkout svn+ssh:// Any other ssh commands can be put in that env variable too, so ports and such.]]></description>
			<content:encoded><![CDATA[<p>Posting here in case anyone else needs to know.</p>
<p>Was trying to debug a ssh+svn connection. There is a very simple way to get debugging turned on:</p>
<pre>$ export SVN_SSH="ssh -v "
$ svn checkout svn+ssh://</pre>
<p>Any other ssh commands can be put in that env variable too, so ports and such.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halkeye.net/2010/07/09/debugging-sshsvn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open ID Travels and rewards.</title>
		<link>http://www.halkeye.net/2010/06/18/open-id-travels-rewards/</link>
		<comments>http://www.halkeye.net/2010/06/18/open-id-travels-rewards/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 07:54:45 +0000</pubDate>
		<dc:creator>halkeye</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Net::OpenID::Consumer]]></category>
		<category><![CDATA[openid]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.halkeye.net/?p=386</guid>
		<description><![CDATA[So the last couple of weeks I&#8217;ve been playing with openid again trying to get the google federated logins working. I thought it would be a sweet setup for some of my little tools that I have to have logins for, but am too lazy to deal with user management. So far its been an eye opener. Its not really as transparent as I thought. You still need some sort [...]]]></description>
			<content:encoded><![CDATA[<p>So the last couple of weeks I&#8217;ve been playing with openid again trying to get the google federated logins working. I thought it would be a sweet setup for some of my little tools that I have to have logins for, but am too lazy to deal with user management.</p>
<p>So far its been an eye opener. Its not really as transparent as I thought. You still need some sort of storage system to store openid keys. I sorta cheated, since my apps are only using google logins, and I can &#8220;require&#8221; emails, I just made a little config file with emails in them.</p>
<p>Last project was php, ended up later being kohana v3, which has all the error/warning levels turn right up full. Which is awesome. Except the one openid library I could find was pretty heavily written for php4, and when php5 code used it, it would error like mad. But the samples and everything worked out the box. Started to port/upgrade, got tired, started to look for other libs. Found a ported version of the lib, but it seemed to fail every time I used it. Tried out janrain&#8217;s service rpxnow. But considering you had to set up a new setup each time to point to the different boxes, it didn&#8217;t seem like a good plan for an &#8220;easy to deploy system. Finally settled on <a href="http://gitorious.org/lightopenid">lightopenid</a> which turned out to be very simple and easy to setup.</p>
<p>Fast forward to tonight.</p>
<p>Tonight was perl night. Had an old script I figured I could turn into a web interface. Wanted an excuse to play with <a href="http://perldancer.org">dancer</a> anyways. Go check on cpan, find out that Martin Atkins (one of the ones I worked with while volunteering with livejournal) released, or at least helped out with <a href="http://search.cpan.org/~mart/Net-OpenID-Consumer-1.03/lib/Net/OpenID/Consumer.pm">Net::OpenID::Consumer</a>. Figured sweet, cpan modules seem more hardened and easier to use than php libs, so I figured it would be easy to setup.</p>
<p>Whoa was I mistaken.</p>
<p>Started off simple. Copy and pasted the example code into a .cgi file for testing.</p>
<p>Oh, missing modules, okay, it was more pseudo code, so no worries.</p>
<p>Added use statements, installed modules.</p>
<p>Hrm, nope, still no go.</p>
<p>Oh, the $csr-&gt;claimed_identity(&#8220;https://www.google.com/accounts/o8/id&#8221;) and $claimed_identity-&gt;check_url calls only need to be made once? Okay, that was commented, but not really clear, no worries, simple little fix.</p>
<p>Yay! now its redirecting and returning just fine. Oh wait, its complaining about bad_mode, something about <strong>setup_needed</strong>.</p>
<p>Fast forward a couple hours, after much googling, and reading code, and looking at other implementations, and my favorite codesearch.google.com I could find nothing. Still nothing about this setup_needed. More googling. Found an unanswered mailing list post by Martin. But still nothing.</p>
<p>Finally, flash of random insight. What other modules are used? Looked a bit more closely at the code. Net::OpenID::ClaimedIdentity which leads me to the documentation. Vaguely it made clear to me that if you are not using an ajax popup, you should set &#8220;delayed_return&#8221; which means the openid provider (google) can take control of user, and popup any sort of validation it needs. Which google does at least the first time you request it from a new trust_root (learned that from my work on the php code).</p>
<p>Quickly updated my code to the following:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p386code6'); return false;">View Code</a> PERL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3866"><td class="code" id="p386code6"><pre class="perl" style="font-family:monospace;"><span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$check_url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$claimed_identity</span><span style="color: #339933;">-</span><span style="color: #0000ff;">&amp;gt</span><span style="color: #339933;">;</span>check_url<span style="color: #009900;">&#40;</span>
delayed_return <span style="color: #339933;">=</span><span style="color: #0000ff;">&amp;gt</span><span style="color: #339933;">;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>
return_to  <span style="color: #339933;">=</span><span style="color: #0000ff;">&amp;gt</span><span style="color: #339933;">;</span> <span style="color: #ff0000;">&quot;http://localhost/cgi-bin/test.cgi?yourarg=val&quot;</span><span style="color: #339933;">,</span>
trust_root <span style="color: #339933;">=</span><span style="color: #0000ff;">&amp;gt</span><span style="color: #339933;">;</span> <span style="color: #ff0000;">&quot;http://localhost/&quot;</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Ran my test again. Everything is golden. Works perfectly out of the box. Next I need to look at AX support, and moving the code into dancer (or something else).</p>
<p>I&#8217;m hoping that since I had trouble, and figured it out, someone else can find this post for searching and hopefully reduce someones frustrations.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halkeye.net/2010/06/18/open-id-travels-rewards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BATMAN</title>
		<link>http://www.halkeye.net/2010/02/12/batman/</link>
		<comments>http://www.halkeye.net/2010/02/12/batman/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 05:52:44 +0000</pubDate>
		<dc:creator>halkeye</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.halkeye.net/2010/02/12/batman/</guid>
		<description><![CDATA[BATMAN, originally uploaded by halkeye. BATMANNNNNNNN BATMAN WAS AT THE OLYMPICS!]]></description>
			<content:encoded><![CDATA[<div style="text-align: left; padding: 3px;">
<a href="http://www.flickr.com/photos/halkeye/4353110560/" title="photo sharing"><img src="http://farm5.static.flickr.com/4046/4353110560_5f06134f08.jpg" style="border: solid 2px #000000;" alt="" /></a><br />
<br />
<span style="font-size: 0.8em; margin-top: 0px;"><a href="http://www.flickr.com/photos/halkeye/4353110560/">BATMAN</a>, originally uploaded by <a href="http://www.flickr.com/people/halkeye/">halkeye</a>.</span>
</div>
<p>
BATMANNNNNNNN</p>
<p>BATMAN WAS AT THE OLYMPICS!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halkeye.net/2010/02/12/batman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&quot;free laptop&quot; facebook scam</title>
		<link>http://www.halkeye.net/2010/01/20/free-laptop-facebook-scam/</link>
		<comments>http://www.halkeye.net/2010/01/20/free-laptop-facebook-scam/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 08:11:52 +0000</pubDate>
		<dc:creator>halkeye</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.halkeye.net/?p=374</guid>
		<description><![CDATA[Ah, the things that people believe on the internet. I&#8217;d like to believe its not work that is making me paranoid, but it mostly is. Plus I get paid to help try to find the flaws in things before the time is spent developing them. The interesting about this thing, is when I first saw the title of the facebook group, I was sure that was odd, but I quickly [...]]]></description>
			<content:encoded><![CDATA[<p>Ah, the things that people believe on the internet. I&#8217;d like to believe its not work that is making me paranoid, but it mostly is. Plus I get paid to help try to find the flaws in things before the time is spent developing them.</p>
<p>The interesting about this thing, is when I first saw the title of the facebook group, I was sure that was odd, but I quickly ignored it and moved on. Then I saw it again tonight, and I started to do a bit of digging.</p>
<p>http://www.brain-thee.co.uk/2010/01/how-to-tell-a-scam-on-social-networking-sites/ manages to describe my thought process pretty well actually. But I went a few steps more. I got very weirded out by the fact they wanted me to use javascript to select all my friends for invite (I still can&#8217;t believe I immediately recognized that javascript the second I saw it.). So after I visited the page they said you could only visit after you invited your friends (look at that, I visited it fine).</p>
<p>Anyways, to make a long story short, I started to dig through the js on the page, found out its essentially a small page with a ad or something to c p a l e a d (dot com, I don&#8217;t want to link to it). That in itself isn&#8217;t that interesting, its the fact that it tries to detect firebug so you can disable whatever it does (video maybe? I run with noscript so I don&#8217;t see it).</p>
<p>I put the code up on pastebin @ http://pastebin.com/d40ea2d1c for anyone who is curious. Its simply the only javascript on the scammers page after I ran it through the reverse dean edwards packer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halkeye.net/2010/01/20/free-laptop-facebook-scam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I get my own ugly code</title>
		<link>http://www.halkeye.net/2009/10/07/1007i_get_my_own_ugly_code/</link>
		<comments>http://www.halkeye.net/2009/10/07/1007i_get_my_own_ugly_code/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 07:47:34 +0000</pubDate>
		<dc:creator>halkeye</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://halkeye.blogs.kodekoan.com/2009/10/07/1007i_get_my_own_ugly_code/</guid>
		<description><![CDATA[?View Code PERLsub rw &#123; my $word = &#34;$_[0]&#34;; $word =~ s/(.)/rc($1)/ge; $word;&#125; sub rc &#123; return &#40;&#40;rand&#40;1&#41;*2+1&#41;%2&#41; ? lc&#40;$_&#91;0&#93;&#41;: uc&#40;$_&#91;0&#93;&#41;; &#125; (i don&#8217;t care about efficiency or whatnot, i was just creating a simple function for a unit test, it just looks like someone threw up some letters.]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p336code9'); return false;">View Code</a> PERL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3369"><td class="code" id="p336code9"><pre class="perl" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">sub</span> rw <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$word</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;$_[0]&quot;</span><span style="color: #339933;">;</span> <span style="color: #0000ff;">$word</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">s/(.)/rc($1)/ge</span><span style="color: #339933;">;</span> <span style="color: #0000ff;">$word</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">sub</span> rc <span style="color: #009900;">&#123;</span> <a href="http://perldoc.perl.org/functions/return.html"><span style="color: #000066;">return</span></a> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><a href="http://perldoc.perl.org/functions/rand.html"><span style="color: #000066;">rand</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">%</span>2<span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> <a href="http://perldoc.perl.org/functions/lc.html"><span style="color: #000066;">lc</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$_</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <a href="http://perldoc.perl.org/functions/uc.html"><span style="color: #000066;">uc</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$_</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>    <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>(i don&#8217;t care about efficiency or whatnot, i was just creating a simple function for a unit test, it just looks like someone threw up some letters.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halkeye.net/2009/10/07/1007i_get_my_own_ugly_code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>osqdb has to be one of the worst peices of code I have seen in a while.</title>
		<link>http://www.halkeye.net/2008/05/19/osqdb_has_be_one_worst_peices_code_i_have_seen_while/</link>
		<comments>http://www.halkeye.net/2008/05/19/osqdb_has_be_one_worst_peices_code_i_have_seen_while/#comments</comments>
		<pubDate>Mon, 19 May 2008 23:18:00 +0000</pubDate>
		<dc:creator>halkeye</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://halkeye.blogs.kodekoan.com/2008/05/19/osqdb_has_be_one_worst_peices_code_i_have_seen_while/</guid>
		<description><![CDATA[Tonight I was trying to convert the old custom quote system I used for #arc to qdb just for fun. I was trying to find out the code used by qdb.us/bash.org but came across this peice of code called OSQDB. Here&#8217;s an exerpt of code called whenever a new quote is added. ?View Code PHP$get = mysql_query&#40;&#34;SELECT * FROM quotes ORDER BY id DESC LIMIT 1&#34;&#41;; &#160; while &#40;$count = [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight I was trying to convert the old custom quote system I used for #arc to qdb just for fun. I was trying to find out the code used by qdb.us/bash.org but came across this peice of code called OSQDB.</p>
<p>Here&#8217;s an exerpt of code called whenever a new quote is added.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p335code12'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p33512"><td class="code" id="p335code12"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$get</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT * FROM quotes ORDER BY id DESC LIMIT 1&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$count</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_fetch_array"><span style="color: #990000;">mysql_fetch_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$get</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$tempid</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$count</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;id&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">/* Increment the id */</span>
<span style="color: #000088;">$newid</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$tempid</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;INSERT INTO quotes SET id = '<span style="color: #006699; font-weight: bold;">$newid</span>'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;UPDATE quotes SET quote = '<span style="color: #006699; font-weight: bold;">$newquote</span>' WHERE id = '<span style="color: #006699; font-weight: bold;">$newid</span>'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;UPDATE quotes SET comment = '<span style="color: #006699; font-weight: bold;">$comment</span>' WHERE id = '<span style="color: #006699; font-weight: bold;">$newid</span>'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;UPDATE quotes SET ip = '<span style="color: #006699; font-weight: bold;">$ip</span>' WHERE id = '<span style="color: #006699; font-weight: bold;">$newid</span>'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>1) It loops through 1 entry trying to find the latest entry number (I&#8217;m sure max() is faster than order by and limit).<br />
2) Once its it found, it does one insert with the id being set. Then it does 3 more queries setting each field in its own query.</p>
<p>That sorta explains why the db doesn&#8217;t have auto_increment fields turned on, but its scary. I&#8217;m afraid of looking at much more of the code. Luckily I then found <a href="http://sourceforge.net/projects/rqms/">Rash Quote Management System</a>. I don&#8217;t like this one very much either.. but they are more personal reasons versus code issues.</p>
<p>I should clean up and submit patches (it doesn&#8217;t seem to have been updated since 2006) for rqms.<br />
<!--break--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.halkeye.net/2008/05/19/osqdb_has_be_one_worst_peices_code_i_have_seen_while/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finished Naruto: Rise of a Ninja</title>
		<link>http://www.halkeye.net/2008/05/04/finished_naruto_rise_ninja/</link>
		<comments>http://www.halkeye.net/2008/05/04/finished_naruto_rise_ninja/#comments</comments>
		<pubDate>Sun, 04 May 2008 23:16:24 +0000</pubDate>
		<dc:creator>halkeye</dc:creator>
				<category><![CDATA[xbox360]]></category>

		<guid isPermaLink="false">http://halkeye.blogs.kodekoan.com/2008/05/04/finished_naruto_rise_ninja/</guid>
		<description><![CDATA[I have to say, I&#8217;m totally surprised at this game. I was told before hand it was a pretty decent game, and it did keep me entertained for the week I rented it. Now the game, as the anime, is very repetitive. I didn&#8217;t find it too bad, but I ended up not finishing all the optional missions because I got tired of the racing missions. The timed ones in [...]]]></description>
			<content:encoded><![CDATA[<p>I have to say, I&#8217;m totally surprised at this game. I was told before hand it was a pretty decent game, and it did keep me entertained for the week I rented it.</p>
<p>Now the game, as the anime, is very repetitive. I didn&#8217;t find it too bad, but I ended up not finishing all the optional missions because I got tired of the racing missions.</p>
<p>The timed ones in general were not bad, but when you got 5-10 minute long races with traps that can easily delay you enough so you can&#8217;t get to the next checkpoint it gets really annoying. The worst was the last one I did. I got to one gate from the end, then got stuck behind a trap. It took forever to get that far.</p>
<p>I also found the jutsu really awkward to do in battles too. You had to knock the other guy away far enough to wait for the bar to fill up fully. Luckly you could do smaller powered ones quicker. I ended up mostly just doing rapid regular combat combos.</p>
<p>But as I said, the game was overall enjoyable, and I did manage to finish the game.. at least I think I did, I got the credits, but then i was thrown back into town, so I&#8217;m not sure.</p>
<p>Either way, I&#8217;m glad I rented it, It doesn&#8217;t have enough replayability to buy the game, but the one shot rental was kinda cool.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halkeye.net/2008/05/04/finished_naruto_rise_ninja/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

