<?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>johnluetke.net &#187; Blog</title>
	<atom:link href="http://johnluetke.net/wordpress/category/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://johnluetke.net/wordpress</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 10 Jan 2010 19:24:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ACM Programming Contest 2009</title>
		<link>http://johnluetke.net/wordpress/2009/11/03/acm-programming-contest-2009</link>
		<comments>http://johnluetke.net/wordpress/2009/11/03/acm-programming-contest-2009#comments</comments>
		<pubDate>Wed, 04 Nov 2009 03:05:19 +0000</pubDate>
		<dc:creator>John Luetke</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://johnluetke.net/?p=113</guid>
		<description><![CDATA[On Saturday, I participated in the ACM Collegiate Programming Contest: Midwest Division.
Never have I undergone such mental pressure in my life.
My team only got one problem solved (#8), which was submitted at the 209th minute of a 300 minute competition. I regret not seeing that problem earlier, and submitting a correct solution before 2/3 of [...]]]></description>
			<content:encoded><![CDATA[<p>On Saturday, I participated in the ACM Collegiate Programming Contest: Midwest Division.</p>
<p>Never have I undergone such mental pressure in my life.</p>
<p>My team only got one problem solved (<a href="http://cs.unomaha.edu/~acmregn/problems/prob8.pdf">#8</a>), which was submitted at the 209th minute of a 300 minute competition. I regret not seeing that problem earlier, and submitting a correct solution before 2/3 of the contest was over. I would gladly bet that that could have motivated us to get another one finished. We were EXTREMELY close to solving <a href="http://cs.unomaha.edu/~acmregn/problems/prob3.pdf">#3</a> and <a href="http://cs.unomaha.edu/~acmregn/problems/prob6.pdf">#6</a>, but a single itty-bitty mistake in both cases kept us from getting the correct answer. Our solution for <a href="http://cs.unomaha.edu/~acmregn/problems/prob1.pdf">#1</a> was correct, however it could not execute within the 10 second limit, due to my use of brute-force conversions of numbers to their binary representations (num % 2 for life!)</p>
<p>Here&#8217;s our solution to #8 for those interested. It really wasn&#8217;t that difficult, but still, it&#8217;s &#8220;Accepted Solution&#8221; receipt is our trophy:</p>
<pre>import java.util.Scanner;

public class Problem8 {

	public static void main (String[] args) {
		String input = "";
		Scanner r = new Scanner(System.in);
		int index = 1;

			while (true) {
				input = r.nextLine();

				if (input.length() == 0)
					break;

				input = Problem8.flipAndPrepend(input);
				int[] sub_sum = new int[20];

				for (int i = 0; i &lt; input.length(); i++) {
					int j = (i+1 &gt;= input.length()-1) ? input.length()-1 : i+1;
					if (i == j)
						break;

					char c = input.charAt(i);
					char c2 = input.charAt(j);
					int val1 = Problem8.getRomanValue(c);
					int val2 = Problem8.getRomanValue(c2);

					if (val1 &lt; val2)
						sub_sum[i] = val2-val1;
					else if (val1 &gt;= val2)
						sub_sum[i] = val2+val1;
				}

				int total = 0;
				for (int i = 0; i &lt; sub_sum.length; i++) {
					total += sub_sum[i];
				}

				System.out.println("Case "+(index++)+": total = "+total+"\n");
			}

	}

	public static String flipAndPrepend(String s) {
		String flipped = "";
		boolean even = (s.length() % 2 == 0);

		String t = (!even) ? s.substring(1, s.length()) : s;

		for (int i = t.length() -1 ; i &gt;= 0; i--) {
			flipped += t.charAt(i)+"";
		}
		return flipped+s;
	}

	public static int getRomanValue (char c) {
		int value = 0;
		switch (c) {
			case 'I':
				value = 1; break;
			case 'V':
				value = 5; break;
			case 'X':
				value = 10; break;
			case 'L':
				value = 50; break;
			case 'C':
				value = 100; break;
			case 'D':
				value = 500; break;
			case 'M':
				value = 1000; break;
			default:
				value = 0;
		}
		return value;
	}
}
</pre>
<p>The hardest part was only having one computer to use between 3 people. The people on my team (myself included) are used to dynamic programming (testing our solution as we go along), and that ended up hurting us in the long run.</p>
<p>I would say there&#8217;s always next year, but for me, that isn&#8217;t the case. May is only 7 months away&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnluetke.net/wordpress/2009/11/03/acm-programming-contest-2009/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>It&#8217;s cool to be a computer nerd.</title>
		<link>http://johnluetke.net/wordpress/2009/04/24/its-cool-to-be-a-computer-nerd</link>
		<comments>http://johnluetke.net/wordpress/2009/04/24/its-cool-to-be-a-computer-nerd#comments</comments>
		<pubDate>Sat, 25 Apr 2009 06:23:07 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://johnluetke.net/?p=100</guid>
		<description><![CDATA[Yes. You read the title right. About 1 hour ago, I had the revelation: It&#8217;s cool to be a computer nerd.
Why? Aren&#8217;t computer nerds constantly the source of being others entertainment by being on? Stereotypically, yes. Actually, I can&#8217;t answer, because I&#8217;ve never found myself in that situation.
Anyway, back to the point. It&#8217;s cool to [...]]]></description>
			<content:encoded><![CDATA[<p>Yes. You read the title right. About 1 hour ago, I had the revelation: It&#8217;s cool to be a computer nerd.</p>
<p>Why? Aren&#8217;t computer nerds constantly the source of being others entertainment by being on? Stereotypically, yes. Actually, I can&#8217;t answer, because I&#8217;ve never found myself in that situation.</p>
<p>Anyway, back to the point. It&#8217;s cool to be a computer nerd because &#8230;<br />
<!-- more --><br />
(Did the suspense there get you? <img src='http://johnluetke.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  )</p>
<p>&#8230; you know how a computer works, and therefore can make it do whatever you want (within reason). My situation: having tasks to accomplish for homework assignments and class projects that happen to be repetitive. My solution: write a small little program to do the work for me. </p>
<p>This past semester, I have been enrolled in a Data Mining class, which, believe it or not, requires me to analyze and work with HUGE ( somewhere between the MB to GB range ) amounts of data. The calculations, transformations, and statistics that I need to acquire and perform on said data would take me more time than I would actually want to spend on the entire assignment / project. Writing a program saves me that time. Sure, I get headaches and frustrated by the little bugs that arise while I&#8217;m writing the program, but it saves me from the even greater levels of headaches and frustrations that come from doing it manually. Plus, you get that nice warm fuzzy sense of accomplishment when a task that would have taken you hours to do manually gets completed in less that 10 seconds.</p>
<p>Proof:<br />
<code><br />
	SN1950B_II processed in 0 seconds.<br />
	SN1957D_II processed in 0 seconds.<br />
	SN1968D_II processed in 0 seconds.<br />
	SN1978K_II processed in 0 seconds.<br />
	SN1979C_II processed in 0 seconds.<br />
	SN1980K_II processed in 0 seconds.<br />
	SN1981K_II processed in 0 seconds.<br />
Total running time: 1 seconds.<br />
Processed date from 7 supernovas.<br />
<code></p>
<p>That's the output generated by a program I wrote just now. Each supernova has 10,000 days of observations (predictions for the ones less that 28 years old) associated with it, and the program combines each property from each observation day of each supernova into a single line of a CSV file.</p>
<p>7 seconds to analyze and process roughly 70,000 numbers. That probably would take me and my project group at least a few months to do by hand.</p>
<p>It's cool to be a computer nerd.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnluetke.net/wordpress/2009/04/24/its-cool-to-be-a-computer-nerd/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PTI = stupid</title>
		<link>http://johnluetke.net/wordpress/2009/03/23/pti-stupid</link>
		<comments>http://johnluetke.net/wordpress/2009/03/23/pti-stupid#comments</comments>
		<pubDate>Tue, 24 Mar 2009 05:25:52 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://johnluetke.net/?p=92</guid>
		<description><![CDATA[Today on PTI, the Marquette vs. Mizzou game was discussed. More specifically, Hayward&#8217;s stepping on the boundary line while in-bounding the ball. During that discussion, a question asking whether or not Mizzou desevered to win the game was posed. The given answer: yes.
W. T. F.
They really think that Mizzou deserved to win that game?? Geez, [...]]]></description>
			<content:encoded><![CDATA[<p>Today on PTI, the Marquette vs. Mizzou game was discussed. More specifically, Hayward&#8217;s stepping on the boundary line while in-bounding the ball. During that discussion, a question asking whether or not Mizzou desevered to win the game was posed. The given answer: yes.</p>
<p><strong>W. T. F.</strong></p>
<p>They really think that Mizzou deserved to win that game?? Geez, they must be as blind as the ref&#8217;s. Blind because of all the obvious fouls that the viewers and commentators all saw:</p>
<p>1) Carroll pulling Jimmy Butler down by his jersey while he was going for a rebound<br />
2) Carroll pushing Lazar Hayward with his elbow as he was going for a quick lay-up.<br />
(just to name a few)</p>
<p>There is no way that Mizzou deserved to win that game. In my opinion, the only reason they won was because of Lazar&#8217;s mistake. The win was not deserved, nor were they entitled to it.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnluetke.net/wordpress/2009/03/23/pti-stupid/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Recommendation: Scalaris for OS X</title>
		<link>http://johnluetke.net/wordpress/2009/03/02/recommendation-scalaris-for-os-x</link>
		<comments>http://johnluetke.net/wordpress/2009/03/02/recommendation-scalaris-for-os-x#comments</comments>
		<pubDate>Mon, 02 Mar 2009 18:51:37 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://johnluetke.net/?p=88</guid>
		<description><![CDATA[Are you obsessed with Twitter like me? I&#8217;ve found an AMAZING app for Mac OS X that is extremely lightweight, lives in your menu bar, displays tweets for those you are following as Growl notifications, and provides you with a simple pop-up window to @reply them, or tweet something new.
This amazing app is called Scalaris, [...]]]></description>
			<content:encoded><![CDATA[<p>Are you obsessed with Twitter like me? I&#8217;ve found an AMAZING app for Mac OS X that is extremely lightweight, lives in your menu bar, displays tweets for those you are following as Growl notifications, and provides you with a simple pop-up window to @reply them, or tweet something new.</p>
<p>This amazing app is called Scalaris, and its available from http://uri.cat/software/Scalaris/ as freeware (donations encouraged). I highly, highly HIGHLY recommend it.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnluetke.net/wordpress/2009/03/02/recommendation-scalaris-for-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Maps Fail.</title>
		<link>http://johnluetke.net/wordpress/2009/02/27/google-maps-fail</link>
		<comments>http://johnluetke.net/wordpress/2009/02/27/google-maps-fail#comments</comments>
		<pubDate>Fri, 27 Feb 2009 19:50:28 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://johnluetke.net/?p=85</guid>
		<description><![CDATA[
Somebody didn&#8217;t complete their mapping of I-94&#8230;
]]></description>
			<content:encoded><![CDATA[<p><img src="http://johnluetke.net/wordpress/wp-content/uploads/2009/02/picture-5.png" alt="picture-5" title="picture-5" width="765" height="512" class="alignnone size-full wp-image-86" /></p>
<p>Somebody didn&#8217;t complete their mapping of I-94&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://johnluetke.net/wordpress/2009/02/27/google-maps-fail/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple + Java  = Fail</title>
		<link>http://johnluetke.net/wordpress/2009/02/16/apple-java-fail</link>
		<comments>http://johnluetke.net/wordpress/2009/02/16/apple-java-fail#comments</comments>
		<pubDate>Tue, 17 Feb 2009 00:53:37 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://johnluetke.net/uncategorized/apple-java-fail/</guid>
		<description><![CDATA[The Apple-provided JRE 1.6 only supports 64-bit machines. WTF?!? Steve, what ever happened to Java being a &#8220;first class citizen of Mac OS X??
SoyLatte to the rescue.
]]></description>
			<content:encoded><![CDATA[<p>The Apple-provided JRE 1.6 only supports 64-bit machines. WTF?!? Steve, what ever happened to Java being a &#8220;first class citizen of Mac OS X??</p>
<p><a href="http://landonf.bikemonkey.org/static/soylatte/">SoyLatte</a> to the rescue.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnluetke.net/wordpress/2009/02/16/apple-java-fail/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UNIX time milestone</title>
		<link>http://johnluetke.net/wordpress/2009/02/13/unix-time-milestone</link>
		<comments>http://johnluetke.net/wordpress/2009/02/13/unix-time-milestone#comments</comments>
		<pubDate>Sat, 14 Feb 2009 01:31:30 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://johnluetke.net/?p=81</guid>
		<description><![CDATA[It&#8217;s 5:31:30pm on Feb 13, 2009&#8230;UNIX time reads 1234567890!!!
Next milestone: 32-bit overflow on Jan 19, 2038 
]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s 5:31:30pm on Feb 13, 2009&#8230;UNIX time reads 1234567890!!!</p>
<p>Next milestone: 32-bit overflow on Jan 19, 2038 </p>
]]></content:encoded>
			<wfw:commentRss>http://johnluetke.net/wordpress/2009/02/13/unix-time-milestone/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dirlister News!</title>
		<link>http://johnluetke.net/wordpress/2009/02/10/dirlister-news</link>
		<comments>http://johnluetke.net/wordpress/2009/02/10/dirlister-news#comments</comments>
		<pubDate>Wed, 11 Feb 2009 06:54:22 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://johnluetke.net/uncategorized/dirlister-news/</guid>
		<description><![CDATA[Hey all, here are some long awaited Dirlister updates!
1) SVN repo has been moved from http://jserve.johnluetke.net/svn/dirlister to http://lopez.johnluetke.net/svn/dirlister. Sorry to those who checked out from the previous repo, but the machine crashed and I wasn&#8217;t able to recover the repo.  . As such, the version numbers for the new repo are screwed up.  [...]]]></description>
			<content:encoded><![CDATA[<p>Hey all, here are some long awaited Dirlister updates!</p>
<p>1) SVN repo has been moved from http://jserve.johnluetke.net/svn/dirlister to http://lopez.johnluetke.net/svn/dirlister. Sorry to those who checked out from the previous repo, but the machine crashed and I wasn&#8217;t able to recover the repo. <img src='http://johnluetke.net/wordpress/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> . As such, the version numbers for the new repo are screwed up. <img src='http://johnluetke.net/wordpress/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  again.</p>
<p>2) I&#8217;ve begun to think about more changes to the code that I want to make, and as such, the next public release will be a complete rewrite of the code, so be in store for that.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnluetke.net/wordpress/2009/02/10/dirlister-news/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Superbowl XLIII Commericals!</title>
		<link>http://johnluetke.net/wordpress/2009/02/01/superbowl-xliii-commericals</link>
		<comments>http://johnluetke.net/wordpress/2009/02/01/superbowl-xliii-commericals#comments</comments>
		<pubDate>Sun, 01 Feb 2009 23:58:38 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://johnluetke.net/?p=73</guid>
		<description><![CDATA[3:50 in the first, the only one I&#8217;ve really liked so far is the Budweiser one
[link coming soon]
Mr. Potato Head = AWESOME!!

Wow. Pepsuber sucked.
]]></description>
			<content:encoded><![CDATA[<p>3:50 in the first, the only one I&#8217;ve really liked so far is the Budweiser one</p>
<p>[link coming soon]</p>
<p>Mr. Potato Head = AWESOME!!</p>
<p><object width="512" height="296" data="http://www.hulu.com/embed/G9LC_FtXk_ymxczUJcHqQg" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.hulu.com/embed/G9LC_FtXk_ymxczUJcHqQg" /><param name="allowfullscreen" value="true" /></object></p>
<p>Wow. Pepsuber sucked.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnluetke.net/wordpress/2009/02/01/superbowl-xliii-commericals/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fanboys!</title>
		<link>http://johnluetke.net/wordpress/2008/11/19/fanboys</link>
		<comments>http://johnluetke.net/wordpress/2008/11/19/fanboys#comments</comments>
		<pubDate>Thu, 20 Nov 2008 04:34:05 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://johnluetke.net/?p=69</guid>
		<description><![CDATA[Hell yes!

]]></description>
			<content:encoded><![CDATA[<p>Hell yes!</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="486" height="412" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="flashObj" /><param name="bgcolor" value="#FFFFFF" /><param name="flashvars" value="videoId=1917449919&amp;playerID=1714458113&amp;domain=embed&amp;" /><param name="src" value="http://c.brightcove.com/services/viewer/federated_f9/1714458113?isVid=1&amp;publisherID=1485836771" /><embed type="application/x-shockwave-flash" width="486" height="412" src="http://c.brightcove.com/services/viewer/federated_f9/1714458113?isVid=1&amp;publisherID=1485836771" flashvars="videoId=1917449919&amp;playerID=1714458113&amp;domain=embed&amp;" bgcolor="#FFFFFF" name="flashObj"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://johnluetke.net/wordpress/2008/11/19/fanboys/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
