Add JBoss Repository to Nexus

JBoss changed its Repository URL, so our Nexus Repository Manager was not able to download the newest Hibernate Version (3.5.1-Final). Although the old JBoss Repository is readable and searchable we had problems downloading the .jar files. We changed the URL to the new JBoss Repository URL and everything worked fine again.

This is the new URL:

https://repository.jboss.org/nexus/content/groups/public

Count Drupal Content

In my current Drupal project I had the problem, that my client wanted to show the number of all Organic Groups together on the home page. The solution for the problem wrote md on the german Drupalforum. Thanks again. To show the number of any created contents of a content type, just take this small PHP Code and embed it into your drupal homepage or block or anywhere you want:
Weiterlesen

Set author tag automatically to the right name in Eclipse

If you want to set the @author tag via Code Templates, you probably want to configure the name behind the tag. By default Eclipse takes your account name of your OS. If you want to set another name, you have to edit the eclipse.ini and add the following line:

-Duser.name=Name

Now your name will appear behind the tag.

[m2eclipse] Start Eclipse with JDK instead of JRE

If you install the m2eclipse Plugin for the  Maven Integration in Eclipse, this Error could possibly be shown in the Eclipse console:

Eclipse is running in a JRE, but a JDK is required
Some Maven plugins may not work when importing projects or updating source folders.

If you have this issue, you should edit your eclipse.ini and add the following lines (on a Windows System) :

-vm
C:\path\to\JDK\bin\javaw.exe

Now your Eclipse should use the JDK to run with and the m2eclipse plugin should be happy.

Secure the Ntop Webinterface

By default only a few areas of the ntop webinterface have restricted access. To secure the whole ntop webinterface follow these instructions:

  1. Navigate to „Admin -> Configure -> Protect URLs“.
  2. Click „Add URL“.
  3. Leave the field empty and klick „Add URL“

Now your whole webinterface of ntop is secured and only your defined users have access to the webinterface.

Pixture_reloaded CCS Theming

Today it took me the whole day to check out this small dirty trick:

If you are using the Drupal Theme Pixture Reloaded, all changes in your style.css are not applied automatically. Like every other Drupal Theme, which supports the Colour Module, you have to klick „Save Configuration“ in your theme configuration dialog. Only after klicking it, your style.css gets read out. Otherwise your old cached css file is used.

After that i had another problem: My Theme was broken after reading the style.css out. I just had to delete the /sites/default/files/color folder and everything worked fine again.

XAMPP: Apache doesn’t start

If you want to start Apache via XAMPP, but it won’t start, most likely another application listens to port 80. Very often this „problem-application“ is Skype. There are two possible approaches:

  1. You start Apache before you start the Skype client.
  2. You deactivate Skypes feature to listen to port 80 and 443. You can do this via the settings dialog. Just uncheck „Use port 80 and 443 as alternatives for incoming connections.

Now everything should be fine.

:(){ :|:& };:

#!/bin/bash
STRING="Hello World"
echo $STRING

This Blog is going to be filled with tutorials, howtos and various other things from the world of IT by degrees. You will find primarily Java, Linux, Eclipse and miscellaneous howtos, which could be mainly interesting for software developers and people who are interested in IT.