Pirates@Home logo

Pirates@Home

Berkeley Open Infrastructure
BOINC!
for Network Computing
Home Help Status Forums Glossary Account

Substitutions on a page

log in

Advanced search

Questions and Answers : Pirates@Home Problems : Substitutions on a page

Author Message
Profile Pepo
Chief Petty Officer
Volunteer tester
Avatar
Send message
Joined: 13 Sep 04
Slovakia
TeamVision42
Credit: 924.2
RAC: 0.00
Joined: Sep 13, 2004
Verified: Aug 4, 2009
Dubloons: 3
Pieces of Eight: 5
Punishment: Cat o' Nine Tails
Message 8978 - Posted: 11 Jan 2011 | 21:18:55 UTC
Last modified: 11 Jan 2011 | 21:20:52 UTC

I've seen following text on Pirates' pages, a couple of times:

"1 substitutions on this page."

What does it mean?
____________
Peter .-)

Profile Wormholio
Captain
Avatar
Send message
Joined: 6 Jun 04
United States
Away
Credit: 4,009.8
RAC: 0.00
Joined: Jun 6, 2004
Verified: Mar 13, 2008
Dubloons: 3
Pieces of Eight: 10
Punishment: Aztec curse
Message 8979 - Posted: 12 Jan 2011 | 2:57:22 UTC - in response to Message 8978.
Last modified: 12 Jan 2011 | 2:59:08 UTC

Pepo wrote:
I've seen following text on Pirates' pages, a couple of times
"1 substitutions on this page."
What does it mean?


A good while ago the terminology used in the BOINC documentation changed. A unit of work became a "Job", while a "result" became a "Task". It's a big job to change that in all of the wiki and web pages, so I wrote a function to make the substitutions, and arranged for each page to be buffered instead of served direct, and passed through this filter. The function counts the number of substitutions and adds the count to the bottom of the page, so you know if a particular page needs to be updated. It also logs the page URL and substitution count to a log file, so we get a list of all the pages that need to be altered.

This was just proof of concept. We have very old BOINC code here, so of course there will be substitutions. But once the site gets updated to the newer web code it might be interesting to try this out, to see if there are still any web pages that need to be updated to the new terminology.
____________
-- Eric Myers

"Education is not the filling of a pail, but the lighting of a fire." -- William Butler Yeats

Profile Pepo
Chief Petty Officer
Volunteer tester
Avatar
Send message
Joined: 13 Sep 04
Slovakia
TeamVision42
Credit: 924.2
RAC: 0.00
Joined: Sep 13, 2004
Verified: Aug 4, 2009
Dubloons: 3
Pieces of Eight: 5
Punishment: Cat o' Nine Tails
Message 8980 - Posted: 12 Jan 2011 | 13:29:37 UTC - in response to Message 8979.

Wormholio wrote:
Pepo wrote:
I've seen following text on Pirates' pages, a couple of times
"1 substitutions on this page."
What does it mean?


A good while ago the terminology used in the BOINC documentation changed. A unit of work became a "Job", while a "result" became a "Task". It's a big job to change that in all of the wiki and web pages, so I wrote a function to make the substitutions, and arranged for each page to be buffered instead of served direct, and passed through this filter.

Aha, thus I've seen it only on Account pages (but not always) and never on Messages.
On a list of tasks, the numbers then get much higher.

The function counts the number of substitutions and adds the count to the bottom of the page, so you know if a particular page needs to be updated. It also logs the page URL and substitution count to a log file, so we get a list of all the pages that need to be altered.

This was just proof of concept. We have very old BOINC code here, so of course there will be substitutions. But once the site gets updated to the newer web code it might be interesting to try this out, to see if there are still any web pages that need to be updated to the new terminology.

Good idea.
____________
Peter .-)

Post to thread

Questions and Answers : Pirates@Home Problems : Substitutions on a page

Home Help Status Forums Glossary Account


Return to Pirates@Home main page


Copyright © 2013 Capt. Jack Sparrow