﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Cool Programming</title>
    <link>http://www.kbcafe.com/csharp/</link>
    <description>Cool Programming Tips with C#</description>
    <managingEditor>webmaster@kbcafe.com</managingEditor>
    <webMaster>webmaster@kbcafe.com</webMaster>
    <pubDate>Mon, 21 Aug 2006 00:17:56 GMT</pubDate>
    <lastBuildDate>Mon, 21 Aug 2006 00:17:56 GMT</lastBuildDate>
    <copyright>Copyright 2005 Randy Charles Morin</copyright>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <url>http://www.kbcafe.com/csharp/logo.jpg</url>
      <title>Cool Programming</title>
      <link>http://www.kbcafe.com/csharp/</link>
    </image>
    <rar:archive xmlns:rar="http://tempuri.org">http://www.kbcafe.com/csharp/archive.xml</rar:archive>
    <item>
      <title>Sharp</title>
      <description>I love people who make sure to add sharp to the start time of their meetings. Instead of 4PM, the meeting time is 4PM sharp. As in, don't be late. This is a gross clue that the meeting won't actually take place till 4:30 PM and that everybody other than the organizer will sie around for 45 minutes, having arrived early.</description>
      <link>http://www.kbcafe.com/csharp/?guid=20060816125148</link>
      <pubDate>Wed, 16 Aug 2006 19:51:48 GMT</pubDate>
      <guid>http://www.kbcafe.com/csharp/?guid=20060816125148</guid>
      <comments>http://www.kbcafe.com/csharp/?guid=20060816125148</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/csharp/trackback.aspx?guid=20060816125148</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/commentapi.aspx?guid=20060816125148</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/20060816125148.xml</wfw:commentRSS>
      <category>meetings</category>
    </item>
    <item>
      <title>SELECT COUNT(*) </title>
      <description>&lt;P&gt;If you have ever performed a SELECT COUNT(*) on a very large table, you know how long it can take. &lt;/P&gt;
&lt;P&gt;SELECT COUNT(*) from &amp;lt;table_name&amp;gt;&lt;/P&gt;
&lt;P&gt;A much faster, and more efficient, way of counting rows in a table is to run the following query:&lt;/P&gt;
&lt;P&gt;SELECT rows &lt;BR&gt;FROM sysindexes &lt;BR&gt;WHERE id = OBJECT_ID('&amp;lt;table_name&amp;gt;') AND indid &amp;lt; 2&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sql-server-performance.com/misc_tips.asp"&gt;http://www.sql-server-performance.com/misc_tips.asp&lt;/A&gt;&lt;/P&gt;</description>
      <link>http://www.kbcafe.com/csharp/?guid=20060815074445</link>
      <pubDate>Tue, 15 Aug 2006 14:44:45 GMT</pubDate>
      <guid>http://www.kbcafe.com/csharp/?guid=20060815074445</guid>
      <comments>http://www.kbcafe.com/csharp/?guid=20060815074445</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/csharp/trackback.aspx?guid=20060815074445</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/commentapi.aspx?guid=20060815074445</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/20060815074445.xml</wfw:commentRSS>
      <category>sql</category>
      <category>performance</category>
    </item>
    <item>
      <title>Check for NULL</title>
      <description>&lt;P&gt;Some people think you shoud always check for NULL. I'm not one of them. But, if you are gonna check for NULL, then do something about it before you end up with the following code, which would've been better had he not checked for NULL.&lt;/P&gt;&lt;FONT size=2&gt;
&lt;BLOCKQUOTE&gt;try &lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp; var obj = new Object();&lt;BR&gt;&amp;nbsp;&amp;nbsp; if ( obj != null )&lt;BR&gt;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.Load();&lt;BR&gt;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;}&lt;BR&gt;catch ( e ) &lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp; window.alert( "Unable to load");&lt;BR&gt;}&lt;/BLOCKQUOTE&gt;&lt;/FONT&gt;</description>
      <link>http://www.kbcafe.com/csharp/?guid=20060803144204</link>
      <pubDate>Thu, 03 Aug 2006 21:42:04 GMT</pubDate>
      <guid>http://www.kbcafe.com/csharp/?guid=20060803144204</guid>
      <comments>http://www.kbcafe.com/csharp/?guid=20060803144204</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/csharp/trackback.aspx?guid=20060803144204</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/commentapi.aspx?guid=20060803144204</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/20060803144204.xml</wfw:commentRSS>
      <category>coding</category>
    </item>
    <item>
      <title>System.Net.WebException: The operation has timed-out.</title>
      <description>&lt;P __designer:dtid="562949953421316"&gt;If you open more than a few connections to the same website using HttpWebRequest, then you'll likely get this misleading exception. You can fix the problem by making sure you close your HTTP connections.&lt;/P&gt;&lt;PRE __designer:dtid="562949953421317"&gt;        HttpWebRequest r = WebRequest.Create("http://xyz");
        HttpWebResponse w = r.GetResponse()
        ... // &amp;lt;&amp;lt; do stuff here
        w.Close(); // &amp;lt;&amp;lt; frees the connection    &lt;/PRE&gt;</description>
      <link>http://www.kbcafe.com/csharp/?guid=20060801062155</link>
      <pubDate>Tue, 01 Aug 2006 13:21:55 GMT</pubDate>
      <guid>http://www.kbcafe.com/csharp/?guid=20060801062155</guid>
      <comments>http://www.kbcafe.com/csharp/?guid=20060801062155</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/csharp/trackback.aspx?guid=20060801062155</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/commentapi.aspx?guid=20060801062155</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/20060801062155.xml</wfw:commentRSS>
      <category>.net</category>
      <category>C#</category>
      <category>http</category>
    </item>
  </channel>
</rss>
