Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 22
Posts: 22   Pages: 3   [ Previous Page | 1 2 3 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 6992 times and has 21 replies Next Thread
davidBAM
Cruncher
Joined: Aug 14, 2018
Post Count: 10
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Certificate for printing

Looks like it might not work when WCG is doing their twice-daily stats update. I may need to add an error trap to advise in that event

Also, your WCG account will need a validated email address please
----------------------------------------
[Edit 1 times, last edit by davidBAM at Aug 9, 2021 3:58:50 AM]
[Aug 9, 2021 2:21:15 AM]   Link   Report threatening or abusive post: please login first  Go to top 
davidBAM
Cruncher
Joined: Aug 14, 2018
Post Count: 10
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Certificate for printing

If you share the link on your team forums (and I hope you will), this variant might be better to share as it copes with a wider range of characters in usernames

http://wcg.tsbt.co.uk/wcgCert.php?username=davidBAM
[Aug 9, 2021 8:19:57 AM]   Link   Report threatening or abusive post: please login first  Go to top 
BladeD
Ace Cruncher
USA
Joined: Nov 17, 2004
Post Count: 28976
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Certificate for printing

If you share the link on your team forums (and I hope you will), this variant might be better to share as it copes with a wider range of characters in usernames

https://wcg.tsbt.co.uk/wcgCert.php?username=davidBAM

Edit your earlier post and this one will be the only one here. wink
----------------------------------------
[Aug 9, 2021 9:19:54 AM]   Link   Report threatening or abusive post: please login first  Go to top 
MJH333
Senior Cruncher
England
Joined: Apr 3, 2021
Post Count: 300
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Certificate for printing

This certificate looks great! smile
One small thought: might it be better to have black text on a white background, rather than white on black? That would save ink when printing.
Cheers
Mark
[Aug 9, 2021 9:25:43 AM]   Link   Report threatening or abusive post: please login first  Go to top 
davidBAM
Cruncher
Joined: Aug 14, 2018
Post Count: 10
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Certificate for printing

I've been rumbled - I bought up loads of shares in ink manufacturers and am sitting back waiting for the profits to roll in.

But yeah - I'll maybe hack around the CSS some day - TBH, I find that more difficult than the actual programming.

Thanks for all the feedback guys.
[Aug 9, 2021 9:37:30 AM]   Link   Report threatening or abusive post: please login first  Go to top 
davidBAM
Cruncher
Joined: Aug 14, 2018
Post Count: 10
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Certificate for printing

So far, 49 different users on 15 different teams have generated certificates. Great going.
[Aug 11, 2021 9:16:05 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Glen David Short
Senior Cruncher
Joined: Nov 6, 2008
Post Count: 192
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Certificate for printing

offering official WCG printed pdf certificates via email is a great idea, I dont know why they dont do it. It would incentivize participation and be a great conversation starter. Could easily be automated and added to the electronic messages we get at the moment when we gain badges.
----------------------------------------

[Aug 17, 2021 10:08:34 PM]   Link   Report threatening or abusive post: please login first  Go to top 
BladeD
Ace Cruncher
USA
Joined: Nov 17, 2004
Post Count: 28976
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
confused Re: Certificate for printing

I just noticed that my runtime stats are little off....

Via your certificate.... Run Time: 229.947 years

Via my overview page... 230:038:00:10:17
----------------------------------------
[Oct 12, 2021 4:24:22 AM]   Link   Report threatening or abusive post: please login first  Go to top 
SolidAir79
Cruncher
Joined: Dec 1, 2018
Post Count: 3
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Certificate for printing

The API gives me the accumulated run-time in seconds so I divide by 365.25 / 24 / 3600 which I assumed would be the sensible thing to do to account for leap years.

Does that account for the difference?

Might be better to agree with the official site I suppose (even if I do consider it wrong). Can you try again now please
[Oct 12, 2021 1:41:18 PM]   Link   Report threatening or abusive post: please login first  Go to top 
adriverhoef
Master Cruncher
The Netherlands
Joined: Apr 3, 2009
Post Count: 2346
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Certificate for printing

The API gives me the accumulated run-time in seconds so I divide by 365.25 / 24 / 3600 which I assumed would be the sensible thing to do to account for leap years.
Let's say we claim that a year lasts 365 days plus a quarter of a day. This may be a sensible choice in the long run, but when you start counting after a leap year (e.g. 2020), then when one year (e.g. 2021) has passed, the number of days is 365 while we have done figures with 365.25 days; after two years 730 days have passed and we have calculated 730.50 days; and after three years the number of days is 1095 while we computed 1095.75 days.

In any case it's good that you have found the reason for the difference. smile

We can ascertain if 365 days is correct. One way is to look at one's own stats at verifyMember.do with youraccountname filled out, including its code, i.e. your Verification Code (which you'll find at your Profile), then pick some project with 1 year or more on the scoreboard and do the math.

Example:
<ProjectName>GO Fight Against Malaria</ProjectName>
<ProjectShortName>gfam</ProjectShortName>
<RunTime>34706072</RunTime>

"My project contribution" on my Overview page tells me that this is 1:036:16:34:32 (what units? unclear!). nerd

Anyway, we found 34706072 seconds in this example, so we can start computing (with 365 days (of 86400 seconds each):

perl -we '
$s = 34706072; # runtime
$y = int($s / (365*86400)); # years
$s -= $y * 365*86400; $d = int($s / 86400); # days (remainder)
$s -= $d * 86400; $h = int($s / 3600); # hours (remainder)
$s -= $h * 3600; $m = int($s / 60); # minutes (remainder)
$s -= $m * 60; # seconds (remainder)
printf "%11d:%03d:%02d:%02d:%02d\n", $y, $d, $h, $m, $s;
'


Run it ...
          1:036:16:34:32

Quelle surprise! cool Nice outcome. rose

Now do the math for a project with 10 years or more on the scoreboard that includes at least one leap year.
[Oct 12, 2021 3:25:09 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 22   Pages: 3   [ Previous Page | 1 2 3 | Next Page ]
[ Jump to Last Post ]
Post new Thread