<?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>Odie5533 &#187; C# .NET</title>
	<atom:link href="http://odie5533.com/category/programming/csharp/feed" rel="self" type="application/rss+xml" />
	<link>http://odie5533.com</link>
	<description></description>
	<lastBuildDate>Mon, 06 Sep 2010 01:31:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>HaloHBF v0.1</title>
		<link>http://odie5533.com/170-halohbf-v01</link>
		<comments>http://odie5533.com/170-halohbf-v01#comments</comments>
		<pubDate>Sun, 09 Nov 2008 04:53:43 +0000</pubDate>
		<dc:creator>odie5533</dc:creator>
				<category><![CDATA[C# .NET]]></category>
		<category><![CDATA[Aimbot]]></category>
		<category><![CDATA[Bitterbanana]]></category>
		<category><![CDATA[Halo]]></category>

		<guid isPermaLink="false">http://odie5533.com/?p=170</guid>
		<description><![CDATA[I get so many hits to my site every day from people looking for it, so here it is. Download HaloHBF v0.1]]></description>
			<content:encoded><![CDATA[<p>I get so many hits to my site every day from people looking for it, so here it is.
<div class="wp-caption aligncenter" style="width: 220px"><img src="/programs/HaloHBF/HaloHBF.png"/><p class="wp-caption-text">HaloHBF v0.1</p></div>
<a href="/programs/HaloHBF/HaloHBF_v0.1.rar">Download HaloHBF v0.1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://odie5533.com/170-halohbf-v01/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>SHADE v0.1</title>
		<link>http://odie5533.com/31-shade-v01</link>
		<comments>http://odie5533.com/31-shade-v01#comments</comments>
		<pubDate>Tue, 16 Oct 2007 12:44:32 +0000</pubDate>
		<dc:creator>odie5533</dc:creator>
				<category><![CDATA[C# .NET]]></category>
		<category><![CDATA[Automation]]></category>

		<guid isPermaLink="false">http://odie5533.com/?p=31</guid>
		<description><![CDATA[Scriptable Human Automation Development Environment v0.1 I was never planning on releasing this, as it is not even close to being ready for release. But someone had mentioned it in an email so I felt I should at least let the world see it, even in its unfit state. I spent about 1-2 weeks writing [...]]]></description>
			<content:encoded><![CDATA[<p>Scriptable Human Automation Development Environment v0.1
I was never planning on releasing this, as it is not even close to being ready for release. But someone had mentioned it in an email so I felt I should at least let the world see it, even in its unfit state. I spent about 1-2 weeks writing this program back in July, and now that it is October I can see I am not working on it enough to do it justice.</p>

<p>SHADE provides users a lua-scriptable development environment to the InputAutomator class I wrote. InputAutomator basically performs things a human would such as moving the mouse, typing, and &#8216;looking&#8217; at the screen. SHADE provides a front-end to the InputAutomator, but if you would rather program directly in C#, InputAutmator is released under the GNU GPL so feel free to. If you do ever make modifications, please drop me an email or post a comment. I&#8217;d love to hear about it <img src='http://odie5533.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<p>Anyways, here is what I have so far:
<div style="height: 525px"><img src="/programs/SHADE/SHADE.v0.1.png" /></div></p>

<div style="margin-top: 15px;"><a href="/programs/SHADE/SHADE.v0.1.rar">Download SHADE v0.1 Here</a></div>
]]></content:encoded>
			<wfw:commentRss>http://odie5533.com/31-shade-v01/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HeliumDownloader v0.1 Alpha</title>
		<link>http://odie5533.com/30-heliumdownloader-v01-alpha</link>
		<comments>http://odie5533.com/30-heliumdownloader-v01-alpha#comments</comments>
		<pubDate>Sun, 02 Sep 2007 14:23:25 +0000</pubDate>
		<dc:creator>odie5533</dc:creator>
				<category><![CDATA[C# .NET]]></category>
		<category><![CDATA[Downloader]]></category>

		<guid isPermaLink="false">http://odie5533.com/?p=30</guid>
		<description><![CDATA[Alpha&#8230; It probably should be pre-alpha. In fact, the only thing it&#8217;s got going for it is that it works. It&#8217;s a download manager, for downloading from free upload sites like megaupload, egoshare, and oxedion (the only 3 it currently supports). I will probably add support for a few more sites after I work more [...]]]></description>
			<content:encoded><![CDATA[<p>Alpha&#8230; It probably should be pre-alpha. In fact, the only thing it&#8217;s got going for it is that it works. It&#8217;s a download manager, for downloading from free upload sites like megaupload, egoshare, and oxedion (the only 3 it currently supports). I will probably add support for a few more sites after I work more on the program itself, but I&#8217;m going to leave it up to the general public to continue plugin development. Plugin development is easily accomplished for HeliumDownloader through the use of it&#8217;s lua scripting engine. That means, if one of the upload sites decides to change how the users download to stop the various download programs, HeliumDownloader can easily be updated to counter any such updates. </p>

<p>Although the source files don&#8217;t say it yet, I am releasing this program under the GNU GPL, including the plugins it comes with. I&#8217;ll probably make the licensing official when I get closer to finishing the program.</p>

<p>If anyone has any suggestions, please do post them in the comment. And if anyone would like to submit source code or plugins, please do. Also, if users would please upload their log files, I&#8217;d appreciate it. Use a pastebin like <a href="http://pastebin.ca/">http://pastebin.ca/</a> to post the log, and then send me a link to the post in a comment.</p>

<p><img src="/programs/HeliumDownloader/HeliumDownloader.v0.1a.png" /></p>

<p><a href="/programs/HeliumDownloader/HeliumDownloader.v0.1a.rar">Download HeliumDownloader v0.1 Alpha Here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://odie5533.com/30-heliumdownloader-v01-alpha/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Image Slicer v1.0</title>
		<link>http://odie5533.com/29-free-image-slicer-v10</link>
		<comments>http://odie5533.com/29-free-image-slicer-v10#comments</comments>
		<pubDate>Sun, 26 Aug 2007 11:37:11 +0000</pubDate>
		<dc:creator>odie5533</dc:creator>
				<category><![CDATA[C# .NET]]></category>
		<category><![CDATA[Image Manipulation]]></category>

		<guid isPermaLink="false">http://odie5533.com/?p=29</guid>
		<description><![CDATA[It slices images into rows and columns. It also includes my ExListViewItem, which automatically allows drag and drop of file to a listbox, along with handling deleting files from the listbox and re-arranging the files. Download Free Image Slicer v1.0 Here Here is the Slice Image Method: public Image&#91;&#93; SliceImage&#40;Image mainImage, int rows, int cols&#41; [...]]]></description>
			<content:encoded><![CDATA[<p>It slices images into rows and columns. It also includes my ExListViewItem, which automatically allows drag and drop of file to a listbox, along with handling deleting files from the listbox and re-arranging the files.</p>

<div class="wp-caption aligncenter" style="width: 485px"><a href="/programs/FreeImageSlicer/FreeImageSlicer.v1.0.png"><img width="475" src="/programs/FreeImageSlicer/FreeImageSlicer.v1.0.png" /></a><p class="wp-caption-text">FreeImageSlicer</p></div>

<p><a href="/programs/FreeImageSlicer/FreeImageSlicer.v1.0.rar">Download Free Image Slicer v1.0 Here</a></p>

<p>Here is the Slice Image Method:</p>


<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;">        <span style="color: #0600FF;">public</span> Image<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> SliceImage<span style="color: #000000;">&#40;</span>Image mainImage, <span style="color: #FF0000;">int</span> rows, <span style="color: #FF0000;">int</span> cols<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #FF0000;">int</span> ImageCount <span style="color: #008000;">=</span> rows <span style="color: #008000;">*</span> cols<span style="color: #008000;">;</span>
            Image<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> subImages <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Image<span style="color: #000000;">&#91;</span>ImageCount<span style="color: #000000;">&#93;</span><span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #FF0000;">int</span> subWidth <span style="color: #008000;">=</span> mainImage.<span style="color: #0000FF;">Width</span> <span style="color: #008000;">/</span> cols<span style="color: #008000;">;</span>
            <span style="color: #FF0000;">int</span> subHeight <span style="color: #008000;">=</span> mainImage.<span style="color: #0000FF;">Height</span> <span style="color: #008000;">/</span> rows<span style="color: #008000;">;</span>
            Rectangle destRect <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Rectangle<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">0</span>, <span style="color: #FF0000;">0</span>, subWidth, subHeight<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #FF0000;">int</span> curX <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span>
            <span style="color: #FF0000;">int</span> curY <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span> i <span style="color: #008000;">&lt;</span> ImageCount<span style="color: #008000;">;</span> i<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span>
            <span style="color: #000000;">&#123;</span>
                subImages<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Bitmap<span style="color: #000000;">&#40;</span>subWidth, subHeight<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                Graphics subGfx <span style="color: #008000;">=</span> Graphics.<span style="color: #0000FF;">FromImage</span><span style="color: #000000;">&#40;</span>subImages<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                subGfx.<span style="color: #0000FF;">DrawImage</span><span style="color: #000000;">&#40;</span>mainImage, destRect, curX, curY, subWidth, subHeight, GraphicsUnit.<span style="color: #0000FF;">Pixel</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                curX <span style="color: #008000;">+=</span> subWidth<span style="color: #008000;">;</span>
                <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>curX <span style="color: #008000;">&gt;</span> mainImage.<span style="color: #0000FF;">Width</span> <span style="color: #008000;">-</span> <span style="color: #FF0000;">2</span><span style="color: #000000;">&#41;</span>
                <span style="color: #000000;">&#123;</span>
                    curY <span style="color: #008000;">+=</span> subHeight<span style="color: #008000;">;</span>
                    curX <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span>
                <span style="color: #000000;">&#125;</span>
            <span style="color: #000000;">&#125;</span>
            <span style="color: #0600FF;">return</span> subImages<span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://odie5533.com/29-free-image-slicer-v10/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using the Krypton Toolkit with Visual C# 2005 Express Edition</title>
		<link>http://odie5533.com/26-using-the-krypton-toolkit-with-visual-c-2005-express-edition</link>
		<comments>http://odie5533.com/26-using-the-krypton-toolkit-with-visual-c-2005-express-edition#comments</comments>
		<pubDate>Sat, 07 Jul 2007 14:42:07 +0000</pubDate>
		<dc:creator>odie5533</dc:creator>
				<category><![CDATA[C# .NET]]></category>

		<guid isPermaLink="false">http://odie5533.com/?p=26</guid>
		<description><![CDATA[The Krypton Toolkit makes just about any form look nicer, and it&#8217;s free, so it is a great addition to a program. Installing the Krypton Toolkit is probably very easy if you use the full version of Visual Studio, but with a few steps it can work seamlessly on the Express Edition too. Download and [...]]]></description>
			<content:encoded><![CDATA[<p>The Krypton Toolkit makes just about any form look nicer, and it&#8217;s free, so it is a great addition to a program.</p>

<p>Installing the Krypton Toolkit is probably very easy if you use the full version of Visual Studio, but with a few steps it can work seamlessly on the Express Edition too.</p>

<ol>
<li>Download and install the <a href="http://www.componentfactory.com/index.php#download">Krypton Toolkit</a>.</li>
<li>Copy C:\Program Files\Component Factory Pty Ltd\Krypton Toolkit 2.5.1\Templates\KryptonFormProjectCS.zip to C:\Documents and Settings\your username\My Documents\Visual Studio 2005\Templates\ProjectTemplates\
Be sure to change &#8216;your username&#8217; with your windows username.</li>
<li>In Visual C# 2005 Express Edition, open the Toolbox and right-click it and click Add Tab. Type in a name (Krypton) and hit enter.</li>
<li>In the Toolbox still, right-click and click Choose Items. Scroll down to the K section and check each of the Krypton controls. Hit Ok.</li>
<li>Drag each of the Krypton Controls into the Krypton tab you created in Step 3.</li>
</ol>

<p>Enjoy better forms with Krypton!</p>

<p><a href="http://img257.imageshack.us/img257/5733/kryptonprojectpv6.png"><img src="http://img257.imageshack.us/img257/5733/kryptonprojectpv6.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://odie5533.com/26-using-the-krypton-toolkit-with-visual-c-2005-express-edition/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TZipFront v1.0</title>
		<link>http://odie5533.com/24-tzipfront-v10</link>
		<comments>http://odie5533.com/24-tzipfront-v10#comments</comments>
		<pubDate>Sat, 26 May 2007 14:19:19 +0000</pubDate>
		<dc:creator>odie5533</dc:creator>
				<category><![CDATA[C# .NET]]></category>
		<category><![CDATA[Front End]]></category>
		<category><![CDATA[TorrentZip]]></category>

		<guid isPermaLink="false">http://odie5533.com/?p=24</guid>
		<description><![CDATA[Simple frontend to TorrentZip. TZipFront includes a copy of TorrentZip embedded in the exe file, so no need to download extra files. Usage: 1. Drag and drop zip files onto the white box in the program. 2. Press Go! 3. Press the Delete logs button to delete all the .log files. Download TZipFront v1.0]]></description>
			<content:encoded><![CDATA[<p>Simple frontend to <a href="https://sourceforge.net/projects/trrntzip">TorrentZip</a>. TZipFront includes a copy of TorrentZip embedded in the exe file, so no need to download extra files.</p>

<pre>Usage:
1. Drag and drop zip files onto the white box in the program.
2. Press Go!
3. Press the Delete logs button to delete all the .log files.</pre>

<div style="height: 260px;"><img src="/programs/TZipFront/TZipFront.v1.0.png" /></div>

<p><a href="/programs/TZipFront/TZipFront.v1.0.zip">Download TZipFront v1.0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://odie5533.com/24-tzipfront-v10/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GOTDActivator v1.0.1</title>
		<link>http://odie5533.com/23-gotdactivator-v101</link>
		<comments>http://odie5533.com/23-gotdactivator-v101#comments</comments>
		<pubDate>Wed, 23 May 2007 07:31:01 +0000</pubDate>
		<dc:creator>odie5533</dc:creator>
				<category><![CDATA[C# .NET]]></category>

		<guid isPermaLink="false">http://odie5533.com/?p=23</guid>
		<description><![CDATA[A bug fix, a feature, and a name change. Usage: 1. Run Activator.exe 2. Start either Activate.exe or Setup.exe, depending on which one is used by the particular release. 3. Continue installation steps as usual. Version History: 2007-05-23 - v1.0.1 BUG: Correctly flushes dns when started/stopped FEATURE: Allows comments (#) and blank lines in data [...]]]></description>
			<content:encoded><![CDATA[<p>A bug fix, a feature, and a name change.
<pre>Usage:
1. Run Activator.exe
2. Start either Activate.exe or Setup.exe, depending on which one is
   used by the particular release.
3. Continue installation steps as usual.</p>

<hr />

<p>Version History:
2007-05-23 - v1.0.1
    BUG:     Correctly flushes dns when started/stopped
    FEATURE: Allows comments (#) and blank lines in data file</pre></p>

<p><a href="/programs/GOTDActivator/GOTDActivator.v1.0.1.zip">Download GOTDActivator v1.0.1</a></p>

<p>Remember to download updated activcodes.txt from <a href="/programs/GOTDActivator/activcodes.txt">here</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://odie5533.com/23-gotdactivator-v101/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Activator v1.0 for GOTD</title>
		<link>http://odie5533.com/21-activator-v10-for-gotd</link>
		<comments>http://odie5533.com/21-activator-v10-for-gotd#comments</comments>
		<pubDate>Wed, 02 May 2007 02:29:51 +0000</pubDate>
		<dc:creator>odie5533</dc:creator>
				<category><![CDATA[C# .NET]]></category>

		<guid isPermaLink="false">http://odie5533.com/?p=21</guid>
		<description><![CDATA[http://www.giveawayoftheday.com/ is a site that provides a different commercial software application for free everyday. The company also runs http://game.giveawayoftheday.com/, which offers a free commercial game everyday. The problem provided by these sites is that the installer is wrapped inside a program which activates itself online. That is, if you save the file you download legitimately [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.giveawayoftheday.com/">http://www.giveawayoftheday.com/</a> is a site that provides a different commercial software application for free everyday. The company also runs <a href="http://game.giveawayoftheday.com/">http://game.giveawayoftheday.com/</a>, which offers a free commercial game everyday. The problem provided by these sites is that the installer is wrapped inside a program which activates itself online. That is, if you save the file you download legitimately each day, you will not be able to use those installers since they need to activate online. This method of DRM, like many other methods, is quite unfair to the user as you are forced to install the application the day of and never uninstall it or switch computers or reformat your hard drive. As the software is legitimately yours, I have created a program that will allow you to access your software! Source included, and GNU GPL&#8217;d.</p>

<p>Run Activator.exe and then start either Setup.exe or Activate.exe and the activator will send the required data to the programs so they will activate your software. Activator.exe will edit your hosts file, so if you are having trouble accessing the GOTD sites, try restarting your browser.</p>

<p>The Activator.exe works on a per-application/game basis, so it will only activate certain games/applications, ones added to the activcodes.txt file. To add more programs you need a bit of knowledge of packet sniffing so you can intercept the key and add the program. If I get enough comments asking for it, I may write a tutorial on how to add more applications/games to the support. Otherwise, simply download a new <a href="/programs/Activator/activcodes.txt">activecodes.txt</a> and I will try to update that file every-so-often.</p>

<p><em>EDIT 5/17/07</em> I would like to clarify the purpose of this program to be sure that the creators of GOTD won&#8217;t get mad (well, too mad) at me. This program is not a substitute for downloading the software on the specific day. It is to enable users to use such software they legally download. There are a few ways of going about making sure you&#8217;re allowed to keep your software, some of which break copyright laws, which is why I have released a clean and simple way to accomplish this.</p>

<p>Once again, there are no reg keys or serials or whatnot included with this program. You MUST have the software downloaded the day it is released.</p>

<div style="height: 334px"><img src="/programs/Activator/Activator.v1.0.png" /></div>

<p>Download <a href="/programs/Activator/Activator.v1.0.zip">Actviator v1.0 Here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://odie5533.com/21-activator-v10-for-gotd/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code Snippets</title>
		<link>http://odie5533.com/20-code-snippets</link>
		<comments>http://odie5533.com/20-code-snippets#comments</comments>
		<pubDate>Wed, 02 May 2007 00:58:12 +0000</pubDate>
		<dc:creator>odie5533</dc:creator>
				<category><![CDATA[C# .NET]]></category>

		<guid isPermaLink="false">http://odie5533.com/?p=20</guid>
		<description><![CDATA[C# Code Snippets. I am releasing them into the Public Domain, so go nuts with em // Same functionality as the JavaScript command public static string escape&#40;string unEsc&#41; &#123; string rez = &#34;&#34;; for &#40;int i = 0; i &#60; unEsc.Length; i++&#41; &#123; if &#40;Char.IsLetterOrDigit&#40;unEsc&#91;i&#93;&#41;&#41; rez += unEsc&#91;i&#93;; else rez += &#34;%&#34; + &#40;&#40;int&#41;unEsc&#91;i&#93;&#41;.ToString&#40;&#34;x2&#34;&#41;; &#125; [...]]]></description>
			<content:encoded><![CDATA[<p>C# Code Snippets. I am releasing them into the Public Domain, so go nuts with em <img src='http://odie5533.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">// Same functionality as the JavaScript command</span>
<span style="color: #0600FF;">public</span> <span style="color: #0600FF;">static</span> <span style="color: #FF0000;">string</span> escape<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> unEsc<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #FF0000;">string</span> rez <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;&quot;</span><span style="color: #008000;">;</span>
	<span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span> i <span style="color: #008000;">&lt;</span> unEsc.<span style="color: #0000FF;">Length</span><span style="color: #008000;">;</span> i<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">Char</span>.<span style="color: #0000FF;">IsLetterOrDigit</span><span style="color: #000000;">&#40;</span>unEsc<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
			rez <span style="color: #008000;">+=</span> unEsc<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #008000;">;</span>
		<span style="color: #0600FF;">else</span>
			rez <span style="color: #008000;">+=</span> <span style="color: #666666;">&quot;%&quot;</span> <span style="color: #008000;">+</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span><span style="color: #000000;">&#41;</span>unEsc<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;x2&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
	<span style="color: #000000;">&#125;</span>
	<span style="color: #0600FF;">return</span> rez<span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>



<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">// Bytes -&gt; Hex String, Hex String -&gt; Bytes, Hex String -&gt; Int</span>
        <span style="color: #0600FF;">public</span> <span style="color: #0600FF;">static</span> <span style="color: #FF0000;">string</span> bytesToHex<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> bytes, <span style="color: #FF0000;">int</span> start, <span style="color: #FF0000;">int</span> length, <span style="color: #FF0000;">string</span> delim<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #000000;">System.<span style="color: #0000FF;">Text</span></span>.<span style="color: #0000FF;">StringBuilder</span> sb <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Text</span></span>.<span style="color: #0000FF;">StringBuilder</span><span style="color: #000000;">&#40;</span>bytes.<span style="color: #0000FF;">Length</span> <span style="color: #008000;">*</span> <span style="color: #FF0000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #FF0000;">int</span> end <span style="color: #008000;">=</span> start <span style="color: #008000;">+</span> length<span style="color: #008000;">;</span>
            <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i <span style="color: #008000;">=</span> start<span style="color: #008000;">;</span> i <span style="color: #008000;">&lt;</span> end<span style="color: #008000;">;</span> i<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span>
            <span style="color: #000000;">&#123;</span>
                sb.<span style="color: #0000FF;">Append</span><span style="color: #000000;">&#40;</span>bytes<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;X2&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                sb.<span style="color: #0000FF;">Append</span><span style="color: #000000;">&#40;</span>delim<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #000000;">&#125;</span>
            <span style="color: #0600FF;">return</span> sb.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">public</span> <span style="color: #0600FF;">static</span> <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> hexToBytes<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> hexString<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>hexString.<span style="color: #0000FF;">StartsWith</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;0x&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                hexString <span style="color: #008000;">=</span> hexString.<span style="color: #0000FF;">Substring</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            hexString <span style="color: #008000;">=</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">RegularExpressions</span></span>.<span style="color: #0000FF;">Regex</span>.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>hexString, <span style="color: #666666;">&quot;[^a-fA-F0-9]&quot;</span>, <span style="color: #666666;">&quot;&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>hexString.<span style="color: #0000FF;">Length</span> <span style="color: #008000;">%</span> <span style="color: #FF0000;">2</span> <span style="color: #008000;">!=</span> <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>
                hexString <span style="color: #008000;">=</span> hexString.<span style="color: #0000FF;">Substring</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">0</span>, hexString.<span style="color: #0000FF;">Length</span> <span style="color: #008000;">-</span> <span style="color: #FF0000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #FF0000;">int</span> length <span style="color: #008000;">=</span> hexString.<span style="color: #0000FF;">Length</span> <span style="color: #008000;">/</span> <span style="color: #FF0000;">2</span><span style="color: #008000;">;</span>
            <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> buf <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span>length<span style="color: #000000;">&#93;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span> i <span style="color: #008000;">&lt;</span> length<span style="color: #008000;">;</span> i<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span>
                buf<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">byte</span>.<span style="color: #0000FF;">Parse</span><span style="color: #000000;">&#40;</span>hexString.<span style="color: #0000FF;">Substring</span><span style="color: #000000;">&#40;</span>i <span style="color: #008000;">*</span> <span style="color: #FF0000;">2</span>, <span style="color: #FF0000;">2</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">System.<span style="color: #0000FF;">Globalization</span></span>.<span style="color: #0000FF;">NumberStyles</span>.<span style="color: #0000FF;">HexNumber</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #0600FF;">return</span> buf<span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">public</span> <span style="color: #0600FF;">static</span> <span style="color: #FF0000;">int</span> hexToInt<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> hexString<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>hexString.<span style="color: #0000FF;">StartsWith</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;0x&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                hexString <span style="color: #008000;">=</span> hexString.<span style="color: #0000FF;">Substring</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF;">return</span> <span style="color: #FF0000;">int</span>.<span style="color: #0000FF;">Parse</span><span style="color: #000000;">&#40;</span>hexString, <span style="color: #000000;">System.<span style="color: #0000FF;">Globalization</span></span>.<span style="color: #0000FF;">NumberStyles</span>.<span style="color: #0000FF;">HexNumber</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://odie5533.com/20-code-snippets/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CloudyNews v1</title>
		<link>http://odie5533.com/16-cloudynews-v1</link>
		<comments>http://odie5533.com/16-cloudynews-v1#comments</comments>
		<pubDate>Tue, 12 Dec 2006 00:49:59 +0000</pubDate>
		<dc:creator>odie5533</dc:creator>
				<category><![CDATA[C# .NET]]></category>

		<guid isPermaLink="false">http://odie5533.com/?p=16</guid>
		<description><![CDATA[NewsCloud.com is running poll to pick 2007&#8242;s Hot Topics. Obviously, Colbert Report is waaay up there on the list, and as loyal followers of truth and justice, we should do our duty to make sure others know this. Be sure to check the stats for the newscloud.com hot topics 2007 poll while you vote. Download [...]]]></description>
			<content:encoded><![CDATA[<p>NewsCloud.com is running poll to pick 2007&#8242;s Hot Topics. Obviously, Colbert Report is waaay up there on the list, and as loyal followers of <a href="http://colbertnation.com">truth</a> and justice, we should do our duty to make sure others know this.</p>

<p>Be sure to check the stats for the <a href="http://www.newscloud.com/specials/top2007">newscloud.com hot topics 2007</a> poll while you vote.</p>

<div style="height: 268px"><img alt="CloudyNews v1" src="http://odie5533.com/programs/CloudyNews/CloudyNews.v1.png" /></div>

<p><a href="http://odie5533.com/programs/CloudyNews/CloudyNews.v1.png">Download CloudyNews v1 Here</a></p>

<p>Comments are appreciated!</p>
]]></content:encoded>
			<wfw:commentRss>http://odie5533.com/16-cloudynews-v1/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
