Tom Studer's Home Page
[ start | index | login ]

Welcome to my personal home page.

My latest project: >>ClubDesk Vereinssoftware

>>My professional homepage is located here. As of January 1, 2009, I'm a founding partner and software engineer at >>reeweb ag.

Feel free to send comments to tstuder<at>conjective.ch

Hobbies and Fun

Turtle Island Golf Club  |  Photos

Programming Resources

ANT Stuff  |  Java Stuff  |  XML Stuff  |  Unix Stuff  |  HTML Stuff  |  SQL Stuff  |  Tools


The rest of this page shows a Weblog with which I keep track of bits of information and stuff that I'm interested in.

Friday, 22 August 2008

Java Server Sizing and Performance

Sizing & TCO Estimation: >>http://www.sizinglounge.com/

Server Performance: >>http://developers.sun.com/solaris/articles/performance_tools.html

GWT Tomcat Performance Metrics >>http://www.jroller.com/galina/entry/google_web_toolkit_performance_test

JSP Web App Performance >>http://www.adobe.com/devnet/flex/articles/performance_brief/flex_perf_brief.pdf PermaLink

no comments | post comment

Wednesday, 07 June 2006

Swing JTable right-mouse selection & popup menus

When requesting the popup menu on a table with no current selection it is sometimes convenient to have the table select the clicked row before poping up the menu.

This can be achieved using the following code:

table.addMouseListener(new MouseAdapter() {
    public void mousePressed(MouseEvent e) {
        if (e.getModifiers() == Event.META_MASK
                && getSelectedRowCount() == 0) {
            Point p = e.getPoint();
            int row = table.rowAtPoint(p);
            table.setRowSelectionInterval(row, row);
        }
    }
});
PermaLink
no comments | post comment

Swing Windows LookAndFeel properties

How to print them:

LookAndFeel l = new  com.sun.java.swing.plaf.windows.WindowsLookAndFeel();
Enumeration keys = l.getDefaults().keys();
while (keys.hasMoreElements()) {
    String key = (String) keys.nextElement();
    System.out.println(key + " = " + l.getDefaults().get(key).toString());
}
PermaLink
no comments | post comment

Monday, 26 December 2005

Setting Windows XP Administrator password

>>http://www.kellys-korner-xp.com/win_xp_passwords.htm PermaLink
no comments | post comment

Tuesday, 20 December 2005

LDAP Tutorial

>>http://www-128.ibm.com/developerworks/tivoli/library/t-ldap01 PermaLink
no comments | post comment

Tuesday, 13 December 2005

How to share objects between class-loader instances

This shows how you can share Java objects between Applet class-loader instances within the same plug-in VM: Sharing Java objects between class loader instances

For more information refer to:

PermaLink
no comments | post comment

Tuesday, 23 August 2005

JavaScript OS Detection

From: >>http://www.javascripter.net/faq/operatin.htm

// This script sets OSName variable as follows:
// "Windows"    for all versions of Windows
// "MacOS"      for all versions of Macintosh OS
// "Linux"      for all versions of Linux
// "UNIX"       for all other UNIX flavors 
// "Unknown OS" indicates failure to detect the OS

var OSName="Unknown OS"; if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows"; if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS"; if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX"; if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";

PermaLink
no comments | post comment

Sunday, 07 August 2005

Unix file search

Search files in a directory tree:

find . -name *.txt -exec grep -H 'text to search' '{}' ;

This searches all text files (*.txt) within the current directory and subdirectories for the string 'text to search' and prints the filename and line for each match. PermaLink

no comments | post comment

Monday, 18 July 2005

Installing Suse Linux 9.2 on a USB hard drive

This is a helpful link: >>http://www.simonf.com/usb/

I finally got it working. I'm not completely booting of the USB drive, though. I'm using a tiny boot partition on the primary drive.

The set-up is: I got a Dell Inspiron 8600 which came pre-installed with Windows XP. There was a hidden DOS partition of about 4GB on the internal 60GB hard-drive that I think is used for system diagnostics and recovery. This partition came in handy when I installed Linux.

What Linux - I got Suse Linux 9.2 Professional. Booting off the DVD, I was able to resize the DOS partition, clipping off about a gig. The new free space I used for a new Linux boot partition (1GB is more than enough). On my external USB drive, I put a swap partition and the main partition for root. The GRUB boot manager I installed on the primary internal hard-disk of the laptop where I set Windows XP as the default OS and Linux as the second choice (since Linux only boots if the USB drive is plugged in). Overwriting my boot configuration on the primary drive (HDA) with the Linux boot manager wasn't an easy decision since I wasn't sure how reliable this would work out and whether I could easily switch back to my old boot loader if things went wrong. Anyway, I did it and it turned out to be a good decision.

If you do decide to revert back to the old boot loader, you can reset the master boot record with the DOS command "fdisk /mbr" (fdisk I found on one of the CD-ROMs that came with the Dell). Should this not work, don't panic (for the moment). Reboot the Linux CD and run a complete installation with GRUB on HDA (you should see your original XP partition there and leave it as is). This may help to get the partition allocation table into a consistent state. Disclaimer: don't blame me if anyithing goes wrong. And make sure you have a complete backup of your data before you start playing around with the boot configuration of your computer.

OK, after running the Linux installation I rebooted and was able to select Linux in the GRUB boot manager menu. Here came the tricky part, Linux started booting off the boot partition on HDA but then wasn't able to mount the root partition on the USB drive. According to a hint I found on the web, I built a custom Linux kernel (adding some time delay allowing the USB drive to get ready). Since I found the required GNU compiler tools and all of the source on the Linux CD, this was easy as pie. Being a Linux newby, I was very impressed by how easy it is to patch the inside of your Linux in a (depending on what you do) reliable way. As it turned out, though, I don't think now that building a custom kernel would have been necessary.

What's really needed for my set-up was a new initrd image with the USB and SCSI drivers pre-loaded and a small patch to the initrd script itself (just pre-loading the modules wasn't enough - that's for sure). The link at the top of the post (the instrcutions for Fedora Core 3) gave me the necessary tips. Thanks, Simon and Stanislav. PermaLink

no comments | post comment

Tuesday, 12 July 2005

Giraffe

>>http://elib.cs.berkeley.edu/cgi/img_query?query_src=&enlarge=0091+3183+0934+0107 PermaLink
no comments | post comment

mouse_cartoon



< February 2012 >
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
26272829

snipsnap-help | More Help

Powered by SnipSnap 1.0b2-uttoxeter

Describe here what your SnipSnap is about!

Configure this box!

  1. Login in
  2. Click here: snipsnap-portlet-2
  3. Edit this box
snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt