mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > PrimeNet > GPU to 72

Reply
 
Thread Tools
Old 2012-05-07, 16:09   #67
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

11·311 Posts
Default

Quote:
Originally Posted by Dubslow View Post
So... the reason I did my append hack was so that I could submit results to Mersenne-aries after PrimeNet, but it just now occurred to me, why not automate that too?
I actually came to this thread to see if there was any interest in that.

The results parser was currently hardcoded to use POST specifically, but it would be trivial to let it accept GET results as well (subject, of course, to the 4kB GET limit). In fact, I have done so.

Please let me know if there's anything you'd like me to do on my side to make automated submission easier.
James Heinrich is offline   Reply With Quote
Old 2012-05-07, 16:20   #68
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

722110 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
I actually came to this thread to see if there was any interest in that.

The results parser was currently hardcoded to use POST specifically, but it would be trivial to let it accept GET results as well (subject, of course, to the 4kB GET limit). In fact, I have done so.

Please let me know if there's anything you'd like me to do on my side to make automated submission easier.
In Python, POST is actually just as easy as GET, in fact doing GET is more or less just hacking the POST data onto the url. Uploading a file via POST is what's harder

As for easiness, perhaps a list of all the html that can be produced when a result is uploaded? Or perhaps even a super-simplified page to be loaded with a specific User-Agent. That would be fun and easy

Last fiddled with by Dubslow on 2012-05-07 at 16:22
Dubslow is offline   Reply With Quote
Old 2012-05-07, 17:03   #69
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

D5D16 Posts
Default

Quote:
Originally Posted by Dubslow View Post
Or perhaps even a super-simplified page to be loaded with a specific User-Agent. That would be fun and easy
Easy for who?

But yes, that is exactly what I was thinking of. I can make a simplified text-only submission page, I just need to know what data is useful to you. Since it would be for automated submissions, I guess all you really care about is success / failure, either globally or specific lines.

Please provide me a sample of what you'd like to see as the output of the page after you POST some data to it (including success and failure, possibly including things like number of lines processed, result types, factor count, GHz-days, unrecognized lines). Include whatever processing-complete check you'd like to see at the end of the output.
James Heinrich is offline   Reply With Quote
Old 2012-05-07, 17:06   #70
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

160658 Posts
Default

I think I'll wait for chalsall to answer, 'cause I don't really feel like porting his thingy to Python. But, we're fooding; if he hasn't replied by half an hour from now, I'll elaborate.
Dubslow is offline   Reply With Quote
Old 2012-05-07, 17:12   #71
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

976710 Posts
Default

Quote:
Originally Posted by Dubslow View Post
I think I'll wait for chalsall to answer, 'cause I don't really feel like porting his thingy to Python. But, we're fooding; if he hasn't replied by half an hour from now, I'll elaborate.
Probably the easiest thing to do is plan for a single submission per request (does that make sense?), and simply return a success/failure code.

And in Perl doing POSTs is almost as easy as GETs. But since the Spider already deals with just GETs for PrimeNet, why don't we stick with that for now?

Edit: I must make an observation (one of my favorites): "Like a poem, software is never finished; only abandoned..."

Last fiddled with by chalsall on 2012-05-07 at 17:14
chalsall is offline   Reply With Quote
Old 2012-06-16, 19:40   #72
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

23·271 Posts
Default

Reading though several forum posts it seems setting this up in Windows is hard.... Actually though it is very easy, if you know what to do.
kracker is offline   Reply With Quote
Old 2012-06-16, 21:05   #73
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

9,767 Posts
Default

Quote:
Originally Posted by kracker View Post
Reading though several forum posts it seems setting this up in Windows is hard.... Actually though it is very easy, if you know what to do.
Care to write it up? It would be nice having some guiding language on the site. (And I don't do Windows.)
chalsall is offline   Reply With Quote
Old 2012-06-16, 21:42   #74
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

D5D16 Posts
Default

Quote:
Originally Posted by chalsall View Post
Care to write it up? (And I don't do Windows.)
Please, I would also appreciate it. I'm sure I could figure it out, I've just never bothered. If it was written in PHP I would've been running it long ago, but I've never looked into how to run Perl on Windows. A brief guide would be helpful to the lazy.

Last fiddled with by James Heinrich on 2012-06-16 at 21:42
James Heinrich is offline   Reply With Quote
Old 2012-06-16, 23:12   #75
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

23·271 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
Please, I would also appreciate it. I'm sure I could figure it out, I've just never bothered. If it was written in PHP I would've been running it long ago, but I've never looked into how to run Perl on Windows. A brief guide would be helpful to the lazy.
Sure, I'll be happy to... in a few hours (maybe) :( Kinda on the run now, can't do it now.

(My possible useless post.)
kracker is offline   Reply With Quote
Old 2012-06-17, 02:09   #76
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

5×1,931 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
Please, I would also appreciate it. I'm sure I could figure it out, I've just never bothered. If it was written in PHP I would've been running it long ago, but I've never looked into how to run Perl on Windows. A brief guide would be helpful to the lazy.
[offtopic]running perl on windoze is easy, dld srawberry or active perl from their momma sites, put it somewhere in your comp, add a path to it. Try it with yoyo's script or with pari's help. If it runs with them, it runs with anything.
[/offtopic]
LaurV is online now   Reply With Quote
Old 2012-06-17, 02:53   #77
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

87816 Posts
Default

Quote:
Originally Posted by LaurV View Post
[offtopic]running perl on windoze is easy, dld srawberry or active perl from their momma sites, put it somewhere in your comp, add a path to it. Try it with yoyo's script or with pari's help. If it runs with them, it runs with anything.
[/offtopic]
You're right, I use strawberry perl, just install, reboot, edit the submission script to your needs, and run :P (it sets associations, if you use it that way.)

Last fiddled with by kracker on 2012-06-17 at 02:53
kracker is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
GPU to 72 spider poaching exponents? ixfd64 GPU to 72 2 2014-07-27 20:38
It Seems The Great Spider ... Dubslow Forum Feedback 13 2012-06-01 13:39
Automatic temperature control TObject Software 13 2012-04-27 19:33
Went from 8 workers to 4 workers on v26.6 upgrade dmoran Software 13 2011-05-23 12:36
Manual submission of automatic assignment result tichy PrimeNet 4 2010-12-17 09:57

All times are UTC. The time now is 10:22.


Mon Aug 2 10:22:42 UTC 2021 up 10 days, 4:51, 0 users, load averages: 1.18, 1.05, 1.10

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.