<?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>My Piece of the Inter(.)net &#187; C Plus Plus</title>
	<atom:link href="http://mypieceoftheinter.net/tag/c-plus-plus/feed" rel="self" type="application/rss+xml" />
	<link>http://mypieceoftheinter.net</link>
	<description>A place for my geekish ramblings or whatever I find interesting.</description>
	<lastBuildDate>Mon, 16 Jan 2012 16:35:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>New and improved!  The previous post on one line!</title>
		<link>http://mypieceoftheinter.net/archives/1868</link>
		<comments>http://mypieceoftheinter.net/archives/1868#comments</comments>
		<pubDate>Tue, 20 Oct 2009 20:13:33 +0000</pubDate>
		<dc:creator>David McGrath</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[C Plus Plus]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Puzzles]]></category>

		<guid isPermaLink="false">http://mypieceoftheinter.net/?p=1868</guid>
		<description><![CDATA[This following bash code outputs the puzzlebot facebook email from my previous post with no extra output. This is one of those &#8220;just for fun things&#8221; that non-CS people don&#8217;t understand. echo -e "#include &#60;stdio.h&#62;\nint main(int argc, char ** args){printf(\"%d@facebook.com\\\n\", 0xFACEB00C&#62;&#62;2); return 0;}" &#62; fbmail.c; g++ fbmail.c -o fbmail; ./fbmail; rm fbmail.c fbmail]]></description>
			<content:encoded><![CDATA[<p>This following bash code outputs the puzzlebot facebook email from <a href="http://mypieceoftheinter.net/archives/1862">my previous post</a> with no extra output.  This is one of those &#8220;just for fun things&#8221; that non-CS people don&#8217;t understand.</p>
<p><code>echo -e "#include &lt;stdio.h&gt;\nint main(int argc, char ** args){printf(\"%d@facebook.com\\\n\", 0xFACEB00C&gt;&gt;2); return 0;}" &gt; fbmail.c; g++ fbmail.c -o fbmail; ./fbmail; rm fbmail.c fbmail</code></p>
]]></content:encoded>
			<wfw:commentRss>http://mypieceoftheinter.net/archives/1868/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>http://facebook.com/puzzles</title>
		<link>http://mypieceoftheinter.net/archives/1862</link>
		<comments>http://mypieceoftheinter.net/archives/1862#comments</comments>
		<pubDate>Tue, 20 Oct 2009 19:53:10 +0000</pubDate>
		<dc:creator>David McGrath</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[C Plus Plus]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Internships]]></category>
		<category><![CDATA[Puzzles]]></category>

		<guid isPermaLink="false">http://mypieceoftheinter.net/?p=1862</guid>
		<description><![CDATA[I had a preliminary interview with a woman at Facebook yesterday. We scheduled another interview for Thursday, which will have more technical kinds of questions. I asked her what i should be doing in the interum,and she suggested that I check out http://facebook.com/puzzles. The page had brushed past my radar in the past, but I [...]]]></description>
			<content:encoded><![CDATA[<p>I had a preliminary interview with a woman at Facebook yesterday.  We scheduled another interview for Thursday, which will have more technical kinds of questions.  I asked her what i should be doing in the interum,and she suggested that I check out <a href="http://facebook.com/puzzles">http://facebook.com/puzzles</a>.  The page had brushed past my radar in the past, but I didn&#8217;t give it a serious look until now.  The page has a bunch of programming puzzles for anyone to do.  Even the submission email address is a puzzle.</p>
<blockquote><p>Submissions should be sent via email to the address: <strong>{0xFACEB00C&gt;&gt;2 in decimal}@facebook.com</strong></p></blockquote>
<p>Since one can easily find the email with a quick Google search, I thought I&#8217;d show how to find it. The puzzle page is Unix-centric, so for this task I logged into an Ubuntu virtual machine that lives on my home network.</p>
<p>In ViM, here&#8217;s the simple program:</p>
<p><img class="alignnone size-full wp-image-1863" title="Facebook Email 1" src="http://mypieceoftheinter.net/wp-content/uploads/2009/10/fbemail1.PNG" alt="Facebook Email 1" width="568" height="381" />
</p>
<p><span id="more-1862"></span></p>
<p>cute.  I have saved the file, and now I write a command to compile and execute the code.</p>
<p><img class="alignnone size-full wp-image-1864" title="Facebook Email 2" src="http://mypieceoftheinter.net/wp-content/uploads/2009/10/fbemail2.PNG" alt="Facebook Email 2" width="566" height="382" />
</p>
<p>And now we see the output of the email (below &#8220;[. . .]vim fbemail.c&#8221; and above &#8220;Press ENTER [. . .]&#8220;)</p>
<p><img class="alignnone size-full wp-image-1865" title="Facebook Email 3" src="http://mypieceoftheinter.net/wp-content/uploads/2009/10/fbemail3.PNG" alt="Facebook Email 3" width="566" height="390" />
</p>
<p>Yeah, no spoilers here&#8230; but if you can&#8217;t complete this task you won&#8217;t be able to do any of the others anyway.  No doubt the Facebook recruiters will judge me on my performance with these.  This is going to be fun. <img src='http://mypieceoftheinter.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><em>edit at 4:25pm</em>: <a href="http://mypieceoftheinter.net/archives/1868">update</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mypieceoftheinter.net/archives/1862/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FRI is dead, but its spirit lives on</title>
		<link>http://mypieceoftheinter.net/archives/1839</link>
		<comments>http://mypieceoftheinter.net/archives/1839#comments</comments>
		<pubDate>Mon, 12 Oct 2009 04:01:38 +0000</pubDate>
		<dc:creator>David McGrath</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Arcadia]]></category>
		<category><![CDATA[C Plus Plus]]></category>
		<category><![CDATA[C Sharp]]></category>
		<category><![CDATA[Emulation]]></category>
		<category><![CDATA[FRI]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Regular Expressions]]></category>
		<category><![CDATA[ROMs]]></category>

		<guid isPermaLink="false">http://mypieceoftheinter.net/?p=1839</guid>
		<description><![CDATA[It&#8217;s been almost a year since I&#8217;ve updated FRI, my ROM library program. FRI is now officially dead, but not completely gone. Since I started working on FRI I have gained a lot more programming experience. I started writing the thing when I was still a C# novice. Between then and now I have written [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been <a href="http://mypieceoftheinter.net/archives/990">almost a year since</a> I&#8217;ve updated <a href="http://mypieceoftheinter.net/tag/fri">FRI</a>, my ROM library program.  FRI is now officially dead, but not completely gone.  Since I started working on FRI I have gained a lot more programming experience.  I started writing the thing when I was still a <a href="http://en.wikipedia.org/wiki/C_Sharp_(programming_language)">C#</a> novice.  Between then and now I have written an elaborate intranet site in <a href="http://en.wikipedia.org/wiki/Asp.net">ASP.NET</a>, debugged and written C++ applications, and have learned the true value of a <a href="http://en.wikipedia.org/wiki/Regular_expression">regular expression</a>.  I look at FRI&#8217;s code now and am a little grossed out.   I decided that if I was going to make any more improvements to FRI, I&#8217;d have to start over and rearchitect the whole thing.  The name of this new project: Arcadia.</p>
<p>With Arcadia I have committed to research everything that I suspect will make for a better design.  Because of this, Archaida&#8217;s backend is shaping up to be elegant and efficient.  I researched how to do inheritance in C#, and have used that to save myself from writing a lot of code.  This has drastically decreased development and testing time.  I learned how to use basic regular expressions over the summer, and have used them in some areas (more on that later).  For the frontend I decided to switch from <a href="http://en.wikipedia.org/wiki/Windows_Forms">WinForms </a>to <a href="http://en.wikipedia.org/wiki/Windows_Presentation_Foundation">WPF</a>.  All I can say is that <a href="http://en.wikipedia.org/wiki/Databinding">databinding </a>is epic, and I still have a lot more to learn about it.</p>
<p>Here&#8217;s a shot of Arcadia in its current form:<br />
<br />
<img class="alignnone size-full wp-image-1842" title="Arcadia prealpha" src="http://mypieceoftheinter.net/wp-content/uploads/2009/10/archadia_prealpha.PNG" alt="Arcadia prealpha" width="729" height="533" /></p>
<p><span id="more-1839"></span></p>
<p>I&#8217;ll hopefully release an alpha soon.</p>
<p><em>edit October 12, 2009 at 10:57am:</em><br />
<br />  Also generics.  Generics are amazing.  (More on that later, too.)</p>
]]></content:encoded>
			<wfw:commentRss>http://mypieceoftheinter.net/archives/1839/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

