<?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/"
	>

<channel>
	<title>BinaryJam</title>
	<atom:link href="http://www.binaryjam.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.binaryjam.com</link>
	<description>A place for Sharepoint, .NEt and maybe even a little Silverlight</description>
	<pubDate>Tue, 30 Jun 2009 08:31:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hands up if you hate STP&#8217;s</title>
		<link>http://www.binaryjam.com/2009/06/30/hands-up-if-you-hate-stps/</link>
		<comments>http://www.binaryjam.com/2009/06/30/hands-up-if-you-hate-stps/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 08:31:40 +0000</pubDate>
		<dc:creator>Binaryjam</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.binaryjam.com/2009/06/30/hands-up-if-you-hate-stps/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>Is it me ?&#160; Have I missed something ? Are STP&#8217;s the best thing on the planet for quickly creating SharePoint sites ?</p>
<p>Or is it as I believe the biggest pain in the backside for SharePoint developers to pick up someone else&#8217;s SharePoint project to make changes to the site definition pages only to discover they were hacked together in the interface saved as an STP and included in your project.</p>
<p>This is now the case for me on two of my inherited projects, I hate them.&#160; Now I know that if you create standard site templates with an onet etc, once created, there are elements of the definition that are now content and would have be be manipulated via the API to change them (or interface). But consider if you have a problem and are searching in a HUGE project for where your specific list might be or other such content, can you find in in Studio by searching ? No you can&#8217;t cos it&#8217;s all cabbed up in a file.</p>
<p>So my advice to anyone even considering using STP&#8217;s, think again are you doing it cos it&#8217;s quick and your a contractor soon to leave the company anyway so what the hell, or are you a developer who might have to make changes and maintain your project.&#160; Seriously think twice, is this the best way to develop this solution, is there some advantage to an STP over a site def ? think before you start hacking away.</p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:60903f11-9ecf-4226-9ba4-072aa697bcf1" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/wss3" rel="tag">wss3</a>,<a href="http://technorati.com/tags/moss" rel="tag">moss</a>,<a href="http://technorati.com/tags/sharepoint" rel="tag">sharepoint</a></div>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F30%2Fhands-up-if-you-hate-stps%2F&amp;title=Hands+up+if+you+hate+STP%26%238217%3Bs" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F30%2Fhands-up-if-you-hate-stps%2F&amp;title=Hands+up+if+you+hate+STP%26%238217%3Bs" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F30%2Fhands-up-if-you-hate-stps%2F&amp;title=Hands+up+if+you+hate+STP%26%238217%3Bs" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F30%2Fhands-up-if-you-hate-stps%2F&amp;title=Hands+up+if+you+hate+STP%26%238217%3Bs" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F30%2Fhands-up-if-you-hate-stps%2F&amp;title=Hands+up+if+you+hate+STP%26%238217%3Bs', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F30%2Fhands-up-if-you-hate-stps%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F30%2Fhands-up-if-you-hate-stps%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F30%2Fhands-up-if-you-hate-stps%2F&amp;title=Hands+up+if+you+hate+STP%26%238217%3Bs" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F30%2Fhands-up-if-you-hate-stps%2F&amp;title=Hands+up+if+you+hate+STP%26%238217%3Bs" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.binaryjam.com/2009/06/30/hands-up-if-you-hate-stps/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sharepoint Versioning - Gotcha 2</title>
		<link>http://www.binaryjam.com/2009/06/10/sharepoint-versioning-gotcha-2/</link>
		<comments>http://www.binaryjam.com/2009/06/10/sharepoint-versioning-gotcha-2/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 18:24:50 +0000</pubDate>
		<dc:creator>Binaryjam</dc:creator>
		
		<category><![CDATA[Sharepoint]]></category>

		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://www.binaryjam.com/?p=482</guid>
		<description><![CDATA[I&#8217;ve had a right game with this Sharepoint Versioning problem.
Now those of you used to writing .NET but maybe not SharePoint will be used to having AssemblyVersion attributes set in the AssemblyInfo.cs files.
This is something I took into my last SharePoint application for wss3.&#160; Now in SharePoint 2003 I got used to not setting the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had a right game with this Sharepoint Versioning problem.</p>
<p>Now those of you used to writing .NET but maybe not SharePoint will be used to having AssemblyVersion attributes set in the AssemblyInfo.cs files.</p>
<p>This is something I took into my last SharePoint application for wss3.&#160; Now in SharePoint 2003 I got used to not setting the version number but it slipped my mind for WSS 3.0.</p>
<p>My particular problem was I had some ItemAdding/Updating List events.&#160; These were configured to fire in one of my Assemblies. My build server would automatically increment version numbers in AssemblyInfo.cs and in all associated .xml files in the features, very clever I thought at the time.&#160; Now I needed to update this assembly and modify some code in these events.</p>
<p>I made those changes and installed it and all of a sudden none of the events were firing at all.</p>
<p>This is because when a list is created the EventReceiver details of the feature are not read from the XML file but are stored against the List in the content database.&#160; This makes some sense as if you update the list template then you can update the EventReceivers as well and have different versions of a list definition with different handlers. </p>
<p>In my experience it&#8217;s more likely that you will want to modify all the existing lists and template as your probably implementing a fix, especially if using SharePoint as an app platform.</p>
<p>So how to fix my now rogue ItemReceivers.&#160; I could do some fancy coding in Feature activations etc, but I really don&#8217;t want to go there and have code left lying about for what will essentially be a one time fix.</p>
<p>To the rescue PowerShell.&#160; Luckily for me we use PowerShell so I&#160; can create a post update installation script that runs just this once.</p>
<p>Here is the gist of it.</p>
<blockquote><p><font face="Courier New" size="2"><font color="#80ff80"><font color="#008000">###############################################################           <br /># Validate args            <br />###############################################################</font>          <br /></font>&#160;&#160;&#160; if ($args.Length -ne 1 -or $args[0] -eq &quot;-?&quot;)        <br />&#160;&#160;&#160; {        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host &quot;Usage: .\FixIt.ps1 &lt;SiteUrl&gt;&quot;;        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; return;        <br />&#160;&#160;&#160; }        <br />&#160;&#160;&#160; $SiteUrl = $args[0];        <br />&#160;&#160;&#160; cls</font></p>
</blockquote>
<blockquote><p><font face="Courier New" color="#008000" size="2">###############################################################       <br />#Get Base Objects        <br />############################################################### </font></p>
<p><font face="Courier New" size="2">&#160;&#160;&#160; [void][System.Reflection.Assembly]::LoadWithPartialName(&quot;Microsoft.SharePoint&quot;)       <br />&#160;&#160;&#160; $site = New-Object Microsoft.SharePoint.SPSite $SiteUrl        <br />&#160;&#160;&#160; $web = $site.RootWeb        <br />&#160;&#160;&#160; $lists=$web.Lists </font></p>
<p><font face="Courier New" color="#008000" size="2">###############################################################       <br />#Change List Event Receivers        <br />############################################################### </font></p>
<p><font face="Courier New" size="2">$list=$lists[&quot;BrokenList&quot;] </font></p>
<p><font face="Courier New" size="2"><font color="#008000">#I happen to know there are only 4 Receivers really I should use the count         <br /></font></font><font face="Courier New" size="2"><font color="#008000">#One of them is named wrong as well hence the 3 cases          <br />#(in the real version I fixed that too)          <br />#You need to count backwards as it deletes and re-inserts so a foreach wont #work.</font>        <br /></font></p>
<p><font face="Courier New" size="2">for ($i=3;$i -ge 0;$i&#8211;)       <br />{        <br />&#160;&#160;&#160; $er=$list.EventReceivers[$i]        <br />&#160;&#160;&#160; switch($er.Name)        <br />&#160;&#160;&#160; {        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;BinaryJam BrokenList Receiver ItemUpdating&quot;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $er.Assembly=&quot;BinaryJam.MySharePointApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1111111111111111&quot;        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $er.Update()        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;BinaryJam BrokenList Receiver ItemAdded&quot;         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $er.Assembly=&quot;BinaryJam.MySharePointApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1111111111111111&quot;        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $er.Update()        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;BinaryJam BrokenList Receiver ItemAdding&quot;        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $er.Assembly=&quot;BinaryJam.MySharePointApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1111111111111111&quot;        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $er.Update()        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }        <br />&#160;&#160;&#160; }        <br />} </font></p>
<p><font face="Courier New" size="2">$list.Update()</font></p>
</blockquote>
<p>&#160;</p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:f411c7de-e250-4854-bb9e-f3bc7ede69e1" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/sharepoint" rel="tag">sharepoint</a>,<a href="http://technorati.com/tags/powershell" rel="tag">powershell</a>,<a href="http://technorati.com/tags/sharepoint%20versioning" rel="tag">sharepoint versioning</a></div>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F10%2Fsharepoint-versioning-gotcha-2%2F&amp;title=Sharepoint+Versioning+-+Gotcha+2" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F10%2Fsharepoint-versioning-gotcha-2%2F&amp;title=Sharepoint+Versioning+-+Gotcha+2" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F10%2Fsharepoint-versioning-gotcha-2%2F&amp;title=Sharepoint+Versioning+-+Gotcha+2" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F10%2Fsharepoint-versioning-gotcha-2%2F&amp;title=Sharepoint+Versioning+-+Gotcha+2" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F10%2Fsharepoint-versioning-gotcha-2%2F&amp;title=Sharepoint+Versioning+-+Gotcha+2', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F10%2Fsharepoint-versioning-gotcha-2%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F10%2Fsharepoint-versioning-gotcha-2%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F10%2Fsharepoint-versioning-gotcha-2%2F&amp;title=Sharepoint+Versioning+-+Gotcha+2" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F10%2Fsharepoint-versioning-gotcha-2%2F&amp;title=Sharepoint+Versioning+-+Gotcha+2" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.binaryjam.com/2009/06/10/sharepoint-versioning-gotcha-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WSS 3 &#8211; AssemblyVersion - Gotcha</title>
		<link>http://www.binaryjam.com/2009/06/04/wss-3-assemblyversion-gotcha/</link>
		<comments>http://www.binaryjam.com/2009/06/04/wss-3-assemblyversion-gotcha/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 18:19:06 +0000</pubDate>
		<dc:creator>Binaryjam</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.binaryjam.com/2009/06/04/wss-3-assemblyversion-gotcha/</guid>
		<description><![CDATA[Well what a great gotcha I had today.&#160; I have a WSS application you know custom list templates, event receivers web parts, everything you can think of except workflow.
So I have an upgrade for this, its a new dll and feature files.&#160; I use a build server that can automatically update the AssemblyVersion and automatically [...]]]></description>
			<content:encoded><![CDATA[<p>Well what a great gotcha I had today.&#160; I have a WSS application you know custom list templates, event receivers web parts, everything you can think of except workflow.</p>
<p>So I have an upgrade for this, its a new dll and feature files.&#160; I use a build server that can automatically update the AssemblyVersion and automatically edit the dwp aspx ascx files etc to set the version number of the build, its very slick.</p>
<p>Forgetting one thing.&#160; SharePoint has never liked Version numbers. So I applied the update and my webpart fails with safe control errors.&#160; </p>
<p>I forgot when you add the webparts it copies the dwp complete with version number into the content database and I just uninstalled that DLL. DOH!&#160; </p>
<p>After figuring this out with the help of Captain Literal.Net, I stopped my build auto updating the versions and grepping the files etc.&#160; It still marks the file version number to help the support guys but not the AssemblyInfo DLL versions now.</p>
<p>According to the Cap’n its not just the webpart dwp’s but lots of other features (small F)&#160; that don’t like changes to AssemblyVersions, in fact there is code in SharePoint that deliberately IGNORES policy files.</p>
<p>So there you have it, again Versioning is a bit dodge in Scarepoint. Choose when to do it and know what the effects will be.&#160; And don’t forget to take those *’s&#160; (stars) out of the AssemblyVersion attributes and FIX it to 1.0.0.0.</p>
<p>However you can change the Feature.XML file and change the Feature versions this doesn’t have any effect that we have noticed. </p>
<p>Im thinking of throwing together a feature that reads all installed features (hidden or not) and displays the details like title, description and version.</p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c1943213-b6d0-4fe6-9300-aa42cefcc48f" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/wss3" rel="tag">wss3</a>,<a href="http://technorati.com/tags/moss" rel="tag">moss</a>,<a href="http://technorati.com/tags/sharepoint" rel="tag">sharepoint</a></div>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F04%2Fwss-3-assemblyversion-gotcha%2F&amp;title=WSS+3+%26ndash%3B+AssemblyVersion+-+Gotcha" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F04%2Fwss-3-assemblyversion-gotcha%2F&amp;title=WSS+3+%26ndash%3B+AssemblyVersion+-+Gotcha" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F04%2Fwss-3-assemblyversion-gotcha%2F&amp;title=WSS+3+%26ndash%3B+AssemblyVersion+-+Gotcha" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F04%2Fwss-3-assemblyversion-gotcha%2F&amp;title=WSS+3+%26ndash%3B+AssemblyVersion+-+Gotcha" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F04%2Fwss-3-assemblyversion-gotcha%2F&amp;title=WSS+3+%26ndash%3B+AssemblyVersion+-+Gotcha', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F04%2Fwss-3-assemblyversion-gotcha%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F04%2Fwss-3-assemblyversion-gotcha%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F04%2Fwss-3-assemblyversion-gotcha%2F&amp;title=WSS+3+%26ndash%3B+AssemblyVersion+-+Gotcha" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F06%2F04%2Fwss-3-assemblyversion-gotcha%2F&amp;title=WSS+3+%26ndash%3B+AssemblyVersion+-+Gotcha" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.binaryjam.com/2009/06/04/wss-3-assemblyversion-gotcha/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SPUtility.SendEmail Function truncates text</title>
		<link>http://www.binaryjam.com/2009/02/10/sputilitysendemail-function-truncates-text/</link>
		<comments>http://www.binaryjam.com/2009/02/10/sputilitysendemail-function-truncates-text/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 14:53:49 +0000</pubDate>
		<dc:creator>Binaryjam</dc:creator>
		
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://www.binaryjam.com/2009/02/10/sputilitysendemail-function-truncates-text/</guid>
		<description><![CDATA[It would appear that 
SPUtility.SendEmail function truncates the body of the email.&#160;&#160; I&#8217;m having this problem and so is someone else (here).
Not much more to add here, if anyone knows why or knows of a setting, love to here it
(please don&#8217;t post a workaround solution using .Net objects we can all figure that one out [...]]]></description>
			<content:encoded><![CDATA[<p>It would appear that </p>
<h3>SPUtility.SendEmail function truncates the body of the email.&nbsp;&nbsp; I&#8217;m having this problem and so is someone else (<a href="http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/3b7627e4-886d-48db-8c54-13fdbaa6dcb6/" target="_blank">here</a>).</h3>
<p>Not much more to add here, if anyone knows why or knows of a setting, love to here it</p>
<p><em>(please don&#8217;t post a workaround solution using .Net objects we can all figure that one out for ourselves thanks.)</em></p>
<p>Word of the day.</p>
<p>Damn.</p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:e7fec88c-bb51-446b-a8ab-7515beb06438" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/sharepoint" rel="tag">sharepoint</a>,<a href="http://technorati.com/tags/wss" rel="tag">wss</a></div>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fsputilitysendemail-function-truncates-text%2F&amp;title=SPUtility.SendEmail+Function+truncates+text" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fsputilitysendemail-function-truncates-text%2F&amp;title=SPUtility.SendEmail+Function+truncates+text" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fsputilitysendemail-function-truncates-text%2F&amp;title=SPUtility.SendEmail+Function+truncates+text" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fsputilitysendemail-function-truncates-text%2F&amp;title=SPUtility.SendEmail+Function+truncates+text" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fsputilitysendemail-function-truncates-text%2F&amp;title=SPUtility.SendEmail+Function+truncates+text', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fsputilitysendemail-function-truncates-text%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fsputilitysendemail-function-truncates-text%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fsputilitysendemail-function-truncates-text%2F&amp;title=SPUtility.SendEmail+Function+truncates+text" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fsputilitysendemail-function-truncates-text%2F&amp;title=SPUtility.SendEmail+Function+truncates+text" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.binaryjam.com/2009/02/10/sputilitysendemail-function-truncates-text/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WSS - CAML and XSD schemas</title>
		<link>http://www.binaryjam.com/2009/02/10/wss-caml-and-xsd-schemas/</link>
		<comments>http://www.binaryjam.com/2009/02/10/wss-caml-and-xsd-schemas/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 11:30:14 +0000</pubDate>
		<dc:creator>Binaryjam</dc:creator>
		
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://www.binaryjam.com/2009/02/10/wss-caml-and-xsd-schemas/</guid>
		<description><![CDATA[If you developing List Schemas drop what your doing and go and install this.
CAML.NET.Intellisense
It is an expanded wss.xsd file containing a lot of descriptions and possible default values. When coding in Visual Studio using this will alter the schema defs and give you uber intellisense on your schema files.
If you already use wss.xsd in Visual [...]]]></description>
			<content:encoded><![CDATA[<p>If you developing List Schemas drop what your doing and go and install this.</p>
<p><a href="http://johnholliday.net/post/2009/01/18/Feed-your-CAML-some-IntelliSense-so-it-doesnt-bite-you-in-the-you-know-what!.aspx" target="_blank">CAML.NET.Intellisense</a></p>
<p>It is an expanded wss.xsd file containing a lot of descriptions and possible default values. When coding in Visual Studio using this will alter the schema defs and give you uber intellisense on your schema files.</p>
<p>If you already use wss.xsd in Visual Studio you will need to remove your reference.</p>
<p>Now if you forgot how you did that then the usual way I found of configuring it was to goto</p>
<blockquote><p>C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas</p>
</blockquote>
<p>(or equivalent for your platform)</p>
<p>An to create a file called wsscatalog.xml, you may have called it something else but it contains xml like this</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; height: 113px; background-color: #f4f4f4">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   1:</span> <span style="color: #0000ff">&lt;</span><span style="color: #800000">SchemaCatalog</span> <span style="color: #ff0000">xmlns</span><span style="color: #0000ff">="http://schemas.microsoft.com/xsd/catalog"</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   2:</span>   <span style="color: #0000ff">&lt;</span><span style="color: #800000">Schema</span> <span style="color: #ff0000">href</span><span style="color: #0000ff">="%CommonProgramFiles%/Microsoft Shared/web server extensions/12/TEMPLATE/XML/wss.xsd"</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   3:</span>           <span style="color: #ff0000">targetNamespace</span><span style="color: #0000ff">="http://schemas.microsoft.com/sharepoint/"</span> <span style="color: #0000ff">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   4:</span> <span style="color: #0000ff">&lt;/</span><span style="color: #800000">SchemaCatalog</span><span style="color: #0000ff">&gt;</span></pre>
</div>
</div>
<p>&nbsp;</p>
<p>So go and remove that before installing this version as it won&#8217;t remove it for you and Studio can fight over things if you don&#8217;t or just not work at all as was my case.</p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:cae81535-c098-4c9f-ae3b-b265f0f24fe7" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/wss" rel="tag">wss</a>,<a href="http://technorati.com/tags/visual%20studio" rel="tag">visual studio</a>,<a href="http://technorati.com/tags/caml" rel="tag">caml</a>,<a href="http://technorati.com/tags/intellisense" rel="tag">intellisense</a></div>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fwss-caml-and-xsd-schemas%2F&amp;title=WSS+-+CAML+and+XSD+schemas" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fwss-caml-and-xsd-schemas%2F&amp;title=WSS+-+CAML+and+XSD+schemas" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fwss-caml-and-xsd-schemas%2F&amp;title=WSS+-+CAML+and+XSD+schemas" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fwss-caml-and-xsd-schemas%2F&amp;title=WSS+-+CAML+and+XSD+schemas" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fwss-caml-and-xsd-schemas%2F&amp;title=WSS+-+CAML+and+XSD+schemas', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fwss-caml-and-xsd-schemas%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fwss-caml-and-xsd-schemas%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fwss-caml-and-xsd-schemas%2F&amp;title=WSS+-+CAML+and+XSD+schemas" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F02%2F10%2Fwss-caml-and-xsd-schemas%2F&amp;title=WSS+-+CAML+and+XSD+schemas" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.binaryjam.com/2009/02/10/wss-caml-and-xsd-schemas/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WSS - ListView / Schema.xml and Embedding Javascript</title>
		<link>http://www.binaryjam.com/2009/02/09/wss-listview-schemaxml-and-embedding-javascript/</link>
		<comments>http://www.binaryjam.com/2009/02/09/wss-listview-schemaxml-and-embedding-javascript/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 11:07:06 +0000</pubDate>
		<dc:creator>Binaryjam</dc:creator>
		
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://www.binaryjam.com/2009/02/09/wss-listview-schemaxml-and-embedding-javascript/</guid>
		<description><![CDATA[Many of you out there in SharePoint land will from time to time have the need to edit a list definitions schema.xml file to create your custom list.&#160; You may also have need to edit the List View in that schema file to create a different kind of view, one not possible to create by [...]]]></description>
			<content:encoded><![CDATA[<p>Many of you out there in SharePoint land will from time to time have the need to edit a list definitions schema.xml file to create your custom list.&nbsp; You may also have need to edit the List View in that schema file to create a different kind of view, one not possible to create by the SharePoint UI.</p>
<p>I have had need to do this recently.&nbsp; I needed a List View that highlighted expired items or tickets in my list.&nbsp; It needed to make them go red.</p>
<p>Now you might think that&#8217;s easy enough create a calculated field that does date maths on the date you have in the list item and the current date that gives basically 1 or 0 for expired or not.&nbsp; Well you&#8217;d be wrong.&nbsp; You see you can&#8217;t use [Today] or anything like it in a calculated field the list wants fixed not dynamic values in it and will not allow Dynamic values, think about it, it would seriously effect performance.</p>
<p>Rather than create a DataViewWebPart based on my list view and edit that to death, it did not give me exactly what I required, even with editing, and the time to do it would be longer for me to achieve.&nbsp; I decided to embed Javascript code into my ListView.</p>
<p><span id="more-477"></span>
<p>Starting with a function definition that takes parameters and then spits out one TD tag or another based on the date difference, I placed this in the &lt;ViewHeader&gt; section of my custom view.</p>
<p>The next bit was the bit I was struggling with as because I was new to this I was calling my function in the &lt;ViewBody&gt; section where I replaced the normal output of a TD tag with this.</p>
<blockquote><p>&lt;HTML&gt;&lt;![CDATA[&lt;script type='text/javascript'&gt;]]&gt;&lt;/HTML&gt;<br />&lt;HTML&gt;&lt;![CDATA[MakeItRed("]]&gt;&lt;/HTML&gt;<br />&lt;Field Name=&#8221;ExpectedCompletionDate&#8221; StripWS=&#8221;TRUE&#8221;/&gt;<br />&lt;HTML&gt;&lt;![CDATA[","]]&gt;&lt;/HTML&gt;<br />&lt;Field Name=&#8221;SLA&#8221; StripWS=&#8221;TRUE&#8221;&nbsp; /&gt;<br />&lt;HTML&gt;&lt;![CDATA[");]]&gt;&lt;/HTML&gt;<br />&lt;HTML&gt;&lt;![CDATA[&lt;/script&gt;]]&gt;&lt;/HTML&gt;</p>
</blockquote>
<p>Well this kind works, but the problem is that the &lt;FIELD&gt; tag output the HTML required to make it look good in a list.&nbsp; Now in my case the date had &lt;NOBR&gt; tags around it, and the SLA is a lookup so has a bit &lt;A&gt; link around it.&nbsp;
<p>Now if a Service pack comes along and changes the render for the &lt;FIELD&gt; tags, my code is then scuppered, the regex I employed to strip out the data could become a nonsense.&nbsp; But I could not find any attribute of the Field Tag to spit out the Data value not the render text.
<p>The reason behind this is simple, its related to RTFM!&nbsp; The is an element of the List View schema called &lt;Column&gt; it is responsible for outputting values unformatted.&nbsp; It also has additional attributes the &lt;FIELD&gt; does not to allow formatting of data like a date format.
<p>My code now reads like this<br />
<blockquote>
<p>&lt;HTML&gt;&lt;![CDATA[&lt;script type='text/javascript'&gt;]]&gt;&lt;/HTML&gt;<br />&lt;HTML&gt;&lt;![CDATA[MakeItRed("]]&gt;&lt;/HTML&gt;<br />&lt;Column Name=&#8221;ExpectedCompletionDate&#8221; StripWS=&#8221;TRUE&#8221; Format=&#8221;ISO8601&#8243;/&gt;<br />&lt;HTML&gt;&lt;![CDATA[","]]&gt;&lt;/HTML&gt;<br />&lt;Column Name=&#8221;SLA&#8221; StripWS=&#8221;TRUE&#8221;&nbsp; /&gt;<br />&lt;HTML&gt;&lt;![CDATA[");]]&gt;&lt;/HTML&gt;<br />&lt;HTML&gt;&lt;![CDATA[&lt;/script&gt;]]&gt;&lt;/HTML&gt;</p>
</blockquote>
<p>Notice the user of the Format=&#8221;ISO8601&#8243; attribute of the date column.
<p>Now my list view can display items that have expired in an alternate colour.&nbsp;
<p>One downside is that the Column for the Lookup field shows the ID only, which in a Listview might be restrictive and the &lt;Column2&gt; tag does not display the text as it would do for a URL field. Luckily for me my lookup list is unchangeable security blocks modifications.
<p>So it&#8217;s really worth opening the WSS3 SDK and navigate to<br />
<blockquote>
<p>General Reference-&gt;Reference-&gt;Collaborative Application Markup Language Core Schemas</p>
</blockquote>
<p>and take a look at all the schemas you may have to edit before you try and crowbar something in that already exits.</p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:f9a6ad09-24f4-4e02-9a9d-88ac888f2a60" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/wss" rel="tag">wss</a>,<a href="http://technorati.com/tags/sharepoint" rel="tag">sharepoint</a>,<a href="http://technorati.com/tags/list%20view" rel="tag">list view</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.binaryjam.com/2009/02/09/wss-listview-schemaxml-and-embedding-javascript/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WSS SharePoint and Powershell</title>
		<link>http://www.binaryjam.com/2009/02/06/wss-sharepoint-and-powershell/</link>
		<comments>http://www.binaryjam.com/2009/02/06/wss-sharepoint-and-powershell/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 13:04:10 +0000</pubDate>
		<dc:creator>Binaryjam</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.binaryjam.com/2009/02/06/wss-sharepoint-and-powershell/</guid>
		<description><![CDATA[This is just a quick note to ask the question
Are you using Powershell when developing your WSS application ?

Cos if your not your missing a trick.

When I build a SharePoint App that comes complete with data, for example you have a list definition and in the Elements file it pre-populates all your Admin Users and [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a quick note to ask the question</p>
<blockquote><p>Are you using Powershell when developing your WSS application ?</p>
</blockquote>
<p>Cos if your not your missing a trick.</p>
<p><span id="more-476"></span>
<p>When I build a SharePoint App that comes complete with data, for example you have a list definition and in the Elements file it pre-populates all your Admin Users and their details.&nbsp; Thing is if you using multiple deployment platforms for testing etc, Dev,Uat, Live for example then those values may not be the same on all platforms.</p>
<p>So do you have 3 different builds ?&nbsp; Thus you have not tested your live build when it comes to deploy it ?</p>
<p>Then this is when Powershell is really handy.&nbsp; Because of the great .NET integration you can just access the Object model in Powershell and modify all the data you created.</p>
<p>Here is an example script I use, it trashes and recreates a site collection and then manipulates the list data from the original (live ready) values to dev ones.</p>
<p>#Powershell can call stsadm provided its rigged up correctly to know where the PATH is<br />stsadm -o deactivatefeature&nbsp;&nbsp; -url http://moss.binaryjam.com/apps/JAM -name BinaryJam.JammyApplication <br />stsadm -o deletesite -url http://moss.binaryjam.com/apps/JAM<br />stsadm -o createsite -url &#8220;http://moss.binaryjam.com/apps/JAM&#8221; -title &#8220;JAM&#8221; -ownerlogin &#8220;home\simon&#8221; -owneremail comments@binaryjam.com -sitetemplate &#8220;sts#1&#8243;&nbsp; <br />stsadm -o activatefeature&nbsp;&nbsp; -url &#8220;http://moss.binaryjam.com/apps/JAM&#8221; -name BinaryJam.JammyApplication
<p>$site= new-object Microsoft.Sharepoint.SPSite(&#8221;http://moss.binaryjam.com/apps/JAM&#8221;)<br />$web=$site.RootWeb<br />$list = $web.Lists["MyMainList"]
<p>#My Site has an SPGroup so add some users to it<br />$super = $web.Groups["My Super Users"];<br />$super.AddUser(&#8221;home\theWife&#8221;, &#8220;wife@nosuchmail.com&#8221;, &#8220;Wife, The&#8221;, &#8220;&#8221;);<br />$super.AddUser(&#8221;home\theCat&#8221;, &#8220;cat@nosuchmail.com&#8221;, &#8220;Cat, The&#8221;, &#8220;&#8221;);
<p>#If there is an email then change it&nbsp; <br />foreach ($item in $list.items ) <br />{<br />&nbsp;&nbsp;&nbsp; $needsUpdate = $false
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($item["UsersEmail"])<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($item["UsersEmail"].ToString().Length -gt 0)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $item["UsersEmail"] = &#8220;adminmain@nosuchmail.com&#8221;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $needsUpdate = $true<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($item["UsersName"])<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($item["UsersName"].ToString().Length -gt 0)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $item["UsersName"] = &#8220;DevSystemUserName&#8221;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $needsUpdate = $true<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($needsUpdate -eq $true)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $item.Update()<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp; }</p>
]]></content:encoded>
			<wfw:commentRss>http://www.binaryjam.com/2009/02/06/wss-sharepoint-and-powershell/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Custom Forms in WSS</title>
		<link>http://www.binaryjam.com/2009/01/30/custom-forms-in-wss/</link>
		<comments>http://www.binaryjam.com/2009/01/30/custom-forms-in-wss/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 10:00:09 +0000</pubDate>
		<dc:creator>Binaryjam</dc:creator>
		
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://www.binaryjam.com/2009/01/30/custom-forms-in-wss/</guid>
		<description><![CDATA[This isn&#8217;t going to be an essay or guide on how to do this, it&#8217;s just I&#8217;ve been doing this and had the following problem.
I have custom forms as the default ones don&#8217;t cut it, they don&#8217;t cut it cos of hierarchical dependencies in dropdown lists.&#160; Now I don&#8217;t have the time to do lots [...]]]></description>
			<content:encoded><![CDATA[<p>This isn&#8217;t going to be an essay or guide on how to do this, it&#8217;s just I&#8217;ve been doing this and had the following problem.</p>
<p>I have custom forms as the default ones don&#8217;t cut it, they don&#8217;t cut it cos of hierarchical dependencies in dropdown lists.&#160; Now I don&#8217;t have the time to do lots of ajax or try to fight to get some ajax framework approved by, whoever, to use in my product.&#160; So I&#8217;m using good old fashioned postbacks.</p>
<p>But postbacks on large forms are annoying and you need to return to the same scroll position.</p>
<p>Since .Net 2.0 there has been built in the MaintainScrollPositionOnPostBack directive for the @Page, something that&#8217;s as new to me as .net 2.0 (I was doing SAP for a bit for fun and a break remember ?) .</p>
<p>You can use this in your custom forms to.</p>
<p>Now I don&#8217;t know how much custom forms stuff you may have done, but I want CodeBehind in mine and struggled to get any code-behind, so I have custom forms that host another user control that I do have code-behind in.</p>
<p>In that Code I use the following</p>
<blockquote><p>this.Page.Master.Page.MaintainScrollPositionOnPostBack = true;</p>
</blockquote>
<p>&#160;</p>
<p>Now if you have a custom master page then you can use that @Page directive instead, if your using the default on then you can use this instead.</p>
<p>Works a treat.</p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:48cb3799-9253-4273-ab65-39dd33904fa9" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/sharepoint%20wss" rel="tag">sharepoint wss</a>,<a href="http://technorati.com/tags/moss" rel="tag">moss</a></div>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F30%2Fcustom-forms-in-wss%2F&amp;title=Custom+Forms+in+WSS" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F30%2Fcustom-forms-in-wss%2F&amp;title=Custom+Forms+in+WSS" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F30%2Fcustom-forms-in-wss%2F&amp;title=Custom+Forms+in+WSS" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F30%2Fcustom-forms-in-wss%2F&amp;title=Custom+Forms+in+WSS" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F30%2Fcustom-forms-in-wss%2F&amp;title=Custom+Forms+in+WSS', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F30%2Fcustom-forms-in-wss%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F30%2Fcustom-forms-in-wss%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F30%2Fcustom-forms-in-wss%2F&amp;title=Custom+Forms+in+WSS" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F30%2Fcustom-forms-in-wss%2F&amp;title=Custom+Forms+in+WSS" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.binaryjam.com/2009/01/30/custom-forms-in-wss/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Songsmith</title>
		<link>http://www.binaryjam.com/2009/01/29/songsmith/</link>
		<comments>http://www.binaryjam.com/2009/01/29/songsmith/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 09:52:49 +0000</pubDate>
		<dc:creator>Binaryjam</dc:creator>
		
		<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.binaryjam.com/2009/01/29/songsmith/</guid>
		<description><![CDATA[In case you have not heard, Microsoft Research have come up with some song writing software.&#160; It&#8217;s called Songsmith.
The idea behind it is that you make up a tune in your head then sing it into songsmith.&#160; First you pick a music style and then a tempo and then sing away.&#160; Once recorded&#160; the software [...]]]></description>
			<content:encoded><![CDATA[<p>In case you have not heard, Microsoft Research have come up with some song writing software.&#160; It&#8217;s called <a href="http://research.microsoft.com/en-us/um/redmond/projects/songsmith/" target="_blank">Songsmith</a>.</p>
<p>The idea behind it is that you make up a tune in your head then sing it into songsmith.&#160; First you pick a music style and then a tempo and then sing away.&#160; Once recorded&#160; the software will analyse your song and the notes you sang,( hopefully you sang them in tune I don&#8217;t think it cleverly pitch shifts your voice, but I may be wrong ) and then it will create a musical accompaniment in the style you selected.</p>
<p>Now I know what your thinking but the MS web site states</p>
<blockquote><p>&quot;The samples you hear in Songsmith aren&#8217;t toy sounds&#8230; they&#8217;re a high-powered general MIDI set from <a href="http://www.garritan.com">Garritan</a>, one of the biggest names in the industry&quot;</p>
</blockquote>
<p>With resources like this how can it fail ?</p>
<p>Now it&#8217;s not aimed at pros but to give anyone a chance to write a song, well my son is seven and is not a musician, yet, he hasn&#8217;t displayed any interest in that area, until recently, but even he hears that the stuff this thing produces is absolute pap.&#160; It can&#8217;t even compose a good jingle, take a listen to the <a href="http://www.youtube.com/watch?v=3oGFogwcx-E" target="_blank">MS videos</a> and cringe.</p>
<p>Where the genius of Songsmith lies, and this was totally unintentional I&#8217;m sure, was the sheer comedy value provided when you take songs you know and feed the vocals into Songsmith and have it re-write the original into the dreadful &quot;early eighties, cheap casiotone&quot; sounding affair it produces.</p>
<p>Youtube is starting to accumulate examples of Songsmith Massacres.&#160; Radio heads Creep, britney&#8217;s Toxic, battery by metallica and loads more.&#160;&#160; </p>
<p>So I wouldn&#8217;t bother getting Songsmith but go take a look on youtube and laugh your pants off on the utter tosh it produces. </p>
<p>&#160;</p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:acc81da9-9385-4ad0-9185-c4a25a89feef" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/songsmith" rel="tag">songsmith</a></div>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F29%2Fsongsmith%2F&amp;title=Songsmith" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F29%2Fsongsmith%2F&amp;title=Songsmith" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F29%2Fsongsmith%2F&amp;title=Songsmith" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F29%2Fsongsmith%2F&amp;title=Songsmith" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F29%2Fsongsmith%2F&amp;title=Songsmith', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F29%2Fsongsmith%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F29%2Fsongsmith%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F29%2Fsongsmith%2F&amp;title=Songsmith" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F29%2Fsongsmith%2F&amp;title=Songsmith" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.binaryjam.com/2009/01/29/songsmith/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Being Human</title>
		<link>http://www.binaryjam.com/2009/01/27/being-human-2/</link>
		<comments>http://www.binaryjam.com/2009/01/27/being-human-2/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 09:29:01 +0000</pubDate>
		<dc:creator>Binaryjam</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.binaryjam.com/2009/01/27/being-human-2/</guid>
		<description><![CDATA[Last night with tons of advertising and announcements (I don&#8217;t think), the first series of Being Human snuck its way onto the schedules.
Well done BBC for finally getting there with this series.
I&#8217;d love to tell you how good or bad it was but due to the marvelous media campaign I missed it, I stumbled across [...]]]></description>
			<content:encoded><![CDATA[<p>Last night with tons of advertising and announcements (I don&#8217;t think), the first series of Being Human snuck its way onto the schedules.</p>
<p>Well done BBC for finally getting there with this series.</p>
<p>I&#8217;d love to tell you how good or bad it was but due to the <strong>marvelous</strong> media campaign I missed it, I stumbled across it half way through the episode where I managed to see all the characters and the new actors playing two of them.&#160; </p>
<p>Like I say I missed it so I wonder how the new actors will fit, if at all, the characters we were introduced to.&#160; I do have doubts about the ghost, far to attractive and very removed from the pilot character, who I absolutely loved.&#160; Is this a real improvement to help the story or just eye candy to keep part of the male audience who struggle with plots engaged.&#160; I don&#8217;t doubt the young ladies ability she seemed very good but its not the funny, kooky plain northern lass obsessed with making tea entrenched in routine to cope with her death and being tied to the house.</p>
<p>Anyone who did watch, what do you think ? Does it measure up to the pilot ?</p>
<p>Anyway, I can be thankful for iPlayer and will watch all of it tonight.</p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:8da49ba6-bb51-427c-97e5-23dc4f2d47e2" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/being%20human" rel="tag">being human</a></div>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F27%2Fbeing-human-2%2F&amp;title=Being+Human" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F27%2Fbeing-human-2%2F&amp;title=Being+Human" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F27%2Fbeing-human-2%2F&amp;title=Being+Human" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F27%2Fbeing-human-2%2F&amp;title=Being+Human" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F27%2Fbeing-human-2%2F&amp;title=Being+Human', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://del.icio.us/favicon.ico" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F27%2Fbeing-human-2%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F27%2Fbeing-human-2%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F27%2Fbeing-human-2%2F&amp;title=Being+Human" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.binaryjam.com%2F2009%2F01%2F27%2Fbeing-human-2%2F&amp;title=Being+Human" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.binaryjam.com/2009/01/27/being-human-2/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
