﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Juice</title>
    <link>http://www.kbcafe.com/juice/</link>
    <description>The Better Browser</description>
    <managingEditor>randy@kbcafe.com</managingEditor>
    <webMaster>randy@kbcafe.com</webMaster>
    <pubDate>Sat, 01 Jan 2005 06:04:46 GMT</pubDate>
    <lastBuildDate>Sat, 01 Jan 2005 06:04:46 GMT</lastBuildDate>
    <copyright>Copyright 2003-4 Randy Charles Morin</copyright>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <url>http://www.kbcafe.com/juice/logo.jpg</url>
      <title>Juice</title>
      <link>http://www.kbcafe.com/juice/</link>
    </image>
    <rar:archive xmlns:rar="http://tempuri.org">http://www.kbcafe.com/juice/archive.xml</rar:archive>
    <item>
      <title>RFC 822 and System.DateTime</title>
      <description>&lt;P&gt;I've always known that the&amp;nbsp;.NET System.DateTime class had some limitations converting RFC 822 formatted date-times. Here's an example test case where the .NET library fails.&lt;/P&gt;&lt;FONT size=2&gt;
&lt;P&gt;[NUnit.Framework.Test]&lt;BR&gt;[NUnit.Framework.ExpectedException(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;typeof&lt;/FONT&gt;&lt;FONT size=2&gt;(System.FormatException))]&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; Date4()&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;FONT size=2&gt;Convert.ToDateTime("Thu, 30 Dec 2004 13:52:52 -0500");&lt;BR&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;The problem is that .NET throws when parsing the timezone. And there are other situations where .NET parses the timezone but doesn't translate it correct. Here's an test case.&lt;/P&gt;&lt;FONT size=2&gt;
&lt;P&gt;[NUnit.Framework.Test]&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; Date9()&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp; System.DateTime dt = Convert.ToDateTime("Thu, 30 Dec 2004 13:52:52 GMT").ToUniversalTime();&lt;BR&gt;&amp;nbsp;&amp;nbsp; System.Console.WriteLine(dt.ToString("r"));&lt;BR&gt;&amp;nbsp;&amp;nbsp; System.DateTime dt2 = Convert.ToDateTime("Thu, 30 Dec 2004 13:52:52");&lt;BR&gt;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;FONT size=2&gt; (dt2 != dt)&lt;BR&gt;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUnit.Framework.Assert.Fail(dt.ToString("r")+"|"+dt2.ToString("r"));&lt;BR&gt;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;The solution was to write my own RFC 822 date parsing class that compensated for these limitations. I wrote a dozen test cases that seem to confirm it's better than the default .NET behavior. &lt;A href="mailto:randy@kbcafe.com"&gt;Feedback&lt;/A&gt; would be nice.&lt;/P&gt;&lt;PRE&gt;&lt;PRE&gt;using System;

namespace kb
{
	public class Rfc822DateTime 
	{
		static public System.DateTime FromString(string date)
		{
			System.DateTime dt;
			int pos = date.LastIndexOf(" ");

			try
			{
				dt = Convert.ToDateTime(date);
				if (date.Substring(pos+1) == "Z")
				{
					dt = dt.ToUniversalTime();
				}
				else if (date.Substring(pos+1) == "GMT")
				{
					dt = dt.ToUniversalTime();
				}
				return dt;
			}
			catch (System.Exception x)
			{ 
				System.Diagnostics.Trace.WriteLine(x.Message);
			}
			
			dt = Convert.ToDateTime(date.Substring(0, pos));
			if (date[pos+1] == '+')
			{
				int h = Convert.ToInt32(date.Substring(pos+2, 2));
				dt = dt.AddHours(-h);
				int m = Convert.ToInt32(date.Substring(pos+4, 2));
				dt = dt.AddMinutes(-m);
			}
			else if (date[pos+1] == '-')
			{
				int h = Convert.ToInt32(date.Substring(pos+2, 2));
				dt = dt.AddHours(h);
				int m = Convert.ToInt32(date.Substring(pos+4, 2));
				dt = dt.AddMinutes(m);
			}
			else if (date.Substring(pos+1) == "A")
			{
				dt = dt.AddHours(1);
			}
			else if (date.Substring(pos+1) == "B")
			{
				dt = dt.AddHours(2);
			}
			else if (date.Substring(pos+1) == "C")
			{
				dt = dt.AddHours(3);
			}
			else if (date.Substring(pos+1) == "D")
			{
				dt = dt.AddHours(4);
			}
			else if (date.Substring(pos+1) == "E")
			{
				dt = dt.AddHours(5);
			}
			else if (date.Substring(pos+1) == "F")
			{
				dt = dt.AddHours(6);
			}
			else if (date.Substring(pos+1) == "G")
			{
				dt = dt.AddHours(7);
			}
			else if (date.Substring(pos+1) == "H")
			{
				dt = dt.AddHours(8);
			}
			else if (date.Substring(pos+1) == "I")
			{
				dt = dt.AddHours(9);
			}
			else if (date.Substring(pos+1) == "K")
			{
				dt = dt.AddHours(10);
			}
			else if (date.Substring(pos+1) == "L")
			{
				dt = dt.AddHours(11);
			}
			else if (date.Substring(pos+1) == "M")
			{
				dt = dt.AddHours(12);
			}
			else if (date.Substring(pos+1) == "N")
			{
				dt = dt.AddHours(-1);
			}
			else if (date.Substring(pos+1) == "O")
			{
				dt = dt.AddHours(-2);
			}
			else if (date.Substring(pos+1) == "P")
			{
				dt = dt.AddHours(-3);
			}
			else if (date.Substring(pos+1) == "Q")
			{
				dt = dt.AddHours(-4);
			}
			else if (date.Substring(pos+1) == "R")
			{
				dt = dt.AddHours(-5);
			}
			else if (date.Substring(pos+1) == "S")
			{
				dt = dt.AddHours(-6);
			}
			else if (date.Substring(pos+1) == "T")
			{
				dt = dt.AddHours(-7);
			}
			else if (date.Substring(pos+1) == "U")
			{
				dt = dt.AddHours(-8);
			}
			else if (date.Substring(pos+1) == "V")
			{
				dt = dt.AddHours(-9);
			}
			else if (date.Substring(pos+1) == "W")
			{
				dt = dt.AddHours(-10);
			}
			else if (date.Substring(pos+1) == "X")
			{
				dt = dt.AddHours(-11);
			}
			else if (date.Substring(pos+1) == "Y")
			{
				dt = dt.AddHours(-12);
			}
			else if (date.Substring(pos+1) == "EST")
			{
				dt = dt.AddHours(5);
			}
			else if (date.Substring(pos+1) == "EDT")
			{
				dt = dt.AddHours(4);
			}
			else if (date.Substring(pos+1) == "CST")
			{
				dt = dt.AddHours(6);
			}
			else if (date.Substring(pos+1) == "CDT")
			{
				dt = dt.AddHours(5);
			}
			else if (date.Substring(pos+1) == "MST")
			{
				dt = dt.AddHours(7);
			}
			else if (date.Substring(pos+1) == "MDT")
			{
				dt = dt.AddHours(6);
			}
			else if (date.Substring(pos+1) == "PST")
			{
				dt = dt.AddHours(8);
			}
			else if (date.Substring(pos+1) == "PDT")
			{
				dt = dt.AddHours(7);
			}

			return dt;
		}
	}
}&lt;/PRE&gt;&lt;/PRE&gt;</description>
      <link>http://www.kbcafe.com/juice/?guid=20041231214618</link>
      <pubDate>Sat, 01 Jan 2005 05:46:18 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041231214618</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041231214618</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041231214618</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041231214618</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041231214618.xml</wfw:commentRSS>
      <category>c#</category>
      <category>.net</category>
    </item>
    <item>
      <title>M$FT Releases new VS Preview</title>
      <description>&lt;A href="http://www.eweek.com/article2/0,1759,1742090,00.asp?kc=EWRSS03129TX1K0000612"&gt;eWeek&lt;/A&gt;: Microsoft Corp. has made available a new build of its Visual Studio 2005 integrated development environment.</description>
      <link>http://www.kbcafe.com/juice/?guid=20041227083841</link>
      <pubDate>Mon, 27 Dec 2004 16:38:41 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041227083841</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041227083841</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041227083841</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041227083841</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041227083841.xml</wfw:commentRSS>
      <category>microsoft</category>
      <category>.net</category>
      <source url="http://www.dudecheckthisout.com/Blog.aspx?blogId=1332&amp;nItems=1&amp;startGuid=dab04613-839f-4a4b-aa81-bbb6efb9bc68">Gandalfe</source>
    </item>
    <item>
      <title>window.onload, not onLoad</title>
      <description>&lt;P&gt;With growing interest in using Firefox, I've been spending a greater amount of time trying to debug Moz-based bugs in my software. Today,&amp;nbsp; I was fixing a bug &lt;A href="http://www.kbcafe.com/rss/?guid=20041226082917"&gt;reported&lt;/A&gt; by &lt;A href="http://www.sifry.com/alerts/"&gt;David Sifry&lt;/A&gt;, Moz-OSX specific. Since I don't have an OSX box, I wasn't able to replicate his bug, but I did find another error. It seems that setting document.designMode outside of onLoad doesn't work all-the-time. A refresh corrects the problem, but that's not good enough for me. I tried setting document.body.onload and that didn't work. I then tried setting &lt;A href="http://www.w3schools.com/htmldom/dom_obj_window.asp"&gt;window.onLoad&lt;/A&gt; and that didn't work either. &lt;/P&gt;
&lt;P&gt;
&lt;SCRIPT type=text/javascript&gt;
	window.onLoad = init;
	function init()
	{
		alert("hi");
		
	}
&lt;/SCRIPT&gt;

&lt;SCRIPT type=text/javascript&gt;
	window.onLoad = init;
	function init()
	{
		alert("hi");
		
	}
&lt;/SCRIPT&gt;
&amp;lt;script type="text/javascript" &amp;gt;&lt;BR&gt;&amp;nbsp;window.onLoad = init;&lt;BR&gt;&amp;nbsp;function init()&lt;BR&gt;&amp;nbsp;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;alert("hi");&lt;BR&gt;&amp;nbsp;}&lt;BR&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;
&lt;P&gt;Turns out, you have to use &lt;A href="http://www.mozilla.org/docs/dom/domref/dom_window_ref63.html"&gt;window.onload&lt;/A&gt; (note the capitalization).&amp;nbsp;I've always known Javascript was suppose to be case-sensitive, but everybody has been treating it otherwise. Now, we have all this case-insensitive javascript and it's broken. I wonder how many &lt;A href="http://www.jguru.com/faq/view.jsp?EID=10507"&gt;window.onLoad&lt;/A&gt;'s are causing websites &lt;A href="http://www.javaworld.com/javaworld/javatips/jw-javatip80.html"&gt;to&lt;/A&gt; &lt;A href="http://www.devx.com/tips/Tip/13645"&gt;display&lt;/A&gt; &lt;A href="http://publib.boulder.ibm.com/infocenter/hod9help/index.jsp?topic=/com.ibm.hod9.doc/help/dpwcustomhtml.html"&gt;improperly&lt;/A&gt; in Firefox?&lt;/P&gt;</description>
      <link>http://www.kbcafe.com/juice/?guid=20041227074018</link>
      <pubDate>Mon, 27 Dec 2004 15:40:18 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041227074018</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041227074018</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041227074018</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041227074018</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041227074018.xml</wfw:commentRSS>
      <category>javascript</category>
    </item>
    <item>
      <title>A failure occurred writing to the resources file</title>
      <description>&lt;P&gt;&lt;A href="http://groups-beta.google.com/group/microsoft.public.dotnet.general/msg/138141e0d3694fbc?dmode=source"&gt;Grandma&lt;/A&gt;: This bug has been documented by others, but for some reason has never been fixed. Consider the following error that I receive when building a very large solution:&lt;/P&gt;
&lt;P&gt;xyz.resx A failure occurred writing to the resources file. The system cannot find the path specified.&lt;/P&gt;
&lt;P&gt;The failure occurs because VS.NET has a limit on the length of path names, but only for .RESX files.&lt;/P&gt;
&lt;P&gt;Randy: Arggg!&lt;/P&gt;</description>
      <link>http://www.kbcafe.com/juice/?guid=20041223091435</link>
      <pubDate>Thu, 23 Dec 2004 17:14:35 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041223091435</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041223091435</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041223091435</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041223091435</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041223091435.xml</wfw:commentRSS>
      <category>dotnet</category>
      <source url="http://groups-beta.google.com/group/microsoft.public.dotnet.general/msg/138141e0d3694fbc?dmode=source">microsoft.public.vsnet.general</source>
    </item>
    <item>
      <title>Unable to connect to the remote server</title>
      <description>&lt;P&gt;This week, somebody at the office was having a hard time connection to our SOAP Web service. The SoapHttpClientProtocol based proxy object was responding...&lt;/P&gt;
&lt;P align=center&gt;&lt;EM&gt;The underlying connection was closed: The remote name could not be resolved.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I searched and searched the Internet and couldn't figure out why this was happening. I tried every pretty much everything suggested by Microsoft, developers in online forums and&amp;nbsp;&lt;A href="http://dotnetjunkies.com/WebLog/demiliani/archive/2004/03/30/10333.aspx"&gt;.NET&lt;/A&gt; &lt;A href="http://weblogs.asp.net/autocrat/archive/2004/11/29/271409.aspx"&gt;bloggers&lt;/A&gt;. No luck! Finally, I decided to try doing the SOAP request manually by opening up a socket and sending the bytes by hand. When I opened the socket, I got the following exception...&lt;/P&gt;
&lt;P align=center&gt;&lt;EM&gt;An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;This led me to a &lt;A href="http://support.microsoft.com/default.aspx?scid=kb;en-us;815209"&gt;Microsoft Knowledge Base bug report&lt;/A&gt; and a solution. Hopefully, this will get picked up by Google and others can benefit from this experience and not have to spend countless hours banging their head against their keyboard, as I did.&lt;/P&gt;</description>
      <link>http://www.kbcafe.com/juice/?guid=20041217191538</link>
      <pubDate>Sat, 18 Dec 2004 03:15:38 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041217191538</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041217191538</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041217191538</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041217191538</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041217191538.xml</wfw:commentRSS>
      <category>soap</category>
    </item>
    <item>
      <title>NUnitForms SUCCESS!</title>
      <description>&lt;P&gt;&lt;A href="https://sourceforge.net/forum/message.php?msg_id=2893745"&gt;An Tay Nguy&lt;/A&gt;: I also get this error too. I noticed that if I use the RichEdit or the PropertyGrid control on my form, I will get this error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;System.ComponentModel.Win32Exception : The requested resource is in use.&amp;nbsp;&lt;BR&gt;--TearDown &amp;nbsp;&lt;BR&gt;at NUnit.Extensions.Forms.Desktop.Destroy() &amp;nbsp;&lt;BR&gt;at NUnit.Extensions.Forms.Desktop.Dispose() &amp;nbsp;&lt;BR&gt;at NUnit.Extensions.Forms.NUnitFormTest.Verify() &amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using VS 2003 with NUnit 2.2.2&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sourceforge.net/forum/message.php?msg_id=2893762"&gt;A.Bekiaris&lt;/A&gt;: u could override the UseHidden property of NUnitFormTest and set it to false that will fix it.&amp;nbsp;I do not know of a better way that is how i use the framework.&lt;/P&gt;
&lt;P&gt;Randy: Finally, the answer to all my NUnitForms problems. I hope this feeds into Google so that others can benefit from the great Bekiaris.&lt;/P&gt;</description>
      <link>http://www.kbcafe.com/juice/?guid=20041215084438</link>
      <pubDate>Wed, 15 Dec 2004 16:44:38 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041215084438</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041215084438</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041215084438</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041215084438</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041215084438.xml</wfw:commentRSS>
      <category>nunit</category>
      <source url="https://sourceforge.net/forum/forum.php?thread_id=1191839&amp;forum_id=331584">SourceForge</source>
    </item>
    <item>
      <title>Category and Source</title>
      <description>I'm adding RSS categories and source to my blogging software.</description>
      <link>http://www.kbcafe.com/juice/?guid=20041211164259</link>
      <pubDate>Sun, 12 Dec 2004 00:42:59 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041211164259</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041211164259</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041211164259</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041211164259</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041211164259.xml</wfw:commentRSS>
      <category>rss</category>
      <category>
      </category>
      <source url="http://www.kbcafe.com/iBLOGthere4iM/?guid=20030627083920">Clean Up of KBlog</source>
    </item>
    <item>
      <title>Adventures w/ NUnitForms</title>
      <description>&lt;P&gt;I got a couple response regarding my &lt;A href="http://www.kbcafe.com/juice/?guid=20041208074630"&gt;problems w/ NUnitForms&lt;/A&gt; on the &lt;A href="https://sourceforge.net/forum/message.php?msg_id=2887357"&gt;NUnitForms help mailing list&lt;/A&gt;. The response was to &lt;STRONG&gt;public override void Setup()&lt;/STRONG&gt;&amp;nbsp;instead of &lt;STRONG&gt;[NUnit.Framework.SetUp] public void SetUp()&lt;/STRONG&gt;.&amp;nbsp;I had already tried this and I&amp;nbsp;tried it again (just in case) and...&lt;/P&gt;
&lt;P&gt;test.Forms.BloomForm.Test : &amp;nbsp;&lt;BR&gt;TearDown : System.ComponentModel.Win32Exception : The requested resource is in use&amp;nbsp;&amp;nbsp;&lt;BR&gt;--TearDown&amp;nbsp;&lt;BR&gt;at NUnit.Extensions.Forms.Desktop.Destroy()&amp;nbsp;&lt;BR&gt;at NUnit.Extensions.Forms.NUnitFormTest.Verify()&lt;/P&gt;
&lt;P&gt;No success.&lt;/P&gt;</description>
      <link>http://www.kbcafe.com/juice/?guid=20041209071404</link>
      <pubDate>Thu, 09 Dec 2004 15:14:04 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041209071404</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041209071404</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041209071404</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041209071404</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041209071404.xml</wfw:commentRSS>
      <category>nunit</category>
    </item>
    <item>
      <title>Ampersands (&amp;) in URLs</title>
      <description>&lt;P&gt;&lt;A href="http://www.htmlhelp.com/tools/validator/problems.html#amp"&gt;HTMLHelp&lt;/A&gt;: To avoid problems with both validators and browsers, always use &lt;STRONG class=html&gt;&amp;amp;amp;&lt;/STRONG&gt; in place of &lt;STRONG class=html&gt;&amp;amp;&lt;/STRONG&gt; when writing &lt;ABBR class=initialism title="Uniform Resource Locator"&gt;URL&lt;/ABBR&gt;s in &lt;ABBR class=initialism title="HyperText Markup Language"&gt;HTML.&lt;/ABBR&gt;&lt;/P&gt;</description>
      <link>http://www.kbcafe.com/juice/?guid=20041208214416</link>
      <pubDate>Thu, 09 Dec 2004 05:44:16 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041208214416</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041208214416</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041208214416</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041208214416</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041208214416.xml</wfw:commentRSS>
    </item>
    <item>
      <title>Just one Line of Code</title>
      <description>I keep forgetting about this &lt;A href="http://www.kbcafe.com/iBLOGthere4iM/?guid=20040503053025"&gt;one line&lt;/A&gt; of &lt;A href="http://weblogs.asp.net/rosherove/archive/2003/05/13/6963.aspx"&gt;code&lt;/A&gt; that makes Regex one of the best creations in the history of computing.</description>
      <link>http://www.kbcafe.com/juice/?guid=20041208184527</link>
      <pubDate>Thu, 09 Dec 2004 02:45:27 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041208184527</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041208184527</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041208184527</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041208184527</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041208184527.xml</wfw:commentRSS>
    </item>
    <item>
      <title>NUnitForms</title>
      <description>&lt;P&gt;I put some more effort into &lt;A href="http://nunitforms.sourceforge.net/"&gt;NUnitForms&lt;/A&gt; yesterday and this morning. I didn't have any success. Basically nothing works, not even the samples. Obviously, there's a big hole in there somewhere that I'm just not getting. I tried&amp;nbsp;pinging for&amp;nbsp;help&amp;nbsp;on their mailing list and the response was denial that it didn't work; end of story. The sample puts the test cases directly into the executable, which seems kinda ridiculous. I'm not going to deploy the test cases w/ my application. &lt;/P&gt;
&lt;P&gt;I created a simple EXE that referenced one of my DLLs. I then wrote one empty test as follows.&lt;/P&gt;&lt;FONT size=2&gt;
&lt;P&gt;[NUnit.Framework.TestFixture]&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;class&lt;/FONT&gt;&lt;FONT size=2&gt; CommentForm : NUnit.Extensions.Forms.NUnitFormTest&lt;BR&gt;{&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp; public&lt;/FONT&gt;&lt;FONT size=2&gt; CommentForm()&lt;BR&gt;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp; }&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&amp;nbsp;&amp;nbsp; ss.PictureBar.CommentForm form = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;null&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;BR&gt;&amp;nbsp;&amp;nbsp; [NUnit.Framework.SetUp]&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; SetUp()&lt;BR&gt;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; form = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; ss.PictureBar.CommentForm();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; form.Show();&lt;BR&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; [NUnit.Framework.Test]&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; Test()&lt;BR&gt;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;This generates the following failures from the NUnit GUI.&lt;/P&gt;
&lt;P&gt;--TearDown&lt;BR&gt;&amp;nbsp;&amp;nbsp; at NUnit.Extensions.Forms.NUnitFormTest.Verify()&lt;BR&gt;test.Forms.CommentForm.Test : &lt;BR&gt;TearDown : System.NullReferenceException : Object reference not set to an instance of an object.&lt;/P&gt;
&lt;P&gt;I tried a thousand variations of this trivial test&amp;nbsp;w/out success. Well, except the one variation where you remove the NUnitFormTest inheritance. Then it works just fine ;)&lt;/P&gt;
&lt;P&gt;After a second &lt;A href="http://www.kbcafe.com/juice/?guid=20041116144928"&gt;failure&lt;/A&gt; to get anything runnig in NUnitForms, it'll be some time before I try it again.&lt;/P&gt;</description>
      <link>http://www.kbcafe.com/juice/?guid=20041208074630</link>
      <pubDate>Wed, 08 Dec 2004 15:46:30 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041208074630</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041208074630</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041208074630</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041208074630</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041208074630.xml</wfw:commentRSS>
    </item>
    <item>
      <title>Image Fade-In</title>
      <description>&lt;P&gt;Added to the &lt;A href="http://www.kbcafe.com/iBLOGthere4iM/"&gt;iBLOGthere4iM&lt;/A&gt; channel image. The &lt;A href="http://www.kbcafe.com/script/fadeinimage.js"&gt;script&lt;/A&gt;. Add id='fadeinimage' to the image to fade in and set the visibility style on this id to hidden.&lt;/P&gt;
&lt;P&gt;Source: &lt;A href="http://laughingmeme.org/mlp/archives/2004_12.html#002610"&gt;LaughingMeme&lt;/A&gt;.&lt;/P&gt;</description>
      <link>http://www.kbcafe.com/juice/?guid=20041206201200</link>
      <pubDate>Tue, 07 Dec 2004 04:12:00 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041206201200</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041206201200</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041206201200</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041206201200</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041206201200.xml</wfw:commentRSS>
    </item>
    <item>
      <title>search feedster from google desktop</title>
      <description>&lt;A href="http://dev.upian.com/hotlinks/archives/2004/12/05/#item26035"&gt;Jeremy Zawodny&lt;/A&gt;: heh.</description>
      <link>http://www.kbcafe.com/juice/?guid=20041205134850</link>
      <pubDate>Sun, 05 Dec 2004 21:48:50 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041205134850</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041205134850</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041205134850</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041205134850</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041205134850.xml</wfw:commentRSS>
    </item>
    <item>
      <title>Special QuickWatch for a DataSet</title>
      <description>&lt;P&gt;Lucius: &lt;A href="http://www.codeproject.com/csharp/DSWatch.asp"&gt;It's a great add-in for VS.NET&lt;/A&gt;. It will put a new entry in your vs.net context menu, and now you'll be able to see the contents of your dataset, as XML, or grid of data.&lt;/P&gt;
&lt;P&gt;Randy: Thanks!&lt;/P&gt;</description>
      <link>http://www.kbcafe.com/juice/?guid=20041203150537</link>
      <pubDate>Fri, 03 Dec 2004 23:05:37 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041203150537</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041203150537</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041203150537</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041203150537</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041203150537.xml</wfw:commentRSS>
    </item>
    <item>
      <title>Error while trying to run project</title>
      <description>&lt;P&gt;Ever get this while debugging a Web project in Visual Studio? &lt;/P&gt;
&lt;P align=center&gt;&lt;!--StartFragment --&gt;&lt;!--StartFragment --&gt;&lt;IMG alt="The image “http://img18.exs.cx/img18/6599/36-error.jpg” cannot be displayed, because it contains errors." src="http://img18.exs.cx/img18/6599/36-error.jpg"&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I get it all the time. It happens when I move projects around and forget to give the ASP and IIS user permission to the folder. If you run w/out the debugger, you'll get the following more obvious error message.&lt;/P&gt;
&lt;P align=center&gt;&lt;EM&gt;System.Web.HttpException: Server cannot access application directory '...'. The directory does not exist or is not accessible because of security settings.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Goto Folder Properties | Security and give access to the ASP.NET Machine Account and the Internet Guest Account. Next you may or may not incur a similar dialog but w/ a new error message; &lt;EM&gt;The project is not configured to be debugged&lt;/EM&gt;. The happens when you're &lt;A href="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q306156"&gt;missing a Web.config file&lt;/A&gt; or when the Web.config file does not allow debugging.&lt;/P&gt;
&lt;P&gt;I hit this problem so frequently, I figured it was worth more documentation so that next time I'm programming under the influence of alcohol, I'll more easily find my way home ;)&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2004 03:19:13 GMT</pubDate>
      <guid>http://www.kbcafe.com/juice/?guid=20041202191913</guid>
      <comments>http://www.kbcafe.com/juice/?guid=20041202191913</comments>
      <trackback:ping xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">http://www.kbcafe.com/juice/trackback.aspx?guid=20041202191913</trackback:ping>
      <wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/commentapi.aspx?guid=20041202191913</wfw:comment>
      <wfw:commentRSS xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.kbcafe.com/juice/20041202191913.xml</wfw:commentRSS>
    </item>
  </channel>
</rss>
