<?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>Jacob A. Rau &#187; Code snips</title>
	<atom:link href="http://jacobarau.com/category/code-snips/feed/" rel="self" type="application/rss+xml" />
	<link>http://jacobarau.com</link>
	<description>The personal blog of Jacob A. Rau</description>
	<lastBuildDate>Sun, 25 Jul 2010 17:20:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Sudoku Solver: Straight out of the mothballs&#8230;</title>
		<link>http://jacobarau.com/2009/04/sudoku-solver-straight-out-of-the-mothballs/</link>
		<comments>http://jacobarau.com/2009/04/sudoku-solver-straight-out-of-the-mothballs/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 19:28:57 +0000</pubDate>
		<dc:creator>Jacob A. Rau</dc:creator>
				<category><![CDATA[Code snips]]></category>

		<guid isPermaLink="false">http://jacobarau.com/?p=69</guid>
		<description><![CDATA[I was digging around in my long-abandoned Windows partition, and I found some old backups of some old stuff. One particular program I used to be so proud of is my Sudoku Solver. It is a C++ program that I wrote as a final project my sophomore year of high school; I opened the files [...]]]></description>
			<content:encoded><![CDATA[<p>I was digging around in my long-abandoned Windows partition, and I found some old backups of some old stuff. One particular program I used to be so proud of is my Sudoku Solver. It is a C++ program that I wrote as a final project my sophomore year of high school; I opened the files and made the necessary modifications to make it compile (stripped a couple of mistakes out of the header file; removed a system() call that only works under Windows) and stuck the GPL on it. It isn&#8217;t particularly clean, or a great solution, and it has next to no comments, but <a href="http://jacobarau.com/wp-content/uploads/2009/04/sudoku_solver.zip">here&#8217;s the source of Sudoku Solver.</a> You can compile it under Linux by issuing the command &#8220;g++ board_handler.cpp main.cpp&#8221;. As for Windows, I used <a href="http://www.bloodshed.net/devcpp.html" target="_blank">Bloodshed Dev-C++</a> for the longest time; I believe it has a Windows version of g++ behind the scenes, so it should behave the same. I included a simple unsolved file for it to read; pointing it at sudoku.sdk saved a lot of time in debug&#8230;</p>
<p>Is it bad to be barely an adult and already have nostalgic moments?</p>
]]></content:encoded>
			<wfw:commentRss>http://jacobarau.com/2009/04/sudoku-solver-straight-out-of-the-mothballs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting your user-agent</title>
		<link>http://jacobarau.com/2009/03/getting-your-user-agent/</link>
		<comments>http://jacobarau.com/2009/03/getting-your-user-agent/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 10:57:59 +0000</pubDate>
		<dc:creator>Jacob A. Rau</dc:creator>
				<category><![CDATA[Code snips]]></category>

		<guid isPermaLink="false">http://jacobarau.com/?p=55</guid>
		<description><![CDATA[I just whipped up a short PHP script to display the user-agent and IP of a client&#8217;s browser. I wanted this because I was writing to Citizens Bank about a bug in their home page (a broken browser detection script). The script can be used here and the content of it is very simple: &#60;?php [...]]]></description>
			<content:encoded><![CDATA[<p>I just whipped up a short PHP script to display the user-agent and IP of a client&#8217;s browser. I wanted this because I was writing to Citizens Bank about a bug in their home page (a broken browser detection script). The script can be used <a href="http://jacobarau.com/agent-detect.php">here</a> and the content of it is very simple:</p>
<p><code>&lt;?php<br />
echo "Your browser is reporting the agent string: '";<br />
echo $_SERVER['HTTP_USER_AGENT'];<br />
echo "'&lt;br&gt;Your IP address is ".$_SERVER['REMOTE_ADDR'];<br />
?&gt;</code></p>
<p>Yeah.</p>
]]></content:encoded>
			<wfw:commentRss>http://jacobarau.com/2009/03/getting-your-user-agent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
