Neil's Place

February 14, 2003

10:33 PM I can see it now...

Terrorist 1: It seems the Americans won.

Terrorist 2: Did they? That duct tape may have defeated us. But the Americans won't stop there. They'll buy more and more duct tape, and soon, they will buy so much duct tape, it will destroy them all!

Evil laughs ensue.

Comments ( 9 )

February 12, 2003

8:03 PM A Sad Day

Let's say you've been working on project for three months and the launch day is this week. Which do you do?

  1. Do last minute testing to ensure it works properly.
  2. Sack most of your employees.

Can you guess which choice was actually selected? At times like this, you wonder whether you'd be better off working for AOL instead.

Comments ( 35 )

February 10, 2003

7:27 PM It really is Mozilla 101

It seems that learning 101 things Mozilla can do that IE cannot is reading material for a web development course. The site also has some useful Mozilla configuration tips. Make sure to try the links on the left too.

Speaking of that, what is all about?

Comments ( 32 )

5:10 PM XUL Examples

If you are looking for some XUL examples, look here, which has a pile of panels containing various arrangements of the XUL widgets.

Comments ( 5 )

February 9, 2003

11:46 AM What the feedback button in Safari really does

After weeks of intense study, reverse engineering and information from spies located deep within Apple, I have discovered what really happens when you click the feedback button in Safari, as indicated in the following code:

void FeedbackButtonClicked(void)
  String *subjects={
    "I really need to have tabbed browsing.",
    "I don't like the brushed metal appearance.",
    "I would like an integrated Mail client.",
    "I was reading, like a Web page of one of my friends
     and, like, then it crashed or something! It was, like,
     gone! I was totally... bummed out.",
    "Where may I go to sacrifice myself so that Steve Jobs
     may be appeased?"
  String subject=SelectRandomSubject(subjects);

Comments ( 16 )

February 8, 2003

6:34 PM The latest poll results are in!

According to the latest poll, people are most interested in seeing more XUL examples. Perhaps I will try to post some more examples of things that might be more complex, such as trees, overlays, DOM stuff and so on.

On the disturbing side though, an equal number of people would like to see pictures of Blake Ross naked. You do realize that he is only 8 years old? It might even be illegal just to think about it.

That said, there is a site dedicated to providing top quality pictures of Blake Ross naked, without having to worry about the legal issues.

Comments ( 24 )

February 7, 2003

8:09 PM Scriptable RDF

Some action on the scriptable RDF front. When/if this gets fixed, it would be a big help for XUL tree users.

Comments ( 26 )

7:50 PM The future looks bleak

Let's say that you have a block of text in a file and you need to add a paragraph tag around it. Thus, you want to add <p> at the beginning and </p> at the end, and put the result in a new file. Sounds easy right? Of course. Since we have so many great new technologies at our disposal, here's one way I've seen it done recently:

  • Set up a Java Servlet engine on a Web server somewhere. The process begins when a user loads a specific URL in a browser.
  • The code starts by reading a configuration file which lists classes to be used during the process which are later dynamically instantiated as needed.
  • One such class parses the text file into an abstract in-memory object.
  • Another class takes the abstract object and serializes it into XML.
  • The XML is parsed.
  • A second configuration file is loaded which contains a reference to the location of an XSLT file.
  • The XSLT file is loaded and parsed.
  • The XML is translated using the XSLT template.
  • The resulting content is then serialized and saved into a file.
  • That file is copied into another directory.

We've come a long way since the early days of computing. I mean, thirty years ago we would have done that task using something extremely cryptic such as this:

(echo '<p>'; cat; echo '</p>') > file.out

Or, unfortunate programmers would have had to resort to using a couple of lines of sed. Thank goodness we don't have to use these old technologies any more, now that we have all these great new advances.

Comments ( 6 )