Tuesday, September 23, 2008

Tooltip delay in Windows

I was in a rush to finish something at work in the last couple of days and while I usually don't mind it that much, as I was quickly moving the mouse across the code and frantically writing new code, Eclipse was showing so many tooltip it was driving me nuts! I spent a couple of days googling every now and then for a solution with no joy... Apparently there's lots of suggestions out there on how to disable tooltips altogether, increase the tooltip timeout and even some suggesting a relation between menus delay and tooltip delay. Finally, my pain was brought to an end when I decided to look for "hover" (the term used in Eclipse) in TweakUI settings and it was right there under my nose!

A peek using RegMon reveals that the setting goes into HKEY_CURRENT_USER\Control Panel\Mouse\MouseHoverTime (REG_SZ) registry key. Now at 300 (note the value is in milliseconds), with my sanity restored I'll get back to work now! I believe the same key applies to Windows Vista.

Friday, September 12, 2008

Shuttle SB61G2 memory upgrade

Long overdue, my old Shuttle SB61G2 V3 got a memory upgrade after 4 years of service. This is more for old Shuttle owners out there, don't bin them just yet, there's still some life left in them ;-)

Got a 2 x 1 GB VS1GB400C3 Corsair Value working at 3-3-3-8 @ 2.5V in Dual Channel (http://www.corsairmemory.com/products/value_select.aspx) for 47 Euro (+ 5 euro shipping) from Dabs.ie, straight replacement for 2 x 512 MB VS512MB400 Corsair Value. All this after a week of disappointing trials with some better looking 2 x 1 GB OCZP4002GK 2-3-2-5 @ 2.8V which failed to boot on my machine. Big thumbs up to the OCZ support guys for their help, but eventually I had to let it go.

Now where is that Eclipse, see how you like it now ;-)

Wednesday, September 10, 2008

Commonclipse Eclipse plug-in


Commonclipse is an eclipse plugin for jakarta commons-lang users. It features automatic generation of the following methods using commons-lang builders:
  • toString() 
  • hashcode() 
  • equals(Object) 
  • compareTo(Object)

Commonclipse supports customization of generated methods (custom ToStringStyle, use of appendSuper(), excluded fields) through user defined properties. Commonclipse actions are available both in java editor views and in package explorer. See screenshots.

Generated code use jakarta commons-lang 2.0 builders. Commonclipse will not check for the presence of commons-lang in your project classpath, you will need to get a copy from jakarta and to set up java build path appropriately.


When generating hash/equals for classes extending directly Object class you will have to manually remove the appendSupper(super.hashCode) / super.equals() for a correct hash / equals result. See SF.net bug # 1201161.