Javascript on Firefox 3 Slice Bug

April 5, 2009 § 3 Comments

See the code below:

container = ['localhost:8080', 'aaaaaaaaa', 'history']
for(var i in container)
{
console.log(container[i]);
console.log(container.slice(0,i+1));
}

The Firebug output is below:

localhost:8080
["localhost:8080"]
aaaaaaaaa
["localhost:8080", "aaaaaaaaa", "history"]
history
["localhost:8080", "aaaaaaaaa", "history"]

Notice the problem there? When i == 1, why slice() output is not:
["localhost:8080", "aaaaaaaaa"] ??????

I cannot explain why this is happening and yes… I have refreshed my browser multiple times.

Reference:

Mozilla Developer Center :: Slice

Beards of Python

April 4, 2009 § Leave a comment

I believe these are PyCon09 attendants.

Almost Perfect: The rise and fall of Word Perfect

April 4, 2009 § Leave a comment

You can read the book here.

alexa…

April 1, 2009 § Leave a comment

Wow, after the new redesign, Alexa is just terrible.

It loads slowly and some of the ranks changed. It makes me wonder, why the ranks changed? Did they also change the algorithm?

Where Am I?

You are currently viewing the archives for April, 2009 at RAPD.

Follow

Get every new post delivered to your Inbox.