<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Stuart&#039;s Tech Punch</title>
	<atom:link href="http://techpunch.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://techpunch.wordpress.com</link>
	<description>Drinking the KoolAid - SharePoint,  .Net Development, and all things Microsoft</description>
	<lastBuildDate>Thu, 22 Apr 2010 01:09:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='techpunch.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Stuart&#039;s Tech Punch</title>
		<link>http://techpunch.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://techpunch.wordpress.com/osd.xml" title="Stuart&#039;s Tech Punch" />
	<atom:link rel='hub' href='http://techpunch.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Best Web-Based Regular Expression Tester</title>
		<link>http://techpunch.wordpress.com/2010/04/22/best-web-based-regular-expression-tester/</link>
		<comments>http://techpunch.wordpress.com/2010/04/22/best-web-based-regular-expression-tester/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 01:06:48 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://techpunch.wordpress.com/2010/04/22/best-web-based-regular-expression-tester/</guid>
		<description><![CDATA[When writing regular expressions for use with RegEx tools in .Net, there are many resources available on the web.&#160; The best one I’ve found is http://regexhero.net/tester/. Hopefully now that I’ve blogged it, I’ll be able to find it quickly next &#8230; <a href="http://techpunch.wordpress.com/2010/04/22/best-web-based-regular-expression-tester/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=278&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>When writing regular expressions for use with RegEx tools in .Net, there are many resources available on the web.&#160; The best one I’ve found is <a title="http://regexhero.net/tester/" href="http://regexhero.net/tester/" target="_blank">http://regexhero.net/tester/</a>.</p>
<p><a href="http://techpunch.files.wordpress.com/2010/04/regexbuddy1.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="regexbuddy" border="0" alt="regexbuddy" src="http://techpunch.files.wordpress.com/2010/04/regexbuddy_thumb1.png?w=554&#038;h=327" width="554" height="327" /></a> </p>
<p>Hopefully now that I’ve blogged it, I’ll be able to find it quickly next time.</p>
<p>Enjoy!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techpunch.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techpunch.wordpress.com/278/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=278&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techpunch.wordpress.com/2010/04/22/best-web-based-regular-expression-tester/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/040207f2c56049158d83fbd3c113ff6d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Stuart</media:title>
		</media:content>

		<media:content url="http://techpunch.files.wordpress.com/2010/04/regexbuddy_thumb1.png" medium="image">
			<media:title type="html">regexbuddy</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint 2010 Virtualization Options</title>
		<link>http://techpunch.wordpress.com/2009/11/26/sharepoint-2010-virtualization-options/</link>
		<comments>http://techpunch.wordpress.com/2009/11/26/sharepoint-2010-virtualization-options/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 16:31:05 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://techpunch.wordpress.com/2009/11/26/sharepoint-2010-virtualization-options/</guid>
		<description><![CDATA[There are new and exciting changes around SharePoint 2010. This post deals with the changes specifically around virtualizing your SharePoint development environment.&#160; Important points about SharePoint 2010 to consider: 2010 runs on a 64-bit only 2010 has heavier memory requirements &#8230; <a href="http://techpunch.wordpress.com/2009/11/26/sharepoint-2010-virtualization-options/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=269&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>There are new and exciting changes around SharePoint 2010. This post deals with the changes specifically around virtualizing your SharePoint development environment.&#160; </p>
<p>Important points about SharePoint 2010 to consider:</p>
<ul>
<li>2010 runs on a 64-bit only </li>
<li>2010 has heavier memory requirements than MOSS 2007 </li>
<li>2010 can run on Windows Server 2008 or Windows Server 2008 R2 </li>
<li>2010 can run on Windows Vista x64 or Windows 7 x64 </li>
<li>Memory: Give your 2010 environment lots of memory! </li>
</ul>
<p>I like to run SharePoint (and beta software) in a virtualized sandbox on my laptop. There are several options, but Virtual PC (my old free favorite) is out of the running because it does not support 64-bit guest OS. So what are my other choices?</p>
<ul>
<li>Windows Server 2008 or R2 with Hyper-V </li>
<li>Sun&#8217;s VirtualBox </li>
<li>Native boot to VHD </li>
<li>VMWare Workstation (a good choice, but not a free one!) </li>
</ul>
<p><strong>Hyper-V</strong> is a great option.&#160; It lets me hand lots of memory over to my guest OS. I reserve at least 1GB of RAM for the host, and give SharePoint my other 7 GB (my laptop is maxed out at 8GB).</p>
<p><strong>Sun’s VirtualBox</strong> is free, and an interesting option.&#160; It’s the only virtualization tool I know of that let’s you run a 64-bit guest on a 32-bit host. On the downside, it doesn&#8217;t have good snapshot support, and it won’t let me hand over more that half my RAM to the guest.</p>
<p><strong>Native boot to VHD</strong> is awesome!&#160; Windows 7 and Windows Server 2008 R2 support booting natively from a vhd.&#160; It works like a dual boot configuration to disk partition, without requiring a partition. For SharePoint 2010, this is a nice option if your memory resources are limited to 4GB and you want the OS running SharePoint to have all your memory.&#160; For more info on boot to VHD option, see <a href="http://techpunch.wordpress.com/2009/11/26/windows-7-windows-server-2008-r2-boot-to-vhd/" target="_blank">my post</a>.</p>
<p><strong>VMWare Workstation</strong> is an excellent virtualization tool, if you don’t mind paying for it.&#160; VMWare ESX is an excellent platform for virtualizing production and test farms.&#160; For laptop-ware though, it’s hard to beat free!</p>
<h4>With SharePoint Dev Options on Windows 7 &#8211; Why Virtualize?</h4>
<p>Developing on Windows Vista and Windows 7 is an interesting option, and the tools support Microsoft is bringing to the game in 2010 are huge steps in the right direction.&#160; That said, development is still best-done on an OS that is a close copy of the production environment.&#160; </p>
<p>Server Operations Systems are more hardened against attacks, and they have more services for features that you will need.&#160; Much of SharePoint development is testing to ensure things will work in your target environment.&#160; This is best accomplished when you’re working on the same operating system.</p>
<p>I’m completely addicted to virtualization, particularly when dealing with server products like SharePoint.&#160; </p>
<ol>
<li>The flexibility just can’t be matched on physical hardware </li>
<li>Developing for SharePoint involves a lot of machine or domain level configuration. This cannot be easily isolated or duplicated without virtualization tools like snapshots, differencing disks, and good old copy/paste. </li>
<li>Moving VMs between machines is very useful, so I can develop on a desktop when I have one, or on a laptop when I have to. </li>
</ol>
<h4>What’s On My Box?</h4>
<p>I’m glad you asked!&#160; I’m running a multi-boot configuration on my laptop. I’m in love with the new boot to vhd option.&#160; I have several boot-to-vhd disks setup on my hard drive to meet specific client needs, etc.&#160; For more info on boot to VHD option, see <a href="http://techpunch.wordpress.com/2009/11/26/windows-7-windows-server-2008-r2-boot-to-vhd/" target="_blank">my post</a>.</p>
<p>For my primary workstation configuration (and SharePoint development) I use a native boot vhd with Windows Server 2008 R2 with Hyper-V.&#160; SharePoint 2010 Beta and other systems I’m currently playing with are running as Hyper-V images. </p>
<p>My DELL D830 laptop is not new, in fact it’s officially limited to 4GB of RAM.&#160; I have it tricked out with 8GB of RAM using a BIOS glitch, so 2008 R2 recognizes 8GB.&#160; If you have a D830 and want to try it <a href="http://techpunch.wordpress.com/2009/10/30/dell-d830-with-8gb-of-ram/" target="_blank">read more here</a>.</p>
<p>I reserve 1 GB from my host, and give 7 GB to the my SharePoint 2010 guest OS.&#160; It runs very snappy with this configuration.&#160; For a farm test, I can run more VHD’s if needed, but 2010 really likes the memory.</p>
<p>My SharePoint 2010 test lab is running as a DC/DNS server, with SQL 2008, Office 2010 beta, SharePoint 2010 beta, and Visual Studio 2010 beta.&#160; I left Exchange 2010 out of the mix for now, but will likely setup a separate server for it later to test workflow integration with Outlook.</p>
<p>Enjoy!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techpunch.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techpunch.wordpress.com/269/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=269&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techpunch.wordpress.com/2009/11/26/sharepoint-2010-virtualization-options/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/040207f2c56049158d83fbd3c113ff6d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Stuart</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows 7 / Windows Server 2008 R2 &#8211; Boot to VHD</title>
		<link>http://techpunch.wordpress.com/2009/11/26/windows-7-windows-server-2008-r2-boot-to-vhd/</link>
		<comments>http://techpunch.wordpress.com/2009/11/26/windows-7-windows-server-2008-r2-boot-to-vhd/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 16:27:06 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[Boot to VHD]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://techpunch.wordpress.com/2009/11/26/windows-7-windows-server-2008-r2-boot-to-vhd/</guid>
		<description><![CDATA[Windows 7 and Windows Server 2008 R2 support booting from a VHD directly.  No host OS involved.  Very nice!  It kind of blows my mind a bit to think of the possibilities.  How Does It Work? It works like a &#8230; <a href="http://techpunch.wordpress.com/2009/11/26/windows-7-windows-server-2008-r2-boot-to-vhd/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=268&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Windows 7 and Windows Server 2008 R2 support booting from a VHD directly.  No host OS involved.  Very nice!  It kind of blows my mind a bit to think of the possibilities. </p>
<h4>How Does It Work?</h4>
<p>It works like a dual boot machine, where you pick your OS option at startup.  Instead of having physical disk partitions, you can multi-boot onto a VHD instead of a disk partition.  You can boot directly to a VHD running SharePoint 2010 beta for example.   You can have as many of these as you need (and have disk space for).</p>
<p>For people limited to 4GB or RAM on a laptop, this can help SharePoint 2010 run much smoother because it has all the physical memory, no memory sharing with the host.  Your physical disk is available from the booted OS (VHD becomes C:, and physical disks looks like a D:, E:, etc.).  All physical hardware is available, just as if you installed the OS directly to a disk partition.</p>
<p>You can even get it to work with Vista as your main OS on your machine if you&#8217;re not ready to rebuild your machine with Windows 7 or Windows Server 2008 R2.  </p>
<h4>What’s the Catch?</h4>
<p>There are a few catches that I&#8217;m aware of: </p>
<ul>
<li>It only works if the VHD is stored on an internal disk </li>
<li>The OS on the VHD must be Windows 7 or 2008 Server R2</li>
<li>Hibernation and bit-locker don&#8217;t work when booted from VHD&#8217;s.  Suspend does work on my Dell D830 after I installed the NVIDEA drivers for my video card. </li>
<li>It works best with a fixed-size VHD, dynamic VHD disks will run slower</li>
<li>There is a slight performance hit, around 3%, when compared to a boot from a physical disk.  It’s negligilbe, I haven’t noticed a difference at all.</li>
<li>The vhd is not portable to other boxes due to hardware differences between machines.  You can sysprep and image and move it that way.</li>
</ul>
<h4>Great! Now How Do I Set It Up?</h4>
<p>I won’t recreate a detailed walkthrough here, but the basic gist of it is this:</p>
<ol>
<li>Insert Windows 7 or Windows Server 2008 R2 media</li>
<li>Boot from the CD like you’re installing the OS normally</li>
<li>At the first screen, hit Shift-F10 to open a command window</li>
<li>Use the DiskPart utility to create and mount the vhd.  Type DiskPart at the command prompt cnd enter the following commands:
<ol>
<li>create vdisk file=C:\VHD-Windows7.vhd maximum=40960</li>
<li>select vdisk file=C:\VHD-Windows7.vhd</li>
<li>attach vdisk</li>
<li>exit</li>
</ol>
</li>
<li>Close the command prompt and continue setup</li>
<li>Select the Custom (Advanced) Install option</li>
<li>Select the VHD disk you created for the install</li>
<li>That’s it!  The Windows installer takes care of the rest.</li>
<li>If you want more control, you can use BCDEdit or EasyBCD to edit the boot menu</li>
</ol>
<h4>References</h4>
<p>If you need a more detailed walkthrough, the best one I’ve seen is here:</p>
<ul>
<li><a href="http://www.sevenforums.com/tutorials/2953-virtual-hard-drive-vhd-file-create-start-boot.html" target="_blank">Windows 7 Formus:   Virtual Hard Drive VHD File &#8211; Create and Start with at Boot</a></li>
</ul>
<p>If you’re interested in booting a Windows 7 VHD from a system running Vista (I’m not!), you might find these helpful:</p>
<ul>
<li><a href="http://4sysops.com/archives/how-to-add-a-windows-7-vhd-to-vistas-boot-manager-menu/" target="_blank">4SysOps:  How to add a Windows 7 VHD to Vista’s boot manager menu</a></li>
<li><a href="http://intellects.in/2009/10/23/boot-from-vhd-replacing-vista-or-windows-2008-bootloader-with-windows-7-bootloader/" target="_blank">Intellects: Boot From VHD &#8211; Replacing Vista or Windows 2008 Bootloader with Windows 7 Bootloader</a></li>
</ul>
<p>Enjoy!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techpunch.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techpunch.wordpress.com/268/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=268&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techpunch.wordpress.com/2009/11/26/windows-7-windows-server-2008-r2-boot-to-vhd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/040207f2c56049158d83fbd3c113ff6d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Stuart</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint 2010 Beta &#8211; ConfigurationErrorsException</title>
		<link>http://techpunch.wordpress.com/2009/11/26/sharepoint-2010-beta-configurationerrorsexception/</link>
		<comments>http://techpunch.wordpress.com/2009/11/26/sharepoint-2010-beta-configurationerrorsexception/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 14:47:58 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://techpunch.wordpress.com/2009/11/26/sharepoint-2010-beta-configurationerrorsexception/</guid>
		<description><![CDATA[If you&#8217;ve installed the SharePoint 2010 public beta, you&#8217;ve likely run into the WCF bug. This following errors occur when provisioning Service Applications or when accessing pages that make service calls. System.Configuration.ConfigurationErrorsException: Unrecognized attribute &#8216;allowInsecureTransport&#8217;. Note that attribute names are &#8230; <a href="http://techpunch.wordpress.com/2009/11/26/sharepoint-2010-beta-configurationerrorsexception/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=264&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>If you&#8217;ve installed the SharePoint 2010 public beta, you&#8217;ve likely run into the WCF bug. This following errors occur when provisioning Service Applications or when accessing pages that make service calls. <strong></strong></p>
<p>System.Configuration.ConfigurationErrorsException: Unrecognized attribute &#8216;allowInsecureTransport&#8217;. Note that attribute names are case-sensitive. (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\WebClients\&lt;Service Area&gt;\client.config line &lt;Line Number&gt;).</p>
<p>The service application proxy &#8220;User Profile Service Application&#8221; could not be provisioned because of the following error: Unrecognized attribute &#8216;allowInsecureTransport&#8217;. Note that attribute names are case-sensitive. (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\WebClients\Profile\client.config line 56).</p>
<p>You may see this error in the ULS logs after installing SharePoint 2010, or displayed on the page as an error message when provisioning service applications or accessing SharePoint pages that make WCF service calls.</p>
<h4>How To Fix It</h4>
<p>This is a known WCF issue when installing SharePoint 2010 on Windows 7, Windows Server 2008, or Windows Server 2008 R2.  It’s, lovingly called the WCF Sharepoint Shared Services Roll-up issue. To fix it, install a WCF OS patch:</p>
<p>KB971831: WCF fix for Windows Server 2008 and Vista only<br />
<a href="http://support.microsoft.com/kb/971831">http://support.microsoft.com/kb/971831</a></p>
<p>KB976462: WCF fix for Windows 2008 R2 and Windows 7<br />
<a href="http://support.microsoft.com/kb/976462">http://support.microsoft.com/kb/976462</a> <br />
Note:  This link is not activated yet, but you can download the WCF fix at <a href="http://go.microsoft.com/fwlink/?LinkID=166231">http://go.microsoft.com/fwlink/?LinkID=166231</a></p>
<p>If you have already installed Microsoft SharePoint Server 2010 on a server running Microsoft Windows Server 2008 R2 or Microsoft Windows 7, Microsoft SharePoint Server 2010 does not need to be reinstalled. You can install the WCF fix afterward. However, Service Applications that have been provisioned without the update installed may need to be removed and re-provisioned once the update has been successfully applied.</p>
<h4>References</h4>
<p><a href="http://blogs.msdn.com/sharepoint/archive/2009/11/19/installation-notice-for-the-sharepoint-server-public-beta-on-microsoft-windows-server-2008-r2-and-microsoft-windows-7.aspx" target="_blank">SharePoint Team Blog: Installation Notice for the SharePoint Server Public Beta on Microsoft Windows Server 2008 R2 and Microsoft Windows 7</a></p>
<p><a href="http://blogs.msdn.com/opal/archive/2009/10/25/sharepoint-2010-pre-requisites-download-links.aspx" target="_blank">Jie Lie’s GeekWorld: SharePoint 2010 Pre-Requisites Download Links</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techpunch.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techpunch.wordpress.com/264/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=264&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techpunch.wordpress.com/2009/11/26/sharepoint-2010-beta-configurationerrorsexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/040207f2c56049158d83fbd3c113ff6d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Stuart</media:title>
		</media:content>
	</item>
		<item>
		<title>Dell D830 with 8GB of RAM</title>
		<link>http://techpunch.wordpress.com/2009/10/30/dell-d830-with-8gb-of-ram/</link>
		<comments>http://techpunch.wordpress.com/2009/10/30/dell-d830-with-8gb-of-ram/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 12:30:17 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://techpunch.wordpress.com/2009/10/30/dell-d830-with-8gb-of-ram/</guid>
		<description><![CDATA[Dell Latitude D830 laptops have 4GB memory cap, but I&#8217;ve found a way to squeeze 8GB of RAM in there (thanks to some helpful comments from others on the web).&#160; This is an unsupported configuration, but its working great! 8GB &#8230; <a href="http://techpunch.wordpress.com/2009/10/30/dell-d830-with-8gb-of-ram/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=263&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Dell Latitude D830 laptops have 4GB memory cap, but I&#8217;ve found a way to squeeze 8GB of RAM in there (thanks to some helpful comments from others on the web).&#160; This is an unsupported configuration, but its working great!</p>
<p>8GB gives me lots more breathing room for running virtual machines, especially useful for testing SharePoint 2010 in a virtual environment.&#160; My old laptop may be around a while yet!</p>
<p>If you have a D830 and want to try this, here&#8217;s how I did it:</p>
<ol>
<li>You must be running an OS that supports more than 4GB.&#160; 64-bit Vista, 64-bit Windows 7, 64-bit Windows Server 2008 or Windows Server 2008 R2.     </li>
<li>Upgrade the BIOS to A13 (download it from Dell).&#160; I haven&#8217;t tried A14 (the latest BIOS version), but I read reports that this only works with A13.     </li>
<li>Install a matching pair of 4GB SODIMM DDR2 667 chips.&#160; I&#8217;m using GSKILL chips I picked up from NewEgg for around $265.&#160; </li>
<li>When you reboot the first time, the BIOS will take a while to run through, checking out the new memory.&#160; Verify the new memory, and your system should recognize 8GB when it comes up.&#160; After the first boot, BIOS boots quickly.</li>
</ol>
<p>I&#8217;m running Windows 7&#160; 64-bit and Windows Server 2008 R2, booting to a VHD.&#160; No host OS on my PC, just a VHD on my C: drive.&#160; Sweet!!&#160; </p>
<p>Here&#8217;s the memory I ordered from NewEgg:   <br /><a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16820231210">http://www.newegg.com/Product/Product.aspx?Item=N82E16820231210</a></p>
<p>Enjoy!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techpunch.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techpunch.wordpress.com/263/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=263&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techpunch.wordpress.com/2009/10/30/dell-d830-with-8gb-of-ram/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/040207f2c56049158d83fbd3c113ff6d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Stuart</media:title>
		</media:content>
	</item>
		<item>
		<title>Get a Distinct List from ADO.Net DataSet Using Linq</title>
		<link>http://techpunch.wordpress.com/2009/08/27/get-a-distinct-list-from-ado-net-dataset-using-linq/</link>
		<comments>http://techpunch.wordpress.com/2009/08/27/get-a-distinct-list-from-ado-net-dataset-using-linq/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 23:54:57 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ADO.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Linq]]></category>

		<guid isPermaLink="false">http://techpunch.wordpress.com/2009/08/27/get-a-distinct-list-from-ado-net-dataset-using-linq/</guid>
		<description><![CDATA[There are some sample .Net functions out there to pull a list of distinct items from an ADO.Net DataTable, but none of them I found take advantage of LINQ.  So I thought I would post something I came up with &#8230; <a href="http://techpunch.wordpress.com/2009/08/27/get-a-distinct-list-from-ado-net-dataset-using-linq/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=257&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>There are some sample .Net functions out there to pull a list of distinct items from an ADO.Net DataTable, but none of them I found take advantage of LINQ.  So I thought I would post something I came up with to fill the gap.</p>
<p>In the code sample below, the goal is to pull a list of distinct values from a single column in a DataTable.  There are a few ways to approach this, depending on the end-game.  I listed 4 options, 2 with LINQ syntax and their Lambda expression twins.</p>
<pre class="csharpcode"><span class="rem">// —————————————————————–</span>
<span class="rem">// Build a list DataTable to test</span>
<span class="rem">// —————————————————————–</span>
DataTable tbl = <span class="kwrd">new</span> DataTable();
tbl.Columns.Add(“Title”, <span class="kwrd">typeof</span>(<span class="kwrd">string</span>));
<span class="kwrd">for</span> (<span class="kwrd">int</span> i = 1; i &lt;= 100; i++)
{
    <span class="rem">// Add 1 row</span>
    DataRow row1 = tbl.NewRow();
    row1[<span class="str">"Title"</span>] = <span class="kwrd">string</span>.Format(“Title {0}”, i);
    tbl.Rows.Add(row1);

    <span class="rem">// Add duplicate row</span>
    DataRow row2 = tbl.NewRow();
    row2[<span class="str">"Title"</span>] = <span class="kwrd">string</span>.Format(“Title {0}”, i);
    tbl.Rows.Add(row2);

    <span class="rem">// Add null row for testing</span>
    DataRow row3 = tbl.NewRow();
    row3[<span class="str">"Title"</span>] = DBNull.Value;
    tbl.Rows.Add(row3);
}

<span class="rem">// —————————————————————–</span>
<span class="rem">// All four of these examples yield the same results</span>
<span class="rem">// Each returns a list of 100 distinct rows</span>
<span class="rem">// Pick your poison!</span>
<span class="rem">// —————————————————————–</span>

<span class="rem">// Sample 1</span>
<span class="rem">// —————————————————————–</span>
<span class="rem">// Get a distinct list of titles</span>
<span class="rem">// Linq syntax against the DataTable using</span>
<span class="rem">// This is functionally the same as the 2nd example</span>
List&lt;<span class="kwrd">string</span>&gt; distinctTitles2 =
        (from r <span class="kwrd">in</span>
            (IEnumerable&lt;DataRow&gt;)tbl.AsEnumerable()
            <span class="kwrd">where</span> !<span class="kwrd">string</span>.IsNullOrEmpty(r.Field&lt;<span class="kwrd">string</span>&gt;(“Title”))
            select r.Field&lt;<span class="kwrd">string</span>&gt;(“Title”)).Distinct().ToList();

<span class="rem">// Sample 2</span>
<span class="rem">// —————————————————————–</span>
<span class="rem">// Get a distinct list of titles</span>
<span class="rem">// Lambda expression against the DataTable </span>
<span class="rem">// This is functionally the same as the 1st example</span>
List&lt;<span class="kwrd">string</span>&gt; distinctTitles1 = ((IEnumerable&lt;DataRow&gt;)tbl.AsEnumerable())
            .Select&lt;DataRow, <span class="kwrd">string</span>&gt;(r =&gt; r.Field&lt;<span class="kwrd">string</span>&gt;(“Title”))
            .Where(title =&gt; !<span class="kwrd">string</span>.IsNullOrEmpty(title))
            .Distinct().ToList();

<span class="rem">// Sample 3</span>
<span class="rem">// —————————————————————–</span>
<span class="rem">// Get a distinct list of titles</span>
<span class="rem">// On this one, I’m using the tbl.Select() method to get an array of DataRows matching filter criteria</span>
<span class="rem">// Linq expression is then used against the DataRow array to get distinct titles</span>
<span class="rem">// This is functionally the same as the 4th example</span>
List&lt;<span class="kwrd">string</span>&gt; distinctTitles4 =
        (from r <span class="kwrd">in</span>
        tbl.Select(“Title IS NOT NULL And TRIM(Title) &lt;&gt; ””)
        select r.Field&lt;<span class="kwrd">string</span>&gt;(“Title”))
        .Distinct().ToList();

<span class="rem">// Sample 4</span>
<span class="rem">// —————————————————————–</span>
<span class="rem">// Get a distinct list of title</span>
<span class="rem">// On this one, I’m using the tbl.Select() method to get an array of DataRows matching filter criteria</span>
<span class="rem">// Lambda expression against the DataRow array to get distinct titles</span>
<span class="rem">// This is functionally the same as the 3rd example</span>
List&lt;<span class="kwrd">string</span>&gt; distinctTitles3 = tbl.Select(“Title IS NOT NULL And TRIM(Title) &lt;&gt; ””)
        .Select(r =&gt; r.Field&lt;<span class="kwrd">string</span>&gt;(“Title”))
        .Distinct().ToList();</pre>
<p>Enjoy!</p>
<div><span class="sbmLink"></span></div>
<p> </p>
<table border="0" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<td class="sbmText"> </td>
<td class="sbmDim"><a class="sbmDim" title="Post it to del.icio.us" href="http://del.icio.us/post?url=http://techpunch.wordpress.com/2009/08/27/get-a-distinct-list-from-ado-net-dataset-using-linq/&amp;;title=Get a Distinct List from ADO.Net DataSet Using Linq" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/deliciou4.png" border="0" alt="" />del.icio.us it!</a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to digg" href="http://digg.com/submit?phase=2&amp;url=http://techpunch.wordpress.com/2009/08/27/get-a-distinct-list-from-ado-net-dataset-using-linq/&amp;title=Get a Distinct List from ADO.Net DataSet Using Linq" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/digg14.png" border="0" alt="" />digg it!</a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to reddit!" href="http://reddit.com/submit?url=http://techpunch.wordpress.com/2009/08/27/get-a-distinct-list-from-ado-net-dataset-using-linq/&amp;title=Get a Distinct List from ADO.Net DataSet Using Linq" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/reddit4.png" border="0" alt="" />reddit!</a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to technorati!" href="http://technorati.com/faves/?add=http://techpunch.wordpress.com/2009/08/27/get-a-distinct-list-from-ado-net-dataset-using-linq/&amp;title=Get a Distinct List from ADO.Net DataSet Using Linq" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/technora4.png" border="0" alt="" />technorati!</a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to yahoo!" href="http://myweb.yahoo.com/myresults/bookmarklet?u=http://techpunch.wordpress.com/2009/08/27/get-a-distinct-list-from-ado-net-dataset-using-linq/&amp;t=Get a Distinct List from ADO.Net DataSet Using Linq" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/yahoo9.png" border="0" alt="" />yahoo!</a></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techpunch.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techpunch.wordpress.com/257/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=257&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techpunch.wordpress.com/2009/08/27/get-a-distinct-list-from-ado-net-dataset-using-linq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/040207f2c56049158d83fbd3c113ff6d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Stuart</media:title>
		</media:content>

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/deliciou4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/digg14.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/reddit4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/technora4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/yahoo9.png" medium="image" />
	</item>
		<item>
		<title>COM Interop &#8211; QueryInterface not supported (E-NOINTERFACE)</title>
		<link>http://techpunch.wordpress.com/2009/06/22/com-interop-queryinterface-not-supported-e-nointerface/</link>
		<comments>http://techpunch.wordpress.com/2009/06/22/com-interop-queryinterface-not-supported-e-nointerface/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 17:10:40 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[COM Interop]]></category>
		<category><![CDATA[Threading]]></category>

		<guid isPermaLink="false">http://techpunch.wordpress.com/2009/06/22/com-interop-queryinterface-not-supported-e-nointerface/</guid>
		<description><![CDATA[Problem Encountering an error when trying to instantiate COM objects through Primarary Interop Assemblies (PIA&#8217;s) or Runtime Callable Wrappers (RCW&#8217;s) created using the TLBIMP.exe tool.  When calling the object for the first time, you encounter the following COM exception: Unable &#8230; <a href="http://techpunch.wordpress.com/2009/06/22/com-interop-queryinterface-not-supported-e-nointerface/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=251&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h4>Problem</h4>
<p>Encountering an error when trying to instantiate COM objects through Primarary Interop Assemblies (PIA&#8217;s) or Runtime Callable Wrappers (RCW&#8217;s) created using the TLBIMP.exe tool. </p>
<p>When calling the object for the first time, you encounter the following COM exception:</p>
<blockquote><p><strong>Unable to cast COM object of type &#8216;xxx to interface type &#8216;xxx&#8217;. This operation failed because the QueryInterface call on the COM component for the interface with IID &#8216;{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}&#8217; failed due to the following error: No such interface supported (Exception from HRESULT: 0&#215;80004002 (E_NOINTERFACE)).</strong></p></blockquote>
<p>You are likely to encounter this problem when developing ASP.Net applications, Windows Console applications, or Windows Services.  You are unlikely to experience this issue when developing Windows Forms applications.</p>
<h4>Solution</h4>
<p>The problem is that you are attempting to call Single-Threaded Apartment (STA) model COM components from an Multi-Threaded Apartment (MTA) thread.  The primary thread of Windows Forms applications are STA threads, so the components work fine there.  Most other project types, including Console applications and Windows Service applications are run on an MTA thread by default.  When you attempt to instantiate the an STA component, you will get the ubiquitous error described above.</p>
<p>You might try calling System.Threading.Thread.CurrentThread.SetApartmentState(ApartmentState.STA), but this won&#8217;t work.  You cannot change the thread execution model on a running thread. </p>
<p>To fix the problem, you can set the thread execution type on the main application thread before it is started, but this is not optimal.  It is better to set the threading model specifically for the portion of code that needs it.</p>
<p>A better solution is to spin up a new thread for the job at hand, and set the thread execution state on the new thread before executing it.  There are a few different methods to accomplish this depending on what you&#8217;re trying to accomplish.  Here&#8217;s one to get you started:</p>
<pre class="csharpcode"><span class="kwrd">using</span> System.Threading;
...

<span class="rem">// Setup an object to host the thread entry point</span>
<span class="rem">// Start a process on an MTA thread </span>
MyThreadedJob jobHost = <span class="kwrd">new</span> MyThreadedJob(jobId);
Thread t = <span class="kwrd">new</span> Thread(<span class="kwrd">new</span> ThreadStart(MyThreadedJob.Execute));
t.SetApartmentState(ApartmentState.MTA);

<span class="rem">// Start the thread</span>
t.Start();

<span class="rem">// Wait for thread to complete (optional)</span>
t.Join();</pre>
<h4> </h4>
<h4>More Gory Details</h4>
<p>For more of the gory details and differences between threading models in Windows and COM, you can start <a href="http://blogs.msdn.com/cbrumme/archive/2004/02/02/66219.aspx" target="_blank">here</a>.</p>
<div><span class="sbmLink"></span></div>
<p> </p>
<table border="0" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<td class="sbmText"> </td>
<td class="sbmDim"><a class="sbmDim" title="Post it to del.icio.us" href="http://del.icio.us/post?url=http://techpunch.wordpress.com/2009/06/22/com-interop-queryinterface-not-supported-e-nointerface/&amp;;title=COM Interop - QueryInterface not supported (E-NOINTERFACE)" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/deliciou4.png" border="0" alt="" />del.icio.us it!</a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to digg" href="http://digg.com/submit?phase=2&amp;url=http://techpunch.wordpress.com/2009/06/22/com-interop-queryinterface-not-supported-e-nointerface/&amp;title=COM Interop - QueryInterface not supported (E-NOINTERFACE)" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/digg14.png" border="0" alt="" />digg it!</a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to reddit!" href="http://reddit.com/submit?url=http://techpunch.wordpress.com/2009/06/22/com-interop-queryinterface-not-supported-e-nointerface/&amp;title=COM Interop - QueryInterface not supported (E-NOINTERFACE)" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/reddit4.png" border="0" alt="" />reddit!</a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to technorati!" href="http://technorati.com/faves/?add=http://techpunch.wordpress.com/2009/06/22/com-interop-queryinterface-not-supported-e-nointerface/&amp;title=COM Interop - QueryInterface not supported (E-NOINTERFACE)" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/technora4.png" border="0" alt="" />technorati!</a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to yahoo!" href="http://myweb.yahoo.com/myresults/bookmarklet?u=http://techpunch.wordpress.com/2009/06/22/com-interop-queryinterface-not-supported-e-nointerface/&amp;t=COM Interop - QueryInterface not supported (E-NOINTERFACE)" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/yahoo9.png" border="0" alt="" />yahoo!</a></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techpunch.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techpunch.wordpress.com/251/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=251&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techpunch.wordpress.com/2009/06/22/com-interop-queryinterface-not-supported-e-nointerface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/040207f2c56049158d83fbd3c113ff6d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Stuart</media:title>
		</media:content>

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/deliciou4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/digg14.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/reddit4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/technora4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/yahoo9.png" medium="image" />
	</item>
		<item>
		<title>SharePoint 2007 &#8211; Get SPList Object by Url</title>
		<link>http://techpunch.wordpress.com/2009/06/03/sharepoint-2007-get-splist-object-by-url/</link>
		<comments>http://techpunch.wordpress.com/2009/06/03/sharepoint-2007-get-splist-object-by-url/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 22:40:19 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://techpunch.wordpress.com/2009/06/03/sharepoint-2007-get-splist-object-by-url/</guid>
		<description><![CDATA[I want to get a reference to a SPList object associated with a given list url.&#160; This method works with any of the url&#8217;s associated with the list, including view page url&#8217;s, or list form url&#8217;s.&#160; This should be much &#8230; <a href="http://techpunch.wordpress.com/2009/06/03/sharepoint-2007-get-splist-object-by-url/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=248&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I want to get a reference to a SPList object associated with a given list url.&nbsp; This method works with any of the url&#8217;s associated with the list, including view page url&#8217;s, or list form url&#8217;s.&nbsp; </p>
<p>This should be much easier to achieve by using the object model, in my opinion.&nbsp; String parsing of the url is not my favorite, but I couldn&#8217;t find a better way to accomplish it.&nbsp; </p>
<p>If you know of an easier way to accomplish this, please leave me a comment.&nbsp; Otherwise, you can steal this from me, if you want it!</p>
<pre class="csharpcode"><span class="rem">/// &lt;summary&gt;</span>
<span class="rem">/// Gets an SPList based on the url to the list</span>
<span class="rem">/// &lt;/summary&gt;</span>
<span class="rem">/// &lt;param name="listUrl"&gt;Full url to the list&lt;/param&gt;</span>
<span class="rem">/// &lt;returns&gt;SPList object, null if list is not found&lt;/returns&gt;</span>
<span class="kwrd">public</span> SPList GetListByUrl(<span class="kwrd">string</span> listUrl)
{
    SPList list = <span class="kwrd">null</span>;

    <span class="kwrd">try</span>
    {
        <span class="kwrd">using</span> (SPSite site = <span class="kwrd">new</span> SPSite(listUrl))
        {
            <span class="kwrd">if</span> (site != <span class="kwrd">null</span>)
            {
                <span class="rem">// Strip off the site url, leaving the rest</span>
                <span class="rem">// We'll use this to open the web</span>
                <span class="kwrd">string</span> webUrl = listUrl.Substring(site.Url.Length);

                <span class="rem">// Strip off anything after /forms/</span>
                <span class="kwrd">int</span> formsPos = webUrl.IndexOf(<span class="str">"/forms/"</span>, 0, StringComparison.InvariantCultureIgnoreCase);
                <span class="kwrd">if</span> (formsPos &gt;= 0)
                {
                    webUrl = webUrl.Substring(0, webUrl.LastIndexOf(<span class="str">'/'</span>, formsPos));
                }

                <span class="rem">// Strip off anything after /lists/</span>
                <span class="kwrd">int</span> listPos = webUrl.IndexOf(<span class="str">"/lists/"</span>, 0, StringComparison.InvariantCultureIgnoreCase);
                <span class="kwrd">if</span> (listPos &gt;= 0)
                {
                    <span class="rem">// Must be a custom list</span>
                    <span class="rem">// Strip off anything after /lists/</span>
                    webUrl = webUrl.Substring(0, webUrl.LastIndexOf(<span class="str">'/'</span>, listPos));
                }
                <span class="kwrd">else</span>
                {
                    <span class="rem">// No lists, must be a document library.</span>
                    <span class="rem">// Strip off the document library name</span>
                    webUrl = webUrl.Substring(0, webUrl.LastIndexOf(<span class="str">'/'</span>));
                }

                <span class="rem">// Get the web site</span>
                <span class="kwrd">using</span> (SPWeb web = site.OpenWeb(webUrl))
                {
                    <span class="kwrd">if</span> (web != <span class="kwrd">null</span>)
                    {
                        <span class="rem">// Initialize the web (avoids COM exceptions)</span>
                        <span class="kwrd">string</span> title = web.Title;

                        <span class="rem">// Strip off the relative list Url</span>
                        <span class="rem">// Form the full path to the list</span>
                        <span class="rem">//string relativeListUrl = listUrl.Substring(web.Url.Length);</span>
                        <span class="rem">//string url = SPUrlUtility.CombineUrl(web.Url, relativeListUrl);</span>

                        <span class="rem">// Get the list</span>
                        list = web.GetList(listUrl);
                    }
                }
            }
        }
    }
    <span class="kwrd">catch</span> { }

    <span class="kwrd">return</span> list;
}
</pre>
<p>Enjoy!</p>
<p><span class="sbmLink"></p>
<table cellspacing="1" cellpadding="1">
<tbody>
<tr>
<td class="sbmText">&nbsp;</td>
<td class="sbmDim"><a class="sbmDim" title="Post it to del.icio.us" href="http://del.icio.us/post?url=http://techpunch.wordpress.com/2009/06/03/sharepoint-2007-get-splist-object-by-url/&amp;;title=SharePoint 2007 - Get SPList Object by Url" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/deliciou4.png" border="0">del.icio.us it!</a></p>
<td class="sbmDim"><a class="sbmDim" title="Post it to digg" href="http://digg.com/submit?phase=2&amp;url=http://techpunch.wordpress.com/2009/06/03/sharepoint-2007-get-splist-object-by-url/&amp;title=SharePoint 2007 - Get SPList Object by Url" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/digg14.png" border="0">digg it!</a></p>
<td class="sbmDim"><a class="sbmDim" title="Post it to reddit!" href="http://reddit.com/submit?url=http://techpunch.wordpress.com/2009/06/03/sharepoint-2007-get-splist-object-by-url/&amp;title=SharePoint 2007 - Get SPList Object by Url" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/reddit4.png" border="0">reddit!</a></p>
<td class="sbmDim"><a class="sbmDim" title="Post it to technorati!" href="http://technorati.com/faves/?add=http://techpunch.wordpress.com/2009/06/03/sharepoint-2007-get-splist-object-by-url/&amp;title=SharePoint 2007 - Get SPList Object by Url" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/technora4.png" border="0">technorati!</a></p>
<td class="sbmDim"><a class="sbmDim" title="Post it to yahoo!" href="http://myweb.yahoo.com/myresults/bookmarklet?u=http://techpunch.wordpress.com/2009/06/03/sharepoint-2007-get-splist-object-by-url/&amp;t=SharePoint 2007 - Get SPList Object by Url" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/yahoo9.png" border="0">yahoo!</a></td>
</tr>
</tbody>
</table>
<p></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techpunch.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techpunch.wordpress.com/248/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=248&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techpunch.wordpress.com/2009/06/03/sharepoint-2007-get-splist-object-by-url/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/040207f2c56049158d83fbd3c113ff6d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Stuart</media:title>
		</media:content>

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/deliciou4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/digg14.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/reddit4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/technora4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/yahoo9.png" medium="image" />
	</item>
		<item>
		<title>SharePoint TechFest 2009 &#8211; Dallas, TX</title>
		<link>http://techpunch.wordpress.com/2009/05/07/sharepoint-techfest-2009-dallas/</link>
		<comments>http://techpunch.wordpress.com/2009/05/07/sharepoint-techfest-2009-dallas/#comments</comments>
		<pubDate>Thu, 07 May 2009 12:17:17 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Microsoft Office]]></category>
		<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Workflow]]></category>
		<category><![CDATA[WSS 3.0]]></category>

		<guid isPermaLink="false">http://techpunch.wordpress.com/2009/05/07/sharepoint-techfest-2009-dallas/</guid>
		<description><![CDATA[I want to thank everyone who attended my session on SharePoint Workflow with Visual Studio at our TechFest event yesterday.&#160; Please feel free to post any comments (good or bad) about my presentation or the event.&#160; Demo source code is &#8230; <a href="http://techpunch.wordpress.com/2009/05/07/sharepoint-techfest-2009-dallas/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=237&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I want to thank everyone who attended my session on <strong>SharePoint Workflow with Visual Studio</strong> at our <a href="http://sharepointtechfest.com" target="_blank">TechFest</a> event yesterday.&nbsp; Please feel free to post any comments (good or bad) about my presentation or the event.&nbsp; </p>
<p>Demo source code is posted on Nakido until the Techfest site is updated with session content.</p>
<h4>SharePoint WorkFlow with Visual Studio &#8211; Downloads</h4>
<ul>
<li><a href="http://techpunch.files.wordpress.com/2009/05/techfest-sharepoint-workflows-with-visual-studio.ppt" target="_blank">Slide deck</a></li>
<li><a href="http://www.nakido.com/F8CBBD5635D1B8E6FF6CBC8D89FD348F33504226" target="_blank">Demo code</a></li>
</ul>
<h4>SharePoint WorkFlow with Visual Studio &#8211; References</h4>
<ul>
<li><a href="http://www.sheltonblog.com/archive/2007/11/04/series-of-sharepoint-workflow-how-to-videos.aspx" target="_blank">Robert Shelton&#8217;s SharePoint Workflow How-To Video Screencasts</a></li>
<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=6D94E307-67D9-41AC-B2D6-0074D6286FA9&amp;displaylang=en" target="_blank">MOSS 2007 SDK</a> and <a href="http://www.microsoft.com/downloads/details.aspx?familyid=05E0DD12-8394-402B-8936-A07FE8AFAFFD&amp;displaylang=en" target="_blank">WSS 3.0 SDK</a></li>
<li><a href="http://www.amazon.com/Workflow-2007-Microsoft-Office-System/dp/1590597001" target="_blank">Workflow in the 2007 Microsoft Office System</a> by David Mann</li>
</ul>
<p><span class="sbmLink"><br />
<table cellspacing="1" cellpadding="1">
<tbody>
<tr>
<td class="sbmText">&nbsp;</td>
<td class="sbmDim"><a class="sbmDim" title="Post it to del.icio.us" href="http://del.icio.us/post?url=http://techpunch.wordpress.com/2009/05/07/sharepoint-techfest-2009-dallas&amp;;title=SharePoint TechFest 2009 - Dallas TX" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/deliciou4.png" border="0">del.icio.us it!</a>
<td class="sbmDim"><a class="sbmDim" title="Post it to digg" href="http://digg.com/submit?phase=2&amp;url=http://techpunch.wordpress.com/2009/05/07/sharepoint-techfest-2009-dallas&amp;title=SharePoint TechFest 2009 - Dallas TX" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/digg14.png" border="0">digg it!</a>
<td class="sbmDim"><a class="sbmDim" title="Post it to reddit!" href="http://reddit.com/submit?url=http://techpunch.wordpress.com/2009/05/07/sharepoint-techfest-2009-dallas&amp;title=SharePoint TechFest 2009 - Dallas TX" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/reddit4.png" border="0">reddit!</a>
<td class="sbmDim"><a class="sbmDim" title="Post it to technorati!" href="http://technorati.com/faves/?add=http://techpunch.wordpress.com/2009/05/07/sharepoint-techfest-2009-dallas&amp;title=SharePoint TechFest 2009 - Dallas TX" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/technora4.png" border="0">technorati!</a>
<td class="sbmDim"><a class="sbmDim" title="Post it to yahoo!" href="http://myweb.yahoo.com/myresults/bookmarklet?u=http://techpunch.wordpress.com/2009/05/07/sharepoint-techfest-2009-dallas&amp;t=SharePoint TechFest 2009 - Dallas TX" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/yahoo9.png" border="0">yahoo!</a></td>
</tr>
</tbody>
</table>
<p></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techpunch.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techpunch.wordpress.com/237/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=237&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techpunch.wordpress.com/2009/05/07/sharepoint-techfest-2009-dallas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/040207f2c56049158d83fbd3c113ff6d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Stuart</media:title>
		</media:content>

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/deliciou4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/digg14.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/reddit4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/technora4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/yahoo9.png" medium="image" />
	</item>
		<item>
		<title>SharePoint 2007 100% CPU Spike &#8211; Blue Screen 0x0000001d</title>
		<link>http://techpunch.wordpress.com/2009/04/29/sharepoint-2007-100-cpu-spike-blue-screen-0x0000001d/</link>
		<comments>http://techpunch.wordpress.com/2009/04/29/sharepoint-2007-100-cpu-spike-blue-screen-0x0000001d/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 00:10:27 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[WSS 3.0]]></category>

		<guid isPermaLink="false">http://techpunch.wordpress.com/2009/04/29/sharepoint-2007-100-cpu-spike-blue-screen-0x0000001d/</guid>
		<description><![CDATA[Problem SharePoint 2007 Web Front End (WFE) servers crashing repeatedly.  Environment is SharePoint 2007 (MOSS Enterprise) 64-bit running on Windows Server 2008 Standard.  Server was crashing repeatedly with CPU spiking to 100%, blue screen, and server rebooting itself.  System log &#8230; <a href="http://techpunch.wordpress.com/2009/04/29/sharepoint-2007-100-cpu-spike-blue-screen-0x0000001d/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=233&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h4>Problem</h4>
<p>SharePoint 2007 Web Front End (WFE) servers crashing repeatedly.  Environment is SharePoint 2007 (MOSS Enterprise) 64-bit running on Windows Server 2008 Standard.  Server was crashing repeatedly with CPU spiking to 100%, blue screen, and server rebooting itself.  System log showing BugCheck event (1000) entry with code 0x0000001d:</p>
<blockquote><p>The computer has rebooted from a bugcheck.  The bugcheck was: 0x000000d1 (0xfffff9802ea0ef50, 0&#215;0000000000000002, 0&#215;0000000000000000, 0xfffffa6004e06ed9). A dump was saved in: C:\Windows\MEMORY.DMP.</p></blockquote>
<h4>Resolution</h4>
<p>After a lot of troubleshooting, it turns out it was Trend Micro Common Firewall Driver (Trend Micro OfficeScan Client 8.0).  When we disabled the firewall, problem resolved.</p>
<table border="0" cellspacing="1" cellpadding="1">
<tbody>
<tr>
<td class="sbmText"> </td>
<td class="sbmDim"><a class="sbmDim" title="Post it to del.icio.us" href="http://del.icio.us/post?url=http://techpunch.wordpress.com/2009/04/29/sharepoint-2007-100-cpu-spike-blue-screen-0x0000001d/&amp;;title=SharePoint 2007 100% CPU Spike - Blue Screen 0x0000001d" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/deliciou4.png" border="0" alt="" />del.icio.us it!</a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to digg" href="http://digg.com/submit?phase=2&amp;url=http://techpunch.wordpress.com/2009/04/29/sharepoint-2007-100-cpu-spike-blue-screen-0x0000001d/&amp;title=SharePoint 2007 100% CPU Spike - Blue Screen 0x0000001d" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/digg14.png" border="0" alt="" />digg it!</a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to reddit!" href="http://reddit.com/submit?url=http://techpunch.wordpress.com/2009/04/29/sharepoint-2007-100-cpu-spike-blue-screen-0x0000001d/&amp;title=SharePoint 2007 100% CPU Spike - Blue Screen 0x0000001d" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/reddit4.png" border="0" alt="" />reddit!</a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to technorati!" href="http://technorati.com/faves/?add=http://techpunch.wordpress.com/2009/04/29/sharepoint-2007-100-cpu-spike-blue-screen-0x0000001d/&amp;title=SharePoint 2007 100% CPU Spike - Blue Screen 0x0000001d" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/technora4.png" border="0" alt="" />technorati!</a></td>
<td class="sbmDim"><a class="sbmDim" title="Post it to yahoo!" href="http://myweb.yahoo.com/myresults/bookmarklet?u=http://techpunch.wordpress.com/2009/04/29/sharepoint-2007-100-cpu-spike-blue-screen-0x0000001d/&amp;t=SharePoint 2007 100% CPU Spike - Blue Screen 0x0000001d" target="_blank"><img src="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/yahoo9.png" border="0" alt="" />yahoo!</a></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techpunch.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techpunch.wordpress.com/233/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techpunch.wordpress.com&#038;blog=4566545&#038;post=233&#038;subd=techpunch&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techpunch.wordpress.com/2009/04/29/sharepoint-2007-100-cpu-spike-blue-screen-0x0000001d/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/040207f2c56049158d83fbd3c113ff6d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Stuart</media:title>
		</media:content>

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/deliciou4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/digg14.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/reddit4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/technora4.png" medium="image" />

		<media:content url="http://blogs.msdn.com/blogfiles/rahulso/WindowsLiveWriter/IconsfordifferentSocialBookmarkingSites_B387/yahoo9.png" medium="image" />
	</item>
	</channel>
</rss>
