Shutdown Apache James Mail Server - Java UtilityFebruary 15th, 2006 Overview
A Java class to shutdown Apache James Mail Server via TCP/IP. It shuts down Apache James Mail Server by passing shutdown command via simulated telnet session.
Case Study: Debugging WordPress Plugins (PHP code)June 19th, 2005 Today I received a rather angry comment from one of my feed readers and I quote: "Come on! There was absolutely no content in the feed. Not even a teaser.
OpenSTA, Load & Stress Testing Tool, Alternatives on LinuxMarch 3rd, 2007 In our effort to fully switchover to Linux as Desktop and Server environment, one of the biggest challenges is to find an alternative to OpenSTA, a popular and very capable open source distributed software testing tool for regression, load and stress testing. In other words OpenSTA is poor man's alternative to LoadRunner & Silk.
How To Run Ant FTP / Telnet / Rexec TaskNovember 2nd, 2005 Ant (java software) from Apache Foundation is a popular build tool (often used successfully with other release management tasks) which replaces make. "Apache Ant is a Java-based build tool.
J2SE 5: New wine in new bottle with old corkMarch 15th, 2005 J2SE stands for Java 2 Standard Edition. The 2 stands for version 2 of the platform.
How To Install Sun JVM (JDK 1.5.x) on Linux / Fedora Core in 5 Simple StepsDecember 26th, 2006 Install Sun's Java Virtual Machine ( J2SE(TM) Development Kit 5.0 Update 9 ) on Fedora Core / Linux platform in 5 simple steps. The procedure is geared for users having access to Linux box from ssh / telnet only as in a vpn / dedicated web hosting.
Java Quiz: Why StringBuilder Should be Used Instead of StringBuffer?August 23rd, 2008 First tell me what is the best way to concatenate large number of String objects? Is it a + b?
Most Java developers know not to use a + b (+ operator) because of huge performance problems, they use StringBuffer instead. In fact I did some tests in the past which confirms this folklore.
Java SE Goes Beta (Feature Complete). Download Now.February 17th, 2006 Java SE 6 Beta offers the first feature complete version of next major release of the Java SE platform. Sun expects to ship the final release of Java SE 6 in the fall of 2006.
Three Free Notable Java Software / APISeptember 8th, 2005 GMail API for Java
GMailer API for Java (g4j) is set of API that allows Java programmer to communicate to GMail. With G4J programmers can made Java based application that based on huge storage of GMail.
Java Popularity Statistics (from JavaOne 2008)May 7th, 2008 Sun revealed the following statistics about Java at JavaOne 2008:
1. 90% of Personal Computers on Internet have Java
2.
Gripe: Java blog aggregator: javablogs.comFebruary 16th, 2004 Few Gripes on Java.blogs:
After few days with java.blogs I realized I don't want a few things. For example I am not interested in knowing anything about IDEA releases.
Java EE 6 HighlightsMay 6th, 2008 The key features of Java EE 6 (Java Enterprise Edition version 6) are:
Modular Platform - Java EE 6 introduces profiles targeted for particular segment of users like web developers or mobile developers. Java Profiles allows you to select Java EE 6 features to be included in a profile.
Java Blogger's in IndiaDecember 11th, 2005 I want to create a list of Java blogger's in India or of Indian origin. If you are one please state so with your url in the comment below.
Top 10 Java LiesMarch 6th, 2006 Here are the top ten Java lies I have heard over the years. Feel free to add yours in the comments.
How To Pass Command Line Arguments To Ant Task / ScriptAugust 17th, 2008 Ant is a popular, high quality Java based build and deployment tool from Apache Foundation. You can invoke Java programs in ant using the java task.
April 17th, 2006 at 12:45 am
good
March 13th, 2008 at 10:59 pm
Hey,
I have a question re the above code. I attempted to modify this for use with a Cisco Catalyst 3500 swtich to return the the mac address tale using the “sh mac-address-table” command. However, I’m having a problem where, using the above code, i need to specify the number of lines to read back. But, depending on the amount of clients physically collected into the switch, the number varies. I attempted to write a while((line = in.readLine()) != null) { .. } block of code but tis fails where, once it reaches the end, it sits there as if expecting more. It never receives a NULL at the end.
In another attempt, i assumed the last line should contain a prompt. However, this also failed. It seems readLine() discards prompts but should replace them with NULL. But this doesn’t seem to be true for me.
My question is this, is there a way to adapt your code so that it can read an unknown number of lines and store the output?
Many Thanks,
A