Wednesday, February 03, 2010

JavaOne is dead?

I was just looking for the information regarding JavaOne 2010 and found some worrisome blog posts:

Was JavaOne 2009 the last?
JavaOne 2010?
JavaONE 2010? Seems Like It Will Take Place

According to the Moscone Center website JavaOne 2010 is already scheduled between 22nd - 25th of June 2010.

I hope to go there this year! Keep your fingers crossed for my dept's budget :)

Tuesday, February 02, 2010

Memory Leak Protection in Tomcat 7 - fwd

Picture (c) DZone
I'm just forwarding you to a good article on memory leaks protection implementation in the upcoming Apache Tomcat 7.

This article is a in a form of short (but quite comprehensive) interview with:

Mark Thomas, a Senior Software Engineer with SpringSource and committer for Apache Tomcat

Mark points directly to SVN repository where you can actually see how the mechanism he's describing works under the hood.

Mark also mentions about other new features that will be available in new Tomcat 7 (which should be released in alpha in Feb 2010).

Monday, February 01, 2010

How to ensure your IE toolbar buttons are always visible?

Some time ago I encountered a wall while developing add-on for Internet Explorer. I wanted my add-on's button to be always visible after installation process, similarly to delicious stuff.

Problem seems to be quite simple - just check Browser Helper Object's (BHO) options and set some flag (aside of this subject I will tell you that developing pure BHO is a nightmare). In fact there is no such option. Internet Explorer seemed not extensible to this extent. Also finding something in the Internet appeared to be impossible. What the hell? Delicious guys made it!

After quite long searching I was very close to give up and resign from this "feature". But my sixth sense (yes, you should use it a lot while working with Microsoft) was telling me - "check the registry". So I did, and it was a bull's eye shot.

The thing you have to do is to increase the width of Tool Band Width of Internet Explorer (my NSIS script contains this):
WriteRegDWORD HKCU "Software\Microsoft\Internet Explorer\CommandBar" "ToolBandWidth" 800
It's very very primitive but it's the only solution I found to work. You just have to provide the desired width in pixels (decimal value) you'd like IE toolbar to be. Don't worry - you can put there even a value of 3000 - IE is smart enough not to extend the toolbar more than needed i.e. if you put a value of 1000 and your buttons need only 500 pixels IE will automatically adjust toolbar width to 500px.

This solution works but has also a big disadvantage. As you can see I write information to the registry for HKCU (HKEY_CURRENT_USER), so if you are installing the add-on with user Administrator, only this user will have Tool Band enlarged. If you open IE with another user she will probably not see your add-on button(s) (applies to IE7 and IE8).

Until now I couldn't find a better way - did you?