Archive for the ‘software’ Category

Switching to Opera? Not just yet…

Monday, November 5th, 2007

After the latest update (2.0.0.9) and an update to the del.icio.us add-on I’ve become an expert in debugging Firefox. I really hate that.

I’m thinking about Opera more and more. I like a lot of things in the latest Opera (9.5 Alpha), but hate that I haven’t found all that I need in a browser. So I’m going to list it here (in hopes that somebody from Opera sees this list and does something about it):

  • Firebug
  • Web developer toolbar
  • HTML Tidy
  • Del.icio.us toolbar

The first three are obviously the result of me being a web developer. The last one is pretty obvious.

Firefox update…

Sunday, October 21st, 2007

My Firefox decided that it should upgrade to Firefox 2.0.0.8. And now when I start it up it pops this up. A few times.

I’m forced to reinstall and hope it works…

UPDATE: Before reinstalling I decided to disable some extensions. When I disabled the All-in-on Sidebar everything started to work. I’m still getting the error messages, I suspect it’s the ThinkVantage Password Manager.

UPDATE #2: I was right. Now that I disabled the ThinkVantage Password Manager I’m not getting the errors anymore. Everything seems to be working as it should.

Use Array.join instead of concatenating strings?!?

Thursday, September 6th, 2007

I read this article at Usable Type and said to myself – true, true, true, true, WTF?

So I did a quick test:

  1. Concatenating 3 long strings: without ~135ms (45ms) [25ms] {33ms}, with ~220ms (120ms) [40ms] {65ms}
  2. Concatenating 12 shorter strings: without ~215ms (190ms) [85ms] {90ms}, with ~470ms (180ms) [105ms] {165ms}

The tests were done on my laptop on Windows Vista in Firefox (IE7) [Safari3] {Opera 9.2}, the function was repeated 10000 times. It seems that you’re better off without using array.join(), though it might be an option for huge joins in IE.

I wonder what sparked the idea – I’ve seen the use of arrays for string operations in Flash – string.split(old).join(new) for replacing until a proper method was available. I’ve never thought about abusing JavaScript that way…

On a side note – have you noticed that Firefox was significantly slower than others?

Update: I created a test page so you can test your browsers and post a comment

Firefox and Opera statistics are underrated

Wednesday, September 5th, 2007

While testing browser behavior regarding inline JavaScript evaluation and the back and forward buttons I found a very interesting thing. When a script is included in the HTML to execute on parsing (not on load but inline) Internet Explorer (7 on Vista tested) and Safari 3 for Windows will re-execute the script when a user returns via the back button. In my mind this is the correct behavior, since you actually visited the page twice.

The thing is that Firefox (2.0.0.6 on Vista tested) and Opera (9.20 on Vista tested) don’t agree with me. Well maybe they do and don’t live by their beliefs. What they do is nothing. You come back and no scripts are executed. Not even one request is sent to the server in Firefox.

This “feature” is sometimes a great thing – all the AJAXy stuff and all the JavaScript enhancements are already there and don’t need to be rendered again in turn saving power and time. At other times it’s a pain in the a** since some stuff does return to its default state and some doesn’t. This problem is most often observed with dynamic/advance forms that lose their default values/states. Since even onload is not fired this can get annoying…

Besides all the interface problems you might encounter due to this “rogue” behavior, there are also a few issues regarding statistics. It’s harder to inspect the path of a user, the time a user spent on a page, the number of page views in a visit and other related metrics. The other significant issue is that browser usage statistics might be skewed. To answer this last issue we’d have to know how these statistics are measured.

Let’s take a user that is used to clicking the back button while navigating a site with a 2 level deep navigational tree. She comes to the page, goes in one branch and then to a second, very distant branch. Internet Explorer would register 7 page views (1 on the root, 2 to get down, 2 back up and 2 more down), while Firefox would only register 5 page views (1 on the root, 2 to get down, ignore the 2 back buttons, 2 more down) – a 1.4:1 ratio.

If the statistics are based on sessions or unique users we have 50% IE and 50% FF. If we base them on hits we have 58% IE and 42% FF – a 16 percentage point difference or as we said before a 40% difference. This is not something you could just ignore…

Exercise for the reader – why do “unsupported” browsers always have a small browser share in hit based browser metrics?

Impressed by Apple

Sunday, June 24th, 2007

Safari for Windows is already in 3.0.1. No, they didn’t fix this flaw, they fixed the other one. Nonetheless, I’m impressed…

After another look at my blog I figured they changed another thing – Google AdSense ads now show up.

Update #1: I’m writing this in Safari for Vista 3.0.2 – for the third time. I cannot shake the feeling that there’s something wrong with submitting the textarea in WordPress. In any case – strongs are now bold and even AdSense appears sometimes. All these issues make me wonder if things appear the same on Safari/Mac and Safari/Win which was a big point in releasing a Windows version…

Update #2: I’m posting the first update in Firefox – exactly as written in Safari. I posted it twice without it appearing on the page. The third time I copied it and found out that it only copies the code until

Safari on Vista

Tuesday, June 12th, 2007

Apple released Safari 3 beta for Windows.

It doesn’t work that well:

Bold fonts in Safari 3 beta

Hopefully a “yet” should be appended to the end of the last sentence.

Update: PPK writes about this bug and it is suggested that it’s a graphics card issue. My laptop has Mobile Intel(R) 945GM Express Chipset Family graphics card. If you’re experiencing the same issue add your graphics card in a comment…