<?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>Mkava&#039;s Ramblings &#187; Programming &amp; Code</title>
	<atom:link href="http://mattkava.com/category/nerdy/tech/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattkava.com</link>
	<description>&#34;The race for quality has no finish line– so technically, it&#039;s more like a death march.&#34;</description>
	<lastBuildDate>Mon, 23 Jan 2012 10:22:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Questioning Programming Standards and &#8230; Stuff</title>
		<link>http://mattkava.com/2010/12/01/questioning-programming-standards-and-stuff/</link>
		<comments>http://mattkava.com/2010/12/01/questioning-programming-standards-and-stuff/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 19:53:53 +0000</pubDate>
		<dc:creator>Mkava</dc:creator>
				<category><![CDATA[DevBlog]]></category>
		<category><![CDATA[Programming & Code]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[standards]]></category>

		<guid isPermaLink="false">http://mattkava.com/?p=627</guid>
		<description><![CDATA[Over the course of this semester, I&#8217;ve run into situations that make me question my own standards about programming. A lot of this has come down to how to do database operation extraction with the idea of having a completely &#8230; <a href="http://mattkava.com/2010/12/01/questioning-programming-standards-and-stuff/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Over the course of this semester, I&#8217;ve run into situations that make me question my own standards about programming. A lot of this has come down to how to do database operation extraction with the idea of having a completely separate driver class inside of the project, using a separate application dedicated to these operations and doing something like RPC or using XML to communicate the query results, having each class know how to run its own queries (be they in the class or attached to a package with stored procedures), or just saying screw it and having a ton of raw queries that do all the lifting somewhere. This question has come from a lot of my time spent at work and the database and package clean-up I&#8217;ve been doing for quite some time (somebody has to do it) and that I&#8217;ve been working on a few different projects that make me curious about the idea. Plus my final project for GUI Programming this semester is using SQLite with Java (SQLite is still rather new to me so it seems like a fun project).  So I have a lot of reasons to question my thoughts and concepts for databases and operating with them.</p>
<p>Yet the other questions have either been really rather dull, like should all if statements have a set of encapsulating braces when they are not needed or should they always be there (rather dull, but makes a big difference in readability.. I went with always, for now), and others are neat in a different way. In my GUI class, the professor uses Moodle to manage the class and her habit is to have every link to a document, such as a tutorial that she finds great or even the assignment pages, must open in a new window. Generally, this wouldn&#8217;t bother me in the least as I am used to center-clicking links to open them in a new tab and will only occasionally run into a website that futz up my browser. Thank goodness for browser override on that targeting behaviour. But with Moodle, when you set it to always open in a new window, it checks to see if the page is in a new window, and if it isn&#8217;t, it gives you a stupid sh*t-eating-grin error message with a link to the page again. Luckily, you can finally get the page open in a new tab instead of a whole new window but it took two page visits and two clicks to get there because the UI didn&#8217;t respect <em>your</em> environment settings. This only amuses me because it&#8217;s a UI design class where we spend more time on programming iffy assignments in Java and finally JavaScript at the end of the semester. Thankfully the professor didn&#8217;t have time for databases.. might have to throw a fit and likely a few chairs. This is probably the only UI design-related question I&#8217;ve had all semester for a UI design class. &#8230; Oi. But this issue made me question what I think about how hyperlinks are designed for targeting the web page. Well, first.. let&#8217;s break down what the targeting is&#8230;</p>
<p style="text-align: center"><span id="more-627"></span>&lt;a href=&#8221;http://TheWebPageUrl.com&#8221; title=&#8221;Some fancy title&#8221; <strong>target=&#8221;_blank&#8221;</strong>&gt;Link text&lt;/a&gt;</p>
<p>The bit in bold above is the targeting section of the entire hyperlink. That&#8217;s some generic non-standard-specific HTML, btw. Target can be defined to a few different values and that are:</p>
<ul>
<li>_self
<ul>
<li>Default action. Whatever window/tab/frame the link is in is focused.</li>
</ul>
</li>
<li>_blank
<ul>
<li>Open a new window.</li>
</ul>
</li>
<li>_top
<ul>
<li>Essentially _self outside of multiple frames, but opens in the whole window (if there are 3 frames, this will cause there to be one frame with the document in it)</li>
</ul>
</li>
<li>_parent
<ul>
<li>Open in the parent frameset. Dealing with frames.. ugh.</li>
</ul>
</li>
<li><em>framename</em>
<ul>
<li>Open in <em>that</em> frame. Ugh, frames!</li>
</ul>
</li>
</ul>
<p>The ones that generally matter are _self and _blank as they have the most meaning still. The others are generally when dealing with frames (ugh, frames). I like to pretend that frames died out a long time ago. (Looking at the <a href="http://web.archive.org/web/*/http://nintendo.com">old Nintendo of America websites</a> is always interesting for not only the frames but fully image-based navigation.. things I did when I was 14 and early into web development.) So either way, one opens in the current frame and the other is a whole new window, by specification. Of course, that doesn&#8217;t mean the browser has to do what the specification calls for, which is obvious with all of the browser presentation differences, but in this instance.. this is an awesome thing. My browser can choose to just open _blank in a new tab and it&#8217;s all dandy. But another user can have a new window. No fuss, no UI difficulties. Yes, the browsers should follow the spec but when it comes down to it, is that piece of the spec still meaningful and is it all that bad for a browser to do what the user wants instead? After all, the spec is the guidelines for what things <em>should</em> be. The user is the one getting the experience so why are you catering to the spec? The spec doesn&#8217;t care, but the user does.</p>
<p>Anywho, the whole question is do you want to control the user or just let the user do what they want. There is only so much you can do the save the user from hurting themselves, and there is a back button for a reason. And there&#8217;s even a multiple-back button by clicking the little arrow or right-clicking the whole thing. Magically, it all works out that the page is stored somewhere. I know my idea is still to just let the user open the link however they want and I won&#8217;t design anything that checks to see if you opened a new window or not. Seems like a lot of wasted development time and user time for something that really shouldn&#8217;t happen in the first place. Now if only I could get my professor to see that so I don&#8217;t have to have either 10 windows or double the clicks to get it in a single window with multiple tabs. The semester is almost over either way. . .</p>
<div style="width: 1px;height: 1px;overflow: hidden">Software developer by day (and sometimes night!),</div>
]]></content:encoded>
			<wfw:commentRss>http://mattkava.com/2010/12/01/questioning-programming-standards-and-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How 64-bit Vista/7 support 32-bit apps and Why this sucks..</title>
		<link>http://mattkava.com/2010/10/04/how-64-bit-vista7-support-32-bit-apps-and-why-this-sucks/</link>
		<comments>http://mattkava.com/2010/10/04/how-64-bit-vista7-support-32-bit-apps-and-why-this-sucks/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 17:57:43 +0000</pubDate>
		<dc:creator>Mkava</dc:creator>
				<category><![CDATA[DevBlog]]></category>
		<category><![CDATA[Programming & Code]]></category>
		<category><![CDATA[suck]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://mattkava.com/?p=620</guid>
		<description><![CDATA[So at work I&#8217;ve been working on setting up a Windows 7 64-bit OS with all of our VB6 development libraries and such. Been having tons of issues installing some software because of the 32-bit vs 64-bit issue that I &#8230; <a href="http://mattkava.com/2010/10/04/how-64-bit-vista7-support-32-bit-apps-and-why-this-sucks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So at work I&#8217;ve been working on setting up a Windows 7 64-bit OS with all of our VB6 development libraries and such. Been having tons of issues installing some software because of the 32-bit vs 64-bit issue that I never had prior (always ran 32-bit Windows, always) and have done a bit of research. Came across one particular reason why 64-bit Vista/7 have issues with supporting 32-bit apps, user-level emulation of a 32-bit machine.</p>
<p>Now, this is likely not why I am having issues with everything I&#8217;ve been setting up. It may be, but my difficulty probably stems from the libraries being designed purely for 32-bit with 32-bit limitations in mind&#8230; naughty programmers. Either way, this 32-bit emulation at the user-level is an issue mostly for items that <strong>need</strong> the have access to the kernel. Things like your drivers that <strong>need</strong> to be run at kernel-level are dead in the water if they are 32-bit on a 64-bit Vista/7 installation. Sucky.</p>
<p><span id="more-620"></span>For those who don&#8217;t really understand what user and kernel level mean and why we care, this is a quick explanation.</p>
<p>{</p>
<p>Imagine an OS sammich. Going from bottom to top, it&#8217;s the kernel, the kernel-level processes/threads, and lastly the user-level processes/threads. At the user-level, the kernel can only see the process and to get to perform kernel-mode operations, a TRAP instruction must be executed. All threads inside of a user-level process are unseen to the kernel, it just sees a single process.</p>
<p>At the kernel-level, the kernel can see all processes and threads and operate on them independently. This is awesome for scheduling, but that&#8217;s not important now. Kernel-level is privileged, while user-level is where <em>all</em> of our user applications run. A user application must <em>ask</em> for the kernel to do something, which it will do when it comes around to the job. This is what causing blocking and all of that.</p>
<p>What this means to this issue? User-level emulation means that the application being emulated cannot run at the kernel-level.. which means a driver cannot do its job and even function. Oi!</p>
<p>} // End explanation</p>
<p>Either way, just an interesting circumstance that annoys me enough to debate installing a new OS that won&#8217;t have this issue, in the event I run into this issue in the future. Yay Windows development. &gt;_&gt;</p>
<p>Here is the article that helped out the most in coming to this realization:<a href="http://www.techsupportalert.com/content/how-windows7-vista64-support-32bit-applications.htm"> http://www.techsupportalert.com/content/how-windows7-vista64-support-32bit-applications.htm</a> Thanks go to the author and the folks at SuperUser who answered a <a href="http://superuser.com/questions/113865/how-to-fake-os-bit-version-check-on-some-software">question</a>. =)</p>
]]></content:encoded>
			<wfw:commentRss>http://mattkava.com/2010/10/04/how-64-bit-vista7-support-32-bit-apps-and-why-this-sucks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netbeans &amp; Java look different: What the hell?</title>
		<link>http://mattkava.com/2010/09/29/netbeans-java-look-different-what-the-hell/</link>
		<comments>http://mattkava.com/2010/09/29/netbeans-java-look-different-what-the-hell/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 06:14:58 +0000</pubDate>
		<dc:creator>Mkava</dc:creator>
				<category><![CDATA[Programming & Code]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[suck]]></category>
		<category><![CDATA[the netbeans]]></category>
		<category><![CDATA[wtf]]></category>
		<category><![CDATA[wth]]></category>

		<guid isPermaLink="false">http://mattkava.com/?p=615</guid>
		<description><![CDATA[Click The Smaller to make The Bigger. As you can see above, I have two windows shown for comparison. The top is the Design portion of the editor in The Netbeans while the top is the executed version of the &#8230; <a href="http://mattkava.com/2010/09/29/netbeans-java-look-different-what-the-hell/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><a href="http://mattkava.com/wp-content/gallery/general/netbeans_wth.png"><img class="ngg-singlepic ngg-center aligncenter" src="http://mattkava.com/wp-content/gallery/general/netbeans_wth.png" alt="netbeans_wth" width="335" height="412" /></a></p>
<address>Click The Smaller to make The Bigger.<br />
</address>
<p>As you can see above, I have two windows shown for comparison. The top is the Design portion of the editor in The Netbeans while the top is the executed version of the exact same window, from within The Netbeans. Why they look different and have different sizes of elements? No fscking clue! &lt;.&lt;`</p>
<p><em><strong>What. The. Hell. The. Netbeans?!</strong></em></p>
<p>I should just go back to using vi for everything again&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://mattkava.com/2010/09/29/netbeans-java-look-different-what-the-hell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SimpleIRC Protocol, V1.0</title>
		<link>http://mattkava.com/2010/02/27/simpleirc-protocol-v1-0/</link>
		<comments>http://mattkava.com/2010/02/27/simpleirc-protocol-v1-0/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 08:26:45 +0000</pubDate>
		<dc:creator>Mkava</dc:creator>
				<category><![CDATA[Programming & Code]]></category>
		<category><![CDATA[Site/Blog-related]]></category>
		<category><![CDATA[csis]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[msum]]></category>
		<category><![CDATA[nfnet]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[stupid]]></category>
		<category><![CDATA[walker]]></category>

		<guid isPermaLink="false">http://mattkava.com/?p=519</guid>
		<description><![CDATA[I have posted the latest edition of the SimpleIRC (or as I jokingly refer to it, StupidIRC) over in the new &#8220;Helpful Junk&#8221; section of the site. I&#8217;m going to try to keep it up to date with all of &#8230; <a href="http://mattkava.com/2010/02/27/simpleirc-protocol-v1-0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have posted the latest edition of the SimpleIRC (or as I jokingly refer to it, StupidIRC) over in the new <strong>&#8220;Helpful Junk&#8221;</strong> section of the site. I&#8217;m going to try to keep it up to date with all of the changes that may occur to it throughout the lifetime of its usage for CSIS 440 this semester. I&#8217;m hoping its simple enough, yet robust so it can be used in future projects for this class, or even as a way to teach people how IRC works a bit for those being trained in as network programmers at <a href="http://www.nfnet.org">NFNet</a> (people who will be using the IRC protocol on a personal level but instead of just using it, they will <em>know</em> it by heart). Four commands a basically decent structure should make things magically. =)</p>
<p>At time of this posting, Dr. Walker has yet to comment on it. Nor any other classmate was not there for the creation of the latest documentation for the simplistic protocol. *sigh*</p>
]]></content:encoded>
			<wfw:commentRss>http://mattkava.com/2010/02/27/simpleirc-protocol-v1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>snega2usb &#8211; USB reader for classic SNES and Genesis</title>
		<link>http://mattkava.com/2009/09/08/snega2usb-usb-reader-for-classic-snes-and-genesis/</link>
		<comments>http://mattkava.com/2009/09/08/snega2usb-usb-reader-for-classic-snes-and-genesis/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 20:02:09 +0000</pubDate>
		<dc:creator>Mkava</dc:creator>
				<category><![CDATA[Programming & Code]]></category>
		<category><![CDATA[Vidja Games]]></category>

		<guid isPermaLink="false">http://kavama.nintendofreaks.com/?p=296</guid>
		<description><![CDATA[snega2usb is a hardware project that allows reading of SNES and Genesis carts directly to a computer via USB. Essentially, it allows an emulator to read/write from/to the cart as a means of playing the cart as if it was &#8230; <a href="http://mattkava.com/2009/09/08/snega2usb-usb-reader-for-classic-snes-and-genesis/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><a href="http://www.snega2usb.com/wordpress/" target="_blank"><img class="ngg-singlepic ngg-none aligncenter" src="http://kavama.nintendofreaks.com/wp-content/gallery/general/snega2usb3.gif" alt="snega2usb3" /></a></p>
<p>snega2usb is a hardware project that allows reading of SNES and Genesis carts directly to a computer via USB. Essentially, it allows an emulator to read/write from/to the cart as a means of playing the cart as if it was a ROM of the game. It&#8217;s an interesting project, and certainly provides a look at the legality of space-shifting digital medium and all that lovely legal business.</p>
<p>I thought this was pretty sweet either way. If I could find my Genesis carts and didn&#8217;t have a working SNES, I&#8217;d be on top of this in a snap. Hope the designer can actually get the project through and make it to production, as it would be great to see something like this out there for people who have a cart collection but a non-working console.</p>
<p>Information can be found at: <a href="http://www.snega2usb.com/wordpress/" target="_blank">http://www.snega2usb.com/wordpress/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mattkava.com/2009/09/08/snega2usb-usb-reader-for-classic-snes-and-genesis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project: Weather via NWS on Desktop</title>
		<link>http://mattkava.com/2009/08/19/project-weather-via-nws-on-desktop/</link>
		<comments>http://mattkava.com/2009/08/19/project-weather-via-nws-on-desktop/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 20:44:52 +0000</pubDate>
		<dc:creator>Mkava</dc:creator>
				<category><![CDATA[Programming & Code]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[weather]]></category>

		<guid isPermaLink="false">http://kavama.nintendofreaks.com/?p=196</guid>
		<description><![CDATA[One project I have been slowly working on throughout the summer has been a tool that essentially provides the National Weather Service forecast and radar without a browser (at least, not a direct one). Was curious if anybody has ever &#8230; <a href="http://mattkava.com/2009/08/19/project-weather-via-nws-on-desktop/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One project I have been slowly working on throughout the summer has been a tool that essentially provides the National Weather Service forecast and radar without a browser (at least, not a direct one). Was curious if anybody has ever attempted something like this that involves parsing the XML file from the NWS or really anything like the project idea of a desktop app showing the weather.</p>
<p>I&#8217;ll get a page up about this project soonish, as well as actually finish this site one of these days. &gt;.&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://mattkava.com/2009/08/19/project-weather-via-nws-on-desktop/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

