Gabe Herbert

Greenhorn
+ Follow
since Apr 28, 2005
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 Gabe Herbert

I'm trying to figure out what what would enable two objects to qualify as "equal"...
When I create two Integer's they are equal, but when I create two of TPVEvent, which simply holds 3 variables, the objects do not equal!

Would someone explain this to me?

15 years ago
Once the process had been completed, how would one enable the newer version?
15 years ago

To try my hand at premature optimization I might experiment with eliminating the new Integer() from all the accesses, too.



I don't understand what you mean here. I'm guessing that you're talking about autoboxing, but that's just a guess. Could you please elucidate?

Gabe
15 years ago
Thank you, Ilja Preuss! Despite confusing you and everyone else with my lack of concision, you perfectly answered my question with
((TestObj)objMap.get(new Integer(1))).v1 = 43;

This is my first experiment with collections and I thought it didn't work because I forgot to put the whole thing in parentheses *blush*.

I'll work on the whole "talkin too much and sayin too little" thing...

Gabe

I'm not micro-optimizing, I'm just obnoxiously anal.
15 years ago
(I've reversed the order of my paragraphs to put the important stuff first. If my question doesn't make sense, reading further back in time may clarify)


The big question I have is wether there's a way to use a reference (ie objArray[0].v1 = 42) directly when using a map. I've unly came across:

as my way of actually "using" the objects referenced by my map. How can I directly use an object referenced by a TreeMap?

I'm working with a bunch of dynamically-created objects, and this has worked fine so far. I would, however, prefer to use a TreeMap instead of an array, so I can just iterate through the objects that exist, rather than iterating through thousands of array cells waiting to stumble on the ones I'm actually using.

To my understanding, I just created an array of TestObj references, referenced a new object via objArray[0], and returned the value of the v1 variable of the object referenced by objArray[0].



Consider the following:
15 years ago
I have a fairly old powerbook that can't quite take the Tiger upgrade that would alow me to use the 1.5 JVM. The linux lab at my school runs an open-source JVM caled blackdown, and I'm wondering if anyone's heard anything about running a third-party java 1.5 compatible JVM on OSX 10.3.x

thanks,
Gabe
[ February 07, 2006: Message edited by: Bear Bibeault ]
15 years ago
I need to make a simple applet that plays an audio file and generates events from percussive attacks which randomly draw shapes. Has anyone seen any source code that has even something like a simple VU meter that I might scrounge through? I've been looking a little bit at some of the stuff like javax.speech.recognition.RecognizerAudioEvent but I'm slow at learning from inside the middle of an api, and this seems to be the right sort of thing, but from a distant approach. Surely someone can point me to a tutorial to something that might meet my needs?

thanks!

Gabe Herbert
16 years ago
Is there some program that can churn through a java class or source, discovering all the connections between different classes and methods and visually display a flowchart? From what I hear this would be the opposite of netbeans (though I know nothing about it).
I occasionally take the time to manually map out these connections, of data types being sent and converted and returned, method invocations, and all that jazz. But then i thought, "This is a computer! I shouldn't have to do that!"

Anything?

Gabe
16 years ago
Thanks for the pointers, I've found a jcurses library that looks potentially promising.

Gabe
16 years ago
Is there a special name for apps that use a command-line, yet "graphical" interface? My thinking ranges from old DOS apps to modern things like vim, top, dselect, etc. Basically, the unique factor that I'm observing is that they aren't simply limited to drawing new lines of text. How do you place text at certain locations on the screen?

Gabe
16 years ago