V Bose

Ranch Hand
+ Follow
since Jul 10, 2003
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 V Bose



Line 1 works but Line 2 does not. (when using one or the other...)
Any suggestions why ?
11 years ago
Whats the general technique to login to a website from within a java progam?
11 years ago
Has anyone recently have had the experience of having their H1B transferred recently AND having the visa stamped on their passport, from Canada?
Is there a long wait time to get an appointment at the Canadian US Embassy ?
Is there a good FAQ list site, for Canadian/Mexico H1B transfer visa stamping?

Thanks
11 years ago

Originally posted by Ernest Friedman-Hill:
Object is the ultimate superclass of all other classes; therefore you can pass anything at all: a String describing the change, a special class you've defined for this purpose, an array of Lists of Maps full of interesting data... anything.



You are right. I was thinking about implementation specific issues, such as if one were to pass a List of states that changed, then the Observer would have to parse the list and figure out what changed etc...a little more expensive than I had thought initially...

Thanks
11 years ago
The interface java.util.Observer has a method


This is called when a state change occurs in the Observable.
I came across this
Sun Tutorial, but am still unclear as to how do you pass the entire state information using just one Object variable.

Has anyone come across a similar situation...?

Thanks
11 years ago
Was looking to replace my aging presario laptop, and was looking closely at the new MacBook. Has anyone in this forum, made the switch from a PC to a Mac, recently...
12 years ago
I'm trying to use the class to read from a collection of s.

Assuming I have two seperate InputStreams wrapping two seperate files that look something like -

File A:
Line 1 : Apple
Line 2 : Oranges<EOF>

File B:
Line 1 : Pears
Line 2 : Grapes<EOF>

When I try to concatenate these two streams and read them using java.io.SequenceInputStream, Line 1: Pears is never read.(Assuming the concatenation ordering is File A, File B) But if I change File A to this -
File A:
Line 1 : Apple
Line 2 : Oranges
<EOF>

(there is a <CR> after Oranges this time), then it works fine. Is this something to do with how <EOF>s are encoded in Windows?
12 years ago
Pressing "Enter" while editing a .java file in eclipse, causes the cursor to jump to the same indentation level as the previous line. How do I disable this ?
How is Retrospect for backing up data? Are there any good opensource ones available ?
12 years ago
Does anyone have some feedback on the Roomba vaccum ? Trying to find out if it really does the job well...
12 years ago
Is there a convention for naming methods to set a property of a GUI component viz. enabled/disable or visible,not visible ?
Like say for a JButton called button1...the method would be button1SetEnabled(boolean value) or setEnabledbutton1(boolean value) or something else ? I'm guessing there must be a standard for naming these methods...
Lets say I have an XML file of the format


If I parse the above with a SAXParser and override DefaultHandlers startElement and endElement methods, how do I differentiate between the 2 'nSamples' tokens from each other. What would be an alternate parsing technique that would give me the nested level info of each tag?
Is anyone aware of an Open Source library for 2D/3D plotting of data in Java. (Something like The Colt Distribution for technical computing in java.)
[ October 12, 2005: Message edited by: V Bose ]
12 years ago
With so many preferences in the Eclipse Editor, I am not sure if this is the intended behaviour - When I click on one of the methods or fields, in the outline view, I see ONLY that method/field and nothing else in the editor window. If I do a Find for instance, its scope is limited to that method/field I've selected in the outline view. I know it was not doing this earlier. Where do I go to remove this option/preference ?
Is there a way I can iterate through the contents of a directory without having to use listFiles ?

I am trying to avoid having to store the file names in memory, if there is going to be just way too many files...
12 years ago