<?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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Joshua Doodnauth's Blog</title>
	
	<link>http://joshua.doodnauth.com/blog</link>
	<description>Enumerated Thoughts</description>
	<lastBuildDate>Fri, 08 Feb 2013 16:28:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/jsdoodnauth" /><feedburner:info uri="jsdoodnauth" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Resource interpreted as Script but transferred with MIME type text/plain</title>
		<link>http://feedproxy.google.com/~r/jsdoodnauth/~3/OLnTlwd2n04/</link>
		<comments>http://joshua.doodnauth.com/blog/2013/02/resource-interpreted-as-script-but-transferred-with-mime-type-textplain/#comments</comments>
		<pubDate>Fri, 08 Feb 2013 16:28:03 +0000</pubDate>
		<dc:creator>jsdoodnauth</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[Mime]]></category>
		<category><![CDATA[RegEdit]]></category>
		<category><![CDATA[Resource]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[text/plain]]></category>
		<category><![CDATA[Visual Studio 2012]]></category>
		<category><![CDATA[VS2012]]></category>

		<guid isPermaLink="false">http://joshua.doodnauth.com/blog/?p=695</guid>
		<description><![CDATA[Still getting some issues with development on my new computer, this one has to do with JavaScript files. Some background on what I have installed: Windows 7 Visual Studio 2008/2012 Google Chrome and Firefox Sublime Text 2 &#8230;HP Crapware&#8230; I am currently learning Backbone.js, so I was going through some tutorials on how to hookup [...]]]></description>
				<content:encoded><![CDATA[<p>Still getting some issues with development on my new computer, this one has to do with JavaScript files.</p>
<p>Some background on what I have installed:</p>
<ul>
<li>Windows 7</li>
<li>Visual Studio 2008/2012</li>
<li>Google Chrome and Firefox</li>
<li>Sublime Text 2</li>
<li>&#8230;HP Crapware&#8230;</li>
</ul>
<p>I am currently learning Backbone.js, so I was going through some tutorials on how to hookup a Model, View and Collection.  The first thing I did was pull jQuery, Backbone and Underscore from a CDN, and put in some of the tutorial code for the view and the model into the html page using my editor of choice, Sublime Text 2.  I ran the file in Chrome, and it works! Great.  The html file looked a bit messy with all this javascript, and I needed to organize my thoughts for learning a View and Model, so I made a separate js file for my View and another for my Model&#8230; copy, paste, save, add the reference in the html file, save again.  Updated my references:</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://ajax.cdnjs.com/ajax/libs/underscore.js/1.1.4/underscore-min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://ajax.cdnjs.com/ajax/libs/backbone.js/0.3.3/backbone-min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;view.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;model.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p>OK done. Open up Chrome, and run the file, console spits out:</p>
<p><img class="aligncenter size-full wp-image-696" alt="mimeError" src="http://joshua.doodnauth.com/blog/wp-content/uploads/2013/02/mimeError.jpg" width="600" height="138" /></p>
<p>Uhmmm&#8230;.???  Well at least Chrome gives some feedback, Firefox didn&#8217;t output anything to the console, and the page just didn&#8217;t work.  After some googling, I came across a few people who have encountered this issue:</p>
<p><a href="http://stackoverflow.com/questions/12003107/resource-interpreted-as-script-but-transferred-with-mime-type-text-plain-for-l">http://stackoverflow.com/questions/12003107/resource-interpreted-as-script-but-transferred-with-mime-type-text-plain-for-l</a></p>
<p>Apparently, when you install Visual Studio 2012 it decides to add a key in the registry defining the content type.  What does it define it as?</p>
<p>&nbsp;</p>
<p><span style="font-size: 10em;">text/plain!!!</span></p>
<p>&nbsp;</p>
<p><em id="__mceDel"><em id="__mceDel">Why Microsoft, why??</em></em></p>
<h2>Solution</h2>
<p>The solution is simple, but requires a change in the registry, so please don&#8217;t message me if you don&#8217;t know what you are doing, and break your registry.</p>
<ol>
<li>Run -&gt; regedit</li>
<li>Go to HKEY_CLASSES_ROOT\.js<br />
<img class="aligncenter size-full wp-image-697" alt="regfix" src="http://joshua.doodnauth.com/blog/wp-content/uploads/2013/02/regfix.jpg" width="600" height="309" /></li>
<li>To fix, there are two options
<ul>
<li>Open up the entry &#8216;Content Type&#8217;, can change the value to &#8216;text/javascript&#8217; (Recommended), or</li>
<li>You can remove the entry &#8216;Content Type&#8217; altogether, (I check my old computer, and the entry doesn&#8217;t exist).</li>
</ul>
</li>
</ol>
<p>That&#8217;s it, hope you don&#8217;t flip your table in rage!</p>
<img src="http://feeds.feedburner.com/~r/jsdoodnauth/~4/OLnTlwd2n04" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://joshua.doodnauth.com/blog/2013/02/resource-interpreted-as-script-but-transferred-with-mime-type-textplain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://joshua.doodnauth.com/blog/2013/02/resource-interpreted-as-script-but-transferred-with-mime-type-textplain/</feedburner:origLink></item>
		<item>
		<title>SSMS – Enable saving changes which required table re-creation</title>
		<link>http://feedproxy.google.com/~r/jsdoodnauth/~3/UcJbFTef5ao/</link>
		<comments>http://joshua.doodnauth.com/blog/2013/01/ssms-enable-saving-changes-which-require-table-recreatio/#comments</comments>
		<pubDate>Tue, 29 Jan 2013 17:12:45 +0000</pubDate>
		<dc:creator>jsdoodnauth</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[Re-creation]]></category>
		<category><![CDATA[Saving]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SSMS]]></category>
		<category><![CDATA[Tables]]></category>

		<guid isPermaLink="false">http://joshua.doodnauth.com/blog/?p=688</guid>
		<description><![CDATA[I just got a new computer and reinstalled SQL Server Management Studio (both 2008 and 2012), and I was hit with a little annoying data security feature which I previously disabled and forgot about a long time ago.  A dialog telling me that SSMS could not save changes to a table because it had to [...]]]></description>
				<content:encoded><![CDATA[<p>I just got a new computer and reinstalled SQL Server Management Studio (both 2008 and 2012), and I was hit with a little annoying data security feature which I previously disabled and forgot about a long time ago.  A dialog telling me that SSMS could not save changes to a table because it had to be dropped and re-created.</p>
<p><img class="aligncenter size-full wp-image-689" alt="ssms-dialog" src="http://joshua.doodnauth.com/blog/wp-content/uploads/2013/01/ssms-dialog.jpg" width="540" height="128" /></p>
<p>So, the issue is when making changes to a table design, and there is data in the table, SQL Server will put the data in a temp table, drop the table, and recreate it with the changes, and then reinsert the data.</p>
<p>If you are changing an existing table, with potentially thousands of record, then I could see the benefit of keeping this feature on, not only will it take a long time to save the changes (because it will have to backup all the records, then reinsert them), but it protects you from accidentally corrupting your data, or making changes if you don&#8217;t know what you are doing.  However, if you are a developer, and you are building a new app, and need to tweak your DB design, then this can get annoying.</p>
<h3>So you want to turn it off?</h3>
<p>Tools -&gt; Options -&gt; &#8216;Designers&#8217; tab</p>
<p>-&gt; Uncheck &#8216; Prevent saving changes that require table re-creation&#8217;</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-690" alt="ssms-options" src="http://joshua.doodnauth.com/blog/wp-content/uploads/2013/01/ssms-options.jpg" width="530" height="308" /></p>
<p>Problem Fixed!</p>
<img src="http://feeds.feedburner.com/~r/jsdoodnauth/~4/UcJbFTef5ao" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://joshua.doodnauth.com/blog/2013/01/ssms-enable-saving-changes-which-require-table-recreatio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://joshua.doodnauth.com/blog/2013/01/ssms-enable-saving-changes-which-require-table-recreatio/</feedburner:origLink></item>
		<item>
		<title>Experiment: Javascript Connection Speed Test</title>
		<link>http://feedproxy.google.com/~r/jsdoodnauth/~3/apPw3GK663c/</link>
		<comments>http://joshua.doodnauth.com/blog/2013/01/experiment-javascript-connection-speed-test/#comments</comments>
		<pubDate>Thu, 03 Jan 2013 17:53:29 +0000</pubDate>
		<dc:creator>jsdoodnauth</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Bandwidth]]></category>
		<category><![CDATA[Connection Speed]]></category>
		<category><![CDATA[Detect]]></category>
		<category><![CDATA[Detect Connection]]></category>
		<category><![CDATA[Experiment]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Kbps]]></category>
		<category><![CDATA[Online]]></category>
		<category><![CDATA[Optimizing]]></category>
		<category><![CDATA[Speed]]></category>
		<category><![CDATA[Test]]></category>

		<guid isPermaLink="false">http://joshua.doodnauth.com/blog/?p=657</guid>
		<description><![CDATA[Page loading is an important metric to track for any web developer, having poor load times can decrease user experience, increase abandonment, and wreak havoc on SEO.  Responsive and mobile friendly websites offer a solution for delivering media which will fit to the dimensions of the screen, what if it was to actively gauge the [...]]]></description>
				<content:encoded><![CDATA[<p>Page loading is an important metric to track for any web developer, having poor load times can decrease user experience, increase abandonment, and wreak havoc on SEO.  Responsive and mobile friendly websites offer a solution for delivering media which will fit to the dimensions of the screen, what if it was to actively gauge the quality of the connection, and responsively deliver content and media to the client based on connection speed, this would not only reduce the abandonment rate, but can increase the user experience by getting the page loaded in a timely manner. With these thoughts, would it be feasible to add the extra overhead to gauge the speed of a user&#8217;s Internet connection prior to delivering the content, and can it be done with a lightweight, client-side solution such as Javascript?  Several thoughts come to mind, the first being to simply to have the client request an image, and time how long it takes to download.</p>
<h2>The Experiment</h2>
<p>The basis of this experiment comes from an article I ran into by <a title="Alex Le" href="http://alexle.net/" target="_blank">Alex Le</a>, where he created a wonderful piece of Javascript code to <a title="Detect connection speed with Javascript" href="http://alexle.net/archives/257" target="_blank">Detect the connection speed</a> of a client.  A little background on his code:</p>
<ul>
<li>It takes the image url, and the byte size of the image.</li>
<li>Gets the current time, queues up a new image object, and using the Image.onload() event to get the time after the image has completed loading.</li>
<li>Takes the difference of the start time and the end time.</li>
<li>Uses the byte size of the image divided by the difference in time to find the Kbps.</li>
</ul>
<p>Simple enough.  Time to set a benchmark. Desktop tests using <a title="Speakeasy Speed Test" href="http://speedtest.net" target="_blank">Speedtest.net</a> via Toronto to New York (Optimum Online):</p>
<table border="1">
<tbody>
<tr>
<td colspan="2"><strong>Benchmark &#8211; Desktop</strong></td>
</tr>
<tr>
<td>Test 1</td>
<td>15.92 Mbps</td>
</tr>
<tr>
<td>Test 2</td>
<td>15.45 Mbps</td>
</tr>
<tr>
<td>Test 3</td>
<td>15.82 Mbps</td>
</tr>
<tr>
<td>Test 4</td>
<td>15.74 Mbps</td>
</tr>
<tr>
<td>Test 5</td>
<td>15.45 Mbps</td>
</tr>
<tr>
<td><strong>Average</strong></td>
<td><strong>15.68 Mbps</strong></td>
</tr>
</tbody>
</table>
<p>Mobile speed tests using <a href="http://speedtest.net" target="_blank">Speedtest.net iOS app</a> over 3G via Toronto to New York (Optimum Online):</p>
<table border="1">
<tbody>
<tr>
<td colspan="2"><strong>Benchmark &#8211; Mobile</strong></td>
</tr>
<tr>
<td>Test 1</td>
<td>2.54 Mbps</td>
</tr>
<tr>
<td>Test 2</td>
<td>1.83 Mbps</td>
</tr>
<tr>
<td>Test 3</td>
<td>1.27 Mbps</td>
</tr>
<tr>
<td>Test 4</td>
<td>1.73 Mbps</td>
</tr>
<tr>
<td>Test 5</td>
<td>1.27 Mbps</td>
</tr>
<tr>
<td><strong>Average</strong></td>
<td><strong>1.72 Mbps</strong></td>
</tr>
</tbody>
</table>
<h2></h2>
<h2>Single File Test</h2>
<p>Using the Javascript code from Alex Le, I have made a demo page which will download a 712,817 byte image (800 x 600 resolution of random noise), and output the speed and time it took to download.</p>
<p><a style="text-align: center;" title="Bandwidth Test - Single File" href="http://joshua.doodnauth.com/demo/javascript-bandwidth-single-test.html" target="_blank"> <strong>Bandwidth Speed Test &#8211; Single File</strong></a></p>
<p>Here are my results:</p>
<table border="1">
<tbody>
<tr>
<td><strong> </strong></td>
<td><strong>Desktop</strong></td>
<td><strong>Mobile</strong></td>
</tr>
<tr>
<td>Test 1</td>
<td>2.34 Mbps</td>
<td>0.97 Mbps</td>
</tr>
<tr>
<td>Test 2</td>
<td>1.93 Mbps</td>
<td>1.45 Mbps</td>
</tr>
<tr>
<td>Test 3</td>
<td>3.02 Mbps</td>
<td>1.70 Mbps</td>
</tr>
<tr>
<td>Test 4</td>
<td>1.80 Mbps</td>
<td>0.69 Mbps</td>
</tr>
<tr>
<td>Test 5</td>
<td>2.01 Mbps</td>
<td>1.22 Mbps</td>
</tr>
<tr>
<td><strong>Average</strong></td>
<td><strong>2.22 Mbps</strong></td>
<td><strong>1.21 Mbps</strong></td>
</tr>
</tbody>
</table>
<p>Using the benchmark reference, it is clear that the numbers returned for the desktop tests are clearly below what was expected, mobile was closer but still under.  However, since we know the exact size of the file (712,817 bytes), and we can use either Chrome Developer Tools or Firefox&#8217;s Firebug to check the runtime (the time it took to download), with some math we can validate that the speed returned is accurate.</p>
<p>Why the difference in speed? Something Alex Le touches on, is that the file is simply not large enough to get an accurate measurement.  It has completed downloading the file before hitting peak bandwidth, we can clearly see this on the desktop, mobile tests look more accurate because it is a lower bandwidth device which can get closer to its peak.</p>
<h2>Multiple File size Test</h2>
<p>If file size is the issue, then lets see what reasonably file size will bring a better result.</p>
<p><a title="Bandwidth Test - Multiple File" href="http://joshua.doodnauth.com/demo/javascript-bandwidth-multi.html" target="_blank"><strong>Bandwidth Speed Test &#8211; Multiple File</strong></a></p>
<table border="1">
<tbody>
<tr>
<td></td>
<td><strong>Desktop</strong></td>
<td><strong>Mobile</strong></td>
</tr>
<tr>
<td>Test 1 &#8211; 34KB</td>
<td>0.453 Mbps @584ms</td>
<td>0.294 Mbps @900ms</td>
</tr>
<tr>
<td>Test 2 &#8211; 177KB</td>
<td>1.11 Mbps @1235ms</td>
<td>0.725 Mbps @1902ms</td>
</tr>
<tr>
<td>Test 3 &#8211; 697KB</td>
<td>2.02 Mbps @2684ms</td>
<td>1.49 Mbps @3646ms</td>
</tr>
<tr>
<td>Test 4 &#8211; 1,391KB</td>
<td>2.46 Mbps @4411ms</td>
<td>2.20 Mbps @4929ms</td>
</tr>
</tbody>
</table>
<p>While we hit the mark for the Mobile test, the Desktop speed is still far off, but an important number out of this test is the time for the largest file which is almost 5 seconds, this number is in the range where it can start to impact the user experience.</p>
<h2>So what can we use this for?</h2>
<p>When we look at the numbers we can get a good idea of how large the bandwidth pipe will get as the browser downloads the webpage.  Using the file size 712,817 bytes (the same as in the Single file test, and Test 3 from the Multiple File) as the relative size of many websites, we can average the bandwidth will get up to around 2MB on Desktop and take 2.6 seconds to download a webpage, and on mobile 1.5MB and 3.6 seconds to download.  Referencing the article &#8220;<a title="How Loading Time Affects Your Bottom Line" href="http://blog.kissmetrics.com/loading-time/" target="_blank">How Loading Time Affects Your Bottom Line</a>&#8220;, it is the time it takes a page to load which is the important factor when considering user experience, and from the Multiple File test, we can see the estimated load times for various sizes.  If we target a page load time to be under 2 seconds, that means that on the Desktop we need to target around 400KB of data to be transferred  and on around 177KB on Mobile.</p>
<p>By controlling what is being sent to the client, we can speed up the initial load time, here are a few thing to consider:</p>
<ul>
<li>Lazy loading images</li>
<li>Lower resolution images</li>
<li>Lazy load content</li>
<li>Prioritize media to be loaded (example: disable videos; turning off full screen backgrounds)</li>
</ul>
<h2>Finally&#8230;</h2>
<p>This was just a simple experiment to see if I could get the client bandwidth using Javascript, and I can see that there is a lot more work needed to get the accurate speed.  I think it makes more sense to go down the path of figuring out how to control what your website sends down the bandwidth the client is giving you, within a reasonable time.</p>
<p>I combined both tests: <a title="Connection Speed Test Demo" href="http://joshua.doodnauth.com/demo/javascript-bandwidth-test.html" target="_blank">Connection Speed Test Demo</a></p>
<h3>References:</h3>
<p><a href="http://alexle.net/archives/257" target="_blank">Connection Speed Detection with Javascript</a></p>
<p><a title="Detect connection speed with JavaScript" href="http://ditio.net/2008/08/06/detect-connection-speed-with-javascript/">Detect connection speed with JavaScript</a></p>
<img src="http://feeds.feedburner.com/~r/jsdoodnauth/~4/apPw3GK663c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://joshua.doodnauth.com/blog/2013/01/experiment-javascript-connection-speed-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://joshua.doodnauth.com/blog/2013/01/experiment-javascript-connection-speed-test/</feedburner:origLink></item>
		<item>
		<title>How to: Minimal jQuery Tabs</title>
		<link>http://feedproxy.google.com/~r/jsdoodnauth/~3/-QpBEQSD3Wk/</link>
		<comments>http://joshua.doodnauth.com/blog/2012/12/how-to-minimal-jquery-tabs/#comments</comments>
		<pubDate>Wed, 19 Dec 2012 17:49:15 +0000</pubDate>
		<dc:creator>jsdoodnauth</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Minimal]]></category>
		<category><![CDATA[Navigation]]></category>
		<category><![CDATA[Simple]]></category>
		<category><![CDATA[Tabs]]></category>

		<guid isPermaLink="false">http://joshua.doodnauth.com/blog/?p=652</guid>
		<description><![CDATA[Tabs are a great way to organize related information into a space on your webpage.  They offer a familiar user interface to the user, where they can quickly find the information they are seeking. There are many way to implement tabs on your site.  Here is my way: HTML The few key things to the HTML is [...]]]></description>
				<content:encoded><![CDATA[<p>Tabs are a great way to organize related information into a space on your webpage.  They offer a familiar user interface to the user, where they can quickly find the information they are seeking.</p>
<p>There are many way to implement tabs on your site.  Here is my way:</p>
<h2>HTML</h2>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;tab-wrapper&quot;&gt;
    &lt;ul class=&quot;tab-title&quot;&gt;
        &lt;li class=&quot;tab1 active&quot;&gt;&lt;span&gt;Features&lt;/span&gt;&lt;/li&gt;
        &lt;li class=&quot;tab2&quot;&gt;&lt;span&gt;Specifications&lt;/span&gt;&lt;/li&gt;
        &lt;li class=&quot;tab3&quot;&gt;&lt;span&gt;Related&lt;/span&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;div class=&quot;tab-container&quot;&gt;
        &lt;div class=&quot;tab1 active&quot;&gt;Feature Content&lt;/div&gt;
        &lt;div class=&quot;tab2&quot;&gt;Specification Content&lt;/div&gt;
        &lt;div class=&quot;tab3&quot;&gt;Releated Content&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;</pre>
<p>The few key things to the HTML is to keep your tabs (the actual tabs) grouped in their own <em>div</em>, and keep the content grouped in a separate <em>div</em>. As you can see, the class name for each tab name(in &lt;li&gt;) corresponds to the class name of the div which has the content. So you can name the classes whatever you like, but it needs have both an li (for the tab/title) and a div (for the content), and can only have that class name in it and/or &#8216;<em>active</em>&#8216; which you will find out in the jQuery. I keep everything housed in the &#8216;tab-wrapper&#8217; for some isolation. Also make the first tab active, so that something is selected on page load.</p>
<h2>CSS</h2>
<pre class="brush: css; title: ; notranslate">&lt;style&gt;
.tab-wrapper { display:block; position: relative;}
    .tab-wrapper ul.tab-title { clear:both; width: 100%; }
    .tab-wrapper ul.tab-title li { float:left; display: block; text-align: center; cursor: pointer; background: #333; color:#CCC; }
    .tab-wrapper ul.tab-title li.active { background: #CCC; color:#333; }
    .tab-wrapper ul.tab-title li:hover { background: #CCC; color:#333; }
        .tab-wrapper ul.tab-title li span { }
.tab-wrapper .tab-container { clear:both; float:left; width: 100%;  }
    .tab-wrapper .tab-container &gt; div { display:none; border: 1px solid #111; }
    .tab-wrapper .tab-container &gt; div.active { display:block; }
&lt;/style&gt;</pre>
<p>These are all the styles you should be worried about, style as you please, the most important is to make sure &#8216;<em>.tab-container &gt; div</em>&#8216; is &#8216;<em>display:none</em>&#8216;, which will hide all the child divs in the container, and that &#8216;<em>.tab-container &gt; div.active</em>&#8216; is &#8216;<em>display:block</em>&#8216; so it will display the active tab.</p>
<h2>Javascript</h2>
<pre class="brush: jscript; title: ; notranslate">&lt;script&gt;
$(document).ready(function(){
	$('.tab-wrapper ul li').click( function() {
		$('.tab-wrapper ul li').removeClass('active');
		$('.tab-wrapper .tab-container div').removeClass('active');
		var className = $(this).attr('class');
		$(this).addClass('active');
		$('.tab-wrapper .tab-container').find('div.'+className).addClass('active');
	});
});
&lt;/script&gt;</pre>
<p>So what we are doing is managing the class &#8216;<em>.active</em>&#8216;, which determines what is being displayed. We do this on the &#8216;<em>click</em>&#8216; event for the tab titles. The first step is to remove the &#8216;<em>active</em>&#8216; class from the tab titles and the tab content containers, this is so we can isolate the class name, which matches the content. Store the class name of the &#8216;<em>&lt;li&gt;</em>&#8216; that was clicked, and use it to find and add the &#8216;<em>active</em>&#8216; class to the content container.</p>
<h3 style="text-align: center;"><a title="Tab Demo" href="http://joshua.doodnauth.com/demo/tabs_demo.html" target="_blank">Tab Demo</a></h3>
<h3 style="text-align: center;">Feel free to use, modify, and share!</h3>
<img src="http://feeds.feedburner.com/~r/jsdoodnauth/~4/-QpBEQSD3Wk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://joshua.doodnauth.com/blog/2012/12/how-to-minimal-jquery-tabs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://joshua.doodnauth.com/blog/2012/12/how-to-minimal-jquery-tabs/</feedburner:origLink></item>
		<item>
		<title>Tool selection bug with Adobe Fireworks CS3</title>
		<link>http://feedproxy.google.com/~r/jsdoodnauth/~3/W-txq_TCntk/</link>
		<comments>http://joshua.doodnauth.com/blog/2012/12/tool-selection-bug-with-adobe-fireworks-cs3/#comments</comments>
		<pubDate>Mon, 17 Dec 2012 16:24:05 +0000</pubDate>
		<dc:creator>jsdoodnauth</dc:creator>
				<category><![CDATA[Adobe Fireworks CS3]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Adobe Fireworks]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[CS3]]></category>

		<guid isPermaLink="false">http://joshua.doodnauth.com/blog/?p=646</guid>
		<description><![CDATA[I had a really annoying issue today with Adobe Fireworks CS3, I had to modify an image, but I couldn&#8217;t use any of my tools except for the select tool.  It&#8217;s a really weird bug when you first encounter it, basically you can&#8217;t select anything in the left toolbar, but the right side works, and [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://joshua.doodnauth.com/blog/2012/12/tool-selection-bug-with-adobe-fireworks-cs3/adobe_fireworks_cs3/" rel="attachment wp-att-647"><img class="alignleft size-full wp-image-647" alt="Adobe Fireworks CS3" src="http://joshua.doodnauth.com/blog/wp-content/uploads/2012/12/Adobe_Fireworks_CS3.png" width="256" height="256" /></a>I had a really annoying issue today with Adobe Fireworks CS3, I had to modify an image, but I couldn&#8217;t use any of my tools except for the select tool.  It&#8217;s a really weird bug when you first encounter it, basically you can&#8217;t select anything in the left toolbar, but the right side works, and the top menu.</p>
<h2>Background</h2>
<p>Well, after some searching around it seems to be a known bug with Fireworks.  Let me explain, I have a simple two monitor setup running on Windows 7, monitor 1 has a resolution of 1920&#215;1200, monitor 2 has a resolution of 1920&#215;1080.  The last time I used Fireworks, I used it on my second monitor, did some stuff, and exited on that second monitor.  Today, I opened it, moved the Fireworks window to my main monitor, opened the image to modify, and found out the tools didn&#8217;t work.</p>
<h2>Bug</h2>
<p>The bug is that Fireworks and Windows 7 seem to have an issue with communicating the mouse coordinates with the screen resolution settings.  When you first start Fireworks, it will receive the correct dimensions and coordinates of the window from Windows, however once you start moving, resizing or maximizing, all is lost, and Fireworks doesn&#8217;t know where your mouse pointer is.</p>
<h2>Solution</h2>
<p>Put Fireworks where you want it.  Exit the program.  Start it again. Do your thing, and don&#8217;t move the window.  I&#8217;ve noticed that it still doesn&#8217;t seem to work while maximized, so I just make it as large as possible.</p>
<p>&nbsp;</p>
<p>Reference: <a href="http://www.webmasterworld.com/website_technology/4250377.htm" target="_blank">http://www.webmasterworld.com/website_technology/4250377.htm</a></p>
<img src="http://feeds.feedburner.com/~r/jsdoodnauth/~4/W-txq_TCntk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://joshua.doodnauth.com/blog/2012/12/tool-selection-bug-with-adobe-fireworks-cs3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://joshua.doodnauth.com/blog/2012/12/tool-selection-bug-with-adobe-fireworks-cs3/</feedburner:origLink></item>
		<item>
		<title>Implementing @font-face and Issues</title>
		<link>http://feedproxy.google.com/~r/jsdoodnauth/~3/7ze7_PKvhm8/</link>
		<comments>http://joshua.doodnauth.com/blog/2012/12/implementing-font-face-and-issues/#comments</comments>
		<pubDate>Thu, 13 Dec 2012 22:16:48 +0000</pubDate>
		<dc:creator>jsdoodnauth</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[@font-face]]></category>
		<category><![CDATA[Custom Fonts]]></category>
		<category><![CDATA[Embed]]></category>
		<category><![CDATA[File Not Found]]></category>
		<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://joshua.doodnauth.com/blog/?p=641</guid>
		<description><![CDATA[Adding embedding custom fonts to your website has becoming quite an easy process.  Here are the steps: Find the font you want to use (.eot/.woff/.ttf/.svg), and upload it to your site. Open up your CSS file, and add the following: @font-face { font-family: 'MyWebFont'; src: url('webfont.eot'); /* IE9 Compat Modes */ src: url('webfont.eot?#iefix') format('embedded-opentype'), /* [...]]]></description>
				<content:encoded><![CDATA[<p>Adding embedding custom fonts to your website has becoming quite an easy process.  Here are the steps:</p>
<ol>
<li>Find the font you want to use (.eot/.woff/.ttf/.svg), and upload it to your site.</li>
<li>Open up your CSS file, and add the following:
<pre>@font-face {
	font-family: 'MyWebFont';
	src: url('webfont.eot'); /* IE9 Compat Modes */
	src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
	     url('webfont.woff') format('woff'), /* Modern Browsers */
	     url('webfont.ttf')  format('truetype'), /* Safari, Android, iOS */
	     url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
	}</pre>
<p>Replace &#8216;MyWebFont&#8217; with the name of the font you are using, and make sure the path to the font is correct.<br />
See <a href="http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax">The New Bulletproof @Font-Face Syntax</a> for a wonderful explaination.</li>
<li>Next, is simply add:
<pre>font-family: 'MyWebFont';</pre>
<p>where you like in your CSS to magically have your new font implemented.</li>
</ol>
<h2>The Issue</h2>
<p>404 File Not Found!</p>
<p>What?</p>
<p>Unfortunately IIS doesn&#8217;t may not be aware of the mime type for the font files (.eot/.woff/.ttf/.svg), so it refuses serve it to the client. This can resolved very easily by adding a few lines to your webconfig file, in :</p>
<pre>&lt;staticContent&gt;
    &lt;remove fileExtension=".eot" /&gt;
    &lt;mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" /&gt;
    &lt;mimeMap fileExtension=".otf" mimeType="font/otf" /&gt;
    &lt;mimeMap fileExtension=".woff" mimeType="font/x-woff" /&gt;
&lt;/staticContent&gt;</pre>
<p>Ref: <a href="http://www.localwisdom.com/blog/2011/10/iis-7-web-config-change-for-html5-and-css3-mime-types/">IIS 7 Web.config change for HTML5 and CSS3 mime types</a></p>
<p>PS: <a href="http://bancomicsans.com/">Ban Comic Sans</a></p>
<img src="http://feeds.feedburner.com/~r/jsdoodnauth/~4/7ze7_PKvhm8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://joshua.doodnauth.com/blog/2012/12/implementing-font-face-and-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://joshua.doodnauth.com/blog/2012/12/implementing-font-face-and-issues/</feedburner:origLink></item>
		<item>
		<title>TSQL: Stored Procedure not returning IDENTITY_SCOPE() value</title>
		<link>http://feedproxy.google.com/~r/jsdoodnauth/~3/EXITn34i8Ys/</link>
		<comments>http://joshua.doodnauth.com/blog/2011/11/tsql-stored-procedure-not-returning-identity_scope/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 15:10:23 +0000</pubDate>
		<dc:creator>jsdoodnauth</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[@@IDENTITY]]></category>
		<category><![CDATA[Help]]></category>
		<category><![CDATA[Primary Key]]></category>
		<category><![CDATA[return value]]></category>
		<category><![CDATA[SCOPE_IDENTITY()]]></category>
		<category><![CDATA[SET NOCOUNT]]></category>
		<category><![CDATA[Stored Procedure]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://joshua.doodnauth.com/blog/?p=625</guid>
		<description><![CDATA[Very simple problem, about an hour of my time wasted.  So I thought to save others. The problem: I have a stored procedure which inserts a new row into a table.  I need the primary key or @@IDENTITY/SCOPE_IDENTITY() returned.  It is not. Why?&#8230;This is what the code generally looked like: CREATE PROCEDURE dbo.table1 @firstname NVARCHAR(255), [...]]]></description>
				<content:encoded><![CDATA[<p>Very simple problem, about an hour of my time wasted.  So I thought to save others.</p>
<h2>The problem:</h2>
<p>I have a stored procedure which inserts a new row into a table.  I need the primary key or @@IDENTITY/SCOPE_IDENTITY() returned.  It is not. Why?&#8230;This is what the code generally looked like:</p>
<blockquote>
<div>CREATE PROCEDURE dbo.table1</div>
<div>@firstname NVARCHAR(255),</div>
<div>@lastname NVARCHAR(255)</div>
<div>AS</div>
<div>INSERT INTO table1 VALUES (@firstname, @lastname)</div>
<div>SELECT SCOPE_IDENTITY()</div>
</blockquote>
<p>Now, when I run the query in SQL Server, I get the output I want, which is a single row containing the primary key which was just inserted.  When the query is run in my app, the entry gets inserted, but no value is returned (side note, I am not using Visual Studio, or any other IDE with debugging tools, so all output is ending up on an rendered html page).</p>
<h2><strong>Solution:</strong></h2>
<p>In the stored procedure, (after my parameters but before the logic) put:</p>
<blockquote><p>SET NOCOUNT ON</p></blockquote>
<p>This will suppress the SQL Server message regarding the number of rows affected.</p>
<blockquote><p>SET NOCOUNT ON prevents the sending of DONE_IN_PROC messages to the client for each statement in a stored procedure<br />
From: <a href="http://msdn.microsoft.com/en-us/library/ms189837.aspx" target="_blank">MSDN</a></p></blockquote>
<p>It&#8217;s an annoying little quirk, which I am sure can be useful, but in the long run seems to send unnecessary data across the network, and if you look at the above MSDN article, Microsoft suggests that by turning it on, you can get a significant performance boost, especially when your stored procedure will affect many rows in your database.</p>
<p>Here is the final:</p>
<blockquote>
<div>CREATE PROCEDURE dbo.table1</div>
<div>@firstname NVARCHAR(255),</div>
<div>@lastname NVARCHAR(255)</div>
<div>AS</div>
<div>SET NOCOUNT ON</div>
<div>INSERT INTO table1 VALUES (@firstname, @lastname)</div>
<div>SELECT SCOPE_IDENTITY()</div>
</blockquote>
<p>Reference:</p>
<p><a title="@@IDENTITY crisis" href="http://www.kamath.com/tutorials/tut007_identity.asp" target="_blank">@@IDENTITY crisis</a></p>
<p><a title="SET NOCOUNT (Transact-SQL)" href="http://msdn.microsoft.com/en-us/library/ms189837.aspx" target="_blank">SET NOCOUNT (Transact-SQL)</a></p>
<img src="http://feeds.feedburner.com/~r/jsdoodnauth/~4/EXITn34i8Ys" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://joshua.doodnauth.com/blog/2011/11/tsql-stored-procedure-not-returning-identity_scope/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://joshua.doodnauth.com/blog/2011/11/tsql-stored-procedure-not-returning-identity_scope/</feedburner:origLink></item>
		<item>
		<title>Solution: Sub-process /usr/bin/dpkg returned an error code(1)</title>
		<link>http://feedproxy.google.com/~r/jsdoodnauth/~3/QHHyKCaQAgM/</link>
		<comments>http://joshua.doodnauth.com/blog/2011/09/solution-sub-process-usrbindpkg-returned-an-error-code1/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 04:18:52 +0000</pubDate>
		<dc:creator>jsdoodnauth</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Ubuntu 11.04]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[gnome 3]]></category>
		<category><![CDATA[gnome-icon-theme]]></category>
		<category><![CDATA[How-to]]></category>

		<guid isPermaLink="false">http://joshua.doodnauth.com/blog/?p=622</guid>
		<description><![CDATA[While messing around with Ubuntu 11.04, I decided to give Gnome 3 a try.  It failed, and a bunch of stuff stopped working.  So I uninstalled it.  After that mess I couldn&#8217;t install any new packages.  Why? Simply because the gnome-icon-theme pack was not installed correctly. Here&#8217;s a brief of the error message: Setting up [...]]]></description>
				<content:encoded><![CDATA[<p>While messing around with Ubuntu 11.04, I decided to give Gnome 3 a try.  It failed, and a bunch of stuff stopped working.  So I uninstalled it.  After that mess I couldn&#8217;t install any new packages.  Why? Simply because the gnome-icon-theme pack was not installed correctly.</p>
<p>Here&#8217;s a brief of the error message:</p>
<blockquote>
<div id="_mcePaste">Setting up libgtk2-ruby1.8 (0.19.3-2ubuntu1) &#8230;</div>
<div id="_mcePaste">Setting up libgtk2-ruby (0.19.3-2ubuntu1) &#8230;</div>
<div id="_mcePaste">Setting up rbbr (0.6.0-3ubuntu1) &#8230;</div>
<div id="_mcePaste">Errors were encountered while processing:</div>
<div id="_mcePaste">gnome-icon-theme</div>
<div id="_mcePaste">empathy</div>
<div id="_mcePaste">evince</div>
<div id="_mcePaste">evolution</div>
<div id="_mcePaste">evolution-exchange</div>
<div id="_mcePaste">gnome-control-center</div>
<div id="_mcePaste">Setting up gnome-icon-theme (2.31.0-0ubuntu2) &#8230;</div>
<div id="_mcePaste">update-alternatives: error: alternative path /usr/share/icons/gnome/scalable/places/ubuntu-logo.svg doesn&#8217;t exist.</div>
<div id="_mcePaste">dpkg: error processing gnome-icon-theme (&#8211;configure):</div>
</blockquote>
<p>Looks like some images were not reinstalled during the rollback.  Here&#8217;s a link to the resource:</p>
<blockquote><p><a href="http://www.parsix.org/browser/pkg/vinnie/main/gnome-icon-theme/trunk/debian?rev=6662">http://www.parsix.org/browser/pkg/vinnie/main/gnome-icon-theme/trunk/debian?rev=6662</a></p></blockquote>
<p>Copy the all the .svg files into the /usr/share/icons/gnome/scalable/places/ path, run:</p>
<blockquote><p>sudo apt-get clean all<br />
sudo apt-get update</p></blockquote>
<p>Then to verify everything is working correctly:</p>
<blockquote><p>sudo apt-get install -f</p></blockquote>
<p>Hope it helps!</p>
<img src="http://feeds.feedburner.com/~r/jsdoodnauth/~4/QHHyKCaQAgM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://joshua.doodnauth.com/blog/2011/09/solution-sub-process-usrbindpkg-returned-an-error-code1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://joshua.doodnauth.com/blog/2011/09/solution-sub-process-usrbindpkg-returned-an-error-code1/</feedburner:origLink></item>
		<item>
		<title>Moving Access to SQL Server – Pivots</title>
		<link>http://feedproxy.google.com/~r/jsdoodnauth/~3/9ku1GeGo5ew/</link>
		<comments>http://joshua.doodnauth.com/blog/2011/04/access-to-sql-server-pivots/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 16:38:13 +0000</pubDate>
		<dc:creator>jsdoodnauth</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[2005]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[Dynamic]]></category>
		<category><![CDATA[Pivot]]></category>
		<category><![CDATA[Pivots]]></category>
		<category><![CDATA[Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[View]]></category>

		<guid isPermaLink="false">http://joshua.doodnauth.com/blog/?p=612</guid>
		<description><![CDATA[While moving some MS Access Queries to a SQL Server View, I realized that SQL Server handles pivots quite differently than Access.  Unfortunately in SQL Server they aren&#8217;t so dynamic as in Access. Pivot in Access Quick example of Access: TRANSFORM SUM(T1.Amount) AS SumOfAmount SELECT T1.ID, T1.Name, T1.Date FROM T1 GROUP BY T1.ID, T1.Name, T1.Date [...]]]></description>
				<content:encoded><![CDATA[<p>While moving some MS Access Queries to a SQL Server View, I realized that SQL Server handles pivots quite differently than Access.  Unfortunately in SQL Server they aren&#8217;t so dynamic as in Access.</p>
<h2>Pivot in Access</h2>
<p>Quick example of Access:</p>
<p><code>TRANSFORM SUM(T1.Amount) AS SumOfAmount<br />
SELECT T1.ID, T1.Name, T1.Date<br />
FROM T1<br />
GROUP BY T1.ID, T1.Name, T1.Date<br />
PIVOT T1.AmountType</code></p>
<table>
<tbody>
<tr>
<th>ID</th>
<th>Name</th>
<th>Date</th>
<th>Cost</th>
<th>GST</th>
</tr>
<tr>
<td>1</td>
<td>Gameboard</td>
<td>2010-01-01</td>
<td>10.00</td>
<td>1.50</td>
</tr>
</tbody>
</table>
<p>So as you can see, in Access you can basically define anything as an AmountType (in this context you would input this in T1 in the AmountType column), and it would display in your pivot table.  So in the future you could add a Discount type or another Tax type directly into the source table, and the Pivot table would recognize the change.</p>
<h2>Pivot in SQL Server</h2>
<p>In SQL Server, the columns must be defined in the Pivot query for it to work.  If you are using a View, there doesn&#8217;t seem to be a dynamic solution, if there is please let me know.  Here&#8217;s my View:</p>
<p><code>SELECT     *<br />
FROM         (<br />
SELECT     T1.ID, T1.Name, T1.Date, T1.AmountType, T1.Amount<br />
FROM          T1) AS S<br />
PIVOT (Sum(Amount)<br />
FOR AmountType<br />
IN ([Cost], [GST])) AS P</code></p>
<p>So, any additional Type you include in your source table must be included in your Pivot table.</p>
<h2>Dynamic Pivot in SQL Server</h2>
<p>A Dynamic Pivot table can be created, but you have to generate the SQL statement manually and execute it in a Stored Procedure:</p>
<p><code>DECLARE @SQL NVARCHAR(2000)<br />
DECLARE @QUERY NVARCHAR(4000)</code></p>
<p><code> </code></p>
<p><code>SELECT @SQL = STUFF((select distinct '],[' +AmountType from T1 FOR XML PATH('')), 1, 2, '') + ']'</code></p>
<p><code> </code></p>
<p><code>SET @QUERY = N'SELECT *<br />
FROM (SELECT T1.ID, T1.Name, T1.Date, T1.AmountType, T1.Amount<br />
FROM T1) AS S<br />
PIVOT(Sum(Amount)<br />
FOR AmountType<br />
IN (' + @SQL + ')<br />
) AS P'</code></p>
<p><code> </code></p>
<p><code>EXECUTE (@QUERY)</code></p>
<p>Here are my sources (many thanks):</p>
<h4><span style="font-weight: normal;"><a title="Pivots with Dynamic Columns in SQL Server 2005/2008" href="http://www.sqlprof.com/blogs/sqldev/archive/2008/04/12/pivots-with-dynamic-columns-in-sql-server-2005-2008.aspx" target="_blank">Pivots with Dynamic Columns in SQL Server 2005/2008</a></span></h4>
<h4><span style="font-weight: normal;"><a title="Pivots with Dynamic Columns in SQL Server 2005" href="http://www.simple-talk.com/community/blogs/andras/archive/2007/09/14/37265.aspx" target="_blank">Pivots with Dynamic Columns in SQL Server 2005</a></span></h4>
<h4><span style="font-weight: normal;"><a title="Dynamic Cross-Tabs/Pivot Tables" href="http://www.sqlteam.com/article/dynamic-cross-tabs-pivot-tables" target="_blank">Dynamic Cross-Tabs/Pivot Tables</a></span></h4>
<img src="http://feeds.feedburner.com/~r/jsdoodnauth/~4/9ku1GeGo5ew" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://joshua.doodnauth.com/blog/2011/04/access-to-sql-server-pivots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://joshua.doodnauth.com/blog/2011/04/access-to-sql-server-pivots/</feedburner:origLink></item>
		<item>
		<title>Incorrect Language Detected in MS Word 2007</title>
		<link>http://feedproxy.google.com/~r/jsdoodnauth/~3/BZuJwLnSpAs/</link>
		<comments>http://joshua.doodnauth.com/blog/2011/03/incorrect-language-detected-in-ms-word-2007/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 17:37:58 +0000</pubDate>
		<dc:creator>jsdoodnauth</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[MS Office]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[Language Detected]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MS Word]]></category>
		<category><![CDATA[Set Language]]></category>
		<category><![CDATA[Word 2007]]></category>

		<guid isPermaLink="false">http://joshua.doodnauth.com/blog/?p=603</guid>
		<description><![CDATA[I don&#8217;t know what happened, but for some reason MS Word 2007 switched the language and every other word I would type would have a red line under it.  But this was only occurring in a  certain section, not the whole document.  When I right click the word to get the suggestions, it would show English words, [...]]]></description>
				<content:encoded><![CDATA[<p>I don&#8217;t know what happened, but for some reason MS Word 2007 switched the language and every other word I would type would have a red line under it.  But this was only occurring in a  certain section, not the whole document.  When I right click the word to get the suggestions, it would show English words, but on the one it was supposed to be.  Annoying.</p>
<h2>Fix</h2>
<p>I accidentally solved this.  I just went select all (alt-a), under the &#8216;Review&#8217; tab, select &#8216;Set Language&#8217;, then whatever language you want to use.</p>
<p>No idea how the language changed, but here you go, hopefully it helps someone.</p>
<img src="http://feeds.feedburner.com/~r/jsdoodnauth/~4/BZuJwLnSpAs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://joshua.doodnauth.com/blog/2011/03/incorrect-language-detected-in-ms-word-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://joshua.doodnauth.com/blog/2011/03/incorrect-language-detected-in-ms-word-2007/</feedburner:origLink></item>
	</channel>
</rss>
