2009年3月24日星期二

Maven 2.0.9 doesn't work with IBM JDK 6 SR1 - An interesting problem of JDK

I was trying to compile Apache Axiom using Maven 2.0.9. But it didn't work when I was using IBM JDK 6 SR1.  Then I found this issue. It turns out to be a very interesting problem with IBM JDK 6 SR1.

So I repeated the same test on my machine.  Yeah, I have to say the output is quite weird. How can you image this kind of problem occurs in the JDK?

2009年3月11日星期三

Will web workers be shipped with Firefox 3.1?

Update: The next release of Firefox will be Firefox 3.5 instead of Firefox 3.1. See the news : Firefox 3.1 may become Firefox 3.5


It has been said for a long time that web workers will be shipped with Firefox 3.1. That was really a great news. But when I was reading the article of "Using web workers", I found out that it's said in this article that web workers would be shipped with Firefox 3.5. This change was made in March 6. Any mistakes here or the plan has been changed? I took a look at the plan, but it seems that the plan is the same.

See the screen-shot below. The top is the latest version and the bottom is previous version.





2009年3月2日星期一

Safari 4.0

Safari 4.0 public beta is there. At the first sight, it reminds me of Google Chrome. Just like Chrome, it adds "fast dial" for mostly used web sites. Safari 4.0 calls it as "Top Sites". I think Firefox would provide the same function without the extension "fast dial".

I used "UA Profiler" to test it and the result shows that Safari 4.0 supports parallel scripts, which is a great improvement to Safari 3.x.

2009年3月1日星期日

Firefox uses different fonts for input and textarea

By default, Firefox uses different fonts for input and textarea. If you don't set the font family used by input or textarea, even though the font size of them is identical, the display of text in them is different.  This is because that Firefox uses monospace fonts for textarea, but variable-width fonts for input

So besides setting the font size of input and textarea, you need to set the font family directly in CSS. A sample can be found here

input, textarea
{
color: red;
font-family: Verdana,Arial,Sans-serif;
font-size: 0.8em;
}


Disable Firefox cache

Firefox's cache can be quite annoying when you're developing web applications. You may have to manually clear it to let the browser load the latest version of you code.

So a good approach is to disable it, then you don't need to clear it. A good instruction can be found here.

Basic steps:
1) Type "about:config" in the address bar
2) Filter the configuration using "cache"
3) Change the value to "false" if it is "true"

Technology changes life