<?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>// do something here &#187; What were they thinking?</title>
	<atom:link href="http://www.dosomethinghere.com/category/what-were-they-thinking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dosomethinghere.com</link>
	<description>Turning impossibilities into 1s and 0s professionally since 0&#120;07C1</description>
	<lastBuildDate>Fri, 20 Jan 2012 20:07:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Is this string numeric?</title>
		<link>http://www.dosomethinghere.com/2010/10/27/is-this-string-numeric/</link>
		<comments>http://www.dosomethinghere.com/2010/10/27/is-this-string-numeric/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 17:47:50 +0000</pubDate>
		<dc:creator>BP</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Inspirational code]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[What were they thinking?]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://www.dosomethinghere.com/?p=606</guid>
		<description><![CDATA[This VB code was brought to my attention.  It is meant to look at a string variable (prefixText) and decide if the string is numeric or not, and return a data set (ds) by using a different method based on the result of the numeric test. (As always, this code is in a heavily used [...]]]></description>
			<content:encoded><![CDATA[<p>This VB code was brought to my attention.  It is meant to look at a string variable (prefixText) and decide if the string is numeric or not, and return a data set (ds) by using a different method based on the result of the numeric test.  (As always, this code is in a heavily used production environment.)</p>

<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #8D38C9; font-weight: bold;">If</span> Left(prefixText, 1) = <span style="color: #800000;">&quot;0&quot;</span> <span style="color: #8D38C9; font-weight: bold;">Or</span> Left(prefixText, 1) = <span style="color: #800000;">&quot;1&quot;</span> <span style="color: #8D38C9; font-weight: bold;">Or</span> Left(prefixText, 1) = <span style="color: #800000;">&quot;2&quot;</span> <span style="color: #8D38C9; font-weight: bold;">Or</span> Left(prefixText, 1) = <span style="color: #800000;">&quot;3&quot;</span> <span style="color: #8D38C9; font-weight: bold;">Or</span> Left(prefixText, 1) = <span style="color: #800000;">&quot;4&quot;</span> <span style="color: #8D38C9; font-weight: bold;">Or</span> Left(prefixText, 1) = <span style="color: #800000;">&quot;5&quot;</span> <span style="color: #8D38C9; font-weight: bold;">Or</span> Left(prefixText, 1) = <span style="color: #800000;">&quot;6&quot;</span> <span style="color: #8D38C9; font-weight: bold;">Or</span> Left(prefixText, 1) = <span style="color: #800000;">&quot;8&quot;</span> <span style="color: #8D38C9; font-weight: bold;">Or</span> Left(prefixText, 1) = <span style="color: #800000;">&quot;9&quot;</span> <span style="color: #8D38C9; font-weight: bold;">Then</span>
    ds = <span style="color: #E56717; font-weight: bold;">New</span> Users(_ConnStr).getUsersListByNumber(prefixText)
<span style="color: #8D38C9; font-weight: bold;">Else</span>
    ds = <span style="color: #E56717; font-weight: bold;">New</span> Users(_ConnStr).getUsersListByLastName(prefixText)
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span></pre></div></div>

<p>I have some great ideas on how to improve this code.  The first thing I would have done was to use OrElse instead of Or, it would speed things up tremendously.  And I would also have added in the test for the &#8220;7&#8243; character.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dosomethinghere.com/2010/10/27/is-this-string-numeric/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Rack mounted server&#8230;  Strap mounted server&#8230;  Same difference.</title>
		<link>http://www.dosomethinghere.com/2010/08/16/rack-mounted-server-strap-mounted-server-same-difference/</link>
		<comments>http://www.dosomethinghere.com/2010/08/16/rack-mounted-server-strap-mounted-server-same-difference/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 23:32:55 +0000</pubDate>
		<dc:creator>BP</dc:creator>
				<category><![CDATA[Hardware adventures]]></category>
		<category><![CDATA[What were they thinking?]]></category>
		<category><![CDATA[Funny stuff]]></category>

		<guid isPermaLink="false">http://www.dosomethinghere.com/?p=580</guid>
		<description><![CDATA[While the set up pictured below was not our equipment, I am still kind of glad that our servers are not hosted at this facility any longer.]]></description>
			<content:encoded><![CDATA[<p>While the set up pictured below was not our equipment, I am still kind of glad that our servers are not hosted at this facility any longer.</p>
<p><a href="http://www.dosomethinghere.com/wp-content/uploads/2010/08/strap_mounted.jpg"><img class="alignnone size-full wp-image-581" title="strap_mounted" src="http://www.dosomethinghere.com/wp-content/uploads/2010/08/strap_mounted.jpg" alt="" width="270" height="630" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dosomethinghere.com/2010/08/16/rack-mounted-server-strap-mounted-server-same-difference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I wonder if the volume on this TV goes to 11&#8230;</title>
		<link>http://www.dosomethinghere.com/2009/08/28/i-wonder-if-the-volume-on-this-tv-goes-to-11/</link>
		<comments>http://www.dosomethinghere.com/2009/08/28/i-wonder-if-the-volume-on-this-tv-goes-to-11/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 17:32:00 +0000</pubDate>
		<dc:creator>BP</dc:creator>
				<category><![CDATA[Spinal Tap moment]]></category>
		<category><![CDATA[What were they thinking?]]></category>
		<category><![CDATA[Spinal Tap]]></category>

		<guid isPermaLink="false">http://www.dosomethinghere.com/?p=269</guid>
		<description><![CDATA[Way back in 1984, I came to the enlightening realization that the bulk of my life is spent in the spaces between Spinal Tap moments&#8230; Check out part of this advertisement for a 32&#8243; Emerson LCD HDTV that I received in my e-mail inbox from Tiger Direct: I have heard that Dobly audio is awesome. Too [...]]]></description>
			<content:encoded><![CDATA[<p>Way back in 1984, I came to the enlightening realization that the bulk of my life is spent in the spaces between Spinal Tap moments&#8230;</p>
<p>Check out part of this advertisement for a 32&#8243; Emerson LCD HDTV that I received in my e-mail inbox from Tiger Direct:</p>
<p><img class="alignnone size-full wp-image-277" title="tigerdirect" src="http://www.dosomethinghere.com/wp-content/uploads/2009/08/tigerdirect2.jpg" alt="tigerdirect" width="635" height="544" /></p>
<p>I have heard that Dobly audio is awesome. Too bad they weren&#8217;t selling a 32&#8242; diagonal television for $299.99, I might have bought it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dosomethinghere.com/2009/08/28/i-wonder-if-the-volume-on-this-tv-goes-to-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RIP &lt;blink&gt;</title>
		<link>http://www.dosomethinghere.com/2009/08/24/rip/</link>
		<comments>http://www.dosomethinghere.com/2009/08/24/rip/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 13:43:51 +0000</pubDate>
		<dc:creator>BP</dc:creator>
				<category><![CDATA[What were they thinking?]]></category>
		<category><![CDATA[IE8]]></category>

		<guid isPermaLink="false">http://www.dosomethinghere.com/?p=249</guid>
		<description><![CDATA[I have just learned by accident that the venerable &#60;blink&#62; tag is now unsupported in Internet Explorer 8. Needless to say, I am guessing that my desire to usher the blink tag back into common use (circa 1994 or so) may not get off the ground now.]]></description>
			<content:encoded><![CDATA[<p>I have just learned by accident that the venerable <blink>&lt;blink&gt;</blink> tag is now unsupported in Internet Explorer 8. Needless to say, I am guessing that my desire to usher the blink tag back into common use (circa 1994 or so) may not get off the ground now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dosomethinghere.com/2009/08/24/rip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

