mersenneforum.org  

Go Back   mersenneforum.org > Other Stuff > Archived Projects > 15k Search

 
 
Thread Tools
Old 2005-10-16, 08:06   #34
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

207710 Posts
Default

I only have a basic understanding of programming (and none of .net) but:
Would it work if I renamed other running llr/newpgen? (I assume they would still work.) Then you could kill all llr/newpgen and maybe rma wouldn't find them.
Flatlander is offline  
Old 2005-10-16, 09:29   #35
TTn
 

3·5·523 Posts
Default

Quote:
I only have a basic understanding of programming (and none of .net) but:
Would it work if I renamed other running llr/newpgen? (I assume they would still work.) Then you could kill all llr/newpgen and maybe rma wouldn't find them.
That may be an alternative(almost), since it shows up in the process list under a different name, but the Window Title will remain the same.
The problem with this, is that I also use FindWindow API elsewhere, to get the handle according to that title. darn it, API's work.
With a little adjustment, the idea may work though.

I came up with another idea too, which is promising.
I can get the path to where the executable resides/started , and match it with RMA's current path, but this also needs some reworking.
The other llr/newpgen would have to be in another folder ofcourse.
Stability could be an issue here,... not sure yet.

I am going to aim for version 0.9, to try this.
Version 0.8 works very well, with virtually no waste of cycles at all.
The auto-timer is exactly what the doctor ordered!

If you are interested in .NET, I have a large Library of valuable functions I can share. This would save a beginer literally months of effort.
I recommend getting the Standard version at your local book store, or online it's about 125$ to $150 for a licensed copy.
Under the(N.F.R.) EULA, I can redistribute a copy for test, demonstration, or evaluation purposes only, to see if you like it.

This goes for anyone interested, but you must buy it if you intend to use it continually.
 
Old 2005-10-16, 12:27   #36
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

31×67 Posts
Default

Thank you for your kind offer. I am tempted but I can't think of a single thing I could use it for! I downloaded VB Express beta and it's just sitting there taking up HD space. I also have Delphi 7 but have never used it.

As for rma:
If the name change thing works perhaps it would better for rma to auto-change the names of llr/newpgen in its folder. (But I think you've moved on from that.)

Pressing 'Cancel' in the colour change dialog still selects the colour.
Flatlander is offline  
Old 2005-10-17, 10:54   #37
TTn
 

3×13×157 Posts
Default

Quote:
Pressing 'Cancel' in the colour change dialog still selects the colour.
I fixed this.
I'm a bit torn, to say this is a MS bug.
Cancel means cancel, not revert to black. (not ok selected)
The documentation, and direct examples don't mention it.
Although when I finally figured it out(45 min) it was kind of simple after all.
The old VB6 does it too, as I remember, but I took for granted that .NET changed, or fixed this. At best they did forget to tell everyone.
 
Old 2005-10-17, 10:56   #38
TTn
 

617 Posts
Default RMA.NET version 0.8

RMA.NET 0.8 is now available!
http://groups.yahoo.com/group/primeform/
View the files section, as a member to download.
(Requirements: Microsoft .NET framework)
 
Old 2005-10-17, 17:25   #39
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

31·67 Posts
Default

Looking good!

I don't know how you have implemented the timer so maybe none of this applies but:
I've been playing with rma 0.8 with low 'n'. The timer seems to run for 'powers of 2' minutes. It works well for low n but I wondered if it could be optimised. If llr was running a typical >200,000 to say >500,000 as it encountered fft changes it would slow down by maybe 20%. It might trigger more sieving with doubling of the timer (= over sieving) when maybe 1.x times the old timer would suffice. It would then gradually adjust to the change rather than over-shooting, so to speak.
Perhaps "oldtimer*2" at the beginning then switch to "oldtimer*1.x". (But maybe an fft change would usually trigger a sieve with an unchanged timer anyway.)

There is one sound I think is impossible to get rid of; the one newpgen makes when it closes. But once rma has been running a while it should only be heard every few hours/days anyway.

Why does fixed n insist on k>200,000?

There is a unused bubble help-"Double click here..." under 'Click here for list of primes found.'

Please could you explain exactly what the RMA option does.
Flatlander is offline  
Old 2005-10-17, 20:44   #40
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

31×67 Posts
Default

Quote:
Originally Posted by Flatlander
Why does fixed n insist on k>200,000?
I mean n>200,000
Flatlander is offline  
Old 2005-10-17, 21:37   #41
TTn
 

165738 Posts
Default

Quote:
Why does fixed n insist on n>200,000?
Are you sure for version 0.8?
There had been a limit imposed for n 21701.
I'm using it right now at n 10000. fine.

Quote:
but I wondered if it could be optimised
I think an optimization of the timer would'nt make much difference.
It's only doubled if llr/newpgen are not completing at least one candidate.
I'm pretty sure this does not interfere much if at all.
A small cost for RMA's loop for larger n, but only in the beginning few loops.
Perhaps a small optimization here.


Quote:
There is one sound I think is impossible to get rid of; the one newpgen makes when it closes. But once rma has been running a while it should only be heard every few hours/days anyway.
Exactly!, That newpgen sound is hard to get rid off.
It doesn't like it's file to be messed with, so I have to shut off the user interface visually. I'll keep trying, but I cant compromise system sound.


Quote:
There is a unused bubble help-"Double click here..." under 'Click here for list of primes found.'
Good you found a forgetme bug. Ill tidy that up.
It was a fairly new edition, so it hadn't been updated. Thanks


Quote:
Please could you explain exactly what the RMA option does.
To get an idea of RMA the sequence, click on the link for,.... yup sequence
A full explanation of RMA's operation will take a bit longer to create.
So I'll repost the technical details.

Coming along alright for future versions.
 
Old 2005-10-17, 22:18   #42
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

31·67 Posts
Default

Quote:
Why does fixed n insist on n>200,000?
Maybe I dreamt it.

Obscure Bug Of The Year Award goes to...

RMA.NET

For switching of Number Lock on my keyboard every time it starts.
Flatlander is offline  
Old 2005-10-18, 02:28   #43
TTn
 

60258 Posts
Default

Oh, good I was almost worried.... 200,000


It's good to see the bugs get obscure. hehe

I should return the state of numer/scroll/caps lock, shouldn't I.
Thanks.


This is actually pretty nifty thing I came up with.
The function is called LiftKeys, and is triggered just before a virtual key/s is sent. Otherwise things can get fouled, ofcourse again this is not in the documentation. I'll make it toggle back and forth, as two seperate functions.
One for those three keys, and another for the rest.

Last fiddled with by TTn on 2005-10-18 at 02:38
 
Old 2005-10-19, 23:11   #44
TTn
 

3·599 Posts
Default

I've compiled a list needed revisions for RMA.NET version 0.9.

1. Multi-instance, try for all but do llr/newpgen.
2. LiftKeys & ReturnKeys for scroll/num/caps and user keys.
3. Restart on windows boot, and after 1 minute continue file if checked.
4. Restore sound file path, after disabling/enabling. Clean up user interface a bit.
5. Resize events for debug mode, and additional parameters. Also minimizing, & maximizing.
6. The nth prime display is short when n is larger than 999.
7. Load all colors, not just named colors.
8. Credit Robert Smith, Chris Caldwell, Jim and any others forgotten. Permission.
9. In help list all rma.ini parameters with the menu description.
10. Delete "screensaver on" checkbox.
11. Delete Current Time Zone, from icon's right click context menu.
12. Keep trying to mute NewPGen noise when stoping.
13. Look for any possible orphaned code, I left behind.

14. ?
 
 

Thread Tools


All times are UTC. The time now is 05:39.

Tue Aug 4 05:39:33 UTC 2020 up 18 days, 1:26, 0 users, load averages: 1.55, 1.29, 1.25

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.