Archive for February, 2010

Java – print stack trace to a String

Thursday, February 25th, 2010

Simple and quick one today – what if we need to print stack trace into a String?


catch (Exception e) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);

String stackTraceString = sw.toString();
//use the stackTraceString as you need…


Instantiating Beehive JdbcControl manually

Thursday, February 18th, 2010

Common usage pattern for Beehive Jdbc control is:

  • Create DB control class by extending JdbcControl
  • Declare DB control variable in page controller and use @Control annotation to have it automatically instantiated and injected
  • Use the DB control

The above works fine. But what happens if we would like to use our DB control class from within JSP page which is not part of our Beehive application and has no access to our controller?

The following text presents one possible approach.


Malibu for iPhone/ iPod touch released!

Friday, February 5th, 2010

Malibu is a free drumming game for iPhone and/or iPod touch with talking pelican and awesome dancers and it was just released!

Download here.

More information can be found here.