fullcontactmuse: (C Code Run)
2008-08-30 01:32 pm
Entry tags:

Can you spot the bug in this code?

Here I was working on this code and discovered a bug in it. The bug was easily found and dispatched. Can you see it?

If you can't see it, the answer is here... )
fullcontactmuse: (Cluelessness)
2007-09-22 07:24 am
Entry tags:

More debugging wonkiness...

So using the Venkman console, here's what the
0001: document.getElementById("DialogHost_Container")
$[0] = [null] null
0001: window.document.getElementById('DialogHost_Container');
$[1] = [null] null
0001: document.all.DialogHost_Container
$[2] = [void] void
0001: document.body.DialogHost_Container
Caught exception: “TypeError: document.body has no properties”


Here's a link to the base page. No, it's not entirely functional yet even in the base sense of the word, but the iframe you see at the top (in Firefox and Safari) should not be visible (like in IE).

http://www.clarkzoo.org/prototypes/DialogHostProtoype.htm
fullcontactmuse: (The Server Is Down)
2007-09-21 05:23 pm
Entry tags:

Looking for suggestions...

I'm looking for a couple of good Javascript debuggers:
  1. For Firefox 2.x on the PC. (I have the Venkman plug already, version 0.9.87 of the JavaScript Debugger, and I'm not happy with it. Perhaps I'm spoiled as I really like the Visual Studio 2005 JS debugger, but it doesn't play with Firefox or alternative DOM's)
  2. For Safari 1.3.2 (OS X 10.3.3 on a Blueberry iMac G3 400)
Part of what prompted this is code that works on IE7 but not Firefox or Safari, var obj = document.getElementById("DialogHost_Container");
fullcontactmuse: (IT Ninja)
2007-08-05 02:03 pm

Thinking about room preferences...

One of the ideas I'm implementing in "Pros and Cons", the scheduling application for Norwescon, is that of rooms preferences. Simply which rooms go best together and represent this in some numerical value for comparison purposes;rooms that are closer together are going to have a higher value than those that are further apart. 0 is neutral, a postive value is preferable and a negative value is not.

Cut to spare those who have no interest in these dry tables. )
I don't think I am missing anything in my "calculations" here, but I am always open to feedback. Though I haven't quite figured out how I want represent this data in UI yet.