﻿<?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>Sat, 15 Nov 2008 03:53:24 GMT</pubDate>
    <lastBuildDate>Sat, 15 Nov 2008 03:53:24 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>HowTo C# Mobile</title>
      <description>&lt;P&gt;I've been struggling with just how to write a mobile website. What I've noticed is a bunch of really crappy mobile websites and I sure didn't want to do one of them. My approach was to simply tweak my existing HTML websites for mobile devices. Here's what I wrote. When mobile is true, I simply remove the clutter normally in my HTML websites. Sorry for the lack of formatting. My code was partially based on &lt;A href="http://www.binaryrefinery.com/main/PermaLink,guid,fec7f2ca-503d-45b2-9684-9cd0787ec3c7.aspx"&gt;code written by Richard Jones&lt;/A&gt;.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;bool&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; mobile = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;false&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;try&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;{&lt;BR&gt;&amp;nbsp; System.Web.Mobile.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;MobileCapabilities&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; cur = (System.Web.Mobile.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;MobileCapabilities&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;)Request.Browser;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp; if&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; (cur.IsMobileDevice&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; || (Request.UserAgent.IndexOf(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Windows CE"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;) != -1)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; || (Request.UserAgent.IndexOf(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"iPhone;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;) != -1)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; || (Request.UserAgent.IndexOf(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"iPod;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;) != -1))&lt;BR&gt;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mobile = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Items.Add(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"mobile"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;BR&gt;&amp;nbsp; }&lt;BR&gt;}&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;catch&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;{&lt;BR&gt;}&lt;/P&gt;&lt;/FONT&gt;&lt;/BLOCKQUOTE&gt;</description>
      <link>http://www.kbcafe.com/csharp/?guid=20081114215324</link>
      <pubDate>Sat, 15 Nov 2008 03:53:24 GMT</pubDate>
      <guid>http://www.kbcafe.com/csharp/?guid=20081114215324</guid>
      <comments>http://www.kbcafe.com/csharp/?guid=20081114215324</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/csharp/trackback.aspx?guid=20081114215324</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/commentapi.aspx?guid=20081114215324</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/20081114215324.xml</wfw:commentRSS>
      <category>c#</category>
      <category>mobile</category>
    </item>
    <item>
      <title>Facebook Mobile Sucks</title>
      <description>Today, I was trying to use Facebook mobile. Wow! That realy sucks. Most everything in Facebook is unavailable in their mobile offering. You can barely do anything. This is perfect example of what I've complained about; mobile specific version of sites. Stupid! Website designers, especially mobile website designers continue to be some of the dumbest people on this planet.</description>
      <link>http://www.kbcafe.com/csharp/?guid=20081114125239</link>
      <pubDate>Fri, 14 Nov 2008 18:52:39 GMT</pubDate>
      <guid>http://www.kbcafe.com/csharp/?guid=20081114125239</guid>
      <comments>http://www.kbcafe.com/csharp/?guid=20081114125239</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/csharp/trackback.aspx?guid=20081114125239</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/commentapi.aspx?guid=20081114125239</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/20081114125239.xml</wfw:commentRSS>
      <category>facebook</category>
    </item>
    <item>
      <title>Online GUID Generator</title>
      <description>&lt;P&gt;Nice idea!&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.guidgenerator.com/"&gt;http://www.guidgenerator.com/&lt;/A&gt;&lt;/P&gt;</description>
      <link>http://www.kbcafe.com/csharp/?guid=20081109223433</link>
      <pubDate>Mon, 10 Nov 2008 04:34:33 GMT</pubDate>
      <guid>http://www.kbcafe.com/csharp/?guid=20081109223433</guid>
      <comments>http://www.kbcafe.com/csharp/?guid=20081109223433</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/csharp/trackback.aspx?guid=20081109223433</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/commentapi.aspx?guid=20081109223433</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/20081109223433.xml</wfw:commentRSS>
      <category>
      </category>
    </item>
    <item>
      <title>Eat Your Own Dog Food</title>
      <description>&lt;P&gt;Eating your own dog food means using your own product. It's very common in software development. The advantage of doing this is that you quickly recognize bugs, deficiencies and potential new features. &lt;/P&gt;
&lt;P&gt;Recently &lt;A href="http://adsense.blogspot.com/2008/10/youre-invited-to-new-adsense-help-forum.html"&gt;Google announced&lt;/A&gt; that they are moving their AdSense Help Forum away from Google Groups to a new platform. They describe a few new features that weren't available in Google Groups. I quickly asked myself why they didn't simply add those new features to Google Groups? That's part of eating your own dog food. Recognizing potential features and implementing them. I wonder if their was a conversation at Google where the AdSense team asked for the features and were refused by the Groups team? Or is the Groups product in maintenance mode (no new features)?&lt;/P&gt;</description>
      <link>http://www.kbcafe.com/csharp/?guid=20081105223023</link>
      <pubDate>Thu, 06 Nov 2008 04:30:23 GMT</pubDate>
      <guid>http://www.kbcafe.com/csharp/?guid=20081105223023</guid>
      <comments>http://www.kbcafe.com/csharp/?guid=20081105223023</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/csharp/trackback.aspx?guid=20081105223023</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/commentapi.aspx?guid=20081105223023</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/csharp/20081105223023.xml</wfw:commentRSS>
      <category>
      </category>
    </item>
  </channel>
</rss>
