Total Pageviews

Friday, June 20, 2008

Do you know all Java networking properties?

Just in case you are in need of setting a proxy host or declaring proxy exceptions in your JVM I find this site very useful:
http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html
It lists all existing Java networking properties.

Friday, June 13, 2008

Ever wanted to know the exact name of your installed Linux distribution?

Type this command into shell and find out what Linux distro you are using:
cat /etc/issue
It gives you something like this:
Ubuntu 8.04.1 \n \l
If you don't know the kernel you are running with try this one:
uname -a
It gives you something like this:
Linux machinename 2.6.24-19-generic #1 SMP Wed Jun 4 16:35:01 UTC 2008 i686 GNU/Linux

Thursday, June 12, 2008

Problems updating my Debian Distribution, or do you know MMAP?

I was recently trying to update my Debian (lenny/sid) distro and ran into some problems I never had so far:
When calling
apt-get update
I got the following error message:
E: Dynamic MMap ran out of room
E: Ein Fehler trat beim Bearbeiten von g++-4.2 auf (NewVersion1)
E: Problem with MergeList /var/lib/dpkg/status

After digging around I found a solution for my problem:
Increase the Cache Limit size of APT in /etc/apt/apt.conf like this:
APT::Cache-Limit 80000000;
Be careful not to set the size too high!

Wednesday, May 14, 2008

Mac OS X Look And Feel for Java

Besides the great looking Substance Look And Feel (see one of my previous posts) I found the Quaqua Look And Feel which really looks great if you want to provide Mac OS X feeling for Java applications.

Wednesday, April 02, 2008

Searching for Freeware WYSIWYG HTML Editors

Well, finally I am back online with my blog and website. I moved to another apartment and my server is located in my apartment. No DSL, no server :-(
Check out this site http://www.thefreecountry.com/webmaster/htmleditors.shtml#wysiwyg if you are in need of a free WYSIWYG HTML Editor.

Friday, November 16, 2007

Changing HTTP Listener Port on Oracle Express 10g

The oracle installer does not give you the chance to change the port of the HTTP Listener. I installed my Oracle 10g Express Edition under Windows and my Tomcat Servlet Container already uses port 8080.
So I decided to change the port of the Oracle HTTP listener doing the following with SQLPlus:
C:\>sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Sat Sep 10 18:49:14 2006

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production

SQL> exec dbms_xdb.sethttpport(8081);

PL/SQL procedure successfully completed.

SQL>

Thursday, November 15, 2007

Professional looking Java Swing Look and Feel

Digging around for an improved Look and Feel of one of my Java Swing applications I stumbled across the Substance Look And Feel project on java.net.
These skins and themes are awesome. I have never seen a better looking UI like this. Go and check it out. You will be impressed!

Sunday, November 11, 2007

JBoss 4.2.x and JSF applications

I upgraded from JBoss 4.0.4.GA to 4.2.2.GA and was not able to successfully deploy a JSF application into the container.
Various error messages were thrown by the container, one of it telling to have a closer look into the JBoss Wiki to determine the cause of deployment failure when using JSF application.
The problem was, that my application is bundled the MyFaces API and Impl core packages but JBoss uses the java.net JSF implementation.
If you still would like to use the MyFaces implementation you have to add the following lines to your web.xml file:
<context-param>
     <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
     <param-value>true</param-value>
</context-param>
The full article is available under the following URL: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5AndMyFaces

Monday, November 05, 2007

Comparison of different Repository Managers

Deng Ching wrote a good blog entry about existing repository managers. Repository managers have become a big part in software development. Maven without a good organized and well structured repository would be useless. Besides Maven, repository managers can also be used by Ant or Ivy.
Please note that Deng Ching is a developer of Maven Archiva. So his comparison might be not as neutral as you might expect.

Saturday, October 27, 2007

WLAN on Ubuntu Gutsy Gibbon (7.10) with IPW3945 and WPA encryption

I updated from Feisty to Gutsy yesterday and had massive problems making an internet connection via wlan. My Acer Aspire 5650 has an Intel IPW3945 WLAN card and the kernel modules were loaded successfully without any errors. The restricted WLAN driver was listed as "in use" in Ubuntu's restriced driver manager, so I expected to have a working driver configuration.
Somehow I assumed it had something to do with the network manager. So I completely removed the Network Manager via
apt-get remove network-manager
and configured my wlan interface (using instructions from a german ubuntu forum) manually editing /etc/network/interfaces:
iface eth1 inet dhcp
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
auto eth1
My wpa_supplicant.conf looks something like this:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1

network={
        ssid="YourWlanSSID"
#        scan_ssid=1
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=TKIP
        group=TKIP
        psk=YourPSK
}
Note: I am using WPA encryption for my WLAN.
You can test your wpa_supplicant configuration using the following command:
sudo wpa_supplicant -i eth1 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -d
Option -i defines the network interface name of your WLAN card. Option -D declares the driver to use and option -c defines the wpa_supplicant configuration file.
After this I restarted my system and I got a working wlan connection to my Access Point.