<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>trace of thought (Scott Colestock)</title>
    <link>http://www.traceofthought.net/</link>
    <description>a trace of thought on...BizTalk Server, Team Foundation Server, AppFabric, etc.</description>
    <language>en-us</language>
    <copyright>Scott Colestock</copyright>
    <lastBuildDate>Tue, 13 Apr 2010 18:30:31 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>scolestock@marcatopartners.net</managingEditor>
    <webMaster>scolestock@marcatopartners.net</webMaster>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TraceOfThoughtScottColestock" /><feedburner:info uri="traceofthoughtscottcolestock" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
      <trackback:ping>http://www.traceofthought.net/Trackback.aspx?guid=32fbbfcb-4bd7-4ec6-a74e-07e9c7408dd6</trackback:ping>
      <pingback:server>http://www.traceofthought.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.traceofthought.net/PermaLink,guid,32fbbfcb-4bd7-4ec6-a74e-07e9c7408dd6.aspx</pingback:target>
      <dc:creator>Scott Colestock</dc:creator>
      <wfw:comment>http://www.traceofthought.net/CommentView,guid,32fbbfcb-4bd7-4ec6-a74e-07e9c7408dd6.aspx</wfw:comment>
      <wfw:commentRss>http://www.traceofthought.net/SyndicationService.asmx/GetEntryCommentsRss?guid=32fbbfcb-4bd7-4ec6-a74e-07e9c7408dd6</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
A blog post?  Here?? Yes, I know it has been an extremely long while.  I've
been doing some writing over <a href="http://marcatopartners.com/posts/">here</a>,
for the blog associated with my new company (Marcato Partners, LLC) that is focused
on agile development coaching.  Even with that focus, I'm still doing technical
consulting of course - I just delivered <a href="http://marcatopartners.files.wordpress.com/2010/04/scottappfabriccachetalk.pdf">this
talk</a> on Velocity (AppFabric Caching) at the Twin Cities Code Camp this past weekend
(April 10, 2010).  I’ll be delivering something close to this again at the May
20th, 2010 at the local <a href="http://mnbiztalk.com/">Connected Systems User Group</a>. 
</p>
        <img width="0" height="0" src="http://www.traceofthought.net/aggbug.ashx?id=32fbbfcb-4bd7-4ec6-a74e-07e9c7408dd6" />
      <xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/TraceOfThoughtScottColestock/~4/GmDil5_wB8Q" height="1" width="1" /></body>
      <title>Talk on Velocity (AppFabric Caching)&amp;hellip;</title>
      <guid isPermaLink="false">http://www.traceofthought.net/PermaLink,guid,32fbbfcb-4bd7-4ec6-a74e-07e9c7408dd6.aspx</guid>
      <link>http://feedproxy.google.com/~r/TraceOfThoughtScottColestock/~3/GmDil5_wB8Q/TalkOnVelocityAppFabricCachinghellip.aspx</link>
      <pubDate>Tue, 13 Apr 2010 18:30:31 GMT</pubDate>
      <description>&lt;p&gt;
A blog post?&amp;nbsp; Here?? Yes, I know it has been an extremely long while.&amp;nbsp; I've
been doing some writing over &lt;a href="http://marcatopartners.com/posts/"&gt;here&lt;/a&gt;,
for the blog associated with my new company (Marcato Partners, LLC) that is focused
on agile development coaching.&amp;nbsp; Even with that focus, I'm still doing technical
consulting of course - I just delivered &lt;a href="http://marcatopartners.files.wordpress.com/2010/04/scottappfabriccachetalk.pdf"&gt;this
talk&lt;/a&gt; on Velocity (AppFabric Caching) at the Twin Cities Code Camp this past weekend
(April 10, 2010).&amp;nbsp; I’ll be delivering something close to this again at the May
20th, 2010 at the local &lt;a href="http://mnbiztalk.com/"&gt;Connected Systems User Group&lt;/a&gt;. 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.traceofthought.net/aggbug.ashx?id=32fbbfcb-4bd7-4ec6-a74e-07e9c7408dd6" /&gt;</description>
      <comments>http://www.traceofthought.net/CommentView,guid,32fbbfcb-4bd7-4ec6-a74e-07e9c7408dd6.aspx</comments>
    <feedburner:origLink>http://www.traceofthought.net/2010/04/13/TalkOnVelocityAppFabricCachinghellip.aspx</feedburner:origLink></item>
    <item>
      <trackback:ping>http://www.traceofthought.net/Trackback.aspx?guid=26a916ed-d73a-4711-8429-53f59e5c8bfb</trackback:ping>
      <pingback:server>http://www.traceofthought.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.traceofthought.net/PermaLink,guid,26a916ed-d73a-4711-8429-53f59e5c8bfb.aspx</pingback:target>
      <dc:creator>Scott Colestock</dc:creator>
      <wfw:comment>http://www.traceofthought.net/CommentView,guid,26a916ed-d73a-4711-8429-53f59e5c8bfb.aspx</wfw:comment>
      <wfw:commentRss>http://www.traceofthought.net/SyndicationService.asmx/GetEntryCommentsRss?guid=26a916ed-d73a-4711-8429-53f59e5c8bfb</wfw:commentRss>
      <slash:comments>4</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">You see quite a few code samples for retrieving
"FullName" (or other properties) from an Active Directory that look like this:<br /><pre>string directoryPath = "WinNT://somedomain/someuser";<br />
string fullName;<br /><br />
DirectoryEntry directoryEntry = new DirectoryEntry(directoryPath);<br />
if (directoryEntry.Properties["FullName"].Value != null)<br />
{<br />
fullName = directoryEntry.Properties["FullName"].Value.ToString();<br />
}<br /></pre><p>
One issue with this code is that when "somedomain" actually corresponds to the local
machine name (because your are trying to retrieve the "FullName" of a local account),
it can take an extremely long time to run. This is probably because the underlying
framework is off trying to find a domain controller before falling back to the local
security store.
</p><p>
To work around this, consider code that would look like the following when formulating
the directory path:
</p><pre>string[] identities = windowsIdentity.Name.Split('\\');<br />
string directoryPath;<br />
if(Environment.UserDomainName.Equals(Environment.MachineName,StringComparison.OrdinalIgnoreCase))<br />
{<br />
// special case needed for "off domain" case.<br />
directoryPath = "WinNT://localhost/" + identities[1];<br />
}<br />
else<br />
{<br />
directoryPath = "WinNT://" + identities[0] + "/" + identities[1];<br />
}<br /></pre>
Using "localhost" will cause the property retrieval to be just about instantaneous,
whereas using the computer name (from a local account Windows identity) results in
up to a twelve second delay.<br /><p /><img width="0" height="0" src="http://www.traceofthought.net/aggbug.ashx?id=26a916ed-d73a-4711-8429-53f59e5c8bfb" /><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/TraceOfThoughtScottColestock/~4/AKarVPU2jJI" height="1" width="1" /></body>
      <title>Retrieving "FullName" property for a local account...</title>
      <guid isPermaLink="false">http://www.traceofthought.net/PermaLink,guid,26a916ed-d73a-4711-8429-53f59e5c8bfb.aspx</guid>
      <link>http://feedproxy.google.com/~r/TraceOfThoughtScottColestock/~3/AKarVPU2jJI/RetrievingFullNamePropertyForALocalAccount.aspx</link>
      <pubDate>Wed, 13 May 2009 14:24:59 GMT</pubDate>
      <description>You see quite a few code samples for retrieving "FullName" (or other properties) from an Active Directory that look like this:&lt;br&gt;
&lt;pre&gt;string directoryPath = "WinNT://somedomain/someuser";&lt;br&gt;
string fullName;&lt;br&gt;
&lt;br&gt;
DirectoryEntry directoryEntry = new DirectoryEntry(directoryPath);&lt;br&gt;
if (directoryEntry.Properties["FullName"].Value != null)&lt;br&gt;
{&lt;br&gt;
fullName = directoryEntry.Properties["FullName"].Value.ToString();&lt;br&gt;
}&lt;br&gt;
&lt;/pre&gt;
&lt;p&gt;
One issue with this code is that when "somedomain" actually corresponds to the local
machine name (because your are trying to retrieve the "FullName" of a local account),
it can take an extremely long time to run. This is probably because the underlying
framework is off trying to find a domain controller before falling back to the local
security store.
&lt;/p&gt;
&lt;p&gt;
To work around this, consider code that would look like the following when formulating
the directory path:
&lt;/p&gt;
&lt;pre&gt;string[] identities = windowsIdentity.Name.Split('\\');&lt;br&gt;
string directoryPath;&lt;br&gt;
if(Environment.UserDomainName.Equals(Environment.MachineName,StringComparison.OrdinalIgnoreCase))&lt;br&gt;
{&lt;br&gt;
// special case needed for "off domain" case.&lt;br&gt;
directoryPath = "WinNT://localhost/" + identities[1];&lt;br&gt;
}&lt;br&gt;
else&lt;br&gt;
{&lt;br&gt;
directoryPath = "WinNT://" + identities[0] + "/" + identities[1];&lt;br&gt;
}&lt;br&gt;
&lt;/pre&gt;
Using "localhost" will cause the property retrieval to be just about instantaneous,
whereas using the computer name (from a local account Windows identity) results in
up to a twelve second delay.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.traceofthought.net/aggbug.ashx?id=26a916ed-d73a-4711-8429-53f59e5c8bfb" /&gt;</description>
      <comments>http://www.traceofthought.net/CommentView,guid,26a916ed-d73a-4711-8429-53f59e5c8bfb.aspx</comments>
      <category>General</category>
    <feedburner:origLink>http://www.traceofthought.net/2009/05/13/RetrievingFullNamePropertyForALocalAccount.aspx</feedburner:origLink></item>
    <item>
      <trackback:ping>http://www.traceofthought.net/Trackback.aspx?guid=6802396d-3e64-457c-8f71-7f83313d45cd</trackback:ping>
      <pingback:server>http://www.traceofthought.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.traceofthought.net/PermaLink,guid,6802396d-3e64-457c-8f71-7f83313d45cd.aspx</pingback:target>
      <dc:creator>Scott Colestock</dc:creator>
      <wfw:comment>http://www.traceofthought.net/CommentView,guid,6802396d-3e64-457c-8f71-7f83313d45cd.aspx</wfw:comment>
      <wfw:commentRss>http://www.traceofthought.net/SyndicationService.asmx/GetEntryCommentsRss?guid=6802396d-3e64-457c-8f71-7f83313d45cd</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">Star Trek Premier and MIX09 recap, all
in one night in the Twin Cities on May 8th.<br /><a href="http://slickthought.net/post/2009/04/ugMIX-Event-Coming-to-Minneapolis-on-May-8th%21%21%21.aspx">A
match made in heaven</a>, naturally.<br /><p /><img width="0" height="0" src="http://www.traceofthought.net/aggbug.ashx?id=6802396d-3e64-457c-8f71-7f83313d45cd" /><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/TraceOfThoughtScottColestock/~4/wNE2kusP4K4" height="1" width="1" /></body>
      <title>MIX09 Recap and Star Trek premier...</title>
      <guid isPermaLink="false">http://www.traceofthought.net/PermaLink,guid,6802396d-3e64-457c-8f71-7f83313d45cd.aspx</guid>
      <link>http://feedproxy.google.com/~r/TraceOfThoughtScottColestock/~3/wNE2kusP4K4/MIX09RecapAndStarTrekPremier.aspx</link>
      <pubDate>Fri, 17 Apr 2009 16:12:44 GMT</pubDate>
      <description>Star Trek Premier and MIX09 recap, all in one night in the Twin Cities on May 8th.&lt;br&gt;
&lt;a href="http://slickthought.net/post/2009/04/ugMIX-Event-Coming-to-Minneapolis-on-May-8th%21%21%21.aspx"&gt;A
match made in heaven&lt;/a&gt;, naturally.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.traceofthought.net/aggbug.ashx?id=6802396d-3e64-457c-8f71-7f83313d45cd" /&gt;</description>
      <comments>http://www.traceofthought.net/CommentView,guid,6802396d-3e64-457c-8f71-7f83313d45cd.aspx</comments>
    <feedburner:origLink>http://www.traceofthought.net/2009/04/17/MIX09RecapAndStarTrekPremier.aspx</feedburner:origLink></item>
    <item>
      <trackback:ping>http://www.traceofthought.net/Trackback.aspx?guid=8e2240f3-c7b8-4aa7-94b6-06fac6080bac</trackback:ping>
      <pingback:server>http://www.traceofthought.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.traceofthought.net/PermaLink,guid,8e2240f3-c7b8-4aa7-94b6-06fac6080bac.aspx</pingback:target>
      <dc:creator>Scott Colestock</dc:creator>
      <wfw:comment>http://www.traceofthought.net/CommentView,guid,8e2240f3-c7b8-4aa7-94b6-06fac6080bac.aspx</wfw:comment>
      <wfw:commentRss>http://www.traceofthought.net/SyndicationService.asmx/GetEntryCommentsRss?guid=8e2240f3-c7b8-4aa7-94b6-06fac6080bac</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">I had a chance to do a talk on profiling
code for Microsoft's "<a href="http://www.slickthought.net/post/2009/02/Minneapolis-and-Saint-Louis-Build-Your-Skills-Best-Practices-for-NET-Developers-Events.aspx">Build
Your Skills</a>" event on March 24th in St. Louis (and March 31st in Minneapolis). 
I mentioned a utility I'd written for cleaning up performance session files that are
generated from URLs (so that only DLL/EXE remain.)  You can find that <a href="misc/fixpsess.zip">here</a>. 
In addition, you can find the slides <a href="misc/SColestockCodeProfilingTalk.pdf">here</a>. 
All sorts of fun details on profiling terminology, types of profiles, resigning assemblies
(or turning off assembly verification), etc.  I'm hoping to record a screen cast
of the talk soon...<br /><br />
Fantastic turnout at both locations, and really great questions - thanks to those
who attended!<br /><p /><img width="0" height="0" src="http://www.traceofthought.net/aggbug.ashx?id=8e2240f3-c7b8-4aa7-94b6-06fac6080bac" /><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/TraceOfThoughtScottColestock/~4/qMc45Iyx4lk" height="1" width="1" /></body>
      <title>Code Profiling talk (and utility)...</title>
      <guid isPermaLink="false">http://www.traceofthought.net/PermaLink,guid,8e2240f3-c7b8-4aa7-94b6-06fac6080bac.aspx</guid>
      <link>http://feedproxy.google.com/~r/TraceOfThoughtScottColestock/~3/qMc45Iyx4lk/CodeProfilingTalkAndUtility.aspx</link>
      <pubDate>Sat, 04 Apr 2009 19:18:10 GMT</pubDate>
      <description>I had a chance to do a talk on profiling code for Microsoft's "&lt;a href="http://www.slickthought.net/post/2009/02/Minneapolis-and-Saint-Louis-Build-Your-Skills-Best-Practices-for-NET-Developers-Events.aspx"&gt;Build
Your Skills&lt;/a&gt;" event on March 24th in St. Louis (and March 31st in Minneapolis).&amp;nbsp;
I mentioned a utility I'd written for cleaning up performance session files that are
generated from URLs (so that only DLL/EXE remain.)&amp;nbsp; You can find that &lt;a href="misc/fixpsess.zip"&gt;here&lt;/a&gt;.&amp;nbsp;
In addition, you can find the slides &lt;a href="misc/SColestockCodeProfilingTalk.pdf"&gt;here&lt;/a&gt;.&amp;nbsp;
All sorts of fun details on profiling terminology, types of profiles, resigning assemblies
(or turning off assembly verification), etc.&amp;nbsp; I'm hoping to record a screen cast
of the talk soon...&lt;br&gt;
&lt;br&gt;
Fantastic turnout at both locations, and really great questions - thanks to those
who attended!&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.traceofthought.net/aggbug.ashx?id=8e2240f3-c7b8-4aa7-94b6-06fac6080bac" /&gt;</description>
      <comments>http://www.traceofthought.net/CommentView,guid,8e2240f3-c7b8-4aa7-94b6-06fac6080bac.aspx</comments>
      <category>General</category>
    <feedburner:origLink>http://www.traceofthought.net/2009/04/04/CodeProfilingTalkAndUtility.aspx</feedburner:origLink></item>
    <item>
      <trackback:ping>http://www.traceofthought.net/Trackback.aspx?guid=d37061c8-55a3-4305-b625-73d44ca709aa</trackback:ping>
      <pingback:server>http://www.traceofthought.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.traceofthought.net/PermaLink,guid,d37061c8-55a3-4305-b625-73d44ca709aa.aspx</pingback:target>
      <dc:creator>Scott Colestock</dc:creator>
      <wfw:comment>http://www.traceofthought.net/CommentView,guid,d37061c8-55a3-4305-b625-73d44ca709aa.aspx</wfw:comment>
      <wfw:commentRss>http://www.traceofthought.net/SyndicationService.asmx/GetEntryCommentsRss?guid=d37061c8-55a3-4305-b625-73d44ca709aa</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">I had a chance to do an updated version
of my TFS 2008 / Scrum talk at the <a href="http://vstsmn.net/">MN VSTS User Group</a>. 
Slides are <a href="misc/ScrumWithTFSVSTS2009.ppt">here</a>.<br />
What a great turnout!  And great questions from the group...<br /><p /><img width="0" height="0" src="http://www.traceofthought.net/aggbug.ashx?id=d37061c8-55a3-4305-b625-73d44ca709aa" /><xhtml:img xmlns:xhtml="http://www.w3.org/1999/xhtml" src="http://feeds.feedburner.com/~r/TraceOfThoughtScottColestock/~4/5ss7QyOG7Sw" height="1" width="1" /></body>
      <title>TFS 2008 / Scrum talk at MN VSTS User Group...</title>
      <guid isPermaLink="false">http://www.traceofthought.net/PermaLink,guid,d37061c8-55a3-4305-b625-73d44ca709aa.aspx</guid>
      <link>http://feedproxy.google.com/~r/TraceOfThoughtScottColestock/~3/5ss7QyOG7Sw/TFS2008ScrumTalkAtMNVSTSUserGroup.aspx</link>
      <pubDate>Tue, 24 Mar 2009 19:42:42 GMT</pubDate>
      <description>I had a chance to do an updated version of my TFS 2008 / Scrum talk at the &lt;a href="http://vstsmn.net/"&gt;MN
VSTS User Group&lt;/a&gt;.&amp;nbsp; Slides are &lt;a href="misc/ScrumWithTFSVSTS2009.ppt"&gt;here&lt;/a&gt;.&lt;br&gt;
What a great turnout!&amp;nbsp; And great questions from the group...&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.traceofthought.net/aggbug.ashx?id=d37061c8-55a3-4305-b625-73d44ca709aa" /&gt;</description>
      <comments>http://www.traceofthought.net/CommentView,guid,d37061c8-55a3-4305-b625-73d44ca709aa.aspx</comments>
      <category>Team System</category>
    <feedburner:origLink>http://www.traceofthought.net/2009/03/24/TFS2008ScrumTalkAtMNVSTSUserGroup.aspx</feedburner:origLink></item>
  </channel>
</rss>

