<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Victor's Programming Aid</title>
	
	<link>http://www.victorchen.info</link>
	<description>An array of C#, PHP, and HTML programming articles, tutorials, and resources</description>
	<lastBuildDate>Tue, 06 Oct 2009 20:54:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/victorchen/rueF" type="application/rss+xml" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">victorchen/rueF</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Setting up NFS on RHEL</title>
		<link>http://www.victorchen.info/setting-up-nfs-on-rhel/</link>
		<comments>http://www.victorchen.info/setting-up-nfs-on-rhel/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 20:54:36 +0000</pubDate>
		<dc:creator>Victor Chen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[exports]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[RHEL]]></category>

		<guid isPermaLink="false">http://www.victorchen.info/?p=807</guid>
		<description>What I&amp;#8217;ve recently learned is how to use NFS to share folders between two Red Hat Enterprise Linux 5 machines. They are both on the same network and for simplicity have had firewall disabled (firewall settings were not required in my setup). Below are some tips I used on each of the respective machines in [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hWjK457sj9K52vzxIsqJ0-Sgavc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hWjK457sj9K52vzxIsqJ0-Sgavc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hWjK457sj9K52vzxIsqJ0-Sgavc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hWjK457sj9K52vzxIsqJ0-Sgavc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/victorchen/rueF/~4/KSywYLSDyu0" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.victorchen.info/setting-up-nfs-on-rhel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trim a String in C#</title>
		<link>http://www.victorchen.info/trim-a-string-in-c/</link>
		<comments>http://www.victorchen.info/trim-a-string-in-c/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 17:05:55 +0000</pubDate>
		<dc:creator>Victor Chen</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[inputs]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[trim]]></category>
		<category><![CDATA[whitespace]]></category>

		<guid isPermaLink="false">http://www.victorchen.info/?p=783</guid>
		<description>Anytime a web form accepts user input that is destined for a database, it is (in the majority of the cases) important to trim string inputs. Without knowing, some users may cut and paste strings from one source to your form. For one reason or another, the cut and paste process may carry along unwanted [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5qeAZzIgrAZbloZY48XIf9g1tFI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5qeAZzIgrAZbloZY48XIf9g1tFI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5qeAZzIgrAZbloZY48XIf9g1tFI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5qeAZzIgrAZbloZY48XIf9g1tFI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/victorchen/rueF/~4/oJeMwvSBWJk" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.victorchen.info/trim-a-string-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>“Maximum request length exceeded” in C#</title>
		<link>http://www.victorchen.info/maximum-request-length-exceeded-in-c/</link>
		<comments>http://www.victorchen.info/maximum-request-length-exceeded-in-c/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 17:57:23 +0000</pubDate>
		<dc:creator>Victor Chen</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[exceeded]]></category>
		<category><![CDATA[length]]></category>
		<category><![CDATA[maximum]]></category>
		<category><![CDATA[request]]></category>

		<guid isPermaLink="false">http://www.victorchen.info/?p=796</guid>
		<description>In C# ASP.NET, I kept getting the following error message:
HttpException (0&amp;#215;80004005): Maximum request length exceeded.
To make matters worst, this is a type of error that catch does not recognize. In the end, I found a simple solution.
By default, the request length of any request is 2048kb. To increase the length, you need to add the [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/c_IkivxUCw1aK5HiY4nRhnJm08w/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/c_IkivxUCw1aK5HiY4nRhnJm08w/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/c_IkivxUCw1aK5HiY4nRhnJm08w/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/c_IkivxUCw1aK5HiY4nRhnJm08w/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/victorchen/rueF/~4/x9Tnf2l-fuc" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.victorchen.info/maximum-request-length-exceeded-in-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Single Line If Statement in C#</title>
		<link>http://www.victorchen.info/single-line-if-statement-in-c/</link>
		<comments>http://www.victorchen.info/single-line-if-statement-in-c/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 16:54:07 +0000</pubDate>
		<dc:creator>Victor Chen</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[efficient]]></category>
		<category><![CDATA[if statement]]></category>
		<category><![CDATA[short]]></category>

		<guid isPermaLink="false">http://www.victorchen.info/?p=785</guid>
		<description>One of the very first aspects a programmer learns is how to write an if statement. By this, we know a basic if statement (code snippet below) and the string result will be assigned Welcome.
string fname = "Victor";
string result = "";
if(fname == "Victor")
{
  result = "Welcome";
}
else
{
  result = "Access Denied";
}
As a first step, [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kcuCZOTmcn4Fsag1iGPlk6g2S-w/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kcuCZOTmcn4Fsag1iGPlk6g2S-w/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kcuCZOTmcn4Fsag1iGPlk6g2S-w/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kcuCZOTmcn4Fsag1iGPlk6g2S-w/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/victorchen/rueF/~4/RJqIGYSmOlY" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.victorchen.info/single-line-if-statement-in-c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Javascript Confirm on ASP LinkButton</title>
		<link>http://www.victorchen.info/javascript-confirm-on-asp-linkbutton/</link>
		<comments>http://www.victorchen.info/javascript-confirm-on-asp-linkbutton/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 18:10:04 +0000</pubDate>
		<dc:creator>Victor Chen</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[confirm]]></category>
		<category><![CDATA[linkbutton]]></category>
		<category><![CDATA[onclientclick]]></category>
		<category><![CDATA[programmatically]]></category>
		<category><![CDATA[property]]></category>

		<guid isPermaLink="false">http://www.victorchen.info/771/</guid>
		<description>In your C# web application, a common task is adding items to a database. But often just as important is the ability to delete items! The first method to accomplish this goal is linking an event to a LinkButton. This event links to a method that deletes. However, because a delete operation is a times [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mfvXirBZHYYBhSG41LFBEsxFha4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mfvXirBZHYYBhSG41LFBEsxFha4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/mfvXirBZHYYBhSG41LFBEsxFha4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mfvXirBZHYYBhSG41LFBEsxFha4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/victorchen/rueF/~4/Gj4G8-BVYH0" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.victorchen.info/javascript-confirm-on-asp-linkbutton/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing an Internal Hard Drive on Linux</title>
		<link>http://www.victorchen.info/installing-an-internal-hard-drive-on-linux/</link>
		<comments>http://www.victorchen.info/installing-an-internal-hard-drive-on-linux/#comments</comments>
		<pubDate>Sat, 30 May 2009 16:13:07 +0000</pubDate>
		<dc:creator>Victor Chen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[hard drive]]></category>
		<category><![CDATA[internal]]></category>
		<category><![CDATA[mount]]></category>

		<guid isPermaLink="false">http://www.victorchen.info/?p=698</guid>
		<description>Mounting an internal hard drive in Linux is not quite as simple as installing a hard drive on a Windows machine. After installing the hard drive, there are only a few steps that I will cover below. First, before this will work, you need to make sure the motherboard recognizes there is a new hard [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/TG0Nx9ONqd2Zq2GCTppaFkOhSgQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TG0Nx9ONqd2Zq2GCTppaFkOhSgQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/TG0Nx9ONqd2Zq2GCTppaFkOhSgQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TG0Nx9ONqd2Zq2GCTppaFkOhSgQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/victorchen/rueF/~4/zVytn6ikfYs" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.victorchen.info/installing-an-internal-hard-drive-on-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Get Linux Version, Build, and Distribution</title>
		<link>http://www.victorchen.info/how-to-get-linux-version-build-and-distribution/</link>
		<comments>http://www.victorchen.info/how-to-get-linux-version-build-and-distribution/#comments</comments>
		<pubDate>Wed, 27 May 2009 16:10:32 +0000</pubDate>
		<dc:creator>Victor Chen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[distribution]]></category>
		<category><![CDATA[distro]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://www.victorchen.info/?p=701</guid>
		<description>Getting the Linux Version, build, and Distribution is easy. In the example below, I  ran the command on a Dell Optiplex 755 running CentOS 4.6. Just run the command below in a terminal window and the output will display useful information:
cat /proc/version
Linux version 2.6.9-67.0.15.ELsmp (mockbuild@builder10.centos.org) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)) #1 SMP Thu [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0ud3pcHRbdIe-q4IJipvf-65Ky4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0ud3pcHRbdIe-q4IJipvf-65Ky4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0ud3pcHRbdIe-q4IJipvf-65Ky4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0ud3pcHRbdIe-q4IJipvf-65Ky4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/victorchen/rueF/~4/AUqIp92VsHQ" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.victorchen.info/how-to-get-linux-version-build-and-distribution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>301 Redirect in IIS 6.0</title>
		<link>http://www.victorchen.info/301-redirect-in-iis-60/</link>
		<comments>http://www.victorchen.info/301-redirect-in-iis-60/#comments</comments>
		<pubDate>Mon, 18 May 2009 16:09:29 +0000</pubDate>
		<dc:creator>Victor Chen</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[301 Redirect]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[Search Engine Friendly]]></category>

		<guid isPermaLink="false">http://www.victorchen.info/?p=731</guid>
		<description>If you are planning to move a website to a new domain name, the most efficient way to setup URL redirection is to with the 301 Redirect. The 301 HTTP status code means moved permanently. For this reason, it is the best method to use to preserve a website&amp;#8217;s search engine placement.
This tutorial will cover [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zqMOMkYdIOr7x2LponaApSdTWlk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zqMOMkYdIOr7x2LponaApSdTWlk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zqMOMkYdIOr7x2LponaApSdTWlk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zqMOMkYdIOr7x2LponaApSdTWlk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/victorchen/rueF/~4/8xc-7hWC--A" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.victorchen.info/301-redirect-in-iis-60/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Change Web Browser Title with Javascript</title>
		<link>http://www.victorchen.info/change-web-browser-title-with-javascript/</link>
		<comments>http://www.victorchen.info/change-web-browser-title-with-javascript/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 16:00:12 +0000</pubDate>
		<dc:creator>Victor Chen</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[title]]></category>

		<guid isPermaLink="false">http://www.victorchen.info/?p=706</guid>
		<description>Every web browser has a title at the top of the page and is specified in HTML. By default, the the title tag is located in the header of the HTML. Despite the default in HTML, it is possible to change the default title name with javascript. Below is a the basic snippet of javascript [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KB3Cu5Hee3YbOAt8PcVDDS7yVPM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KB3Cu5Hee3YbOAt8PcVDDS7yVPM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KB3Cu5Hee3YbOAt8PcVDDS7yVPM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KB3Cu5Hee3YbOAt8PcVDDS7yVPM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/victorchen/rueF/~4/cZ9wG75ttO4" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.victorchen.info/change-web-browser-title-with-javascript/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Directory Disk Space in Linux</title>
		<link>http://www.victorchen.info/directory-disk-space-in-linux/</link>
		<comments>http://www.victorchen.info/directory-disk-space-in-linux/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 16:22:44 +0000</pubDate>
		<dc:creator>Victor Chen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[df]]></category>

		<guid isPermaLink="false">http://www.victorchen.info/?p=703</guid>
		<description>Running Linux distribution Centos 4.6, I need to check the disk space available in a directory. For this, I use the command df, which reports the file system disk space usage.
df
This command returns the file system, the mount directory, total disk space, used disk space, and available disk space (in 1-K blocks) based on currently [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ncuzEKlzoayFs0EbuEHF1HIqVfM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ncuzEKlzoayFs0EbuEHF1HIqVfM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ncuzEKlzoayFs0EbuEHF1HIqVfM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ncuzEKlzoayFs0EbuEHF1HIqVfM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/victorchen/rueF/~4/rrhv7vkJrF8" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.victorchen.info/directory-disk-space-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
