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.→ Continue reading “Very Cool Free Mac OSX Font for Terminal Windows and Programming”

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 → Continue reading “How To Disable the DTD Warning for Ant build.xml Files in Eclipse”

Where to get a 64-bit Build of Mozilla Firefox for Linux

 

If you want to get a 64-bit build of Firefox for Linux, go to the following URL and browse to the most recent version, download and install.

http://releases.mozilla.org/pub/mozilla.org/firefox/releases/Continue reading “Where to get a 64-bit Build of Mozilla Firefox for Linux”

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

Continue reading “Checking Out an SVN Repository Over HTTP or HTTPS”

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:→ Continue reading “How To Install NoMachine’s NX Server and NX Client”

Solution for ‘Server configuration error. Cannot log in. Please contact your system administrator’ for NXServer/NXClient Session

I am setting up a vm running CentOS 6.2 and want to be able to connect to it via NXClient.

After doing the basic install and getting the key from the server I got the following error when trying to login on the client side:

Server configuration error. Cannot log in.  Please contact your system administrator

Looking at /var/log/messages on the server revealed the following (hostName is the name of the host for the machine, changed from the actual → Continue reading “Solution for ‘Server configuration error. Cannot log in. Please contact your system administrator’ for NXServer/NXClient Session”

Getting a Command Prompt as Administrator Under Windows Server 2008 and Probably Window 7

If you need to get a Windows command prompt as the Administrator do the following:

  • Click on ‘Start’
  • Type the following in the search/command input field:
  • runas /user:administrator cmd
Continue reading “Getting a Command Prompt as Administrator Under Windows Server 2008 and Probably Window 7”

Java Project Template

Attached to this post is a tar.gz file that contains a complete template with which you can build a Java project.  It includes the directory structure, sample ant build.xml, logging configs, and shell scripts (and the beginnings of some Windows scripts) to run the program:

java_project_template/README.txt
java_project_template/conf/
java_project_template/conf/log4j.properties
java_project_template/lib/
java_project_template/lib/log4j-1.2.16.jar
java_project_template/launch.sh
java_project_template/scripts/
java_project_template/scripts/run.sh
java_project_template/scripts/run.vbs
java_project_template/scripts/run.bat
java_project_template/src/
java_project_template/src/com/
java_project_template/src/com/ryanchapin/
java_project_template/src/com/ryanchapin/samples/
java_project_template/src/com/ryanchapin/samples/java/
java_project_template/src/com/ryanchapin/samples/java/Example.java

The ant build file will create a build/classes directory into which all of the Java .class files are compiled.  → Continue reading “Java Project Template”

Starting a Process as a Non Root User on Startup under Linux

The following is a quick howto for when you want to fire up a process as a non-root user on boot under Linux:

Create a script, typically under /usr/bin with something similar to the following:

#!/bin/bash

# invoke your process

/usr/local/process/someprocess

exit

Now, add an entry to /etc/rc.d/rc.local to invoke the command as the non-root user

su – [non-root-user] -c [path-to-shell-script]

Make sure that the exit command is the last thing in the shell script so that you will exit → Continue reading “Starting a Process as a Non Root User on Startup under Linux”

Adding JBoss EJB3 Libraries/JBoss Runtime to the Build Path in Eclipse

When developing JavaEE applications in Eclipse it is more or less necessary to have all of the JavaEE libraries on the build path.

To do so, do the following:

  • Unpack the version of the JavaEE application server that you are using.  In this case it is JBoss 6.0.0.Final.
  • Run the ‘Add a Server’ wizard under the JavaEE perspective’s Server tab.
  • Add the Server Runtime to the build path/libraries:
  • Right-click on your project and select ‘Build Path/Configure Build Path’
  • Click on
Continue reading “Adding JBoss EJB3 Libraries/JBoss Runtime to the Build Path in Eclipse”