<?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 RobHarrigan</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this member.</description>
		<pubDate>Sat, 05 Jul 2008 19:58:28 +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>Yoink - Grab lines from a file</title>
	<link>http://www.bytemycode.com/snippets/snippet/580/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/580/comments/</comments>
	<pubDate>Thu, 25 Jan 2007 11:16:46 +0000</pubDate>
	<dc:creator>RobHarrigan</dc:creator>
	<category>File, grab, lines, yank, yoink</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/580/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Jan. 25th, 2007  11:16 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/580/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/RobHarrigan/" title="Helper">RobHarrigan</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/File">File</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/grab">grab</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/lines">lines</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/yank">yank</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/yoink">yoink</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/580/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 8
			<p>Use this utility to grab lines from a file. Arguments are the input file, starting ling number and ending line number.</p>
		]]>
	</description>
</item><item>
	<title>Simple Title case regex</title>
	<link>http://www.bytemycode.com/snippets/snippet/523/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/523/comments/</comments>
	<pubDate>Mon, 06 Nov 2006 13:48:08 +0000</pubDate>
	<dc:creator>RobHarrigan</dc:creator>
	<category>"first, "title, capitalize, case", letter", Perl</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/523/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Nov. 6th, 2006  1:48 PM			<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/523/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/RobHarrigan/" title="Helper">RobHarrigan</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/%22first">"first</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/%22title">"title</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/capitalize">capitalize</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/case%22">case"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/letter%22">letter"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Perl">Perl</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/523/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 7
			<p>Function to capitalize the first letter in every word in a string, but only if the entire string is in ALL CAPS.<br /><br />Example:<br />"I LIKE TO SCREAM" becomes "I Like To Scream"<br />"I LIKE to RUN" remains "I LIKE to RUN".</p>
		]]>
	</description>
</item><item>
	<title>Group and count items in Excel</title>
	<link>http://www.bytemycode.com/snippets/snippet/492/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/492/comments/</comments>
	<pubDate>Fri, 27 Oct 2006 08:30:38 +0000</pubDate>
	<dc:creator>RobHarrigan</dc:creator>
	<category>count, excel, group, macro, tally</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/492/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Fri. Oct. 27th, 2006  8:30 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/492/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/RobHarrigan/" title="Helper">RobHarrigan</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/count">count</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/excel">excel</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/group">group</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/macro">macro</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/tally">tally</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/492/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 5
			<p>Excel macro to group and count the number of items in a range of cells, delimited by the pipe character "|". It returns a summary of the items including a percent of total and count for each item found, plus a grand total of all items.<br /><br />Currently limited to 100 items, simple becasue I didn't have the time to spend to get dynamic arrays to work.<br /><br /><blockquote><br />Sample Data:<br />--------------<br />cat|dog|bird<br />--------------<br />cat|bird<br />--------------<br />cat<br />--------------<br />frog<br /><br />==================<br />OUTPUT from =total(A1:A4)<br />==================<br />42.9% - 3: cat<br />28.6% - 2: bird<br />14.3% - 1: dog<br />14.3% - 1: frog<br />---<br />7</blockquote></p>
		]]>
	</description>
</item><item>
	<title>Sanitize form input using CGI.pm</title>
	<link>http://www.bytemycode.com/snippets/snippet/439/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/439/comments/</comments>
	<pubDate>Mon, 09 Oct 2006 08:44:09 +0000</pubDate>
	<dc:creator>RobHarrigan</dc:creator>
	<category>"form input", "SQL Injection", Clean, Prevent, XSS</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/439/</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:44 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/439/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/RobHarrigan/" title="Helper">RobHarrigan</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/%22form+input%22">"form input"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/%22SQL+Injection%22">"SQL Injection"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Clean">Clean</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Prevent">Prevent</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/XSS">XSS</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/439/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 5
			<p>Sanitize form input using CGI.pm to prevent XXS & SQL injections:</p>
		]]>
	</description>
</item>
	</channel>
</rss>