Archive for the ‘Computer’ Category

Spring 3 und MyBatis 3.0.4 / 3.0.6

I was trying to use Spring 3.0.5.RELEASE together with MyBatis in a Maven environment. I added the mybatis-spring dependency. This turned out not to work due to a MalformedParameterizedTypeException (a detailed stacktrace is included below). There are quite some posts concerning this iusse, yet most of them refer to the problem as being caused by Continue reading →

Orbital

I have a friend who wanted to get to work the program "Orbital" (http://www.itp.tu-berlin.de/menue/lehre/owl/quantenmechanik/wasserstoff-orbitale/parameter/maxhilfe/). The problem was that Orbital uses JOGL 1.1.1 (http://en.wikipedia.org/wiki/Java_OpenGL) in order to run the Webstart application. Webstart requires signed dependencies (JAR files) to be signed. Yet JOGL 1.1.1 is old and is not signed anymore by Oracle (http://www.java-gaming.org/index.php?topic=24806.0). There are two Continue reading →

Eclips, Maven, WTP: AJDT Integration

It seems there is a configurator needed to make AJDT work with Maven in Eclipse as hinted by this article: http://wiki.eclipse.org/M2E_plugin_execution_not_covered Plugins, namely m2eclipse-ajdt exist or are being developed: https://github.com/sonatype/m2eclipse-ajdt https://github.com/ilx/m2eclipse-ajdt But then again, I have no idea what I am actually talking about. I will try to get by without worrying about this until Continue reading →

Maven WAR Context Root (m2e-wtp)

I was wondering how Maven determines the name of the context root when deploying directly from Eclipse using m2e-wtp (and probably also when deploying the *.war later). It turns out that the finalName tag in the pom.xml does the trick: ... <build> <finalName>root context name</finalName> ... </build>

Eclipse: Maven Integration and WTP

The Maven integration for Eclipse project (m2e or m2eclipse) by Sonartype (http://m2eclipse.sonatype.org/) has been moved to Eclipse. The version number was raised to 1.x. Since then the update sites by Sonartype are outdated and extras cannot be installed by accessing the usual update site (http://m2eclipse.sonatype.org/sites/m2e-extras) anymore as the provided extras are not compatible. Thus the Continue reading →

Java: Singleton Syntax

So today I learned, that it seems to be possible to specify a single variable without a type and any modifyer in a Java class. This seems to implement a singleton desgin pattern? I will have to investigate further.   package de.vogella.jersey.todo.dao;   import java.util.HashMap; import java.util.Map;   import de.vogella.jersey.todo.model.Todo;   public enum TodoDao { Continue reading →

Eclipse - WTP - Dynamic Web Project - Deployment Assemly

When using Eclipse WTP to develop dynamic web projects, it is often necessary to deploy resources to the WebContent folder. Keeping resources in the WebContent folder is ugly and manually copying them is tedious. The propject property "Deployment Assembly" allows to specify which folders are deployed to the WebContent folder upon calling "Run As > Continue reading →

Compiz: Switch Screens / Outout Shortcut

So, I like to use my keyboard. And one problem I was fighting with was how to set a shortcut to move windows between physical screens (not viewports) quickly. I finally found the setting myself as there seems to be different names to this options in different Compiz versions: http://ubuntuforums.org/showthread.php?t=1588821 http://ubuntuforums.org/showthread.php?t=1140244 For the Ubuntu 11.04 Continue reading →

Ubuntu and NTFS

I installed Ubuntu 11.04 (Natty Narwhal) and I was not able to run binaries from the NTFS partition. The solution was adding information about the mounting to the /etc/fstab manually. After creating the directory /media/data sudo mkdir /media/data I added to following entry to the /etc/fstab: /dev/sda7 /media/data ntfs user,exec,rw 0 0 and everything works Continue reading →

LaTeX: Line Spacing

I keep forgetting the command to set line spacing in LaTeX. The package being is setspace. The command I keep forgetting is \setstretch{1.5} \usepackage{setspace} % for setting linespace \setspace{1.5} % command to set line spacing

Return top
 

Warning: array_filter() [function.array-filter]: The first argument should be an array in /var/www/web41/html/hp_fstyle/wordpress/wp-content/plugins/wordpress-tweaks/tweaks.php on line 650