<?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>Blog of Jason Grimme - Programming and All Things Jason</title>
	<atom:link href="http://studioshorts.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://studioshorts.com/blog</link>
	<description>I have a computer data interchange format named after me!</description>
	<lastBuildDate>Mon, 19 Dec 2011 23:24:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Capturing Photo from a MediaCapture Camera Stream metro app / Windows 8</title>
		<link>http://studioshorts.com/blog/2011/12/capturing-photo-from-a-mediacapture-camera-stream-metro-app-windows-8/</link>
		<comments>http://studioshorts.com/blog/2011/12/capturing-photo-from-a-mediacapture-camera-stream-metro-app-windows-8/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 23:20:41 +0000</pubDate>
		<dc:creator>Jason Grimme</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Metro]]></category>
		<category><![CDATA[Windows 8]]></category>

		<guid isPermaLink="false">http://studioshorts.com/blog/?p=542</guid>
		<description><![CDATA[I was having some difficulty with saving an image from a MediaCapture webcam stream to the local system for a in a metro app. Below is what I came up with, I hope it helps. 12345678910111213141516171819202122232425262728/// &#60;summary&#62; /// Gets a picture from a MediaCapture object and saves it to a local file. &#160;Applies the image [...]]]></description>
			<content:encoded><![CDATA[<p>I was having some difficulty with saving an image from a MediaCapture webcam stream to the local system for a  in a metro app.</p>
<p>Below is what I came up with, I hope it helps.</p>
<div class="codecolorer-container csharp blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br /></div></td><td><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span><br />
<span style="color: #008080; font-style: italic;">/// Gets a picture from a MediaCapture object and saves it to a local file. &nbsp;Applies the image to a local Image element.</span><br />
<span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span><br />
async <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> GetPictureFromPreview<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><br />
<span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">try</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">null</span> <span style="color: #008000;">!=</span> _mediaCaptureManager<span style="color: #008000;">&#41;</span><span style="color: #008080; font-style: italic;">// The MediaCapture object</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; var captureSettings <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> ImageEncodingProperties<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; Height <span style="color: #008000;">=</span> <span style="color: #FF0000;">240</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; Width <span style="color: #008000;">=</span> <span style="color: #FF0000;">320</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; Subtype <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;JPEG&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Requires documentsLibrary capability</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; var folder <span style="color: #008000;">=</span> ApplicationData<span style="color: #008000;">.</span><span style="color: #0000FF;">Current</span><span style="color: #008000;">.</span><span style="color: #0000FF;">RoamingFolder</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; var file <span style="color: #008000;">=</span> await &nbsp;folder<span style="color: #008000;">.</span><span style="color: #0000FF;">CreateFileAsync</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">@&quot;CapturedPhoto.jpg&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; await _mediaCaptureManager<span style="color: #008000;">.</span><span style="color: #0000FF;">CapturePhotoToStorageFileAsync</span><span style="color: #008000;">&#40;</span>captureSettings, file<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; MyImageElement<span style="color: #008000;">.</span><span style="color: #0000FF;">Source</span> <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> BitmapImage<span style="color: #008000;">&#40;</span><a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> Uri<span style="color: #008000;">&#40;</span>file<span style="color: #008000;">.</span><span style="color: #0000FF;">Path</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#40;</span>Exception ex<span style="color: #008000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; Messagebox<span style="color: #008000;">.</span><span style="color: #0000FF;">Text</span> <span style="color: #008000;">=</span> ex<span style="color: #008000;">.</span><span style="color: #0000FF;">Message</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
<span style="color: #008000;">&#125;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://studioshorts.com/blog/2011/12/capturing-photo-from-a-mediacapture-camera-stream-metro-app-windows-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Build, Sign, and Deploy a Windows 8 Metro App with Powershell</title>
		<link>http://studioshorts.com/blog/2011/12/build-sign-and-deploy-a-windows-8-metro-app-with-powershell/</link>
		<comments>http://studioshorts.com/blog/2011/12/build-sign-and-deploy-a-windows-8-metro-app-with-powershell/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 00:39:47 +0000</pubDate>
		<dc:creator>Jason Grimme</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Metro]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows 8]]></category>

		<guid isPermaLink="false">http://studioshorts.com/blog/?p=538</guid>
		<description><![CDATA[Very seldom do I run into a problem and feel like I am the first to encounter it, especially with programming. When developing for Windows 8 I feel that way quite a lot. I have been working on a small script to build, sign, and deploy a metro app into the Metro UI environment.  Below [...]]]></description>
			<content:encoded><![CDATA[<p>Very seldom do I run into a problem and feel like I am the first to encounter it, especially with programming.  When developing for <strong>Windows 8</strong> I feel that way quite a lot.</p>
<p>I have been working on a small script to build, sign, and deploy a metro app into the Metro UI environment.  Below is what I have come up with so far. (<strong>Powershell 3.0</strong>).</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">function Get-Batchfile ($file) {<br />
&nbsp; &nbsp; $cmd = &quot;`&quot;$file`&quot; &amp; set&quot;<br />
&nbsp; &nbsp; cmd /c $cmd | Foreach-Object {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $p, $v = $_.split('=')<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set-Item -path env:$p -value $v<br />
&nbsp; &nbsp; }<br />
}<br />
<br />
function Set-VsVars32($version = &quot;11.0&quot;)<br />
{<br />
&nbsp; &nbsp; #$key = &quot;HKLM:SOFTWARE\Microsoft\VisualStudio\&quot; + $version<br />
&nbsp; &nbsp; #$VsKey = Get-ItemProperty -Path $VsKey<br />
<br />
&nbsp; &nbsp; #$VsInstallPath = [System.IO.Path]::GetDirectoryName($VsKey.InstallDir)<br />
&nbsp; &nbsp; #$VsToolsDir = [System.IO.Path]::GetDirectoryName($VsInstallPath)<br />
&nbsp; &nbsp; #$VsToolsDir = [System.IO.Path]::Combine($VsToolsDir, &quot;Tools&quot;)<br />
&nbsp; &nbsp; #$BatchFile = [System.IO.Path]::Combine($VsToolsDir, &quot;vsvars32.bat&quot;)<br />
&nbsp; &nbsp; # I didn't take the time to get the above to work in Windows 8/PS3. &nbsp;Shortcut below.<br />
&nbsp; &nbsp; $BatchFile = 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat'<br />
&nbsp; &nbsp; Get-Batchfile $BatchFile<br />
&nbsp; &nbsp; [System.Console]::Title = &quot;Visual Studio &quot; + $version + &quot; Windows Powershell&quot;<br />
}<br />
<br />
<br />
function Build-Sln($Path, $Config=&quot;Release&quot;)<br />
{<br />
&nbsp; &nbsp; $configParam = &quot;/p:Configuration=&quot; +$Config<br />
&nbsp; &nbsp; msbuild.exe $path $configParam<br />
}<br />
<br />
function Get-AppxPackageByName($Name)<br />
{<br />
&nbsp; &nbsp; $package = Get-AppxPackage | Where {$_.Name -eq $Name}<br />
&nbsp; &nbsp; if($package.Name -ne $Name) { Write-Error &quot;Unable to find package: $Name&quot; }<br />
&nbsp; &nbsp; return $package<br />
}<br />
<br />
# Include the Visual Studio exes in our path<br />
Set-VsVars32<br />
<br />
# Change location to our working project dir<br />
Set-Location 'C:\Users\username\Documents\Visual Studio 11\Projects\discovery\Base\Base\'<br />
<br />
# Call Visual Studio to build your solution<br />
Build-Sln -Path '..\Base.sln' -Config &quot;Release&quot;<br />
<br />
# Remove our Appx file if it already exists<br />
if(Test-Path .\bin\Base.appx) { Remove-Item .\bin\Base.appx }<br />
<br />
# Pack the output into Base.Appx<br />
MakeAppx.exe pack /d .\bin\Release\ /p .\bin\Base.appx<br />
<br />
# Sign &nbsp;the Appx so that it can be deployed. &nbsp;Uses a PFX key (that you already have)<br />
signtool.exe sign /fd sha256 /f .\Base_TemporaryKey.pfx .\Bin\Base.appx<br />
<br />
# Insert the certificate into the root of your cert store. This allows the Appx to be executed.<br />
certutil.exe -addstore root .\Base_Certificate.cer<br />
<br />
#To add an Appx package<br />
Add-AppxPackage -Path .\bin\Base.appx -Verbose <br />
# To remove an Appx package<br />
#Remove-AppxPackage(Get-AppxPackageByName(&quot;9f229500-7554-28302834-a28b-abb26743654a&quot;)) -Verbose</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://studioshorts.com/blog/2011/12/build-sign-and-deploy-a-windows-8-metro-app-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio &#8211; Test List Not Updating</title>
		<link>http://studioshorts.com/blog/2011/09/visual-studio-test-list-not-updating/</link>
		<comments>http://studioshorts.com/blog/2011/09/visual-studio-test-list-not-updating/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 16:45:36 +0000</pubDate>
		<dc:creator>Jason Grimme</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://studioshorts.com/blog/?p=530</guid>
		<description><![CDATA[I have been frustrated at the fact that I must rebuild my sollution every time I want a new test method to appear in my test list. Refreshing did not work. I discovered that there is an option which disables the discovery of new test methods, and that in Visual Studio 2010 it is enabled [...]]]></description>
			<content:encoded><![CDATA[<p>I have been frustrated at the fact that I must <strong>rebuild my sollution</strong> every time I want a new test method to appear in my test list.  <strong>Refreshing</strong> did not work.</p>
<p>I discovered that there is an option which disables the discovery of new test methods, and that in <strong>Visual Studio 2010</strong> it is enabled by default. To disable it:</p>
<ol>
<li>Tools</li>
<li>Options</li>
<li>Test Tools</li>
<li>Test Project</li>
<li>Disable background discovery of test methods</li>
</ol>
<div id="attachment_531" class="wp-caption aligncenter" style="width: 664px"><a href="http://studioshorts.com/blog/wp-content/uploads/2011/09/DisableDiscoveryOfTestMethods.png"><img src="http://studioshorts.com/blog/wp-content/uploads/2011/09/DisableDiscoveryOfTestMethods.png" alt="Disable Discovery Of Test Methods" title="Disable Discovery Of Test Methods" width="654" height="388" class="size-full wp-image-531" /></a><p class="wp-caption-text">Visual Studio: Disable Discovery Of Test Methods</p></div>
]]></content:encoded>
			<wfw:commentRss>http://studioshorts.com/blog/2011/09/visual-studio-test-list-not-updating/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 &#8211; Cannot Start Test Project</title>
		<link>http://studioshorts.com/blog/2011/09/visual-studio-2010-cannot-start-test-project/</link>
		<comments>http://studioshorts.com/blog/2011/09/visual-studio-2010-cannot-start-test-project/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 15:29:34 +0000</pubDate>
		<dc:creator>Jason Grimme</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://studioshorts.com/blog/?p=527</guid>
		<description><![CDATA[I created a test project in Visual Studio with some unit tests in it, but was unable to run any of the tests. The test list was empty, and when I attempted to run it I got the following error: Cannot start test project so-and-so because the project does not contains any tests. Uggh I [...]]]></description>
			<content:encoded><![CDATA[<p>I created a test project in Visual Studio with some unit tests in it, but was unable to run any of the tests.  The test list was empty, and when I attempted to run it I got the following error:<br />
<strong>Cannot start test project so-and-so because the project does not contains any tests.</strong><br />
Uggh I was so frustrated! It took me about an hour to figure out my silly mistake.  I have a custom build configuration for the solution, and it was not set to build my test project.  After enabling the build, everything worked (except for my test cases, which all failed (Red, Green, Refactor!).</p>
]]></content:encoded>
			<wfw:commentRss>http://studioshorts.com/blog/2011/09/visual-studio-2010-cannot-start-test-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Lenovo Mini Cooper / &#8220;The Do Car&#8221;</title>
		<link>http://studioshorts.com/blog/2011/09/lenovos-mini-cooper/</link>
		<comments>http://studioshorts.com/blog/2011/09/lenovos-mini-cooper/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 14:23:04 +0000</pubDate>
		<dc:creator>Jason Grimme</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://studioshorts.com/blog/?p=499</guid>
		<description><![CDATA[Starting in September, one Lenovo randomly selected one person to drive a Lenovo Mini Cooper (The Do Car)for a week. Driving this car was amazingly fun. So much so that I drove over one thousand miles in less than a week! I also got to hand out Lenovo t-shirts and other nifty doo-dads. The interior [...]]]></description>
			<content:encoded><![CDATA[<p>Starting in September, one Lenovo randomly selected one person to drive a Lenovo Mini Cooper (<strong>The Do Car</strong>)for a week.  Driving this car was amazingly fun.  So much so that I drove over one thousand miles in less than a week! I also got to hand out Lenovo t-shirts and other nifty doo-dads. The interior is a tad bit goofy, especially with the speedometer being placed in the middle of the dash.   Prior to driving the Mini I had no desire for a car other than my Honda Accord.  Now I feel the urge for a smaller, lighter car that accelerates quickly and handles well.  One of the best things about the Mini is that it easily got over 40 miles per gallon.</p>
<p>If you would be interested in <strong>winning a computer</strong>, check out the <a href="http://www.lenovodocar.com/">The Lenovo Do Car</a> website!</p>
<p>I’d like to share some photos that I took while I was driving around.  <em>Taking pictures of the car was not a requirement of Lenovo&#8217;s, I did it on my own free will as a fun, <strong>mini</strong> project. </em></p>
<p><strong>If you have seen the Do Car</strong>, I&#8217;d be interested in hearing where you saw it!  </p>
<div id="attachment_510" class="wp-caption aligncenter" style="width: 492px"><a href="http://studioshorts.com/blog/wp-content/uploads/2011/09/9_296020_937505699198_29716661_42780197_1142636470_n.jpg"><img class="size-full wp-image-510" title="Parking deck – Downtown Raleigh, NC" src="http://studioshorts.com/blog/wp-content/uploads/2011/09/9_296020_937505699198_29716661_42780197_1142636470_n.jpg" alt="" width="482" height="720" /></a><p class="wp-caption-text">Parking deck – Downtown Raleigh, NC</p></div>
<div id="attachment_511" class="wp-caption aligncenter" style="width: 492px"><a href="http://studioshorts.com/blog/wp-content/uploads/2011/09/91_318655_937650289438_29716661_42781923_2013846785_n.jpg"><img class="size-full wp-image-511" title="Parking deck – Downtown Raleigh, NC" src="http://studioshorts.com/blog/wp-content/uploads/2011/09/91_318655_937650289438_29716661_42781923_2013846785_n.jpg" alt="" width="482" height="720" /></a><p class="wp-caption-text">Parking deck – Downtown Raleigh, NC.  With some <strong>faux speed added</strong>.</p></div>
<div id="attachment_509" class="wp-caption aligncenter" style="width: 610px"><a href="http://studioshorts.com/blog/wp-content/uploads/2011/09/8_307954_937505644308_29716661_42780195_1565406970_n.jpg"><img src="http://studioshorts.com/blog/wp-content/uploads/2011/09/8_307954_937505644308_29716661_42780195_1565406970_n.jpg" alt="" title="Parking deck – Downtown Raleigh, NC" width="600" height="288" class="size-full wp-image-509" /></a><p class="wp-caption-text">Parking deck – Downtown Raleigh, NC</p></div>
<div id="attachment_507" class="wp-caption aligncenter" style="width: 492px"><a href="http://studioshorts.com/blog/wp-content/uploads/2011/09/6_309146_937505459678_29716661_42780190_1220056475_n.jpg"><img src="http://studioshorts.com/blog/wp-content/uploads/2011/09/6_309146_937505459678_29716661_42780190_1220056475_n.jpg" alt="" title="Fayetteville Street – Downtown Raleigh, NC" width="482" height="720" class="size-full wp-image-507" /></a><p class="wp-caption-text">Fayetteville Street – Downtown Raleigh, NC</p></div>
<p><div id="attachment_506" class="wp-caption aligncenter" style="width: 492px"><a href="http://studioshorts.com/blog/wp-content/uploads/2011/09/5_303985_937505205188_29716661_42780187_575365603_n.jpg"><img src="http://studioshorts.com/blog/wp-content/uploads/2011/09/5_303985_937505205188_29716661_42780187_575365603_n.jpg" alt="" title="North Carolina Museum of Art" width="482" height="720" class="size-full wp-image-506" /></a><p class="wp-caption-text">North Carolina Museum of Art</p></div><br />
<div id="attachment_505" class="wp-caption aligncenter" style="width: 492px"><a href="http://studioshorts.com/blog/wp-content/uploads/2011/09/4_294664_937504990618_29716661_42780181_1455299696_n.jpg"><img src="http://studioshorts.com/blog/wp-content/uploads/2011/09/4_294664_937504990618_29716661_42780181_1455299696_n.jpg" alt="" title="Carter–Finley Stadium" width="482" height="720" class="size-full wp-image-505" /></a><p class="wp-caption-text">Carter–Finley Stadium</p></div><br />
<div id="attachment_504" class="wp-caption aligncenter" style="width: 610px"><a href="http://studioshorts.com/blog/wp-content/uploads/2011/09/3_293543_937505110378_29716661_42780184_1650844852_n.jpg"><img src="http://studioshorts.com/blog/wp-content/uploads/2011/09/3_293543_937505110378_29716661_42780184_1650844852_n.jpg" alt="" title="Carter–Finley Stadium" width="600" height="401" class="size-full wp-image-504" /></a><p class="wp-caption-text">Carter–Finley Stadium</p></div><br />
<div id="attachment_503" class="wp-caption aligncenter" style="width: 560px"><a href="http://studioshorts.com/blog/wp-content/uploads/2011/09/1_299248_937504925748_29716661_42780178_2110955698_n.jpg"><img src="http://studioshorts.com/blog/wp-content/uploads/2011/09/1_299248_937504925748_29716661_42780178_2110955698_n.jpg" alt="" title="Carter–Finley Stadium" width="550" height="720" class="size-full wp-image-503" /></a><p class="wp-caption-text">Carter–Finley Stadium</p></div></p>
<div id="attachment_502" class="wp-caption aligncenter" style="width: 492px"><a href="http://studioshorts.com/blog/wp-content/uploads/2011/09/0_311976_937504776048_29716661_42780175_571029129_n.jpg"><img src="http://studioshorts.com/blog/wp-content/uploads/2011/09/0_311976_937504776048_29716661_42780175_571029129_n.jpg" alt="" title="RBC Center" width="482" height="720" class="size-full wp-image-502" /></a><p class="wp-caption-text">RBC Center</p></div>
<div id="attachment_523" class="wp-caption aligncenter" style="width: 610px"><a href="http://studioshorts.com/blog/wp-content/uploads/2011/09/92_320160_937521352828_29716661_42780445_900419214_n.jpg"><img src="http://studioshorts.com/blog/wp-content/uploads/2011/09/92_320160_937521352828_29716661_42780445_900419214_n.jpg" alt="" title="Boylan Bridge, Downtown Raleigh, North Carolina" width="600" height="401" class="size-full wp-image-523" /></a><p class="wp-caption-text">Boylan Bridge, Downtown Raleigh, North Carolina</p></div>
]]></content:encoded>
			<wfw:commentRss>http://studioshorts.com/blog/2011/09/lenovos-mini-cooper/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Load All Comments on Reddit</title>
		<link>http://studioshorts.com/blog/2011/08/load-all-comments-on-reddit/</link>
		<comments>http://studioshorts.com/blog/2011/08/load-all-comments-on-reddit/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 04:48:19 +0000</pubDate>
		<dc:creator>Jason Grimme</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://studioshorts.com/blog/?p=492</guid>
		<description><![CDATA[I recently wanted to perform a search through all the comments for a Reddit story. Rather than clicking on all the &#8220;Load more comments&#8221; links, I figured I would let JavaScript do it for me. If you try to click them all at once, Reddit tends to freeze. This method allows a one second pause [...]]]></description>
			<content:encoded><![CDATA[<p>I recently wanted to perform a search through all the comments for a Reddit story.<br />
Rather than clicking on all the &#8220;Load more comments&#8221; links, I figured I would let JavaScript do it for me.</p>
<p>If you try to click them all at once, Reddit tends to freeze.  This method allows a one second pause between each additional load.</p>
<p>Paste the following in your address bar while on the page, and watch them load:</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">javascript<span style="color: #339933;">:</span><br />
<span style="color: #003366; font-weight: bold;">function</span> loadMore<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> id <span style="color: #339933;">=</span> &nbsp;<span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.button&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">id</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#'</span><span style="color: #339933;">+</span> id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'loading...'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#'</span><span style="color: #339933;">+</span> id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'button'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#'</span><span style="color: #339933;">+</span> id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; next<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #003366; font-weight: bold;">function</span> next<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; window.<span style="color: #660066;">setTimeout</span><span style="color: #009900;">&#40;</span>loadMore<span style="color: #339933;">,</span> <span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
loadMore<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>And, if it is of any use, here is the compressed version:</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">javascript<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span> b<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>window.<span style="color: #660066;">setTimeout</span><span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span>1e3<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #003366; font-weight: bold;">function</span> a<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> a<span style="color: #339933;">=</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.button&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">id</span><span style="color: #339933;">;</span><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#&quot;</span><span style="color: #339933;">+</span>a<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #3366CC;">&quot;loading...&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#&quot;</span><span style="color: #339933;">+</span>a<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;button&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#&quot;</span><span style="color: #339933;">+</span>a<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>a<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>b<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span>a<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://studioshorts.com/blog/2011/08/load-all-comments-on-reddit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reading Google Chrome bookmarks with C# &amp; .net</title>
		<link>http://studioshorts.com/blog/2011/06/reading-google-chrome-bookmarks-with-c-net/</link>
		<comments>http://studioshorts.com/blog/2011/06/reading-google-chrome-bookmarks-with-c-net/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 21:14:40 +0000</pubDate>
		<dc:creator>Jason Grimme</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://studioshorts.com/blog/?p=484</guid>
		<description><![CDATA[Google Chome stores bookmarks for a given user in JSON format. With Windows, this file (Called Bookmarks) can typically be found located inside C:\Users\[user]\AppData\Local\Google\Chrome\User Data\Default . The bookmarks system contains two roots, the &#8216;Bookmarks bar&#8217; and &#8216;Other bookmarks&#8217;. Within these roots there can exist a (seemingly) infiniant amount of bookmarks and folders containing bookmarks. The [...]]]></description>
			<content:encoded><![CDATA[<p>Google Chome stores bookmarks for a given user in JSON format.  With Windows, this file (Called Bookmarks) can typically be found located inside C:\Users\[user]\AppData\Local\Google\Chrome\User Data\Default .</p>
<p>The bookmarks system contains two roots, the &#8216;Bookmarks bar&#8217; and &#8216;Other bookmarks&#8217;.  Within these roots there can exist a (seemingly) infiniant amount of bookmarks and folders containing bookmarks.<br />
The easiest way to extract the bookmarks is to use a JSON library, but I wanted to avoid adding an extra assembly to my project.  The next option is to develop a series of classes which will be used to deserialize the JSON using the .net JavaScriptSerializer class.</p>
<p>A simple bookmark JSON file looks like this:</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #3366CC;">&quot;checksum&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;4136adb9cd06656cfcac7ed910d6c5d9&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #3366CC;">&quot;roots&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;bookmark_bar&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;children&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12951434934671257&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;3&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Woot One Day, One Deal&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;http://www.woot.com/&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;date_modified&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12951434946783257&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;1&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Bookmarks bar&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;folder&quot;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;other&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;children&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12951434946783257&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;4&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Welcome to Facebook - Log In, Sign Up or Learn More&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;http://www.facebook.com/&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;date_modified&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12951434950972257&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;2&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Other bookmarks&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;folder&quot;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #3366CC;">&quot;version&quot;</span><span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>A more complex bookmark structure looks more like this:</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #3366CC;">&quot;checksum&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;550dd4d89e2cd11eaf2b87d2aa05eaf6&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #3366CC;">&quot;roots&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;bookmark_bar&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;children&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12948923695706831&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;3&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Welcome to Facebook - Log In, Sign Up or Learn More&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;http://www.facebook.com/&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12948923744214264&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;7&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Jason Grimme - Web Developer in Raleigh, NC&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;http://www.studioshorts.com/&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12948923703380831&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;4&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Google&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;http://www.google.com/&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;children&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12948923708491831&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;5&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Woot<span style="color: #000099; font-weight: bold;">\u</span>00AE : One Day, One Deal<span style="color: #000099; font-weight: bold;">\u</span>2122&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;http://www.woot.com/&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12950310189344299&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;date_modified&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12951434337054697&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;10&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Sub Folder&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;folder&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;date_modified&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12951434418373129&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;1&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Bookmarks bar&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;folder&quot;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;other&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;children&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12950114893839849&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;8&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Yahoo!&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;http://www.yahoo.com/&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;children&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;children&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;children&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;children&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12951434418373129&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;18&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;xkcd&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;http://xkcd.com/&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12950313354025472&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;date_modified&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12951434422846129&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;15&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Sub-Sub-Sub Folder&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;folder&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12950314249325837&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;17&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Microsoft Corporations&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;http://www.microsoft.com/en-us/default.aspx&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12950313354025472&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;date_modified&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12950314249325837&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;14&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Sub-Sub folder&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;folder&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12950310189345299&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;date_modified&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12950310189345299&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;TestC&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;folder&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12950310189345299&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;date_modified&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12950313339333472&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;11&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Sub Folder&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;folder&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;date_added&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;date_modified&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;12950310144811299&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;2&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Other bookmarks&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;folder&quot;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #3366CC;">&quot;version&quot;</span><span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<h2>Deserializing Chrome Bookmarks</h2>
<p>I developed a few classes to deserialize the data into, and this is what I came up with.</p>
<div class="codecolorer-container csharp blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br /></div></td><td><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span><br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// Contains all information about bookmarks in Chrome</span><br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span><br />
&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> Bookmarks<br />
&nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">string</span> Checksum <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> Root Roots <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">int</span> Version <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span><br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// Contains 'folders' such as 'Bookmarks bar' and 'Other bookmarks'</span><br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span><br />
&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> Root<br />
&nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> RootItem Bookmark_bar <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> RootItem Other <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span><br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// A folder of bookmarks</span><br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span><br />
&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> RootItem<br />
&nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> List<span style="color: #008000;">&lt;</span>Child<span style="color: #008000;">&gt;</span> Children <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">string</span> Date_added <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">string</span> Date_modified <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">int</span> Id <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">String</span> Name <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">string</span> Type <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span><br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// Contains information about a specific bookmark</span><br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span><br />
&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> Child<br />
&nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> List<span style="color: #008000;">&lt;</span>Child<span style="color: #008000;">&gt;</span> Children <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">string</span> date_added <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">int</span> ID <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">string</span> Name <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">String</span> Type <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> Uri Url <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
<br />
<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp;<span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> Main<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> args<span style="color: #008000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">string</span> pathToDB <span style="color: #008000;">=</span> <span style="color: #666666;">@&quot;C:\Users\username\AppData\Local\Google\Chrome\User Data\Default\Bookmarks&quot;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">string</span> pathToCopiedDB <span style="color: #008000;">=</span> <span style="color: #000000;">System.<span style="color: #0000FF;">IO</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">Path</span><span style="color: #008000;">.</span><span style="color: #0000FF;">GetTempFileName</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">System.<span style="color: #0000FF;">IO</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">File</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Copy</span><span style="color: #008000;">&#40;</span>pathToDB, pathToCopiedDB, <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">string</span> jsonData <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Empty</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008000;">&#40;</span>StreamReader streamReader <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> StreamReader<span style="color: #008000;">&#40;</span>pathToCopiedDB<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jsonData <span style="color: #008000;">=</span> streamReader<span style="color: #008000;">.</span><span style="color: #0000FF;">ReadToEnd</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; streamReader<span style="color: #008000;">.</span><span style="color: #0000FF;">Close</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; JavaScriptSerializer serializer <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> JavaScriptSerializer<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; Bookmarks bookmarks <span style="color: #008000;">=</span> serializer<span style="color: #008000;">.</span><span style="color: #0000FF;">Deserialize</span><span style="color: #008000;">&lt;</span>Bookmarks<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span>jsonData<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></td></tr></tbody></table></div>
<p>You will now have a replica of your bookmarks in your project!  Have fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://studioshorts.com/blog/2011/06/reading-google-chrome-bookmarks-with-c-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visual Studio &amp; XAML &#8211; IntelliSense Not Working</title>
		<link>http://studioshorts.com/blog/2011/04/visual-studio-xaml-intellisense-not-working/</link>
		<comments>http://studioshorts.com/blog/2011/04/visual-studio-xaml-intellisense-not-working/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 19:16:18 +0000</pubDate>
		<dc:creator>Jason Grimme</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://studioshorts.com/blog/?p=479</guid>
		<description><![CDATA[I&#8217;ve been working with a lot of inherited XAML code lately with Visual Studio, and have noticed that IntelliSense was not working with many of the files. It worked for some, but not others. For the files that did not work, cleaning, rebuilding, and restarting did not fix the problem. In my particular case, somebody [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working with a lot of inherited XAML code lately with Visual Studio, and have noticed that IntelliSense was not working with many of the files.  It worked for some, but not others.  For the files that did not work, cleaning, rebuilding, and restarting did not fix the problem.<br />
In my particular case, somebody had improperly added additional namespaces to the XAML, and this was the cause.</p>
<h2>The Fix</h2>
<p>The fix is to add <strong>;assembly=</strong> onto the end of the custom CLR namespace.</p>
<div class="codecolorer-container xml blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">&lt;!-- Does not work --&gt;</span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Window</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; <span style="color: #000066;">xmlns:x</span>=<span style="color: #ff0000;">&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; <span style="color: #000066;">xmlns:foo</span>=<span style="color: #ff0000;">&quot;clr-namespace:Company.Product.Project.Something&quot;</span> </span><br />
<span style="color: #009900;">&nbsp; &nbsp; <span style="color: #000066;">x:Class</span>=<span style="color: #ff0000;">&quot;WpfApplication1.MainWindow&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; <span style="color: #000066;">x:Name</span>=<span style="color: #ff0000;">&quot;Window&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; <span style="color: #000066;">Title</span>=<span style="color: #ff0000;">&quot;This Will Not Work&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">&gt;</span></span></div></td></tr></tbody></table></div>
<div class="codecolorer-container xml blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">&lt;!-- Does work --&gt;</span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Window</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; <span style="color: #000066;">xmlns:x</span>=<span style="color: #ff0000;">&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; <span style="color: #000066;">xmlns:foo</span>=<span style="color: #ff0000;">&quot;clr-namespace:Company.Product.Project.Something;assembly=&quot;</span> </span><br />
<span style="color: #009900;">&nbsp; &nbsp; <span style="color: #000066;">x:Class</span>=<span style="color: #ff0000;">&quot;WpfApplication1.MainWindow&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; <span style="color: #000066;">x:Name</span>=<span style="color: #ff0000;">&quot;Window&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; <span style="color: #000066;">Title</span>=<span style="color: #ff0000;">&quot;This Will Work&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">&gt;</span></span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://studioshorts.com/blog/2011/04/visual-studio-xaml-intellisense-not-working/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Update SharePoint List Item(s) with Powershell</title>
		<link>http://studioshorts.com/blog/2011/01/update-sharepoint-list-items-with-powershell/</link>
		<comments>http://studioshorts.com/blog/2011/01/update-sharepoint-list-items-with-powershell/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 23:51:09 +0000</pubDate>
		<dc:creator>Jason Grimme</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://studioshorts.com/blog/?p=474</guid>
		<description><![CDATA[Today I was attempting to update every item in a SharePoint list with Powershell, which turned out to be quite the adventure. Looping through the list and grabbing the items was easy, but whenever I modified the item and called the Update() method, it either did absolutely nothing or gave me an error: &#8220;Object reference [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was attempting to update every item in a <strong>SharePoint </strong>list with <strong>Powershell</strong>, which turned out to be quite the adventure.  Looping through the list and grabbing the items was easy, but whenever I modified the item and called the <strong>Update()</strong> method, it either did absolutely nothing or gave me an error: &#8220;<em><strong>Object reference not set to an instance of an object</strong></em>&#8220;.  The frustrating thing was that other methods and properties did work on the object, and some things didn&#8217;t.<br />
I got past this once I forcibly cast the <strong>SPListItem </strong>with it&#8217;s full assembly name ([Microsoft.SharePoint.SPListItem]).  Below are two code examples.</p>
<h2>Updating a Single Item</h2>
<div class="codecolorer-container powershell blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="powershell codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #800080;">$spSite</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> Microsoft.SharePoint.SPSite<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;http://SPPortal/SiteCollection&quot;</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #800080;">$spWeb</span> <span style="color: pink;">=</span> <span style="color: #800080;">$spSite</span>.OpenWeb<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;StudioShorts&quot;</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #800080;">$spList</span> <span style="color: pink;">=</span> <span style="color: #800080;">$spWeb</span>.Lists<span style="color: #000000;">&#91;</span><span style="color: #800000;">&quot;Posts&quot;</span><span style="color: #000000;">&#93;</span><br />
<span style="color: #800080;">$spitems</span> <span style="color: pink;">=</span> <span style="color: #800080;">$splist</span>.items<br />
<span style="color: #000000;">&#91;</span>Microsoft.SharePoint.SPListItem<span style="color: #000000;">&#93;</span><span style="color: #800080;">$spListItem</span> <span style="color: pink;">=</span> <span style="color: #800080;">$spitems</span><span style="color: #000000;">&#91;</span><span style="color: #804000;">1</span><span style="color: #000000;">&#93;</span><br />
<span style="color: #800080;">$spListItem</span><span style="color: #000000;">&#91;</span><span style="color: #800000;">&quot;Title&quot;</span><span style="color: #000000;">&#93;</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;Updating A SharePoint List Item&quot;</span>;<br />
<span style="color: #800080;">$spListItem</span>.Update<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #000000;">&#125;</span></div></td></tr></tbody></table></div>
<p></p>
<h2>Updating All Items in Multiple Lists</h2>
<div class="codecolorer-container powershell blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br /></div></td><td><div class="powershell codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0000FF;">function</span> Update<span style="color: pink;">-</span>FieldForAllListItems<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0000FF;">param</span><span style="color: #000000;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800080;">$SPSite</span><span style="color: pink;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800080;">$WebName</span><span style="color: pink;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800080;">$ListName</span><span style="color: pink;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800080;">$FieldName</span><span style="color: pink;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800080;">$FieldValue</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #800080;">$spWeb</span> <span style="color: pink;">=</span> <span style="color: #800080;">$spSite</span>.OpenWeb<span style="color: #000000;">&#40;</span><span style="color: #800080;">$WebName</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #800080;">$spList</span> <span style="color: pink;">=</span> <span style="color: #800080;">$spWeb</span>.Lists<span style="color: #000000;">&#91;</span><span style="color: #800080;">$ListName</span><span style="color: #000000;">&#93;</span><br />
&nbsp; &nbsp; <span style="color: #800080;">$spitems</span> <span style="color: pink;">=</span> <span style="color: #800080;">$splist</span>.items<br />
&nbsp; &nbsp; <span style="color: #0000FF;">foreach</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$item</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$spitems</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;"># Casting avoids &quot;Object reference not set to an instance of an object.&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#91;</span>Microsoft.SharePoint.SPListItem<span style="color: #000000;">&#93;</span><span style="color: #800080;">$spListItem</span> <span style="color: pink;">=</span> <span style="color: #800080;">$item</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Updating<span style="color: #008080; font-weight: bold;">`t</span>&quot;</span> <span style="color: #800080;">$spListItem</span>.Name <span style="color: #800000;">&quot;<span style="color: #008080; font-weight: bold;">`t</span>$FieldName to $FieldValue&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800080;">$spListItem</span><span style="color: #000000;">&#91;</span><span style="color: #800080;">$FieldName</span><span style="color: #000000;">&#93;</span> <span style="color: pink;">=</span> <span style="color: #800080;">$FieldValue</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800080;">$spListItem</span>.Update<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span> &nbsp; &nbsp; &nbsp;<br />
<span style="color: #000000;">&#125;</span><br />
<br />
<span style="color: #000000;">&#91;</span>void<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #008080;">System.reflection.Assembly</span><span style="color: #000000;">&#93;</span>::<span style="color: #800000;">LoadWithPartialName</span><span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;Microsoft.SharePoint&quot;</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #800080;">$spSite</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">new-object</span> Microsoft.SharePoint.SPSite<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;http://SPPortal/SPSiteCollection&quot;</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #800080;">$webNames</span> <span style="color: pink;">=</span> <span style="color: pink;">@</span><span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;Uno&quot;</span><span style="color: pink;">,</span> <span style="color: #800000;">&quot;Dos&quot;</span><span style="color: pink;">,</span> <span style="color: #800000;">&quot;Tres&quot;</span><span style="color: #000000;">&#41;</span> &nbsp; <br />
<span style="color: #0000FF;">foreach</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$webName</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$webNames</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; Update<span style="color: pink;">-</span>FieldForAllListItems <span style="color: pink;">-</span>SPSite <span style="color: #800080;">$spSite</span> <span style="color: pink;">-</span>WebName <span style="color: #800080;">$webName</span> <span style="color: pink;">-</span>ListName MyList <span style="color: pink;">-</span>FieldName Visibility <span style="color: pink;">-</span>FieldValue Public<br />
<span style="color: #000000;">&#125;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://studioshorts.com/blog/2011/01/update-sharepoint-list-items-with-powershell/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Filter SharePoint List View With URL Parameters</title>
		<link>http://studioshorts.com/blog/2011/01/filter-sharepoint-list-view-with-url-parameters/</link>
		<comments>http://studioshorts.com/blog/2011/01/filter-sharepoint-list-view-with-url-parameters/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 23:46:32 +0000</pubDate>
		<dc:creator>Jason Grimme</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://studioshorts.com/blog/?p=469</guid>
		<description><![CDATA[Let&#8217;s say you have a SharePoint list of items and you want to send your buddy Joe a link to the list, and filter the results by a column so that he sees only a specific set of data. The common practice is to create a view of the list and send that. While that [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you have a <strong>SharePoint </strong>list of items and you want to send your buddy Joe a link to the list, and filter the results by a column so that he sees only a specific set of data.  The common practice is to create a view of the list and send that.  While that works, it needlessly creates a view surely there must be a better way.  Here&#8217;s how to do it with a parametrized URL string.</p>
<ol>
<li>Start with:
<p>http://SPPortal/SPSite/Lists/MyList/AllItems.aspx</li>
<li>Click on the column you want to filter by: (I clicked on the a column named <strong>Movie</strong>)
<p>http://SPPortal/SPSite/Lists/MyListAllItems.aspx?<strong>SortField</strong>=<strong>Movie</strong>&#038;SortDir=Asc&#038;View=%7bE8726C0D%2d3872%2d44FF%2dA78C%2d0C5A87BC126D%7d</li>
<li>Look in the URL generated and identify the <strong>SortField </strong>parameter, which contains the ID of your column.<br />
SortField=Movie</li>
<li>Use the following format to create your parametrized URL: (Minus the square brackets)<br />
http://SPPortal/SPSite/Lists/MyList/AllItems.aspx?<strong>FilterField1</strong>=<strong>[Column ID]</strong>&amp;<strong>FilterValue1</strong>=<strong>[Filter Value]</strong></li>
<li>So in this example, if I want to display only items where the Movie field is equal to <strong>Tron</strong>, the URL is:
<p>http://SPPortal/SPSite/Lists/MyList/AllItems.aspx?FilterField1=<strong>Movie</strong>&#038;FilterValue1=<strong>Tron</strong></li>
</ol>
<p>And now you know!</p>
]]></content:encoded>
			<wfw:commentRss>http://studioshorts.com/blog/2011/01/filter-sharepoint-list-view-with-url-parameters/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

