Archive

Posts Tagged ‘java’

Linux for java development

March 7th, 2010 2 comments

I have been wanting to move to a linux based environment for java development for quite a while now. Many PROD servers I deploy to run on a linux distro. So testing configuration / code changes becomes easier when you have multiple DEV environments. I deploy to CentOS among other linux flavors. I have settled on the Open  Suse 11.2 desktop. Here are some things I liked

  1. Open Suse managed to detect my Nvidia driver with Yast. I guess they teamed up with Nvidia to host a repository for linux drivers. I didnt have to download kernel sources or devels to enable dual monitor support (Which is otherwise required). Nice !
  2. PPP over internet setup was pretty easy. Kinternet and the Yast configuration settings together let me connect to the net with ease.
  3. Community support seems good. The Suse forums are alive and kicking.

Categories: java Tags: , , ,

Nautilus SVN moves to RabbitVCS

February 16th, 2010 No comments

Nautilus SVN, the SVN client for linux had moved to RabbitVCS a few months back. From what I have read so far, the new client, while plugging into the old Nautilus manager, performs much better and does not hang up when the number of files to manage is on the rise.

RabbitVCS differs from Nautilus by attempting to have a pluggable interface for many types of source control systems. So SVN is just the beginning. You can check out the screenshots and install it on your favorite linux distro.  Here are a few teasers

RabbitVCS:

Commit with the Rabbit:






Categories: java Tags: ,

Sun certification java ee 6 updates

January 27th, 2010 8 comments

Sun has a wide range of certifications to offer. Ever since java EE6 was released, changes have been made to the certification hierarchy and content to reflect the new specifications. Sun is also offering a discount of 10% to those that register for training / certification updates by Jan 31st 2010. Here is a comparison of the certification hierarchies

Old hierarchy:

New hierarchy:

The new hierarchy provides paths that are more specialized than the ones before. For example you can be a JSF expert. Web service + security is another specialization. Combining these certifications together can also earn you the title of a “Master“.

Categories: java Tags: , ,

Wave needs a decent client

November 23rd, 2009 5 comments

I successfully installed a wave (google) server on a windows box a few days earlier. It was a great feeling. Here are the components that made up the server

  • Open fire XMPP server
  • Postgres database to be used by XFire.
  • Wave related server jar which runs the server
  • Wave command line client that runs the simplistic console client.

I started the console client and typed in a few commands to go through the waves. New, open, view waves were some commands that the command line console allowed you to execute. This client was a simple RI provided by google. If you would like to install a server on your own, take a look at the installation instructions.

Wave console client:

wave-console-client

Categories: java Tags: , ,

Coding with JDK7

November 16th, 2009 14 comments

jdk7 codeThe JDK7 milestone 5 update is available for download. Developers now have a chance to try coding with the new language semantics and see for themselves what it is like. The 4 major changes that affect the way one codes in java as of JDK 7 are

  • Using underscores in numerals.
  • Diamond syntax used to work with collections + generics.
  • Using Strings in switch statements.
  • Making use of binary literals

Here is a short code sample that you can use to check the new features out. Use a plain text editor and your old friends javac and java, to test it out. IDEs will not support the new syntax and will most likely complain.

Sample JDK 7 Code:

public class Jdk7Tests {
 
    public static void main(String[] args) {
        Jdk7Tests jdk7Tests = new Jdk7Tests();
        jdk7Tests.integersWithUnderscores();
        jdk7Tests.stringSwitch();
        jdk7Tests.binaryLiteral();
        jdk7Tests.diamond();
    }
 
    private void integersWithUnderscores()
    {
        int i = 1_2;
        System.out.println(i);
        i*=10;
        System.out.println(i);
        int j=2_0;
        System.out.println(i-j);       
    }
 
    private void stringSwitch()
    {
        String key = "akey";
        switch (key)
        {
        case "":
        {
            System.out.println("Nothing");
            break;
        }
 
        case "akey":
        {
            System.out.println("Matched akey");
            break;
        }
        default:
        break;
        }
    }
 
    private void binaryLiteral()
    {
        byte aByte = (byte)0b001;
        short aShort = (short)0b010;
        System.out.println(aByte + " " + aShort);
    }
 
    private void diamond()
    {
        Set<String> set = new TreeSet<>();
        set.add("c");
        set.add("b");
        set.add("a");
        for (String val : set)
        {
            System.out.println(val);
        }
    }
}

Underscores and numerals:

Categories: java Tags: