<?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>The Blog of Brad Severance</title>
	
	<link>http://www.bradseverance.com</link>
	<description />
	<lastBuildDate>Sat, 07 Apr 2012 00:15:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/bradseverance" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="bradseverance" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">bradseverance</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Is It That Easy to Make Spreadsheets with CF9?</title>
		<link>http://www.bradseverance.com/2012/04/is-it-that-easy-to-make-spreadsheets-with-cf9/</link>
		<comments>http://www.bradseverance.com/2012/04/is-it-that-easy-to-make-spreadsheets-with-cf9/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 00:09:29 +0000</pubDate>
		<dc:creator>Brad P. Severance</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[CF9]]></category>
		<category><![CDATA[Excel]]></category>

		<guid isPermaLink="false">http://www.bradseverance.com/?p=322</guid>
		<description><![CDATA[The short answer is YES!
<p>I worked on a project recently where the user would click a button to generate a spreadsheet.</p>
<p>In CF9, that turns out to be incredibly easy with many of the new spreadsheet functions and tags.  In the example below, I borrowed from some code I found on the Net.  Unfortunately, I can't find where.  Oh, well.</p>
<p>At any rate, here it goes!</p>]]></description>
			<content:encoded><![CDATA[<p>The short answer is YES!</p>
<p>I worked on a project recently where the user would click a button to generate a spreadsheet.</p>
<p title="cfspreadsheet">In CF9, that turns out to be incredibly easy with many of the new spreadsheet functions and tags.  In the example below, I borrowed from some code I found on the Net.  Unfortunately, I can&#8217;t find where.  Oh, well.</p>
<p title="cfspreadsheet">At any rate, here it goes!</p>
<pre class="brush: coldfusion; title: ; notranslate">
&lt;cfsilent&gt;

	&lt;!--- get export data ---&gt;
	&lt;cfquery name=&quot;myquery&quot; datasource=&quot;mydatasource&quot;&gt;
		SELECT KittyName, KittyBreed, KittyAge
		FROM KittyTable
	&lt;/cfquery&gt;

	&lt;!--- create excel spreadsheet and populate with query ---&gt;
	&lt;cfscript&gt;
    	//Create a new Excel spreadsheet object
    	theSheet = SpreadsheetNew(&quot;KittyData&quot;);
		//add column headers
		SpreadsheetAddRow(theSheet,&quot;Name, Breed, Age&quot;,1,1);
		//add rows
    	SpreadsheetAddRows(theSheet,myquery);
	&lt;/cfscript&gt;

&lt;/cfsilent&gt;
&lt;cfheader name=&quot;content-disposition&quot; value=&quot;inline; filename=export.xls&quot; /&gt;
&lt;cfheader name=&quot;content-transfer-encoding&quot; value=&quot;binary&quot; /&gt;
&lt;cfcontent type=&quot;application/msexcel&quot; variable=&quot;#spreadsheetReadBinary(theSheet)#&quot; reset=&quot;true&quot; /&gt;
</pre>
<p>And that&#8217;s about it! Basically, we run a query, create a spreadsheet object, put the data from our query into the spreadsheet object, convert the object into binary, then serve it up to the user!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradseverance.com/2012/04/is-it-that-easy-to-make-spreadsheets-with-cf9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top in T-SQL and Rownum in Oracle</title>
		<link>http://www.bradseverance.com/2011/12/top-in-t-sql-and-rownum-in-oracle/</link>
		<comments>http://www.bradseverance.com/2011/12/top-in-t-sql-and-rownum-in-oracle/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 11:11:13 +0000</pubDate>
		<dc:creator>Brad P. Severance</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[TSQL]]></category>

		<guid isPermaLink="false">http://www.bradseverance.com/?p=313</guid>
		<description><![CDATA[The syntax between Microsoft and Oracle SQL is a little different in various ways.  One way is how to select a specific number of rows to be returned from a query.  I always remember the Microsoft way, and always forget the Oracle way.  So, I thought I'd write it down for posterity.]]></description>
			<content:encoded><![CDATA[<p>The syntax between Microsoft and Oracle SQL is a little different in various ways.  One way is how to select a specific number of rows to be returned from a query.  I always remember the Microsoft way, and always forget the Oracle way.  So, I thought I&#8217;d write it down for posterity.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Microsoft:</p>
<pre class="brush: sql; title: ; notranslate">
select top 100 *
from employees
</pre>
<p>Even if you have 400 employees, the query will only return 100.</p>
<p>Oracle does it a bit differently:</p>
<pre class="brush: sql; title: ; notranslate">
select *
from employees
where rownum &lt; 101
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bradseverance.com/2011/12/top-in-t-sql-and-rownum-in-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 and Custom Attributes</title>
		<link>http://www.bradseverance.com/2011/08/html5-and-custom-attributes/</link>
		<comments>http://www.bradseverance.com/2011/08/html5-and-custom-attributes/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 22:29:57 +0000</pubDate>
		<dc:creator>Brad P. Severance</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[custom attributes]]></category>

		<guid isPermaLink="false">http://www.bradseverance.com/?p=293</guid>
		<description><![CDATA[<div style="text-align:center">
<img style="border:none" src="http://www.bradseverance.com/wp-content/uploads/2011/06/HTML5_Logo.png" alt="HTML 5" />
</div>

I've worked on several projects where I've used custom attributes in HTML.  The reason being that it's awfully convenient to store data that can be used by jQuery.  For example, I may have an attribute that contains the value an input held before it was changed.  Then if I do something with the new value, for example, validate it with an AJAX call or something, and it turns it's no good, then I can set the input back to it's previous value by setting the input value equal to the value of the custom attribute.]]></description>
			<content:encoded><![CDATA[<div style="text-align:center">
<img style="border:none" src="http://www.bradseverance.com/wp-content/uploads/2011/06/HTML5_Logo.png" alt="HTML 5" />
</div>
<p>I&#8217;ve worked on several projects where I&#8217;ve used custom attributes in HTML.  The reason being that it&#8217;s awfully convenient to store data that can be used by jQuery.  For example, I may have an attribute that contains the value an input held before it was changed.  Then if I do something with the new value, for example, validate it with an AJAX call or something, and it turns out it&#8217;s no good, then I can set the input back to its previous value by setting the input value equal to the value of the custom attribute.</p>
<p>Unfortunately, in previous versions of HTML, custom attributes weren&#8217;t standard.</p>
<p>Well, thankfully HTML5 now allows custom attributes!  There is an important rule that you need to know about, however, which I learned about <a href="http://www.javascriptkit.com/dhtmltutors/customattributes.shtml" title="HTML5 Custom Attributes" target="_blank">here.</a></p>
<p>A custom attribute in HTML5 must begin with &#8220;data-&#8221;.  That&#8217;s really about it!</p>
<p>So now you can write something like this:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;input type=&quot;text&quot; id=&quot;zip&quot; name=&quot;zip&quot; data-origval=&quot;46250&quot; /&gt;
</pre>
<p>And if you&#8217;re using jQuery, then you set the input value with something like this:</p>
<pre class="brush: jscript; title: ; notranslate">
//variable for holding original value
var origval = $(&quot;#zip&quot;).attr(&quot;data-origval&quot;);
//set value
$(&quot;#zip&quot;).val(origval);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bradseverance.com/2011/08/html5-and-custom-attributes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualBox, Ubuntu &amp; Unity</title>
		<link>http://www.bradseverance.com/2011/07/virtualbox-ubuntu-unity/</link>
		<comments>http://www.bradseverance.com/2011/07/virtualbox-ubuntu-unity/#comments</comments>
		<pubDate>Sat, 16 Jul 2011 20:21:50 +0000</pubDate>
		<dc:creator>Brad P. Severance</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bradseverance.com/?p=269</guid>
		<description><![CDATA[I've been using Windows all my life.  I'm cool with that.  However, I do like to stretch my horizons from time to time.  One way I do that is by playing around with Linux.  An easy way to do this is with virtualization.  Microsoft has its own virtualization software called Microsoft Virtual PC, which quite honestly, I tried but didn't like.  It works just fine if, for example, you want to run Windows XP on a Window 7 PC.  But running Linux, while not impossible, is not as good an experience.  My main issue was the screen resolution.  I couldn't get it above 1024x768.  Also, there were no client tools.

At any rate, that's when I tried Oracle's VirtualBox, and it is, by far, a superior product.  It's much easier to install Ubuntu and other non-windows OS's.  Additionally, I can get the screen resolution up to 1280x960 by default, and can even go to fullscreen in complete HD (if you have native HD resolution on your laptop or PC).  Finally, VirtualBox has a nice set of client tools, so it's easy to share a folder and move the mouse seamlessly between Ubuntu and Windows.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using Windows all my life.  I&#8217;m cool with that.  However, I do like to stretch my horizons from time to time.  One way I do that is by playing around with Linux.  An easy way to do this is with virtualization.  Microsoft has its own virtualization software called <a title="Microsoft Virtual PC" href="http://www.microsoft.com/windows/virtual-pc/default.aspx" target="_blank">Microsoft Virtual PC</a>, which quite honestly, I tried but didn&#8217;t like.  It works just fine if, for example, you want to run Windows XP on a Window 7 PC.  But running Linux, while not <a title="Install Ubuntu How To" href="http://www.ubuntututorials.info/ubuntuinstallation/howto-install-linux-ubuntu-or-any-os-in-virtual-pc-2007-hdvoice.html" target="_blank">impossible,</a> is not as good an experience.  My main issue was the screen resolution.  I couldn&#8217;t get it above 1024&#215;768.  Also, there were no client tools.</p>
<p>At any rate, that&#8217;s when I tried Oracle&#8217;s <a title="VirtualBox" href="http://www.virtualbox.org/" target="_blank">VirtualBox</a>, and it is, by far, a superior product.  It&#8217;s much easier to install Ubuntu and other non-windows OS&#8217;s.  Additionally, I can get the screen resolution up to 1280&#215;960 by default, and can even go to fullscreen in complete HD (if you have native HD resolution on your laptop or PC).  Finally, VirtualBox has a nice set of client tools, so it&#8217;s easy to share a folder and move the mouse seamlessly between Ubuntu and Windows.</p>
<p>Once snafu with which I was confronted was getting Ubuntu&#8217;s Unity desktop to run in the virtualization.  For some reason, it defaulted to the Gnome desktop.  I googled it but couldn&#8217;t find the answer.  As it turned out, I was able to get it to work but adjusting the video RAM the virtualization uses.  See the screenie below:</p>
<div id="attachment_270" class="wp-caption aligncenter" style="width: 510px"><img class="size-full wp-image-270" title="Virtual Box Video Ram Settings for Ubuntu" src="http://www.bradseverance.com/wp-content/uploads/2011/07/ubuntu_video_ram.png" alt="Virtual Box Video Ram Settings for Ubuntu" width="500" height="384" /><p class="wp-caption-text">Virtual Box Video Ram Settings for Ubuntu</p></div>
<p>I think the issue is that Unity needs more than the default 8M of video RAM VirtualBox assigns out of the box.  So, just up it to the maximum, assuming you have a decent video card on your computer.  My laptop has 2G of video RAM, so it&#8217;s hardly an issue.</p>
<p>At any rate, once you do that and then fire up Ubuntu, you should see the Unity interface!</p>
<div id="attachment_271" class="wp-caption aligncenter" style="width: 510px"><img class="size-full wp-image-271" title="Ubuntu Unity on VirtualBox" src="http://www.bradseverance.com/wp-content/uploads/2011/07/ubuntu_unity.png" alt="Ubuntu Unity on VirtualBox" width="500" height="399" /><p class="wp-caption-text">Ubuntu Unity on VirtualBox</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.bradseverance.com/2011/07/virtualbox-ubuntu-unity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The HTML5 Video Element and Safari (Minus QuickTime)</title>
		<link>http://www.bradseverance.com/2011/06/the-html5-video-element-and-safari-minus-quicktime/</link>
		<comments>http://www.bradseverance.com/2011/06/the-html5-video-element-and-safari-minus-quicktime/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 23:19:27 +0000</pubDate>
		<dc:creator>Brad P. Severance</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[QuickTime]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[video tag]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.bradseverance.com/?p=233</guid>
		<description><![CDATA[<div style="text-align:center">
<img style="border:none" src="http://www.bradseverance.com/wp-content/uploads/2011/06/HTML5_Logo.png" alt="HTML 5" />
</div>

Yes, it's been awhile, but I'm baaa-aaack.

At any rate, I'm diving into HTML5.  I thought I'd start learning about how HTML5 can deliver video and audio.  Before HTML5 you would probably have used Flash, but with all the major browsers now supporting the HTML5 video and audio elements, you can start using HTML5!]]></description>
			<content:encoded><![CDATA[<div style="text-align:center">
<img style="border:none" src="http://www.bradseverance.com/wp-content/uploads/2011/06/HTML5_Logo.png" alt="HTML 5" />
</div>
<p>Yes, it&#8217;s been awhile, but I&#8217;m baaa-aaack.</p>
<p>At any rate, I&#8217;m diving into HTML5.  I thought I&#8217;d start learning about how HTML5 can deliver video and audio.  Before HTML5 you would probably have used Flash, but with all the major browsers now supporting the HTML5 video and audio elements, you can start using HTML5!</p>
<p>One of the problems, though, is that the major browsers do not all support the same video formats.  There are two major camps.  The first camp is the big, mean corporations, namely, Microsoft and Apple.  They want to use H.264 (mp4).  The other camp is Opera, Firefox, and Google (oh wait, Google is a big, mean corporation, too).  This camp wants to use webm or ogg because they are open source.</p>
<p>You can still use the HTML5 video and audio elements, but you&#8217;ll just have to offer both formats, which is pretty easy to do.  Here is an example of how to do it:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;video controls&gt;
   &lt;source src=&quot;assets/videos/test.mp4&quot; type=&quot;video/mp4&quot; /&gt;
   &lt;source src=&quot;assets/videos/test.webm&quot; type=&quot;video/webm&quot; /&gt;
   &lt;p&gt;Your browser does not support HTML5 video.&lt;/p&gt;
&lt;/video&gt;
</pre>
<p>You just enter both video types, and your browser will pick the first one that it likes!  Pretty cool.</p>
<p>So, I set my little test up, and was all ready to go, and it worked just like it was supposed to (IE was playing the .mp4; Chrome, Firefox, and Opera were playing the .webm file), EXCEPT for Safari.  It wasn&#8217;t playing anything, which kinda stumped me.  To Google we go to find the answer!</p>
<p>I came across <a target="_blank" href="https://discussions.apple.com/thread/2544849?threadID=2544849&#038;tstart=0">this</a> little thread.  It turns out that in order for Safari to use the video tag on a Windows 7 machine, you need to have QuickTime installed!  That&#8217;s just was I did, and presto!, it worked.  Stupid, but there you go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradseverance.com/2011/06/the-html5-video-element-and-safari-minus-quicktime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Coldfusion Structures</title>
		<link>http://www.bradseverance.com/2011/05/creating-coldfusion-structures/</link>
		<comments>http://www.bradseverance.com/2011/05/creating-coldfusion-structures/#comments</comments>
		<pubDate>Mon, 02 May 2011 19:09:58 +0000</pubDate>
		<dc:creator>Brad P. Severance</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[Coldfusion Structures]]></category>

		<guid isPermaLink="false">http://www.bradseverance.com/?p=221</guid>
		<description><![CDATA[I recently read an interesting article on <a target="_blank" href="http://www.bennadel.com">Ben Nadel's blog</a> on <a target="_blank" href="http://www.bennadel.com/blog/1860-Using-Appropriate-Status-Codes-With-Each-API-Response.htm">error handling for Ajax, jQuery, and Coldfusion.</a>  I actually employed his idea for a project that I'm working on for Notre Dame.

That is an aside.  I did notice in his code that he created a Coldfusion structure in a way that I had not known before, and I thought I'd show you how it works.]]></description>
			<content:encoded><![CDATA[<p>I recently read an interesting article on <a href="http://www.bennadel.com" target="_blank">Ben Nadel&#8217;s blog</a> on <a href="http://www.bennadel.com/blog/1860-Using-Appropriate-Status-Codes-With-Each-API-Response.htm" target="_blank">error handling for Ajax, jQuery, and Coldfusion.</a> I actually employed his idea for a project that I&#8217;m working on for Notre Dame.</p>
<p>That is an aside.  I did notice in his code that he created a Coldfusion structure in a way that I had not known before, and I thought I&#8217;d show you how it works.</p>
<p>Take a look at the following code:</p>
<p>&nbsp;</p>
<pre class="brush: coldfusion; title: ; notranslate">
&lt;cfscript&gt;
test1 = StructNew();
StructInsert(test1,&quot;foo1&quot;,&quot;bar1&quot;);
StructInsert(test1,&quot;foo2&quot;,&quot;bar2&quot;);
StructInsert(test1,&quot;foo3&quot;,ArrayNew(1));
StructInsert(test1,&quot;foo4&quot;,StructNew());
&lt;/cfscript&gt;
&lt;cfset test2 = { foo1 = &quot;bar1&quot;, foo2 =&quot;bar2&quot;, foo3 = ArrayNew(1), foo4 = {  }  } /&gt;

&lt;cfdump var=&quot;#test1#&quot;&gt;
&lt;cfdump var=&quot;#test2#&quot;&gt;
</pre>
<p>The result of this code produces:</p>
<div id="attachment_222" class="wp-caption aligncenter" style="width: 165px"><a href="http://www.bradseverance.com/wp-content/uploads/2011/05/structs.jpg"><img class="size-full wp-image-222" title="Coldfusion Structure Dumps" src="http://www.bradseverance.com/wp-content/uploads/2011/05/structs.jpg" alt="Coldfusion Structure Dumps" width="155" height="320" /></a><p class="wp-caption-text">Coldfusion Structure Dumps</p></div>
<p>Essentially, the same result.  Interestingly, Coldfusion capitalizes the keys when using the second technique.  I wonder why?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradseverance.com/2011/05/creating-coldfusion-structures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hard Drive Overload</title>
		<link>http://www.bradseverance.com/2011/04/hard-drive-overload/</link>
		<comments>http://www.bradseverance.com/2011/04/hard-drive-overload/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 18:30:21 +0000</pubDate>
		<dc:creator>Brad P. Severance</dc:creator>
				<category><![CDATA[Utilities]]></category>
		<category><![CDATA[Disk Tools]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Utilities]]></category>

		<guid isPermaLink="false">http://www.bradseverance.com/?p=206</guid>
		<description><![CDATA[So, my laptop has an 88 gig C: drive, and it was chock full.  I needed to clean it up, but wasn't sure what to clean.  Well, I found some helpful tips online, and I was able to reduce the size by 25 gigs or so!

Firstly, I'm running Windows Vista, but most of the story will apply to Windows 7, as well.

I downloaded this awesome program called <a title="SpaceSniffer" href="http://www.uderzo.it/main_products/space_sniffer/download.html" target="_blank">SpaceSniffer.</a> It's a standalone executable (it doesn't need to be installed), and it gives you a very nice graphical representation of how your disk space is being used.

<a href="http://www.bradseverance.com/wp-content/uploads/2011/04/SpaceSniffer.jpg" target="_blank"><img class="aligncenter size-full wp-image-207" title="SpaceSniffer" src="http://www.bradseverance.com/wp-content/uploads/2011/04/SpaceSniffer.jpg" alt="SpaceSniffer" width="500" /></a>]]></description>
			<content:encoded><![CDATA[<p>So, my laptop has an 88 gig C: drive, and it was chock full.  I needed to clean it up, but wasn&#8217;t sure what to clean.  Well, I found some helpful tips online, and I was able to reduce the size by 25 gigs or so!</p>
<p>Firstly, I&#8217;m running Windows Vista, but most of the story will apply to Windows 7, as well.</p>
<p>I downloaded this awesome program called <a title="SpaceSniffer" href="http://www.uderzo.it/main_products/space_sniffer/download.html" target="_blank">SpaceSniffer.</a> It&#8217;s a standalone executable (it doesn&#8217;t need to be installed), and it gives you a very nice graphical representation of how your disk space is being used.</p>
<p><a href="http://www.bradseverance.com/wp-content/uploads/2011/04/SpaceSniffer.jpg" target="_blank"><img class="aligncenter size-full wp-image-207" title="SpaceSniffer" src="http://www.bradseverance.com/wp-content/uploads/2011/04/SpaceSniffer.jpg" alt="SpaceSniffer" width="500" /></a></p>
<p>Well, one thing I found out is that about 20 gigs of hard space was being used up by system restore files.  Since I backup my computer pretty regularly with <a title="Acronis" href="http://www.acronis.com/homecomputing/" target="_blank">Acronis,</a> that seemed a bit silly.  Strangely, with the advent of Vista, the windows OS doesn&#8217;t let easily change that.</p>
<p>Never fear!  There is a way to do it, and I found some very good instructions <a title="Vista Maximum Restore Point Storage" href="http://reliancepc.com/menu/tips/restorepointmax/index.php">here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradseverance.com/2011/04/hard-drive-overload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSON Validator</title>
		<link>http://www.bradseverance.com/2011/03/json-validator/</link>
		<comments>http://www.bradseverance.com/2011/03/json-validator/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 19:56:13 +0000</pubDate>
		<dc:creator>Brad P. Severance</dc:creator>
				<category><![CDATA[JSON]]></category>

		<guid isPermaLink="false">http://www.bradseverance.com/?p=192</guid>
		<description><![CDATA[I found this JSON validator called JSONLint (not sure how they came up with that name).  But hey, it works.  Just copy your JSON, paste into the website, and press the Validate button.  Pretty cool!  Just go to <a target="_blank" href="http://www.jsonlint.com">www.jsonlint.com</a>
<div style="text-align: center">
<a href="http://www.jsonlint.com/"><img src="http://www.bradseverance.com/wp-content/uploads/2011/03/jsonlint.jpg" alt="jsonlint JSON validator" title="jsonlint JSON validator" width="500" /></a>
</div>]]></description>
			<content:encoded><![CDATA[<p>I found this online JSON validator called JSONLint (not sure how they came up with that name).  But hey, it works.  Just copy your JSON, paste into the website, and press the Validate button.  Pretty cool!  Just go to <a target="_blank" href="http://www.jsonlint.com">www.jsonlint.com</a></p>
<div style="text-align: center">
<a href="http://www.jsonlint.com/"><img src="http://www.bradseverance.com/wp-content/uploads/2011/03/jsonlint.jpg" alt="jsonlint JSON validator" title="jsonlint JSON validator" width="500" /></a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.bradseverance.com/2011/03/json-validator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where does Wi-Fi come from?</title>
		<link>http://www.bradseverance.com/2011/03/where-does-wi-fi-come-from/</link>
		<comments>http://www.bradseverance.com/2011/03/where-does-wi-fi-come-from/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 21:30:49 +0000</pubDate>
		<dc:creator>Brad P. Severance</dc:creator>
				<category><![CDATA[Wireless]]></category>
		<category><![CDATA[Wi-Fi]]></category>
		<category><![CDATA[wi-fi definition]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://www.bradseverance.com/?p=166</guid>
		<description><![CDATA[Not the actual signal, but the name Wi-Fi.

My girlfriend asked me this question a couple of days ago. Obviously, the Wi stands for Wireless. But what does the Fi stand for?  The only thing I could think of was Fidelity, as in Hi-Fi. Remember Hi-Fi's?  That's what they used to call stereos way back in the stone ages.  Hi-Fi stood for High Fidelity.  I guess that meant that the stereo produced awesome sound.  But why would you need Fi in a wireless signal?]]></description>
			<content:encoded><![CDATA[<p style="text-align:center"><a href="http://www.bradseverance.com/wp-content/uploads/2011/03/WiFiLogo.png"><img style="border:none" src="http://www.bradseverance.com/wp-content/uploads/2011/03/WiFiLogo.png" alt="" title="WiFiLogo" width="304" height="195" /></a></p>
<p>Not the actual signal, but the name <em>Wi-Fi.</em></p>
<p>My girlfriend asked me this question a couple of days ago.  Obviously, the <em>Wi</em> stands for <em>Wireless. </em>But what does the <em>Fi</em> stand for?  The only thing I could think of was <em>Fidelity,</em> as in <em>Hi-Fi.</em> Remember Hi-Fi&#8217;s?  That&#8217;s what they used to call stereos way back in the stone ages.  <em>Hi-Fi</em> stood for High Fidelity.  I guess that meant that the stereo produced awesome sound.  But why would you need <em>Fi</em> in a wireless signal?</p>
<p>So we looked it up on <a title="Wi-Fi" href="http://en.wikipedia.org/wiki/Wi-Fi" target="_blank">wikipedia.</a></p>
<p>Turns out, it does stand for Fidelity.  But not for any technical reason.  I guess just because it sounds good:</p>
<p>&#8220;The term Wi-Fi suggests Wireless Fidelity, resembling the long-established audio-equipment classification term high fidelity (in use since the 1930s) or Hi-Fi (used since 1950). Even the Wi-Fi Alliance itself has often used the phrase Wireless Fidelity in its press releases and documents; the term also appears in a white paper on Wi-Fi from ITAA. However, based on Phil Belanger&#8217;s statement, the term Wi-Fi was never supposed to mean anything at all.<br />
The term Wi-Fi, first used commercially in August 1999, was coined by a brand-consulting firm called Interbrand Corporation that the Alliance had hired to determine a name that was &#8220;a little catchier than &#8216;IEEE 802.11b Direct Sequence&#8217;&#8221;. Belanger also stated that Interbrand invented Wi-Fi as a play on words with Hi-Fi, and also created the yin-yang-style Wi-Fi logo.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradseverance.com/2011/03/where-does-wi-fi-come-from/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>After Too Many Hours …</title>
		<link>http://www.bradseverance.com/2011/02/after-too-many-hours/</link>
		<comments>http://www.bradseverance.com/2011/02/after-too-many-hours/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 20:17:50 +0000</pubDate>
		<dc:creator>Brad P. Severance</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Syntax Highlighting]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>

		<guid isPermaLink="false">http://www.bradseverance.com/?p=153</guid>
		<description><![CDATA[I spent a lot of time finding the best syntax highlighter for this website.  I had three criteria: (1) I wanted the lines to wrap (i.e., no scrollbars), since I only have about 530px of content width, (2) I wanted “copy to clipboard” functionality, (3) I wanted Coldfusion syntax highlighting, since I do a lot of work in Coldfusion.]]></description>
			<content:encoded><![CDATA[<p>I spent a lot of time finding the best syntax highlighter for this website.  I had three criteria: (1) I wanted the lines to wrap (i.e., no scrollbars), since I only have about 530px of content width, (2) I wanted &#8220;copy to clipboard&#8221; functionality, (3) I wanted Coldfusion syntax highlighting, since I do a lot of work in Coldfusion.</p>
<p>Well, I tried and played with numerous plugins, but didn&#8217;t find anything that fit the bill.  I tried every plugin from <a title="The Definitive Guide on WordPress Syntax Highligher Plugins" href="http://www.cagintranet.com/archive/the-definitive-guide-on-wordpress-syntax-highligher-plugins/" target="_blank">this site&#8217;s definitive guide</a> (which is a little outdated).  But none of them worked.</p>
<p>After much banging of my head on the table, I finally found <a title="SyntaxHighlighter Evolved" href="http://wordpress.org/extend/plugins/syntaxhighlighter/" target="_blank">SyntaxHighlighter Evolved</a>.</p>
<p>If you want it to wrap lines, make sure you change the version to &#8220;2.x&#8221;. Version 3.x doesn&#8217;t wrap lines (not sure why).</p>
<p style="text-align: center;">&nbsp;</p>
<div style="text-align:center">
<a href="http://www.bradseverance.com/wp-content/uploads/2011/02/SyntaxHighlighter_Settings.jpg"><img class="size-full wp-image-154 " title="SyntaxHighlighter_Settings" src="http://www.bradseverance.com/wp-content/uploads/2011/02/SyntaxHighlighter_Settings.jpg" alt="SyntaxHighlighter Settings" width="483" height="173" /></a>
</div>
<p style="text-align: left;">Well, without further ado, let&#8217;s see it in action!</p>
<p style="text-align: left;">Here&#8217;s some javascript:</p>
<pre class="brush: jscript; title: ; notranslate">
//adding info from clicked row to 'active' div
$(&quot;#oe_pn_search_results tbody tr.even, #oe_pn_search_results tbody tr.odd&quot;).live(&quot;click&quot;, function(){

	if(!($(this).find(&quot;:first&quot;).hasClass(&quot;dataTables_empty&quot;))){

		//create variable for part number
		var part_number = $(this).find(&quot;:first&quot;).text();
		//create variable for part number description
		var part_desc = $(this).find(&quot;:nth-child(2)&quot;).text();

		//insert values into parent form
		$(&quot;.oe_order_row[active='true']&quot;).find(&quot;.oe_inp_prod&quot;).val(part_number);
		$(&quot;.oe_order_row[active='true']&quot;).children(&quot;.oe_order_row_desc&quot;).text(part_desc);

		//remove active attribute
		$(&quot;.oe_order_row&quot;).removeAttr(&quot;active&quot;);

		//close dialog
		$(&quot;#oe_pn_dialog&quot;).dialog('close');

	}

});
</pre>
<p style="text-align: left;">And now for some Coldfusion:</p>
<pre class="brush: coldfusion; title: ; notranslate">
&lt;cfif part_numbers.recordCount neq 0&gt;

	&lt;cfset text = '{ &quot;aaData&quot;: [' /&gt;

	&lt;cfloop query=&quot;part_numbers&quot;&gt;

		&lt;cfset fulldesc = &quot;&quot; /&gt;
		&lt;cfset part_number = &quot;&quot; /&gt;

		&lt;cfif Description eq &quot;&quot;&gt;
			&lt;cfset fulldesc = LongDesc /&gt;
		&lt;cfelseif LongDesc eq &quot;&quot;&gt;
			&lt;cfset fulldesc = Description /&gt;
		&lt;cfelse&gt;
			&lt;cfset fulldesc = Description &amp; &quot; (&quot; &amp; LongDesc &amp; &quot;)&quot; /&gt;
		&lt;/cfif&gt;

		&lt;cfset fulldesc = ReReplace(fulldesc, '&quot;', '\&quot;', 'ALL') /&gt;
		&lt;cfset fulldesc = ReReplace(fulldesc, &quot;'&quot;, &quot;\'&quot;, &quot;ALL&quot;) /&gt;

		&lt;cfset part_number = trim(StockCode) /&gt;
		&lt;cfset part_number = ReReplace(part_number, '&quot;', '\&quot;', 'ALL') /&gt;
		&lt;cfset part_number = ReReplace(part_number, &quot;'&quot;, &quot;\'&quot;, &quot;ALL&quot;) /&gt;

		&lt;cfif part_numbers.isLast()&gt;
			&lt;cfset text = text &amp; '[&quot;' &amp; part_number &amp; '&quot;,&quot;' &amp; fulldesc &amp; '&quot;,&quot;' &amp; LSNumberFormat(OnHand,&quot;9&quot;) &amp; '&quot;,&quot;' &amp; LSNumberFormat(Allocated,&quot;9&quot;) &amp; '&quot;,&quot;' &amp; LSNumberFormat(Available,&quot;9&quot;) &amp; '&quot;]] }' /&gt;
		&lt;cfelse&gt;
			&lt;cfset text = text &amp; '[&quot;' &amp; part_number &amp; '&quot;,&quot;' &amp; fulldesc &amp; '&quot;,&quot;' &amp; LSNumberFormat(OnHand,&quot;9&quot;) &amp; '&quot;,&quot;' &amp; LSNumberFormat(Allocated,&quot;9&quot;) &amp; '&quot;,&quot;' &amp; LSNumberFormat(Available,&quot;9&quot;) &amp; '&quot;],' /&gt;
		&lt;/cfif&gt;
	&lt;/cfloop&gt;

&lt;cfelse&gt;

	&lt;cfset text = '{ &quot;aaData&quot;: [] }' /&gt;

&lt;/cfif&gt;
</pre>
<p style="text-align: left;">Note: long lines of javascript with no spaces still don&#8217;t wrap properly, so I had to change the css for the code blocks from &#8220;inline&#8221; to &#8220;inline-block&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradseverance.com/2011/02/after-too-many-hours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

