<?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>Eric Webb &#187; general</title>
	<atom:link href="http://ericcwebb.com/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://ericcwebb.com</link>
	<description>Work, life, and everything else...</description>
	<lastBuildDate>Thu, 08 Jul 2010 14:01:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SharePoint 2010 &#8211; Content Types and Site Columns in .wsp&#8217;s</title>
		<link>http://ericcwebb.com/2010/06/17/sharepoint-2010-content-types-and-site-columns-in-wsps/</link>
		<comments>http://ericcwebb.com/2010/06/17/sharepoint-2010-content-types-and-site-columns-in-wsps/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 20:31:30 +0000</pubDate>
		<dc:creator>Eric Webb</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://ericcwebb.com/?p=113</guid>
		<description><![CDATA[Remember having to create features that deploy custom content types in MOSS 2007? How painful it was? How you just really didn&#8217;t want to do it? In SharePoint 2010, it is super easy. Just see here.]]></description>
			<content:encoded><![CDATA[<p>Remember having to create features that deploy custom content types in MOSS 2007?  How painful it was?  How you just really didn&#8217;t want to do it?</p>
<p>In SharePoint 2010, it is super easy.  Just see <a href="http://gvaro.spaces.live.com/Blog/cns!B06529FD3FC75473!1364.entry">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ericcwebb.com/2010/06/17/sharepoint-2010-content-types-and-site-columns-in-wsps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint CSS: Moving webparts</title>
		<link>http://ericcwebb.com/2009/09/17/sharepoint-css-moving-webparts/</link>
		<comments>http://ericcwebb.com/2009/09/17/sharepoint-css-moving-webparts/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 14:33:27 +0000</pubDate>
		<dc:creator>Eric Webb</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://ericcwebb.com/?p=92</guid>
		<description><![CDATA[This issue has been bugging me for months. On several sites that I&#8217;ve branded, I&#8217;ve add a DOCTYPE to the masterpage that indicates to the browser to render the pages in standards mode. An unfortunate side effect of this occurs when you try to move webparts on a page: the little bar that pops up [...]]]></description>
			<content:encoded><![CDATA[<p>This issue has been bugging me for months.  On several sites that I&#8217;ve branded, I&#8217;ve add a DOCTYPE to the masterpage that indicates to the browser to render the pages in standards mode.  An unfortunate side effect of this occurs when you try to move webparts on a page: the little bar that pops up that you drag to a new webpart zone is way off.  Like 200px off.  Fortunately, I found a solution from this <a href="http://neilmosafi.blogspot.com/2007/11/sharepoint-dragging-webparts-causes.html">website</a>. (which actually deals with a different issue, but it works for this too)</p>
<p>Just put this code in your masterpage or external .js file.  Make sure the code or link reference is the last thing in the <head> tag.</p>
<pre><code class="js">function MSOLayout_GetRealOffset(StartingObject, OffsetType, EndParent)
{
	var realValue=0;
	if (!EndParent) EndParent=document.body;
	for (var currentObject=StartingObject; currentObject &amp;&amp; currentObject !=EndParent
         &amp;&amp; currentObject != document.body; currentObject=currentObject.offsetParent)
	{
		var offset = eval('currentObject.offset'+OffsetType);
		if (offset) realValue+=offset;
	}
	return realValue;
}</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ericcwebb.com/2009/09/17/sharepoint-css-moving-webparts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Virtual PC: Tab/Escape not working</title>
		<link>http://ericcwebb.com/2009/09/16/virtual-pc-tabescape-not-working/</link>
		<comments>http://ericcwebb.com/2009/09/16/virtual-pc-tabescape-not-working/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 14:53:55 +0000</pubDate>
		<dc:creator>Eric Webb</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://ericcwebb.com/?p=88</guid>
		<description><![CDATA[Today, all of the sudden the tab and escape keys stopped working in Virtual PC.  Had never happened before.  I reinstalled VM Additions, restarted the VM, nothing worked.  I then found the solution in a form post: &#8220;If you are running into this issue on Vista and Windows 7 you can get the TAB key [...]]]></description>
			<content:encoded><![CDATA[<p>Today, all of the sudden the tab and escape keys stopped working in Virtual PC.  Had never happened before.  I reinstalled VM Additions, restarted the VM, nothing worked.  I then found the solution in a form post:</p>
<blockquote><p><em>&#8220;<span>If you are running into this issue on Vista and Windows 7 you can get the TAB key back by creating a software allow policy. Go to administrative tools, local security policy, Software Restriction Policies, Additional Rules. Create a new rule for %appdata%\microsoft\vritual pc\vpckeyboard.dll and set it to Unrestricted. Restart Virtual PC.   If the variable doesn&#8217;t work, try using an explicit path i.e. c:\users\username\appdata\roaming\microsoft\virtualpc\vpckeyboard.dll&#8221;</span></em></p></blockquote>
<p>Did that and it started working.  Note in the post that this applies to Vista and Windows 7 only.  I&#8217;m running Windows 7 x64.</p>
]]></content:encoded>
			<wfw:commentRss>http://ericcwebb.com/2009/09/16/virtual-pc-tabescape-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7/Server 2008 R2 Boot to VHD</title>
		<link>http://ericcwebb.com/2009/08/19/windows-7server-2008-r2-boot-to-vhd/</link>
		<comments>http://ericcwebb.com/2009/08/19/windows-7server-2008-r2-boot-to-vhd/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 20:00:18 +0000</pubDate>
		<dc:creator>Eric Webb</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://ericcwebb.com/?p=70</guid>
		<description><![CDATA[Found this great tutorial on creating bootable, sysprep&#8217;d VHD&#8217;s on the fly here. I plan on trying this out later this week and posting my findings.]]></description>
			<content:encoded><![CDATA[<p>Found this great tutorial on creating bootable, sysprep&#8217;d VHD&#8217;s on the fly <a href="http://www.pkguild.com/2009/08/rtm-weekend-win7-2008-r2-boot-from-vhd-and-more/">here</a>.</p>
<p>I plan on trying this out later this week and posting my findings.</p>
]]></content:encoded>
			<wfw:commentRss>http://ericcwebb.com/2009/08/19/windows-7server-2008-r2-boot-to-vhd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Big javascript post</title>
		<link>http://ericcwebb.com/2009/06/16/big-javascript-post/</link>
		<comments>http://ericcwebb.com/2009/06/16/big-javascript-post/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 20:48:46 +0000</pubDate>
		<dc:creator>Eric Webb</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://ericcwebb.com/?p=62</guid>
		<description><![CDATA[All of this javascript goodness became useful while I was using jquery to call Sharepoint web services, specifically after I wrapped all of the functionality into a class. 1.  Context &#8211; this issue arose while using jquery&#8217;s .ajax() method as so: $.ajax({ url: "../_vti_bin/lists.asmx", type: "POST", dataType: "xml", data: soapEnv, complete: this.processResult, contentType: "text/xml; charset=\"utf-8\"" [...]]]></description>
			<content:encoded><![CDATA[<p>All of this javascript goodness became useful while I was using jquery to call Sharepoint web services, specifically after I wrapped all of the functionality into a class.</p>
<p>1.  Context &#8211; this issue arose while using jquery&#8217;s .ajax() method as so:</p>
<pre><code class="csharp">$.ajax({
            url: "../_vti_bin/lists.asmx",
            type: "POST",
            dataType: "xml",
            data: soapEnv,
            complete: this.processResult,
            contentType: "text/xml; charset=\"utf-8\""
        });</code></pre>
<p>I kept getting an error saying it couldn&#8217;t find the processResult() function.  Turns out the &#8220;this&#8221; keyword wasn&#8217;t returning the context of the class.  Instead, it was returning the context of the ajax() function call.  After searching the intrawebs, I came accross this <a href="http://knol.google.com/k/jason/jquery-callback-contexts/">article</a>.  So, by adding the code and changing &#8220;this.processResult&#8221; to &#8220;$.context(this).callback(&#8216;processResult&#8217;)&#8221; the problem was solved.</p>
<p>1A.  Context and Recursion &#8211; this issue occurred while using a recursive function to write out a menu with child elements.  Once again, this worked fine until I put everything into a class.  However, once I did that, I started getting some weird issues with my for loop.  The counter would increment twice while the recursive call was made.  I wasn&#8217;t able to figure this one out, so I just unrolled the function.</p>
<p>2.  Array sorting (mostly for my benefit) &#8211; a cool way to sort an xml array in descending order:</p>
<pre><code class="csharp">this.sortRows = function(a, b){
        return ($(a).attr("columnName") - $(b).attr("columnName"))
    }</code></pre>
<p>Then call the function like this:</p>
<pre><code class="csharp">array.sort(this.sortRows);</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://ericcwebb.com/2009/06/16/big-javascript-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ensure Infopath Forms open in browser</title>
		<link>http://ericcwebb.com/2009/06/10/ensure-infopath-forms-open-in-browser/</link>
		<comments>http://ericcwebb.com/2009/06/10/ensure-infopath-forms-open-in-browser/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 14:21:20 +0000</pubDate>
		<dc:creator>Eric Webb</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://ericcwebb.com/?p=60</guid>
		<description><![CDATA[Here&#8217;s a good way to ensure all of your Infopath Forms open in a browser, no matter where they&#8217;re linked from: http://www.sharepointblogs.com/koning53/archive/2009/06/10/ensuring-infopath-forms-to-open-in-forms-services.aspx]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a good way to ensure all of your Infopath Forms open in a browser, no matter where they&#8217;re linked from:</p>
<p><a href="http://www.sharepointblogs.com/koning53/archive/2009/06/10/ensuring-infopath-forms-to-open-in-forms-services.aspx">http://www.sharepointblogs.com/koning53/archive/2009/06/10/ensuring-infopath-forms-to-open-in-forms-services.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ericcwebb.com/2009/06/10/ensure-infopath-forms-open-in-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vista/Server 2008 Not Shutting Down</title>
		<link>http://ericcwebb.com/2009/04/27/vistaserver-2008-not-shutting-down/</link>
		<comments>http://ericcwebb.com/2009/04/27/vistaserver-2008-not-shutting-down/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 20:52:46 +0000</pubDate>
		<dc:creator>Eric Webb</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://ericcwebb.com/?p=55</guid>
		<description><![CDATA[This is mostly for my purposes&#8230; If you&#8217;re having trouble with Vista/Server 2008 not shutting down, try running: fsutil resource setautoreset true C:\ and then restarting your computer.  This resets the NTFS transaction logs on your C: drive which apparently can become corrupted.  As a bonus, I think it sped up start-up as well&#8230;]]></description>
			<content:encoded><![CDATA[<p>This is mostly for my purposes&#8230;</p>
<p>If you&#8217;re having trouble with Vista/Server 2008 not shutting down, try running:</p>
<p><em>fsutil resource setautoreset true C:\<br />
</em></p>
<p>and then restarting your computer.  This resets the NTFS transaction logs on your C: drive which apparently can become corrupted.  As a bonus, I think it sped up start-up as well&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://ericcwebb.com/2009/04/27/vistaserver-2008-not-shutting-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
