<?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>Entries for ploe</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/niners/ploe/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Entries for ploe</title><link>http://channel9.msdn.com/Niners/ploe/</link></image><description>Entries, comments and threads posted by ploe</description><link>http://channel9.msdn.com/Niners/ploe/</link><language>en-us</language><pubDate>Mon, 21 Sep 2009 18:39:36 GMT</pubDate><lastBuildDate>Mon, 21 Sep 2009 18:39:36 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>SQL Query...can't seem to wrap my head around this [SQL Query...can't seem to wrap my head around this]</title><description>&lt;p&gt;I feel like there exists a query that returns the data I'm looking for. I just can't seem to get my brain to tell me what it is :P Perhaps I've been staring at it too long. Any help would be appreciated :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let's say you have a table called WINDOW that has a START date, an&amp;nbsp;END date and a unique ID.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I want to select all the rows that are within 10 minutes of each other and at least one of the rows falls within a given datetime (which I pass in my query).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here's a sample dataset:&lt;/p&gt;
&lt;p&gt;ID, START, END&lt;/p&gt;
&lt;p&gt;1,&amp;nbsp; 9/21/09 00:00:00,&amp;nbsp; 9/21/09 00:30:00&lt;/p&gt;
&lt;p&gt;2,&amp;nbsp; 9/21/09 00:38:00,&amp;nbsp; 9/21/09 02:00:00&lt;/p&gt;
&lt;p&gt;3,&amp;nbsp; 9/21/09 02:05:00,&amp;nbsp; 9/21/09 04:00:00&lt;/p&gt;
&lt;p&gt;4,&amp;nbsp; 9/21/09 04:15:00,&amp;nbsp; 9/21/09 04:30:00&lt;/p&gt;
&lt;p&gt;5,&amp;nbsp; 9/21/09 04:35:00,&amp;nbsp; 9/21/09 07:30:00&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Rows 1 -&amp;gt; 2 -&amp;gt; 3 are a set because 2's START is only 8 minutes greater than 1's END and 3's START is only 5 greater than 2's END. Following that rule, 4 and 5 are a set as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Passing in the datetime 9/21/09 02:00:00 should return rows 1, 2, and 3 because that time falls within the min and max time those 3 rows cover. If I were to pass in 9/21/09 04:20:00, I would expect rows 4 and 5 to be returned.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I started with this query, but that's only going to return rows 2 and&amp;nbsp;3&amp;nbsp;(the immediately adjacent rows), not N rows.&lt;/p&gt;
&lt;p&gt;SELECT * FROM WINDOW WHERE&amp;nbsp;ABS(DATEDIFF(mi, END, '9/21/09 02:00:00')) &amp;lt;= 10 OR ABS(DATEDIFF(mi, START, '9/21/09 02:00:00')) &amp;lt;= 10&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And I tried another approach, but this will return rows 4 and 5 too&amp;nbsp;when I only want 1, 2, and 3 :(&lt;/p&gt;
&lt;p&gt;SELECT * FROM WINDOW w WHERE EXISTS(SELECT TOP 1 ID FROM WINDOW w2 WHERE w2.ID != w.ID AND ABS(DATEDIFF(mi, w2.END, w.START)) &amp;lt;= 10 OR ABS(DATEDIFF(mi, w2.START, w.END)) &amp;lt;= 10)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Grr&lt;/p&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/493362-SQL-Querycant-seem-to-wrap-my-head-around-this/'&gt;SQL Query...can't seem to wrap my head around this&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/493362/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/493362-SQL-Querycant-seem-to-wrap-my-head-around-this/</comments><link>http://channel9.msdn.com/forums/TechOff/493362-SQL-Querycant-seem-to-wrap-my-head-around-this/</link><pubDate>Mon, 21 Sep 2009 18:39:36 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/493362-SQL-Querycant-seem-to-wrap-my-head-around-this/</guid><evnet:views>323</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/493362/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I feel like there exists a query that returns the data I'm looking for. I just can't seem to get my brain to tell me what it is :P Perhaps I've been staring at it too long. Any help would be appreciated :)
&amp;nbsp;
Let's say you have a table called WINDOW that has a START date, an&amp;nbsp;END date and a&amp;#8230;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>6</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/493362-SQL-Querycant-seem-to-wrap-my-head-around-this/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/493362/Trackback.aspx</trackback:ping></item><item><title>Add form in another appdomain to mdi container [Add form in another appdomain to mdi container]</title><description>&lt;P&gt;Our plugin model isolates plugins in their own AppDomain so that&amp;nbsp;if a plugin crashes it doesn't take down our whole client app. This also allows for us to unload and load plugins if we choose to. The problem I've run into is now it's much harder to show my plugins (each have their own windows Form) in my main mdi window. :(&lt;BR&gt;&lt;BR&gt;So I thought, why not pass the handle to the main window since I can pass primitives accross AppDomains? I then implemented a method in the main window where you pass in the plugin handle and it shows it in the main mdi window. Here's my code:&lt;BR&gt;&lt;BR&gt;uint style = GetWindowLongPtr(formHandle, GWL_STYLE);&lt;BR&gt;style &amp;amp;= ~WS_POPUP;&lt;BR&gt;style = style | WS_CHILD | WS_VISIBLE;&lt;BR&gt;SetWindowLong(formHandle, GWL_STYLE, style);&lt;BR&gt;SetParent(formHandle, this.Handle);&lt;BR&gt;&lt;BR&gt;This approach seems to be buggy though...&lt;BR&gt;1. The title bars of plugin windows always appear inactive as if the window was not in focus&lt;BR&gt;2. When I maximize a plugin window, it does not seem to be aware that my main window has a menu and toolbar docked to the top. The maximized plugin window sits right over the top of them&lt;BR&gt;3. And worst of all plugin windows are always on top of the other managed windows :(&lt;/P&gt;
&lt;P&gt;Has anyone successfully been able to get this working correctly? Or is there some other way I can do this? &lt;BR&gt;&lt;BR&gt;It seems like a managed MdiClient is not aware of the native child windows that I've added...&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/452844-Add-form-in-another-appdomain-to-mdi-container/'&gt;Add form in another appdomain to mdi container&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/452844/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/452844-Add-form-in-another-appdomain-to-mdi-container/</comments><link>http://channel9.msdn.com/forums/TechOff/452844-Add-form-in-another-appdomain-to-mdi-container/</link><pubDate>Mon, 12 Jan 2009 19:34:20 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/452844-Add-form-in-another-appdomain-to-mdi-container/</guid><evnet:views>549</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/452844/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Our plugin model isolates plugins in their own AppDomain so that&amp;nbsp;if a plugin crashes it doesn't take down our whole client app. This also allows for us to unload and load plugins if we choose to. The problem I've run into is now it's much harder to show my plugins (each have their own windows&amp;#8230;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/452844-Add-form-in-another-appdomain-to-mdi-container/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/452844/Trackback.aspx</trackback:ping></item><item><title>Tell Windows that my program is responding [Tell Windows that my program is responding]</title><description>So I have this c++ console application that takes a while to close. In my SetConsoleCtrlHandler handler I have to write some things to disk before my program can closes. So when you close my application the End Program dialog comes up because Windows thinks my application is not responding. Is there a way for me to tell Windows "hey I am still responding, it just takes me a while to close"?&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/442789-Tell-Windows-that-my-program-is-responding/'&gt;Tell Windows that my program is responding&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/442789/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/442789-Tell-Windows-that-my-program-is-responding/</comments><link>http://channel9.msdn.com/forums/TechOff/442789-Tell-Windows-that-my-program-is-responding/</link><pubDate>Wed, 12 Nov 2008 21:41:25 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/442789-Tell-Windows-that-my-program-is-responding/</guid><evnet:views>800</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/442789/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>So I have this c++ console application that takes a while to close. In my SetConsoleCtrlHandler handler I have to write some things to disk before my program can closes. So when you close my application the End Program dialog comes up because Windows thinks my application is not responding. Is there&amp;#8230;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>8</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/442789-Tell-Windows-that-my-program-is-responding/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/442789/Trackback.aspx</trackback:ping></item><item><title>SQL IX lock [SQL IX lock]</title><description>I have a SQL view that grabs data from various tables. One of those tables is table Y. The view is kinda slow and while the view is running I am unable to run any update statements on table Y. So I ran a stored procedure to view the current locks on the SQL server while the view is running. There was an IX lock on table Y. Now this view is only used to "View" data; why would the SQL server lock that table while it's running? Is there anything I can do to prevent this from happening? :/&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/430548-SQL-IX-lock/'&gt;SQL IX lock&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/430548/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/430548-SQL-IX-lock/</comments><link>http://channel9.msdn.com/forums/TechOff/430548-SQL-IX-lock/</link><pubDate>Wed, 01 Oct 2008 00:45:44 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/430548-SQL-IX-lock/</guid><evnet:views>603</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/430548/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I have a SQL view that grabs data from various tables. One of those tables is table Y. The view is kinda slow and while the view is running I am unable to run any update statements on table Y. So I ran a stored procedure to view the current locks on the SQL server while the view is running. There&amp;#8230;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/430548-SQL-IX-lock/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/430548/Trackback.aspx</trackback:ping></item><item><title>DateTime and DST [DateTime and DST]</title><description>&lt;P&gt;Does the .net DateTime struct consider DST?&lt;BR&gt;&lt;BR&gt;Lets say I have a DateTime dt that is set to a date two hours before we set our clocks forward. Then I add 5 hours to dt. Would the DateTime add function consider DST or would the add be an hour off?&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/423874-DateTime-and-DST/'&gt;DateTime and DST&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/423874/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/423874-DateTime-and-DST/</comments><link>http://channel9.msdn.com/forums/TechOff/423874-DateTime-and-DST/</link><pubDate>Thu, 28 Aug 2008 15:43:45 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/423874-DateTime-and-DST/</guid><evnet:views>537</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/423874/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Does the .net DateTime struct consider DST?Lets say I have a DateTime dt that is set to a date two hours before we set our clocks forward. Then I add 5 hours to dt. Would the DateTime add function consider DST or would the add be an hour off?in reply to DateTime and DST</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>5</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/423874-DateTime-and-DST/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/423874/Trackback.aspx</trackback:ping></item><item><title>Get stack trace of a ThreadPool Thread [Get stack trace of a ThreadPool Thread]</title><description>I have a C# server application that's stuck in a loop somewhere; after a while the process just constantly uses 13% CPU (1 core). I'm pretty sure it's one of my ThreadPool threads that's doing this; some command sent by the client eventually triggers this infinite loop. &lt;BR&gt;&lt;BR&gt;I've looked at the StackTrace object as a stack trace would definately help me find the code that's causing this. There is a constructor that allows me to pass in a Thread object to get the stack trace of the passed in thread however I don't have a Thread object because it's a ThreadPool thread.&lt;BR&gt;&lt;BR&gt;Do you know any way that I can get a stack trace of a ThreadPool thread?&lt;BR&gt;&lt;BR&gt;I am able to identify the thread that is looping by printing out all the threads and finding the one that has taken up the most CPU time. However I can't seem to use the information from the code below&amp;nbsp;to get a stack trace.&lt;BR&gt;&lt;BR&gt;foreach (System.Diagnostics.ProcessThread thread in System.Diagnostics.Process.GetCurrentProcess().Threads)&amp;nbsp;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine("ID: {0}", thread.Id);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine("Start Time: {0}", thread.StartTime);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine("State: {0}", Enum.GetName(typeof(System.Diagnostics.ThreadState), thread.ThreadState));&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine("Total Proc Time: {0}\n", thread.TotalProcessorTime);&lt;BR&gt;}&lt;BR&gt;&lt;BR&gt;Any suggestions? :(&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/420285-Get-stack-trace-of-a-ThreadPool-Thread/'&gt;Get stack trace of a ThreadPool Thread&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/420285/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/420285-Get-stack-trace-of-a-ThreadPool-Thread/</comments><link>http://channel9.msdn.com/forums/TechOff/420285-Get-stack-trace-of-a-ThreadPool-Thread/</link><pubDate>Thu, 07 Aug 2008 22:34:03 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/420285-Get-stack-trace-of-a-ThreadPool-Thread/</guid><evnet:views>857</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/420285/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I have a C# server application that's stuck in a loop somewhere; after a while the process just constantly uses 13% CPU (1 core). I'm pretty sure it's one of my ThreadPool threads that's doing this; some command sent by the client eventually triggers this infinite loop. I've looked at the StackTrace&amp;#8230;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/420285-Get-stack-trace-of-a-ThreadPool-Thread/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/420285/Trackback.aspx</trackback:ping></item><item><title>C# EventHandlers... [C# EventHandlers...]</title><description>Is there a difference between these two lines?&lt;BR&gt;&lt;BR&gt;button.Click += new EventHandler(OnButtonClick);&lt;BR&gt;button.Click += OnButtonClick;&lt;BR&gt;&lt;BR&gt;Both compile and work from what I can see. Do they behave differently? Is one preferred over the other?&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/411816-C-EventHandlers/'&gt;C# EventHandlers...&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/411816/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/411816-C-EventHandlers/</comments><link>http://channel9.msdn.com/forums/TechOff/411816-C-EventHandlers/</link><pubDate>Wed, 25 Jun 2008 14:04:39 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/411816-C-EventHandlers/</guid><evnet:views>1316</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/411816/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Is there a difference between these two lines?button.Click += new EventHandler(OnButtonClick);button.Click += OnButtonClick;Both compile and work from what I can see. Do they behave differently? Is one preferred over the other?in reply to C# EventHandlers...</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>12</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/411816-C-EventHandlers/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/411816/Trackback.aspx</trackback:ping></item><item><title>C# parameter passing... [C# parameter passing...]</title><description>&lt;P&gt;I pass in an object to a method. This method modifies some properties of the object. After the method returns the changes it made to the object seem to have disappeared as if the object passed in was passed by value rather than reference. &lt;BR&gt;&lt;BR&gt;Is there any instance where C# would do such a thing?&lt;BR&gt;&lt;BR&gt;This is how I would like write my code:&lt;BR&gt;ResetStopTimes(stops, loadTimes);&lt;BR&gt;&lt;BR&gt;private static void ResetStopTimes(Stop[] stops, Dictionary&amp;lt;int, TimeSpan&amp;gt;) { ... }&lt;BR&gt;&lt;BR&gt;I need to write my code like this in order to get the changes out of the function:&lt;BR&gt;stops = ResetStopTimes(stops, ref loadTimes);&lt;BR&gt;&lt;BR&gt;private static Stop[] ResetStopTimes(Stop[] stops, ref Dictionary&amp;lt;int, TimeSpan&amp;gt;) { ... }&lt;BR&gt;&lt;BR&gt;It's wierd as most places I don't need this hack. It behaves like I would expect it. Anyone know what's going on here?&lt;BR&gt;&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/404939-C-parameter-passing/'&gt;C# parameter passing...&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/404939/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/404939-C-parameter-passing/</comments><link>http://channel9.msdn.com/forums/TechOff/404939-C-parameter-passing/</link><pubDate>Thu, 22 May 2008 14:51:59 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/404939-C-parameter-passing/</guid><evnet:views>1835</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/404939/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>&lt;P&gt;I pass in an object to a method. This method modifies some properties of the object. After the method returns the changes it made to the object seem to have disappeared as if the object passed in was passed by value rather than reference. &lt;BR&gt;&lt;BR&gt;Is there any instance where C# would do such a thing?&lt;BR&gt;&lt;BR&gt;This is how I would like write my code:&lt;BR&gt;ResetStopTimes(stops, loadTimes);&lt;BR&gt;&lt;BR&gt;private static void ResetStopTimes(Stop[] stops, Dictionary&amp;lt;int, TimeSpan&amp;gt;) { ... }&lt;BR&gt;&lt;BR&gt;I need to write my code like this in order to get the changes out of the function:&lt;BR&gt;stops = ResetStopTimes(stops, ref loadTimes);&lt;BR&gt;&lt;BR&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>14</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/404939-C-parameter-passing/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/404939/Trackback.aspx</trackback:ping></item><item><title>I'm stumped... [I'm stumped...]</title><description>&lt;P&gt;I've been thinking about this problem for a while and don't know how to solve it without using strings...&lt;BR&gt;&lt;BR&gt;The method looks like this...&lt;BR&gt;double Format(double d, double precision)&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;BR&gt;}&lt;BR&gt;&lt;BR&gt;d is the double I want to format and precision is how it needs to be formatted&lt;BR&gt;&lt;BR&gt;for example:&lt;BR&gt;d = 2.06&lt;BR&gt;precision = 1.0&lt;BR&gt;returns: 2&lt;BR&gt;&lt;BR&gt;d = 36.04&lt;BR&gt;precision = 1.0&lt;BR&gt;returns: 6&lt;BR&gt;&lt;BR&gt;d = 36.04894&lt;BR&gt;precision = 2.3&lt;BR&gt;returns: 36.048&lt;BR&gt;&lt;BR&gt;It's only a few lines of code if I convert the two parameters to strings, but I feel like there must be a mathematical approach to solve this problem too...any ideas? :|&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/403875-Im-stumped/'&gt;I'm stumped...&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/403875/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/403875-Im-stumped/</comments><link>http://channel9.msdn.com/forums/TechOff/403875-Im-stumped/</link><pubDate>Fri, 16 May 2008 17:40:53 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/403875-Im-stumped/</guid><evnet:views>895</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/403875/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I've been thinking about this problem for a while and don't know how to solve it without using strings...The method looks like this...double Format(double d, double precision){&amp;nbsp;&amp;nbsp;&amp;nbsp;...}d is the double I want to format and precision is how it needs to be formattedfor example:d = 2.06precision = 1.0returns: 2d = 36.04precision = 1.0returns: 6d = 36.04894precision = 2.3returns: 36.048It's only a few lines of code if I convert the two parameters to strings, but I feel like there must be a mathematical approach to solve this problem too...any ideas? &lt;img src='/emoticons/C9/emotion-8.gif' alt='Expressionless' /&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>6</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/403875-Im-stumped/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/403875/Trackback.aspx</trackback:ping></item><item><title>c++/cli xmldoc intellisense support? [c++/cli xmldoc intellisense support?]</title><description>&lt;P&gt;I was toying around with a C++/CLI project in VS2005 and noticed that xml comments '///'&amp;nbsp;don't seem to work like they do in c#. :(&lt;BR&gt;&lt;BR&gt;So I thought perhaps there just isn't intellisense support for '///' in the language so I manually put xml comments in my class. But I noticed when using the class I just commented (in another C# project) that the comments do not show up in intellisense. Is there something I doing wrong or does C++/CLI not support this sort of documentation?&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/260575-ccli-xmldoc-intellisense-support/'&gt;c++/cli xmldoc intellisense support?&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/260575/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/260575-ccli-xmldoc-intellisense-support/</comments><link>http://channel9.msdn.com/forums/TechOff/260575-ccli-xmldoc-intellisense-support/</link><pubDate>Sun, 27 Jan 2008 07:05:43 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/260575-ccli-xmldoc-intellisense-support/</guid><evnet:views>1231</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/260575/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>&lt;P&gt;I was toying around with a C++/CLI project in VS2005 and noticed that xml comments '///'&amp;nbsp;don't seem to work like they do in c#. &lt;img src='/emoticons/C9/emotion-6.gif' alt='Sad' /&gt;&lt;BR&gt;&lt;BR&gt;So I thought perhaps there just isn't intellisense support for '///' in the language so I manually put xml comments in my class. But I noticed when using the class I just commented (in another C# project) that the comments do not show up in intellisense. Is there something I doing wrong or does C++/CLI not support this sort of documentation?&lt;/P&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>4</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/260575-ccli-xmldoc-intellisense-support/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/260575/Trackback.aspx</trackback:ping></item><item><title>Broken try catch [Broken try catch]</title><description>&lt;P&gt;I wanted a more user friendly experience when this C# app crashes. So I wrapped all the code in Main() in a try catch to handle any unhandled exceptions. Inside the catch I show an error reporting dialog where the user has the option to report the error.&lt;BR&gt;&lt;BR&gt;So I assumed that all unhandled exceptions would end up in this catch block, but it doesn't seem to be the case. On some machines the catch block doesn't catch the exception and the standard .NET exception dialog pops up.&lt;BR&gt;&lt;BR&gt;So is there any instance where a try catch wouldn't catch an exception?&lt;BR&gt;&lt;BR&gt;Just a side note: All machines that this is tested on have .NET 2.0 SP1. The two machines that do not catch the exception have server 2003 installed.&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/260070-Broken-try-catch/'&gt;Broken try catch&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/260070/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/260070-Broken-try-catch/</comments><link>http://channel9.msdn.com/forums/TechOff/260070-Broken-try-catch/</link><pubDate>Sun, 06 Jan 2008 22:34:27 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/260070-Broken-try-catch/</guid><evnet:views>1369</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/260070/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>&lt;P&gt;I wanted a more user friendly experience when this C# app crashes. So I wrapped all the code in Main() in a try catch to handle any unhandled exceptions. Inside the catch I show an error reporting dialog where the user has the option to report the error.&lt;BR&gt;&lt;BR&gt;So I assumed that all unhandled exceptions would end up in this catch block, but it doesn't seem to be the case. On some machines the catch block doesn't catch the exception and the standard .NET exception dialog pops up.&lt;BR&gt;&lt;BR&gt;So is there any instance where a try catch wouldn't catch an exception?&lt;BR&gt;&lt;BR&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>4</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/260070-Broken-try-catch/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/260070/Trackback.aspx</trackback:ping></item><item><title>Prevent combobox from closing... [Prevent combobox from closing...]</title><description>So I'm trying to prevent a ComboBox from closing it's dropdown after an item is selected. I can't seem to figure it out.&lt;BR&gt;&lt;BR&gt;I tried overriding WndProc and listening for CBN_CLOSEUP, but have found that that notification is called after the dropdown closes, not before. I've also tried CBN_SELENDOK. Does anyone have any other ideas?&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/259187-Prevent-combobox-from-closing/'&gt;Prevent combobox from closing...&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/259187/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/259187-Prevent-combobox-from-closing/</comments><link>http://channel9.msdn.com/forums/TechOff/259187-Prevent-combobox-from-closing/</link><pubDate>Fri, 23 Nov 2007 22:00:19 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/259187-Prevent-combobox-from-closing/</guid><evnet:views>1241</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/259187/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>So I'm trying to prevent a ComboBox from closing it's dropdown after an item is selected. I can't seem to figure it out.&lt;BR&gt;&lt;BR&gt;I tried overriding WndProc and listening for CBN_CLOSEUP, but have found that that notification is called after the dropdown closes, not before. I've also tried CBN_SELENDOK. Does anyone have any other ideas?</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/259187-Prevent-combobox-from-closing/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/259187/Trackback.aspx</trackback:ping></item><item><title>Operator overloads in C# and generics [Operator overloads in C# and generics]</title><description>I'm trying to do an explicit operator overload on a generic class and am not seeming to have any luck. Is the following possible?&amp;nbsp;Is there some other approach I should&amp;nbsp;try that acheives the same thing?&lt;BR&gt;&lt;BR&gt;
&lt;P&gt;Field&amp;lt;string&amp;gt; f = "some test"; //this works fine&lt;BR&gt;string s = f; //compiler doesn't like this line&lt;BR&gt;&lt;BR&gt;public class Field&amp;lt;T&amp;gt; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public T Value {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;get { return m_Value; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set { m_Value = value; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;private T m_Value;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public Field() { }&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static implicit operator Field&amp;lt;T&amp;gt;(T value) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Field&amp;lt;T&amp;gt; field = new Field&amp;lt;T&amp;gt;();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;field.Value = value;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return field;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static explicit operator T(Field&amp;lt;T&amp;gt; field) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return field.Value;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR&gt;}&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/258636-Operator-overloads-in-C-and-generics/'&gt;Operator overloads in C# and generics&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/258636/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/258636-Operator-overloads-in-C-and-generics/</comments><link>http://channel9.msdn.com/forums/TechOff/258636-Operator-overloads-in-C-and-generics/</link><pubDate>Wed, 31 Oct 2007 04:18:20 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/258636-Operator-overloads-in-C-and-generics/</guid><evnet:views>1930</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/258636/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I'm trying to do an explicit operator overload on a generic class and am not seeming to have any luck. Is the following possible?&amp;nbsp;Is there some other approach I should&amp;nbsp;try that acheives the same thing?&lt;BR&gt;&lt;BR&gt;
&lt;P&gt;Field&amp;lt;string&amp;gt; f = "some test"; //this works fine&lt;BR&gt;string s = f; //compiler doesn't like this line&lt;BR&gt;&lt;BR&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/258636-Operator-overloads-in-C-and-generics/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/258636/Trackback.aspx</trackback:ping></item><item><title>C# Designer Property Confusion [C# Designer Property Confusion]</title><description>&lt;P&gt;I have defined an interface called ICustomControl that all of my controls implement. One property in the interface is...&lt;BR&gt;&lt;BR&gt;bool LockControl { get; set; }&lt;BR&gt;&lt;BR&gt;This property exists so that I can iterate through a collection of ICustomControls and lock them or unlock them. The definition of "locking" a control is control specific. &lt;BR&gt;&lt;BR&gt;For a textbox the property looks like this...&lt;BR&gt;public bool LockControl { get { return ReadOnly; } set { ReadOnly = value; } }&lt;BR&gt;&lt;BR&gt;For most controls the property looks like this...&lt;BR&gt;public bool LockControl { get { return !Enabled; } set {Enabled = !value; } }&lt;BR&gt;&lt;BR&gt;When in the designer I am able to change the LockControl property of a textbox and the ReadOnly property changes along with it. This does not work for controls whose LockControl property tries to change the Enabled property. In fact, the designer does not even allow me to change the value of LockControl.&lt;BR&gt;&lt;BR&gt;Is there an attribute I have to put on the property to get this to work correctly in the designer?&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/255801-C-Designer-Property-Confusion/'&gt;C# Designer Property Confusion&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/255801/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/255801-C-Designer-Property-Confusion/</comments><link>http://channel9.msdn.com/forums/TechOff/255801-C-Designer-Property-Confusion/</link><pubDate>Wed, 27 Jun 2007 23:33:13 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/255801-C-Designer-Property-Confusion/</guid><evnet:views>2391</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/255801/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>&lt;P&gt;I have defined an interface called ICustomControl that all of my controls implement. One property in the interface is...&lt;BR&gt;&lt;BR&gt;bool LockControl { get; set; }&lt;BR&gt;&lt;BR&gt;This property exists so that I can iterate through a collection of ICustomControls and lock them or unlock them. The definition of "locking" a control is control specific. &lt;BR&gt;&lt;BR&gt;For a textbox the property looks like this...&lt;BR&gt;public bool LockControl { get { return ReadOnly; } set { ReadOnly = value; } }&lt;BR&gt;&lt;BR&gt;For most controls the property looks like this...&lt;BR&gt;public bool LockControl { get { return !Enabled; } set {Enabled = !value; } }&lt;BR&gt;&lt;BR&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/255801-C-Designer-Property-Confusion/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/255801/Trackback.aspx</trackback:ping></item><item><title>LINQ Book [LINQ Book]</title><description>&lt;P&gt;Can anyone recommend a good book on LINQ? I would like to learn as much as I can about it as I would like to consider using it for a project.&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/254005-LINQ-Book/'&gt;LINQ Book&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/254005/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/254005-LINQ-Book/</comments><link>http://channel9.msdn.com/forums/TechOff/254005-LINQ-Book/</link><pubDate>Sat, 14 Apr 2007 03:57:24 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/254005-LINQ-Book/</guid><evnet:views>6730</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/254005/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>&lt;P&gt;Can anyone recommend a good book on LINQ? I would like to learn as much as I can about it as I would like to consider using it for a project.&lt;/P&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>9</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/254005-LINQ-Book/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/254005/Trackback.aspx</trackback:ping></item><item><title>300 [300]</title><description>300 was good I suggest you go see it :D&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/Coffeehouse/253024-300/'&gt;300&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/253024/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/Coffeehouse/253024-300/</comments><link>http://channel9.msdn.com/forums/Coffeehouse/253024-300/</link><pubDate>Sat, 10 Mar 2007 08:19:18 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/Coffeehouse/253024-300/</guid><evnet:views>3869</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/253024/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>300 was good I suggest you go see it &lt;img src='/emoticons/C9/emotion-2.gif' alt='Big Smile' /&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>8</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/Coffeehouse/253024-300/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/253024/Trackback.aspx</trackback:ping></item><item><title>SP1 for VS2005 install [SP1 for VS2005 install]</title><description>&lt;P&gt;Anyone else find the SP1 install to be very slow? It has been "Gathering Information" for about an hour.&lt;BR&gt;&lt;BR&gt;msiexec is @ 100% cpu usage :(&lt;BR&gt;&lt;BR&gt;I've found forums with people having the same problem but no solution. Is there a fix?&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/Coffeehouse/252987-SP1-for-VS2005-install/'&gt;SP1 for VS2005 install&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/252987/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/Coffeehouse/252987-SP1-for-VS2005-install/</comments><link>http://channel9.msdn.com/forums/Coffeehouse/252987-SP1-for-VS2005-install/</link><pubDate>Fri, 09 Mar 2007 02:38:10 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/Coffeehouse/252987-SP1-for-VS2005-install/</guid><evnet:views>6032</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/252987/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>&lt;P&gt;Anyone else find the SP1 install to be very slow? It has been "Gathering Information" for about an hour.&lt;BR&gt;&lt;BR&gt;msiexec is @ 100% cpu usage &lt;img src='/emoticons/C9/emotion-6.gif' alt='Sad' /&gt;&lt;BR&gt;&lt;BR&gt;I've found forums with people having the same problem but no solution. Is there a fix?&lt;/P&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>16</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/Coffeehouse/252987-SP1-for-VS2005-install/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/252987/Trackback.aspx</trackback:ping></item><item><title>Bill's view on Apple ads [Bill's view on Apple ads]</title><description>I've always wanted to know what Bill thought about the Apple ads. I guess this article I found says it all...&lt;BR&gt;&lt;BR&gt;“And I don't know why [Apple is] acting like it’s superior. I don't even get it. What are they trying to say?” Gates continues to express his disgust with the Apple ads: “Does honesty matter in these things, or if you're really cool, that means you get to be a lying person whenever you feel like it? There's not even the slightest shred of truth to it.”&lt;BR&gt;&lt;BR&gt;&lt;a href="http://www.dailytech.com/article.aspx?newsid=5957"&gt;http://www.dailytech.com/article.aspx?newsid=5957&lt;/a&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/Coffeehouse/252025-Bills-view-on-Apple-ads/'&gt;Bill's view on Apple ads&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/252025/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/Coffeehouse/252025-Bills-view-on-Apple-ads/</comments><link>http://channel9.msdn.com/forums/Coffeehouse/252025-Bills-view-on-Apple-ads/</link><pubDate>Sun, 04 Feb 2007 17:46:10 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/Coffeehouse/252025-Bills-view-on-Apple-ads/</guid><evnet:views>1595</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/252025/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I've always wanted to know what Bill thought about the Apple ads. I guess this article I found says it all...&lt;BR&gt;&lt;BR&gt;“And I don't know why [Apple is] acting like it’s superior. I don't even get it. What are they trying to say?” Gates continues to express his disgust with the Apple ads: “Does honesty matter in these things, or if you're really cool, that means you get to be a lying person whenever you feel like it? There's not even the slightest shred of truth to it.”&lt;BR&gt;&lt;BR&gt;&lt;a href="http://www.dailytech.com/article.aspx?newsid=5957"&gt;http://www.dailytech.com/article.aspx?newsid=5957&lt;/a&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/Coffeehouse/252025-Bills-view-on-Apple-ads/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/252025/Trackback.aspx</trackback:ping></item><item><title>A question for the ages/people good with SQL [A question for the ages/people good with SQL]</title><description>I have this table (CustomerTripTaken) that holds the ID's of customers that have taken trips. I created a SQL trigger on the Trip table that inserts the customer id into this CustomerTripTaken table.&lt;BR&gt;&lt;BR&gt;&lt;U&gt;Here's the trigger...&lt;/U&gt;&lt;BR&gt;&lt;SPAN&gt;create trigger TripTrigger&lt;BR&gt;o&lt;/SPAN&gt;&lt;SPAN&gt;n Trip for Insert, Update as&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN&gt;if update(Customer) begin&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;decare @id int&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;select @id = (select Customer from inserted)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;if not exists(select CustomerID from&amp;nbsp;CustomerTripTaken where CustomerID = @id and UpdateType = ‘CHECK’) begin&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;insert into CustomerTripTaken (CustomerID, UpdateType)&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values (@id, ‘CHECK’)&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN&gt;end&lt;BR&gt;&lt;o:p&gt;&lt;BR&gt;My problem is that when looking in the CustomerTripTaken table there are no rows of UpdateType 'CHECK'. This makes no sense because when looking at recently created trips the Customer column is not null; it in fact has a customer id in it. So how does Customer get filled in on the Trip table without my trigger knowing about it? Ugh.&lt;/o:p&gt;&lt;/SPAN&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/251338-A-question-for-the-agespeople-good-with-SQL/'&gt;A question for the ages/people good with SQL&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/251338/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/251338-A-question-for-the-agespeople-good-with-SQL/</comments><link>http://channel9.msdn.com/forums/TechOff/251338-A-question-for-the-agespeople-good-with-SQL/</link><pubDate>Wed, 10 Jan 2007 21:44:27 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/251338-A-question-for-the-agespeople-good-with-SQL/</guid><evnet:views>1321</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/251338/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I have this table (CustomerTripTaken) that holds the ID's of customers that have taken trips. I created a SQL trigger on the Trip table that inserts the customer id into this CustomerTripTaken table.&lt;BR&gt;&lt;BR&gt;&lt;U&gt;Here's the trigger...&lt;/U&gt;&lt;BR&gt;&lt;SPAN&gt;create trigger TripTrigger&lt;BR&gt;o&lt;/SPAN&gt;&lt;SPAN&gt;n Trip for Insert, Update as&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN&gt;if update(Customer) begin&lt;BR&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/251338-A-question-for-the-agespeople-good-with-SQL/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/251338/Trackback.aspx</trackback:ping></item><item><title>can someone explain fair use to me [can someone explain fair use to me]</title><description>&lt;P&gt;So I created a sports video of my favorite team consisting of highlights put to music.&lt;BR&gt;&lt;BR&gt;The video was rejected by Google Video citing violation of copyright. This is odd because I uploaded an almost identical video in May with no problem.&lt;BR&gt;&lt;BR&gt;What I don't get is why a collection of highlights put to music is copyright infringement. Isn't this just "fair use"? It's not like I'm making money on it. [C]&lt;BR&gt;&lt;BR&gt;Am I not allowed to legally create a sports video using music and hightlights I like and share it with other fans? If the answer to this is no, something needs to change.&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/Coffeehouse/251018-can-someone-explain-fair-use-to-me/'&gt;can someone explain fair use to me&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/251018/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/Coffeehouse/251018-can-someone-explain-fair-use-to-me/</comments><link>http://channel9.msdn.com/forums/Coffeehouse/251018-can-someone-explain-fair-use-to-me/</link><pubDate>Sun, 24 Dec 2006 02:15:43 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/Coffeehouse/251018-can-someone-explain-fair-use-to-me/</guid><evnet:views>12635</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/251018/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>&lt;P&gt;So I created a sports video of my favorite team consisting of highlights put to music.&lt;BR&gt;&lt;BR&gt;The video was rejected by Google Video citing violation of copyright. This is odd because I uploaded an almost identical video in May with no problem.&lt;BR&gt;&lt;BR&gt;What I don't get is why a collection of highlights put to music is copyright infringement. Isn't this just "fair use"? It's not like I'm making money on it. [C]&lt;BR&gt;&lt;BR&gt;Am I not allowed to legally create a sports video using music and hightlights I like and share it with other fans? If the answer to this is no, something needs to change.&lt;/P&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>17</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/Coffeehouse/251018-can-someone-explain-fair-use-to-me/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/251018/Trackback.aspx</trackback:ping></item><item><title>get sql statements being executed... [get sql statements being executed...]</title><description>&lt;P&gt;I am writing a little c# app, but right now I'm stuck. [C]&lt;BR&gt;&lt;BR&gt;I would like to capture all of the SQL statements that are being executed on my SQL 2000 server.&lt;BR&gt;&lt;BR&gt;Basically when a SQL statement is executed I want the statement sent to my app. If "select * from Customers" is executed then the string "select * from Customers" should be passed to some function in my app.&lt;BR&gt;&lt;BR&gt;If I can't this data in an event based way, is there some data&amp;nbsp;source on the server I could constantly poll? Perhaps a system table or log file?&lt;BR&gt;&lt;BR&gt;I've looked at notification services, but it looks like it provides data not raw queries.&lt;BR&gt;&lt;BR&gt;Any help would be appreciated. Thanks.&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/250907-get-sql-statements-being-executed/'&gt;get sql statements being executed...&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/250907/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/250907-get-sql-statements-being-executed/</comments><link>http://channel9.msdn.com/forums/TechOff/250907-get-sql-statements-being-executed/</link><pubDate>Tue, 19 Dec 2006 22:01:53 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/250907-get-sql-statements-being-executed/</guid><evnet:views>3802</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/250907/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>&lt;P&gt;I am writing a little c# app, but right now I'm stuck. [C]&lt;BR&gt;&lt;BR&gt;I would like to capture all of the SQL statements that are being executed on my SQL 2000 server.&lt;BR&gt;&lt;BR&gt;Basically when a SQL statement is executed I want the statement sent to my app. If "select * from Customers" is executed then the string "select * from Customers" should be passed to some function in my app.&lt;BR&gt;&lt;BR&gt;If I can't this data in an event based way, is there some data&amp;nbsp;source on the server I could constantly poll? Perhaps a system table or log file?&lt;BR&gt;&lt;BR&gt;I've looked at notification services, but it looks like it provides data not raw queries.&lt;BR&gt;&lt;BR&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>8</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/250907-get-sql-statements-being-executed/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/250907/Trackback.aspx</trackback:ping></item><item><title>Buffalo 0; God 1 [Buffalo 0; God 1]</title><description>I got back my internet/cable yesterday after a storm that hit on Thursday (10/12)&amp;nbsp;evening. Aparently two and a half feet of snow is destructive. :P&lt;BR&gt;&lt;BR&gt;The real destuction was to the trees which in turn left about&amp;nbsp;200,000+ households without power. The leaves haven't fallen yet which caused the trees to accumulate too much snow and collapse. There are still 63,000 people without power.&lt;BR&gt;&lt;BR&gt;Luckily we didn't lose power and heat. Guess what that means? The whole family stayed with us. :(&lt;BR&gt;&lt;BR&gt;Here are some photos of the destruction:&lt;BR&gt;&lt;a href="http://newstrackerstormphots.blogspot.com/"&gt;http://newstrackerstormphots.blogspot.com/&lt;/a&gt;&lt;BR&gt;&lt;BR&gt;To no surprise, FEMA is late; they arrived yesterday. :@&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/Coffeehouse/241731-Buffalo-0-God-1/'&gt;Buffalo 0; God 1&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/241731/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/Coffeehouse/241731-Buffalo-0-God-1/</comments><link>http://channel9.msdn.com/forums/Coffeehouse/241731-Buffalo-0-God-1/</link><pubDate>Thu, 19 Oct 2006 19:25:10 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/Coffeehouse/241731-Buffalo-0-God-1/</guid><evnet:views>1740</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/241731/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I got back my internet/cable yesterday after a storm that hit on Thursday (10/12)&amp;nbsp;evening. Aparently two and a half feet of snow is destructive. &lt;img src='/emoticons/C9/emotion-4.gif' alt='Tongue Out' /&gt;&lt;BR&gt;&lt;BR&gt;The real destuction was to the trees which in turn left about&amp;nbsp;200,000+ households without power. The leaves haven't fallen yet which caused the trees to accumulate too much snow and collapse. There are still 63,000 people without power.&lt;BR&gt;&lt;BR&gt;Luckily we didn't lose power and heat. Guess what that means? The whole family stayed with us. &lt;img src='/emoticons/C9/emotion-6.gif' alt='Sad' /&gt;&lt;BR&gt;&lt;BR&gt;Here are some photos of the destruction:&lt;BR&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/Coffeehouse/241731-Buffalo-0-God-1/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/241731/Trackback.aspx</trackback:ping></item><item><title>can someone explain this product to me...? [can someone explain this product to me...?]</title><description>&lt;P&gt;&lt;a href="http://www.ncomputing.com/ncomputing/solutions/overview.php"&gt;http://www.ncomputing.com/ncomputing/solutions/overview.php&lt;/a&gt;&lt;BR&gt;&lt;BR&gt;I just don't get it. First of all it seems too good/cheap to be true. &lt;BR&gt;&lt;BR&gt;I don't understand how it doesn't violate MS licensing. Wouldn't you need an OS license for each user? And if you are running it off a server wouldn't you need terminal server CALs? I must be missing something.&lt;BR&gt;&lt;BR&gt;UGH. :s&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/Coffeehouse/235734-can-someone-explain-this-product-to-me/'&gt;can someone explain this product to me...?&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/235734/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/Coffeehouse/235734-can-someone-explain-this-product-to-me/</comments><link>http://channel9.msdn.com/forums/Coffeehouse/235734-can-someone-explain-this-product-to-me/</link><pubDate>Tue, 03 Oct 2006 21:15:58 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/Coffeehouse/235734-can-someone-explain-this-product-to-me/</guid><evnet:views>1776</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/235734/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>&lt;P&gt;&lt;a href="http://www.ncomputing.com/ncomputing/solutions/overview.php"&gt;http://www.ncomputing.com/ncomputing/solutions/overview.php&lt;/a&gt;&lt;BR&gt;&lt;BR&gt;I just don't get it. First of all it seems too good/cheap to be true. &lt;BR&gt;&lt;BR&gt;I don't understand how it doesn't violate MS licensing. Wouldn't you need an OS license for each user? And if you are running it off a server wouldn't you need terminal server CALs? I must be missing something.&lt;BR&gt;&lt;BR&gt;UGH. &lt;img src='/emoticons/C9/emotion-7.gif' alt='Perplexed' /&gt;&lt;/P&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/Coffeehouse/235734-can-someone-explain-this-product-to-me/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/235734/Trackback.aspx</trackback:ping></item><item><title>i can't seem to find... [i can't seem to find...]</title><description>I am looking for a good PDA; mine's on its last legs. Why can't I find one with a built in camera that is not a phone??? [C]&lt;BR&gt;&lt;BR&gt;If someone could point me to such a device I would go from this [C] to this :D&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/Coffeehouse/230224-i-cant-seem-to-find/'&gt;i can't seem to find...&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/230224/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/Coffeehouse/230224-i-cant-seem-to-find/</comments><link>http://channel9.msdn.com/forums/Coffeehouse/230224-i-cant-seem-to-find/</link><pubDate>Sat, 16 Sep 2006 18:33:14 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/Coffeehouse/230224-i-cant-seem-to-find/</guid><evnet:views>2262</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/230224/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I am looking for a good PDA; mine's on its last legs. Why can't I find one with a built in camera that is not a phone??? [C]&lt;BR&gt;&lt;BR&gt;If someone could point me to such a device I would go from this [C] to this &lt;img src='/emoticons/C9/emotion-2.gif' alt='Big Smile' /&gt;</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/Coffeehouse/230224-i-cant-seem-to-find/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/230224/Trackback.aspx</trackback:ping></item><item><title>Apple opens up kernel [Apple opens up kernel]</title><description>So I guess Apple released their kernel source of OS X.&lt;BR&gt;&lt;a href="http://www.dailytech.com/article.aspx?newsid=3718"&gt;http://www.dailytech.com/article.aspx?newsid=3718&lt;/a&gt;&lt;BR&gt;&lt;a href="http://www.opensource.apple.com/darwinsource/10.4.6.x86/"&gt;http://www.opensource.apple.com/darwinsource/10.4.6.x86/&lt;/a&gt;&lt;BR&gt;&lt;BR&gt;I am unsure if this is good for Apple or bad. Will it hurt MS at all?&lt;BR&gt;Thoughts?&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/Coffeehouse/218745-Apple-opens-up-kernel/'&gt;Apple opens up kernel&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/218745/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/Coffeehouse/218745-Apple-opens-up-kernel/</comments><link>http://channel9.msdn.com/forums/Coffeehouse/218745-Apple-opens-up-kernel/</link><pubDate>Tue, 08 Aug 2006 21:51:40 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/Coffeehouse/218745-Apple-opens-up-kernel/</guid><evnet:views>2046</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/218745/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>So I guess Apple released their kernel source of OS X.&lt;BR&gt;&lt;a href="http://www.dailytech.com/article.aspx?newsid=3718"&gt;http://www.dailytech.com/article.aspx?newsid=3718&lt;/a&gt;&lt;BR&gt;&lt;a href="http://www.opensource.apple.com/darwinsource/10.4.6.x86/"&gt;http://www.opensource.apple.com/darwinsource/10.4.6.x86/&lt;/a&gt;&lt;BR&gt;&lt;BR&gt;I am unsure if this is good for Apple or bad. Will it hurt MS at all?&lt;BR&gt;Thoughts?</evnet:previewtext><dc:creator>ploe</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/Coffeehouse/218745-Apple-opens-up-kernel/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/218745/Trackback.aspx</trackback:ping></item></channel></rss>