Archiv des Autors: Christoph

Rails-like configuration of different environments in JAVA – YAML instead of properties file

This article shows a simple code example how you can replace a standard JAVA properties file (.ini) with a more flexible .yml (YAML) file using the JYAML library. I used this to store configuration parameters for an application for different … Weiterlesen

Veröffentlicht unter Software-Development | Verschlagwortet mit , , , , | Hinterlasse einen Kommentar

Initializing Hibernate without XML

This article just shows a code snippet I have used for initializing Hibernate in pure JAVA code without the hibernate.xml which you would normally use. public void start(BundleContext context) throws Exception { initHibernate(context); }   private void initHibernate(BundleContext context) { … Weiterlesen

Veröffentlicht unter Software-Development | Verschlagwortet mit , , , | Hinterlasse einen Kommentar

Cassandra Distributed Database – a link list for beginners

I am currently playing around with Apache Cassandra (distributed database) and this article is to store all the links I have used before I close my browser with trillions of open tabs http://wiki.apache.org/cassandra/GettingStarted http://wiki.apache.org/cassandra/ClientOptions http://prettyprint.me/2010/02/23/hector-a-java-cassandra-client/ http://wiki.apache.org/cassandra/DataModel Installing and using Apache Cassandra With … Weiterlesen

Veröffentlicht unter Software-Development | Verschlagwortet mit , , , , , | 3 Kommentare

SVN ignores file extension .so by default – which corrupted my build

I was just working on my current OSGI project which is build with Eclipse PDE headless for multiple platforms. The Eclipse Deltapack contains a launcher bundle (directory) called org.eclipse.equinox.Lauscher.gtk.linux.x86_1.0.200.v20090520 which contains a file called eclipse_1206.so. This launcher bundle I also … Weiterlesen

Veröffentlicht unter Software-Development | Verschlagwortet mit , , , | 3 Kommentare

Hibernate Transaction Handling in DWR

I am currently building a web-application using OSGI (HTTP Service) and Hibernate. I also use DWR for all the AJAX stuff in the application. DWR uses a special DWRServlet which handles the interaction of the browser with the server side. … Weiterlesen

Veröffentlicht unter Software-Development | Verschlagwortet mit , , , | 1 Kommentar

Java Code Snippet: Redirect System.out into a string

For a simple test application / prototype I just wanted to just dump everything from System.out into a String, which I can output somewhere e.g. in a JSP file so that I see what’s going on. And yes, I didn’t … Weiterlesen

Veröffentlicht unter Software-Development | Verschlagwortet mit , , | 1 Kommentar

A software system is only as good as easy it is to setup its development environment

… you get the idea. After having spent almost an entire day to help our new developer to get setup his development environment containing the source code, eclipse, svn, appserver, database, user accounts I made a new resolution for every … Weiterlesen

Veröffentlicht unter Software-Development | Verschlagwortet mit , | Hinterlasse einen Kommentar

Stromverbrauch Macbook Arbeitsplatz

Letzte Woche hatte ich mir rein aus Interesse mal ein Strommessgeraet von den Stadtwerken geholt, um mal meinen Arbeitsplatz im Arbeitszimmer durchzumessen. Komponenten: Macbook 13″ 2.16 GHz Intel Core 2 Duo (gekauft Oktober 2007),2 GB RAM 24″ TFT Samsung SyncMaster … Weiterlesen

Veröffentlicht unter Software-Development | 1 Kommentar

Resolving Hibernate exceptions with MySQL on Linux because of case-sensitive table names

Today I tried to deploy my application from my OSX dev machine to a server on Amazon EC2. I was running into exceptions like this: Caused by: org.hibernate.exception.SQLGrammarException: could not load an entity: [app.model.entities.Jobs#8] at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at org.hibernate.loader.Loader.loadEntity(Loader.java:1895) … Weiterlesen

Veröffentlicht unter Software-Development | Verschlagwortet mit , , , | 1 Kommentar

Resolving trouble with Ruby On Rails with MySql on XAMPP on OSX Snow Leopard

I was trying to work through the Get Started guide of Ruby On Rails but I had issues when I was trying to run the command “rake db:migrate” the first time. It was complaining that the mysql gem was not … Weiterlesen

Veröffentlicht unter Software-Development | Verschlagwortet mit , , , , | 3 Kommentare