View Site News

Archive for July, 2006

Worst Company URLs

Posted on: Jul 18th 2006 | Posted by: Rolan

I was laughing my ass off while I was reading this article about The top 10 unintentionally worst company URLs .

It’s really hard to get a decent and suitable domain name nowadays.

Filed in: Funny | | Add Comment |

IE doesn’t like trailing commas

Posted on: Jul 18th 2006 | Posted by: Rolan

I had this seemingly undetectable bug on one application I made using javascript. It was running fine on Firefox, no errors or warnings. But when my client checked it out the page wasn’t working. I wasn’t able to test it on IE right away since I only have Firefox installed on my office PC (which is running on Linux with no Wine installed). After arriving home, I looked at the page using IE and yes, the app wasn’t working. It took me the whole night to figure out what was going wrong. I forgot what error message IE was giving me. The only thing I remember is that it doesn’t much about the problem. I read the code one more time, checking for any uninitialized variable or something that I might have overlooked. I was doubtful that it was suffering from cross-browser problems, since I relied mainly on Prototype’s nice collection of thingies that were already tested for cross-browser compatibility.

I loaded my javascript file on my editor (ConTEXT) and began reading the code again. Half-way through the code, I saw a trailing comma inside an object definition. It kinda looked like this:

JavaScript:
  1. someClass.prototype =
  2. {
  3. someFunction: function()
  4. {
  5. // do something
  6. },
  7. anotherFunction: function()
  8. {
  9. // do another thing
  10. },
  11. }

I almost didn’t notice it. If it wasn’t for the big font I’ve set on my editor, I’d be rewriting a large chunk of my app. Hmmm… looks like Firefox is kind to orphan commas.

Filed in: Javascript/Ajax, Reminders | | Add Comment |

Rediscoverer.net is now online

Posted on: Jul 14th 2006 | Posted by: Rolan

Hooray! I thought that I wouldn’t be able to put this site up. Been really busy these past weeks. Aside from work, I’m also reviewing for the coming Geodetic Engineer Licensure Examination on September. I had to follow a new schedule: work from around 7/8 am to 3/4pm to attend review classes that starts at 530pm until 930pm. Oh, man! I only get around 4 hours of sleep every night (or make that morning, since I sleep from 12am to 4am, Mondays to Fridays).

Anyway, welcome to my homepage. And what is this all about? Ummm… I think I need to create an “About” page.

Filed in: Daily | | 1 Comment |