<?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>ThumNet</title>
	<atom:link href="http://blog.thumnet.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thumnet.com</link>
	<description>- Jeffrey Tummers</description>
	<lastBuildDate>Fri, 23 Sep 2011 21:33:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Updated to Graphene theme</title>
		<link>http://blog.thumnet.com/updated-to-graphene-theme/226/</link>
		<comments>http://blog.thumnet.com/updated-to-graphene-theme/226/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 21:33:48 +0000</pubDate>
		<dc:creator>ThumNet</dc:creator>
				<category><![CDATA[Theme]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[graphene]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.thumnet.com/?p=226</guid>
		<description><![CDATA[I&#8217;ve been a co-developer for the WordPress Graphene Theme since February 2011, and it&#8217;s about time a starting using this great theme on my own blog You can follow our development at Google Code &#8211; http://code.google.com/p/graphene/, here you can also report bugs and request new features. The original developer and designer of the theme is &#8230; </p><p><a class="more-link block-button" href="http://blog.thumnet.com/updated-to-graphene-theme/226/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been a co-developer for the <a href="http://wordpress.org/extend/themes/graphene">WordPress Graphene Theme</a> since February 2011, and it&#8217;s about time a starting using this great theme on my own blog <img src='http://blog.thumnet.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://blog.thumnet.com/wp-content/uploads/2011/09/screenshot.png" rel="lightbox[226]"><img src="http://blog.thumnet.com/wp-content/uploads/2011/09/screenshot.png" alt="" title="Graphene Screenshot" width="300" height="225" class="aligncenter size-full wp-image-227" /></a></p>
<p>You can follow our development at Google Code &#8211; <a href="http://code.google.com/p/graphene/">http://code.google.com/p/graphene/</a>, here you can also report bugs and request new features.</p>
<p>The original developer and designer of the theme is Syahir Hakim, on his <a href="http://www.khairul-syahir.com/wordpress-dev/graphene-theme">blog</a> you can read a bit more about the theme.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thumnet.com/updated-to-graphene-theme/226/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress pages into nested tree array</title>
		<link>http://blog.thumnet.com/wordpress-pages-into-nested-tree-array/220/</link>
		<comments>http://blog.thumnet.com/wordpress-pages-into-nested-tree-array/220/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 21:18:38 +0000</pubDate>
		<dc:creator>ThumNet</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.thumnet.com/?p=220</guid>
		<description><![CDATA[I was looking for a way to get a nested array (or tree array) from the pages or posts in WordPress, for a theme I&#8217;m currently working on. If you just want to display the links you could use the wp_list_pages() function. But this wont get you a nested array, then there are the functions &#8230; </p><p><a class="more-link block-button" href="http://blog.thumnet.com/wordpress-pages-into-nested-tree-array/220/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>I was looking for a way to get a nested array (or tree array) from the pages or posts in WordPress, for a theme I&#8217;m currently working on.</p>
<p>If you just want to display the links you could use the <a href="http://codex.wordpress.org/Template_Tags/wp_list_pages">wp_list_pages()</a> function.</p>
<p>But this wont get you a nested array, then there are the functions <a href="http://codex.wordpress.org/Function_Reference/get_pages">get_pages()</a> and <a href="http://codex.wordpress.org/Function_Reference/get_posts">get_posts()</a>. These return a one-dimensional array of pages or posts.</p>
<p>Using this array I&#8217;ve written a simple recursive function which creates a nested array.</p>
<pre class="brush: php; title: ; notranslate">
/**
 * Build a nested tree from an array of posts/pages.
 * @see WordPress::get_pages()
 * @see WordPress::get_posts()
 *
 * @param array $items The array of posts/pages
 * @param int $parentid The parent id to start with
 * @param array $tree
 * @return array The nested pages tree
 */
function thumnet_build_nested_tree($items, $parentid = 0, &amp;$tree = array()) {
    foreach ($items as $key =&gt; $item) {
        // we are only interested in the pages that have the current parent
        if ($item-&gt;post_parent == $parentid){
            // add the item to the parent node
            $tree[$item-&gt;ID] = array('self' =&gt; $item, 'children' =&gt; array());
            // remove the page from the pages array, so it's not iterated in the recursive call
            unset($items[$key]);
            // call the function recursively, but with the children node as the tree
            thumnet_build_nested_tree($items, $item-&gt;ID, $tree[$item-&gt;ID]['children']);
        }
        // if the parent page has no children remove the node
        if (count($tree[$item-&gt;ID]['children']) == 0){
            unset($tree[$item-&gt;ID]['children']);
        }
    }   

    return $tree;
}
</pre>
<p>And not to forget a quick sample on how to use this</p>
<pre class="brush: php; title: ; notranslate">
$pages = get_pages('sort_column=menu_order');
$tree = thumnet_build_nested_tree($pages);
thumnet_display_nested_tree($tree);

function thumnet_display_nested_tree($items, $indent = 0){
    foreach ($items as $item){
        echo str_repeat('&amp;nbsp;', $indent*3) . (count($item['children']) ? '+' : '-') . ' ' . $item['self']-&gt;post_title . '&lt;br /&gt;';
        if (count($item['children'])) { thumnet_display_nested_tree($item['children'], $indent+1); }
    }
}
</pre>
<p>Sample output:</p>
<pre class="brush: plain; title: ; notranslate">
+ Welcome
   + Subpage with children
      - Child 1
      - Child two
   - Subpage without children
- Top level page without children
+ About
   - Who am I
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.thumnet.com/wordpress-pages-into-nested-tree-array/220/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install SABnzbd as a service on Windows 2008</title>
		<link>http://blog.thumnet.com/install-sabnzbd-as-a-service-windows-2008/209/</link>
		<comments>http://blog.thumnet.com/install-sabnzbd-as-a-service-windows-2008/209/#comments</comments>
		<pubDate>Mon, 13 Dec 2010 18:47:01 +0000</pubDate>
		<dc:creator>ThumNet</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[sabnzdb]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[windows2008]]></category>

		<guid isPermaLink="false">http://blog.thumnet.com/?p=209</guid>
		<description><![CDATA[Until version 0.6.0 is released of SABnzbd it is needed to take manual steps to install SABnzbd as a service. For Windows 2003 this could be achieved using this tutorial. But for Windows 2008 this is not as easy anymore, therefore I had a look around and came with the following solution: Download the NSSM &#8230; </p><p><a class="more-link block-button" href="http://blog.thumnet.com/install-sabnzbd-as-a-service-windows-2008/209/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Until version 0.6.0 is released of <a href="http://www.sabnzbd.org">SABnzbd</a> it is needed to take manual steps to install SABnzbd as a service. For Windows 2003 this could be achieved using <a href="http://wiki.sabnzbd.org/windows-service">this tutorial</a>.</p>
<p>But for Windows 2008 this is not as easy anymore, therefore I had a look around and came with the following solution:</p>
<ol>
<li>Download the NSSM (the None Sucking Service Manager) <a href="http://iain.cx/src/nssm/">here</a></li>
<li>Put this file in a Windows PATH location (for example <code>%windir%\system32</code>, or extend the path)</li>
<li>Run the commandline: <code>nssm install sabnzbd</code> (&#8220;sabnzbd&#8221; is the name for the service)</li>
<li>A UI will popup asking for the location of the sabnzbd.exen file and optional startup parameters (I supplied <code>-b0</code> for background mode)</li>
<li>For me it was also necessary to setup the service (services.msc) to use the same account I once configured it with, otherwise you&#8217;ll end up with the wizard</li>
</ol>
<p>Afterwards you are able to use <code>net start sabnzbd</code> to start the service and <code>net stop sabnzbd</code> to stop it. To uninstall use <code>nssm remove sabnzbd confirm</code></p>
<p>That&#8217;s it for installing sabnzbd as a service under Windows 2008 (should also work on Windows 7!)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thumnet.com/install-sabnzbd-as-a-service-windows-2008/209/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically connect WebParts on a SharePoint page</title>
		<link>http://blog.thumnet.com/automatically-connect-webparts-on-sharepoint-page/201/</link>
		<comments>http://blog.thumnet.com/automatically-connect-webparts-on-sharepoint-page/201/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 09:34:55 +0000</pubDate>
		<dc:creator>Jeffrey Tummers</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[csharp]]></category>
		<category><![CDATA[sharepoint2007]]></category>
		<category><![CDATA[sharepoint2010]]></category>
		<category><![CDATA[webpart]]></category>

		<guid isPermaLink="false">http://blog.thumnet.com/?p=201</guid>
		<description><![CDATA[For a recent project we had several WebParts (Provider and Consumer webparts) on a page which had to be connected to each other when the page was provisioned by our solution. Unfortunately this cannot be done within the Module.xml So I created a method which automatically connects the consumer WebParts to their correct provider WebParts. &#8230; </p><p><a class="more-link block-button" href="http://blog.thumnet.com/automatically-connect-webparts-on-sharepoint-page/201/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>For a recent project we had several WebParts (Provider and Consumer webparts) on a page which had to be connected to each other when the page was provisioned by our solution.</p>
<p>Unfortunately this cannot be done within the Module.xml <img src='http://blog.thumnet.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>So I created a method which automatically connects the consumer WebParts to their correct provider WebParts.</p>
<p>To do this I basically used the <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.splimitedwebpartmanager.aspx">SPLimitedWebPartManager</a>, <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.providerconnectionpoint.aspx">ProviderConnectionPoint</a>, <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.consumerconnectionpoint.aspx">ConsumerConnectionPoint </a>and some other nice classes.</p>
<p><strong>The method (warning long block of code)</strong></p>
<pre class="brush: csharp; title: ; notranslate">
/// &lt;summary&gt;
/// Connects the web parts on page.
/// &lt;/summary&gt;
/// &lt;param name=&quot;web&quot;&gt;The web.&lt;/param&gt;
/// &lt;param name=&quot;pageUrl&quot;&gt;The page URL.&lt;/param&gt;
/// &lt;param name=&quot;publish&quot;&gt;if set to &lt;c&gt;true&lt;/c&gt; [publish].&lt;/param&gt;
public static void ConnectWebPartsOnPage(SPWeb web, string pageUrl, bool publish)
{
	// get the page from the url
	SPFile page = web.GetFile(pageUrl);

	// make sure the page exists
	if (page.Exists)
	{
		// if the page is checked out, check it in because then the user can do an rollback
		if (page.Level == SPFileLevel.Checkout)
		{
			page.CheckIn(&quot;Page was checked out, needs to be checked in before connecting webparts&quot;, SPCheckinType.MinorCheckIn);
		}

		// check out the page because we are going to do changes on it
		page.CheckOut();

		// get the webpartmanager for the page
		using (Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager mgr = page.GetLimitedWebPartManager(PersonalizationScope.Shared))
		{
			try
			{
				// try to connect the webparts on the page
				if (ConnectWebParts(mgr))
				{
					string checkinComment = &quot;Auto connected WebParts on page&quot;;

					// webparts are connected so update the page and check it in
					page.Update();
					page.CheckIn(checkinComment);

					if (publish)
					{
						page.Publish(checkinComment);
						page.Approve(checkinComment);
					}
				}
			}
			catch (Exception ex)
			{
				page.UndoCheckOut();
				throw ex;
			}
		}
	}
}

/// &lt;summary&gt;
/// Checks if a WebPart connection exists.
/// &lt;/summary&gt;
/// &lt;param name=&quot;connections&quot;&gt;The connections.&lt;/param&gt;
/// &lt;param name=&quot;provider&quot;&gt;The provider.&lt;/param&gt;
/// &lt;param name=&quot;consumer&quot;&gt;The consumer.&lt;/param&gt;
/// &lt;returns&gt;&lt;/returns&gt;
private static bool WebPartConnectionExist(Microsoft.SharePoint.WebPartPages.SPWebPartConnectionCollection connections,
	System.Web.UI.WebControls.WebParts.WebPart provider, System.Web.UI.WebControls.WebParts.WebPart consumer)
{
	foreach (Microsoft.SharePoint.WebPartPages.SPWebPartConnection conn in connections)
	{
		if (conn.Provider == provider &amp;&amp; conn.Consumer == consumer)
		{
			return true;
		}
	}

	return false;
}

/// &lt;summary&gt;
/// Connects the web parts.
/// &lt;/summary&gt;
/// &lt;param name=&quot;manager&quot;&gt;The manager.&lt;/param&gt;
/// &lt;returns&gt;&lt;/returns&gt;
private static bool ConnectWebParts(Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager manager)
{
	bool connectionMade = false;

	// get the webparts on the page
	Microsoft.SharePoint.WebPartPages.SPLimitedWebPartCollection webparts = manager.WebParts;

	// only continu if there are any webparts
	if (webparts.Count &gt; 0)
	{
		ProviderConnectionPointCollection provColl;
		ConsumerConnectionPointCollection consColl;
		// walk through all the webparts on the page to find provider webparts
		foreach (System.Web.UI.WebControls.WebParts.WebPart providerPart in webparts)
		{

			// check if the webpart is a Provider webpart
			provColl = manager.GetProviderConnectionPoints(providerPart);
			if (provColl != null &amp;&amp; provColl.Default != null)
			{

				// walk through all the webparts on the page again now to find the consumer webparts
				foreach (System.Web.UI.WebControls.WebParts.WebPart consumerPart in webparts)
				{

					// first make sure the webpart isn't the provider webpart
					if (consumerPart != providerPart)
					{
						// check if the webpart is a Consumer webpart,
						// then make sure the consumer webpart isn't already connected to the provider webpart
						// then check if the interface of the consumer webpart is assignable from the interface of the provider webpart
						consColl = manager.GetConsumerConnectionPoints(consumerPart);
						if (consColl != null &amp;&amp; consColl.Default != null
							&amp;&amp; !WebPartConnectionExist(manager.SPWebPartConnections, providerPart, consumerPart)
							&amp;&amp; consColl.Default.InterfaceType.IsAssignableFrom(provColl.Default.InterfaceType))
						{
							// connect the webparts
							manager.SPConnectWebParts(providerPart, provColl.Default, consumerPart, consColl.Default);
							connectionMade = true;
						}
					}
				}
			}
		}
	}
	return connectionMade;
}
</pre>
<p><strong>Sample usage (console application)</strong></p>
<pre class="brush: csharp; title: ; notranslate">
try
{
	using (SPSite site = new SPSite(&quot;http://localhost&quot;))
	using (SPWeb web = site.OpenWeb())
	{
		ConnectWebPartsOnPage(web, &quot;pages/default.aspx&quot;, false);
	}
}
catch (Exception ex)
{
	Console.WriteLine();
	Console.WriteLine(&quot;Message:\n{0}\n\nStack:\n{1}\n\n&quot;, ex.Message, ex.StackTrace);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.thumnet.com/automatically-connect-webparts-on-sharepoint-page/201/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>First NEN 2082 certified project with SharePoint 2010</title>
		<link>http://blog.thumnet.com/first-nen2082-certified-project-sharepoint-2010/180/</link>
		<comments>http://blog.thumnet.com/first-nen2082-certified-project-sharepoint-2010/180/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 15:01:39 +0000</pubDate>
		<dc:creator>Jeffrey Tummers</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[nen2082]]></category>
		<category><![CDATA[qnh]]></category>
		<category><![CDATA[sharepoint2010]]></category>

		<guid isPermaLink="false">http://blog.thumnet.com/?p=180</guid>
		<description><![CDATA[Together with 3 colleagues from QNH Business Integration I am currently finishing implementing a already NEN 2082 certified project based on SharePoint 2010. When SharePoint 2010 hits RTM there will be another audit for this version of SharePoint, because currently the pre release version has been certified. NEN 2082 is a Dutch standard which is &#8230; </p><p><a class="more-link block-button" href="http://blog.thumnet.com/first-nen2082-certified-project-sharepoint-2010/180/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="QNH" src="http://www.qnh.eu/images/stories/logos/qnhLogo.png" alt="" width="190" height="65" /><br />
Together with 3 colleagues from QNH Business Integration I am currently finishing implementing a already NEN 2082 certified project based on SharePoint 2010.<br />
When SharePoint 2010 hits RTM there will be another audit for this version of SharePoint, because currently the pre release version has been certified.</p>
<p>NEN 2082 is a Dutch standard which is similar the DoD5015 and MoReq standards. </p>
<p>This project was done for the Gemeente Nieuwegein, which is a Dutch local Government.</p>
<div id="attachment_181" class="wp-caption aligncenter" style="width: 130px"><a href="http://blog.thumnet.com/wp-content/uploads/2010/03/NieuwegeinLogo.png" rel="lightbox[180]"><img class="size-full wp-image-181" title="Nieuwegein Logo" src="http://blog.thumnet.com/wp-content/uploads/2010/03/NieuwegeinLogo.png" alt="" width="120" height="120" /></a><p class="wp-caption-text">Gemeente Nieuwegein</p></div>
<p>For this project we have also been nominated for the &#8220;Innovation of the year&#8221; award:</p>
<div id="attachment_182" class="wp-caption aligncenter" style="width: 235px"><a href="http://blog.thumnet.com/wp-content/uploads/2010/03/lrg-partner-award-2010.jpg" rel="lightbox[180]"><img class="size-medium wp-image-182" title="LRG Innovator Nomination 2010" src="http://blog.thumnet.com/wp-content/uploads/2010/03/lrg-partner-award-2010-225x300.jpg" alt="" width="225" height="300" /></a><p class="wp-caption-text">LRG Innovator Nomination 2010</p></div>
<p><a href="http://www.qnh.eu/actueel/210-qnh-implementeert-als-eerste-dmsrma-met-sharepoint-2010-conform-nen2082">More information</a> (Dutch)</p>
<p>My colleagues at QNH:</p>
<ul>
<li>Jeroer Derde &#8211; <a href="http://derde.net/blog">http://derde.net/blog</a></li>
<li>Alexander Ketelaar &#8211; <a href="http://sharepoint2010.nl">http://sharepoint2010.nl</a></li>
<li>Robert Sep</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.thumnet.com/first-nen2082-certified-project-sharepoint-2010/180/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem with VS2010 beta 2 Site Definition</title>
		<link>http://blog.thumnet.com/problem-vs2010-beta2-sitedefinition/159/</link>
		<comments>http://blog.thumnet.com/problem-vs2010-beta2-sitedefinition/159/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 10:40:23 +0000</pubDate>
		<dc:creator>Jeffrey Tummers</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[qnh]]></category>
		<category><![CDATA[sharepoint2010]]></category>
		<category><![CDATA[site-definition]]></category>
		<category><![CDATA[visualstudio2010]]></category>

		<guid isPermaLink="false">http://blog.thumnet.com/?p=159</guid>
		<description><![CDATA[I encountered the following problem while creating a new custom Site Definition in Visual Studio 2010 beta 2. The problem occurs when trying to create a new Document Library in the site based on the custom Site Definition. Error message: Read on to see the solution for this error. Visual Studio 2010 now has native integration of &#8230; </p><p><a class="more-link block-button" href="http://blog.thumnet.com/problem-vs2010-beta2-sitedefinition/159/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>I encountered the following problem while creating a new custom Site Definition in Visual Studio 2010 beta 2.</p>
<p>The problem occurs when trying to create a new Document Library in the site based on the custom Site Definition.</p>
<div id="attachment_164" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.thumnet.com/wp-content/uploads/2009/12/00-error-while-creating-document-library.png" rel="lightbox[159]"><img class="size-medium wp-image-164" title="00-error-while-creating-document-library" src="http://blog.thumnet.com/wp-content/uploads/2009/12/00-error-while-creating-document-library-300x188.png" alt="Error while trying to add a new Document Library" width="300" height="188" /></a><p class="wp-caption-text">Error while trying to add a new Document Library</p></div>
<p><strong>Error message:</strong></p>
<pre class="brush: plain; title: ; notranslate">
Error

An error occurred while getting items from the &quot;&quot; provider:
Cannot complete this action.

Please try again.
</pre>
<p><em>Read on to see the solution for this error.</em></p>
<p>Visual Studio 2010 now has native integration of SharePoint 2010 projects.</p>
<div id="attachment_160" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.thumnet.com/wp-content/uploads/2009/12/01-new-site-definition-in-vs2010.png" rel="lightbox[159]"><img class="size-medium wp-image-160" title="01-new-site-definition-in-vs2010" src="http://blog.thumnet.com/wp-content/uploads/2009/12/01-new-site-definition-in-vs2010-300x168.png" alt="New Site Definition in Visual Studio 2010" width="300" height="168" /></a><p class="wp-caption-text">New Site Definition in Visual Studio 2010</p></div>
<p>After creating the new Site Definition Project in the <strong>onet.xml</strong> file<strong> </strong>contains the following:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;Project Title=&quot;SampleSiteDefinition&quot; Revision=&quot;2&quot; ListDir=&quot;&quot; xmlns:ows=&quot;Microsoft SharePoint&quot; xmlns=&quot;http://schemas.microsoft.com/sharepoint/&quot;&gt;
  &lt;NavBars&gt;
  &lt;/NavBars&gt;
  &lt;Configurations&gt;
    &lt;Configuration ID=&quot;0&quot; Name=&quot;SampleSiteDefinition&quot;&gt;
      &lt;Lists/&gt;
      &lt;SiteFeatures&gt;
      &lt;/SiteFeatures&gt;
      &lt;WebFeatures&gt;
      &lt;/WebFeatures&gt;
      &lt;Modules&gt;
        &lt;Module Name=&quot;DefaultBlank&quot; /&gt;
      &lt;/Modules&gt;
    &lt;/Configuration&gt;
  &lt;/Configurations&gt;
  &lt;Modules&gt;
    &lt;Module Name=&quot;DefaultBlank&quot; Url=&quot;&quot; Path=&quot;&quot;&gt;
      &lt;File Url=&quot;default.aspx&quot;&gt;
      &lt;/File&gt;
    &lt;/Module&gt;
  &lt;/Modules&gt;
&lt;/Project&gt;
</pre>
<p><em>Now you can modify to the onet.xml and default.aspx as you like. </em></p>
<p>When deploying the new Site Definition, creating a site, and then trying to create a new Document Library you get the error above.  The solution for the error turned out to be the <strong>missing </strong>declaration of the <strong>&lt;DocumentTemplates&gt;</strong> XML node.</p>
<p>Correct default <strong>onet.xml</strong> should be:</p>
<pre class="brush: xml; highlight: [5,6]; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;Project Title=&quot;SampleSiteDefinition&quot; Revision=&quot;2&quot; ListDir=&quot;&quot; xmlns:ows=&quot;Microsoft SharePoint&quot; xmlns=&quot;http://schemas.microsoft.com/sharepoint/&quot;&gt;
  &lt;NavBars&gt;
  &lt;/NavBars&gt;
  &lt;DocumentTemplates&gt;
  &lt;/DocumentTemplates&gt;
  &lt;Configurations&gt;
      &lt;Lists/&gt;
      &lt;SiteFeatures&gt;
      &lt;/SiteFeatures&gt;
      &lt;WebFeatures&gt;
      &lt;/WebFeatures&gt;
      &lt;Modules&gt;
        &lt;Module Name=&quot;DefaultBlank&quot; /&gt;
      &lt;/Modules&gt;
    &lt;/Configuration&gt;
  &lt;/Configurations&gt;
  &lt;Modules&gt;
    &lt;Module Name=&quot;DefaultBlank&quot; Url=&quot;&quot; Path=&quot;&quot;&gt;
      &lt;File Url=&quot;default.aspx&quot;&gt;
      &lt;/File&gt;
    &lt;/Module&gt;
  &lt;/Modules&gt;
&lt;/Project&gt;
</pre>
<p>After re-deploying the Site Definition and creating a new Site, you are able to create a Document Library.</p>
<div id="attachment_170" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.thumnet.com/wp-content/uploads/2009/12/02-correctly-working-new-doclib-screen.png" rel="lightbox[159]"><img class="size-medium wp-image-170" title="02-correctly-working-new-doclib-screen" src="http://blog.thumnet.com/wp-content/uploads/2009/12/02-correctly-working-new-doclib-screen-300x188.png" alt="Working new Document Library" width="300" height="188" /></a><p class="wp-caption-text">Working new Document Library</p></div>
<h5>Reference:</h5>
<p><a href="http://msdn.microsoft.com/en-us/library/ms474369(office.14).aspx">Microsoft&#8217;s Reference for SharePoint 2010 onet.xml</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thumnet.com/problem-vs2010-beta2-sitedefinition/159/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Looking for SharePoint 2010 Feature (GU)IDs</title>
		<link>http://blog.thumnet.com/looking-for-sharepoint-2010-feature-guid/142/</link>
		<comments>http://blog.thumnet.com/looking-for-sharepoint-2010-feature-guid/142/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 17:23:29 +0000</pubDate>
		<dc:creator>Jeffrey Tummers</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[feature-guid]]></category>
		<category><![CDATA[qnh]]></category>
		<category><![CDATA[sharepoint2010]]></category>
		<category><![CDATA[site-definition]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://blog.thumnet.com/?p=142</guid>
		<description><![CDATA[Have you ever been looking for a feature (GU)ID in SharePoint? Well here is an easy way to find them. I needed default SharePoint feature guids for the development of a custom Site Definition. Using a custom Site Definition you can automatically activate SharePoint features within the onet.xml file. Here we go: Open the SharePoint &#8230; </p><p><a class="more-link block-button" href="http://blog.thumnet.com/looking-for-sharepoint-2010-feature-guid/142/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Have you ever been looking for a feature (GU)ID in SharePoint? Well here is an easy way to find them.</p>
<p>I needed default SharePoint feature guids for the development of a custom Site Definition. Using a custom Site Definition you can automatically activate SharePoint features within the onet.xml file.</p>
<p>Here we go:</p>
<ol>
<li>Open the SharePoint site in IE8 (or IE7).</li>
<li style="text-align: left;">Go to the Site Settings page.<br />
<img class="size-full wp-image-143" title="site-settings-menu" src="http://blog.thumnet.com/wp-content/uploads/2009/12/site-settings-menu.jpg" alt="site-settings-menu" width="259" height="587" /></li>
<li>Click on the Manage Site features (or Site Collection features)<br />
<img class="alignnone size-full wp-image-144" title="site-features" src="http://blog.thumnet.com/wp-content/uploads/2009/12/site-features.jpg" alt="site-features" width="287" height="131" /></li>
<li>Use the Developer Tools (shortcut F12)</li>
<li>Click in the toolbar on Find &#8211;&gt; Select Element by Click (shortcut CTRL+B, but this opens bookmarks manager on my machine)<br />
<img class="alignnone size-full wp-image-145" title="developertools-select" src="http://blog.thumnet.com/wp-content/uploads/2009/12/developertools-select.jpg" alt="developertools-select" width="393" height="168" /></li>
<li>Select the Activate (or Deactivate) button next to the feature you need the GUID from.<br />
<img class="alignnone size-full wp-image-147" title="select-feature-activate-button" src="http://blog.thumnet.com/wp-content/uploads/2009/12/select-feature-activate-button.jpg" alt="select-feature-activate-button" width="748" height="84" /></li>
<li>Developer Tools scrolls down to the HTML source for the specific button, the button tag is contained within a Div tag. This Div tag contains an ID attribute and thats the GUID for the feature!<br />
<img class="alignnone size-full wp-image-148" title="selected-feature-html" src="http://blog.thumnet.com/wp-content/uploads/2009/12/selected-feature-html.jpg" alt="selected-feature-html" width="502" height="213" /></li>
<li>In this case the GUID is: <strong>9c03e124-eef7-4dc6-b5eb-86ccd207cb87</strong><br />
<img class="alignnone size-full wp-image-149" title="selected-feature-guid" src="http://blog.thumnet.com/wp-content/uploads/2009/12/selected-feature-guid.jpg" alt="selected-feature-guid" width="492" height="145" /></li>
</ol>
<p>This trick also works for SharePoint 2007!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thumnet.com/looking-for-sharepoint-2010-feature-guid/142/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IMDB REST Webservice update</title>
		<link>http://blog.thumnet.com/imdb-rest-webservice-update/129/</link>
		<comments>http://blog.thumnet.com/imdb-rest-webservice-update/129/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 20:45:15 +0000</pubDate>
		<dc:creator>ThumNet</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[imdb]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[webservice]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://blog.thumnet.com/?p=129</guid>
		<description><![CDATA[Update 2009-12-16 Looking for help in hosting If you have a server that hosts PHP and you want to support the Scraper service please contact me (info at thumnet dot com). Update 2009-12-12 Service currently down, due to too many request to IMDb, working on a fix! Update 2009-12-09 Added Picture in imdb-name request Added result &#8230; </p><p><a class="more-link block-button" href="http://blog.thumnet.com/imdb-rest-webservice-update/129/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>Update 2009-12-16</strong></span></p>
<h5>Looking for help in hosting</h5>
<p>If you have a server that hosts PHP and you want to support the Scraper service please contact me (info at thumnet dot com).</p>
<hr/>
<span style="color: #ff0000;"><strong>Update 2009-12-12</strong></span></p>
<h5>Service currently down, due to too many request to IMDb, working on a fix!</h5>
<hr />
<span style="color: #ff0000;"><strong>Update 2009-12-09</strong></span></p>
<ul>
<li>Added Picture in <em>imdb-name</em> request</li>
<li>Added result count limitation param (see the <a title="ThumNet.com Scraper" href="http://scraper.thumnet.com">guide</a>)</li>
<li>Some small bugfixes:
<ul>
<li>missing tt and nm prefix in ImdbID property in <em>imdb-name-search</em> request,</li>
<li>missing ImdbID for Writers and Directors in <em>imdb-title</em> request,</li>
<li>changed Season and Episode in <em>imdb-episode</em> request to SeasonNR and EpisodeNR</li>
<li>added result type to the summary element, to identify the result data</li>
</ul>
</li>
</ul>
<p><em><em><span style="color: #ff0000;"><strong>Update 2009-12-02</strong></span></em></em></p>
<p><em><em> </em></em></p>
<ul>
<li>Added Name search functionality, with <em>imdb-name-search</em> url param (imdb-search is now <em>imdb-title-search</em>)</li>
<li>Added Name details, with <em>imdb-name</em> url param</li>
</ul>
<p><em><em> </em></em></p>
<p><span style="color: #ff0000;"><strong>Update 2009-12-01</strong></span></p>
<ul>
<li>Fixed the Plot and Tagline for imdb title&#8217;s, see comments below.</li>
</ul>
<p>It&#8217;s been some time since my post about the <a title="ThumNet.com IMDB webservice" href="http://blog.thumnet.com/rest-like-webserviceapi-for-imdbcom-with-xml-or-json-output/6/">IMDB webservice</a> but I&#8217;m proud to tell you readers there is a new version available.</p>
<p>Some important changes include:</p>
<ul>
<li>Restructured output (sorry to you guys who have to update their software)</li>
<li>Output available in XML, JSON and debug (other output formats can be added on request)</li>
<li>Automatic support for gzipping the output</li>
<li>Summary information, containing:
<ul>
<li> data source</li>
<li>timestamp of the data</li>
<li>time taken in ms</li>
<li>scraper info</li>
<li>error code (0 for no error!) and error description</li>
</ul>
</li>
<li>Easily extendable scrape framework, so in the future more sites can be scraped!</li>
<li>Admin interface to review the data you guys produce</li>
</ul>
<p>Still interested or just curious?</p>
<p>Well the new url is: <a title="ThumNet.com Scraper" href="http://scraper.thumnet.com">http://scraper.thumnet.com</a></p>
<p>The old version (imdb.thumnet.com) will only be available until 1 december 2009.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thumnet.com/imdb-rest-webservice-update/129/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>airTranslate on Google code</title>
		<link>http://blog.thumnet.com/airtranslate-on-google-code/123/</link>
		<comments>http://blog.thumnet.com/airtranslate-on-google-code/123/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 16:39:14 +0000</pubDate>
		<dc:creator>ThumNet</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[translate]]></category>

		<guid isPermaLink="false">http://blog.thumnet.com/?p=123</guid>
		<description><![CDATA[Because I wanted to learn programming in Adobe Flex I build a tool called airTranslate. It uses the Google Ajax Language API to translate the users input text to the chosen output language. airTranslate features: Multi platform Auto detection of input language Drag and drop input text (with auto translation) Dock to tray icon (Windows &#8230; </p><p><a class="more-link block-button" href="http://blog.thumnet.com/airtranslate-on-google-code/123/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Because I wanted to learn programming in<a href="http://www.adobe.com/products/flex/"> Adobe Flex </a> I build a tool called <strong>airTranslate</strong>. It uses the <a href="http://code.google.com/apis/ajaxlanguage/">Google Ajax Language API</a> to translate the users input text to the chosen output language.</p>
<p><img class="aligncenter size-full wp-image-124" title="airTranslate-screenshot" src="http://blog.thumnet.com/wp-content/uploads/2009/09/airTranslate-screenshot.png" alt="airTranslate-screenshot" width="560" height="383" /></p>
<p>airTranslate features:</p>
<ul>
<li>Multi platform</li>
<li>Auto detection of input language</li>
<li>Drag and drop input text (with auto translation)</li>
<li>Dock to tray icon (Windows only)</li>
<li>Translate from clipboard (with auto translation)</li>
<li>Auto store last chosen translation language</li>
<li>Update notification</li>
</ul>
<p><strong>airTranslate </strong>is available at Google code: <a href="http://code.google.com/p/thumnet/downloads/list">http://code.google.com/p/thumnet/downloads/list</a></p>
<p>The project is open source, and sources are available at <a href="http://code.google.com/p/thumnet/source/browse/#svn/trunk/Air">http://code.google.com/p/thumnet/source/browse/#svn/trunk/Air</a>. <span style="background-color: #ffffff;">It is possible to request new functions and report issues through the Google code website.</span></p>
<p>To run Adobe AIR programs you need to download and install the<a href="http://get.adobe.com/air/"> Adobe AIR runtime</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thumnet.com/airtranslate-on-google-code/123/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Release Pixeled-Multicolor Theme for WordPress</title>
		<link>http://blog.thumnet.com/release-pixeled-multicolor-theme-for-wordpress/90/</link>
		<comments>http://blog.thumnet.com/release-pixeled-multicolor-theme-for-wordpress/90/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 17:04:51 +0000</pubDate>
		<dc:creator>ThumNet</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[pixeled-multicolor]]></category>

		<guid isPermaLink="false">http://blog.thumnet.com/?p=90</guid>
		<description><![CDATA[In my previous post I talked about the modifications I had made to the Pixeled WordPress theme. Well about 2 months ago I send the creator of the Pixeled theme an email requesting him to read my blogpost about the changes I had made to his theme. But since then I haven&#8217;t heard anything from &#8230; </p><p><a class="more-link block-button" href="http://blog.thumnet.com/release-pixeled-multicolor-theme-for-wordpress/90/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://blog.thumnet.com/welcome-thumnet-blog/1/">previous post</a> I talked about the modifications I had made to the <a href="http://wordpress.org/extend/themes/pixeled">Pixeled</a> WordPress theme.</p>
<p>Well about 2 months ago I send the creator of the Pixeled theme an email requesting him to read my blogpost about the changes I had made to his theme.<br />
But since then I haven&#8217;t heard anything from him, so I decided to release the pixeled-multicolor theme myself.</p>
<p>Some screenshots:<br />

<a href='http://blog.thumnet.com/release-pixeled-multicolor-theme-for-wordpress/90/pixeled-red-right/' title='pixeled-red-right'><img width="150" height="150" src="http://blog.thumnet.com/wp-content/uploads/2009/07/pixeled-red-right-150x150.jpg" class="attachment-thumbnail" alt="Pixeled-Multicolor Red" title="pixeled-red-right" /></a>
<a href='http://blog.thumnet.com/release-pixeled-multicolor-theme-for-wordpress/90/pixeled-red-left/' title='pixeled-red-left'><img width="150" height="150" src="http://blog.thumnet.com/wp-content/uploads/2009/07/pixeled-red-left-150x150.jpg" class="attachment-thumbnail" alt="Pixeled-Multicolor Red (with menu on the Left)" title="pixeled-red-left" /></a>
<a href='http://blog.thumnet.com/release-pixeled-multicolor-theme-for-wordpress/90/pixeled-green/' title='pixeled-green'><img width="150" height="150" src="http://blog.thumnet.com/wp-content/uploads/2009/07/pixeled-green-150x150.jpg" class="attachment-thumbnail" alt="Pixeled-Multicolor Green" title="pixeled-green" /></a>
<a href='http://blog.thumnet.com/release-pixeled-multicolor-theme-for-wordpress/90/pixeled-blue/' title='pixeled-blue'><img width="150" height="150" src="http://blog.thumnet.com/wp-content/uploads/2009/07/pixeled-blue-150x150.jpg" class="attachment-thumbnail" alt="Pixeled-Multicolor Blue" title="pixeled-blue" /></a>
</p>
<p>Download <a href="http://blog.thumnet.com/wp-content/uploads/2009/07/pixeled-multicolor_20090701.zip">Pixeled-Multicolor</a> (release 20090701)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thumnet.com/release-pixeled-multicolor-theme-for-wordpress/90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

