Month: October 2014

eclipse remote system explorer – shell ed – php plugin

Sometimes I need to do administration stuff. Because I am a fulltime Java Developer I feel confortable using eclipse. I only have basic knolege about vi. Another thing is – I work with Windows and Mac Computers – And I like software that can run on poth operating systems. mobaxterm and WinSCP are nice Tools …

eclipse remote system explorer – shell ed – php plugin Read More »

Trim String to fit in UTF-8 encoded DB-column

Most People in the World are using more tjen the ASCIIcode. Most of our customers deal with an international audience. The only solution ist to use UTF8 everywhere. Everywhere means in the database and in the software. UTF8 is a format to spare space. public class WWSUtils { public static String trimUnicodeToMaxsizeInUtf8Bytes(String input, int size) …

Trim String to fit in UTF-8 encoded DB-column Read More »

Postgress

which is an alternative to IBMs DB2? I’m trying to use Postgress as a alternative DB-Server. should be open source shuld run on windows mac and linx should be compatible with db2 I tryed postgress because, if you got to oreilly.com you get literatur and manuels. The amount of literatur you get from oreilly.com is …

Postgress Read More »

Format SQL with Java

The dynamic generated SQL of our Java-applikation needed to be formatted. The formatted SQL was then logged in the error-log of our application. To accomplish this task it was agood idea to use the formatter of the Hibernate Framework. org.hibernate.engine.jdbc.internal.BasicFormatterImpl.BasicFormatterImpl() String formattedSQL = new BasicFormatterImpl().format(sql); In the older Version of hibernate the formatter had an …

Format SQL with Java Read More »

Martin Rocks