![]() |
|
|
#1 |
|
"Daniel Jackson"
May 2011
14285714285714285714
29716 Posts |
Why do I have a limit of 3000 IDs/Hour? I thought that was for unregistered users only, not registered users! My DB Name is Daniel if you want to know. Please fix that. I want to do Aliquot sequences and I don't want to be stuck doing half the sequence, then waiting an hour to post the rest! Please at least triple it!
![]() Also, Why can't I get the DB Help page (question mark link) to work when I exceed the limit? That page should work. The "Imprint" link works no matter what limit is exceeded (I found that out last month). Please! It makes it hard to use AliWin2 and Wget. Last fiddled with by Stargate38 on 2012-04-07 at 15:39 |
|
|
|
|
|
#2 | |
|
(loop (#_fork))
Feb 2006
Cambridge, England
641910 Posts |
Quote:
If you are doing trivial aliquot sequences such that the wait to deposit the results in the database is a perceptible fraction of the compute time, I would accuse you of polluting the database in exactly the way that the limit on IDs per hour was intended to avoid, and strongly suggest that you set your computers on meatier targets. |
|
|
|
|
|
|
#3 | |||
|
"Frank <^>"
Dec 2004
CDP Janesville
2×1,061 Posts |
Quote:
Quote:
Quote:
I also have an idea that if you're doing a lot of work on sequences starting in the range >1M, resulting in lots of new lines with factors in the mid-size range, you're going to run into this issue more than someone who turns in something more along the lines of a couple of hundred lines with lots of already-existing small to medium primes and just a few large new primes...... |
|||
|
|
|
|
|
#4 |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
17·251 Posts |
Nitpicking: X lines != X IDs. X previously-unknown primes would be closer to X IDs (assuming that in a batch of submissions the DB doesn't create IDs for composites; otherwise it gets more complicated and goes up much higher), and you surely average more than one of those per line. I think if someone added 500 lines on normal sized aliquot sequence(s) all at once, you could hit 3000 pretty easily. Unless you have a lot of hardware or can not easily set up AliWin/wget to automatically submit the results periodically, this shouldn't bother you.
Last fiddled with by Mini-Geek on 2012-04-08 at 13:16 |
|
|
|
|
|
#5 |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
1110111010012 Posts |
AliWin2 does submit periodically (about every two hours) if "Auto Send" is checked. (I do have some more work to do in that area, so only new lines are sent and if none exist, the send is skipped.)
I have no knowledge of how to send credentials with the wget/Aliqueit method. AliWin2 simply invokes the Aliqueit method of: Code:
aliqueit -s 0 ###### |
|
|
|
|
|
#6 |
|
"William"
May 2003
New Haven
2×7×132 Posts |
Try logging into factordb using both IE and firefox. I have had problems in the past with auto-connection tools taking cookies from a browser I did not normally use - perhaps that is going on here.
|
|
|
|
|
|
#7 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
Quote:
Edit: Prime95 uses the cURL library (libcurl), though admittedly, Prime95 doesn't bother with cookies, the username is sent as part of each request. Wget apparently does support cookies (http://en.wikipedia.org/wiki/Wget#Advanced_examples), though I don't actually know the first thing about using it. Code:
(From the link above) # Using wget to download content protected by referer and cookies. # 1. get base url and save its cookies in file # 2. get protected content using stored cookies wget --cookies=on --keep-session-cookies --save-cookies=cookie.txt http://first_page wget --referer=http://first_page --cookies=on --load-cookies=cookie.txt --keep-session-cookies --save-cookies=cookie.txt http://second_page Last fiddled with by Dubslow on 2012-04-09 at 04:24 |
|
|
|
|
|
|
#8 | |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
381710 Posts |
Quote:
Or, is there a way to send login info along with the factors via wget? AliWin2 simply uses wget via the -s option in Aliqueit to submit lines from the elf, currently. I make no attempt to log into the db before using the -s option. And, I don't know how to tell if lines submitted were credited to my login. Thanks. @Dubslow: I must have crossed with your post. If you can get me easy to understand info, I'll modify AliWin2. Right now the submission is performed by Aliqueit, but I see no reason that I can't construct a wget line to submit the elf file directly to the db.
Last fiddled with by EdH on 2012-04-09 at 04:28 |
|
|
|
|
|
|
#9 | |||
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
Quote:
Quote:
Quote:
Code:
//submits the elf file belonging to sequence <seq> to Syd's DB.
//only sequence iterations >= <from_iteration> are sent.
bool submit_elf( mpz_class & seq, int from_iteration ) {
ifstream f( get_elf_name( seq ).c_str() );
if( !f.is_open() ) {
cout << "ERROR: couldn't open elf file: " << get_elf_name( seq ) << endl;
return false;
}
string line;
string post_data = "report=true&msub=";
//string post_data = "report=true&background=on&msub=";
int sent_lines = 0;
while( getline( f, line ) ) {
if( atoi( line.c_str() ) >= from_iteration ) {
post_data += urlencode( line + "\n" );
++sent_lines;
}
}
f.close();
if( !sent_lines ) {
cout << "WARNING: no lines to send." << endl;
return false;
}
string post_file = "aliqueit_tmp_post_" + seq.get_str();
string tmp_file = "aliqueit_tmp_wget_" + seq.get_str();
ofstream fo( post_file.c_str() );
fo << post_data;
fo.close();
cout << "Sending " << sent_lines << " lines..." << endl;
system( ( "wget --cache=off --output-document=" + tmp_file + " --post-file=" + post_file + " http://factorization.ath.cx/search.php?report=true" ).c_str() );
delete_file( post_file.c_str() );
f.clear();
f.open( tmp_file.c_str() );
while( getline( f, line ) ) {
size_t o = line.find( "Found " );
if( o != line.npos ) {
cout << "DB reports " << atoi( line.substr( o + 6 ).c_str() ) << " new factors." << endl;
}
}
f.close();
delete_file( tmp_file.c_str() );
return true;
}
Last fiddled with by Dubslow on 2012-04-09 at 04:47 |
|||
|
|
|
|
|
#10 |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
381710 Posts |
At http://www.mail-archive.com/wget@sun.../msg11211.html, I found the following:
Code:
...
Otherwise, you can perform the login using Wget, saving the cookies to a
file of your choice, using --post-data=..., --save-cookies=cookies.txt,
and probably --keep-session-cookies. This will require that you know
what data to place in --post-data, which generally requires that you dig
around in the HTML to find the right form field names, and where to post
them.
For instance, if you find a form like the following within the page
containing the log-in form:
<form action="/doLogin.php" method="POST">
<input type="text" name="s-login">
<input type="password" name="s-pass">
</form>
then you need to do something like:
$ wget --post-data='s-login=USERNAME&s-pass=PASSWORD' \
--save-cookies=my-cookies.txt --keep-session-cookies \
http://HOSTNAME/doLogin.php
(Note that you _don't_ necessarily send the information to the page that
had the login page: you send it to the spot mentioned in the "action"
attribute of the password form.)
Once this is done, you _should_ be able to perform further operations
with Wget as if you're logged in, by using
$ wget --load-cookies=my-cookies.txt --save-cookies=my-cookies.txt \
--keep-session-cookies ...
...
Code:
<form action="login.php" method="POST"><table border=0 width="98%"><tr><td align="center" colspan=2 bgcolor="#BBBBBB">Login</td></tr> <tr><td bgcolor="#DDDDDD">Loginname</td> <td bgcolor="#DDDDDD"><input type="text" name="user" value="" size=20></td> </tr> <tr><td>Password</td> <td><input type="password" name="pass" value="" size=20></td> </tr> <tr><td align="center" colspan=2 bgcolor="#DDDDDD"><input type="submit" value="Login" name="dlogin"></td> </tr> <tr><td height=20 colspan=3></td></tr> <tr><td align="center" colspan=2>No account? <a href="login.php?register=1">Register here</a></td> </tr></table></form> Code:
wget --post-data='user=USERNAME&pass=PASSWORD' \ --save-cookies=my-cookies.txt --keep-session-cookies \ http://www.factordb.com/login.php Hopefully, I'll have a chance to try this in the next few days... |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 24 hour news | davieddy | Soap Box | 4 | 2011-12-19 19:35 |
| I thought I found another one..... | schickel | Aliquot Sequences | 0 | 2011-02-21 03:52 |
| ! hour limit on editing | davieddy | Lounge | 7 | 2009-09-01 15:57 |
| 1 buck an hour | crash893 | Hardware | 6 | 2009-06-18 01:45 |
| 24 hour rally | mdettweiler | No Prime Left Behind | 391 | 2008-03-01 22:37 |