L: Linux很好但不够人性化也是它不争的事实...
L: Linux出现太多variations了..
W: 不像Windows...学一次终身受用.
W: 我在98SE年代买了一本《白痴学Windows 95》.
L: 我在2002年买了Red Hat 7的使用手册...
W:虽然人人大骂Windows Vista/7对UI做了很大的改动但到现在我还能顺畅的对Windows进行基本操作无需重新学习...反正在Windows不是yes就是no...就是那么简单.
L: 2004年Ubuntu开始盛行...短短两年我又要重新学会怎样用Linux, 又需要买另一本使用手册. 什么KDE, GNOME的...麻烦死了...那是普通用户需要去烦的吗?过后Ubuntu 每年推一个新版...每个新版都说比旧版好...我这个可怜的普通用户每年都得花上不少时间重新适应.... 囧
Firefox setInterval passes Random number as parameter bug
I was working on a web development project. Until 30 minutes ago, I had discovered something strange with my code. It worked well on IE and Chrome but it created random results on Mozilla Firefox version 3.6.12. So i did some quick alert()s to find out whats went wrong. Surprisingly, I found out that if you pass a callback function that can accept parameter into setInterval. It will pass random numbers into the callback function when it wasn't suppose to. I tried to start Firefox in safe mode and run the test again. Unfortunately, the bug still exists.
If you're geeky enough to watch the bug live in action just head over the demo page to reproduce the bug.
Update #1: I just tested the code with setTimeout() it seems like setTimeout() is affected as well.
Update #2: I just filed a report at Bugzilla@Mozilla.
Update #3: It was my mistake. :P It isn't a bug but an inconsistency between browsers.
If you're geeky enough to watch the bug live in action just head over the demo page to reproduce the bug.
Update #1: I just tested the code with setTimeout() it seems like setTimeout() is affected as well.
Update #2: I just filed a report at Bugzilla@Mozilla.
Update #3: It was my mistake. :P It isn't a bug but an inconsistency between browsers.
Confidence
She said that I'm a confidence person whom I think I'm not. A confidence person must be mentally strong and able to face challenges as well as projecting a strong image to others. A lot of things had happened in my life lately, my blog is just showing a tip of the iceberg. Some, which I had decided to withheld until I find the right time to write about them. I keep telling and convincing myself so that I can get to pass these phases. Saying that "Constants cannot be redefined" is merely another way to say "Whatever Happened, Happened". I always believe that things happen for a reason. We could either face it, change it or ignore it. I made up my mind to really deal with the problems and change my life. I have no idea what the changes will bring. Be it good or bad I believed this is what I need to do. It is a right thing to do... I suppose.
你·我
那天发生了一些事情。是关于你和我。我知道挣扎于事无补。我知道伤心你会笑我傻。搞乱了你的生活秩序是我不对。可是,有些事情你不用去疑惑、质疑。友谊是真,一直都存在着的。短讯传来,你告述需要几天时间整顿思绪。我只想说我需要更长的时间...
订阅:
博文 (Atom)
