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:
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?