PrimeGrid
Please visit donation page to help the project cover running costs for this month

Toggle Menu

Join PrimeGrid

Returning Participants

Community

Leader Boards

Results

Other

drummers-lowrise

Advanced search

Message boards : General discussion : PG 1st Place Percentage Firefox Extension

Author Message
Profile Eudy SilvaProject donor
Send message
Joined: 26 Aug 17
Posts: 930
ID: 918937
Credit: 136,423,175
RAC: 26,179
Found 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,011,118)ESP LLR Amethyst: Earned 1,000,000 credits (1,022,307)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Turquoise: Earned 5,000,000 credits (7,412,632)PSP LLR Amethyst: Earned 1,000,000 credits (1,123,300)SoB LLR Ruby: Earned 2,000,000 credits (2,113,239)SR5 LLR Ruby: Earned 2,000,000 credits (2,784,784)SGS LLR Amethyst: Earned 1,000,000 credits (1,162,202)TRP LLR Amethyst: Earned 1,000,000 credits (1,309,179)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)321 Sieve Amethyst: Earned 1,000,000 credits (1,036,805)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Emerald: Earned 50,000,000 credits (63,539,979)AP 26/27 Sapphire: Earned 20,000,000 credits (22,224,371)GFN Sapphire: Earned 20,000,000 credits (25,599,556)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 126314 - Posted: 5 Feb 2019 | 20:32:46 UTC
Last modified: 5 Feb 2019 | 20:48:11 UTC

Anyone willing to try ?

I like to code. Not that I excel at it, but I like it :)
I do it as a hobby, in my free time.

As an exercise, I made this little extension for Firefox:
https://addons.mozilla.org/pt-BR/firefox/addon/pg-1st-place-percentage/

This is version 0.1
No warranty implied :)
No turn off button avaliable: if you want to stop the add-on, either disable it or uninstall it.

I expect you to get this kind of result:



Note:
PG must be set to use the English language, otherwise the extension will not work properly.
You can set PG language to English by going to going to:
https://www.primegrid.com/language_select.php?set_lang=en.
Later, if you decide to change the language to something else, just go to:
https://www.primegrid.com/language_select.php.

Some explanation on what the extension (add-on) tries to do:
1- It will only be triggered when you navigate to a webpage in primegrid.com
2 - It will try to compute the 1st place percentage for the tasks listed on that single page you visit.
3 - It will not consider tasks that are "In progress" (it will, though, change the color of "In progress" to a kind of green color). The same for "Aborted" (redish color).
4 - I haven't tested when tasks with error, or timed out, or invalid are listed.
5 - It will not work on a page where you've selected to see ony pending tasks (this would always be 100%).
6 - It will not work on a page where you've selected to see All subprojects tasks (Application: All).
It didn't make sense to me to calculate 1st percentage for a mixture of types of tasks.

As this is the first time I try to write an extension, I figured the KISS principle would apply to me.
So the add-on only works on that single page you load.
It will not try to calculate the 1st percentage for all the tasks of a kind.
Simulating clicking on the "Next 20" link many times and getting othe tasks status is possible.
But, I haven't tried to do it and I wonder if that would have a bad impact on PG webserver.

Anyway, I guess it might be useful the way it is. (I'm using it :) )

Comments and critics are welcome.
____________
"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

Profile 1998golferProject donor
Volunteer moderator
Volunteer tester
Send message
Joined: 4 Dec 12
Posts: 1054
ID: 183129
Credit: 1,088,040,960
RAC: 1,197,968
Discovered 1 mega primeFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,231,988)Cullen LLR Turquoise: Earned 5,000,000 credits (5,124,261)ESP LLR Turquoise: Earned 5,000,000 credits (7,887,081)Generalized Cullen/Woodall LLR Emerald: Earned 50,000,000 credits (50,656,837)PPS LLR Jade: Earned 10,000,000 credits (12,812,740)PSP LLR Sapphire: Earned 20,000,000 credits (37,320,178)SoB LLR Sapphire: Earned 20,000,000 credits (21,004,651)SR5 LLR Sapphire: Earned 20,000,000 credits (32,288,823)SGS LLR Ruby: Earned 2,000,000 credits (2,771,356)TRP LLR Turquoise: Earned 5,000,000 credits (5,867,891)Woodall LLR Ruby: Earned 2,000,000 credits (4,132,841)321 Sieve Turquoise: Earned 5,000,000 credits (5,863,434)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (27,921,016)PPS Sieve Double Silver: Earned 200,000,000 credits (393,345,135)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Turquoise: Earned 5,000,000 credits (7,990,608)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,217,057)AP 26/27 Turquoise: Earned 5,000,000 credits (5,773,404)GFN Sapphire: Earned 20,000,000 credits (21,292,469)PSA Double Silver: Earned 200,000,000 credits (420,586,383)
Message 126317 - Posted: 5 Feb 2019 | 20:52:47 UTC

Very nice, thanks for this!

Profile TimTProject donor
Avatar
Send message
Joined: 2 Dec 11
Posts: 330
ID: 121414
Credit: 1,188,144,414
RAC: 2,323,352
Found 4 primes in the 2018 Tour de PrimesFound 2 primes in the 2019 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (17,020,974)Cullen LLR Jade: Earned 10,000,000 credits (10,939,643)ESP LLR Jade: Earned 10,000,000 credits (10,253,423)Generalized Cullen/Woodall LLR Sapphire: Earned 20,000,000 credits (20,542,115)PPS LLR Sapphire: Earned 20,000,000 credits (23,652,169)PSP LLR Sapphire: Earned 20,000,000 credits (21,512,318)SoB LLR Sapphire: Earned 20,000,000 credits (20,586,237)SR5 LLR Jade: Earned 10,000,000 credits (10,376,832)SGS LLR Sapphire: Earned 20,000,000 credits (20,136,388)TRP LLR Jade: Earned 10,000,000 credits (13,220,801)Woodall LLR Jade: Earned 10,000,000 credits (12,770,021)321 Sieve Sapphire: Earned 20,000,000 credits (21,833,883)Cullen/Woodall Sieve (suspended) Bronze: Earned 10,000 credits (74,346)Generalized Cullen/Woodall Sieve (suspended) Jade: Earned 10,000,000 credits (10,184,525)PPS Sieve Double Gold: Earned 500,000,000 credits (565,517,666)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Silver: Earned 100,000 credits (287,513)TRP Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,074,848)AP 26/27 Double Bronze: Earned 100,000,000 credits (108,603,066)GFN Double Silver: Earned 200,000,000 credits (227,560,541)PSA Emerald: Earned 50,000,000 credits (72,018,672)
Message 126343 - Posted: 6 Feb 2019 | 0:40:44 UTC - in response to Message 126314.

Thanks Eudy, this is awesome! nice job.

Chaotic DisorderProject donor
Avatar
Send message
Joined: 24 Sep 10
Posts: 74
ID: 68547
Credit: 252,360,445
RAC: 405,986
Found 1 prime in the 2018 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (10,357,969)Cullen LLR Silver: Earned 100,000 credits (386,649)ESP LLR Ruby: Earned 2,000,000 credits (3,650,366)Generalized Cullen/Woodall LLR Gold: Earned 500,000 credits (752,940)PPS LLR Turquoise: Earned 5,000,000 credits (8,454,096)PSP LLR Amethyst: Earned 1,000,000 credits (1,881,456)SoB LLR Turquoise: Earned 5,000,000 credits (5,571,796)SR5 LLR Ruby: Earned 2,000,000 credits (2,481,860)SGS LLR Amethyst: Earned 1,000,000 credits (1,960,946)TRP LLR Amethyst: Earned 1,000,000 credits (1,095,825)Woodall LLR Gold: Earned 500,000 credits (719,170)321 Sieve Silver: Earned 100,000 credits (189,722)Cullen/Woodall Sieve (suspended) Bronze: Earned 10,000 credits (26,059)Generalized Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (3,566,529)PPS Sieve Emerald: Earned 50,000,000 credits (60,452,615)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (25,179)TRP Sieve (suspended) Silver: Earned 100,000 credits (260,129)AP 26/27 Double Bronze: Earned 100,000,000 credits (101,083,086)GFN Sapphire: Earned 20,000,000 credits (49,444,055)
Message 126344 - Posted: 6 Feb 2019 | 2:00:21 UTC - in response to Message 126314.

I switched to Firefox just to try it. It's awesome! Great Idea!


____________

Dirk SellstedProject donor
Avatar
Send message
Joined: 15 Feb 17
Posts: 149
ID: 492091
Credit: 136,919,308
RAC: 0
Found 1 prime in the 2018 Tour de Primes321 LLR Gold: Earned 500,000 credits (860,905)Cullen LLR Gold: Earned 500,000 credits (506,431)ESP LLR Gold: Earned 500,000 credits (818,638)Generalized Cullen/Woodall LLR Gold: Earned 500,000 credits (513,349)PPS LLR Ruby: Earned 2,000,000 credits (2,605,836)PSP LLR Gold: Earned 500,000 credits (555,892)SoB LLR Ruby: Earned 2,000,000 credits (2,296,322)SR5 LLR Ruby: Earned 2,000,000 credits (3,858,489)SGS LLR Amethyst: Earned 1,000,000 credits (1,410,704)TRP LLR Gold: Earned 500,000 credits (765,119)Woodall LLR Gold: Earned 500,000 credits (532,512)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,321,574)PPS Sieve Sapphire: Earned 20,000,000 credits (21,786,773)TRP Sieve (suspended) Gold: Earned 500,000 credits (528,024)AP 26/27 Jade: Earned 10,000,000 credits (10,220,704)GFN Sapphire: Earned 20,000,000 credits (49,709,755)PSA Sapphire: Earned 20,000,000 credits (34,628,282)
Message 126352 - Posted: 6 Feb 2019 | 3:57:55 UTC

Really good thank you

HøstboProject donor
Avatar
Send message
Joined: 3 Oct 16
Posts: 40
ID: 459294
Credit: 169,269,624
RAC: 240,930
321 LLR Amethyst: Earned 1,000,000 credits (1,015,889)Cullen LLR Amethyst: Earned 1,000,000 credits (1,009,182)ESP LLR Amethyst: Earned 1,000,000 credits (1,008,510)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,003,138)PPS LLR Amethyst: Earned 1,000,000 credits (1,017,883)PSP LLR Amethyst: Earned 1,000,000 credits (1,060,129)SoB LLR Amethyst: Earned 1,000,000 credits (1,065,771)SR5 LLR Amethyst: Earned 1,000,000 credits (1,014,336)SGS LLR Amethyst: Earned 1,000,000 credits (1,005,821)TRP LLR Amethyst: Earned 1,000,000 credits (1,025,961)Woodall LLR Amethyst: Earned 1,000,000 credits (1,018,548)321 Sieve Jade: Earned 10,000,000 credits (19,277,245)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,201,726)PPS Sieve Emerald: Earned 50,000,000 credits (51,154,925)TRP Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,002,705)AP 26/27 Turquoise: Earned 5,000,000 credits (5,009,277)GFN Sapphire: Earned 20,000,000 credits (31,378,578)
Message 126536 - Posted: 8 Feb 2019 | 14:45:57 UTC

Fantastic.

dlawson
Send message
Joined: 7 Jun 17
Posts: 19
ID: 895562
Credit: 50,617,111
RAC: 59,922
Discovered 1 mega prime321 LLR Gold: Earned 500,000 credits (616,283)Cullen LLR Gold: Earned 500,000 credits (509,769)ESP LLR Gold: Earned 500,000 credits (981,523)Generalized Cullen/Woodall LLR Gold: Earned 500,000 credits (507,397)PPS LLR Amethyst: Earned 1,000,000 credits (1,178,974)PSP LLR Gold: Earned 500,000 credits (998,856)SoB LLR Ruby: Earned 2,000,000 credits (3,290,765)SR5 LLR Amethyst: Earned 1,000,000 credits (1,039,736)SGS LLR Gold: Earned 500,000 credits (501,354)TRP LLR Gold: Earned 500,000 credits (501,350)Woodall LLR Gold: Earned 500,000 credits (834,646)321 Sieve Gold: Earned 500,000 credits (517,182)Generalized Cullen/Woodall Sieve (suspended) Gold: Earned 500,000 credits (512,764)PPS Sieve Turquoise: Earned 5,000,000 credits (5,161,001)AP 26/27 Turquoise: Earned 5,000,000 credits (5,991,726)GFN Sapphire: Earned 20,000,000 credits (22,463,303)PSA Turquoise: Earned 5,000,000 credits (5,013,874)
Message 126549 - Posted: 8 Feb 2019 | 20:53:07 UTC - in response to Message 126314.

I like!

Is there a way to show more than 50 tasks on the page?

Anthony Ayiomamitis
Send message
Joined: 19 Mar 15
Posts: 2503
ID: 386066
Credit: 651,542,204
RAC: 426,360
Found 2 primes in the 2019 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (2,035,398)Cullen LLR Ruby: Earned 2,000,000 credits (2,047,548)ESP LLR Ruby: Earned 2,000,000 credits (2,033,639)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,014,465)PPS LLR Ruby: Earned 2,000,000 credits (4,518,308)PSP LLR Ruby: Earned 2,000,000 credits (2,107,810)SoB LLR Ruby: Earned 2,000,000 credits (3,832,186)SR5 LLR Ruby: Earned 2,000,000 credits (2,023,400)SGS LLR Ruby: Earned 2,000,000 credits (2,029,683)TRP LLR Ruby: Earned 2,000,000 credits (2,045,113)Woodall LLR Ruby: Earned 2,000,000 credits (2,097,219)321 Sieve Emerald: Earned 50,000,000 credits (85,450,377)Generalized Cullen/Woodall Sieve (suspended) Double Bronze: Earned 100,000,000 credits (100,500,349)PPS Sieve Double Silver: Earned 200,000,000 credits (243,349,119)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (14,516,062)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,329,228)AP 26/27 Sapphire: Earned 20,000,000 credits (20,303,946)GFN Sapphire: Earned 20,000,000 credits (23,785,191)PSA Double Bronze: Earned 100,000,000 credits (116,531,700)
Message 126627 - Posted: 10 Feb 2019 | 19:33:40 UTC - in response to Message 126549.

Eudy,

How difficult would it be for your plug-in to accumulate results with each consequent click as we move from one page of 20 results to the next and to display the running cumulative percentage?

Profile Eudy SilvaProject donor
Send message
Joined: 26 Aug 17
Posts: 930
ID: 918937
Credit: 136,423,175
RAC: 26,179
Found 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,011,118)ESP LLR Amethyst: Earned 1,000,000 credits (1,022,307)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Turquoise: Earned 5,000,000 credits (7,412,632)PSP LLR Amethyst: Earned 1,000,000 credits (1,123,300)SoB LLR Ruby: Earned 2,000,000 credits (2,113,239)SR5 LLR Ruby: Earned 2,000,000 credits (2,784,784)SGS LLR Amethyst: Earned 1,000,000 credits (1,162,202)TRP LLR Amethyst: Earned 1,000,000 credits (1,309,179)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)321 Sieve Amethyst: Earned 1,000,000 credits (1,036,805)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Emerald: Earned 50,000,000 credits (63,539,979)AP 26/27 Sapphire: Earned 20,000,000 credits (22,224,371)GFN Sapphire: Earned 20,000,000 credits (25,599,556)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 126633 - Posted: 10 Feb 2019 | 20:59:44 UTC - in response to Message 126627.

Not much, I hope.
It's something I want to do.
But, as this JavaScript stuff is new for me, it takes some time.

I'l try it. But I make no promisses :)
____________
"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

Profile Eudy SilvaProject donor
Send message
Joined: 26 Aug 17
Posts: 930
ID: 918937
Credit: 136,423,175
RAC: 26,179
Found 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,011,118)ESP LLR Amethyst: Earned 1,000,000 credits (1,022,307)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Turquoise: Earned 5,000,000 credits (7,412,632)PSP LLR Amethyst: Earned 1,000,000 credits (1,123,300)SoB LLR Ruby: Earned 2,000,000 credits (2,113,239)SR5 LLR Ruby: Earned 2,000,000 credits (2,784,784)SGS LLR Amethyst: Earned 1,000,000 credits (1,162,202)TRP LLR Amethyst: Earned 1,000,000 credits (1,309,179)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)321 Sieve Amethyst: Earned 1,000,000 credits (1,036,805)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Emerald: Earned 50,000,000 credits (63,539,979)AP 26/27 Sapphire: Earned 20,000,000 credits (22,224,371)GFN Sapphire: Earned 20,000,000 credits (25,599,556)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 126702 - Posted: 11 Feb 2019 | 22:09:45 UTC
Last modified: 11 Feb 2019 | 22:19:17 UTC

I've uploaded a new new version (0.2.1) to AMO (Mozilla Add-ons).
It now features a toolbar button to disable/enable the add-on.

It's a small change in functionality, but this change required a background script.
This is an ant step :) in direction to get the add-on to deal with more tasks than those listed in a single page.

The add-on is open source.
Before installing it, you can right click on that button shown in Mozilla's webpage (+ Add to Firefox) and save the correpsonding XPI file.
This XPI file is actually a ZIP file. Decompress it and you'll have all the source files.

This link shows all (that is, both) versions of the add-on:
https://addons.mozilla.org/en-US/firefox/addon/pg-1st-place-percentage/versions/

Please report bugs, malfunctioning, etc.
____________
"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

Profile Eudy SilvaProject donor
Send message
Joined: 26 Aug 17
Posts: 930
ID: 918937
Credit: 136,423,175
RAC: 26,179
Found 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,011,118)ESP LLR Amethyst: Earned 1,000,000 credits (1,022,307)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Turquoise: Earned 5,000,000 credits (7,412,632)PSP LLR Amethyst: Earned 1,000,000 credits (1,123,300)SoB LLR Ruby: Earned 2,000,000 credits (2,113,239)SR5 LLR Ruby: Earned 2,000,000 credits (2,784,784)SGS LLR Amethyst: Earned 1,000,000 credits (1,162,202)TRP LLR Amethyst: Earned 1,000,000 credits (1,309,179)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)321 Sieve Amethyst: Earned 1,000,000 credits (1,036,805)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Emerald: Earned 50,000,000 credits (63,539,979)AP 26/27 Sapphire: Earned 20,000,000 credits (22,224,371)GFN Sapphire: Earned 20,000,000 credits (25,599,556)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 126706 - Posted: 11 Feb 2019 | 22:36:12 UTC - in response to Message 126549.

dlawson wrote:
Is there a way to show more than 50 tasks on the page?

Not at this time, sorry.
____________
"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

Profile Eudy SilvaProject donor
Send message
Joined: 26 Aug 17
Posts: 930
ID: 918937
Credit: 136,423,175
RAC: 26,179
Found 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,011,118)ESP LLR Amethyst: Earned 1,000,000 credits (1,022,307)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Turquoise: Earned 5,000,000 credits (7,412,632)PSP LLR Amethyst: Earned 1,000,000 credits (1,123,300)SoB LLR Ruby: Earned 2,000,000 credits (2,113,239)SR5 LLR Ruby: Earned 2,000,000 credits (2,784,784)SGS LLR Amethyst: Earned 1,000,000 credits (1,162,202)TRP LLR Amethyst: Earned 1,000,000 credits (1,309,179)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)321 Sieve Amethyst: Earned 1,000,000 credits (1,036,805)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Emerald: Earned 50,000,000 credits (63,539,979)AP 26/27 Sapphire: Earned 20,000,000 credits (22,224,371)GFN Sapphire: Earned 20,000,000 credits (25,599,556)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 126956 - Posted: 17 Feb 2019 | 15:49:47 UTC - in response to Message 126627.
Last modified: 17 Feb 2019 | 16:47:34 UTC

AA wrote:
Eudy,

How difficult would it be for your plug-in to accumulate results with each consequent click as we move from one page of 20 results to the next and to display the running cumulative percentage?

It took me a week to do it.
Try the latest version (0.3).

The release notes:
This latest version (0.3), besides computing first place finish percentage for a single
webpage, also keeps track of all pages a user visits and calculates the accumulated (total)
first place finish percentage for each task type (subproject) and user or host computer.
The extension now features a context sensitive popup menu which allows the user to
enable/disable the add-on and also reset the acumulated total first finish percentage figures.
The reset of the accumulated total can be done for all task types or for individual
combinations of task type and user/ host (according to the webpage from where the popup menu is invoked).


I don't know if I made myself clear with the text above.

While learning, developing and testing, I realized that most of the time a user will be
looking at his own tasks.
But, occasionally, he/she might peek at another users task.
And this might be done in simultaneously opened browser tabs.

Note that a user can't directly/explicitly see another user's tasks.
The best he can do is see someone else's list of computers (if not hidden),
choose one computer and see this computer's (host) tasks.
(Another possibility is that the user might click on a "WU detail" and acces the wingman's
host computer that is crunching the other task for this WU.)

Anyway, it's important to keep tasks separated by subproject and user/host.
We don't want to mix, say, PPS-Mega tasks reported for the user himself and
PPS-Mega tasks reported for someone else's host.
(There would be trouble when wanting to reset the accumulated first finish percentage figure for a certain task type.)

I guess it is better to start using the addon and see how it works.
The popup menu should be your friend.
It's wise to frequently "Reset all accumulated task counts".
This should free up the memory used to keep track of the tasks you've browsed.
A user might browse 50 pages of 20 tasks in each. That's 1000 tasks kept internally by the addon ...
Any question/doubts can be posted here, as well as bugs and the like.

Edit: Regarding the images below, you can see my Firefox uses Portuguese.
The important thing is to have PG set to use English, so the addon will work correctly.
http://www.primegrid.com/language_select.php?set_lang=en




____________
"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

Scott BrownProject donor
Volunteer moderator
Project administrator
Volunteer tester
Project scientist
Avatar
Send message
Joined: 17 Oct 05
Posts: 1941
ID: 1178
Credit: 6,597,516,107
RAC: 3,367,978
Discovered the World's First base 116 Generalized Cullen prime!!!Discovered 17 mega primesEliminated 7 conjecture "k"sDiscovered 1 Sophie Germain pairDiscovered 1 Fermat divisor2012 Tour de Primes highest prime count2012 Tour de Primes most Mountain Stage primes2015 Tour de Primes highest prime count2016 Tour de Primes highest prime countFound 23 primes in the 2018 Tour de PrimesFound 1 mega prime in the 2018 Tour de PrimesFound 2 primes in the 2018 Tour de Primes Mountain Stage2019 Tour de Primes highest prime countFound 22 primes in the 2019 Tour de Primes321 LLR Double Bronze: Earned 100,000,000 credits (110,931,288)Cullen LLR Double Bronze: Earned 100,000,000 credits (103,870,990)ESP LLR Double Bronze: Earned 100,000,000 credits (137,499,413)Generalized Cullen/Woodall LLR Double Bronze: Earned 100,000,000 credits (108,461,080)PPS LLR Double Silver: Earned 200,000,000 credits (423,511,471)PSP LLR Double Bronze: Earned 100,000,000 credits (126,241,806)SoB LLR Double Bronze: Earned 100,000,000 credits (135,747,083)SR5 LLR Double Silver: Earned 200,000,000 credits (201,224,339)SGS LLR Double Bronze: Earned 100,000,000 credits (162,297,138)TPS LLR (retired) Silver: Earned 100,000 credits (235,439)TRP LLR Double Bronze: Earned 100,000,000 credits (121,443,822)Woodall LLR Double Bronze: Earned 100,000,000 credits (101,447,725)321 Sieve Double Silver: Earned 200,000,000 credits (203,510,966)Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (83,794,448)Generalized Cullen/Woodall Sieve (suspended) Double Silver: Earned 200,000,000 credits (285,139,652)PPS Sieve Double Ruby: Earned 2,000,000,000 credits (2,124,324,176)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Double Silver: Earned 200,000,000 credits (203,523,358)TRP Sieve (suspended) Double Silver: Earned 200,000,000 credits (201,489,157)AP 26/27 Double Bronze: Earned 100,000,000 credits (135,790,733)GFN Double Amethyst: Earned 1,000,000,000 credits (1,368,000,021)PSA Double Silver: Earned 200,000,000 credits (259,058,048)
Message 126958 - Posted: 17 Feb 2019 | 17:02:09 UTC - in response to Message 126956.


Does not appear to work correctly on mine so far. First Place per page shows, but Total first place does not show up.

Profile Eudy SilvaProject donor
Send message
Joined: 26 Aug 17
Posts: 930
ID: 918937
Credit: 136,423,175
RAC: 26,179
Found 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,011,118)ESP LLR Amethyst: Earned 1,000,000 credits (1,022,307)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Turquoise: Earned 5,000,000 credits (7,412,632)PSP LLR Amethyst: Earned 1,000,000 credits (1,123,300)SoB LLR Ruby: Earned 2,000,000 credits (2,113,239)SR5 LLR Ruby: Earned 2,000,000 credits (2,784,784)SGS LLR Amethyst: Earned 1,000,000 credits (1,162,202)TRP LLR Amethyst: Earned 1,000,000 credits (1,309,179)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)321 Sieve Amethyst: Earned 1,000,000 credits (1,036,805)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Emerald: Earned 50,000,000 credits (63,539,979)AP 26/27 Sapphire: Earned 20,000,000 credits (22,224,371)GFN Sapphire: Earned 20,000,000 credits (25,599,556)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 126961 - Posted: 17 Feb 2019 | 17:16:29 UTC - in response to Message 126958.
Last modified: 17 Feb 2019 | 17:24:22 UTC

Scott, what Firefox version are you using ?

Can you, please, hit Ctrl+Shift+J (to open the browser console window), clean the messages (trash can icon on the upper left window corner) and then try to install the addon ?

Edit: What webpage are you browsing ?
____________
"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

Scott BrownProject donor
Volunteer moderator
Project administrator
Volunteer tester
Project scientist
Avatar
Send message
Joined: 17 Oct 05
Posts: 1941
ID: 1178
Credit: 6,597,516,107
RAC: 3,367,978
Discovered the World's First base 116 Generalized Cullen prime!!!Discovered 17 mega primesEliminated 7 conjecture "k"sDiscovered 1 Sophie Germain pairDiscovered 1 Fermat divisor2012 Tour de Primes highest prime count2012 Tour de Primes most Mountain Stage primes2015 Tour de Primes highest prime count2016 Tour de Primes highest prime countFound 23 primes in the 2018 Tour de PrimesFound 1 mega prime in the 2018 Tour de PrimesFound 2 primes in the 2018 Tour de Primes Mountain Stage2019 Tour de Primes highest prime countFound 22 primes in the 2019 Tour de Primes321 LLR Double Bronze: Earned 100,000,000 credits (110,931,288)Cullen LLR Double Bronze: Earned 100,000,000 credits (103,870,990)ESP LLR Double Bronze: Earned 100,000,000 credits (137,499,413)Generalized Cullen/Woodall LLR Double Bronze: Earned 100,000,000 credits (108,461,080)PPS LLR Double Silver: Earned 200,000,000 credits (423,511,471)PSP LLR Double Bronze: Earned 100,000,000 credits (126,241,806)SoB LLR Double Bronze: Earned 100,000,000 credits (135,747,083)SR5 LLR Double Silver: Earned 200,000,000 credits (201,224,339)SGS LLR Double Bronze: Earned 100,000,000 credits (162,297,138)TPS LLR (retired) Silver: Earned 100,000 credits (235,439)TRP LLR Double Bronze: Earned 100,000,000 credits (121,443,822)Woodall LLR Double Bronze: Earned 100,000,000 credits (101,447,725)321 Sieve Double Silver: Earned 200,000,000 credits (203,510,966)Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (83,794,448)Generalized Cullen/Woodall Sieve (suspended) Double Silver: Earned 200,000,000 credits (285,139,652)PPS Sieve Double Ruby: Earned 2,000,000,000 credits (2,124,324,176)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Double Silver: Earned 200,000,000 credits (203,523,358)TRP Sieve (suspended) Double Silver: Earned 200,000,000 credits (201,489,157)AP 26/27 Double Bronze: Earned 100,000,000 credits (135,790,733)GFN Double Amethyst: Earned 1,000,000,000 credits (1,368,000,021)PSA Double Silver: Earned 200,000,000 credits (259,058,048)
Message 126966 - Posted: 17 Feb 2019 | 18:15:17 UTC - in response to Message 126961.

Scott, what Firefox version are you using ?

Can you, please, hit Ctrl+Shift+J (to open the browser console window), clean the messages (trash can icon on the upper left window corner) and then try to install the addon ?

Edit: What webpage are you browsing ?


65.0.1

It was not an install of the add-on. I updated the old version that was already installed.

Was viewing my own computer task pages.

Profile Eudy SilvaProject donor
Send message
Joined: 26 Aug 17
Posts: 930
ID: 918937
Credit: 136,423,175
RAC: 26,179
Found 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,011,118)ESP LLR Amethyst: Earned 1,000,000 credits (1,022,307)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Turquoise: Earned 5,000,000 credits (7,412,632)PSP LLR Amethyst: Earned 1,000,000 credits (1,123,300)SoB LLR Ruby: Earned 2,000,000 credits (2,113,239)SR5 LLR Ruby: Earned 2,000,000 credits (2,784,784)SGS LLR Amethyst: Earned 1,000,000 credits (1,162,202)TRP LLR Amethyst: Earned 1,000,000 credits (1,309,179)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)321 Sieve Amethyst: Earned 1,000,000 credits (1,036,805)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Emerald: Earned 50,000,000 credits (63,539,979)AP 26/27 Sapphire: Earned 20,000,000 credits (22,224,371)GFN Sapphire: Earned 20,000,000 credits (25,599,556)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 126969 - Posted: 17 Feb 2019 | 18:47:28 UTC - in response to Message 126966.
Last modified: 17 Feb 2019 | 18:50:31 UTC

Scott Brown wrote:
65.0.1

It's the same version I'm using.

Scott Brown wrote:
It was not an install of the add-on. I updated the old version that was already installed.

OK.

In Firefox, you can hit Ctrl+Shift+J to open the browser console window and sse important messages the browser logs.
This browser window can also be opened by going to the menu Tools -> Web developer -> Browser console.
(This browser console window is not the Web console window one gets when hits the F12 key or chooses Tools -> Web developer -> Web console)

I will make a modified version of the addon that will output more tracing messages to the browser console, to help spot where things might be failing.
Meanwhile, can you try completely removing (uninstall) the addon and make a fresh intallation from https://addons.mozilla.org/en-US/firefox/addon/pg-1st-place-percentage/ ?
And let me know if this worked.

Is it better move this conversation to private messges ?
Or will other fellows benefit from the msgs posted here?
____________
"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

Anthony Ayiomamitis
Send message
Joined: 19 Mar 15
Posts: 2503
ID: 386066
Credit: 651,542,204
RAC: 426,360
Found 2 primes in the 2019 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (2,035,398)Cullen LLR Ruby: Earned 2,000,000 credits (2,047,548)ESP LLR Ruby: Earned 2,000,000 credits (2,033,639)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,014,465)PPS LLR Ruby: Earned 2,000,000 credits (4,518,308)PSP LLR Ruby: Earned 2,000,000 credits (2,107,810)SoB LLR Ruby: Earned 2,000,000 credits (3,832,186)SR5 LLR Ruby: Earned 2,000,000 credits (2,023,400)SGS LLR Ruby: Earned 2,000,000 credits (2,029,683)TRP LLR Ruby: Earned 2,000,000 credits (2,045,113)Woodall LLR Ruby: Earned 2,000,000 credits (2,097,219)321 Sieve Emerald: Earned 50,000,000 credits (85,450,377)Generalized Cullen/Woodall Sieve (suspended) Double Bronze: Earned 100,000,000 credits (100,500,349)PPS Sieve Double Silver: Earned 200,000,000 credits (243,349,119)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (14,516,062)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,329,228)AP 26/27 Sapphire: Earned 20,000,000 credits (20,303,946)GFN Sapphire: Earned 20,000,000 credits (23,785,191)PSA Double Bronze: Earned 100,000,000 credits (116,531,700)
Message 126981 - Posted: 17 Feb 2019 | 21:13:57 UTC - in response to Message 126956.

AA wrote:
Eudy,

How difficult would it be for your plug-in to accumulate results with each consequent click as we move from one page of 20 results to the next and to display the running cumulative percentage?

It took me a week to do it.
Try the latest version (0.3).

Good man!

With a sample of over 2800 available PPSE results, I am first to report in 65.3% of my units. I can easily live with such a rate.

Scott BrownProject donor
Volunteer moderator
Project administrator
Volunteer tester
Project scientist
Avatar
Send message
Joined: 17 Oct 05
Posts: 1941
ID: 1178
Credit: 6,597,516,107
RAC: 3,367,978
Discovered the World's First base 116 Generalized Cullen prime!!!Discovered 17 mega primesEliminated 7 conjecture "k"sDiscovered 1 Sophie Germain pairDiscovered 1 Fermat divisor2012 Tour de Primes highest prime count2012 Tour de Primes most Mountain Stage primes2015 Tour de Primes highest prime count2016 Tour de Primes highest prime countFound 23 primes in the 2018 Tour de PrimesFound 1 mega prime in the 2018 Tour de PrimesFound 2 primes in the 2018 Tour de Primes Mountain Stage2019 Tour de Primes highest prime countFound 22 primes in the 2019 Tour de Primes321 LLR Double Bronze: Earned 100,000,000 credits (110,931,288)Cullen LLR Double Bronze: Earned 100,000,000 credits (103,870,990)ESP LLR Double Bronze: Earned 100,000,000 credits (137,499,413)Generalized Cullen/Woodall LLR Double Bronze: Earned 100,000,000 credits (108,461,080)PPS LLR Double Silver: Earned 200,000,000 credits (423,511,471)PSP LLR Double Bronze: Earned 100,000,000 credits (126,241,806)SoB LLR Double Bronze: Earned 100,000,000 credits (135,747,083)SR5 LLR Double Silver: Earned 200,000,000 credits (201,224,339)SGS LLR Double Bronze: Earned 100,000,000 credits (162,297,138)TPS LLR (retired) Silver: Earned 100,000 credits (235,439)TRP LLR Double Bronze: Earned 100,000,000 credits (121,443,822)Woodall LLR Double Bronze: Earned 100,000,000 credits (101,447,725)321 Sieve Double Silver: Earned 200,000,000 credits (203,510,966)Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (83,794,448)Generalized Cullen/Woodall Sieve (suspended) Double Silver: Earned 200,000,000 credits (285,139,652)PPS Sieve Double Ruby: Earned 2,000,000,000 credits (2,124,324,176)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Double Silver: Earned 200,000,000 credits (203,523,358)TRP Sieve (suspended) Double Silver: Earned 200,000,000 credits (201,489,157)AP 26/27 Double Bronze: Earned 100,000,000 credits (135,790,733)GFN Double Amethyst: Earned 1,000,000,000 credits (1,368,000,021)PSA Double Silver: Earned 200,000,000 credits (259,058,048)
Message 126991 - Posted: 17 Feb 2019 | 22:00:07 UTC - in response to Message 126969.


Uninstalling and doing a full reinstall did the trick. Must be something that hangs when trying to update.



____________
141941*2^4299438-1 is prime!


Profile Eudy SilvaProject donor
Send message
Joined: 26 Aug 17
Posts: 930
ID: 918937
Credit: 136,423,175
RAC: 26,179
Found 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,011,118)ESP LLR Amethyst: Earned 1,000,000 credits (1,022,307)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Turquoise: Earned 5,000,000 credits (7,412,632)PSP LLR Amethyst: Earned 1,000,000 credits (1,123,300)SoB LLR Ruby: Earned 2,000,000 credits (2,113,239)SR5 LLR Ruby: Earned 2,000,000 credits (2,784,784)SGS LLR Amethyst: Earned 1,000,000 credits (1,162,202)TRP LLR Amethyst: Earned 1,000,000 credits (1,309,179)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)321 Sieve Amethyst: Earned 1,000,000 credits (1,036,805)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Emerald: Earned 50,000,000 credits (63,539,979)AP 26/27 Sapphire: Earned 20,000,000 credits (22,224,371)GFN Sapphire: Earned 20,000,000 credits (25,599,556)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 126993 - Posted: 17 Feb 2019 | 22:07:49 UTC - in response to Message 126981.

AA wrote:
...
With a sample of over 2800 available PPSE results, I am first to report in 65.3% of my units. I can easily live with such a rate.

I'm impressed by you clicking "Next 20" around 140 times, lol !

____________
"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

Profile Eudy SilvaProject donor
Send message
Joined: 26 Aug 17
Posts: 930
ID: 918937
Credit: 136,423,175
RAC: 26,179
Found 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,011,118)ESP LLR Amethyst: Earned 1,000,000 credits (1,022,307)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Turquoise: Earned 5,000,000 credits (7,412,632)PSP LLR Amethyst: Earned 1,000,000 credits (1,123,300)SoB LLR Ruby: Earned 2,000,000 credits (2,113,239)SR5 LLR Ruby: Earned 2,000,000 credits (2,784,784)SGS LLR Amethyst: Earned 1,000,000 credits (1,162,202)TRP LLR Amethyst: Earned 1,000,000 credits (1,309,179)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)321 Sieve Amethyst: Earned 1,000,000 credits (1,036,805)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Emerald: Earned 50,000,000 credits (63,539,979)AP 26/27 Sapphire: Earned 20,000,000 credits (22,224,371)GFN Sapphire: Earned 20,000,000 credits (25,599,556)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 126994 - Posted: 17 Feb 2019 | 22:08:56 UTC - in response to Message 126991.

Scott Brown wrote:

Uninstalling and doing a full reinstall did the trick. Must be something that hangs when trying to update.

Good news !
Thank you for the feedback.

____________
"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

KeithProject donor
Avatar
Send message
Joined: 8 Dec 13
Posts: 369
ID: 284516
Credit: 316,056,180
RAC: 211,236
Discovered 1 mega primeFound 2 primes in the 2018 Tour de PrimesFound 3 primes in the 2019 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,010,954)Cullen LLR Turquoise: Earned 5,000,000 credits (5,009,911)ESP LLR Turquoise: Earned 5,000,000 credits (5,005,551)Generalized Cullen/Woodall LLR Turquoise: Earned 5,000,000 credits (5,002,124)PPS LLR Turquoise: Earned 5,000,000 credits (6,011,297)PSP LLR Ruby: Earned 2,000,000 credits (4,749,540)SoB LLR Turquoise: Earned 5,000,000 credits (6,751,021)SR5 LLR Turquoise: Earned 5,000,000 credits (5,228,429)SGS LLR Turquoise: Earned 5,000,000 credits (5,009,588)TRP LLR Turquoise: Earned 5,000,000 credits (5,759,074)Woodall LLR Turquoise: Earned 5,000,000 credits (5,053,050)321 Sieve Turquoise: Earned 5,000,000 credits (5,002,887)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,004,494)PPS Sieve Double Bronze: Earned 100,000,000 credits (100,111,958)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,002,980)TRP Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,010,755)AP 26/27 Emerald: Earned 50,000,000 credits (63,758,110)GFN Emerald: Earned 50,000,000 credits (81,133,311)PSA Silver: Earned 100,000 credits (442,843)
Message 127002 - Posted: 18 Feb 2019 | 1:08:39 UTC

Cool extension!

It's working great.
I had 0.21 and it was not saying that the update to 0.3 was available so I had to remove 0.21 and add 0.3 manually.
____________
My Primes
Badge Score: 2*1 + 4*2 + 5*1 + 6*12 + 9*2 + 10*1 = 115

Profile TimTProject donor
Avatar
Send message
Joined: 2 Dec 11
Posts: 330
ID: 121414
Credit: 1,188,144,414
RAC: 2,323,352
Found 4 primes in the 2018 Tour de PrimesFound 2 primes in the 2019 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (17,020,974)Cullen LLR Jade: Earned 10,000,000 credits (10,939,643)ESP LLR Jade: Earned 10,000,000 credits (10,253,423)Generalized Cullen/Woodall LLR Sapphire: Earned 20,000,000 credits (20,542,115)PPS LLR Sapphire: Earned 20,000,000 credits (23,652,169)PSP LLR Sapphire: Earned 20,000,000 credits (21,512,318)SoB LLR Sapphire: Earned 20,000,000 credits (20,586,237)SR5 LLR Jade: Earned 10,000,000 credits (10,376,832)SGS LLR Sapphire: Earned 20,000,000 credits (20,136,388)TRP LLR Jade: Earned 10,000,000 credits (13,220,801)Woodall LLR Jade: Earned 10,000,000 credits (12,770,021)321 Sieve Sapphire: Earned 20,000,000 credits (21,833,883)Cullen/Woodall Sieve (suspended) Bronze: Earned 10,000 credits (74,346)Generalized Cullen/Woodall Sieve (suspended) Jade: Earned 10,000,000 credits (10,184,525)PPS Sieve Double Gold: Earned 500,000,000 credits (565,517,666)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Silver: Earned 100,000 credits (287,513)TRP Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,074,848)AP 26/27 Double Bronze: Earned 100,000,000 credits (108,603,066)GFN Double Silver: Earned 200,000,000 credits (227,560,541)PSA Emerald: Earned 50,000,000 credits (72,018,672)
Message 127003 - Posted: 18 Feb 2019 | 1:17:01 UTC - in response to Message 127002.

excellent additions to the addon!

for what it's worth: I had the same upgrade issue, had to remove and re-add and worked perfectly!

Profile Eudy SilvaProject donor
Send message
Joined: 26 Aug 17
Posts: 930
ID: 918937
Credit: 136,423,175
RAC: 26,179
Found 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,011,118)ESP LLR Amethyst: Earned 1,000,000 credits (1,022,307)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Turquoise: Earned 5,000,000 credits (7,412,632)PSP LLR Amethyst: Earned 1,000,000 credits (1,123,300)SoB LLR Ruby: Earned 2,000,000 credits (2,113,239)SR5 LLR Ruby: Earned 2,000,000 credits (2,784,784)SGS LLR Amethyst: Earned 1,000,000 credits (1,162,202)TRP LLR Amethyst: Earned 1,000,000 credits (1,309,179)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)321 Sieve Amethyst: Earned 1,000,000 credits (1,036,805)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Emerald: Earned 50,000,000 credits (63,539,979)AP 26/27 Sapphire: Earned 20,000,000 credits (22,224,371)GFN Sapphire: Earned 20,000,000 credits (25,599,556)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 127007 - Posted: 18 Feb 2019 | 3:13:56 UTC
Last modified: 18 Feb 2019 | 3:33:19 UTC

It's good to know the add-on is also working for you guys.
Unfortunately, I don't know, yet, what might be the cause of the "update messes up, but a fresh installation works" issue.
I suspect it might have something to do with the manifest.json file (I omitted some info from there is this last version, namely the "applications" key).

Anyway, the source code is open.
To get it, go to https://addons.mozilla.org/en-US/firefox/addon/pg-1st-place-percentage/versions/.
You'll see the three versions that exist so far.
For each version you'll see either blue buttons labeled "+ Add to Firefox" or gray buttons
labeled "Remove", depending on you having already installed or not the add-on.
In any case, just right click on a button (the version in which you're interested), choose
"Save Link As" and save the XPI file (it's actually a ZIP file, with the source code + Mozilla's signature for it).

Edit:
In case it matters, the information sources I've used and am still using to deal with this add-on subject are:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions
https://www.w3schools.com/js/
besides StackOverflow and other Internet forums, where I found good answers to other people's questions about doubts that I also shared.
____________
"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 733
ID: 55391
Credit: 574,169,391
RAC: 312,764
Discovered 2 mega primesFound 1 prime in the 2018 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,477,467)Cullen LLR Gold: Earned 500,000 credits (776,297)ESP LLR Ruby: Earned 2,000,000 credits (3,120,351)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,056,207)PPS LLR Jade: Earned 10,000,000 credits (12,244,808)PSP LLR Turquoise: Earned 5,000,000 credits (5,000,271)SoB LLR Sapphire: Earned 20,000,000 credits (20,302,727)SR5 LLR Turquoise: Earned 5,000,000 credits (5,978,312)SGS LLR Ruby: Earned 2,000,000 credits (2,940,587)TRP LLR Turquoise: Earned 5,000,000 credits (7,025,303)Woodall LLR Amethyst: Earned 1,000,000 credits (1,693,614)321 Sieve Jade: Earned 10,000,000 credits (19,387,940)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,571,178)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Silver: Earned 200,000,000 credits (243,346,369)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Turquoise: Earned 5,000,000 credits (6,187,570)GFN Emerald: Earned 50,000,000 credits (50,062,736)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 127008 - Posted: 18 Feb 2019 | 3:24:30 UTC
Last modified: 18 Feb 2019 | 3:28:57 UTC

As an alternative to the Firefox Addon, try running this Perl script instead.
It fetches all result pages for a given user and reports 1ST place percentages
- for the user
- for every app
- for every host
- for every host/app combination.

It takes 3 minutes to fetch all 227 pages for my user.

The user being probed must have computers visible. In my experience, this might take effect up to 15 minutes after preferences are updated.

If the script file is named first_place.pl then run it like this:
./first_place.pl usernum

Output looks like this:

results for user 55391, fetched 227 pages Group Key ALL FIRST %FIRST user .............................. 4463 3098 69.42% app Genefer 16 v3.19 (OCLcudaGFN16) 414 118 28.50% app Genefer 17 Mega v3.19 (OCLcudaGFN17MEGA) 245 60 24.49% app Genefer 21 v3.19 (OCLcudaGFN) 9 6 66.67% app Generalized Cullen/Woodall (Sieve) v1.00 11 6 54.55% app PPS-Mega (LLR) v8.01 187 87 46.52% app PPSE (LLR) v8.01 3579 2805 78.37% app Seventeen or Bust v8.01 18 16 88.89% host 415774 1284 824 64.17% host 520214 855 485 56.73% host 520411 196 95 48.47% host 915947 11 6 54.55% host 921585 202 92 45.54% host 946990 1915 1596 83.34% host:app 415774:Genefer 17 Mega v3.19 (OCLcudaGFN17MEGA) 245 60 24.49% host:app 415774:Genefer 21 v3.19 (OCLcudaGFN) 9 6 66.67% host:app 415774:PPSE (LLR) v8.01 1020 750 73.53% host:app 415774:Seventeen or Bust v8.01 10 8 80.00% host:app 520214:Genefer 16 v3.19 (OCLcudaGFN16) 414 118 28.50% host:app 520214:PPSE (LLR) v8.01 441 367 83.22% host:app 520411:PPS-Mega (LLR) v8.01 187 87 46.52% host:app 520411:PPSE (LLR) v8.01 1 0 0.00% host:app 520411:Seventeen or Bust v8.01 8 8 100.00% host:app 915947:Generalized Cullen/Woodall (Sieve) v1.00 11 6 54.55% host:app 921585:PPSE (LLR) v8.01 202 92 45.54% host:app 946990:PPSE (LLR) v8.01 1915 1596 83.34%


Here is the script:
#!/usr/bin/perl -w use strict; use LWP::Simple qw( $ua get ); $ua->timeout(15); $ua->agent('first_place'); my %tasks; # to prevent double-counting my $all = 0; my %all_by_app; my %all_by_host; my %all_by_host_app; my $first = 0; my %first_by_app; my %first_by_host; my %first_by_host_app; my $pages = 0; sub scrape { my $url = shift; my $html = get $url || die "timed out on $url\n"; $pages++; return $html; } sub host { my $hostid = shift; my $offset = 0; my @next; do { my $html = scrape "https://www.primegrid.com/results.php?hostid=$hostid&offset=$offset&show_names=0&state=4&appid="; my @lines = split("\n", $html); my @completed_results = grep {/Completed/} @lines; my @first_results = grep {/ validated \(/} @completed_results; $all += scalar(@completed_results); $first += scalar(@first_results); for my $result (@completed_results) { $result =~ m/wuid=(.*?)"/; die "no workunit\n" unless $1; $result =~ m/resultid=(.*?)".*wuid=(.*)".*?<td>(.*?)<\/td><td>(.*?)<.*?right>(.*?)<.*?right>(.*?)<.*?right>(.*)<\/td><td>(.*?)</; my ($taskid, $wuid, $sent, $received, $runtime, $cputime, $credit, $app) = ($1, $2, $3, $4, $5, $6, $7, $8); next if exists $tasks{"$taskid"}; $tasks{"$taskid"}++; $app =~ s/^\s+//g; $app =~ s/\s+$//g; $all_by_app{$app}++; $all_by_host{"$hostid"}++; $all_by_host_app{"$hostid:$app"}++; } for my $result (@first_results) { $result =~ m/wuid=(.*?)"/; die "no workunit\n" unless $1; $result =~ m/resultid=(.*?)".*wuid=(.*)".*?<td>(.*?)<\/td><td>(.*?)<.*?right>(.*?)<.*?right>(.*?)<.*?right>(.*)<\/td><td>(.*?)</; my ($taskid, $wuid, $sent, $received, $runtime, $cputime, $credit, $app) = ($1, $2, $3, $4, $5, $6, $7, $8); $app =~ s/^\s+//g; $app =~ s/\s+$//g; $first_by_app{$app}++; $first_by_host{"$hostid"}++; $first_by_host_app{"$hostid:$app"}++; } $offset += 20; @next = grep {/Next 20/} @lines; } until (scalar(@next) == 0); } # without logging in, must access results pages through user -> hosts -> tasks by host sub user { my $userid = shift; my $html = scrape "https://www.primegrid.com/hosts_user.php?userid=$userid"; die "computers hidden" if $html =~ /user has chosen not to show information/; my @lines = split("\n", $html); my @hosts = grep {/results.php\?hostid=/} @lines; for my $hostline (@hosts) { $hostline =~ m/hostid=(.*?)>/; die "no hostid\n" unless $1; host $1; } } sub report_line { my ($group, $title, $all, $first) = @_; return unless defined $all; return if $all == 0; $first = 0 unless defined $first; printf "%-8s %-50s %5d %5d %6.2f%%\n", $group, $title, $all, $first, $first / $all * 100; } sub main { my $userid = shift @ARGV; die "syntax: $0 useridnum\n" unless defined $userid; # untaint argument $userid =~ m/(^\d+$)/; $userid = $1; die "syntax: $0 useridnum\n" unless defined $userid; user $userid; print "results for user $userid, fetched $pages pages\n"; printf "%-8s %-50s %5s %5s %7s\n", "Group", "Key", "ALL", "FIRST", "%FIRST"; print "\n"; report_line "user", "..............................", $all, $first; print "\n"; for my $key (sort keys %all_by_app) { report_line "app", $key, $all_by_app{$key}, $first_by_app{$key}; } print "\n"; for my $key (sort keys %all_by_host) { report_line "host", $key, $all_by_host{$key}, $first_by_host{$key}; } print "\n"; for my $key (sort keys %all_by_host_app) { report_line "host:app", $key, $all_by_host_app{$key}, $first_by_host_app{$key}; } } main;

Profile Eudy SilvaProject donor
Send message
Joined: 26 Aug 17
Posts: 930
ID: 918937
Credit: 136,423,175
RAC: 26,179
Found 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,011,118)ESP LLR Amethyst: Earned 1,000,000 credits (1,022,307)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Turquoise: Earned 5,000,000 credits (7,412,632)PSP LLR Amethyst: Earned 1,000,000 credits (1,123,300)SoB LLR Ruby: Earned 2,000,000 credits (2,113,239)SR5 LLR Ruby: Earned 2,000,000 credits (2,784,784)SGS LLR Amethyst: Earned 1,000,000 credits (1,162,202)TRP LLR Amethyst: Earned 1,000,000 credits (1,309,179)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)321 Sieve Amethyst: Earned 1,000,000 credits (1,036,805)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Emerald: Earned 50,000,000 credits (63,539,979)AP 26/27 Sapphire: Earned 20,000,000 credits (22,224,371)GFN Sapphire: Earned 20,000,000 credits (25,599,556)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 127009 - Posted: 18 Feb 2019 | 3:39:55 UTC - in response to Message 127008.

Thanks, composite !
Humm, PERL. I know nothing about it.
It seems very powerful.
One more thing to learn.



____________
"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

Profile 1998golferProject donor
Volunteer moderator
Volunteer tester
Send message
Joined: 4 Dec 12
Posts: 1054
ID: 183129
Credit: 1,088,040,960
RAC: 1,197,968
Discovered 1 mega primeFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,231,988)Cullen LLR Turquoise: Earned 5,000,000 credits (5,124,261)ESP LLR Turquoise: Earned 5,000,000 credits (7,887,081)Generalized Cullen/Woodall LLR Emerald: Earned 50,000,000 credits (50,656,837)PPS LLR Jade: Earned 10,000,000 credits (12,812,740)PSP LLR Sapphire: Earned 20,000,000 credits (37,320,178)SoB LLR Sapphire: Earned 20,000,000 credits (21,004,651)SR5 LLR Sapphire: Earned 20,000,000 credits (32,288,823)SGS LLR Ruby: Earned 2,000,000 credits (2,771,356)TRP LLR Turquoise: Earned 5,000,000 credits (5,867,891)Woodall LLR Ruby: Earned 2,000,000 credits (4,132,841)321 Sieve Turquoise: Earned 5,000,000 credits (5,863,434)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (27,921,016)PPS Sieve Double Silver: Earned 200,000,000 credits (393,345,135)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Turquoise: Earned 5,000,000 credits (7,990,608)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,217,057)AP 26/27 Turquoise: Earned 5,000,000 credits (5,773,404)GFN Sapphire: Earned 20,000,000 credits (21,292,469)PSA Double Silver: Earned 200,000,000 credits (420,586,383)
Message 127062 - Posted: 18 Feb 2019 | 21:47:45 UTC - in response to Message 127008.

Thanks for that script as well -- Slightly modified to work with my hidden computers, and works great :)

Glad we have so many people here to write stuff like this

Profile VatoProject donor
Volunteer tester
Avatar
Send message
Joined: 2 Feb 08
Posts: 726
ID: 18447
Credit: 129,928,805
RAC: 524,725
321 LLR Ruby: Earned 2,000,000 credits (2,406,341)Cullen LLR Ruby: Earned 2,000,000 credits (2,049,559)ESP LLR Ruby: Earned 2,000,000 credits (2,562,829)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,001,883)PPS LLR Ruby: Earned 2,000,000 credits (4,890,373)PSP LLR Ruby: Earned 2,000,000 credits (2,972,928)SoB LLR Ruby: Earned 2,000,000 credits (2,023,559)SR5 LLR Ruby: Earned 2,000,000 credits (2,298,384)SGS LLR Ruby: Earned 2,000,000 credits (2,345,439)TPS LLR (retired) Silver: Earned 100,000 credits (103,523)TRP LLR Ruby: Earned 2,000,000 credits (2,457,903)Woodall LLR Ruby: Earned 2,000,000 credits (2,048,906)321 Sieve Jade: Earned 10,000,000 credits (15,513,460)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (4,119,699)Generalized Cullen/Woodall Sieve (suspended) Jade: Earned 10,000,000 credits (10,278,995)PPS Sieve Sapphire: Earned 20,000,000 credits (23,163,759)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Ruby: Earned 2,000,000 credits (4,080,177)TRP Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,221,054)AP 26/27 Jade: Earned 10,000,000 credits (10,070,921)GFN Turquoise: Earned 5,000,000 credits (8,094,422)PSA Sapphire: Earned 20,000,000 credits (21,225,959)
Message 127073 - Posted: 18 Feb 2019 | 22:57:35 UTC - in response to Message 127062.

Yes indeed - thanks!
Made it default to my userid if none supplied as $1
Am happy with my 1st percentage of 62%
____________

Profile Rick Reynolds
Avatar
Send message
Joined: 13 Aug 10
Posts: 7215
ID: 65483
Credit: 4,082,610,682
RAC: 1,783,389
Discovered 1 mega primeFound 2 primes in the 2018 Tour de PrimesFound 2 primes in the 2019 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (3,041,348)Cullen LLR Ruby: Earned 2,000,000 credits (2,773,730)ESP LLR Turquoise: Earned 5,000,000 credits (5,174,327)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (4,781,885)PPS LLR Jade: Earned 10,000,000 credits (18,162,977)PSP LLR Ruby: Earned 2,000,000 credits (4,997,647)SoB LLR Turquoise: Earned 5,000,000 credits (5,014,268)SR5 LLR Jade: Earned 10,000,000 credits (11,169,992)SGS LLR Turquoise: Earned 5,000,000 credits (6,132,465)TRP LLR Turquoise: Earned 5,000,000 credits (6,568,836)Woodall LLR Ruby: Earned 2,000,000 credits (4,808,471)321 Sieve Emerald: Earned 50,000,000 credits (58,508,409)Cullen/Woodall Sieve (suspended) Double Bronze: Earned 100,000,000 credits (127,922,665)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (30,984,158)PPS Sieve Double Ruby: Earned 2,000,000,000 credits (2,102,544,400)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Turquoise: Earned 5,000,000 credits (8,134,964)TRP Sieve (suspended) Turquoise: Earned 5,000,000 credits (7,013,696)AP 26/27 Double Bronze: Earned 100,000,000 credits (151,648,887)GFN Double Bronze: Earned 100,000,000 credits (152,527,069)PSA Double Amethyst: Earned 1,000,000,000 credits (1,370,700,486)
Message 127074 - Posted: 18 Feb 2019 | 22:57:46 UTC - in response to Message 127062.

Thanks for that script as well -- Slightly modified to work with my hidden computers, and works great :)

Glad we have so many people here to write stuff like this


So I downloaded Strawberry Perl for windows. Copied and saved the script. Now what? I tried running it from a cmd line. No luck.

Profile TimTProject donor
Avatar
Send message
Joined: 2 Dec 11
Posts: 330
ID: 121414
Credit: 1,188,144,414
RAC: 2,323,352
Found 4 primes in the 2018 Tour de PrimesFound 2 primes in the 2019 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (17,020,974)Cullen LLR Jade: Earned 10,000,000 credits (10,939,643)ESP LLR Jade: Earned 10,000,000 credits (10,253,423)Generalized Cullen/Woodall LLR Sapphire: Earned 20,000,000 credits (20,542,115)PPS LLR Sapphire: Earned 20,000,000 credits (23,652,169)PSP LLR Sapphire: Earned 20,000,000 credits (21,512,318)SoB LLR Sapphire: Earned 20,000,000 credits (20,586,237)SR5 LLR Jade: Earned 10,000,000 credits (10,376,832)SGS LLR Sapphire: Earned 20,000,000 credits (20,136,388)TRP LLR Jade: Earned 10,000,000 credits (13,220,801)Woodall LLR Jade: Earned 10,000,000 credits (12,770,021)321 Sieve Sapphire: Earned 20,000,000 credits (21,833,883)Cullen/Woodall Sieve (suspended) Bronze: Earned 10,000 credits (74,346)Generalized Cullen/Woodall Sieve (suspended) Jade: Earned 10,000,000 credits (10,184,525)PPS Sieve Double Gold: Earned 500,000,000 credits (565,517,666)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Silver: Earned 100,000 credits (287,513)TRP Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,074,848)AP 26/27 Double Bronze: Earned 100,000,000 credits (108,603,066)GFN Double Silver: Earned 200,000,000 credits (227,560,541)PSA Emerald: Earned 50,000,000 credits (72,018,672)
Message 127077 - Posted: 19 Feb 2019 | 0:07:14 UTC - in response to Message 127074.

Thanks for that script as well -- Slightly modified to work with my hidden computers, and works great :)

Glad we have so many people here to write stuff like this


So I downloaded Strawberry Perl for windows. Copied and saved the script. Now what? I tried running it from a cmd line. No luck.


I did the same -- make sure you run it from the "Perl (command line)" application, not just a regular command prompt. also, pay attention to the line endings in the script -- when I pasted from the forum, it all went into one line, and had to insert carriage returns where needed (pay close attn if that's the case, there are some lines that dont end in semicolons...

hope this helps...

Profile Michael GoetzProject donor
Volunteer moderator
Project administrator
Project scientist
Avatar
Send message
Joined: 21 Jan 10
Posts: 13043
ID: 53948
Credit: 202,819,442
RAC: 100,122
The "Shut up already!" badge:  This loud mouth has mansplained on the forums over 10 thousand times!  Sheesh!!!Discovered the World's First GFN-19 prime!!!Discovered 1 mega primeFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (2,822,730)Cullen LLR Ruby: Earned 2,000,000 credits (2,005,249)ESP LLR Turquoise: Earned 5,000,000 credits (5,009,577)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,145,754)PPS LLR Turquoise: Earned 5,000,000 credits (9,045,989)PSP LLR Turquoise: Earned 5,000,000 credits (5,065,592)SoB LLR Sapphire: Earned 20,000,000 credits (34,221,148)SR5 LLR Turquoise: Earned 5,000,000 credits (8,293,415)SGS LLR Ruby: Earned 2,000,000 credits (2,014,138)TRP LLR Ruby: Earned 2,000,000 credits (2,737,347)Woodall LLR Ruby: Earned 2,000,000 credits (2,195,123)321 Sieve Turquoise: Earned 5,000,000 credits (5,524,872)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (4,170,256)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,059,304)PPS Sieve Sapphire: Earned 20,000,000 credits (20,110,788)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,035,522)TRP Sieve (suspended) Ruby: Earned 2,000,000 credits (2,051,121)AP 26/27 Jade: Earned 10,000,000 credits (10,114,260)GFN Emerald: Earned 50,000,000 credits (66,792,810)PSA Jade: Earned 10,000,000 credits (12,404,447)
Message 127084 - Posted: 19 Feb 2019 | 5:33:29 UTC - in response to Message 127008.

composite wrote:
As an alternative to the Firefox Addon, try running this Perl script instead.
It fetches all result pages for a given user and reports 1ST place percentages
- for the user
- for every app
- for every host
- for every host/app combination.

It takes 3 minutes to fetch all 227 pages for my user.


Magnificent!

Thank you.
____________
Please do not PM me with support questions. Ask on the forums instead. Thank you!

My lucky number is 75898524288+1

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 733
ID: 55391
Credit: 574,169,391
RAC: 312,764
Discovered 2 mega primesFound 1 prime in the 2018 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,477,467)Cullen LLR Gold: Earned 500,000 credits (776,297)ESP LLR Ruby: Earned 2,000,000 credits (3,120,351)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,056,207)PPS LLR Jade: Earned 10,000,000 credits (12,244,808)PSP LLR Turquoise: Earned 5,000,000 credits (5,000,271)SoB LLR Sapphire: Earned 20,000,000 credits (20,302,727)SR5 LLR Turquoise: Earned 5,000,000 credits (5,978,312)SGS LLR Ruby: Earned 2,000,000 credits (2,940,587)TRP LLR Turquoise: Earned 5,000,000 credits (7,025,303)Woodall LLR Amethyst: Earned 1,000,000 credits (1,693,614)321 Sieve Jade: Earned 10,000,000 credits (19,387,940)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,571,178)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Silver: Earned 200,000,000 credits (243,346,369)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Turquoise: Earned 5,000,000 credits (6,187,570)GFN Emerald: Earned 50,000,000 credits (50,062,736)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 127085 - Posted: 19 Feb 2019 | 5:38:53 UTC - in response to Message 127077.
Last modified: 19 Feb 2019 | 5:40:50 UTC

Thanks for that script as well -- Slightly modified to work with my hidden computers, and works great :)

Glad we have so many people here to write stuff like this


So I downloaded Strawberry Perl for windows. Copied and saved the script. Now what? I tried running it from a cmd line. No luck.


I did the same -- make sure you run it from the "Perl (command line)" application, not just a regular command prompt. also, pay attention to the line endings in the script -- when I pasted from the forum, it all went into one line, and had to insert carriage returns where needed (pay close attn if that's the case, there are some lines that dont end in semicolons...

hope this helps...

Or you just just run it as-is in a command shell on Linux.

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 733
ID: 55391
Credit: 574,169,391
RAC: 312,764
Discovered 2 mega primesFound 1 prime in the 2018 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,477,467)Cullen LLR Gold: Earned 500,000 credits (776,297)ESP LLR Ruby: Earned 2,000,000 credits (3,120,351)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,056,207)PPS LLR Jade: Earned 10,000,000 credits (12,244,808)PSP LLR Turquoise: Earned 5,000,000 credits (5,000,271)SoB LLR Sapphire: Earned 20,000,000 credits (20,302,727)SR5 LLR Turquoise: Earned 5,000,000 credits (5,978,312)SGS LLR Ruby: Earned 2,000,000 credits (2,940,587)TRP LLR Turquoise: Earned 5,000,000 credits (7,025,303)Woodall LLR Amethyst: Earned 1,000,000 credits (1,693,614)321 Sieve Jade: Earned 10,000,000 credits (19,387,940)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,571,178)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Silver: Earned 200,000,000 credits (243,346,369)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Turquoise: Earned 5,000,000 credits (6,187,570)GFN Emerald: Earned 50,000,000 credits (50,062,736)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 127086 - Posted: 19 Feb 2019 | 5:45:36 UTC
Last modified: 19 Feb 2019 | 5:52:44 UTC

Gaaakk! I didn't expect OCLcudaGFNEXTREME to break the report alignment of the Perl script. It has 44 characters in the app name. We better change those 2 instances of %-50s to %-51s or a few more if you feel future app names will be even longer.

The foibles of posting code into message boards instead of hosting it in a repo.
Mike, could you change that directly in my post for whoever decides to grab it?

Profile Michael GoetzProject donor
Volunteer moderator
Project administrator
Project scientist
Avatar
Send message
Joined: 21 Jan 10
Posts: 13043
ID: 53948
Credit: 202,819,442
RAC: 100,122
The "Shut up already!" badge:  This loud mouth has mansplained on the forums over 10 thousand times!  Sheesh!!!Discovered the World's First GFN-19 prime!!!Discovered 1 mega primeFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (2,822,730)Cullen LLR Ruby: Earned 2,000,000 credits (2,005,249)ESP LLR Turquoise: Earned 5,000,000 credits (5,009,577)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,145,754)PPS LLR Turquoise: Earned 5,000,000 credits (9,045,989)PSP LLR Turquoise: Earned 5,000,000 credits (5,065,592)SoB LLR Sapphire: Earned 20,000,000 credits (34,221,148)SR5 LLR Turquoise: Earned 5,000,000 credits (8,293,415)SGS LLR Ruby: Earned 2,000,000 credits (2,014,138)TRP LLR Ruby: Earned 2,000,000 credits (2,737,347)Woodall LLR Ruby: Earned 2,000,000 credits (2,195,123)321 Sieve Turquoise: Earned 5,000,000 credits (5,524,872)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (4,170,256)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,059,304)PPS Sieve Sapphire: Earned 20,000,000 credits (20,110,788)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,035,522)TRP Sieve (suspended) Ruby: Earned 2,000,000 credits (2,051,121)AP 26/27 Jade: Earned 10,000,000 credits (10,114,260)GFN Emerald: Earned 50,000,000 credits (66,792,810)PSA Jade: Earned 10,000,000 credits (12,404,447)
Message 127087 - Posted: 19 Feb 2019 | 6:12:50 UTC - in response to Message 127086.

Gaaakk! I didn't expect OCLcudaGFNEXTREME to break the report alignment of the Perl script. It has 44 characters in the app name. We better change those 2 instances of %-50s to %-51s or a few more if you feel future app names will be even longer.

The foibles of posting code into message boards instead of hosting it in a repo.
Mike, could you change that directly in my post for whoever decides to grab it?


Just repost a corrected version.

____________
Please do not PM me with support questions. Ask on the forums instead. Thank you!

My lucky number is 75898524288+1

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 733
ID: 55391
Credit: 574,169,391
RAC: 312,764
Discovered 2 mega primesFound 1 prime in the 2018 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,477,467)Cullen LLR Gold: Earned 500,000 credits (776,297)ESP LLR Ruby: Earned 2,000,000 credits (3,120,351)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,056,207)PPS LLR Jade: Earned 10,000,000 credits (12,244,808)PSP LLR Turquoise: Earned 5,000,000 credits (5,000,271)SoB LLR Sapphire: Earned 20,000,000 credits (20,302,727)SR5 LLR Turquoise: Earned 5,000,000 credits (5,978,312)SGS LLR Ruby: Earned 2,000,000 credits (2,940,587)TRP LLR Turquoise: Earned 5,000,000 credits (7,025,303)Woodall LLR Amethyst: Earned 1,000,000 credits (1,693,614)321 Sieve Jade: Earned 10,000,000 credits (19,387,940)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,571,178)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Silver: Earned 200,000,000 credits (243,346,369)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Turquoise: Earned 5,000,000 credits (6,187,570)GFN Emerald: Earned 50,000,000 credits (50,062,736)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 127089 - Posted: 19 Feb 2019 | 7:35:41 UTC - in response to Message 127087.
Last modified: 19 Feb 2019 | 7:39:13 UTC

Gaaakk! I didn't expect OCLcudaGFNEXTREME to break the report alignment of the Perl script. It has 44 characters in the app name. We better change those 2 instances of %-50s to %-51s or a few more if you feel future app names will be even longer.

The foibles of posting code into message boards instead of hosting it in a repo.
Mike, could you change that directly in my post for whoever decides to grab it?


Just repost a corrected version.

Alright, you twisted my arm, so I might as well add a feature, and demonstrate some Perl while I'm at it.
This version has a wider field for the app name and also ranks productivity in decreasing order of firsts.
For Perl newbies, check out the code line that makes the wider title for the "user" group in sub main().

#!/usr/bin/perl -w use strict; use LWP::Simple qw( $ua get ); $ua->timeout(15); $ua->agent('first_place'); my %tasks; # to prevent double-counting my $all = 0; my %all_by_app; my %all_by_host; my %all_by_host_app; my $first = 0; my %first_by_app; my %first_by_host; my %first_by_host_app; my $pages = 0; my %report_table; sub scrape { my $url = shift; my $html = get $url || die "timed out on $url\n"; $pages++; return $html; } sub host { my $hostid = shift; my $offset = 0; my @next; do { my $html = scrape "https://www.primegrid.com/results.php?hostid=$hostid&offset=$offset&show_names=0&state=4&appid="; my @lines = split("\n", $html); my @completed_results = grep {/Completed/} @lines; my @first_results = grep {/ validated \(/} @completed_results; $all += scalar(@completed_results); $first += scalar(@first_results); for my $result (@completed_results) { $result =~ m/wuid=(.*?)"/; die "no workunit\n" unless $1; $result =~ m/resultid=(.*?)".*wuid=(.*)".*?<td>(.*?)<\/td><td>(.*?)<.*?right>(.*?)<.*?right>(.*?)<.*?right>(.*)<\/td><td>(.*?)</; my ($taskid, $wuid, $sent, $received, $runtime, $cputime, $credit, $app) = ($1, $2, $3, $4, $5, $6, $7, $8); next if exists $tasks{"$taskid"}; $tasks{"$taskid"}++; $app =~ s/^\s+//g; $app =~ s/\s+$//g; $all_by_app{$app}++; $all_by_host{"$hostid"}++; $all_by_host_app{"$hostid:$app"}++; } for my $result (@first_results) { $result =~ m/wuid=(.*?)"/; die "no workunit\n" unless $1; $result =~ m/resultid=(.*?)".*wuid=(.*)".*?<td>(.*?)<\/td><td>(.*?)<.*?right>(.*?)<.*?right>(.*?)<.*?right>(.*)<\/td><td>(.*?)</; my ($taskid, $wuid, $sent, $received, $runtime, $cputime, $credit, $app) = ($1, $2, $3, $4, $5, $6, $7, $8); $app =~ s/^\s+//g; $app =~ s/\s+$//g; $first_by_app{$app}++; $first_by_host{"$hostid"}++; $first_by_host_app{"$hostid:$app"}++; } $offset += 20; @next = grep {/Next 20/} @lines; } until (scalar(@next) == 0); } # without logging in, must access results pages through user -> hosts -> tasks by host sub user { my $userid = shift; my $html = scrape "https://www.primegrid.com/hosts_user.php?userid=$userid"; die "computers hidden" if $html =~ /user has chosen not to show information/; my @lines = split("\n", $html); my @hosts = grep {/results.php\?hostid=/} @lines; for my $hostline (@hosts) { $hostline =~ m/hostid=(.*?)>/; die "no hostid\n" unless $1; host $1; } } sub report_line { my ($group, $title, $all, $first) = @_; return unless defined $all; return if $all == 0; $first = 0 unless defined $first; my $percent = $first / $all * 100; $report_table{$title} = sprintf "%06d %06.2f %-8s %-52s %5d %5d %6.2f%%\n", $first, $percent, $group, $title, $all, $first, $percent; } # print the group in decreasing order of FIRST (using %FIRST to break ties) sub print_report { for my $key (sort { $b cmp $a } values %report_table) { my (undef, undef, $line) = split ' ', $key, 3; print $line; } undef %report_table; } sub main { my $userid = shift @ARGV; die "syntax: $0 useridnum\n" unless defined $userid; # untaint argument $userid =~ m/(^\d+$)/; $userid = $1; die "syntax: $0 useridnum\n" unless defined $userid; user $userid; print "results for user $userid, fetched $pages pages\n\n"; printf "%-8s %-52s %5s %5s %7s\n\n", "Group", "Key", "ALL", "FIRST", "%FIRST"; report_line "user", '.' x 52, $all, $first; print_report; print "\n"; for my $key (keys %all_by_app) { report_line "app", $key, $all_by_app{$key}, $first_by_app{$key}; } print_report; print "\n"; for my $key (keys %all_by_host) { report_line "host", $key, $all_by_host{$key}, $first_by_host{$key}; } print_report; print "\n"; for my $key (keys %all_by_host_app) { report_line "host:app", $key, $all_by_host_app{$key}, $first_by_host_app{$key}; } print_report; } main;

Profile Michael GoetzProject donor
Volunteer moderator
Project administrator
Project scientist
Avatar
Send message
Joined: 21 Jan 10
Posts: 13043
ID: 53948
Credit: 202,819,442
RAC: 100,122
The "Shut up already!" badge:  This loud mouth has mansplained on the forums over 10 thousand times!  Sheesh!!!Discovered the World's First GFN-19 prime!!!Discovered 1 mega primeFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (2,822,730)Cullen LLR Ruby: Earned 2,000,000 credits (2,005,249)ESP LLR Turquoise: Earned 5,000,000 credits (5,009,577)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,145,754)PPS LLR Turquoise: Earned 5,000,000 credits (9,045,989)PSP LLR Turquoise: Earned 5,000,000 credits (5,065,592)SoB LLR Sapphire: Earned 20,000,000 credits (34,221,148)SR5 LLR Turquoise: Earned 5,000,000 credits (8,293,415)SGS LLR Ruby: Earned 2,000,000 credits (2,014,138)TRP LLR Ruby: Earned 2,000,000 credits (2,737,347)Woodall LLR Ruby: Earned 2,000,000 credits (2,195,123)321 Sieve Turquoise: Earned 5,000,000 credits (5,524,872)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (4,170,256)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,059,304)PPS Sieve Sapphire: Earned 20,000,000 credits (20,110,788)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,035,522)TRP Sieve (suspended) Ruby: Earned 2,000,000 credits (2,051,121)AP 26/27 Jade: Earned 10,000,000 credits (10,114,260)GFN Emerald: Earned 50,000,000 credits (66,792,810)PSA Jade: Earned 10,000,000 credits (12,404,447)
Message 127101 - Posted: 19 Feb 2019 | 14:14:38 UTC - in response to Message 127089.
Last modified: 19 Feb 2019 | 15:40:45 UTC

Composite,

I prefer to assume all my computers are 100% reliable, and treat "waiting for validation" as a "(1st)".

I did this by making this small modification to the host subroutine:

my $html = scrape "https://www.primegrid.com/results.php?hostid=$hostid&offset=$offset&show_names=0&state=0&appid=";

and

my @first_results = grep {/ validated \(| waiting for /} @completed_results;


Are there any side effects you're aware of if I do this?
____________
Please do not PM me with support questions. Ask on the forums instead. Thank you!

My lucky number is 75898524288+1

HonzaProject donor
Volunteer moderator
Volunteer tester
Project scientist
Send message
Joined: 15 Aug 05
Posts: 1844
ID: 352
Credit: 2,646,199,148
RAC: 1,263,371
Discovered 5 mega primesEliminated 3 conjecture "k"sFound 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2018 Tour de Primes Mountain Stage2019 Tour de Primes largest primeFound 4 primes in the 2019 Tour de PrimesFound 1 mega prime in the 2019 Tour de PrimesFound 1 prime in the 2019 Tour de Primes Mountain Stage321 LLR Emerald: Earned 50,000,000 credits (53,741,535)Cullen LLR Emerald: Earned 50,000,000 credits (50,296,190)ESP LLR Emerald: Earned 50,000,000 credits (50,853,190)Generalized Cullen/Woodall LLR Emerald: Earned 50,000,000 credits (50,309,119)PPS LLR Double Bronze: Earned 100,000,000 credits (100,184,938)PSP LLR Sapphire: Earned 20,000,000 credits (48,010,430)SoB LLR Emerald: Earned 50,000,000 credits (67,865,553)SR5 LLR Emerald: Earned 50,000,000 credits (50,320,316)SGS LLR Sapphire: Earned 20,000,000 credits (29,975,492)TPS LLR (retired) Bronze: Earned 10,000 credits (43,033)TRP LLR Emerald: Earned 50,000,000 credits (57,441,313)Woodall LLR Emerald: Earned 50,000,000 credits (50,956,094)321 Sieve Emerald: Earned 50,000,000 credits (50,611,470)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (4,142,109)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,504,945)PPS Sieve Double Gold: Earned 500,000,000 credits (504,377,255)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,288,222)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,149,354)AP 26/27 Double Silver: Earned 200,000,000 credits (214,118,887)GFN Double Gold: Earned 500,000,000 credits (636,804,790)PSA Double Gold: Earned 500,000,000 credits (535,218,662)
Message 127107 - Posted: 19 Feb 2019 | 14:52:57 UTC - in response to Message 127089.

Alright, you twisted my arm, so I might as well add a feature, and demonstrate some Perl while I'm at it.
This version has a wider field for the app name and also ranks productivity in decreasing order of firsts.
For Perl newbies, check out the code line that makes the wider title for the "user" group in sub main().


Out of curiosity, I gave it a try.
Very nice.

I would like to see any progress indicator, like pages processed.
When processing like 10k tasks/500 pages, it takes a while and can't say if it is stucked or doing something.


____________
My stats
Badge score: 1*1 + 5*1 + 7*1 + 8*8 + 9*7 + 11*1 + 12*3 = 187

Profile Rick Reynolds
Avatar
Send message
Joined: 13 Aug 10
Posts: 7215
ID: 65483
Credit: 4,082,610,682
RAC: 1,783,389
Discovered 1 mega primeFound 2 primes in the 2018 Tour de PrimesFound 2 primes in the 2019 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (3,041,348)Cullen LLR Ruby: Earned 2,000,000 credits (2,773,730)ESP LLR Turquoise: Earned 5,000,000 credits (5,174,327)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (4,781,885)PPS LLR Jade: Earned 10,000,000 credits (18,162,977)PSP LLR Ruby: Earned 2,000,000 credits (4,997,647)SoB LLR Turquoise: Earned 5,000,000 credits (5,014,268)SR5 LLR Jade: Earned 10,000,000 credits (11,169,992)SGS LLR Turquoise: Earned 5,000,000 credits (6,132,465)TRP LLR Turquoise: Earned 5,000,000 credits (6,568,836)Woodall LLR Ruby: Earned 2,000,000 credits (4,808,471)321 Sieve Emerald: Earned 50,000,000 credits (58,508,409)Cullen/Woodall Sieve (suspended) Double Bronze: Earned 100,000,000 credits (127,922,665)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (30,984,158)PPS Sieve Double Ruby: Earned 2,000,000,000 credits (2,102,544,400)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Turquoise: Earned 5,000,000 credits (8,134,964)TRP Sieve (suspended) Turquoise: Earned 5,000,000 credits (7,013,696)AP 26/27 Double Bronze: Earned 100,000,000 credits (151,648,887)GFN Double Bronze: Earned 100,000,000 credits (152,527,069)PSA Double Amethyst: Earned 1,000,000,000 credits (1,370,700,486)
Message 127108 - Posted: 19 Feb 2019 | 15:20:48 UTC - in response to Message 127077.

I did the same -- make sure you run it from the "Perl (command line)" application, not just a regular command prompt. also, pay attention to the line endings in the script -- when I pasted from the forum, it all went into one line, and had to insert carriage returns where needed (pay close attn if that's the case, there are some lines that dont end in semicolons...

hope this helps...


Thanks, I downloaded and installed notepad++ and formatted the saved file as you mentioned.

I ran it from a cmd prompt and it worked really well.

@composite - this is very nice - thank you

Cheers Rick
____________
@AggieThePew

Profile Eudy SilvaProject donor
Send message
Joined: 26 Aug 17
Posts: 930
ID: 918937
Credit: 136,423,175
RAC: 26,179
Found 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,011,118)ESP LLR Amethyst: Earned 1,000,000 credits (1,022,307)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Turquoise: Earned 5,000,000 credits (7,412,632)PSP LLR Amethyst: Earned 1,000,000 credits (1,123,300)SoB LLR Ruby: Earned 2,000,000 credits (2,113,239)SR5 LLR Ruby: Earned 2,000,000 credits (2,784,784)SGS LLR Amethyst: Earned 1,000,000 credits (1,162,202)TRP LLR Amethyst: Earned 1,000,000 credits (1,309,179)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)321 Sieve Amethyst: Earned 1,000,000 credits (1,036,805)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Emerald: Earned 50,000,000 credits (63,539,979)AP 26/27 Sapphire: Earned 20,000,000 credits (22,224,371)GFN Sapphire: Earned 20,000,000 credits (25,599,556)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 127111 - Posted: 19 Feb 2019 | 16:31:44 UTC
Last modified: 19 Feb 2019 | 16:36:27 UTC

Although I'm not sure the list below is complete. it might still be useful.
(I believe some of the status apply to the server side only and will not show up on BOINC Manager nor in a webpage.)

Possible task status:
1 - In progress
2 - Completed and validated
3 - Completed and validated (1st)
4 - Completed, waiting for validation
5 - Completed, validation inconclusive
6 - Completed, marked as invalid
7 - Completed, too late to validate
8 - Completed, can't validate
9 - Error while computing
10 - Error while downloading
11 - Error while uploading
12 - Timed out - no response
13 - Aborted by user
14 - Cancelled by server

Got some of these status from the BOINC source code (in in html/inc/results.inc):
case VALIDATE_STATE_INIT: return tra("Completed, waiting for validation");
case VALIDATE_STATE_VALID: return tra("Completed and validated");
case VALIDATE_STATE_INVALID: return tra("Completed, marked as invalid");
case VALIDATE_STATE_NO_CHECK: return tra("Completed, can't validate");
1case VALIDATE_STATE_INCONCLUSIVE: return tra("Completed, validation inconclusive");
case VALIDATE_STATE_TOO_LATE: return tra("Completed, too late to validate");

case RESULT_FILES_DOWNLOADING: return tra("Error while downloading");
case RESULT_FILES_DOWNLOADED:
case RESULT_COMPUTE_ERROR: return tra("Error while computing");
case RESULT_FILES_UPLOADING: return tra("Error while uploading");
case RESULT_ABORTED: return tra("Aborted");
case RESULT_UPLOAD_FAILED: return tra("Upload failed");

case RESULT_OUTCOME_NO_REPLY: return tra("Timed out - no response");
case RESULT_OUTCOME_DIDNT_NEED: return tra("Didn't need");
case RESULT_OUTCOME_VALIDATE_ERROR: return tra("Validate error");
case RESULT_OUTCOME_CLIENT_DETACHED: return tra("Abandoned");
____________
"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 733
ID: 55391
Credit: 574,169,391
RAC: 312,764
Discovered 2 mega primesFound 1 prime in the 2018 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,477,467)Cullen LLR Gold: Earned 500,000 credits (776,297)ESP LLR Ruby: Earned 2,000,000 credits (3,120,351)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,056,207)PPS LLR Jade: Earned 10,000,000 credits (12,244,808)PSP LLR Turquoise: Earned 5,000,000 credits (5,000,271)SoB LLR Sapphire: Earned 20,000,000 credits (20,302,727)SR5 LLR Turquoise: Earned 5,000,000 credits (5,978,312)SGS LLR Ruby: Earned 2,000,000 credits (2,940,587)TRP LLR Turquoise: Earned 5,000,000 credits (7,025,303)Woodall LLR Amethyst: Earned 1,000,000 credits (1,693,614)321 Sieve Jade: Earned 10,000,000 credits (19,387,940)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,571,178)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Silver: Earned 200,000,000 credits (243,346,369)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Turquoise: Earned 5,000,000 credits (6,187,570)GFN Emerald: Earned 50,000,000 credits (50,062,736)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 127140 - Posted: 19 Feb 2019 | 20:17:27 UTC - in response to Message 127101.
Last modified: 19 Feb 2019 | 20:52:29 UTC

Composite,

I prefer to assume all my computers are 100% reliable, and treat "waiting for validation" as a "(1st)".

I did this by making this small modification to the host subroutine:

my $html = scrape "https://www.primegrid.com/results.php?hostid=$hostid&offset=$offset&show_names=0&state=0&appid=";

and

my @first_results = grep {/ validated \(| waiting for /} @completed_results;


Are there any side effects you're aware of if I do this?


None. @first_results is just a filtered subset of @completed_results. Indeed, your rendition makes more sense.

There is a race condition when fetching pages. A task seen in one state might have a different state if it is bumped onto the following page and seen again. This is resolved simply by ignoring the task when we see it again. We have to draw the line somewhere.

As for the URL, I did have state 0 in the initial version but that experiment failed to navigate directly to the task list without passing via user and hosts, so I snarfed the URL from an older script and forgot to change the state to 0 as I intended. The grep on /Completed/ was designed to catch "Completed, waiting for validation" as well as "Completed and validated [(1st)]". Good catch - I missed the waiting tasks in the second grep even if I had used state 0.

So incorporating your changes, the better-than-yesterday version of this script is now

#!/usr/bin/perl -w use strict; use LWP::Simple qw( $ua get ); $ua->timeout(15); $ua->agent('first_place'); my %tasks; # to prevent double-counting and the race condition my $all = 0; my %all_by_app; my %all_by_host; my %all_by_host_app; my $first = 0; my %first_by_app; my %first_by_host; my %first_by_host_app; my $pages = 0; my %report_table; sub scrape { my $url = shift; my $html = get $url || die "timed out on $url\n"; $pages++; return $html; } sub host { my $hostid = shift; my $offset = 0; my @next; do { my $html = scrape "https://www.primegrid.com/results.php?hostid=$hostid&offset=$offset&show_names=0&state=0&appid="; my @lines = split("\n", $html); my @completed_results = grep {/Completed/} @lines; my @first_results = grep {/ validated \(| waiting for/} @completed_results; $all += scalar(@completed_results); $first += scalar(@first_results); for my $result (@completed_results) { $result =~ m/wuid=(.*?)"/; die "no workunit\n" unless $1; $result =~ m/resultid=(.*?)".*wuid=(.*)".*?<td>(.*?)<\/td><td>(.*?)<.*?right>(.*?)<.*?right>(.*?)<.*?right>(.*)<\/td><td>(.*?)</; my ($taskid, $wuid, $sent, $received, $runtime, $cputime, $credit, $app) = ($1, $2, $3, $4, $5, $6, $7, $8); next if exists $tasks{"$taskid"}; $tasks{"$taskid"}++; $app =~ s/^\s+//g; $app =~ s/\s+$//g; $all_by_app{$app}++; $all_by_host{"$hostid"}++; $all_by_host_app{"$hostid:$app"}++; } for my $result (@first_results) { $result =~ m/wuid=(.*?)"/; die "no workunit\n" unless $1; $result =~ m/resultid=(.*?)".*wuid=(.*)".*?<td>(.*?)<\/td><td>(.*?)<.*?right>(.*?)<.*?right>(.*?)<.*?right>(.*)<\/td><td>(.*?)</; my ($taskid, $wuid, $sent, $received, $runtime, $cputime, $credit, $app) = ($1, $2, $3, $4, $5, $6, $7, $8); $app =~ s/^\s+//g; $app =~ s/\s+$//g; $first_by_app{$app}++; $first_by_host{"$hostid"}++; $first_by_host_app{"$hostid:$app"}++; } $offset += 20; @next = grep {/Next 20/} @lines; } until (scalar(@next) == 0); } # without logging in, must access results pages through user -> hosts -> tasks by host sub user { my $userid = shift; my $html = scrape "https://www.primegrid.com/hosts_user.php?userid=$userid"; die "computers hidden" if $html =~ /user has chosen not to show information/; my @lines = split("\n", $html); my @hosts = grep {/results.php\?hostid=/} @lines; for my $hostline (@hosts) { $hostline =~ m/hostid=(.*?)>/; die "no hostid\n" unless $1; host $1; } } sub report_line { my ($group, $title, $all, $first) = @_; return unless defined $all; return if $all == 0; $first = 0 unless defined $first; my $percent = $first / $all * 100; $report_table{$title} = sprintf "%06d %06.2f %-8s %-52s %5d %5d %6.2f%%\n", $first, $percent, $group, $title, $all, $first, $percent; } # print the group in decreasing order of FIRST (using %FIRST to break ties) sub print_report { for my $key (sort { $b cmp $a } values %report_table) { my (undef, undef, $line) = split ' ', $key, 3; print $line; } undef %report_table; } sub main { my $userid = shift @ARGV; die "syntax: $0 useridnum\n" unless defined $userid; # untaint argument $userid =~ m/(^\d+$)/; $userid = $1; die "syntax: $0 useridnum\n" unless defined $userid; user $userid; print "results for user $userid, fetched $pages pages\n\n"; printf "%-8s %-52s %5s %5s %7s\n\n", "Group", "Key", "ALL", "FIRST", "%FIRST"; report_line "user", '.' x 52, $all, $first; print_report; print "\n"; for my $key (keys %all_by_app) { report_line "app", $key, $all_by_app{$key}, $first_by_app{$key}; } print_report; print "\n"; for my $key (keys %all_by_host) { report_line "host", $key, $all_by_host{$key}, $first_by_host{$key}; } print_report; print "\n"; for my $key (keys %all_by_host_app) { report_line "host:app", $key, $all_by_host_app{$key}, $first_by_host_app{$key}; } print_report; } main;

IbaiPProject donor
Avatar
Send message
Joined: 8 May 16
Posts: 27
ID: 446502
Credit: 136,907,421
RAC: 122,357
321 LLR Amethyst: Earned 1,000,000 credits (1,324,908)Cullen LLR Amethyst: Earned 1,000,000 credits (1,110,612)ESP LLR Amethyst: Earned 1,000,000 credits (1,231,595)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,530,305)PPS LLR Jade: Earned 10,000,000 credits (12,253,286)PSP LLR Amethyst: Earned 1,000,000 credits (1,721,275)SoB LLR Ruby: Earned 2,000,000 credits (3,121,187)SR5 LLR Amethyst: Earned 1,000,000 credits (1,192,178)SGS LLR Amethyst: Earned 1,000,000 credits (1,038,750)TRP LLR Amethyst: Earned 1,000,000 credits (1,776,730)Woodall LLR Amethyst: Earned 1,000,000 credits (1,055,235)321 Sieve Jade: Earned 10,000,000 credits (11,531,096)Generalized Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (2,017,933)PPS Sieve Sapphire: Earned 20,000,000 credits (48,710,950)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,017,074)TRP Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,033,942)AP 26/27 Ruby: Earned 2,000,000 credits (2,118,532)GFN Sapphire: Earned 20,000,000 credits (41,071,004)PSA Ruby: Earned 2,000,000 credits (2,050,830)
Message 127152 - Posted: 19 Feb 2019 | 22:32:59 UTC

Very nice Composite, works fine in Cygwin in a Windows machine.

I get 67% overall, not bad.

Profile Eudy SilvaProject donor
Send message
Joined: 26 Aug 17
Posts: 930
ID: 918937
Credit: 136,423,175
RAC: 26,179
Found 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de Primes321 LLR Amethyst: Earned 1,000,000 credits (1,012,503)Cullen LLR Amethyst: Earned 1,000,000 credits (1,011,118)ESP LLR Amethyst: Earned 1,000,000 credits (1,022,307)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,004,746)PPS LLR Turquoise: Earned 5,000,000 credits (7,412,632)PSP LLR Amethyst: Earned 1,000,000 credits (1,123,300)SoB LLR Ruby: Earned 2,000,000 credits (2,113,239)SR5 LLR Ruby: Earned 2,000,000 credits (2,784,784)SGS LLR Amethyst: Earned 1,000,000 credits (1,162,202)TRP LLR Amethyst: Earned 1,000,000 credits (1,309,179)Woodall LLR Amethyst: Earned 1,000,000 credits (1,001,901)321 Sieve Amethyst: Earned 1,000,000 credits (1,036,805)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,005,331)PPS Sieve Emerald: Earned 50,000,000 credits (63,539,979)AP 26/27 Sapphire: Earned 20,000,000 credits (22,224,371)GFN Sapphire: Earned 20,000,000 credits (25,599,556)PSA Ruby: Earned 2,000,000 credits (2,059,222)
Message 127155 - Posted: 20 Feb 2019 | 0:02:29 UTC - in response to Message 127140.

composite wrote:
...
So incorporating your changes, the better-than-yesterday version of this script is now
...

I finally got the time to test it.
It's so cool !
I grabbed a portable version of Strawberry Perl from http://strawberryperl.com/releases.html (huge file, 141 MB) and the script worked flawlessly.
Thank you, composite !

____________
"Accidit in puncto, quod non contingit in anno."
Something that does not occur in a year may, perchance, happen in a moment.

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 733
ID: 55391
Credit: 574,169,391
RAC: 312,764
Discovered 2 mega primesFound 1 prime in the 2018 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,477,467)Cullen LLR Gold: Earned 500,000 credits (776,297)ESP LLR Ruby: Earned 2,000,000 credits (3,120,351)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,056,207)PPS LLR Jade: Earned 10,000,000 credits (12,244,808)PSP LLR Turquoise: Earned 5,000,000 credits (5,000,271)SoB LLR Sapphire: Earned 20,000,000 credits (20,302,727)SR5 LLR Turquoise: Earned 5,000,000 credits (5,978,312)SGS LLR Ruby: Earned 2,000,000 credits (2,940,587)TRP LLR Turquoise: Earned 5,000,000 credits (7,025,303)Woodall LLR Amethyst: Earned 1,000,000 credits (1,693,614)321 Sieve Jade: Earned 10,000,000 credits (19,387,940)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,571,178)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Silver: Earned 200,000,000 credits (243,346,369)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Turquoise: Earned 5,000,000 credits (6,187,570)GFN Emerald: Earned 50,000,000 credits (50,062,736)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 127164 - Posted: 20 Feb 2019 | 2:31:49 UTC - in response to Message 127155.

composite wrote:
...
So incorporating your changes, the better-than-yesterday version of this script is now
...

I finally got the time to test it.
It's so cool !
I grabbed a portable version of Strawberry Perl from http://strawberryperl.com/releases.html (huge file, 141 MB) and the script worked flawlessly.
Thank you, composite !

I'm glad to hear it works in Windows.
It should also work with the Community Editions of ActivePerl for Windows and Macintosh from https://www.activestate.com/products/activeperl/downloads.

I haven't written anything for Windows since shortly after I switched to writing for Linux in 2006.
I only know that if a Perl script works in Linux most likely it will work in Windows unless I've buried Linux commands in there.

One of these years I may learn Python since that's where numerical analysis with Big Data has gone.

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 733
ID: 55391
Credit: 574,169,391
RAC: 312,764
Discovered 2 mega primesFound 1 prime in the 2018 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,477,467)Cullen LLR Gold: Earned 500,000 credits (776,297)ESP LLR Ruby: Earned 2,000,000 credits (3,120,351)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,056,207)PPS LLR Jade: Earned 10,000,000 credits (12,244,808)PSP LLR Turquoise: Earned 5,000,000 credits (5,000,271)SoB LLR Sapphire: Earned 20,000,000 credits (20,302,727)SR5 LLR Turquoise: Earned 5,000,000 credits (5,978,312)SGS LLR Ruby: Earned 2,000,000 credits (2,940,587)TRP LLR Turquoise: Earned 5,000,000 credits (7,025,303)Woodall LLR Amethyst: Earned 1,000,000 credits (1,693,614)321 Sieve Jade: Earned 10,000,000 credits (19,387,940)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,571,178)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Silver: Earned 200,000,000 credits (243,346,369)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Turquoise: Earned 5,000,000 credits (6,187,570)GFN Emerald: Earned 50,000,000 credits (50,062,736)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 127165 - Posted: 20 Feb 2019 | 2:53:13 UTC

The script could be made significantly faster by parsing @completed_results only once and filtering that form to obtain @first_results.

I leave this as an exercise for the interested reader.

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 733
ID: 55391
Credit: 574,169,391
RAC: 312,764
Discovered 2 mega primesFound 1 prime in the 2018 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,477,467)Cullen LLR Gold: Earned 500,000 credits (776,297)ESP LLR Ruby: Earned 2,000,000 credits (3,120,351)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,056,207)PPS LLR Jade: Earned 10,000,000 credits (12,244,808)PSP LLR Turquoise: Earned 5,000,000 credits (5,000,271)SoB LLR Sapphire: Earned 20,000,000 credits (20,302,727)SR5 LLR Turquoise: Earned 5,000,000 credits (5,978,312)SGS LLR Ruby: Earned 2,000,000 credits (2,940,587)TRP LLR Turquoise: Earned 5,000,000 credits (7,025,303)Woodall LLR Amethyst: Earned 1,000,000 credits (1,693,614)321 Sieve Jade: Earned 10,000,000 credits (19,387,940)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,571,178)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Silver: Earned 200,000,000 credits (243,346,369)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Turquoise: Earned 5,000,000 credits (6,187,570)GFN Emerald: Earned 50,000,000 credits (50,062,736)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 127168 - Posted: 20 Feb 2019 | 5:07:12 UTC
Last modified: 20 Feb 2019 | 5:46:25 UTC

Hmmm. The change is only 3% faster (if that, even), so not really significant.

I am reposting the entire script with the change for speedup because it also includes a correction.
For the speedup, notice the added parenthesis pair in the long pattern string, and the addition of $state variable accepting the matched text.

The correction is this.
Using $all += scalar(@completed_results) may be double-counting a task across different pages.
Incrementing $all within the loop after the %task existence test fixes that, but it makes @completed_results a used-once variable.
So then I eliminated that variable too.

I also moved the job of trimming spaces around $app into the long pattern string.

#!/usr/bin/perl -w use strict; use LWP::Simple qw( $ua get ); $ua->timeout(15); $ua->agent('first_place'); my %tasks; # to prevent double-counting and the race condition my $all = 0; my %all_by_app; my %all_by_host; my %all_by_host_app; my $first = 0; my %first_by_app; my %first_by_host; my %first_by_host_app; my $pages = 0; my %report_table; sub scrape { my $url = shift; my $html = get $url || die "timed out on $url\n"; $pages++; return $html; } sub host { my $hostid = shift; my $offset = 0; my @next; do { my $html = scrape "https://www.primegrid.com/results.php?hostid=$hostid&offset=$offset&show_names=0&state=0&appid="; my @lines = split("\n", $html); for my $result (grep {/Completed/} @lines) { $result =~ m/wuid=(.*?)"/; die "no workunit\n" unless $1; $result =~ m/resultid=(.*?)".*wuid=(.*)".*?<td>(.*?)<\/td><td>(.*?)<(.*?)right>(.*?)<.*?right>(.*?)<.*?right>(.*)<\/td><td>\s*(.*?)\s*</; my ($taskid, $wuid, $sent, $received, $state, $runtime, $cputime, $credit, $app) = ($1, $2, $3, $4, $5, $6, $7, $8, $9); next if exists $tasks{"$taskid"}; $tasks{"$taskid"}++; $all++; $all_by_app{$app}++; $all_by_host{"$hostid"}++; $all_by_host_app{"$hostid:$app"}++; if ($state =~ / validated \(| waiting for/) { $first++; $first_by_app{$app}++; $first_by_host{"$hostid"}++; $first_by_host_app{"$hostid:$app"}++; } } $offset += 20; @next = grep {/Next 20/} @lines; } until (scalar(@next) == 0); } # without logging in, must access results pages through user -> hosts -> tasks by host sub user { my $userid = shift; my $html = scrape "https://www.primegrid.com/hosts_user.php?userid=$userid"; die "computers hidden" if $html =~ /user has chosen not to show information/; my @lines = split("\n", $html); my @hosts = grep {/results.php\?hostid=/} @lines; for my $hostline (@hosts) { $hostline =~ m/hostid=(.*?)>/; die "no hostid\n" unless $1; host $1; } } sub report_line { my ($group, $title, $all, $first) = @_; return unless defined $all; return if $all == 0; $first = 0 unless defined $first; my $percent = $first / $all * 100; $report_table{$title} = sprintf "%06d %06.2f %-8s %-52s %5d %5d %6.2f%%\n", $first, $percent, $group, $title, $all, $first, $percent; } # print the group in decreasing order of FIRST (using %FIRST to break ties) sub print_report { for my $key (sort { $b cmp $a } values %report_table) { my (undef, undef, $line) = split ' ', $key, 3; print $line; } undef %report_table; } sub main { my $userid = shift @ARGV; die "syntax: $0 useridnum\n" unless defined $userid; # untaint argument $userid =~ m/(^\d+$)/; $userid = $1; die "syntax: $0 useridnum\n" unless defined $userid; user $userid; print "results for user $userid, fetched $pages pages\n\n"; printf "%-8s %-52s %5s %5s %7s\n\n", "Group", "Key", "ALL", "FIRST", "%FIRST"; report_line "user", '.' x 52, $all, $first; print_report; print "\n"; for my $key (keys %all_by_app) { report_line "app", $key, $all_by_app{$key}, $first_by_app{$key}; } print_report; print "\n"; for my $key (keys %all_by_host) { report_line "host", $key, $all_by_host{$key}, $first_by_host{$key}; } print_report; print "\n"; for my $key (keys %all_by_host_app) { report_line "host:app", $key, $all_by_host_app{$key}, $first_by_host_app{$key}; } print_report; } main;

Profile Rick Reynolds
Avatar
Send message
Joined: 13 Aug 10
Posts: 7215
ID: 65483
Credit: 4,082,610,682
RAC: 1,783,389
Discovered 1 mega primeFound 2 primes in the 2018 Tour de PrimesFound 2 primes in the 2019 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (3,041,348)Cullen LLR Ruby: Earned 2,000,000 credits (2,773,730)ESP LLR Turquoise: Earned 5,000,000 credits (5,174,327)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (4,781,885)PPS LLR Jade: Earned 10,000,000 credits (18,162,977)PSP LLR Ruby: Earned 2,000,000 credits (4,997,647)SoB LLR Turquoise: Earned 5,000,000 credits (5,014,268)SR5 LLR Jade: Earned 10,000,000 credits (11,169,992)SGS LLR Turquoise: Earned 5,000,000 credits (6,132,465)TRP LLR Turquoise: Earned 5,000,000 credits (6,568,836)Woodall LLR Ruby: Earned 2,000,000 credits (4,808,471)321 Sieve Emerald: Earned 50,000,000 credits (58,508,409)Cullen/Woodall Sieve (suspended) Double Bronze: Earned 100,000,000 credits (127,922,665)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (30,984,158)PPS Sieve Double Ruby: Earned 2,000,000,000 credits (2,102,544,400)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Turquoise: Earned 5,000,000 credits (8,134,964)TRP Sieve (suspended) Turquoise: Earned 5,000,000 credits (7,013,696)AP 26/27 Double Bronze: Earned 100,000,000 credits (151,648,887)GFN Double Bronze: Earned 100,000,000 credits (152,527,069)PSA Double Amethyst: Earned 1,000,000,000 credits (1,370,700,486)
Message 127202 - Posted: 20 Feb 2019 | 21:16:44 UTC
Last modified: 20 Feb 2019 | 21:17:29 UTC

To make it easier and to get an output file I can do something with I created a small batch file. This is for windows and strawberry perl. Replace useridnum with your id. Here's the content of the batch file which I named firstpct.bat

Another cool thing is you can create a scheduled task and run this batch file or run it manually.

Set textfile="c:\pgstuff\first.txt"
c:
cd\
cd \strawberry\perl\bin
perl.exe c:\pgstuff\FirstPct.pl useridnum > %textfile%

Exit

Post to thread

Message boards : General discussion : PG 1st Place Percentage Firefox Extension

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2019 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 2.67, 2.72, 2.78
Generated 10 Dec 2019 | 7:44:48 UTC