﻿<?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>Wed, 17 Jan 2007 03:10:21 GMT</pubDate>
    <lastBuildDate>Wed, 17 Jan 2007 03:10:21 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>The Interview</title>
      <description>&lt;P&gt;Being an 7-time author of technical books and a very successful developer and popular blogger in Toronto, I'm getting much different interviews than I did in the 90s when I was just starting out. Now, people tell me they read my book(s) or read my blog. But today, I had a really horrible interview because of it. The technical lead in the interview decided to take this opportunity to show off his intelligence to his non-technical co-workers. So, he started asking these really obscure questions that nobody in the right mind should know the answers too.&amp;nbsp;Unfortunately for both of us, I did know the answers to some of the questions. I'm a quack that way. He began getting frustrated and the questions started getting&amp;nbsp;more and more&amp;nbsp;oscure. Eventually, he gave up and simply told me that I was wrong and didn't know what I was talking about. He claimed that you couldn't do an INNER JOIN on two tables and OUTER JOIN the result to a third table all in one SQL statement. I had done this a thousand times in my career, so I was quite certain it was possible. I didn't pursue the issue and simply said "OK".&amp;nbsp; Maybe there is some weird issue in SQL that I didn't know about? When I got home, I searched the Internet for something related to this failing of SQL. I couldn't find anything. Does anybody have any idea what this guy was talking about or was he just trying to garner brownie points with his non-technical co-workers by showing me up? &lt;/P&gt;</description>
      <link>http://www.kbcafe.com/csharp/?guid=20070116191021</link>
      <pubDate>Wed, 17 Jan 2007 03:10:21 GMT</pubDate>
      <guid>http://www.kbcafe.com/csharp/?guid=20070116191021</guid>
      <comments>http://www.kbcafe.com/csharp/?guid=20070116191021</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/csharp/trackback.aspx?guid=20070116191021</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/commentapi.aspx?guid=20070116191021</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/20070116191021.xml</wfw:commentRSS>
      <category>interview</category>
    </item>
    <item>
      <title>OPML 2 HTML</title>
      <description>&lt;P __designer:dtid="7036874417766404"&gt;In creating a blogroll for The RSS Blog, I wrote a bit of C# that converts OPML to HTML. Thought I'd share.&lt;/P&gt;
&lt;CENTER __designer:dtid="7036874417766405"&gt;&lt;TEXTAREA rows=26 cols=60 __designer:dtid="7036874417766406"&gt;string html = string.Empty;
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
doc.Load("http://www.kbcafe.com/rss/rssadvisoryboard.xml");
System.Xml.XmlNodeList list = doc.SelectNodes("//outline[@type='rss']");
foreach (System.Xml.XmlElement e in list)
{
    if (e.HasAttribute("xmlUrl"))
    {
        html += string.Format("&amp;lt;div&amp;gt;&amp;lt;a href='{0}'&amp;gt;{1}&amp;lt;/a&amp;gt; &amp;lt;a href='{2}'&amp;gt;"
            + "&amp;lt;img src='http://www.kbcafe.com/images/feed-icon-10x10.jpg alt='RSS' border='0'/&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;",
            e.GetAttribute("htmlUrl"),
            e.GetAttribute("text"),
            e.GetAttribute("xmlUrl"));
    }
    else
    {
        html += string.Format("&amp;lt;div&amp;gt;&amp;lt;a href='{0}'&amp;gt;{1}&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;",
            e.GetAttribute("htmlUrl"),
            e.GetAttribute("text"));
    }

}
System.Console.WriteLine(html);
    &lt;/TEXTAREA&gt; &lt;/CENTER&gt;</description>
      <link>http://www.kbcafe.com/csharp/?guid=20070108145323</link>
      <pubDate>Mon, 08 Jan 2007 22:53:23 GMT</pubDate>
      <guid>http://www.kbcafe.com/csharp/?guid=20070108145323</guid>
      <comments>http://www.kbcafe.com/csharp/?guid=20070108145323</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/csharp/trackback.aspx?guid=20070108145323</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/commentapi.aspx?guid=20070108145323</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/20070108145323.xml</wfw:commentRSS>
      <category>opml</category>
      <category>html</category>
      <category>c#</category>
    </item>
    <item>
      <title>Vista Countdown Widget</title>
      <description>&lt;P&gt;I saw that Miel had a Vista Countdown Widget on his &lt;A href="http://www.micromiel.com/"&gt;MicroMiel&lt;/A&gt; blog. A couple clicks later and &lt;A href="http://windowsvistablog.com/blogs/windowsvista/archive/2006/11/22/countdown-to-the-consumer-launch-of-windows-vista.aspx"&gt;there was the code to add one&lt;/A&gt; here.&lt;/P&gt;
&lt;DIV align=center&gt;
&lt;DIV style="WIDTH: 130px; POSITION: relative; HEIGHT: 142px" __designer:dtid="4222124650659844"&gt;
&lt;SCRIPT src="http://download.gallery.start.com/d.dll/1~1~485~4304/VistaCountdown.js" type=text/javascript __designer:dtid="4222124650659845"&gt;
    &lt;/SCRIPT&gt;
&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <link>http://www.kbcafe.com/csharp/?guid=20070106102248</link>
      <pubDate>Sat, 06 Jan 2007 18:22:48 GMT</pubDate>
      <guid>http://www.kbcafe.com/csharp/?guid=20070106102248</guid>
      <comments>http://www.kbcafe.com/csharp/?guid=20070106102248</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/csharp/trackback.aspx?guid=20070106102248</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/commentapi.aspx?guid=20070106102248</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/20070106102248.xml</wfw:commentRSS>
      <category>windows</category>
      <category>vista</category>
      <category>widget</category>
    </item>
    <item>
      <title>XML vs. JSON, The Mistake</title>
      <description>&lt;P&gt;Two weeks ago, &lt;A href="http://www.tbray.org/ongoing/JSON"&gt;Tim Bray made an argument&lt;/A&gt; pro-XML anti-JSON. I read this and realized immediately that his argument was incorrect. He pandered to the JSON's in making his pro-XML argument. It was completely wrong. Now, everybody and their cousin is using the argument against XML. The latest is &lt;A href="http://pluralsight.com/blogs/dbox/archive/2007/01/03/45560.aspx"&gt;Don Box&lt;/A&gt;, who does the same dumb thing as Tim. You can see he's pro-XML, but his argument includes a lot of BOGUism about JSON simplicity crap. The anti-JSON argument&amp;nbsp;has to change. Just say NO to another parser. I'm tired of the same arguments having to be rehashed every year. I don't care which is better, but starting all over at step #1 every year is crap. XML works. But I guess this is why we have Atom.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://pluralsight.com/blogs/dbox/archive/2007/01/03/45560.aspx"&gt;http://pluralsight.com/blogs/dbox/archive/2007/01/03/45560.aspx&lt;/A&gt;&lt;/P&gt;</description>
      <link>http://www.kbcafe.com/csharp/?guid=20070103133937</link>
      <pubDate>Wed, 03 Jan 2007 21:39:37 GMT</pubDate>
      <guid>http://www.kbcafe.com/csharp/?guid=20070103133937</guid>
      <comments>http://www.kbcafe.com/csharp/?guid=20070103133937</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/csharp/trackback.aspx?guid=20070103133937</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/commentapi.aspx?guid=20070103133937</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/20070103133937.xml</wfw:commentRSS>
      <category>xml</category>
      <category>json</category>
    </item>
  </channel>
</rss>
