Ready Reckoner Area

KSMarksPsych
KSMarksPsych
Moderator
Joined: 15 Oct 05
Posts: 2702
Credit: 4090227
RAC: 0

RE: RE: However, I can't

Message 79439 in response to message 79432

Quote:
Quote:
However, I can't seem to load data into it. There's no sample file in this one. And nothing shows up in the RR when I try to load in one of the files from Gary's script (even after choosing all files).

Could you try a keyboard only cut-n-paste into the 'Data Entry' tab text area?

Cut/Paste worked fine. I was able to see if the data were valid and then view the plots.

This was printed out in the console. I don't know what triggered it though.

[kathryn@Galaxy dist]$ java -jar ReadyReckonerV8Beta1.jar
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at readyreckonerv8beta1.ReadyReckonerV8Beta1View$19.valueChanged(ReadyReckonerV8Beta1View.java:907)
at javax.swing.JTree.fireValueChanged(Unknown Source)
at javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.removeSelectionPaths(Unknown Source)
at javax.swing.JTree.removeDescendantSelectedPaths(Unknown Source)
at javax.swing.JTree.setExpandedState(Unknown Source)
at javax.swing.JTree.collapsePath(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Kathryn :o)

Einstein@Home Moderator

Mike Hewson
Mike Hewson
Moderator
Joined: 1 Dec 05
Posts: 6534
Credit: 284730859
RAC: 105773

RE: Yeah, Fedora 7. I have

Message 79440 in response to message 79438

Quote:

Yeah, Fedora 7.

I have no idea what version of Java, but it's pretty old. Like last summer old. I had so much trouble getting it to work in the first place I'm a bit gun-shy on trying to update it.

If someone can tell me how to find the version, I'm happy to look.


Oh dear, I just found this page which begins:

Quote:
For legal reasons Sun’s Java is not included with Fedora 7 yet. However, with a bit of effort you can install it in a sane way ....

This does not auger well ..... :-(

Try again when I ramp back to 5 ( later today I'll do a rebuild ).

Cheers, Mike.

( edit ) At a glance it looks like they left out the step that says 'divide by the number you first thought of' ......

I have made this letter longer than usual because I lack the time to make it shorter ...

... and my other CPU is a Ryzen 5950X :-) Blaise Pascal

Mike Hewson
Mike Hewson
Moderator
Joined: 1 Dec 05
Posts: 6534
Credit: 284730859
RAC: 105773

RE: Cut/Paste worked fine.

Message 79441 in response to message 79439

Quote:

Cut/Paste worked fine. I was able to see if the data were valid and then view the plots.

This was printed out in the console. I don't know what triggered it though.

[kathryn@Galaxy dist]$ java -jar ReadyReckonerV8Beta1.jar
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at .......
..... java.awt.EventDispatchThread.run(Unknown Source)


Thanks Kath, I'll look at that ( at a glance it is, allegedly, nowhere near code that ought generate that type of error ..... hmmmm )

Cheers, Mike.

I have made this letter longer than usual because I lack the time to make it shorter ...

... and my other CPU is a Ryzen 5950X :-) Blaise Pascal

KSMarksPsych
KSMarksPsych
Moderator
Joined: 15 Oct 05
Posts: 2702
Credit: 4090227
RAC: 0

RE: RE: Yeah, Fedora

Message 79442 in response to message 79440

Quote:
Quote:

Yeah, Fedora 7.

I have no idea what version of Java, but it's pretty old. Like last summer old. I had so much trouble getting it to work in the first place I'm a bit gun-shy on trying to update it.

If someone can tell me how to find the version, I'm happy to look.


Oh dear, I just found this page which begins:

Quote:
For legal reasons Sun’s Java is not included with Fedora 7 yet. However, with a bit of effort you can install it in a sane way ....

This does not auger well ..... :-(

Try again when I ramp back to 5 ( later today I'll do a rebuild ).

Cheers, Mike.

( edit ) At a glance it looks like they left out the step that says 'divide by the number you first thought of' ......

LOL

[kathryn@Galaxy ~]$ java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Server VM (build 1.6.0_02-b05, mixed mode)

I didn't do any of that rigmarole with compiling (it probably would have sent me to outer space at the time). This is basically what I did.

Kathryn :o)

Einstein@Home Moderator

Mike Hewson
Mike Hewson
Moderator
Joined: 1 Dec 05
Posts: 6534
Credit: 284730859
RAC: 105773

RE: LOL [kathryn@Galaxy

Message 79443 in response to message 79442

Quote:

LOL

[kathryn@Galaxy ~]$ java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Server VM (build 1.6.0_02-b05, mixed mode)

I didn't do any of that rigmarole with compiling (it probably would have sent me to outer space at the time). This is basically what I did.


Now I've worked out that one/we can use 1.6 ( or 6 if you like ) - but so long as I don't use/tickle the newer features ( ie. the set of things that's in 6 but not 5 ). So don't get tense about your Fedora ( yet .... )

As for the 'NullPointerException' you've found - that was my error. One trick with this GUI programming is that it is not linear/sequential, users can/will click buttons etc in any old order. So you've un-earthed a class of pre-conditions I hadn't considered, and they don't announce themselves linearly either ..... ;-)

[ Assume nothing .... ]

[ How could you not go into outer space with a moniker like kathryn@Galaxy? ]

Now working on the definitive RR8 .... thanks for your help!

Cheers, Mike.

I have made this letter longer than usual because I lack the time to make it shorter ...

... and my other CPU is a Ryzen 5950X :-) Blaise Pascal

KSMarksPsych
KSMarksPsych
Moderator
Joined: 15 Oct 05
Posts: 2702
Credit: 4090227
RAC: 0

RE: RE: LOL [kathryn@Gal

Message 79444 in response to message 79443

Quote:
Quote:

LOL

[kathryn@Galaxy ~]$ java -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Server VM (build 1.6.0_02-b05, mixed mode)

I didn't do any of that rigmarole with compiling (it probably would have sent me to outer space at the time). This is basically what I did.


Now I've worked out that one/we can use 1.6 ( or 6 if you like ) - but so long as I don't use/tickle the newer features ( ie. the set of things that's in 6 but not 5 ). So don't get tense about your Fedora ( yet .... )

Yeah. Sounds good. I'm not going to get worked up about it. But I should probably investigate how to get Java updated one of these days.

Quote:
As for the 'NullPointerException' you've found - that was my error. One trick with this GUI programming is that it is not linear/sequential, users can/will click buttons etc in any old order. So you've un-earthed a class of pre-conditions I hadn't considered, and they don't announce themselves linearly either ..... ;-)

LOL.

That would have been me clicking around in mass confusion trying to figure out if it was me being an idiot.

Quote:
[ Assume nothing .... ]

Especially about my Linux skills.

Quote:
[ How could you not go into outer space with a moniker like kathryn@Galaxy? ]

LOL. My network naming scheme is Star Trek ship classes. So I have Ambassador, Galaxy and Nebula. The router is Runabout. Now I just need more computers :-)

Quote:
Now working on the definitive RR8 .... thanks for your help!

No problem. Thanks for coding this.

Kathryn :o)

Einstein@Home Moderator

Winterknight
Winterknight
Joined: 4 Jun 05
Posts: 1222
Credit: 312426253
RAC: 649262

Though you might like to be

Though you might like to be informed that the latest Windows version of Firefox, 2.0.0.14, has been released to fix "Crash in JavaScript garbage collector"

Mike Hewson
Mike Hewson
Moderator
Joined: 1 Dec 05
Posts: 6534
Credit: 284730859
RAC: 105773

RE: Though you might like

Message 79446 in response to message 79445

Quote:
Though you might like to be informed that the latest Windows version of Firefox, 2.0.0.14, has been released to fix "Crash in JavaScript garbage collector"


Thanks, but I've moved on from Javascript ( for better or worse.... )

Now I'll finally throw out Ready Reckoner 8.0 for you all to have a bash at it. I could keep polishing forever, specifically I haven't done a help file ( I will! ) so for the moment you'll have to tolerate a readmefirst.txt file.

Quote:

Cautionary Tale
Q: When is a zero not a zero?
A: When it's not equal to another zero!

The Java 'equals' function when applied to certain floating point primitives will, in effect, first compare the signs of the two operands. If the signs are unequal then the numbers must be different, right? Well, no.

In Java a zero can be represented both as -0.0 and as +0.0. A bit-wise comparison of whatever their binary representation is will find them unequal.

So if you, implicitly or otherwise, rely on a method that performs said bitwise comparison - then doom awaits you!!

Please enjoy!!

Cheers, Mike.

[edit] Oh, and the quoted reason for allowing -0.0 and +0.0 to be viewed as distinct when 'equals' is used is apparently : to enable the keys of key/value pairs of hash tables to sort lexically ( ie. +0.0 before -0.0 ). Hmmmmm ....... :-(

I have made this letter longer than usual because I lack the time to make it shorter ...

... and my other CPU is a Ryzen 5950X :-) Blaise Pascal

KSMarksPsych
KSMarksPsych
Moderator
Joined: 15 Oct 05
Posts: 2702
Credit: 4090227
RAC: 0

RE: Now I'll finally throw

Message 79447 in response to message 79446

Quote:

Now I'll finally throw out Ready Reckoner 8.0 for you all to have a bash at it. I could keep polishing forever, specifically I haven't done a help file ( I will! ) so for the moment you'll have to tolerate a readmefirst.txt file.

Works fine for me Mike. No errors or warnings in the shell. Nice job. I'll have to fool with it more when I have some time. I just used the test data you included. But I'll give it a whirl with my host data.

Kathryn :o)

Einstein@Home Moderator

Mike Hewson
Mike Hewson
Moderator
Joined: 1 Dec 05
Posts: 6534
Credit: 284730859
RAC: 105773

Ok, how's it goin? Any

Ok, how's it goin?

Any problemo's ? ... :-)

Cheers, Mike.

I have made this letter longer than usual because I lack the time to make it shorter ...

... and my other CPU is a Ryzen 5950X :-) Blaise Pascal

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.