<?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>subtle detour</title>
	<atom:link href="http://blog.subtledetour.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.subtledetour.com</link>
	<description>subtly taking you off course since 2009</description>
	<lastBuildDate>Thu, 04 Aug 2011 20:20:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Loop through SharePoint Profiles</title>
		<link>http://blog.subtledetour.com/2010/02/04/loop-through-sharepoint-profiles/</link>
		<comments>http://blog.subtledetour.com/2010/02/04/loop-through-sharepoint-profiles/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 16:54:19 +0000</pubDate>
		<dc:creator>e</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SharePoint 2007]]></category>

		<guid isPermaLink="false">http://blog.subtledetour.com/?p=52</guid>
		<description><![CDATA[Simple code sample showing how to retrieve profiles and their properties from a SharePoint site. Note: This code is relevant only if you&#8217;re running it on the SharePoint box, ie: web part, console app. If you need to access profiles outside of the box, use web services, as detailed by Michael Bowersox&#8217;s post. Microsoft.Office.Server.UserProfiles reference. [...]]]></description>
			<content:encoded><![CDATA[<p>Simple code sample showing how to retrieve profiles and their properties from a SharePoint site.</p>
<p>Note:</p>
<ul style="margin-top: 0px;">
<li>This code is relevant only if you&#8217;re running it on the SharePoint box, ie: web part, console app.  If you need to access profiles outside of the box, use web services, as detailed by Michael Bowersox&#8217;s <a target="_blank" href="http://www.michaelbowersox.com/tag/sharepoint-user-profiles/">post</a>.</li>
<li>Microsoft.Office.Server.UserProfiles reference.</li>
<li>Instantiate the UserProfileManager with your site context.</li>
<li>PropertyConstants for retrieval of pre-defined properties.  Every profile has a handful of standard properties, but check to make sure the property contains data to avoid a possible null reference exception.</li>
<li>Replace PropertyConstants with custom property name to get your custom properties.</li>
</ul>
<p><span id="more-52"></span></p>
<pre class="brush: csharp; highlight: [1,20,21,24,27]; title: ; notranslate">
using Microsoft.Office.Server.UserProfiles;

// Code Block for Profile Loop
using (SPSite site = new SPSite(spURL))
{
    try
    {
        // Get our context and the profile manager object
        ServerContext context = ServerContext.GetContext(site);
        UserProfileManager profileManager = new UserProfileManager(context);

        // Define our holder strings
        string firstName = string.Empty, lastName = string.Empty;
        string department = string.Empty, customProperty = string.Empty;

        // Loop through each user in the profile manager
        foreach (UserProfile user in profileManager)
        {
            // grab the first and last name
            firstName = user[PropertyConstants.FirstName].Count &gt; 0 ? user[PropertyConstants.FirstName].ToString() : string.Empty;
            lastName = user[PropertyConstants.LastName].Count &gt; 0 ? user[PropertyConstants.LastName].ToString() : string.Empty;

            // grab the department
            department = user[PropertyConstants.Department].Count &gt; 0 ? user[PropertyConstants.Department].ToString() : string.Empty;

            // grab a custom property
            customProperty = user[&quot;Custom Property Name&quot;].Count &gt; 0 ? user[&quot;Custom Property Name&quot;].ToString() : string.Empty;
         }
    }
    catch (Exception ex)
    {
        HandleException(ex);
    }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.subtledetour.com/2010/02/04/loop-through-sharepoint-profiles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eric C &#8211; TripHopHipHop</title>
		<link>http://blog.subtledetour.com/2009/08/11/eric-c-triphophiphop/</link>
		<comments>http://blog.subtledetour.com/2009/08/11/eric-c-triphophiphop/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 14:58:44 +0000</pubDate>
		<dc:creator>e</dc:creator>
				<category><![CDATA[Mixes]]></category>
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://blog.subtledetour.com/?p=40</guid>
		<description><![CDATA[Here is a little mix that I did, which I plan to expand into a 60 minner&#8230;sometime. Download audio file (eric_c_ -_triphophiphop.mp3)]]></description>
			<content:encoded><![CDATA[<p>Here is a little mix that I did, which I plan to expand into a 60 minner&#8230;sometime.</p>
<p><a href="http://blog.subtledetour.com/audio/eric_c_ -_triphophiphop.mp3">Download audio file (eric_c_ -_triphophiphop.mp3)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.subtledetour.com/2009/08/11/eric-c-triphophiphop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Massive Attack &#8211; Teardrop Loop</title>
		<link>http://blog.subtledetour.com/2009/04/08/massive-attack-teardrop-loop/</link>
		<comments>http://blog.subtledetour.com/2009/04/08/massive-attack-teardrop-loop/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 04:39:41 +0000</pubDate>
		<dc:creator>e</dc:creator>
				<category><![CDATA[Loops]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[massive attack]]></category>
		<category><![CDATA[teardrop]]></category>

		<guid isPermaLink="false">http://blog.subtledetour.com/?p=18</guid>
		<description><![CDATA[Another loop I made for a ringtone&#8230; Download audio file (massive_attack_-_teardrop_loop.mp3)]]></description>
			<content:encoded><![CDATA[<p>Another loop I made for a ringtone&#8230;</p>
<p><a href="http://blog.subtledetour.com/audio/massive_attack_-_teardrop_loop.mp3">Download audio file (massive_attack_-_teardrop_loop.mp3)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.subtledetour.com/2009/04/08/massive-attack-teardrop-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://blog.subtledetour.com/audio/massive_attack_-_teardrop_loop.mp3" length="1799617" type="audio/mpeg" />
		</item>
		<item>
		<title>MC 900 Ft Jesus &#8211; If I Only Had a Brain Loop</title>
		<link>http://blog.subtledetour.com/2009/04/06/mc-900-ft-jesus_-_if-i-only-had-a-brain-loop/</link>
		<comments>http://blog.subtledetour.com/2009/04/06/mc-900-ft-jesus_-_if-i-only-had-a-brain-loop/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 04:10:44 +0000</pubDate>
		<dc:creator>e</dc:creator>
				<category><![CDATA[Loops]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[loop]]></category>

		<guid isPermaLink="false">http://blog.subtledetour.com/?p=13</guid>
		<description><![CDATA[Here is a loop I did for my iPhone.  All memebers of triphopclan get this ringtone. Download audio file (mc_900_ft_jesus-if_i_only_had_a_brain_loop.mp3)]]></description>
			<content:encoded><![CDATA[<p>Here is a loop I did for my iPhone.  All memebers of <a title="TripHop Clan" href="http://www.triphopclan.com" target="_blank">triphopclan</a> get this ringtone.</p>
<p><a href="http://blog.subtledetour.com/audio/mc_900_ft_jesus-if_i_only_had_a_brain_loop.mp3">Download audio file (mc_900_ft_jesus-if_i_only_had_a_brain_loop.mp3)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.subtledetour.com/2009/04/06/mc-900-ft-jesus_-_if-i-only-had-a-brain-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://blog.subtledetour.com/audio/mc_900_ft_jesus-if_i_only_had_a_brain_loop.mp3" length="1207602" type="audio/mpeg" />
		</item>
		<item>
		<title>First Loop</title>
		<link>http://blog.subtledetour.com/2009/04/05/my-loop/</link>
		<comments>http://blog.subtledetour.com/2009/04/05/my-loop/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 01:48:31 +0000</pubDate>
		<dc:creator>e</dc:creator>
				<category><![CDATA[Loops]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[loop]]></category>

		<guid isPermaLink="false">http://blog.subtledetour.com/?p=5</guid>
		<description><![CDATA[Here is a little loop I did back in 1995 when I was messing around with Soundforge 4.5 Download audio file (e_-_loop.mp3)]]></description>
			<content:encoded><![CDATA[<p>Here is a little loop I did back in 1995 when I was messing around with Soundforge 4.5</p>
<p><a href="http://blog.subtledetour.com/audio/e_-_loop.mp3">Download audio file (e_-_loop.mp3)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.subtledetour.com/2009/04/05/my-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://blog.subtledetour.com/audio/e_-_loop.mp3" length="211155" type="audio/mpeg" />
		</item>
	</channel>
</rss>

