mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Aliquot Sequences (https://www.mersenneforum.org/forumdisplay.php?f=90)
-   -   The Appallingly Blue Page (https://www.mersenneforum.org/showthread.php?t=16965)

LaurV 2014-09-18 14:14

Yarrrr! Welcome back man!
You have no idea how much we missed you and your aliquot page!
We hope everything is wonderful on your side of the pool. :smile:

henryzz 2014-09-18 15:24

[QUOTE=Dubslow;383293]I was recently cleaning up my server and got around to fixing up my website. As part of the housekeeping, I copied the files I use for the website for archiving in a Git repo, so that if I disappear again someone else with a server can take over. It should be fairly simple, setting a few directories and adding a couple of cron entries.

[URL]https://github.com/dubslow/MersenneForumAliquot/tree/master/website[/URL]

As an apology for my sudden disappearance, I took the opportunity to expand my previous reservations script to be totally automated -- it scans the thread and does *very* simplistic parsing to find (un)reservations, then uses the previous code to update the head post accordingly. It only needs to be run (hourly or whatever) from cron by someone with credentials to edit the head post. I guess checking the log every so often would be a responsibility, but it should be pretty much nothing.

[URL]https://github.com/dubslow/MersenneForumAliquot/tree/master/reservations[/URL]

I'll monitor here for a bit and will be responsive to PMs, as well as Github issues.


e.g.

should be understood by the script as adding 4 and dropping 2 sequences.[/QUOTE]
Welcome back. This project has been quiet without your site.
Once I have gone through the reservations thread to discover the ones I discovered I missed yesterday we can start using the script. I think for testing I will want to run manually for the time being.

henryzz 2014-09-18 15:44

The reservations thread should now be up to date. I assume this script does the iteration and size. Time to try and get it working methinks.
It looks like this could be a slight bit tricky to get working on windows rather than linux.

LaurV 2014-09-18 16:06

I (we?) have small trouble with sequence 994176.:smile:
Checking your list against my DB, I have 9201 unfinished sequences, but you only have a very round 9200, and doing a sort and comparison, I have this sequence which you don't have.
Both lists are like a week old or so.
Is it any new merging in the last days, which I missed?

henryzz 2014-09-18 16:09

I am getting a syntax error when I try to run the reservations script.
[code]E:\Mersenne\AliquotReservations>reservations.py
File "E:\Mersenne\AliquotReservations\reservations.py", line 44
page = [ind+1:] # Dump the first line
^
SyntaxError: invalid syntax[/code]Although I can do basic python, my parseltongue isn't good enough to fix this.
I am running python 3.3 if that makes a difference.

Dubslow 2014-09-18 16:21

[QUOTE=henryzz;383311]I am getting a syntax error when I try to run the reservations script.
[code]E:\Mersenne\AliquotReservations>reservations.py
File "E:\Mersenne\AliquotReservations\reservations.py", line 44
page = [ind+1:] # Dump the first line
^
SyntaxError: invalid syntax[/code]Although I can do basic python, my parseltongue isn't good enough to fix this.
I am running python 3.3 if that makes a difference.[/QUOTE]

I tested the web parsing part thoroughly as I wrote it, since I wouldn't be able to test the completed product myself, but those several lines were an afterthought... hopefully it's the only SPE in sight. Line should be
[code]page = page[ind+1:] # Dump the first line[/code]

Dear dear.

Edit: I found a couple of other stupid things, just download the [url=https://github.com/dubslow/MersenneForumAliquot/blob/master/reservations/reservations.py]file[/url] again.

Edit2: To triple check (unrelated to your issue), you should have the pid_file thing set to 383308 (which is your post about fixing things), otherwise it might try to (e.g.) apply Batalov's most recent post...

LaurV 2014-09-18 16:28

[QUOTE=LaurV;383310]sequence 994176.[/QUOTE]
Fixed now, I see it in your list, and also in the tables.
Index 4060, recent progress 4061 :razz: hehe

The number of sequences is also 9201, which is wonderful, you have no idea how happy I am now, it means that my scripts were at least good for something...

henryzz 2014-09-18 16:49

[QUOTE=Dubslow;383313]I tested the web parsing part thoroughly as I wrote it, since I wouldn't be able to test the completed product myself, but those several lines were an afterthought... hopefully it's the only SPE in sight. Line should be
[code]page = page[ind+1:] # Dump the first line[/code]Dear dear.

Edit: I found a couple of other stupid things, just download the [URL="https://github.com/dubslow/MersenneForumAliquot/blob/master/reservations/reservations.py"]file[/URL] again.

Edit2: To triple check (unrelated to your issue), you should have the pid_file thing set to 383308 (which is your post about fixing things), otherwise it might try to (e.g.) apply Batalov's most recent post...[/QUOTE]
Good catch with the pid thing.
Now those things are fixed it is complaining about not finding myutils.

Dubslow 2014-09-18 16:51

[QUOTE=henryzz;383317]Good catch with the pid thing.
Now those things are fixed it is complaining about not finding myutils.[/QUOTE]

Ah yes, that's [url=https://github.com/dubslow/MersenneForumAliquot/blob/master/website/py/myutils.py]here[/url]. Putting it in the same directory, and then also running reservations.py from that directory, ought to be fine.

LaurV 2014-09-18 17:36

The index for 270870 is only 1576. not 1577.
One term is skipped when connecting the segments of the sequence after the fDB error.

Dubslow 2014-09-18 17:43

[QUOTE=LaurV;383321]The index for 270870 is only 1576. not 1577.
One term is skipped when connecting the segments of the sequence after the fDB error.[/QUOTE]

Hmm, fixed but also check 319860, I have that in my broken thing as well


All times are UTC. The time now is 09:56.

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