<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Shawn's MIIS/ILM Tricks, PKI Hints, and Résumé Writing Prevention Tips  : Visual C#</title><link>http://blogs.technet.com/shawnrab/archive/tags/Visual+C_2300_/default.aspx</link><description>Tags: Visual C#</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MIIS/ILM Tricks: ILM Fantasy Football</title><link>http://blogs.technet.com/shawnrab/archive/2008/08/12/miis-ilm-tricks-ilm-fantasy-football.aspx</link><pubDate>Tue, 12 Aug 2008 22:00:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3104341</guid><dc:creator>shawnrab</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/shawnrab/comments/3104341.aspx</comments><wfw:commentRss>http://blogs.technet.com/shawnrab/commentrss.aspx?PostID=3104341</wfw:commentRss><description>&lt;P&gt;Hello Everyone!&lt;/P&gt;
&lt;P&gt;In the light of the upcoming football season, I am going to start a new series of blog posts where we will utilize Identity Lifecycle Manager to create our own Fantasy Football engine.&amp;nbsp; The posts will split time between this TechNet blog and my MSDN blog, &lt;A href="http://blogs.msdn.com/therabournidentity"&gt;http://blogs.msdn.com/therabournidentity&lt;/A&gt;.&amp;nbsp; The goal is to think outside of the box, have fun and hopefully associate our findings with real-world issues.&lt;/P&gt;
&lt;P&gt;Rules of Engagement:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; We will utilize Identity Lifecycle Manager 2007 with Feature Pack 1 as the main engine and since I use Virtual Machines on the road, I will use one single virtual machine for the entire solution.&amp;nbsp; When relevant scenarios arise, I will let everyone know what the good practices are.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; We are only allowed to use Active Directory, ADAM, SQL and File-based Management Agents.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;3.&amp;nbsp; The Fantasy Football league will be a Hybrid College/Professional league.&amp;nbsp; Players will be able to select College and Professional players and rules will be adjusted accordingly.&lt;/P&gt;
&lt;P&gt;4.&amp;nbsp; Once the next ILM version is released, we will upgrade the entire system.&lt;/P&gt;
&lt;P&gt;5.&amp;nbsp; Rules Extensions will be written in both C# and Visual Basic and posts will be made on my MSDN blog.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;6.&amp;nbsp; Reader submissions&amp;nbsp;and ideas will be accepted and fully credited.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;7.&amp;nbsp; Each post will have the appropriate technical level in the title (100-200-300-400)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;Later this week, we will create specification of the environment on the TechNet blog.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;Thanks!&lt;/P&gt;
&lt;P&gt;--Shawn &lt;/P&gt;
&lt;P&gt;&amp;nbsp;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3104341" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/shawnrab/archive/tags/MIIS_2F00_ILM/default.aspx">MIIS/ILM</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/ILM+FP1/default.aspx">ILM FP1</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/Visual+Basic/default.aspx">Visual Basic</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/Visual+C_2300_/default.aspx">Visual C#</category></item><item><title>MIIS/ILM Tricks: Where did the post go?</title><link>http://blogs.technet.com/shawnrab/archive/2007/12/11/miis-ilm-tricks-where-did-the-post-go.aspx</link><pubDate>Tue, 11 Dec 2007 22:45:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2636060</guid><dc:creator>shawnrab</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/shawnrab/comments/2636060.aspx</comments><wfw:commentRss>http://blogs.technet.com/shawnrab/commentrss.aspx?PostID=2636060</wfw:commentRss><description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To stay consistent with the overall theme of MSDN (Developers) and Technet (IT Professionals), the MIIS/ILM Related Posts with source code in them have been placed in my newly created MSDN blog: &lt;A href="http://blogs.msdn.com/therabournidentity"&gt;http://blogs.msdn.com/therabournidentity&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a good day!&lt;/P&gt;
&lt;P&gt;--Shawn&lt;/P&gt;
&lt;P&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=2636060" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/shawnrab/archive/tags/MIIS_2F00_ILM/default.aspx">MIIS/ILM</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/Visual+Basic/default.aspx">Visual Basic</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/Visual+C_2300_/default.aspx">Visual C#</category></item><item><title>MIIS/ILM Tricks - XML-based MIIS/ILM Metaverse Router (part 1)</title><link>http://blogs.technet.com/shawnrab/archive/2007/06/28/xml-based-miis-ilm-metaverse-router-part-1.aspx</link><pubDate>Thu, 28 Jun 2007 14:26:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1382361</guid><dc:creator>shawnrab</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.technet.com/shawnrab/comments/1382361.aspx</comments><wfw:commentRss>http://blogs.technet.com/shawnrab/commentrss.aspx?PostID=1382361</wfw:commentRss><description>&lt;P&gt;This content is now posted in the MSDN blogs:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/therabournidentity/archive/2007/12/11/miis-ilm-code-experiment-xml-based-miis-ilm-metaverse-router-part-1.aspx"&gt;http://blogs.msdn.com/therabournidentity/archive/2007/12/11/miis-ilm-code-experiment-xml-based-miis-ilm-metaverse-router-part-1.aspx&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Shawn&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=0&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=1382361" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/shawnrab/archive/tags/Provisioning/default.aspx">Provisioning</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/MIIS_2F00_ILM/default.aspx">MIIS/ILM</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/Metaverse/default.aspx">Metaverse</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/Visual+C_2300_/default.aspx">Visual C#</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/MVRouter/default.aspx">MVRouter</category></item><item><title>RWPT - My Day Ruining Maneuver</title><link>http://blogs.technet.com/shawnrab/archive/2006/12/13/slackerific-day-ruining-maneuver.aspx</link><pubDate>Thu, 14 Dec 2006 06:15:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:554676</guid><dc:creator>shawnrab</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/shawnrab/comments/554676.aspx</comments><wfw:commentRss>http://blogs.technet.com/shawnrab/commentrss.aspx?PostID=554676</wfw:commentRss><description>&lt;P&gt;So here is a nice little tip that is a direct result of sleep deprivation and bad habit.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I was working on some C# code that grabs some log files and wraps them up into a cab file and moves them off to a different location.&amp;nbsp; After that it clears the directory so new logs can be written.&amp;nbsp; In writing the code I figured I would take the liberty of trying to get&amp;nbsp;everything in the folder deleted except for the tool itself.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;So in thinking I&amp;nbsp;did this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;---snip---&lt;FONT color=#008080 size=2&gt;&lt;/P&gt;
&lt;P&gt;Directory&lt;/FONT&gt;&lt;FONT size=2&gt;.Delete(&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Directory&lt;/FONT&gt;&lt;FONT size=2&gt;.GetCurrentDirectory(), &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;---end---&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where &lt;FONT color=#008080 size=2&gt;Directory&amp;nbsp;&lt;FONT color=#000000&gt;refers to System.IO.Directory&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;So I am trucking along, writing some other functionality and I finally compiled the code...&amp;nbsp; I fixed the compilation errors (usually missing semi-colons or curly brackets) and I went to test.&amp;nbsp; I had a test directory C:\testdir\testdata where the tool was to be run in testdir and the data to be put in the cab file was in testdata.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Of course&amp;nbsp;at 2:30am I am&amp;nbsp;not thinking about the code I wrote an hour or two before, nor do I think about running this under the debugger.&amp;nbsp; No I dragged the tool from the debug directory straight into a&amp;nbsp;default command prompt.&amp;nbsp; I was puzzled as the code&amp;nbsp;did not return.&amp;nbsp; So I went and looked at the code, thinking I might have done something wrong.&amp;nbsp; I spent about 10 minutes looking.&amp;nbsp; I figured it was hung somewhere so&amp;nbsp;I looked for any potential hanging points - maybe a for loop where I put a&amp;nbsp;greater than sign&amp;nbsp;where I needed a less than sign or something like that.&amp;nbsp; I went to control + C the running code and I caught a glimpse of my desktop... &lt;/P&gt;
&lt;P&gt;Zero icons.&amp;nbsp; Of course I had no browsing history anymore either.&amp;nbsp; No PST's.&amp;nbsp; No documents in the My Documents folder.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;My default command prompt centers at %userprofile%...&amp;nbsp; the "true" in the Directory.Delete means "go into all of the sub directories and torch everything."&lt;/P&gt;
&lt;P&gt;Luckily I had a fairly recent backup.&amp;nbsp; For the rest I used a third party file recovery tool.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=554676" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/shawnrab/archive/tags/Visual+C_2300_/default.aspx">Visual C#</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/Mistakes/default.aspx">Mistakes</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/Backup_2F00_Restore/default.aspx">Backup/Restore</category></item></channel></rss>