Frank Spychalski

Greenhorn
+ Follow
since Mar 19, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Frank Spychalski

This is not really a Rails specific question.

Neal Gafter blogs about adding closures to java. Which Ruby (or any other language) features would you like to add to the Java language. Or do you think it is possible to create a Framework with the power and flexibility of Rails with Java without any changes?
17 years ago
Hi,

a) I really like the concept of Ruby's open classes which allows you to modify build-in classes. Is something similar possible in Groovy or do you plan adding such a feature?

b) Do you think the startup time of the VM is a problem for a scripting language?
17 years ago
Hi Joshua,

as I wrote in my blog post, I wrote a wrapper for fping to get around this problem. The reason I used fping was that the output was pretty easy to parse and you could ping multiple targets with a single call.

You can download the jar: http://software.net.schlund.de/dist/UTIL/

Example:

final FPing fp = new SingleFPing("/usr/sbin/fping");
for (int i = 0; i < args.length; i++) {
fp.addHost(args[i]);
}
System.out.println(fp.ping());

This code is not beautiful but it works and is used for some time now in the network monitoring system of a pretty big ISP (my employer)...

bye
Frank