<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" 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:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Tech Off</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/forums/techoff/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Tech Off</title><link>http://channel9.msdn.com/forums/TechOff/</link></image><description>Want to keep the conversation technical? This is the place. Hard hat required.</description><link>http://channel9.msdn.com/forums/TechOff/</link><language>en-us</language><pubDate>Sun, 22 Nov 2009 19:06:46 GMT</pubDate><lastBuildDate>Sun, 22 Nov 2009 19:06:46 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>DMX512, serialport and .Net</title><description>&lt;p&gt;I've got &lt;a href="http://www.martin.com/product/product.asp?product=maniascx600"&gt;this device&lt;/a&gt; laying around in my room and last week I decided to try if I can control it using vb.net. The device is connected from a usb port on my laptop to the dmx port. It has a serial converter built in so Windows sees it as COM4. The problem is that my application doesn't work. I tried to implement the code based on &lt;a href="http://www.dmx512-online.com/packt.html"&gt;Ujjal's DMX512 page&lt;/a&gt;, did I make any mistake?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[code language="vb"]&lt;/p&gt;
&lt;p&gt;Public Sub New()&lt;br /&gt;&amp;nbsp;sp = New SerialPort("COM4", 250000, Parity.None, 8, StopBits.Two)&lt;br /&gt;&amp;nbsp;sp.Open()&lt;br /&gt;End Sub&lt;/p&gt;
&lt;p&gt;Public Sub Send(ByVal data As Byte())&lt;br /&gt;&amp;nbsp;'Send break time&lt;br /&gt;&amp;nbsp;sp.BreakState = True&lt;br /&gt;&amp;nbsp;Threading.Thread.Sleep(10)&lt;br /&gt;&amp;nbsp;sp.BreakState = False&lt;/p&gt;
&lt;p&gt;&amp;nbsp;'Send Mark After Break (MAB)&lt;br /&gt;&amp;nbsp;sp.Write(New Byte() {255}, 0, 1)&lt;br /&gt;&amp;nbsp;'Send Start Code (SC)&lt;br /&gt;&amp;nbsp;sp.StopBits = StopBits.Two&lt;br /&gt;&amp;nbsp;sp.Write(New Byte() {0}, 0, 1)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;'Send dmx data&lt;br /&gt;&amp;nbsp;sp.Write(data, 0, data.Length)&lt;br /&gt;End Sub[/code]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The byte array that gets passed in is this one:&lt;/p&gt;
&lt;p&gt;[code language="vb"]&lt;/p&gt;
&lt;p&gt;With lSettings &lt;br /&gt;&amp;nbsp;.Add(8) ' Shutter open&lt;br /&gt;&amp;nbsp;.Add(255) ' 100%&lt;br /&gt;&amp;nbsp;.Add(24) ' Color wheel (red)&lt;br /&gt;&amp;nbsp;.Add(0) ' Gobo selection (open)&lt;br /&gt;&amp;nbsp;.Add(0) ' Gobo rotation type (stop)&lt;br /&gt;&amp;nbsp;.Add(128) ' Pan (neutral)&lt;br /&gt;&amp;nbsp;.Add(128) ' Tilt (neutral)&lt;br /&gt;End With[/code]&lt;/p&gt;&lt;img src="http://channel9.msdn.com/508205/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/508205-DMX512-serialport-and-Net/</comments><link>http://channel9.msdn.com/forums/TechOff/508205-DMX512-serialport-and-Net/</link><pubDate>Sun, 22 Nov 2009 19:06:46 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/508205-DMX512-serialport-and-Net/</guid><evnet:views>32</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/508205/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I've got this device laying around in my room and last week I decided to try if I can control it using vb.net. The device is connected from a usb port on my laptop to the dmx port. It has a serial converter built in so Windows sees it as COM4. The problem is that my application doesn't work. I tried&amp;#8230;</evnet:previewtext><dc:creator>ZippyV</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/508205-DMX512-serialport-and-Net/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/508205/Trackback.aspx</trackback:ping></item><item><title>ASP.NET MVC documentation for Visual Studio 2008</title><description>&lt;p&gt;Is there a download for this somewhere that I can't find. Installing ASP.NET MVC itself doesn't seem to add any documentation to the help browser in VS2008. It exists in the online MSDN library though:-&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.web.mvc.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.web.mvc.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I re-downloaded and did a repair with the MSI of the VS2008 SP1 documentation set just to check, and that doesn't include it.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/508005/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/508005-ASPNET-MVC-documentation-for-Visual-Studio-2008/</comments><link>http://channel9.msdn.com/forums/TechOff/508005-ASPNET-MVC-documentation-for-Visual-Studio-2008/</link><pubDate>Sat, 21 Nov 2009 19:49:20 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/508005-ASPNET-MVC-documentation-for-Visual-Studio-2008/</guid><evnet:views>51</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/508005/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Is there a download for this somewhere that I can't find. Installing ASP.NET MVC itself doesn't seem to add any documentation to the help browser in VS2008. It exists in the online MSDN library though:-
http://msdn.microsoft.com/en-us/library/system.web.mvc.aspx
&amp;nbsp;
I re-downloaded and did a&amp;#8230;</evnet:previewtext><dc:creator>rhm</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/508005-ASPNET-MVC-documentation-for-Visual-Studio-2008/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/508005/Trackback.aspx</trackback:ping></item><item><title>Some of my views</title><description>&lt;p&gt;NIKE is a good brand, I personally like it better. Not only because of the style or quality nike shoes. And it's strategy is very much appreciated. Talking about the present campaign is the brand nike, adidas, puma, and so few, but should be counted the most popular when nike had. This is a strategy they are inextricably linked.&lt;br /&gt;NIKE is the final design of their products, styles, every year it is to launch a lot of popular styles out, before I go to school inside the school when a friend bought sports shoes are basically first consider the first went to Kanxia The new nike, shows that their popularity degree. NIKE shoes wear very comfortable, appropriate to relax the foot well.&lt;br /&gt;NIKE can always find a good brand agency star, Michael Jordan, Kobe Bryant, James, etc. are well known biggest names. Through these stars make a lot of people tend to put on the star's feelings to the nike, produced a good effect sought after. I have bought many pairs of nike shoes, really liked. Particularly fond of&amp;nbsp;&lt;a href="http://www.dunksky.com/"&gt; nike dunk sb.&lt;/a&gt; In the country there are many sports brands, but it feels so good not many. These companies in many ways, with foreign brands compared to these large there are many deficiencies. But I estimate that with the continuous improvement, the domestic will emerge a lot of internationally renowned sports brand.&lt;br /&gt;&lt;a href="http://www.dunksky.com/"&gt;http://www.dunksky.com/&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/507965/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/507965-Some-of-my-views/</comments><link>http://channel9.msdn.com/forums/TechOff/507965-Some-of-my-views/</link><pubDate>Sat, 21 Nov 2009 16:15:48 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/507965-Some-of-my-views/</guid><evnet:views>47</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/507965/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>NIKE is a good brand, I personally like it better. Not only because of the style or quality nike shoes. And it's strategy is very much appreciated. Talking about the present campaign is the brand nike, adidas, puma, and so few, but should be counted the most popular when nike had. This is a strategy&amp;#8230;</evnet:previewtext><dc:creator>siligongsi</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/507965-Some-of-my-views/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/507965/Trackback.aspx</trackback:ping></item><item><title>DataTemplate.DataType alternative in Silverlight 3</title><description>&lt;p&gt;In Silverlight 3, if you declare a DataTemplate in XAML, there's no way to change the template based on the type of the bound item. In WPF, you can set the DataType property on the DataTemplate, but that property doesn't exist in SL3. Is there any sort of alternative to this? Perhaps an event that gets fired each time an item gets bound, so that you can set the DataTemplate manually in code? I need this functionality in an SL3 application, but the way it looks now, if I want to change the template based on the item's type I have to drop databinding altogether and just manually iterate through an array and add the items myself. Any way around this?&lt;/p&gt;&lt;img src="http://channel9.msdn.com/507936/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/507936-DataTemplateDataType-alternative-in-Silverlight-3/</comments><link>http://channel9.msdn.com/forums/TechOff/507936-DataTemplateDataType-alternative-in-Silverlight-3/</link><pubDate>Sat, 21 Nov 2009 12:09:49 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/507936-DataTemplateDataType-alternative-in-Silverlight-3/</guid><evnet:views>46</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/507936/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>In Silverlight 3, if you declare a DataTemplate in XAML, there's no way to change the template based on the type of the bound item. In WPF, you can set the DataType property on the DataTemplate, but that property doesn't exist in SL3. Is there any sort of alternative to this? Perhaps an event that&amp;#8230;</evnet:previewtext><dc:creator>Bas</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/507936-DataTemplateDataType-alternative-in-Silverlight-3/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/507936/Trackback.aspx</trackback:ping></item><item><title>Jumping in the .net bandwagon</title><description>&lt;p&gt;I know that I'm very late, but we are jumping in the .net bandwagon. I have done some little app in C# but I would like tutorials for professional app (localization, save the toolbars and windows state, etc.). I've search the msdn site, but it is hard to find&amp;nbsp;informations (maybe it is just me). So any book recommandation, sites, webcast, or old pcd videos would be great. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I'm moving from C++/MFC/Stingray/MapX/Vertical Mapper to C#/MSChart/MapXtreme/Vertical Mapper.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/507825/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/507825-Jumping-in-the-net-bandwagon/</comments><link>http://channel9.msdn.com/forums/TechOff/507825-Jumping-in-the-net-bandwagon/</link><pubDate>Fri, 20 Nov 2009 20:54:22 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/507825-Jumping-in-the-net-bandwagon/</guid><evnet:views>116</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/507825/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I know that I'm very late, but we are jumping in the .net bandwagon. I have done some little app in C# but I would like tutorials for professional app (localization, save the toolbars and windows state, etc.). I've search the msdn site, but it is hard to find&amp;nbsp;informations (maybe it is just me).&amp;#8230;</evnet:previewtext><dc:creator>cro</dc:creator><slash:comments>7</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/507825-Jumping-in-the-net-bandwagon/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/507825/Trackback.aspx</trackback:ping></item><item><title>Good .Net 2.0 tutorial for SQL Compact (C&amp;#35;)</title><description>&lt;p&gt;Hey, &lt;/p&gt;
&lt;p&gt;Has anyone got a link to a fairly good Microsoft SQL Compact - ASP.net / 2.0 tutorial (hint: cannot use Linq or other new 3-3.5 tech). It doesn't need to be a ground breaking tutorial, just need to get a lot of the back-end pipes hooked up rather than SQL/call logic. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS - I did google it but found there is at least half a dozen ways to hook into SQL Compact and a lot of information either .Net 1.0 or 3.5, little around the 2.0 mark. &lt;/p&gt;&lt;img src="http://channel9.msdn.com/507807/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/507807-Good-Net-20-tutorial-for-SQL-Compact-C/</comments><link>http://channel9.msdn.com/forums/TechOff/507807-Good-Net-20-tutorial-for-SQL-Compact-C/</link><pubDate>Fri, 20 Nov 2009 19:28:08 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/507807-Good-Net-20-tutorial-for-SQL-Compact-C/</guid><evnet:views>63</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/507807/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hey, 
Has anyone got a link to a fairly good Microsoft SQL Compact - ASP.net / 2.0 tutorial (hint: cannot use Linq or other new 3-3.5 tech). It doesn't need to be a ground breaking tutorial, just need to get a lot of the back-end pipes hooked up rather than SQL/call logic. 
&amp;nbsp;
PS - I did google&amp;#8230;</evnet:previewtext><dc:creator>ManipUni</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/507807-Good-Net-20-tutorial-for-SQL-Compact-C/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/507807/Trackback.aspx</trackback:ping></item><item><title>Does this code have a race condition?</title><description>&lt;p&gt;Ok, this is a tough one. I basically spent all of yesterday attacking this from every angle I could think of, but I'm still not entirely convinced that there's a race condition here. I think there is one. One that's not easy to circumvent without introducing some other issues. I would however like to get some additional thoughts on the issue.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The situation is this: we have what on the surface is a basic producer-consumer pattern. Items are added to a queue and processed by one or more worker threads. However, the number of worker threads is flexible; if more are needed they will be started (up to a limit). If a worker thread sits idle for too long, it will quit.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here's the code (it's not my code, but I've sanitized it and removed anything not relevant to the problem):&lt;/p&gt;
&lt;p&gt;[code language="C#"]public class ItemProcessor&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private const int _maxWorkers = 100;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private const int _workerWaitTime = 20000; // ms&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private readonly Queue&amp;lt;string&amp;gt; _work = new Queue&amp;lt;string&amp;gt;();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private int _runningThreads;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private int _availableThreads;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public bool AddItem(string item)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( item == null )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new ArgumentNullException("item");&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lock( _work )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( _availableThreads &amp;gt; 0 )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --_availableThreads;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _work.Enqueue(item);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Monitor.Pulse(_work);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if( _runningThreads &amp;lt; _maxWorkers )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _work.Enqueue(item);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thread worker = new Thread(WorkerThread);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; worker.IsBackground = true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ++_runningThreads;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; worker.Start();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void WorkerThread()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while( true )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string work = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lock( _work )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( _work.Count &amp;gt; 0 )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; work = _work.Dequeue();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ++_availableThreads;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( !Monitor.Wait(_work, _workerWaitTime) )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( _work.Count &amp;gt; 0 )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Work added as we timed out&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; work = _work.Dequeue();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --_availableThreads;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --_runningThreads;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } while( work == null );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Code to process the item goes here; omitted for brevity.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}[/code]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Two somewhat interesting decisions were taken here. First, _availableThreads is decremented in the AddItem method; this is done to ensure that no other call to AddItem can think there are available workers while there are items waiting in the queue. Second, the worker threads will pick up work, even if the Monitor.Work call timed out. This is done to make sure that if there is only one thread and it timed out just as an item was being added this item isn't "lost" (it would sit in the queue until some other item comes in and starts a new thread).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now here's the problem: suppose some thread gets the lock in AddItems. It sees _availableThreads &amp;gt; 0 and calls Monitor.Pulse. A thread receives the signal and is moved to the ready queue (for that thread, Monitor.Wait will return true). However, before that thread runs, another thread had just timed out and manages to acquire the lock first. This timed out&amp;nbsp;thread will pick up the work, process it, and continue. The thread that was pulsed will see the queue is empty, loop around and continue. End result: _availableThreads got decremented once (in AddItem), and incremented twice (in both the timed out and pulsed thread) and is no longer correct.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, we can't just decrement _availableThreads if the Wait call timed out, since if Monitor.Pulse didn't wake up any thread, you wouldn't want to do that. There is no way to tell if Monitor.Pulse actually woke up some thread.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are probably some ways to correct this problem, but for now I'm simply interested in this: am I right there is a problem? Can this scenario (a timed out thread running in between a call to Monitor.Pulse and the pulsed thread getting the lock) actually happen? I can find nothing in the documentation of the Monitor class that says it couldn't, but maybe I'm missing something.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any insight appreciated.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/507721/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/507721-Does-this-code-have-a-race-condition/</comments><link>http://channel9.msdn.com/forums/TechOff/507721-Does-this-code-have-a-race-condition/</link><pubDate>Fri, 20 Nov 2009 08:46:31 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/507721-Does-this-code-have-a-race-condition/</guid><evnet:views>155</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/507721/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Ok, this is a tough one. I basically spent all of yesterday attacking this from every angle I could think of, but I'm still not entirely convinced that there's a race condition here. I think there is one. One that's not easy to circumvent without introducing some other issues. I would however like&amp;#8230;</evnet:previewtext><dc:creator>Sven Groot</dc:creator><slash:comments>12</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/507721-Does-this-code-have-a-race-condition/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/507721/Trackback.aspx</trackback:ping></item><item><title>Restarting graphical mode</title><description>&lt;p&gt;Does Windows (Vista, Seven or Server 2008)&amp;nbsp;have anything close to X11's ctrl+alt+backspace which restarts the graphical mode? Thanks.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/507518/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/507518-Restarting-graphical-mode/</comments><link>http://channel9.msdn.com/forums/TechOff/507518-Restarting-graphical-mode/</link><pubDate>Thu, 19 Nov 2009 15:48:17 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/507518-Restarting-graphical-mode/</guid><evnet:views>95</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/507518/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Does Windows (Vista, Seven or Server 2008)&amp;nbsp;have anything close to X11's ctrl+alt+backspace which restarts the graphical mode? Thanks.</evnet:previewtext><dc:creator>Dekonega</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/507518-Restarting-graphical-mode/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/507518/Trackback.aspx</trackback:ping></item><item><title>Oracle query question</title><description>&lt;p&gt;I'm adding an Oracle SQL query to an app that already handles one Oracle query correctly.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have this query string:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;SELECT RSIPLATE.DEALER.NAME AS BUSINESSNAME, RSIPLATE.DEALER.AREA_CODE || '-' || SUBSTR(RSIPLATE.DEALER.PHONE_NUMBER, 1, 3) || '-' || SUBSTR(RSIPLATE.DEALER.PHONE_NUMBER, 4, 4) AS BUSINESSPHONE, SUBSTR(RSIPLATE.ADDRESS.ADDRESS_LINE1, 1, 40) AS ADDRESSLINE1, '' AS ADDRESSLINE2, RSIPLATE.ADDRESS.CITY_NAME AS CITY, RSIPLATE.ADDRESS.STATE_CODE AS STATE, SUBSTR(RSIPLATE.ADDRESS.ZIP_CODE, 1, 5) AS POSTALCODE FROM RSIPLATE.DEALER INNER JOIN RSIPLATE.ADDRESS ON RSIPLATE.DEALER.ADDRESS_SET_ID = RSIPLATE.ADDRESS.ADDRESS_SET_ID WHERE RSIPLATE.DEALER.ACTIVE_IND = 'Y' AND RSIPLATE.DEALER.ACCOUNT_NUMBER NOT LIKE '%B%' AND RSIPLATE.ADDRESS.ADDRESS_TYPE = 2 AND SUBSTR(RSIPLATE.DEALER.ACCOUNT_NUMBER, 1, 2) = &lt;u&gt;:CountyPK&lt;/u&gt; ORDER BY City, BusinessName&lt;/p&gt;
which works.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In my code I have this line:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;ListingDataAdapter.SelectCommand.Parameters.Add(&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;New OracleParameter("CountyPK", CountyPK.ToString("00")))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a second query string:&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;SELECT rsiplate.OWNER.work_area_code||'-'||SUBSTR(rsiplate.OWNER.work_phone_number, 1, 3)||'-'||SUBSTR(rsiplate.OWNER.work_phone_number, 4, 4) AS BUSINESSPHONE, trim(rsiplate.OWNER.first_name||' '||rsiplate.OWNER.middle_name||' '||rsiplate.OWNER.last_name) AS BUSINESSNAME, rsiplate.ADDRESS.address_line1 AS ADDRESSLINE1, rsiplate.ADDRESS.address_line2 AS ADDRESSLINE2, rsiplate.ADDRESS.city_name AS CITY, rsiplate.ADDRESS.state_code AS STATE, SUBSTR(rsiplate.ADDRESS.zip_code, 1, 5) AS POSTALCODE FROM rsiplate.WATERCRAFT_MASTER, rsiplate.WATERCRAFT_CURRENT, rsiplate.WATERCRAFT_REGIST_CURRENT, rsiplate.OWNER, rsiplate.WATERCRAFT_OWNER_CURRENT, rsiplate.ADDRESS WHERE rsiplate.WATERCRAFT_MASTER.WATERCRAFT_ID = rsiplate.WATERCRAFT_CURRENT.WATERCRAFT_ID AND rsiplate.WATERCRAFT_MASTER.LF_WATERCRAFT_REGIST_ORDER = rsiplate.WATERCRAFT_REGIST_CURRENT.WATERCRAFT_REGIST_ORDER AND rsiplate.WATERCRAFT_MASTER.LF_WATERCRAFT_ORDER = rsiplate.WATERCRAFT_CURRENT.WATERCRAFT_ORDER AND rsiplate.WATERCRAFT_MASTER.watercraft_id = rsiplate.WATERCRAFT_REGIST_CURRENT.watercraft_id and rsiplate.WATERCRAFT_MASTER.watercraft_id = rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_id and rsiplate.WATERCRAFT_OWNER_CURRENT.owner_id = rsiplate.OWNER.owner_id and rsiplate.WATERCRAFT_MASTER.watercraft_owner_group = rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_owner_group and rsiplate.ADDRESS.address_set_id = rsiplate.OWNER.address_set_id and rsiplate.WATERCRAFT_MASTER.data_status_code = 1 and rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_owner_order = 1 and rsiplate.WATERCRAFT_REGIST_CURRENT.REGIST_EXPIRATION_DATE &amp;gt;= SYSDATE AND rsiplate.WATERCRAFT_CURRENT.WATERCRAFT_USE_CODE = 3 AND rsiplate.ADDRESS.COUNTY_NUMBER = &lt;u&gt;:CountyPK &lt;/u&gt;GROUP BY rsiplate.OWNER.work_area_code, rsiplate.OWNER.work_phone_number, rsiplate.OWNER.first_name, rsiplate.OWNER.middle_name, rsiplate.OWNER.last_name, rsiplate.ADDRESS.address_line1, rsiplate.ADDRESS.address_line2, rsiplate.ADDRESS.city_name, rsiplate.ADDRESS.state_code, rsiplate.ADDRESS.zip_code;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;which uses the same code line. Yet I get this message:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;ORA-00911: invalid character&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What am I doing wrong?&lt;/p&gt;&lt;img src="http://channel9.msdn.com/506598/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/506598-Oracle-query-question/</comments><link>http://channel9.msdn.com/forums/TechOff/506598-Oracle-query-question/</link><pubDate>Mon, 16 Nov 2009 17:08:25 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/506598-Oracle-query-question/</guid><evnet:views>90</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/506598/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I'm adding an Oracle SQL query to an app that already handles one Oracle query correctly.
&amp;nbsp;
I have this query string:
&amp;nbsp;

SELECT RSIPLATE.DEALER.NAME AS BUSINESSNAME, RSIPLATE.DEALER.AREA_CODE || '-' || SUBSTR(RSIPLATE.DEALER.PHONE_NUMBER, 1, 3) || '-' ||&amp;#8230;</evnet:previewtext><dc:creator>qwert231</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/506598-Oracle-query-question/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/506598/Trackback.aspx</trackback:ping></item><item><title>Getting a Security.Exception error in ASP.NET</title><description>&lt;p&gt;I've been reconstructing my VS 2008 development environment on my new Windows 7 machine, after my Vista machine died.&amp;nbsp; Its working for the most part, except that none of my&amp;nbsp;ASP.NET apps that use the AJAX Toolkit are working, on my Win 7 machine.&amp;nbsp; For example, I am getting the following error message when I attempt to run access a page that has some AJAX Toolkit controls on it:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Security Exception&lt;/em&gt; &lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Description: &lt;/strong&gt;The application attempted to perform an operation not allowed by the security policy. &amp;nbsp;To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Exception Details: &lt;/strong&gt;System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Source Error:&lt;/strong&gt; &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;table bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td&gt;&lt;code&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&lt;/code&gt; &lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;Stack Trace:&lt;/strong&gt; &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;table bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td&gt;&lt;code&gt;
&lt;pre&gt;[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
&lt;/pre&gt;
&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;now, I'm not entirely sure what I've done wrong.&amp;nbsp; When I was setting up my new Windows 7 system I installed the developer edition of SQL Server 2008, but only that (I was advised to &lt;u&gt;not&lt;/u&gt; install any of the SQL Server Express editions).&amp;nbsp; Then I installed VS 2008 Pro.&amp;nbsp; Next I downloaded the AJAX Toolkit from&amp;nbsp;off of &lt;a href="http://www.asp.net's"&gt;www.asp.net's&lt;/a&gt; website.&amp;nbsp; What have I done wrong?&amp;nbsp; Should I have installed some sort of SQL Server Express edition (either 2005 or 2008)?&lt;/p&gt;&lt;img src="http://channel9.msdn.com/506374/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/506374-Getting-a-SecurityException-error-in-ASPNET/</comments><link>http://channel9.msdn.com/forums/TechOff/506374-Getting-a-SecurityException-error-in-ASPNET/</link><pubDate>Sun, 15 Nov 2009 01:18:19 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/506374-Getting-a-SecurityException-error-in-ASPNET/</guid><evnet:views>115</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/506374/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I've been reconstructing my VS 2008 development environment on my new Windows 7 machine, after my Vista machine died.&amp;nbsp; Its working for the most part, except that none of my&amp;nbsp;ASP.NET apps that use the AJAX Toolkit are working, on my Win 7 machine.&amp;nbsp; For example, I am getting the&amp;#8230;</evnet:previewtext><dc:creator>Doctor Who</dc:creator><slash:comments>4</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/506374-Getting-a-SecurityException-error-in-ASPNET/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/506374/Trackback.aspx</trackback:ping></item><item><title>Cryptography</title><description>&lt;p&gt;What is Cryptography ? How to encrypt &amp;amp; decrypt images with informations ??&lt;/p&gt;
&lt;p&gt;Looking for samples..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in Advance&lt;/p&gt;&lt;img src="http://channel9.msdn.com/506232/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/506232-Cryptography/</comments><link>http://channel9.msdn.com/forums/TechOff/506232-Cryptography/</link><pubDate>Sat, 14 Nov 2009 06:03:58 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/506232-Cryptography/</guid><evnet:views>164</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/506232/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>What is Cryptography ? How to encrypt &amp;amp; decrypt images with informations ??
Looking for samples..
&amp;nbsp;
&amp;nbsp;
Thanks in Advance</evnet:previewtext><dc:creator>Prakash Chidambaram</dc:creator><slash:comments>8</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/506232-Cryptography/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/506232/Trackback.aspx</trackback:ping></item><item><title>Can Linq to Xml create xhtml?</title><description>&lt;p&gt;I've done a good bit of google-bing investigative work, and I've come to the conclusion that I must be an idiot.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Our hope was that we could generate the xhtml document within an XDocument and then spit it out, but it appears that entities (&amp;amp;nbsp; for example) won't work right.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If we put an actual non-breaking space character inside the document, it never get's converted into &amp;amp;nbsp; on the output, so downstream processing cannot handle it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If we, instead, put &amp;amp;nbsp; characters int the document, it turns into &amp;amp;amp;nbsp; which, I assure you, ain't right.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The only solution weve come up with is to fix this after writing the contents to a string and replacing the &amp;amp;amp;nbsp; with &amp;amp;nbsp;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This seems a bit of a hack, though, so I was wondering if anyone else has had any luck with this?&lt;/p&gt;&lt;img src="http://channel9.msdn.com/506108/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/506108-Can-Linq-to-Xml-create-xhtml/</comments><link>http://channel9.msdn.com/forums/TechOff/506108-Can-Linq-to-Xml-create-xhtml/</link><pubDate>Fri, 13 Nov 2009 21:12:44 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/506108-Can-Linq-to-Xml-create-xhtml/</guid><evnet:views>143</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/506108/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I've done a good bit of google-bing investigative work, and I've come to the conclusion that I must be an idiot.
&amp;nbsp;
Our hope was that we could generate the xhtml document within an XDocument and then spit it out, but it appears that entities (&amp;amp;nbsp; for example) won't work right.
&amp;nbsp;
If&amp;#8230;</evnet:previewtext><dc:creator>ScanIAm</dc:creator><slash:comments>9</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/506108-Can-Linq-to-Xml-create-xhtml/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/506108/Trackback.aspx</trackback:ping></item><item><title>Wake up Threads</title><description>&lt;p&gt;How to revoke the sleeping threads???&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ex. System.Threading.Thread.Sleep(15000);&amp;nbsp; //it sleep for some time... before the time ends,i need to wakeup the&amp;nbsp; thread..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How ????&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in Advance&lt;/p&gt;&lt;img src="http://channel9.msdn.com/505930/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/505930-Wake-up-Threads/</comments><link>http://channel9.msdn.com/forums/TechOff/505930-Wake-up-Threads/</link><pubDate>Fri, 13 Nov 2009 05:39:22 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/505930-Wake-up-Threads/</guid><evnet:views>137</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/505930/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>How to revoke the sleeping threads???
&amp;nbsp;
Ex. System.Threading.Thread.Sleep(15000);&amp;nbsp; //it sleep for some time... before the time ends,i need to wakeup the&amp;nbsp; thread..
&amp;nbsp;
How ????
&amp;nbsp;
Thanks in Advance</evnet:previewtext><dc:creator>Prakash Chidambaram</dc:creator><slash:comments>4</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/505930-Wake-up-Threads/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/505930/Trackback.aspx</trackback:ping></item><item><title>Wake up Threads</title><description>&lt;p&gt;How to revoke the sleeping threads.... ???&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ex. &lt;/p&gt;
&lt;p&gt;Threading.Thread.Sleep(10000);&amp;nbsp; // it sleep for some time,before the time ends i need to wake up the thread. How ???&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in Advance&lt;/p&gt;&lt;img src="http://channel9.msdn.com/505927/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/505927-Wake-up-Threads/</comments><link>http://channel9.msdn.com/forums/TechOff/505927-Wake-up-Threads/</link><pubDate>Fri, 13 Nov 2009 05:34:56 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/505927-Wake-up-Threads/</guid><evnet:views>89</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/505927/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>How to revoke the sleeping threads.... ???
&amp;nbsp;
Ex. 
Threading.Thread.Sleep(10000);&amp;nbsp; // it sleep for some time,before the time ends i need to wake up the thread. How ???
&amp;nbsp;
Thanks in Advance</evnet:previewtext><dc:creator>Prakash Chidambaram</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/505927-Wake-up-Threads/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/505927/Trackback.aspx</trackback:ping></item><item><title>Duplicate Active Directory Security rules in ACLs</title><description>&lt;p&gt;In one of my domains, a lot of objects seem to have duplicate (and seemingly empty) security rules set up.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For instance, the root of my domain "company.com" has "ENTERPRISE DOMAIN CONTROLLERS" down 9 times. The first 5 times have different permissions put down ("Replicating directory changes...", "Replication synchronization", "Manage replication topology", etc) but the last 4 have nothing applied.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Other groups are down with nothing marked for them, like "Exchange Recipient Administrators" and "Exchange Servers" (both the Properties and Object security list is empty.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it safe to delete these empty rules and might it help performance? I ask because I need to set some custom security on some child OUs but that requires copying the inherited security, which ADUC warns against because there's 41 rules to apply.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/505912/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/505912-Duplicate-Active-Directory-Security-rules-in-ACLs/</comments><link>http://channel9.msdn.com/forums/TechOff/505912-Duplicate-Active-Directory-Security-rules-in-ACLs/</link><pubDate>Fri, 13 Nov 2009 00:48:54 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/505912-Duplicate-Active-Directory-Security-rules-in-ACLs/</guid><evnet:views>81</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/505912/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>In one of my domains, a lot of objects seem to have duplicate (and seemingly empty) security rules set up.
&amp;nbsp;
For instance, the root of my domain "company.com" has "ENTERPRISE DOMAIN CONTROLLERS" down 9 times. The first 5 times have different permissions put down ("Replicating directory&amp;#8230;</evnet:previewtext><dc:creator>W3bbo</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/505912-Duplicate-Active-Directory-Security-rules-in-ACLs/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/505912/Trackback.aspx</trackback:ping></item><item><title>Cancel pattern for webservices</title><description>&lt;p&gt;Hi folks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I'm doing a lot of Silverlight + WCF work in the last time and I'm just wondering whether there is specific approach to support cancelation of long running web service calls. In a current scenario I have list of items where the user can select from. With the selection an item,&amp;nbsp;the a webservice get called, which can take a&amp;nbsp;lot of time&amp;nbsp;on the server side to get the results. So what is the best solution to cancel those calls when the user runs quickly through the list or just wants to cancel the call. Currently I'm just blocking the UI, so th user is restricted to wait. &lt;/p&gt;
&lt;p&gt;On the client side I thought to pass a request id through the user state and just process the last call when it comes back. Like this:&lt;/p&gt;
&lt;p&gt;[code language="csharp"]&lt;/p&gt;
&lt;p&gt;private Guid _lastRequestId; private OnItemSelected(int itemId ) { _lastRequestId = Guid.New(); _proxy.DoSomething(itemId, _lastRequest); } private void _proxy_DoSomethingCompleted(object sender, DoSomethingCompletede) { Guid requestId = (Guid)e.UserState; if(_lastRequestId==requestId) { ProcessAndDisplay(e.Result); } }&lt;/p&gt;
&lt;p&gt;[/code]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;At least I would save the compute time on the client side and prevent the dispaly of wrong data. But than flicking through the item list would be like a DoS attack. &lt;/p&gt;
&lt;p&gt;Any ideas how to solve those problems?&lt;/p&gt;&lt;img src="http://channel9.msdn.com/505663/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/505663-Cancel-pattern-for-webservices/</comments><link>http://channel9.msdn.com/forums/TechOff/505663-Cancel-pattern-for-webservices/</link><pubDate>Thu, 12 Nov 2009 02:11:19 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/505663-Cancel-pattern-for-webservices/</guid><evnet:views>98</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/505663/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hi folks,
&amp;nbsp;
I'm doing a lot of Silverlight + WCF work in the last time and I'm just wondering whether there is specific approach to support cancelation of long running web service calls. In a current scenario I have list of items where the user can select from. With the selection an&amp;#8230;</evnet:previewtext><dc:creator>section31</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/505663-Cancel-pattern-for-webservices/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/505663/Trackback.aspx</trackback:ping></item><item><title>Having difficulty RDC into server from my work PC</title><description>&lt;p&gt;I'm working at home today, using Microsoft's Mesh (&lt;a href="http://www.mesh.com"&gt;www.mesh.com&lt;/a&gt;) to connect to my work desktop PC.&amp;nbsp; (It is running Windows XP SP3.&amp;nbsp; At home I'm using Windows 7.)&amp;nbsp; This is working very well, and I'm thankful!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, there is one sticky point.&amp;nbsp; I want to be able to remote desktop connect from my work PC to one of the servers on our network.&amp;nbsp; I have tried, repeatedly, to RDC into various servers, but have failed each time.&amp;nbsp; I'm always getting the error message:&lt;/p&gt;
&lt;blockquote&gt;The system could not log you in.&amp;nbsp; Maka sure the username and password are correct and try again. &lt;/blockquote&gt;
&lt;p&gt;I have made sure that the usernname and password are correct.&amp;nbsp; I have tried multiple accounts&amp;nbsp;on 4 different servers, and I'm getting the same error messages for all attempts.&amp;nbsp; What could be causing this problem?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/505614/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/505614-Having-difficulty-RDC-into-server-from-my-work-PC/</comments><link>http://channel9.msdn.com/forums/TechOff/505614-Having-difficulty-RDC-into-server-from-my-work-PC/</link><pubDate>Wed, 11 Nov 2009 21:34:03 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/505614-Having-difficulty-RDC-into-server-from-my-work-PC/</guid><evnet:views>94</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/505614/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I'm working at home today, using Microsoft's Mesh (www.mesh.com) to connect to my work desktop PC.&amp;nbsp; (It is running Windows XP SP3.&amp;nbsp; At home I'm using Windows 7.)&amp;nbsp; This is working very well, and I'm thankful!
&amp;nbsp;
However, there is one sticky point.&amp;nbsp; I want to be able to remote&amp;#8230;</evnet:previewtext><dc:creator>RodAtWork</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/505614-Having-difficulty-RDC-into-server-from-my-work-PC/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/505614/Trackback.aspx</trackback:ping></item><item><title>[Side-]Effects</title><description>&lt;p&gt;I thought it would be interesting to gather a collection of more or less strange effects, sort of an effect zoo. Effects can be harmful to program reasoning in many ways but they can also be fun.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/505590/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/505590-Side-Effects/</comments><link>http://channel9.msdn.com/forums/TechOff/505590-Side-Effects/</link><pubDate>Wed, 11 Nov 2009 19:46:14 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/505590-Side-Effects/</guid><evnet:views>121</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/505590/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I thought it would be interesting to gather a collection of more or less strange effects, sort of an effect zoo. Effects can be harmful to program reasoning in many ways but they can also be fun.</evnet:previewtext><dc:creator>Bent Rasmussen</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/505590-Side-Effects/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/505590/Trackback.aspx</trackback:ping></item><item><title>asd</title><description>&lt;p&gt;asdasd&lt;/p&gt;&lt;img src="http://channel9.msdn.com/505539/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/505539-asd/</comments><link>http://channel9.msdn.com/forums/TechOff/505539-asd/</link><pubDate>Wed, 11 Nov 2009 12:54:57 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/505539-asd/</guid><evnet:views>89</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/505539/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>asdasd</evnet:previewtext><dc:creator>adhamit</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/505539-asd/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/505539/Trackback.aspx</trackback:ping></item><item><title>How to read ERRORLEVEL in vbscript-Really need help</title><description>&lt;p&gt;Hi all experts out there,&lt;/p&gt;
&lt;p&gt;Actually, i am developing a script to decrypt files (using .bat).&lt;/p&gt;
&lt;p&gt;Since require us to loop into the folder(to read fodler name), i have created a short vbscript as below&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;------------------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;Dim strSubFolder&lt;br /&gt;Dim strFile&lt;br /&gt;Dim strOrganization&lt;br /&gt;Dim strRootDir &lt;br /&gt;Dim strSubFolder2&lt;br /&gt;dim shell&lt;br /&gt;set shell=createobject("wscript.shell")&lt;br /&gt;strOrganization = "Org1"&lt;br /&gt;strRootDir = "D:\GFTPRoot\AG\" &amp;amp; Trim(strOrganization) &lt;br /&gt;Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;br /&gt;Set objFolder = objFSO.GetFolder( strRootDir )&lt;br /&gt;Set colSubfolders = objFolder.Subfolders&lt;br /&gt;For Each objSubfolder in colSubfolders&lt;br /&gt;&amp;nbsp;strSubFolder2=objSubfolder.Path &amp;amp; "\FileIn"&amp;nbsp;&amp;nbsp; 'only browse thru FileIn folder&lt;br /&gt;&amp;nbsp;If objFSO.FolderExists( strSubFolder2 ) Then&lt;br /&gt;&amp;nbsp;&amp;nbsp; Set objFolder2 = objFSO.GetFolder( strSubFolder2 )&lt;br /&gt;&amp;nbsp;&amp;nbsp; Set colFiles = objFolder2.Files&lt;br /&gt;&amp;nbsp;&amp;nbsp; For Each objFile in colFiles&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If UCase(objFSO.GetExtensionName(objFile)) = "GPG" Then&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;shell.run "&lt;strong&gt;AG_Decrypt_Backup.bat&lt;/strong&gt;"&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;----------------------------I NEED TO RETURN THE %ERRORLEVEL% HERE---------------------------------------&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;End If&lt;br /&gt;Next&lt;br /&gt;set shell=nothing&lt;br /&gt;Set objFile = Nothing&lt;br /&gt;Set colFiles = Nothing&lt;br /&gt;Set objFolder2 = Nothing&lt;br /&gt;Set objSubfolder = Nothing&lt;br /&gt;Set colSubfolders = Nothing&lt;br /&gt;Set objFolder = Nothing&lt;br /&gt;Set objFSO = Nothing&lt;br /&gt;Wscript.Echo "Completed"&lt;/p&gt;
&lt;p&gt;-------------------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As you can see, the vbscript will call&amp;nbsp;&lt;strong&gt;AG_Decrypt_Backup.bat.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In my batch file, i have specify to return the ERRORLEVEL&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In vbscript, noticed that we need to specify the errorlevel by using&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WScript.Quit(3)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since in vbscript we loop for each of the files, it might have different errorlevel.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;how do i can retrieve the errorlevel from my batch???&lt;/p&gt;
&lt;p&gt;So that i can display in my vbscript?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;p/s: my batch file use to decrypt file with &lt;strong&gt;.GPG&lt;/strong&gt; extension&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Best Regards,&lt;/p&gt;&lt;img src="http://channel9.msdn.com/505538/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/505538-How-to-read-ERRORLEVEL-in-vbscript-Really-need-help/</comments><link>http://channel9.msdn.com/forums/TechOff/505538-How-to-read-ERRORLEVEL-in-vbscript-Really-need-help/</link><pubDate>Wed, 11 Nov 2009 12:52:45 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/505538-How-to-read-ERRORLEVEL-in-vbscript-Really-need-help/</guid><evnet:views>142</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/505538/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hi all experts out there,
Actually, i am developing a script to decrypt files (using .bat).
Since require us to loop into the folder(to read fodler name), i have created a short vbscript as&amp;#8230;</evnet:previewtext><dc:creator>adhamit</dc:creator><slash:comments>5</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/505538-How-to-read-ERRORLEVEL-in-vbscript-Really-need-help/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/505538/Trackback.aspx</trackback:ping></item><item><title>How to rip DVD on Mac?</title><description>&lt;p&gt;Recently, I have a Wondershare DVD Ripper for Mac, but do not know how to use it, who could help me?&lt;/p&gt;&lt;img src="http://channel9.msdn.com/505502/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/505502-How-to-rip-DVD-on-Mac/</comments><link>http://channel9.msdn.com/forums/TechOff/505502-How-to-rip-DVD-on-Mac/</link><pubDate>Wed, 11 Nov 2009 05:44:48 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/505502-How-to-rip-DVD-on-Mac/</guid><evnet:views>118</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/505502/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Recently, I have a Wondershare DVD Ripper for Mac, but do not know how to use it, who could help me?</evnet:previewtext><dc:creator>laaa</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/505502-How-to-rip-DVD-on-Mac/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/505502/Trackback.aspx</trackback:ping></item><item><title>Data grid and server-driven paging</title><description>&lt;p&gt;I've seen a Silverlight 2 Beta 1 demo (&lt;a href="http://blogs.msdn.com/swiss_dpe_team/archive/2008/03/17/silverlight-2-beta1-wcf-linq-to-sql-a-powerfull-combination.aspx"&gt;http://blogs.msdn.com/swiss_dpe_team/archive/2008/03/17/silverlight-2-beta1-wcf-linq-to-sql-a-powerfull-combination.aspx&lt;/a&gt;) which shows 'paging' in a data grid.&lt;br /&gt;&amp;nbsp;&lt;br /&gt;It uses an asynchronous service callback which sets the ItemsSource of the data grid and the Maximum of the scrollbar.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;void GetDataCompleted(object sender, GetDataCompletedEventArgs e) {&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataGrid.ItemsSource = e.Result;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myScrollBar.Maximum = e.count;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Will that also work with the new .Net 4 WPF data grid? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I've tried to do that with .Net 3.5 WPF data grid but without success.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In other words will the new .Net WPF data grid (not Silverlight!) have support for paging?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Oliver&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/505379/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/505379-Data-grid-and-server-driven-paging/</comments><link>http://channel9.msdn.com/forums/TechOff/505379-Data-grid-and-server-driven-paging/</link><pubDate>Tue, 10 Nov 2009 13:56:26 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/505379-Data-grid-and-server-driven-paging/</guid><evnet:views>95</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/505379/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I've seen a Silverlight 2 Beta 1 demo (http://blogs.msdn.com/swiss_dpe_team/archive/2008/03/17/silverlight-2-beta1-wcf-linq-to-sql-a-powerfull-combination.aspx) which shows 'paging' in a data grid.&amp;nbsp;It uses an asynchronous service callback which sets the ItemsSource of the data grid and the&amp;#8230;</evnet:previewtext><dc:creator>Chl9</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/505379-Data-grid-and-server-driven-paging/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/505379/Trackback.aspx</trackback:ping></item><item><title>Helooo.....</title><description>&lt;p&gt;Does anyone respond to any posts on these sites???&lt;/p&gt;&lt;img src="http://channel9.msdn.com/505373/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/505373-Helooo/</comments><link>http://channel9.msdn.com/forums/TechOff/505373-Helooo/</link><pubDate>Tue, 10 Nov 2009 12:36:48 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/505373-Helooo/</guid><evnet:views>123</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/505373/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Does anyone respond to any posts on these sites???</evnet:previewtext><dc:creator>vyke.asp.net</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/505373-Helooo/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/505373/Trackback.aspx</trackback:ping></item><item><title>Monads</title><description>&lt;p&gt;I have a question about monads ... if they are really the "fundamental unit of composibility" as put forward in a few of the Channel9 interviews with Brian Beckman and Eric Meijer, then isn't it practical to assume that the goal should then be to ensure that everything is in a monad?&amp;nbsp; Does that actually make sense, and is it even possible?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/505260/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/505260-Monads/</comments><link>http://channel9.msdn.com/forums/TechOff/505260-Monads/</link><pubDate>Mon, 09 Nov 2009 21:03:47 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/505260-Monads/</guid><evnet:views>192</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/505260/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I have a question about monads ... if they are really the "fundamental unit of composibility" as put forward in a few of the Channel9 interviews with Brian Beckman and Eric Meijer, then isn't it practical to assume that the goal should then be to ensure that everything is in a monad?&amp;nbsp; Does that&amp;#8230;</evnet:previewtext><dc:creator>Richard.Hein</dc:creator><slash:comments>5</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/505260-Monads/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/505260/Trackback.aspx</trackback:ping></item><item><title>Access to SharePoint Lists from C#</title><description>&lt;p&gt;I have a service running on a server in my domain that needs to be able to read and update data in a sharepoint list.&amp;nbsp; This is a simple list with numeric and text fields only.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Was wondering what the easiest/best way of getting access to the data is?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Stephen.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/505249/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/505249-Access-to-SharePoint-Lists-from-C/</comments><link>http://channel9.msdn.com/forums/TechOff/505249-Access-to-SharePoint-Lists-from-C/</link><pubDate>Mon, 09 Nov 2009 18:30:10 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/505249-Access-to-SharePoint-Lists-from-C/</guid><evnet:views>128</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/505249/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I have a service running on a server in my domain that needs to be able to read and update data in a sharepoint list.&amp;nbsp; This is a simple list with numeric and text fields only.
&amp;nbsp;
Was wondering what the easiest/best way of getting access to the data is?&amp;nbsp; 
&amp;nbsp;
Cheers,
&amp;nbsp;
Stephen.</evnet:previewtext><dc:creator>PerfectPhase</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/505249-Access-to-SharePoint-Lists-from-C/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/505249/Trackback.aspx</trackback:ping></item></channel></rss>