Exploring Java Build Systems

Recently I have started working on some projects where the use of Maven has been mandated.  However, since these projects are in the early stages it has got me doing some searches for alternative Java build systems.

I found a interesting article on the topic written by Jess Johnson entitled ‘Java Build Systems: A Sad State of Affairs’.  From there I found some other links to Java build systems and some other articles written on the topic.

I’ll come back to this article and update it as I do some more research and try out some of the other projects listed below.

A Quick and Easy Way to Lock Your Screen Under Mac OSX

If you want a quick way to lock your screen on your Mac do the following:

  • Go to System Preferences/Security & Privacy
  • Click on the checkbox next to “Require password … after sleep or screen save begins”
  • Select “immediately” in the dropdown within the aforementioned selection.

You will be asked to authenticate to make the change

Now you will be able to immediately lock your machine by pressing Control-Shift-Eject.

Very Cool Free Mac OSX Font for Terminal Windows and Programming

I have just recently started working on a Mac again and am in the process of getting it set up to do some development.

First thing was to tweak my Terminal preferences and I found a really good article about Mac fonts for programming (Top 10 Programming Fonts).  I agreed with the author of that post and went with Inconsolata.

How To Disable the DTD Warning for Ant build.xml Files in Eclipse

Eclipse (at least Juno) will complain that there is “No grammar constraints (DTD or XML Schema) referenced in the document.”, even though there is no DTD for Ant build.xml files (see here for Ant faq about DTD for build.xml files).

To surpress the warning in Eclipse add

<!DOCTYPE project>

After the <?xml . . . XML declaration tag

Checking Out an SVN Repository Over HTTP or HTTPS

To specify the proxy information for svn edit the servers file in the .subversion directory under Linux, or the Subversion directory under the user’s directory in Windows.

Add the following under the [global] section:

http-proxy-host = someurl.com
http-proxy-port = 80
http-proxy-username = uid
http-proxy-password = passwd
http-compression = no

How To Install NoMachine’s NX Server and NX Client

Following is a quick howto for installing the NoMachine free version of NXServer:

. Make sure that you have a DNS entry for the hostname of your NX Server machine or an entry in the server’s /etc/hosts file that points to it’s IP.

. rpm -i nxclient-3.5.0-7.x86_64.rpm
. rpm -i nxnode-3.5.0-7.x86_64.rpm
. rpm -i nxserver-3.5.0-9.x86_64.rpm

. copy stock config file to server.cfg:
        . # cd /usr/NX/etc
        . # cp server.cfg server.cfg_oem
        . # cp server-redhat.cfg.sample server.cfg

. edit config files:
        . /usr/NX/etc/server.cfg: ensure that the following values are set:
                . EnablePasswordDB = “0”
                . EnableStatistics = “0”
                . EnableNodeMonitoring = “0”
                . EnableUserProfile = “0”

        . /usr/NX/etc/node.cfg
                . EnableSensor = “0”

. generate SSH keys:
        . /usr/NX/bin/nxserver –keygen
        . use the key: /usr/NX/share/keys/default.id_dsa.key in the NX Client config when making a connection to your server