<?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>Dusty Reagan &#187; Web &amp; Software Development</title>
	<atom:link href="http://dustyreagan.com/category/web-software-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://dustyreagan.com</link>
	<description>On Technology &#38; Entrepreneurship</description>
	<lastBuildDate>Fri, 03 Sep 2010 19:08: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>How to reference Smarty variables inside {php} tags</title>
		<link>http://dustyreagan.com/how-to-reference-smarty-variables-inside-php-tags/</link>
		<comments>http://dustyreagan.com/how-to-reference-smarty-variables-inside-php-tags/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 10:01:15 +0000</pubDate>
		<dc:creator>Dusty Reagan</dc:creator>
				<category><![CDATA[Web & Software Development]]></category>
		<category><![CDATA[JobberBase]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Smarty]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://dustyreagan.com/?p=410</guid>
		<description><![CDATA[I gotta&#8217; be honest, I&#8217;ve never used the Smarty Template Engine before in my life. I&#8217;m currently working on a project to integrate WordPress and JobberBase so they use the same WordPress theme. JobberBase uses Smarty, so I&#8217;m getting a crash course. &#8230; <a href="http://dustyreagan.com/how-to-reference-smarty-variables-inside-php-tags/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I gotta&#8217; be honest, I&#8217;ve never used the <a href="http://www.smarty.net/" target="_blank">Smarty Template Engine</a> before in my life. I&#8217;m currently working on a project to integrate WordPress and JobberBase so they use the same <a href="http://wordpress.org/" target="_blank">WordPress</a> theme. <a href="http://jobberbase.com/" target="_blank">JobberBase</a> uses Smarty, so I&#8217;m getting a crash course.</p>
<p>You can use PHP in the template (.tpl) files and reference the values of the assigned Smarty template variables like this:</p>
<pre>{php}
  $html_title = $this-&gt;_tpl_vars['html_title'];
  $echo $html_title;
{/php}</pre>
<p>I&#8217;m sure Smarty users cringe at this sort of thing, being that it adds business logic to the template files. But, this is just the functionality I need to hack the JobberBase templates without mucking around in core JobberBase code.</p>
<p>I found this solution in the <a href="http://smarty.incutio.com/?page=SmartyFrequentlyAskedQuestions#template-8" target="_blank">Smarty FAQ</a> after hours of Googling.</p>
<img src="http://dustyreagan.com/?ak_action=api_record_view&id=410&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://dustyreagan.com/how-to-reference-smarty-variables-inside-php-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downgrade PHP 5.3 to 5.2</title>
		<link>http://dustyreagan.com/downgrade-php-5-3-to-5-2/</link>
		<comments>http://dustyreagan.com/downgrade-php-5-3-to-5-2/#comments</comments>
		<pubDate>Wed, 05 May 2010 06:20:52 +0000</pubDate>
		<dc:creator>Dusty Reagan</dc:creator>
				<category><![CDATA[IT & Administration]]></category>
		<category><![CDATA[Web & Software Development]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://dustyreagan.com/?p=195</guid>
		<description><![CDATA[Like many others, I recently upgraded my Production server to PHP 5.3. I&#8217;m not quite sure of the reason anymore. I think I was trying to integrate a PHP profiler that required something in 5.3. Whatever my original reason, after &#8230; <a href="http://dustyreagan.com/downgrade-php-5-3-to-5-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify">Like many others, I recently upgraded my Production server to PHP 5.3. I&#8217;m not quite sure of the reason anymore. I think I was trying to integrate a PHP profiler that required something in 5.3. Whatever my original reason, after I got 5.3 installed on my server, it started slowly hemorrhaging memory and occasionally freezing up, always during the middle of the night while I slept of course. So, today I set about downgrading PHP 5.3.2 to PHP 5.2.13. Here is what worked for me.</p>
<h1>The Setup</h1>
<p style="text-align: justify">First off, I&#8217;m running Ubuntu-Hardy, and both my PHP 5.3 and 5.2 distributions came from <a href="http://dotdeb.org/">dotdeb.org</a>. I have a Production server and a Test server that I try to keep as similar as possible. The first thing I did was make a backup of my Test server with PHP 5.3 installed and my app functional. Then I began hacking away on my Test server trying to successfully downgrade to PHP 5.2. When I screwed the Test server up beyond repair, I restored from backup. Likewise, when I made progress I documented my steps, restored from backup, and tried to repeat my success. I did this several times and eventually made a script that successfully downgraded PHP. I rehearsed this script 3 times on my Test server, backed-up my Production server, then repeated the script on my Production server. IT WORKED!</p>
<p style="text-align: justify"><em><strong>NOTICE:</strong></em> I probably have a couple of unnecessary steps in here that I didn&#8217;t bother to investigate their necessity. You may also need to uninstall and reinstall different PHP modules than I did, depending on the requirements of your applications.</p>
<h1>My Final Steps</h1>
<ol>
<li>Remove PHP
<ol>
<li><em>sudo apt-get remove php5-common</em></li>
<li><em>sudo apt-get remove php5-cli</em></li>
<li><em>sudo apt-get remove php5</em></li>
<li><em>sudo apt-get autoremove memcached</em></li>
</ol>
</li>
<li>Update your sources list to point to PHP 5.2
<ol>
<li><em>sudo nano /etc/apt/sources.list</em></li>
<li>Remove the references to PHP 5.3 packages. For me that was:
<pre>deb http://php53.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable all</pre>
</li>
<li>Add the following 5.2 packages:
<pre>deb http://http.us.debian.org/debian stable all
deb http://security.debian.org/ stable/updates main contrib
deb http://packages.dotdeb.org/ stable all</pre>
</li>
</ol>
</li>
<li>Install PHP 5.2
<ol>
<li><em>sudo apt-get update</em></li>
<li><em>sudo apt-get install php5-cli</em></li>
<li><em>sudo apt-get install php5</em></li>
</ol>
</li>
<li>Reinstall any PHP modules your application requires. For me that was:
<ol>
<li><em>sudo apt-get install memcached</em></li>
<li><em>sudo apt-get install php5-memcache</em></li>
<li><em>sudo apt-get install php5-curl</em></li>
<li><em>sudo apt-get install php5-mysql</em></li>
</ol>
</li>
<li><em>sudo reboot</em></li>
</ol>
<p>After my production server rebooted, I had to fidget with Apache to get it started again. You may have to:</p>
<ul>
<li><em>sudo /etc/init.d/apache2 restart</em></li>
<li><em>sudo /etc/init.d/apache2 stop</em></li>
<li><em>sudo /etc/init.d/apache2 start</em></li>
</ul>
<p>Hope this helps!</p>
<img src="http://dustyreagan.com/?ak_action=api_record_view&id=195&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://dustyreagan.com/downgrade-php-5-3-to-5-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Twitter MySQL User Object Table Schema</title>
		<link>http://dustyreagan.com/twitter-mysql-user-object-table-schema/</link>
		<comments>http://dustyreagan.com/twitter-mysql-user-object-table-schema/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 22:55:11 +0000</pubDate>
		<dc:creator>Dusty Reagan</dc:creator>
				<category><![CDATA[Web & Software Development]]></category>
		<category><![CDATA[alt]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://dustyreagan.com/?p=188</guid>
		<description><![CDATA[A common practice for Twitter application developers is creating a MySQL table to store user objects returned from Twitter&#8217;s API. I&#8217;m trying to optimize my user table for Friend Or Follow, and it occurred to me how many developers must &#8230; <a href="http://dustyreagan.com/twitter-mysql-user-object-table-schema/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A common practice for Twitter application developers is creating a MySQL table to store user objects returned from Twitter&#8217;s API. I&#8217;m trying to optimize my user table for <a href="http://FriendOrFollow.com">Friend Or Follow</a>, and it occurred to me how many developers must be reinventing this MySQL table schema, so let&#8217;s get it right once and for all.</p>
<p>Here&#8217;s where I&#8217;m starting. If you see anything that I&#8217;m missing, or notice a data type that could be optimized let me know in the comments and I&#8217;ll update the post to reflect your suggestions.</p>
<p><script src="http://gist.github.com/352508.js"></script></p>
<img src="http://dustyreagan.com/?ak_action=api_record_view&id=188&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://dustyreagan.com/twitter-mysql-user-object-table-schema/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Installing Cassandra on Ubuntu Linux</title>
		<link>http://dustyreagan.com/installing-cassandra-on-ubuntu-linux/</link>
		<comments>http://dustyreagan.com/installing-cassandra-on-ubuntu-linux/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 02:11:08 +0000</pubDate>
		<dc:creator>Dusty Reagan</dc:creator>
				<category><![CDATA[IT & Administration]]></category>
		<category><![CDATA[Web & Software Development]]></category>
		<category><![CDATA[Cassandra]]></category>
		<category><![CDATA[NoSQL]]></category>

		<guid isPermaLink="false">http://dustyreagan.com/?p=175</guid>
		<description><![CDATA[Cassandra is a highly scalable, eventually consistent, distributed, structured key-value store. It&#8217;s an alternative to SQL if you don&#8217;t need relational data structures. The best part is it&#8217;s super fast, and distributed. The worst part is there&#8217;s not much documentation &#8230; <a href="http://dustyreagan.com/installing-cassandra-on-ubuntu-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://incubator.apache.org/cassandra/">Cassandra</a> is a highly scalable, eventually consistent, distributed, structured key-value store. It&#8217;s an alternative to SQL if you don&#8217;t need relational data structures. The best part is it&#8217;s super fast, and distributed. The worst part is there&#8217;s not much documentation or community, at least compared to MySQL. So, I&#8217;m doing my small part to contribute to Cassandra. Here&#8217;s how I installed Cassandra on Ubuntu 8.04.2 LTS (hardy), but these directions should work on pretty much any Linux distro.</p>
<p><strong>1. First upgrade your software as is with the following two commands (just for good measure):</strong></p>
<pre><strong></strong>sudo apt-get update
sudo apt-get upgrade</pre>
<p><strong>2. Now, open up your Debian package sources list with Nano for editing using the following command:</strong></p>
<pre>sudo nano /etc/apt/sources.list</pre>
<p><strong>3. Next, add the following sources to your /etc/apt/sources.list file.</strong></p>
<pre>deb http://www.apache.org/dist/incubator/cassandra/debian unstable main
deb-src http://www.apache.org/dist/incubator/cassandra/debian unstable main</pre>
<p>After you add these two lines, press cntrl+X to close Nano. It&#8217;ll ask &#8220;Save modified buffer?&#8221; Press Y. Press Enter when Nano asks &#8220;File Name to Write.&#8221;</p>
<p><strong></strong><strong>4. Run the update to install Casandra with this command:</strong></p>
<pre><strong></strong>sudo apt-get update</pre>
<p><strong>5. ERROR! At this point you receive an error similar to this:</strong></p>
<pre>W: GPG error: http://www.apache.org unstable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F758CE318D77295D</pre>
<p><strong>6. Use the following three commands to ignore the signature error, and continue installing:</strong></p>
<p><strong>NOTE: You must replace the key value &#8216;F758CE318D77295D&#8217; with the key value you received in your error message.</strong></p>
<pre>gpg --keyserver wwwkeys.eu.pgp.net --recv-keys F758CE318D77295D
sudo apt-key add ~/.gnupg/pubring.gpg
sudo apt-get update</pre>
<p><strong>7. Install Cassandra:</strong></p>
<pre>sudo apt-get install cassandra</pre>
<p><strong>8. Next you need to change Cassandra&#8217;s default port number from 8080 to something else, because the 8080 port typically conflicts with SSH terminal connections. Use Nano to open up the Cassandra configuration file using the following command:</strong></p>
<pre>sudo nano /usr/share/cassandra/cassandra.in.sh</pre>
<p><strong>9. Then change the port number 8080 on the following line to 10036, and save the file:</strong></p>
<pre>-Dcom.sun.management.jmxremote.port=10036 \</pre>
<p><strong>10. Start Cassandra with the command:</strong></p>
<pre>/etc/init.d/cassandra start</pre>
<p>Once you have Cassandra running, test it with Cassandra&#8217;s command line tool CLI. Use the example found on the <a href="http://wiki.apache.org/cassandra/CassandraCli">Cassandra Wiki</a>.</p>
<img src="http://dustyreagan.com/?ak_action=api_record_view&id=175&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://dustyreagan.com/installing-cassandra-on-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How to Update Ubuntu Hardy to PHP 5.2.9</title>
		<link>http://dustyreagan.com/how-to-update-ubuntu-hardy-to-php-529/</link>
		<comments>http://dustyreagan.com/how-to-update-ubuntu-hardy-to-php-529/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 09:01:04 +0000</pubDate>
		<dc:creator>Dusty Reagan</dc:creator>
				<category><![CDATA[IT & Administration]]></category>
		<category><![CDATA[Web & Software Development]]></category>
		<category><![CDATA[alt]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://dustyreagan.com/?p=133</guid>
		<description><![CDATA[First upgrade your software as is. &#62;&#62; sudo apt-get update &#62;&#62; sudo apt-get upgrade Then add the following to your /etc/apt/sources.list file. &#62;&#62; sudo nano /etc/apt/sources.list deb http://http.us.debian.org/debian stable all deb http://security.debian.org/ stable/updates main contrib deb http://packages.dotdeb.org/ stable all Finally &#8230; <a href="http://dustyreagan.com/how-to-update-ubuntu-hardy-to-php-529/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3><strong>First</strong> upgrade your software as is.</h3>
<p><code>&gt;&gt; sudo apt-get update</code></p>
<p><code>&gt;&gt; sudo apt-get upgrade</code></p>
<h3><strong>Then</strong> add the following to your /etc/apt/sources.list file.</h3>
<p><code>&gt;&gt; sudo nano /etc/apt/sources.list</code></p>
<pre>deb http://http.us.debian.org/debian stable all
deb http://security.debian.org/ stable/updates main contrib
deb http://packages.dotdeb.org/ stable all</pre>
<h3><strong></p>
<p>Finally</strong> run the update to install PHP 5.2.9.</h3>
<p><code>&gt;&gt; sudo apt-get update</code></p>
<p><code>&gt;&gt; sudo apt-get install php5-cli</code></p>
<p><code>&gt;&gt; sudo /etc/init.d/apache2 restart</code></p>
<img src="http://dustyreagan.com/?ak_action=api_record_view&id=133&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://dustyreagan.com/how-to-update-ubuntu-hardy-to-php-529/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Global page navigation accross WordPress MU blogs</title>
		<link>http://dustyreagan.com/global-page-navigation-accross-wordpress-mu-blogs/</link>
		<comments>http://dustyreagan.com/global-page-navigation-accross-wordpress-mu-blogs/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 09:57:48 +0000</pubDate>
		<dc:creator>Dusty Reagan</dc:creator>
				<category><![CDATA[Web & Software Development]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[WordPress MU]]></category>

		<guid isPermaLink="false">http://dustyreagan.com/?p=72</guid>
		<description><![CDATA[Here&#8217;s the scenario. You have a WordPress MU site with multiple blogs, but for whatever reason, you want every blog to have the same main navigation and pages. Your main site/blog hosts all of your pages. So how do you &#8230; <a href="http://dustyreagan.com/global-page-navigation-accross-wordpress-mu-blogs/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the scenario. You have a WordPress MU site with multiple blogs, but for whatever reason, you want every blog to have the same main navigation and pages. Your main site/blog hosts all of your pages. So how do you go about creating a WordPress MU Theme that will use the navigation and pages from your main site/blog accross all of your blogs? Well, I&#8217;m here to tell you how I did it.</p>
<p>The WordPress Codex has a function called &#8216;wp_list_pages.&#8217; What I wanted to do is create a new function called &#8216;wp_list_main_pages.&#8217; So I simply searched my WordPress install and copied the &#8216;get_pages&#8217; and &#8216;wp_list_pages&#8217; functions and pasted them into my theme&#8217;s &#8216;functions.php&#8217; file. From here I made a few edits to these functions. To start with, I renamed them &#8216;wp_list_main_pages&#8217; and &#8216;get_main_pages.&#8217;</p>
<p>Below is the final code I&#8217;m using to display the main navigation accross blogs. I made notes in bold to help. Hope this is helpful to you Googling coders. <img src='http://dustyreagan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre><strong>// You can use this function instead of 'wp_list_pages' in your theme</strong>
function wp_list_main_pages($args = '') {
	$defaults = array(
		'depth' =&gt; 0, 'show_date' =&gt; '',
		'date_format' =&gt; get_option('date_format'),
		'child_of' =&gt; 0, 'exclude' =&gt; '',
		'title_li' =&gt; __('Pages'), 'echo' =&gt; 1,
		'authors' =&gt; '', 'sort_column' =&gt; 'menu_order, post_title'
	);

	$r = wp_parse_args( $args, $defaults );
	extract( $r, EXTR_SKIP );

	$output = '';
	$current_page = 0;

	// sanitize, mostly to keep spaces out
	$r['exclude'] = preg_replace('[^0-9,]', '', $r['exclude']);

	// Allow plugins to filter an array of excluded pages
	$r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude'])));

	// Query pages.
	$r['hierarchical'] = 0;
	<strong>// Right here we call our new 'get_main_pages' function</strong>
	$pages = get_main_pages($r);

	if ( !empty($pages) ) {
		if ( $r['title_li'] )
			$output .= '&lt;li class="pagenav"&gt;' . $r['title_li'] . '&lt;ul&gt;';

		global $wp_query;
		if ( is_page() || $wp_query-&gt;is_posts_page )
			$current_page = $wp_query-&gt;get_queried_object_id();
		$output .= walk_page_tree($pages, $r['depth'], $current_page, $r);

		if ( $r['title_li'] )
			$output .= '&lt;/ul&gt;&lt;/li&gt;';
	}

	$output = apply_filters('wp_list_pages', $output);

	<strong>// This line is sloppy and needs improvement.
	// You have to remove the name of the blog your currently on from you global navigation.
	// I'm doing this the simplest but least scalable way here.</strong>
	$output = str_replace("pressroom/", "", $output);

	if ( $r['echo'] )
		echo $output;
	else
		return $output;
}

<strong>// This is essentially a private function</strong>
function &#038;get_main_pages($args = '') {
	global $wpdb;

	<strong>// This is the magic line.
	// Now when the SQL runs to pull your navigation pages, it'll use your main blogs ID.</strong>
	$wpdb-&gt;set_blog_id(1);

	<strong>// Notice here I call the original get_pages function and return the results</strong>
	$pages = get_pages($args);
	return $pages;
}
</pre>
<img src="http://dustyreagan.com/?ak_action=api_record_view&id=72&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://dustyreagan.com/global-page-navigation-accross-wordpress-mu-blogs/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>ASP.Net US States Dropdown List</title>
		<link>http://dustyreagan.com/aspnet-us-states-dropdown-list/</link>
		<comments>http://dustyreagan.com/aspnet-us-states-dropdown-list/#comments</comments>
		<pubDate>Wed, 14 May 2008 23:13:04 +0000</pubDate>
		<dc:creator>Dusty Reagan</dc:creator>
				<category><![CDATA[Web & Software Development]]></category>
		<category><![CDATA[alt]]></category>
		<category><![CDATA[ASP.Net]]></category>

		<guid isPermaLink="false">http://dustyreagan.com/aspnet-us-states-dropdown-list/</guid>
		<description><![CDATA[For large projects I usually databind my dropdown lists, but sometimes you just need a no-nonsense dropdown list of US States. For all you folks Googling to save time, here&#8217;s that code. Enjoy! &#60;asp:DropDownList ID="DropDownListState" runat="server"&#62; &#60;asp:ListItem Value="AL"&#62;Alabama&#60;/asp:ListItem&#62; &#60;asp:ListItem Value="AK"&#62;Alaska&#60;/asp:ListItem&#62; &#8230; <a href="http://dustyreagan.com/aspnet-us-states-dropdown-list/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For large projects I usually databind my dropdown lists, but sometimes you just need a no-nonsense dropdown list of US States. For all you folks Googling to save time, here&#8217;s that code. Enjoy! <img src='http://dustyreagan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre>&lt;asp:DropDownList ID="DropDownListState" runat="server"&gt;
	&lt;asp:ListItem Value="AL"&gt;Alabama&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="AK"&gt;Alaska&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="AZ"&gt;Arizona&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="AR"&gt;Arkansas&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="CA"&gt;California&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="CO"&gt;Colorado&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="CT"&gt;Connecticut&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="DC"&gt;District of Columbia&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="DE"&gt;Delaware&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="FL"&gt;Florida&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="GA"&gt;Georgia&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="HI"&gt;Hawaii&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="ID"&gt;Idaho&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="IL"&gt;Illinois&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="IN"&gt;Indiana&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="IA"&gt;Iowa&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="KS"&gt;Kansas&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="KY"&gt;Kentucky&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="LA"&gt;Louisiana&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="ME"&gt;Maine&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="MD"&gt;Maryland&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="MA"&gt;Massachusetts&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="MI"&gt;Michigan&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="MN"&gt;Minnesota&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="MS"&gt;Mississippi&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="MO"&gt;Missouri&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="MT"&gt;Montana&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="NE"&gt;Nebraska&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="NV"&gt;Nevada&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="NH"&gt;New Hampshire&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="NJ"&gt;New Jersey&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="NM"&gt;New Mexico&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="NY"&gt;New York&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="NC"&gt;North Carolina&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="ND"&gt;North Dakota&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="OH"&gt;Ohio&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="OK"&gt;Oklahoma&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="OR"&gt;Oregon&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="PA"&gt;Pennsylvania&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="RI"&gt;Rhode Island&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="SC"&gt;South Carolina&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="SD"&gt;South Dakota&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="TN"&gt;Tennessee&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="TX"&gt;Texas&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="UT"&gt;Utah&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="VT"&gt;Vermont&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="VA"&gt;Virginia&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="WA"&gt;Washington&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="WV"&gt;West Virginia&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="WI"&gt;Wisconsin&lt;/asp:ListItem&gt;
	&lt;asp:ListItem Value="WY"&gt;Wyoming&lt;/asp:ListItem&gt;
&lt;/asp:DropDownList&gt;</pre>
<img src="http://dustyreagan.com/?ak_action=api_record_view&id=57&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://dustyreagan.com/aspnet-us-states-dropdown-list/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>C# How to get a QueryString value from the UrlReferrer</title>
		<link>http://dustyreagan.com/c-how-to-get-a-querystring-value-from-the-urlreferrer/</link>
		<comments>http://dustyreagan.com/c-how-to-get-a-querystring-value-from-the-urlreferrer/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 06:25:53 +0000</pubDate>
		<dc:creator>Dusty Reagan</dc:creator>
				<category><![CDATA[Web & Software Development]]></category>
		<category><![CDATA[alt]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://dustyreagan.com/c-how-to-get-a-querystring-value-from-the-urlreferrer/</guid>
		<description><![CDATA[To get a QueryString value from the previous pages URL (aka: the UrlReferrer) you can use HttpUtility.ParseQueryString. Like this! NameValueCollection nameValueCollection = HttpUtility.ParseQueryString(Request.UrlReferrer.Query); string keyword = nameValueCollection["kw"]; &#8220;And that&#8217;s all I have to say about that.&#8221;]]></description>
			<content:encoded><![CDATA[<p>To get a QueryString value from the previous pages URL (aka: the UrlReferrer) you can use <strong>HttpUtility.ParseQueryString</strong>.</p>
<p>Like this!</p>
<pre>NameValueCollection nameValueCollection = HttpUtility.ParseQueryString(Request.UrlReferrer.Query);
string keyword = nameValueCollection["kw"];</pre>
<p>&#8220;And that&#8217;s all I have to say about that.&#8221;</p>
<img src="http://dustyreagan.com/?ak_action=api_record_view&id=54&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://dustyreagan.com/c-how-to-get-a-querystring-value-from-the-urlreferrer/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ActionScript 3.0 – Global Variable &amp; On Mouse Click Event</title>
		<link>http://dustyreagan.com/actionscript-30-global-variable-on-mouse-click-event/</link>
		<comments>http://dustyreagan.com/actionscript-30-global-variable-on-mouse-click-event/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 07:16:03 +0000</pubDate>
		<dc:creator>Dusty Reagan</dc:creator>
				<category><![CDATA[Web & Software Development]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[alt]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://dustyreagan.com/actionscript-30-global-variable-on-mouse-click-event/</guid>
		<description><![CDATA[I got to do a little ActionScript 3.0 work today. I can&#8217;t help but wonder what type of things I could create using Flash and ActionScript. Seems like it could be pretty fun. Do ActionScript programmers make good rates compared &#8230; <a href="http://dustyreagan.com/actionscript-30-global-variable-on-mouse-click-event/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I got to do a little ActionScript 3.0 work today. I can&#8217;t help but wonder what type of things I could create using Flash and ActionScript. Seems like it could be pretty fun. Do ActionScript programmers make good rates compared to .Net programmers?</p>
<p>Anyways. Here&#8217;s a few examples of some really basic ActionScript 3.0 stuff.</p>
<p>Here&#8217;s an example of how to create and use a global variable in ActionScript 3.0.</p>
<pre>var intClicks:int = 0;

function showDoves():void {
	++intClicks;
	if(intClicks &gt;= 5){
		_movieDoves.visible = true;
	}
}</pre>
<p>And here is an example of how to add an &#8220;on click&#8221; mouse event listener function in ActionScript 3.0.</p>
<pre>_btnFact1.addEventListener(MouseEvent.CLICK, onClickBtnFact1);

function onClickBtnFact1(evt:MouseEvent):void {
	_fact1.visible = true;
}</pre>
<p>That&#8217;s all I got. I just wanted to document this so I can reference it later. I hope it&#8217;s helpful to you. <img src='http://dustyreagan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://dustyreagan.com/?ak_action=api_record_view&id=52&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://dustyreagan.com/actionscript-30-global-variable-on-mouse-click-event/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why is &quot;Content-type: text/html&quot; displayed at the top of my CGI pages?</title>
		<link>http://dustyreagan.com/why-is-content-type-texthtml-displayed-at-the-top-of-my-cgi-pages/</link>
		<comments>http://dustyreagan.com/why-is-content-type-texthtml-displayed-at-the-top-of-my-cgi-pages/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 22:38:07 +0000</pubDate>
		<dc:creator>Dusty Reagan</dc:creator>
				<category><![CDATA[IT & Administration]]></category>
		<category><![CDATA[Web & Software Development]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[PerlIS]]></category>

		<guid isPermaLink="false">http://dustyreagan.com/why-is-content-type-texthtml-displayed-at-the-top-of-my-cgi-pages/</guid>
		<description><![CDATA[Recently one of my clients was having some issues with a CGI script they purchased. They&#8217;re running IIS on all of their servers, and oddly, this purchased script worked on one of their servers but not the other. On the &#8230; <a href="http://dustyreagan.com/why-is-content-type-texthtml-displayed-at-the-top-of-my-cgi-pages/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently one of my clients was having some issues with a CGI script they purchased. They&#8217;re running IIS on all of their servers, and oddly, this purchased script worked on one of their servers but not the other. On the server where the script wasn&#8217;t running correctly, IE displayed &#8220;Content-type: text/html&#8221; at the top of the CGI page. If I remember correctly FireFox displayed the entire markup of the page in text.</p>
<p>After quite a bit of research I found this excellent <a href="http://www.4images.com/ntperl/Perl_for_Win32_FAQ_7.html">Perl for Win32 FAQ</a> and learned that when you setup Perl for IIS you have two options, you can use &#8220;Perl for Win32&#8243; or you can use &#8220;PerlIS.&#8221; In my client&#8217;s case, they were running Perl for Win32 on the server with the working script and PerlIS on the server with the broken script.</p>
<p>Perl for Win32 = perl.exe<br />
PerlIS = perlis.dll</p>
<p>They are both the same version of Perl, and both come included when you download Perl for Windows. However, even though they are the same version of Perl, they are different &#8220;interpreters.&#8221;</p>
<p>Perl for Win32 and PerlIS are mostly alike, but PerlIS requires that your scripts include the HTTP response status line as well as all headers for the response. Using Perl for Win32 you only need to specify the headers.</p>
<p><a href="http://www.geocities.com/herong_yang/perl/perl_iis.html">PerlIS is about two times faster than Perl for Win32</a>. However, most CGI script that you purchase, or download for free, do not specify the HTTP response status line. This is because most scripts are not written for PerlIS. (Ok, I can&#8217;t backup that claim, but that seems to be the case in my experience.)</p>
<p>If your Perl scripts are displaying the content-type at the top of the page, try configuring your IIS server to run Perl using perl.exe instead of perlis.dll.</p>
<img src="http://dustyreagan.com/?ak_action=api_record_view&id=49&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://dustyreagan.com/why-is-content-type-texthtml-displayed-at-the-top-of-my-cgi-pages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
