BOINC Wiki - Outage Notice - Monday 2005-10-09

Paul D. Buck
Paul D. Buck
Joined: 17 Jan 05
Posts: 754
Credit: 5,385,205
RAC: 0
Topic 189990

The latest version of the Wiki software is out. I am pretty sure I know what to do to implement a "Goggle" search of the Wiki, which will, at least initially be just an enhancement to the search box to use the Google search engine.

The intent is to change from the baseline search which uses the MySQL "fulltext-search" which is a word only search. So, it finds occurrences of words, and does not allow searching for phrases etc.

So, health permitting, Monday I will:

1) Take BOINC Wiki off-line if needed.
2) Make a database back up
2a) download image directories
3) Install media Wiki 1.5.0
3a) Upload image directories
4) Make selected changes to implement Google Search in the current search dialog box, thus allowing more concise searches.
5) Not sure ...
6) Bring the system back alive.

With luck, no mistakes, who knows ...

Paul D. Buck
Paul D. Buck
Joined: 17 Jan 05
Posts: 754
Credit: 5,385,205
RAC: 0

BOINC Wiki - Outage Notice - Monday 2005-10-09

My test version is up now on the site...

Gonna take a break ... it is 9 PM California (PST) time ... and, I have most of the first steps done. I proofed I can duplicate the site, made the code changes and tested them to see that the work.

Problem is, I have not tested the conversion of the site to the new version and made the code changes there ...

THEN, I have to truncate some data, make sure that does not break the data base, make sure the internal links are properly updated ...

THEN, I can start on this for real ... gee... I only seem to have 36 hours into this project ... :)

The good news is that I can turn on both searches, only one or the other with a configuration parameter change. And, yes, I plan to submit the code once I see that it works with the new version ...

Key feature is that you can use the new or the old familiar search. In the Google search you can use double quotes now to look for exact phrases.

So, enter Quorum of Results in both searches, look at the words highlighted. Then, do "Quorum of Results" and see the difference ... in essence it should cut down on the number of spurious pages pulled.

And, yes, I had planned to look into an advanced searching page ...

The depressing thing was how much PHP code I had forgotten ... :(

[pre]
# The type, or types of searches allowed. Values are: "Google", "WikiDefault", "Both"
$wgSearchTypeEnabled = "Both";
[/pre]

and:

[pre]
<?php
global $wgSearchTypeEnabled; // pull in the externally declared "Global"
if ((strtolower($wgSearchTypeEnabled) == strtolower("Google")) ||
(strtolower($wgSearchTypeEnabled) == strtolower("Both" ))) {
echo "

\\r\\n";
echo "
Google Search
\\r\\n";
echo "
\\r\\n";
echo " \\r\\n";
echo " echo " action=\\"http://www.google.com/custom\\" \\r\\n";
echo " target=\\"_top\\">\\r\\n";
echo "
\\r\\n";
echo " \\r\\n";
echo " Logo_25wht.gif\\"\\r\\n";<br echo " border=\\"0\\" \\r\\n";
echo " alt=\\"Google\\">\\r\\n";
echo " \\r\\n";
echo "
\\r\\n";
echo " echo " name=\\"domains\\"\\r\\n";
echo " value=\\"http://boinc-doc.net/boinc-wiki/\\" />\\r\\n";
echo " echo " name=\\"sitesearch\\" \\r\\n";
echo " value=\\"http://boinc-doc.net/boinc-wiki/\\" />\\r\\n";
echo " echo " type=\\"text\\" \\r\\n";
echo " name=\\"q\\" \\r\\n";
echo " value=\\"\\">\\r\\n";
echo "
\\r\\n";
echo " \\r\\n";
echo " \\r\\n";
echo " \\r\\n";
echo " \\r\\n";
echo "
\\r\\n";
echo " \\r\\n";
echo " \\r\\n";
echo "
\\r\\n";
echo "

\\r\\n";
}

if ((strtolower($wgSearchTypeEnabled) == strtolower("WikiDefault")) ||
(strtolower($wgSearchTypeEnabled) == strtolower("Both" )) ) {
echo "

\\r\\n";
echo "
";
$this->msg('search');
echo "
\\r\\n";
echo "
\\r\\n";
echo " \\r\\n";
echo " echo " action=\\"";
$this->text('searchaction');
echo "\\"\\r\\n";
echo " id=\\"searchform\\">\\r\\n";
echo " echo " name=\\"search\\"\\r\\n";
echo " type=\\"text\\"\\r\\n";
if ($this->haveMsg('accesskey-search')) {
echo " accesskey=\\"";
$this->msg('accesskey-search');
echo "\\"\\r\\n";
}
if (isset($this->data['search']) ) {
echo " value=\\"";
$this->text('search');
echo "\\""; // don't end with line feed, need end of control
}
echo " />\\r\\n";
echo " echo " name=\\"go\\"\\r\\n";
echo " class=\\"searchButton\\"\\r\\n";
echo " id=\\"searchGoButton\\"\\r\\n";
echo " value=\\"";
$this->msg('go');
echo "\\" /> \\r\\n";
echo " echo " name=\\"fulltext\\"\\r\\n";
echo " class=\\"searchButton\\"\\r\\n";
echo " value=\\"";
$this->msg('Search');
echo "\\" />\\r\\n";
echo " \\r\\n";
echo " \\r\\n";
echo "
\\r\\n";
echo "

\\r\\n";

}

?> [/pre]

Most of the original code from the two examples, the one in the baseline page, and the one person who suggested a possible solution are basically there, just neatened up so it is readable and maintainable ...

Paul D. Buck
Paul D. Buck
Joined: 17 Jan 05
Posts: 754
Credit: 5,385,205
RAC: 0

Ok, I am taking the site

Ok, I am taking the site off-line and it will be back, I hope, in a couple of hours ... I am talking programmer time, so, it could be till next Tuesday ...

I will post an update here, and in a new thread when it is back up ...

Paul D. Buck
Paul D. Buck
Joined: 17 Jan 05
Posts: 754
Credit: 5,385,205
RAC: 0

Ok, it seems to be working

Ok, it seems to be working for me ...

Remember, you do not need an account to use the Wiki.

Just look around...

The two search boxes do different searches. The lower one works as before. The "Google" one, works as the BOINC Web Sites do now, it searches the BOINC Wiki and will pull up a "better" list. You can do the usual search operations that were not available before.

The simplest is the one I described below. You can also try anther like BOINC System ... with just the two words you get a result like:

Main Page - BOINCWiki
The material that comprises the BOINC System in all of its glory can be found in
the following topical categories:. Participating in BOINC Powered Projects ...

With the "hit" count at 867 ...

using "BOINC System" ... the second word is no longer highlighted. The "hit" count is 283 ...

Paul D. Buck
Paul D. Buck
Joined: 17 Jan 05
Posts: 754
Credit: 5,385,205
RAC: 0

There seems to be some

There seems to be some lingering "oddness". Some of the links seem to want to report themselves in:

http://boinc-doc.net/b-w/index.php?title=

Instead of the correct:

http://boinc-doc.net/boinc-wiki/index.php?title=

I cannot find where this "magic" is happening TO me ... but, if I can find it I will see what I can do to eradicate it.

In the mean time, SOMETIMES, manually editing the link to the correct link seems to fix the problem, and MAY solve it for all of us. I have not proved this "fix" yet. Editors, you can "force" an "empty" change which also seems to cure the link error. You can tell if the link is bad floating the cursor over the link.

Report any link errors to me, e-mail is "best" (ugh, the work!), as well as any other problems. For all of that, I really do think that this is a HUGE improvement. We have many new features, including:

  • # related changes,
    # printable version (a requested feature, but you still have to visit all pages you want to print
    # New page list
    # "Special Pages" page list is alphabetized
    # Google search (Yea! Paul! :))
    # Changes to the security model (makes control easier, and removes some things the normal viewer cannot use, like the IP Link at the top of the page ... Oh, and I changed the wording of the message from "Create account ..." to only "Log In", still going to get calls though
    # FDL Icon, and stuff ...

Add other features as you find them ...

Ricky@SETI.USA
Ricky@SETI.USA
Joined: 9 Sep 05
Posts: 85
Credit: 1,519,191
RAC: 0

RE: There seems to be some

Message 17936 in response to message 17935

Quote:

There seems to be some lingering "oddness". Some of the links seem to want to report themselves in:

http://boinc-doc.net/b-w/index.php?title=

Instead of the correct:

http://boinc-doc.net/boinc-wiki/index.php?title=

I cannot find where this "magic" is happening TO me ... but, if I can find it I will see what I can do to eradicate it.

In the mean time, SOMETIMES, manually editing the link to the correct link seems to fix the problem, and MAY solve it for all of us. I have not proved this "fix" yet. Editors, you can "force" an "empty" change which also seems to cure the link error. You can tell if the link is bad floating the cursor over the link.

Report any link errors to me, e-mail is "best" (ugh, the work!), as well as any other problems. For all of that, I really do think that this is a HUGE improvement. We have many new features, including:

  • # related changes,
    # printable version (a requested feature, but you still have to visit all pages you want to print
    # New page list
    # "Special Pages" page list is alphabetized
    # Google search (Yea! Paul! :))
    # Changes to the security model (makes control easier, and removes some things the normal viewer cannot use, like the IP Link at the top of the page ... Oh, and I changed the wording of the message from "Create account ..." to only "Log In", still going to get calls though
    # FDL Icon, and stuff ...

Add other features as you find them ...

Paul, If understand this right, You made no changes to the page content so we don't need to resave any pages we saved to our PC... right?

Ricky


Paul D. Buck
Paul D. Buck
Joined: 17 Jan 05
Posts: 754
Credit: 5,385,205
RAC: 0

RE: Paul, If understand

Message 17937 in response to message 17936

Quote:
Paul, If understand this right, You made no changes to the page content so we don't need to resave any pages we saved to our PC... right?


Ricky,

The page content changes on a daily basis. Those days I can work, there can be 50-250 changes from page creations, edits, and page deletions.

What I HAD done, was to update the "engine" to the latest version, added some minor cosmetic changes, AND added Google searching which gives you the ability to search for phrases and not just words (the old search is in the bottom search box - try them both to compare).

So, if you save pages to your computer, they will very likely go out of date fairly quickly ... particularly the high use pages ... as people find things wrong or suggest additions, well, we make the changes.

I grant this is a problem for those on Modems and I wish I had an answer for that ... One GOOD other thing, is there is a link that would allow you to print the pages and have them look better ...

Links also change a lot too ... as we try to make it easier to find things ...

Ricky@SETI.USA
Ricky@SETI.USA
Joined: 9 Sep 05
Posts: 85
Credit: 1,519,191
RAC: 0

RE: RE: Paul, If

Message 17938 in response to message 17937

Quote:
Quote:
Paul, If understand this right, You made no changes to the page content so we don't need to resave any pages we saved to our PC... right?

Ricky,

The page content changes on a daily basis. Those days I can work, there can be 50-250 changes from page creations, edits, and page deletions.

What I HAD done, was to update the "engine" to the latest version, added some minor cosmetic changes, AND added Google searching which gives you the ability to search for phrases and not just words (the old search is in the bottom search box - try them both to compare).

So, if you save pages to your computer, they will very likely go out of date fairly quickly ... particularly the high use pages ... as people find things wrong or suggest additions, well, we make the changes.

I grant this is a problem for those on Modems and I wish I had an answer for that ... One GOOD other thing, is there is a link that would allow you to print the pages and have them look better ...

Links also change a lot too ... as we try to make it easier to find things ...

Ok, just wanted to be sure. I understand and just asked so that I can resave the pages from time to time as I need them.

I don't guess you had time to look at the error log I sent?

Thanks,
Ricky


Paul D. Buck
Paul D. Buck
Joined: 17 Jan 05
Posts: 754
Credit: 5,385,205
RAC: 0

I think I did, and updated

I think I did, and updated the Wiki with the error messages that I did not have. THough I have a note I think that there is one message to go...

Sorry, but I forget, did I promise a specific answer ... I don't recall ...

Ricky@SETI.USA
Ricky@SETI.USA
Joined: 9 Sep 05
Posts: 85
Credit: 1,519,191
RAC: 0

RE: I think I did, and

Message 17940 in response to message 17939

Quote:

I think I did, and updated the Wiki with the error messages that I did not have. THough I have a note I think that there is one message to go...

Sorry, but I forget, did I promise a specific answer ... I don't recall ...

No, you didn't, I was just wondering I like to know these things. I been playing with computers since the C-64 came out and I had a C-128 also. When I got a IBM type machine it was a Packard Bell and I used DOS until I "had" to use windows and then I didn't switch until 98SE came out. Never did like windows I think in some ways DOS was better. (Didn't have all those share files to get messed up!)

Ricky


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.