Welcome to my website. I am always posting links to photo albums, art, technology and other creations. Everything that you will see on my numerous personal sites is powered by the formVistaTM Website Management Engine.

icon.linkedin.jpgicon.twitter.jpg

  • Subscribe to this RSS Feed
  • Simple Network Speed Command Line Test for Linux
    02/21/2011 2:02PM

    Let's say that all that you have access to is the command line on a Linux box and you want to know what the network throughput is.? If you have another Linux box you can use netcat to do a quick test:

    On box a:? Set up netcat to listen to a given port:

    nc -l 12345 > /dev/null

    Fire up netcat to listen on port 12345 and to dump the output to /dev/null.

    On box b:? Send data via netcat to the listening machine:

    dd if=/dev/zero bs=16000 count=50000 | nc -v boxa 12345

    This will use dd to generate a 'file' with 50000 blocks that are 16000 bytes in size and invoke netcat in verbose mode.? When invoked you will get something like:

    Connection to boxa 12345 port [tcp/*] succeeded!
    50000+0 records in
    50000+0 records out
    800000000 bytes (800 MB) copied, 6.85282 seconds, 117 MB/s


  • Installing Java SE Source Files and Linking to Eclipse on CentOS 5
    02/13/2011 10:19PM

    ?When I first set up a developoment VM with CentOS I must have forgotten to install the Java source because I could not navigate to Java SE method declarations in my Eclipse IDE.

    To have access to the Java source I did the following:

    • yum install java-1.6.0-openjdk-src
    • A src.zip file was placed in:
    • /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/src.zip
    I created a src dir in the aforementioned containing dir and unpacked the zip I then linked to the source from Eclipse by: Right-clicking on some java.lang.* method in a class and selecting "view source" Originally it presented me with a view of the .class file Clicking on the Add Source button, I navigated to the /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/src/ dir
  • Installing JBoss AS 6 Tools in Eclipse Helios
    02/13/2011 10:11PM
    • Go to Help > Install New Software
    • Set Work with to http://download.jboss.org/jbosstools/updates/development/
    • In the results, unfold "All JBoss Tools" and check JBoss AS Tools.? When last I checked the description indicates only 4.x and 5.x for JBoss, but it does include JBoss AS 6 Tools
    • Next, etc, Finish.
    When I then ran through the Eclipse add server wizard the 6.0 version of JBoss AS was available.

  • Including libraries in WAR files in Eclipse
    02/11/2011 10:32AM

    By default, the newer versions of Eclipse do not include the libraries that you add to the build path in .war files.? There are three approaches to solving this problem:

    • Declare your libraries/jar files to be module dependencies for your war file; essentially forcing Eclipse fo treat the lib the same way it would a dependent project.? I found a web page describing how to do this for an older version of Eclipse and couldn't readily figure out how to do it with Helios.? This one is an excersize for the reader.
    • Add the library to your directory of shared libraries on your app server.
    • Either copy, or symlink the jar files directly into your WEB-INF/lib directory on your file system and then do a refresh for your project in Eclipse.?
  • Disabling Autodeploy in Eclipse for Web and JavaEE Projects
    02/11/2011 10:10AM

    In some cases it is helpful to have your Java project automatically built and deployed for you by Eclipse.? For me, when working on a dynamic web or JavaEE project I'd much rather run it on the server through the IDE manually, as I tend to save often and I end up having to wait for a previous deployment to finish on a regular basis.

    To disable the feature:

    • Go to: Window/Show View/Servers
    • Double-click on the server that you associated with Eclipse
    • On the right-hand side, should be a collapsed menu titled "Publishing"
    • Expand the menu and you will see the radio buttons with the various auto-deploy options.

    You will need to shutdown the server before you can save the change.

Advanced Search

Categories

Archives