<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippets for the shell</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this member.</description>
		<pubDate>Tue, 02 Dec 2008 19:32:57 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>Splitting a Log into a 3D array</title>
	<link>http://www.bytemycode.com/snippets/snippet/437/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/437/comments/</comments>
	<pubDate>Mon, 09 Oct 2006 08:18:47 +0000</pubDate>
	<dc:creator>shell</dc:creator>
	<category>PHP</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/437/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 9th, 2006  8:18 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/437/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/shell/" title="Helper">shell</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/437/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 12
			<p>Over the summer, I worked on a project in which I needed to parse logfiles which were in the following format:<br /><br />IP|USE|TIME>IP2|USE2|TIME2><br /><br />and so on.<br /><br />When I parsed them to display the log file in a user-friendly fashion, I used the following code:</p>
		]]>
	</description>
</item><item>
	<title>Foreach for Int Array</title>
	<link>http://www.bytemycode.com/snippets/snippet/433/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/433/comments/</comments>
	<pubDate>Mon, 09 Oct 2006 06:57:38 +0000</pubDate>
	<dc:creator>shell</dc:creator>
	<category>C, CPlusPlus</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/433/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 9th, 2006  6:57 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/433/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/shell/" title="Helper">shell</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/C">C</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/CPlusPlus">CPlusPlus</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/433/comments/">6 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 9
			<p>I was coding a project that used arrays when the lack of a standard foreach in C/C++ got to me. So, I coded this little function to help me. It applies a function that returns int to each element of the array.</p>
		]]>
	</description>
</item><item>
	<title>A Simple Sockets Framework</title>
	<link>http://www.bytemycode.com/snippets/snippet/432/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/432/comments/</comments>
	<pubDate>Mon, 09 Oct 2006 06:46:00 +0000</pubDate>
	<dc:creator>shell</dc:creator>
	<category>CPlusPlus, Sockets, Winsock</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/432/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 9th, 2006  6:46 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/432/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/shell/" title="Helper">shell</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/CPlusPlus">CPlusPlus</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Sockets">Sockets</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Winsock">Winsock</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/432/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 8
			<p>I made this a little while back for a friend who was having trouble learning sockets. Below are snf.h, snferror.h and example.cpp (a little example).<br /><br />The example opens a "web server" at port 8080 on the machine. However, it displays just one page.<br /><br />Have fun!</p>
		]]>
	</description>
</item><item>
	<title>Simple Display-String Method in GLUT</title>
	<link>http://www.bytemycode.com/snippets/snippet/431/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/431/comments/</comments>
	<pubDate>Mon, 09 Oct 2006 06:38:38 +0000</pubDate>
	<dc:creator>shell</dc:creator>
	<category>3D, CPlusPlus, GLUT, OpenGL</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/431/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 9th, 2006  6:38 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/431/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/shell/" title="Helper">shell</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/3D">3D</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/CPlusPlus">CPlusPlus</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/GLUT">GLUT</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/OpenGL">OpenGL</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/431/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 8
			<p>This little function puts a string of a specified color and (centered) location. However, keep the word simple in mind. I purposfully not made it capable of supporting newlines.<br /><br />By the way, this is my first snippet <img src="http://www.bytemycode.com/img/wysiwyg/emo-bigsmile.gif" /></p>
		]]>
	</description>
</item>
	</channel>
</rss>