TestDox and IntelliJ IDEA 9

I really missed TestDox plugin for IDEA. There is no official version as of now for IDEA 9.0

I tried to install latest available version but its not compatible. I played around with plugin.xml by removing until-build=”IU-93.94″, it got enabled but then threw following exception,

Caused by: java.lang.NumberFormatException: For input string: "IU-93.94"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:449)
	at java.lang.Integer.parseInt(Integer.java:499)
	at org.codehaus.testdox.intellij.IntelliJApiFactory.<init>(IntelliJApiFactory.java:24)

I had patched the IntelliJApiFactory and updated .class file in the testdox-plugin-1.1.12-diana.jar. I am using it for some time and my usage is limited to navigate between class and its test. Not seeing any exceptions but overall IDEA 9.x plugin api are changed a lot and using a patched plugin might crash IDEA.

But for those who can’t live without it, can download it here. Extract it to your IDEA plugins directory.

More



Maven, dbdeploy, HSQLDB without Ant

Believe me, integrating Maven and dbdeploy is a pain using Ant. For some weird reasons, dbdeploy ant task was causing maven build to crash.

So tried to integrate dbdeploy with maven without ant on my Snow Leopard -

Click to continue reading “Maven, dbdeploy, HSQLDB without Ant”

More



Integrating Spring and EHCache

Using Spring Modules and EHCache, one can transparently cache method results. Spring Modules uses a proxy which intercepts call to the method of bean; consults the cache to check if method was called with same parameters before, if so will return cached result.

EHCache is the actual provider of caching solution and Spring Module handles method interception and result storing in cache.

Click to continue reading “Integrating Spring and EHCache”

More



maven2, slf4j, hibernate error

Got following exception while executing “mvn test”

java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory

Click to continue reading “maven2, slf4j, hibernate error”

More



mysql prompt auto complete

To enable auto complete on mysql prompt -

mysql> \#

After above

mysql> show DATA<PRESS TAB>
DATABASE DATABASES DATA

More



Converting Mailman/Pipermail text archive to mbox

I wanted to import mailing list archive in my Apple Mail.app which support “Files in mbox format”. Found following python script by Paul which converts text archive to mbox.

Click to continue reading “Converting Mailman/Pipermail text archive to mbox”

More



My initial attempts at creating websites…

Hmm…. I never thought I will find it again… While going through some of old CDs, I found earlier sites created during my four year degree course in Computer Engg at PICT.

  1. 1999-2000 – This was the first attempt while I was in my Third year..was quite obsessed with DHTML… :)
  2. 2000-2001 – This was in the Final year…Flash had taken over by then……

There is still final version of site still trying to find…. something for this weekend…

More



Data Loss Bug in Cocoatech’s Path Finder 5.5.6

Cocoatech’s Path Finder is a great application. I am trying it out for some time now. I have noticed following bug couple of times.

If you have a file of more than 4gb stored on file system of type “Mac OS Extended” , and if you try to move it to a FAT32 partition, it fails.

Which is fine since max file size on FAT32 file system is 4gb. What is frustrating is that Path Finder doesn’t tell you this that the file move operation is failed. On top of it, it will remove file stored on “Mac OS Extended” file system, thinking the file move operation was successful.

Uhhh….big thumbs down… I wish they fix this problem….

More



Change Google Apps – GMail Logo

In Google Apps hosted GMail, when using themes, GMail logo is not changed. If your organization logo is not transparent then it will be distracting for some themes.

I am using Fluid app for GMail and since it supports Userscripts, you can use following userscript.

Click to continue reading “Change Google Apps – GMail Logo”

More



Jetty Remote Debugging using IntelliJ IDEA

Recently wanted to remotely debug Jetty instance, which was using mvn jetty:run.

Using following MAVEN_OPTS worked for me -

$ export MAVEN_OPTS=”-Xms256m -Xmx512m -agentlib:jdwp=transport=dt_socket,address=7848,server=y,suspend=n”

After setting above executed -

mvn jetty:run

Then configured IDEA Remote Server by connecting to server on above configured port 7848


More



Next


WordPress Loves AJAX