<?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>Rex Flex &#187; C#</title>
	<atom:link href="http://rexflex.net/category/programming/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://rexflex.net</link>
	<description>Rants of a software developer</description>
	<lastBuildDate>Sat, 30 May 2009 06:14:26 +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>AES/Rijndael Encryption</title>
		<link>http://rexflex.net/2008/08/aesrijndael-encryption/</link>
		<comments>http://rexflex.net/2008/08/aesrijndael-encryption/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 05:30:07 +0000</pubDate>
		<dc:creator>Rex Morgan</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[AES]]></category>
		<category><![CDATA[best practices]]></category>
		<category><![CDATA[CLR]]></category>
		<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[Rijndael]]></category>
		<category><![CDATA[Sensitive Data]]></category>

		<guid isPermaLink="false">http://www.rexflex.net/?p=144</guid>
		<description><![CDATA[I&#8217;ve been pretty busy with work lately, but it has been very interesting. The past couple of days I&#8217;ve been working with the AES/Rijndael to encrypt sensitive user data in the application I&#8217;m currently working on. It has been pretty &#8230; <a href="http://rexflex.net/2008/08/aesrijndael-encryption/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been pretty busy with work lately, but it has been very interesting.  The past couple of days I&#8217;ve been working with the <a href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard">AES</a>/<a href="http://blogs.msdn.com/shawnfa/archive/2006/10/09/The-Differences-Between-Rijndael-and-AES.aspx">Rijndael</a> to encrypt sensitive user data in the application I&#8217;m currently working on.  It has been pretty interesting and has proven to be quite a learning experience.</p>
<p>The main reason it has been a challenge is that some of this data that we&#8217;re encrypting needs to be decrypted and searched through for reports.  We have already decided on using <a href="http://www.microsoft.com/sql/technologies/reporting/default.mspx">SQL Server Reporting Services</a> (which I haven&#8217;t worked with before) to handle these reports, however there was the question of decrypting these fields through SQL Server.  Luckily we should be able to <a href="http://msdn.microsoft.com/en-us/library/w2kae45k(VS.80).aspx">create CLR User-Defined functions</a> to handle this.</p>
<p>I have also spent some time cleaning up the solution.  This particular project has been going on for the past year and a half (or so) and has had quite a few hands touching it.  I went ahead and organized the projects in the solution and fixed the dependency problems that everyone had been <em>just dealing with</em> for the past year or so.  I think taking care of these issues will make my life a lot easier in the long run.</p>
]]></content:encoded>
			<wfw:commentRss>http://rexflex.net/2008/08/aesrijndael-encryption/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Performance of Different Types of For Loops</title>
		<link>http://rexflex.net/2007/07/performance-of-different-types-of-for-loops/</link>
		<comments>http://rexflex.net/2007/07/performance-of-different-types-of-for-loops/#comments</comments>
		<pubDate>Fri, 13 Jul 2007 05:55:22 +0000</pubDate>
		<dc:creator>Rex Morgan</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[best practices]]></category>
		<category><![CDATA[CLR]]></category>
		<category><![CDATA[for loop]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.rexflex.net/archives/2007/07/12/performance-of-different-types-of-for-loops/</guid>
		<description><![CDATA[In an old post I found online here the author asks how you would go about writing a simple for loop. I was bored tonight, so I wrote a simple program to time several different types of loops to confirm &#8230; <a href="http://rexflex.net/2007/07/performance-of-different-types-of-for-loops/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In an old post I found online <a href="http://www.netcrucible.com/blog/2004/04/21/loopy-decisions/">here</a> the author asks how you would go about writing a simple for loop.  I was bored tonight, so I wrote a simple program to time several different types of loops to confirm which is the fastest at iterating through a generic list, yes&#8230; that bored.  My list contained 67,108,863 integers.</p>
<p>Here are the results:<br />
<strong>Foreach loop: 1185.8ms</strong></p>
<pre>
<code>int tmp;
foreach (int i in array)
{
tmp = i;
}</code>
</pre>
<p><strong>Standard for loop: 932.1ms</strong></p>
<pre>
<code>int tmp;
for (int i = 0; i &lt; array.Count; i++)
{
tmp = array[i];
}</code></pre>
<p><strong>Optimized for loop: 726.1ms</strong></p>
<pre>
<code>int tmp;
int cnt = array.Count;
for (int i = 0; i &lt; cnt; ++i)
{
tmp = array[i];
}</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://rexflex.net/2007/07/performance-of-different-types-of-for-loops/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Project 2 &#8212; Complete</title>
		<link>http://rexflex.net/2005/12/project-2-complete/</link>
		<comments>http://rexflex.net/2005/12/project-2-complete/#comments</comments>
		<pubDate>Fri, 16 Dec 2005 07:48:24 +0000</pubDate>
		<dc:creator>Rex Morgan</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Neumont]]></category>
		<category><![CDATA[Things that piss me off]]></category>

		<guid isPermaLink="false">http://www.rexflex.net/archives/2005/12/16/project-2-complete/</guid>
		<description><![CDATA[Finally, we&#8217;ve finished our second, and final, project for Projects 1.&#160; Code freeze was tonight and we got it in.&#160; I must say it&#8217;s probably the biggest piece of shit I&#8217;ve ever had the pleasure of working on, but it&#8217;s &#8230; <a href="http://rexflex.net/2005/12/project-2-complete/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Finally, we&#8217;ve finished our second, and final, project for Projects 1.&nbsp; Code freeze was tonight and we got it in.&nbsp; I must say it&#8217;s probably the biggest piece of shit I&#8217;ve ever had the pleasure of working on, but it&#8217;s over.&nbsp; Seriously, why not use objects in an object oriented programming language?&nbsp; Classes, who needs those&#8230; I don&#8217;t really get it, but whatever.&nbsp; We turned in our Form1.cs that contained over 2500 lines of code and called it good.&nbsp; I&#8217;m hoping that next quarter I can get in a team with someone that has more knowledge of program design so that I can really learn how programs such as these are supposed to be coded.</p>
]]></content:encoded>
			<wfw:commentRss>http://rexflex.net/2005/12/project-2-complete/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WoW</title>
		<link>http://rexflex.net/2005/08/wow/</link>
		<comments>http://rexflex.net/2005/08/wow/#comments</comments>
		<pubDate>Wed, 03 Aug 2005 06:23:18 +0000</pubDate>
		<dc:creator>Rex Morgan</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Neumont]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[WoW]]></category>

		<guid isPermaLink="false">http://www.rexflex.net/archives/2005/08/03/wow/</guid>
		<description><![CDATA[I&#8217;ve fallen victim to World of Warcraft. I think it can happen to anyone. I play on the Tichondrius (PVP) server. I&#8217;m a level 23 Gnome Warlock that goes by the name of Qwik. Look me up, give me some &#8230; <a href="http://rexflex.net/2005/08/wow/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve fallen victim to World of Warcraft.  I think it can happen to anyone.  I play on the Tichondrius (PVP) server.  I&#8217;m a level 23 Gnome Warlock that goes by the name of Qwik.  Look me up, give me some gold, I won&#8217;t turn it down.  I just recently figured out about the battlegrounds.  I wish somebody would have told me about these things sooner.  They&#8217;re awesome, you go in and play capture the flag, and kill tons of horde.  Anyways, I&#8217;d really recommend going to <a href="http://www.purepwnage.com/music.html">Pure Pwnage (Music)</a> and downloading the song World of Warcraft is a Feeling.  It pretty much sums up the people that get involved with WoW.  Also, download all the videos; they’re a really good watch.</p>
<p>As far as school goes, I got put into the advanced C# class.  I decided to setup a wiki for people to reference if they get stuck or something.  You can check it out <a href="http://csharp.rexflex.net/">here</a>.  &#8220;WTF&#8221; has become the slogan for the advanced C# class.  Currently we&#8217;re creating our own Integer data type.  We have to overload all the operators and everything.  Can you say, &#8220;WTF?&#8221;</p>
<p>Related: <a href="http://www.thedailywtf.com/">The Daily WTF</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rexflex.net/2005/08/wow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
