general modulo-question

2003-07-07 Thread Christian Kruggel
Hi! I try to do some basic programming and got stuck with the modulo-operator an the problem how to shift any number n into the interval [b;e] with b < 0 and e > 0. My first approach was to calculate the spread of [b;e] by e - b and then to divide n by this spread. Unfortunately this just works f

General Profiling-Questions

2003-06-14 Thread Christian Kruggel
Hi! I introduced myself asking clumsy questions so I don't fear to carry on. My question adresses general understandig of java's profiling-mechanism. For I don't know if blackdown implements it I might end up bothering again. I read a few papers on profiling using sun's java-vm. It is said that t

Streaming any of /dev/* with java

2003-06-12 Thread Christian Kruggel
Hi! I wonder if anybody else ever tried to connect any of the linux-system-devices with java, using one of javas streams. Just befor I start wasting my time - does this attempt make any sense? Let's say I would like to send something to /dev/eth0 - is this device or is any other connectable by a

NullPointer in constructor?!

2002-03-09 Thread Christian Kruggel
Excuse me for mailing off topic but i promise an amusing silly question. Why do some constructors throw NullPointers while others don't? I wrote several constructors that called methods to initalize the object. Well, one of these constructors now throws a NullPointers from without any linenumb

ofmipd-smtp-resources?

2000-08-11 Thread Christian Kruggel
Hi there! I try to write a little Java-SMTP-Client but fail to authenticate to an server that identifies itself as "ofmipd.local". My search for documents that deal with this kind of server failed, I just found one poor hint, that it's NOT a SMTP-Server. Any Java-Mail-Client-Wizzard out there who

mailto-protocol and it´s result: UnknownHostExceptionmailhost or ConnectionRefused

1999-10-26 Thread Christian Kruggel
Hi Juergen! A few days ago you answered my question concerning java´s mailto-protocol and the exception produced by the appended source: java.net.UnknownHostException: mailhost Juergen> Sounds like a setup problem. Can you ping mailhost? No. Another nice GUY suggested to mention the localho