![]() |
|
|
#24 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
Oh whoops, the website still says 0.1. What were the changes for 0.2?
Also, a few more changes: Code:
# Your PrimeNet password. # Not changed, just showing context for below my $PNPassword = " "; # Your time zone offest from UTC. (Only supports hour offsets.) my $TimeZone = -6; # Default should be zero, but I'm UTC-6 :) Code:
sub UTCString {
my ($sec,$min,$hour,$mday,$mon,$year) = gmtime(time);
$hour += $TimeZone;
if($hour < 0 ) {
$mday --;
$hour += 24;
} elsif( $hour > 23 ) {
$mday ++;
$hour -= 24;
}
return sprintf("%04d-%02d-%02d_%02d:%02d.%02d", $year+1900, $mon+1, $mday, $hour, $min, $sec);
}
Edit: Nope, but hopefully you get the idea. I'll try and see where Google can get me. Edit2: The elsif syntax is fixed, and now it does work for me, at least without having to change the date it worked. It just printed Code:
2012-03-01_15:01.41 INFO: Submission spider starting... 2012-03-01_15:01.41 WARN: No results.txt file exists or it is empty. Exiting. Last fiddled with by Dubslow on 2012-03-01 at 21:07 Reason: found one bug: sed -i -e s/else if/elsif/, reporting success |
|
|
|
|
|
#25 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
230028 Posts |
Quote:
Please keep in mind the entire spider was written in two hours. |
|
|
|
|
|
|
#26 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
722110 Posts |
I wasn't saying it was stupid, just something to fix.
And that's why we're here -- and that's why Stallman made the GPL -- so you (hopefully) don't have to spend much more than the time you've already put into it
|
|
|
|
|
|
#27 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
2×5×7×139 Posts |
I know you weren't saying it was stupid. I was. And it is...
The TimeZone delta should scaled to seconds, and then be applied to the result of the time() function before being passed into the gmtime() function. What I did doesn't always work. |
|
|
|
|
|
#28 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
Regarding the submission spider and logging in:
Code:
sub LogIntoPrimeNet {
my ($UN, $PW) = @_;
my ($Success, $Text);
Log(1, "Attempting to log into PrimeNet. This can take a little while...");
if (TalkToPrimeNet("account/\?user_login=${UN}&user_password=${PW}&B1=GO")) {
($Success, $Text) = TalkToPrimeNet("manual_result/");
if ($Success) {
if ($Text =~ /${UN} logged-in/) {
Log(1, "Successfully logged into PrimeNet.");
} else {
Log(3, "Didn't find our username in the response; not logged in. Exiting.");
Log(0, "Response was:\n${Text}\n\n.");
$Success = 0;
}
} else {
Log(3, "PrimeNet returned a bad response; not logged in. Exiting.");
Log(0, "Response was:\n${Text}\n\n.");
}
}
return $Success;
}
) that being a good coder means catching all the errors, not just getting the 'usual' case right; more than half of the spider is error catching. It's a thorough(ly awesome) piece of code.Edit: To beat a dead horse, I just changed my password in the file, and it told me this: Code:
2012-03-02_00:03.05 INFO: Submission spider starting... 2012-03-02_00:03.05 INFO: Attempting to log into PrimeNet. This can take a little while... 2012-03-02_00:03.10 ERR : Didn't find our username in the response; not logged in. Exiting. 2012-03-02_00:03.10 INFO: Spider has finished. Exiting. Last fiddled with by Dubslow on 2012-03-02 at 06:04 |
|
|
|
|
|
#29 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
@James (not chalsall):
The submit spider is really nice, but it causes a slight issue with your site: http://mersenne-aries.sili.net/expon...tails=49820581 When it's submitted by spidey, but I upload the expo after your site observes it, then it's in twice, once as unknown and once by me. |
|
|
|
|
|
#30 |
|
Oct 2011
7×97 Posts |
I've noticed on the submission spider that I don't get proper credit for factors found. The server thinks they are P-1 results instead of TF. Is there a way to remedy this?
|
|
|
|
|
|
#31 | |
|
"Jerry"
Nov 2011
Vancouver, WA
1,123 Posts |
Quote:
As far as I know (now), PrimeNet gives P-1 credit for almost all mfakt* work because it doesn't understand the submission. James said PrimeNet will give F credit for smaller factors, but when the factor is outside what PrimeNet expects for a TF exponent, it gives PM1. I had one show up correctly last night and thought it was fixed, but it's not... the factor was small enough for F credit. See here and here (any may other places for more info) Last fiddled with by flashjh on 2012-03-03 at 05:53 |
|
|
|
|
|
|
#32 | |
|
Oct 2011
7·97 Posts |
Quote:
|
|
|
|
|
|
|
#33 | |
|
"Jerry"
Nov 2011
Vancouver, WA
112310 Posts |
Quote:
|
|
|
|
|
![]() |
| 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 |