Monthly Archives: October 2013

How to Monitor New Changes of Log File with Java

If you have a log file that you want to monitor the incremental changes, you can use the following simple code. Whatever new log entries written to the log will be quickly picked up and printed out to console. It does not interfere with the application that writes the log file. To test the code, you can use any text editor to append more entries to the end of log file (don’t forget to save it).

Posted in Software Development | Tagged , | 1 Response

How to Run Maven Based Java Application From Command Line

It’s pretty straight forward to run Maven based projects in NetBeans IDE. For some projects that involve console related capabilities, you have to run it from OS console. One example is projects that use the JANSI APIs for colorful console output (see my last post for a sample). If you run the code within IDE, you won’t see the colors as would in a console.

Posted in Software Development | Tagged , , , | 2 Responses

Writing Colorful Console Output in Java

Almost all of the Java console application I had seen were boring black background and white fonts on Windows. This can be changed using a small Java library called Jansi which is open sourced under Apache 2.0. The download link can be found at its project home. The source code is also available on Github here.

Posted in Software Development | Tagged , | 2 Responses

Synology NAS: Configure Static IP Addresses, Link Aggregation

As mentioned in early article on Jumbo frame, I bought a Synology Diskstation 1513+ NAS server and really like it. The NAS server comes with very rich features that I have just explored partially. One of my favorite features is its GUI which is Web based but feels like a desktop using the Ext Javascript framework. Besides basic functionalities, it also has appstore kind of extensibility. For example, you can install cloud storage to have your own dropbox without exposing your data on public cloud. I haven’t got time to explore all these yet, but will try them later.

Posted in Cloud Computing | Tagged , , | 1 Response

Parsing Command Line in Java

If you develop a command line tool, you would probably need to parse options and arguments. In Java, you can use Apache Commons CLI to handle the parsing. Since I don’t write much command line program, I don’t need these tools. While reading vCO API sample, I found one command line tool called args4j which is written by Kohsuke Kawaguchi who had created the famous Hudson/Jenkins server.

Posted in Software Development | Tagged , , | 2 Responses

How to Add Copyright Notice in JavaDoc

While using Netbeans IDE to generate Javadoc for a Maven project, I noticed the generated pages has a default copyright notice at the bottom of every page, say “Copyright 2013. All Rights Reserved.” Because it’s default, it does not show the name of copyright owner. To change it, I found it’s not really straight-forward, therefore it may be worthwhile to share it.

Posted in Software Development | Tagged , , , | 1 Response
  • NEED HELP?


    My company has created products like vSearch ("Super vCenter"), vijavaNG APIs, EAM APIs, ICE tool. We also help clients with virtualization and cloud computing on customized development, training. Should you, or someone you know, need these products and services, please feel free to contact me: steve __AT__ doublecloud.org.

    Me: Steve Jin, VMware vExpert who authored the VMware VI and vSphere SDK by Prentice Hall, and created the de factor open source vSphere Java API while working at VMware engineering. Companies like Cisco, EMC, NetApp, HP, Dell, VMware, are among the users of the API and other tools I developed for their products, internal IT orchestration, and test automation.