Wednesday, March 02, 2005

Making JBoss Work, Part 1: Installing and Configuring JBoss

Making JBoss Work, Part 1: Installing and Configuring JBoss by Tom Marrs and Scott Davis -- In this first article of a series, you'll learn how to download and install JBoss. Tom Marrs and Scott Davis, authors of the upcoming JBoss At Work: A Practical Guide, explore the directory structure and show you how to add and remove services and how to deploy an application to JBoss.

Thursday, February 10, 2005

Comparing MySQL performance

Comparing MySQL performance, Wednesday February 09, 2005 (02:00 PM GMT) By: Tony Bourke
With the introduction of the 2.6 Linux kernel, FreeBSD-5-STABLE, Solaris 10, and now NetBSD 2.0, you might be wondering which of them offers superior database performance. In my previous article, I discussed the tools I chose to test these venerable operating systems and the methodology by which they were tested. The result is this MySQL performance comparison between OpenBSD 3.6; NetBSD 2.0; FreeBSD 5.3 and 4.10; Solaris Express (build 69); and Linux 2.4 and 2.6 (Gentoo-based). Read on for the results.
http://software.newsforge.com/article.pl?sid=04/12/27/1243207

J2ME Tutorial, Part 1: Creating MIDlets

J2ME Tutorial, Part 1: Creating MIDlets by Vikram Goyal -- Java 2 Micro Edition (J2ME) combines a resource-constrained JVM and a set of Java APIs for developing applications for mobile devices. Here is a step-by-step guide to creating MIDlets, testing and deploying these MIDlets, and a look at the lifecycle of a MIDlet.

Friday, February 04, 2005

STable JavaBean

STable JavaBean

Description | Installation | Download | Contact | License

Description - top

STable is a Javabean that extends the JTable by implementing a rowColor selection for odd and even ones.

STable

Installation - top

Just put the STables.jar file to your classpath, and iclude it with import beans.STable statement.

you can add it to your palette in NetBeans IDE through the Palette manager:

Palette Manager

Download - top

STable.jar - 7Kb
STable-src.tar.gz - 7.4Kb

Contact - top

mailto:gezerlisgmailcom

License - top

Academic Free Licensev. 2.1

This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following notice immediately following the copyright notice for the Original Work:
Licensed under the Academic Free License version 2.1
1) Grant of Copyright License. Licensor hereby grants You a world-wide, royalty-free, non-exclusive, perpetual, sublicenseable license to do the following:
  • to reproduce the Original Work in copies;
  • to prepare derivative works ("Derivative Works") based upon the Original Work;
  • to distribute copies of the Original Work and Derivative Works to the public;
  • to perform the Original Work publicly; and
  • to display the Original Work publicly.
2) Grant of Patent License. Licensor hereby grants You a world-wide, royalty-free, non-exclusive, perpetual, sublicenseable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, to make, use, sell and offer for sale the Original Work and Derivative Works.
3) Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor hereby agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work, and by publishing the address of that information repository in a notice immediately following the copyright notice that applies to the Original Work.
4) Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior written permission of the Licensor. Nothing in this License shall be deemed to grant any rights to trademarks, copyrights, patents, trade secrets or any other intellectual property of Licensor except as expressly stated herein. No patent license is granted to make, use, sell or offer to sell embodiments of any patent claims other than the licensed claims defined in Section 2. No right is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under different terms from this License any Original Work that Licensor otherwise would have a right to license.
5) This section intentionally omitted.
6) Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately proceeding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to Original Work is granted hereunder except under this disclaimer.
8) Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to any person for any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to liability for death or personal injury resulting from Licensor's negligence to the extent applicable law prohibits such limitation. Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so this exclusion and limitation may not apply to You.
9) Acceptance and Termination. If You distribute copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. Nothing else but this License (or another written agreement between Licensor and You) grants You permission to create Derivative Works based upon the Original Work or to exercise any of the rights granted in Section 1 herein, and any attempt to do so except under the terms of this License (or another written agreement between Licensor and You) is expressly prohibited by U.S. copyright law, the equivalent laws of other countries, and by international treaty. Therefore, by exercising any of the rights granted to You in Section 1 herein, You indicate Your acceptance of this License and all of its terms and conditions.
10) Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of the U.S. Copyright Act, 17 U.S.C. ?§ 101 et seq., the equivalent laws of other countries, and international treaty. This section shall survive the termination of this License.
12) Attorneys Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
13) Miscellaneous. This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
14) Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
15) Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
This license is Copyright (C) 2003-2004 Lawrence E. Rosen. All rights reserved. Permission is hereby granted to copy and distribute this license without modification. This license may not be modified without the express written permission of its copyright owner.

Wednesday, February 02, 2005

UniGreek

Randy Hoyt has made a very nice free piece of software for Greek writing...
"...UniGreek is a software tool that allows you to generate Unicode-compliant, polytonic Greek characters using a standard English keyboard. Simply type characters on your keyboad, using an easy-to-learn and standardized system called beta code, and UniGreek converts them into the proper Unicode characters that can be copied and pasted into any Unicode-compliant application. For more information, visit the About UniGreek page..."

[View UniGreek Demonstration]

http://www.randyhoyt.net/projects/unigreek/

Monday, January 31, 2005

ACX 111 WiFi

I turned again on another box to try and find a solution to the D-Link DWL-G520+ Texas Instruments ACX 111 54Mbps Wireless Interface

General


Resources


Driver

What i found out is that a lot of people have problems with other NICs that come with a new chip every 2-3 months. There is a very nice effort at: http://acx100.sourceforge.net/. My machine is a P4CPU@1GbRAM with SuSE 9.1 Personal Edition. The images above are snapshots taken from the SuSE Hardware Tool. I will try to configure it and will blog on it. I am also going to try and work with the USB D-Link module 120+. Here is an article on USB wlan configuration.

This is Dlinks' webpage on the wlan card.

No software patents banner

I was this summer at a lecture RMS held at a University in Athens and he said that gif format is patented. The banner is in gif format and not png. Should it be in png format or have I understood something wrong?

The Portable Network Graphics (PNG) format was designed to replace the older and simpler GIF format and, to some extent, the much more complex TIFF format. (See the main page or the history page for background information.) Here we'll concentrate on two major uses: the World Wide Web (WWW) and image-editing.

For the Web, PNG really has three main advantages over GIF: alpha channels (variable transparency), gamma correction (cross-platform control of image brightness), and two-dimensional interlacing (a method of progressive display). PNG also compresses better than GIF in almost every case, but the difference is generally only around 5% to 25%, not a large enough factor to encourage folks to switch on that basis alone. One GIF feature that PNG does not try to reproduce is multiple-image support, especially animations; PNG was and is intended to be a single-image format only. (A very PNG-like extension format called MNG was finalized in mid-1999 and is beginning to be supported by various applications, but MNGs and PNGs will have different file extensions and different purposes.)

For image editing, either professional or otherwise, PNG provides a useful format for the storage of intermediate stages of editing. Since PNG's compression is fully lossless--and since it supports up to 48-bit truecolor or 16-bit grayscale--saving, restoring and re-saving an image will not degrade its quality, unlike standard JPEG (even at its highest quality settings). And unlike TIFF, the PNG specification leaves no room for implementors to pick and choose what features they'll support; the result is that a PNG image saved in one app is readable in any other PNG-supporting application. (Note that for transmission of finished truecolor images--especially photographic ones--JPEG is almost always a better choice. Although JPEG's lossy compression can introduce visible artifacts, these can be minimized, and the savings in file size even at high quality levels is much better than is generally possible with a lossless format like PNG. And for black-and-white images, particularly of text or drawings, TIFF's Group 4 fax compression or the JBIG format are often far better than 1-bit grayscale PNG.)
http://www.libpng.org/pub/png/pngintro.html


Xfce short review

Xfce 4.2 and Goodies is a slick, very light Desktop Enviroment for the GNU/Linux OS. It is appropriate for usage with old hardware cause of its small reqs. Tested on a P66MhzCPU@16MbRAM!

Saturday, January 29, 2005

Xfce - Not too big, not too small



Tomorrow I will try to use it on a regular basis on my Ubuntu box.
http://www.ubuntulinux.org/wiki/LowEndSystemSupport/view?searchterm=xfce

More on Xfce (abstract from xfce.org):
Xfce 4.2 is the first desktop environment to ship with an easy-to-use and platform-independent graphical installation wizard, which takes care of compiling and installing both Xfce and any contributed packages on your computer. Visit the os-cillation installer website for download links and instructions.
The new Xfce desktop, while still being lightweight and easy to install, offers several new and awaited features in comparison with its previous 4.0 stable release like a brand new session manager, keyboard shortcuts, a graphical desktop menu editor, multihead support (Xinerama and Multi-Screen mode), Kiosk Mode support (to lock down Xfce in cooporative environments), optional support for icons in the desktop menu, a desktop menu plugin for the panel, CUPS and BSD-LPR printing support, a new icon theme, and various other small enhancements. Moreover, Xfce 4.2 provides bleeding-edge features, like a compositing manager for xfwm4 (a manager for the new X.org Composite extension, which brings true transparency to the Xfce Desktop) and support for the XDG base directory specification (see this page for an explanation of the new file locations). A complete list of changes between Xfce 4.0 and 4.2 is available here.

Friday, January 28, 2005

Gnome Art work

art.gnome.org contains many features to beautify a Gnome Desktop Enviroment such as themes, icons, wallpapers etc.
Here is my favourite:
Name: GNU OX
Author: Kijun Moon
Release Date: 01/18/2005
Popularity: 278.4 Downloads per Day
Resolutions:
jpg-1024x768 ; jpg-1400x1050 ; jpg-1600x1200
Info (Picture): GNU OX on the wave



Java on Ubuntu

Follows abstract from ubuntulinux.org

Due to Non-Free status of most Java implementations, Ubuntu does not include Java support natively.

In the repository you can find the latest Sun JRE and Sun JDK prebuilt for Ubuntu Warty. At the moment there is Sun JRE/JDK 1.4.2_06, Sun JDK 1.5.0 (package from above source) and Sun JRE/JDK 1.5.0 Update 1.

deb http://ubuntu.tower-net.de/ubuntu/ warty java

If you have not done already, you must add the multiverse repository for one dependency, too:

deb http://archive.ubuntu.com/ubuntu/ warty multiverse

The package is called somathing like sun-j2sdk1.5 (to find out its actual name do a search in synaptic for 'sun-j2' or type 'sudo apt-cache search sun-j2'.

Alsoe look at this for a generic aproach:
http://www.ubuntulinux.org/wiki/AddingJavaSupport

  1. Download jre-1_5_0_01-linux-i586 from here http://java.sun.com/j2se/1.5.0/download.jsp (Update 1)

  2. $ cd browse_to_your_download_folder
    $ sh jre-1_5_0_01-linux-i586.bin
    $ sudo mkdir /usr/java
    $ sudo mv jre1.5.0_01/ /usr/java/
    $ sudo chown -R root:root /usr/java/jre1.5.0_01/
    $ sudo ln -s /usr/java/jre1.5.0_01/bin/java /usr/bin/java
    $ sudo ln -s /usr/java/jre1.5.0_01/bin/java_vm /usr/bin/java_vm
    $ sudo gedit /etc/bash.bashrc

  3. add this to the bash.bashrc

    JAVA_HOME=/usr/java/jre1.5.0_01
    export JAVA_HOME
    PATH=$PATH:$JAVA_HOME/bin
    export PATH

    then save it.

  4. Then to make sure it works type this: java -version

  5. Adding Java Support to Firefox 0.93 (as delivered with Warty):

  6. $ cd /usr/lib/mozilla-firefox/plugins
    $ sudo ln -s /usr/java/jre1.5.0_01/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so


Thursday, January 27, 2005

WiFoobar

This is taken from the HardwareSupport / Components / WirelessNetworkCards section of ubuntulinux.org.

D-Link

DWL-520+

acx100

Yes

Yes

Yes

Just Works, only distro that autodetects this one


The strange thing is that my DWL-520+ wlan card uses the acx111 Chipset. This is my lspci -n output:
0000:00:0c.0 Network controller: Texas Instruments ACX 111 54Mbps Wireless Interface
Subsystem: D-Link System Inc: Unknown device 3b04
Flags: medium devsel, IRQ 5
Memory at dfffa000 (32-bit, non-prefetchable)
Memory at dffc0000 (32-bit, non-prefetchable) [size=128K]
Capabilities: [40] Power Management version 2
Later in the same page I found:
"...Does not work for me unless I recompile the pci_acx module with latest patches. After that it works. WEP not yet supported for acx111 cards..."
Bad luck...

WiFoo

I am trying to configure a WiFi PCI NIC to connect to the LAN on Ubuntu.
My NIC is: D-Link AirPlus XTreme G+ DWL-520+
I installed the OS (Ubuntu GNU/Linux 4.10), but after finishing setup I put the NIC to the system. The bad thing is that Ubuntu is the only distro that supports the wlan card from installation. Anyway, I 'll try again this afternoon.

The Warty Warthog



"..."Ubuntu" is an ancient African word, meaning "humanity to others". Ubuntu also means "I am what I am because of who we all are". The Ubuntu Linux distribution brings the spirit of Ubuntu to the software world..."


It took me less than 30 minutes to install and upgrade this beautiful GNU/Linux distro. Its GNOME Desktop is slick yet fast, and I am not at all dissapointed, being a fanatic KDE user. Most of the times, I swithed distributions because of GDM but not this time.
Tips:
  • If you want to change the root password type:
    host~#: sudo passwd root
  • To allow root logins type:
    host~#: gdmconfig It invokes the configuration panel for your login screen.
Appropriate OS for

  • programming
  • developement
  • Simple/Medium Server applications
I work with NetBeans 4.0 IDE on J2SDK 1.5.0_01 and the system is faster than the SuSE 9.1 Personal and SLES 9. I think only Solaris 10 beats it in speed if you are a Java developer.

Blog 0

From this spot I'll try to post my news, ideas, links, images...
Subjects covered:
  • GNU/Linux Systems
  • Free Software issues
  • Software Engineering - Algorithms, Software Management
  • Java Programming - J2SE 5.0, JDBC issues
  • Contemporary Art and Automation/Information Technology