Tuesday, October 12, 2010

Jetty Maven Plug-in vs Native Libraries.

My web application at http://owlcms.googlecode.com uses a native library to drive a LED display.  I could not get it to reload correctly under the Jetty Maven Plug-in because of a
java.lang.UnsatisfiedLinkError: Native Library foo.dll already loaded in another classloader

The solution is very easy:
  • Find the jar that invokes the native library.
  • Locate the dependency  for that jar in the pom.xml file.
  • Move the dependency so that it is inside the dependencies section  of the Jetty plugin.  By making it a dependency of the Jetty plugin (as opposed to a dependency of your application), Jetty won't try to reload it and won't mess up the classloaders
Kudos to David Yu's suggestion on a forum.

Tuesday, September 14, 2010

5 things you didn't know about ... Everyday Java tools

5 things you didn't know about ... Everyday Java tools

ServiceLoader is one that looks nice, and the StAX concept is
intriguing.

Monday, August 30, 2010

Sunday, August 22, 2010

Java, Google Web Toolkit, Android, and App Engine.: Facebook apps on App Engine without any third party API

Was lots of fun when I tried a Google Gadget calling App Engine.
Saving this in case I ever need to develop for facebook !
Java, Google Web Toolkit, Android, and App Engine.: Facebook apps on App Engine without any third party API

FreeMyFeed - Free Your Feed From Authentication

Seeing twitter feeds in realtime is fine when I am logged in, but I tend to follow blogs using the RSS feeds. Twitter and Google Reader don't work together too well. Searching around led to this site, which works just fine.
FreeMyFeed - Free Your Feed From Authentication

Friday, May 28, 2010

Copy protection for Web pages

A client was faced to a RFP requirement to prevent unauthorized printing and screen capture of Web Pages with sensitive information.  After a good chuckle, it turns out that such software exists !
http://www.artistscope.com/copy-protect-web-pages.asp goes to incredible lengths to do its deed (you can pretty much disable everything, and I mean everything).

Of course, you can always take a picture of a 24inch screen with a 14Megapixel camera and not loose much, but who said common sense was common...

Sunday, March 14, 2010

Jumping on the twitter bandwagon.

This post is (hopefully) the first of many that will go to my twitter feed as well.

Free tool for merging/editing PDF files

http://www.pdfsam.org/ is a very good tool to edit PDF files (merging, removing a page, etc.)
Only quirk is the user interface. It took me a while to realize that the functions I wanted (merging, editing, etc.) are actually listed in the tree on the left.