Changeset 898


Ignore:
Timestamp:
11/24/08 01:10:49 (3 years ago)
Author:
KennethLavrsen
Message:

Item221: Updated more TWiki:Codev links and fixing general TWiki strings
now that I have to closely read the topics

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/BlackListPlugin/data/TWiki/BlackListPlugin.txt

    r878 r898  
    66---++ Description 
    77 
    8 This is a simple utility to keep black sheep away from a public TWiki site. The site can be protected against excessive page access (e.g. by bad robots), suspicious activities of users, such as multiple registrations or rapid topic updates indicating Wiki:WikiSpam, or saving text with wiki-spam. 
     8This is a simple utility to keep black sheep away from a public Foswiki site. The site can be protected against excessive page access (e.g. by bad robots), suspicious activities of users, such as multiple registrations or rapid topic updates indicating Wiki:WikiSpam, or saving text with wiki-spam. 
    99 
    10 The Plugin monitors activities by IP address and uses three IP address lists to protect the TWiki site: 
     10The Plugin monitors activities by IP address and uses three IP address lists to protect the Foswiki site: 
    1111        * WHITELIST: Manually maintained list of users who should never get on the BANLIST 
    1212        * BLACKLIST: Manually maintained list of malicious users 
     
    2121The registration form can also be protected from improper use. 
    2222 
    23 To fight Wiki-spam, the Plugin can also add a =rel="nofollow"= parameter to external URLs. Search engines will not follow links that have this parameter, taking away the incentive to add spam to TWiki. 
     23To fight Wiki-spam, the Plugin can also add a =rel="nofollow"= parameter to external URLs. Search engines will not follow links that have this parameter, taking away the incentive to add spam to Foswiki. 
    2424 
    2525---++ Plugin Settings 
     
    2929---+++ General settings 
    3030        * One line description, is shown in the %SYSTEMWEB%.TextFormattingRules topic: 
    31                 * Set SHORTDESCRIPTION = Utility to keep malicious users away from a public TWiki site 
     31                * Set SHORTDESCRIPTION = Utility to keep malicious users away from a public Foswiki site 
    3232 
    3333        * Debug plugin: (See output in =data/debug.txt=) 
     
    104104        * Protect registration: (number of minutes to expire, 15 minutes is recommended, 0 to disable) 
    105105                * Set REGEXPIRE = 0 
    106                 * If enabled, a magic number is protecting the registration process. TWiki expects a form field with a magic number. An error message is shown if not valid or if expired. This makes it harder to register a user by a script. A hidden field needs to be added to the registration form:%BR% =&lt;input type="hidden" name="rx" value="%<nop>BLACKLISTPLUGIN{ action="magic" }%" /&gt;= 
     106                * If enabled, a magic number is protecting the registration process. Foswiki expects a form field with a magic number. An error message is shown if not valid or if expired. This makes it harder to register a user by a script. A hidden field needs to be added to the registration form:%BR% =&lt;input type="hidden" name="rx" value="%<nop>BLACKLISTPLUGIN{ action="magic" }%" /&gt;= 
    107107 
    108108        * Message shown when using registration form incorrectly: (this message is deliberately vague) 
     
    115115---++ Plugin Installation Instructions 
    116116 
    117 __Note:__ You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.  
     117__Note:__ You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where Foswiki is running.  
    118118 
    119119        * Download the ZIP file from the Plugin web (see below) 
    120120        * Unzip ==%TOPIC%.zip== in your twiki installation directory. Content: 
    121121          | *File:* | *Description:* | 
    122           | ==data/TWiki/%TOPIC%.txt== | Plugin topic | 
    123           | ==data/TWiki/%TOPIC%.txt,v== | Plugin topic repository | 
    124           | ==lib/TWiki/Plugins/%TOPIC%.pm== | Plugin Perl module | 
    125           | ==pub/TWiki/%TOPIC%/.htaccess== | Apache access control to protect pub dir | 
     122          | ==data/System/%TOPIC%.txt== | Plugin topic | 
     123          | ==data/System/%TOPIC%.txt,v== | Plugin topic repository | 
     124          | ==lib/Foswiki/Plugins/%TOPIC%.pm== | Plugin Perl module | 
     125          | ==pub/Foswiki/%TOPIC%/.htaccess== | Apache access control to protect pub dir | 
    126126          | ==templates/oopsblacklist.tmpl== | Generic oops message | 
    127         * Make sure =pub/TWiki/%TOPIC%/= is writable by the CGI user (typically =nobody=) 
    128         * Add the hidden form field to the registration form as described in the "Registration protection settings" section (this is already in TWiki 4.0) 
    129         * From TWiki 4.0 release on: Run the configure utility in your browser to enable the Plugin 
     127        * Make sure =pub/Foswiki/%TOPIC%/= is writable by the CGI user (typically =nobody=) 
     128        * Add the hidden form field to the registration form as described in the "Registration protection settings" section 
     129        * Run the configure utility in your browser to enable the Plugin 
    130130        * Make sure that non-administrators cannot edit this plugin topic. By default, this topic is write protected with an =ALLOWTOPICCHANGE = !AdminGroup= setting. 
    131131        * Test if the installation was successful: 
    132132                1 Using above form, add the IP address of one of your workstations to the BANLIST 
    133                 1 Access TWiki from that workstation 
    134                         * if you look at a TWiki topic (with the view script) you should see the BLACKLISTMESSAGE (defined above) after a one minute timeout 
     133                1 Access Foswiki from that workstation 
     134                        * if you look at a Foswiki topic (with the view script) you should see the BLACKLISTMESSAGE (defined above) after a one minute timeout 
    135135                        * else, you should get an 500 Internal Server Error for other scripts 
    136136                1 On a different workstation, remove the IP address of the test workstation from the BANLIST 
     
    138138---++ Known Issues and Limitations 
    139139 
    140         * Wiki-spam filtering for HTML attachments works in TWiki 01-Sep-2004 and later. 
    141         * With TWiki 4.0.2 on some platforms, notably Solaris, attached files are uploaded with a zero file size. This is because there is a bug in how TWiki 4.0.2 handles the beforeAttachmentSaveHandler. If affected, upgrade TWiki or apply bug fix [[TWikibug:Item2390][Item2390]] 
    142140        * Scan for script eval() and escape() is currently hardcoded 
    143141 
     
    160158|  30 Oct 2005: | Dakar Release compatibility: Work around Dakar preferencs bug | 
    161159|  29 Oct 2005: | Added wiki-spam filtering to prevent topic save with wiki-spam | 
    162 |  27 Oct 2005: | For BANLIST, add/remove multiple IP addresses at once, contributed by TWiki:Main.MichaelDaum | 
     160|  27 Oct 2005: | For BANLIST, add/remove multiple IP addresses at once, contributed by Foswiki:Main.MichaelDaum | 
    163161|  22 Jan 2005: | Added NOFOLLOWAGE handling | 
    164162|  19 Jan 2005: | Added score for "view raw" to address e-mail harvester issue | 
  • trunk/EditHiddenTablePlugin/data/TWiki/EditHiddenTablePlugin.txt

    r878 r898  
    7878<table border="1" cellspacing="1" cellpadding="0"> 
    7979<tr><th class="twikiFirstCol" bgcolor="#99CCCC"><a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview" title="Sort by this column"> Nr</a> </th><th bgcolor="#99CCCC"><a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview" title="Sort by this column"> Text field</a> </th><th bgcolor="#99CCCC"><a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview" title="Sort by this column"> Drop down</a> </th><th bgcolor="#99CCCC"><a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview" title="Sort by this column"> Mood</a> </th><th bgcolor="#99CCCC"><a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview" title="Sort by this column"> Timestamp</a> </th></tr> 
    80 <tr><td class="twikiFirstCol" bgcolor="#FFFFFF"> <a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview">1</a> </td><td bgcolor="#FFFFFF"> hello table </td><td bgcolor="#FFFFFF"> one </td><td bgcolor="#FFFFFF"> <img src="%PUBURLPATH%/TWiki/SmiliesPlugin/smile.gif" alt="smile" title="smile" border="0" /> </td><td bgcolor="#FFFFFF"> 19 Mar 2005 23:21 </td></tr> 
    81 <tr><td class="twikiFirstCol" bgcolor="#FFFFCC"> <a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview">2</a> </td><td bgcolor="#FFFFCC"> &nbsp; </td><td bgcolor="#FFFFCC"> two </td><td bgcolor="#FFFFCC"> <img src="%PUBURLPATH%/TWiki/SmiliesPlugin/frown.gif" alt="frown" title="frown" border="0" /> </td><td bgcolor="#FFFFCC"> 19 Mar 2005 11:21 </td></tr> 
     80<tr><td class="twikiFirstCol" bgcolor="#FFFFFF"> <a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview">1</a> </td><td bgcolor="#FFFFFF"> hello table </td><td bgcolor="#FFFFFF"> one </td><td bgcolor="#FFFFFF"> <img src="%PUBURLPATH%/System/SmiliesPlugin/smile.gif" alt="smile" title="smile" border="0" /> </td><td bgcolor="#FFFFFF"> 19 Mar 2005 23:21 </td></tr> 
     81<tr><td class="twikiFirstCol" bgcolor="#FFFFCC"> <a href="%SCRIPTURLPATH%/oops/Test/TableRowOne?template=oopspreview">2</a> </td><td bgcolor="#FFFFCC"> &nbsp; </td><td bgcolor="#FFFFCC"> two </td><td bgcolor="#FFFFCC"> <img src="%PUBURLPATH%/System/SmiliesPlugin/frown.gif" alt="frown" title="frown" border="0" /> </td><td bgcolor="#FFFFCC"> 19 Mar 2005 11:21 </td></tr> 
    8282</table> 
    8383<form action="%SCRIPTURLPATH%/oops/Test/TableRowOne"> 
    84 <input type="image" src="%PUBURLPATH%/TWiki/EditTablePlugin/edittable.gif" alt="Edit this table" onclick="return(false);" /></form> 
     84<input type="image" src="%PUBURLPATH%/System/EditTablePlugin/edittable.gif" alt="Edit this table" onclick="return(false);" /></form> 
    8585 
    8686If you click on one of the links in the first column, say for the second row, you will be able to edit that table row in a form: 
     
    9494 
    9595   * One line description, shown in the %SYSTEMWEB%.TextFormattingRules topic: 
    96       * Set SHORTDESCRIPTION = Edit TWiki tables rows using a form 
     96      * Set SHORTDESCRIPTION = Edit Foswiki tables rows using a form 
    9797 
    9898   * Set DEBUG to 1 to get debug messages in =data/debug.txt=.  Default: =0= 
     
    104104   * Default edit button: Specify =button text=, or specify =alternate text, image URL= 
    105105      * Set EDITBUTTON = Edit table 
    106       * #Set EDITBUTTON = Edit this table, %PUBURL%/TWiki/EditTablePlugin/edittable.gif 
     106      * #Set EDITBUTTON = Edit this table, %PUBURL%/System/EditTablePlugin/edittable.gif 
    107107 
    108108   * Default edit link for row: Specify =button text=, or specify =alternate text, image URL=. If empty, create link from first field. 
    109109      * #Set EDITLINK = Edit 
    110       * #Set EDITLINK = Edit, %PUBURL%/TWiki/DocumentGraphics/edittopic.gif 
     110      * #Set EDITLINK = Edit, %PUBURL%/System/DocumentGraphics/edittopic.gif 
    111111 
    112112 
    113113---++ Limitations and Known Issues 
    114114 
    115    * This Plugin does not (yet) support TWiki table formatting like Multi-span cells (e.g. =| ... ||=) 
     115   * This Plugin does not (yet) support Foswiki table formatting like Multi-span cells (e.g. =| ... ||=) 
    116116   * You cannot put two =%<nop>EDITTABLE{}%= statements on the same line in the source 
    117117 
    118118---++ Plugin Installation Instructions 
    119119 
    120 __Note:__ You do not need to install anything on the browser to use this Plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.  
     120__Note:__ You do not need to install anything on the browser to use this Plugin. The following instructions are for the administrator who installs the plugin on the server where Foswiki is running.  
    121121 
    122122   * Download the ZIP file from the Plugin web (see below) 
    123123   * Unzip ==%TOPIC%.zip== in your twiki installation directory. Content: 
    124124     | *File:* | *Description:* | 
    125      | ==data/TWiki/%TOPIC%.txt== | Plugin topic | 
    126      | ==data/TWiki/%TOPIC%.txt,v== | Plugin topic repository | 
    127      | ==lib/TWiki/Plugins/%TOPIC%.pm== | Plugin Perl module | 
    128      | ==pub/TWiki/%TOPIC%/*.jpg== | Screenshots for plugin topic | 
     125     | ==data/System/%TOPIC%.txt== | Plugin topic | 
     126     | ==data/System/%TOPIC%.txt,v== | Plugin topic repository | 
     127     | ==lib/Foswiki/Plugins/%TOPIC%.pm== | Plugin Perl module | 
     128     | ==pub/Foswiki/%TOPIC%/*.jpg== | Screenshots for plugin topic | 
    129129     | ==bin/editTable== |  | 
    130130     | ==bin/uploadTable== |  | 
  • trunk/NativeSearchContrib/data/TWiki/NativeSearchContrib.txt

    r530 r898  
    77%SHORTDESCRIPTION% 
    88 
    9 By default TWiki searches its database by [[http://en.wikipedia.org/wiki/Fork_%28operating_system%29][forking]] the standard [[http://en.wikipedia.org/wiki/Grep][grep]] program in a sub-process to search through the text files in the database cache. This is usually pretty fast, but unfortunately in some environments (specifically with [[http://perl.apache.org/][mod_perl]]) forking a sub-process is very expensive, and another approach is needed. 
     9By default Foswiki searches its database by [[http://en.wikipedia.org/wiki/Fork_%28operating_system%29][forking]] the standard [[http://en.wikipedia.org/wiki/Grep][grep]] program in a sub-process to search through the text files in the database cache. This is usually pretty fast, but unfortunately in some environments (specifically with [[http://perl.apache.org/][mod_perl]]) forking a sub-process is very expensive, and another approach is needed. 
    1010 
    11 !NativeSearch is a c-code module that can be plugged into TWiki to replace the default searching algorithm. It publishes an [[http://en.wikipedia.org/wiki/XS_(Perl)][XS]] interface that allows it to be called from Perl, without having to fork a sub-process. It has comparable performance to the standard forking search in most environments, but is often significantly faster than forked search when TWiki is run under a CGI accelerator. The effect is most pronounced with mod_perl, but is also there for [[http://www.daemoninc.com/SpeedyCGI/][SpeedyCGI]]. 
     11!NativeSearch is a c-code module that can be plugged into Foswiki to replace the default searching algorithm. It publishes an [[http://en.wikipedia.org/wiki/XS_(Perl)][XS]] interface that allows it to be called from Perl, without having to fork a sub-process. It has comparable performance to the standard forking search in most environments, but is often significantly faster than forked search when Foswiki is run under a CGI accelerator. The effect is most pronounced with mod_perl, but is also there for [[http://www.daemoninc.com/SpeedyCGI/][SpeedyCGI]]. 
    1212 
    13 *You require shell access to the server to install this module*. Refer to TWiki:Codev.NativeSearch for a list of systems where the module has been successfully compiled and installed (and please update it if you find a new one). 
     13*You require shell access to the server to install this module*. 
    1414 
    1515---++ Installation Instructions 
     
    2727---+++ Building the c-code 
    2828 
    29 =cd= to the root directory in your TWiki installation. Now, _assuming you have administrator (root) access to the server:_ 
     29=cd= to the root directory in your Foswiki installation. Now, _assuming you have administrator (root) access to the server:_ 
    3030<verbatim> 
    3131$ cd tools/native_search 
     
    4343install. Follow the steps above, but use =perl Makefile.PL INSTALLBASE=/your/dir= to install to a different directory. Exactly where you install depends on your system configuration. 
    4444 
    45 Now, in [[%SCRIPTURL{configure}%][configure]], under "Store Settings", you should be able to select the search algorithm =TWiki::Store::SearchAlgorithms::Native= (click the <input type="button" style="background-color:#eef" value="Yes, I've read all the documentation"/> button first if you have TWiki 4.2 or later). 
     45Now, in [[%SCRIPTURL{configure}%][configure]], under "Store Settings", you should be able to select the search algorithm =Foswiki::Store::SearchAlgorithms::Native= (click the <input type="button" style="background-color:#eef" value="Yes, I've read all the documentation"/> button first if you have TWiki 4.2 or later or Foswiki). 
    4646 
    47 Run a TWiki search, and watch the web server error log for any problems. 
     47Run a Foswiki search, and watch the web server error log for any problems. 
    4848 
    4949Because performance can differ widely between two apparently similar webserver configurations, you are recommended to do your own benchmarking and select the search algorithm that performs best for you. 
     
    5151---++ Contrib Info 
    5252 
    53 Another great TWiki extension from the <a style="text-decoration:none" href="http://wikiring.com"><img src="%ATTACHURLPATH%/wikiringlogo20x20.png" alt="" /> *WikiRing* </a> - working together to improve your wiki experience! 
     53Another great Foswiki extension from the <a style="text-decoration:none" href="http://wikiring.com"><img src="%ATTACHURLPATH%/wikiringlogo20x20.png" alt="" /> *WikiRing* </a> - working together to improve your wiki experience! 
    5454 
    5555Many thanks to the following sponsors for supporting this work: 
  • trunk/PublicCacheAddOn/twpc/PublicCacheAddOn.txt

    r878 r898  
    11---+ Public Cache Add-On 
    22<table align='right'><tr><td bgcolor='#eeeeee'>%TOC%</table> 
    3 Makes TWiki surviving being   
     3Makes Foswiki surviving being   
    44[[http://en.wikipedia.org/wiki/Slashdot_effect][Slashdotted]] 
    55- serves pages 100 times faster. 
    66---++ Goals 
    77I made this addon for people (like me) wanting to have their personal (or 
    8 small group) *public web site* on a TWiki. The problems I want to address are 
     8small group) *public web site* on a Foswiki. The problems I want to address are 
    99thus the ones important for this scenario: 
    1010   * many *more reads* and readers than edits and authors 
    1111   * extreme *performance*, serving a page in few 100th of a second. 
    1212   * huge *spikes* of visitors, being able to survive a slashdot effect. It  
    13      should handle 10000 simultaneous requests on a TWiki topic on a 1Ghz  
     13     should handle 10000 simultaneous requests on a Foswiki topic on a 1Ghz  
    1414     machine. It does this by locking to ensure only one process tries to  
    1515     build a page at a time, reducing tremendously the load on the server, even 
     
    3030     cycle: you must not have to have to 
    3131     refresh manually a page to see the edits you just did to it. 
    32    * *compatible* should work with all TWiki features, options and plugins  
     32   * *compatible* should work with all Foswiki features, options and plugins  
    3333     (or most of them: not the ones trying to show 
    3434     different things to different people). Most important are features  
     
    4343     just fast). 
    4444 
    45 This caching system has thus different goals than TWiki:Codev/TWikiCache that 
     45This caching system has thus different goals than Foswiki:Development.FoswikiCache that 
    4646will accelerate even page builds, in an exact and optimal way, but will be 
    4747less slashdot-resistant, and the mod_perl, speedycgi, persistent perl perl 
     
    8686force refresh of pages or webs that change without human editing (for instance 
    8787blog pages showing "Edited N days ago"), you must position the  
    88 =PUBLIC_CACHE_EXPIRE= TWiki variable to the number of seconds after which the 
     88=PUBLIC_CACHE_EXPIRE= Foswiki macro to the number of seconds after which the 
    8989cache will be automatically cleared. Note that as this will be performed by the 
    9090next run of the crontab job =pccl=, normally each 3 minutes. 
     
    101101=%<nop>INCLUDE{http://some.site/external}%= automatically sets a  
    102102=PUBLIC_CACHE_EXPIRE= of the default value, if not already set by an  
    103 explicit declaration. This variable is a normal TWiki variable, so you can use 
     103explicit declaration. This variable is a normal Foswiki macro, so you can use 
    104104it in a web preferences to set a cache policy to a whole web. 
    105105 
     
    108108__Note:__ You do not need to install anything on the browser to use this 
    109109add-on. The following instructions are for the administrator who installs the 
    110 add-on on the server where TWiki is running.  
     110add-on on the server where Foswiki is running.  
    111111 
    112112   * Download the TGZ file from the Add-on Home (see below) 
     
    116116   * if you are *upgrading from a version before 4.0*, 
    117117      * first do a =./uninstall TWIKI_DIR/bin= 
    118       * in your TWiki site, search for all occurences of =PCACHEEXPTIME= vars, 
     118      * in your Foswiki site, search for all occurences of =PCACHEEXPTIME= vars, 
    119119        and replace them with declarations  
    120120        <br> =* Set PUBLIC_CACHE_EXPIRE = 1= (1, or the previous value =NNN= of 
     
    130130     clean duty every 3 minutes, as 
    131131     <br> =*/3 * * * * test -x TWIKI_DIR/bin/pccl && TWIKI_DIR/bin/pccl= 
    132    * the install script will install small patches to the TWiki code, in 
    133      =lib/TWiki.pm=, =lib/TWiki/Func.pm=, and =lib/TWiki/UI/View.pm=. The 
     132   * the install script will install small patches to the Foswiki code, in 
     133     =lib/Foswiki.pm=, =lib/Foswiki/Func.pm=, and =lib/Foswiki/UI/View.pm=. The 
    134134     patches are clearly surrounded by =#TWikiPublicCacheAddOn_Patch...=  
    135135     comments 
    136    * If you *update your TWiki* install, or install afterwards the 
    137      Foswiki:Extensions/NewsPlugin or TWiki:TagMePlugin (or any future plugin 
    138      calling the =TWiki::Func::saveFile= function,you must re-do an  
     136   * If you *update your Foswiki* install, or install afterwards the 
     137     Foswiki:Extensions/NewsPlugin or System:TagMePlugin (or any future plugin 
     138     calling the =Foswiki::Func::saveFile= function,you must re-do an  
    139139     =install -u= in order to apply the patches above. 
    140140   * To be sure people notified of changes by email will actually see the 
     
    146146     <br /> to check every hour for uncached pages and build them 
    147147 
    148 Note that the argument can just be TWIKI_DIR if your TWiki perl scripts 
     148Note that the argument can just be TWIKI_DIR if your Foswiki perl scripts 
    149149dir is in the standard place (as a =bin/= subdirectory), otherwise you must 
    150 give the actual path of your TWiki perl scripts directory. 
     150give the actual path of your Foswiki perl scripts directory. 
    151151 
    152152To update, or change options, just redo install. This will clear the cache. type =./install -h= to see options, i.e: 
     
    160160   * =-eseconds= default value for %<nop>PUBLIC_CACHE_EXPIRE% (defaults to 3600) 
    161161   * -wWebList=  make pcad build menu and pcge default mode not rebuild  
    162      these webs. List is comma-separated. (defaults to -wMain,TWiki,Sandbox,Trash) 
     162     these webs. List is comma-separated. (defaults to -wMain,System,Sandbox,Trash) 
    163163   * =-v=    verbose: logs a lot of things in data/twpc-debug.txt 
    164164 
     
    237237 
    238238---+++ Tips 
    239    * Use robots.txt on your site to prevent browsing the TWiki web. e.g, 
    240      <br> =Disallow: /bin/view/TWiki= 
     239   * Use robots.txt on your site to prevent browsing the System web. e.g, 
     240     <br> =Disallow: /bin/view/System= 
    241241     <br> You may want to also disallow access to Main, Sandbox, and Trash. 
    242      Why? The TWiki web represent often an important (more than 500 pages) 
    243      part of a TWiki web site. This has the drawback of 
     242     Why? The System web represent often an important (more than 500 pages) 
     243     part of a Foswiki web site. This has the drawback of 
    244244      * Making search engines produce less relevant results for your site 
    245         (your personal contents will be diluted into the TWiki docs) 
     245        (your personal contents will be diluted into the Foswiki docs) 
    246246      * Google has a time limit for browsing a site. He may thus only crawl 
    247         part of your TWiki site on first run and not index your actual content 
    248       * As the cache will be totally cleared on edits, it means that the TWiki 
     247        part of your Foswiki site on first run and not index your actual content 
     248      * As the cache will be totally cleared on edits, it means that the Foswiki 
    249249        cache will be re-computed over and over on crawling by search 
    250250        engines, consuming needless CPU and bandwidth 
    251    * Use a perl accelerator: TWiki:Codev/ModPerl, TWiki:Codev/SpeedyCGI or  
    252      TWiki:Codev/PersistentPerl 
     251   * Use a perl accelerator: Mod-Perl, Speedy CGI or Persistent Perl 
    253252 
    254253---++ Implementation 
     
    268267     without caching it. 
    269268   * the "cache builder", *pcbd* (shell) calls the copy of the original  
    270      TWiki view script (named *vief*) to make it build the page, and save  
     269     Foswiki view script (named *vief*) to make it build the page, and save  
    271270     it in normal and gzipped versions. If it cannot get it (read-protected  
    272271     page) it saves a marker to remember not trying to build it and  
    273272     directly delegate to vief. 
    274    * an automatically installed TWiki plugin *PublicCachePlugin* (perl)  
     273   * an automatically installed Foswiki plugin *PublicCachePlugin* (perl)  
    275274     installs just an afterSaveHandler hook to track the changes in topics,  
    276275     and save the IP Adress of the client browser that edited the page as a  
     
    305304   * Cached pages have ETags so that the browser will not even re-download 
    306305   them if they have not changed. 
    307    * TWiki code is slightly patched (some lines in TWiki.pm, to set 
     306   * Foswiki code is slightly patched (some lines in Foswiki.pm, to set 
    308307   =%<nop>PUBLIC_CACHE_EXPIRE%= on inclusion of external urls).  
    309308   The patch consists of the lines between 
    310309   =#TWikiPublicCacheAddOn_PatchInclude_START= and  
    311310   =#TWikiPublicCacheAddOn_PatchInclude_END= . 
    312    After a TWiki update,  
     311   After a Foswiki update,  
    313312   just reinstall this addon. This patch work with 4.x versions, and 
    314313   probably newer ones. But it is just for convenience to avoid putting  
    315314   =Set PUBLIC_CACHE_EXPIRE= by hand on all topics using  
    316315   =%<nop>INCLUDE{external-url}% 
    317    * If you use TWiki:Codev/ModPerl, TWiki:Codev/SpeedyCGI or TWiki:Codev/PersistentPerl, check that you enable 
     316   * If you use mod-perl, Speedy CGI or Persistent Perl, check that you enable 
    318317     it also for =bin/vief= for better performance, and *disable it for view*, as it 
    319318     no more a perl file and will crash your server 
     
    335334   * linux (or any unix with GNU utilities, but untested) 
    336335   * TWiki Cairo, Dakar, Edinburgh, Freetown, ... (3.0 -> 4.2). Should work on 
    337      any version at it is very disconnected from TWiki perl code. Warning: 
     336     any version at it is very disconnected from TWiki/Foswiki perl code. Warning: 
    338337     Cairo(3.0) is only supported in the version 3.1 of this plugin 
    339338   * Changes to pages not resulting from an edit will not be shown 
     
    366365---++ Performance, benchmarks 
    367366Current performance: (celeron 1Ghz, 512M RAM, Apache 1.3, 150 max processes) 
    368 for 20 simultaneous requests for the same TWiki page: 
     367for 20 simultaneous requests for the same Foswiki page: 
    369368|*Configuration*|*First run, empty cache*|*2nd run, cache built*| 
    370369| Normal 4.2  | 143s load 20 | 143s load 20 | 
    371 | TWiki:Codev/TWikiCache  | 66s load 12 | 65s load 11 | 
     370| Foswiki:Development.FoswikiCache  | 66s load 12 | 65s load 11 | 
    372371| Cairo+mod_perl+koalaskin  | 28s load 8 | 18s load 9 | 
    373372| Cairo+speedy+koalaskin | 20s load 6 | 17s load 8 | 
     
    394393<br> =i=1000;while let 'i-->0';do curl -s --compressed <nop>http://mytwiki/bin/view/System/Macros >/dev/null& done; time wait= 
    395394 
    396 Note that it does *not* mean this cache is better that  TWiki:Codev/TWikiCache 
     395Note that it does *not* mean this cache is better that  Foswiki:Development.FoswikiCache 
    397396for all uses. If you just look at the time to load a single page: 
    398397|*Configuration*|*1rst time*|*2nd time*| 
     
    400399| Normal+speedy  | 6s | 5.5s | 
    401400| publiccache  | 6s | 0.06s | 
    402 | TWiki:Codev/TWikiCache  | 4.3s | 3.3s | 
    403 | TWiki:Codev/TWikiCache + speedy  | 4.5s | 3s | 
    404 You can see that !TWikiCache will be better suited for intranet sites, and the 
     401| Foswiki:Development.FoswikiCache  | 4.3s | 3.3s | 
     402| Foswiki:Development.FoswikiCache + speedy  | 4.5s | 3s | 
     403You can see that !FoswikiCache will be better suited for intranet sites, and the 
    405404only option if you use access control or have personalized views anyways. And 
    406405my "benchmark" is really braindead and do not model typical use. And it only 
     
    412411   * Set SHORTDESCRIPTION = Fast cache geared for public site usage 
    413412 
    414 |  Add-on Author: | TWiki:Main.ColasNahaboo | 
    415 |  Copyright: | &copy; 2008, TWiki:Main.ColasNahaboo | 
     413|  Add-on Author: | Foswiki:Main.ColasNahaboo | 
     414|  Copyright: | &copy; 2008, Foswiki:Main.ColasNahaboo | 
    416415|  License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) | 
    417416|  Add-on Version: | 12 Apr 2008 (V4.006) | 
     
    438437|  29 Jan 2008: | algorithm v2, beta, autoconfig | 
    439438|  13 Jan 2008: | Initial version, v1, alpha | 
    440 TWiki Dependency: | $TWiki::Plugins::VERSION 1.020 (TWiki 3.0) | 
     439Foswiki Dependency: | $Foswiki::Plugins::VERSION 1.020 (TWiki 3.0) | 
    441440|  CPAN Dependencies: | LWP::Simple File::Path | 
    442441|  Other Dependencies: | bash, sed, wget, grep, crontab, cc (optional), ... | 
     
    448447__Related Topic:__ %SYSTEMWEB%.ContributedAddOns 
    449448 
    450 -- TWiki:Main/ColasNahaboo 
     449-- Foswiki:Main/ColasNahaboo 
  • trunk/SeeSkin/data/TWiki/SeeSkin.txt

    r498 r898  
    33---+!! SeeSkin 
    44 
    5 ...is a wholly Cascading Style Sheets -based skin for TWiki. It strives to find the right balance between simplicity, a pleasing appearance, and sound structural foundation -- a clean separation of content and display logic. It should look good in modern browsers while remaining completely accessible to older ones. 
     5...is a wholly Cascading Style Sheets -based skin for Foswiki. It strives to find the right balance between simplicity, a pleasing appearance, and sound structural foundation -- a clean separation of content and display logic. It should look good in modern browsers while remaining completely accessible to older ones. 
    66 
    77<div class="inset"> %TOC% </div> 
     
    1010 
    1111        1. unpack the archive from twiki-root. 
    12                 1. if you use the TWiki web for your plugins, move =*/Plugins/*= to =*/TWiki/*= 
     12                1. if you use the System web for your plugins, move =*/Plugins/*= to =*/System/*= 
    1313        2. if you don't already have it, add the =savemulti= script to =$twiki/bin/.htaccess= 
    1414        3. Edit %SYSTEMWEB%.DefaultPreferences, or %USERSWEB%.SitePreferences, or WebPreferences, or your <nop>UserName topic and add the following: 
     
    3131---+++ Making %Webs% work 
    3232 
    33 Edit WebPreferences in each of your webs and add INLINESTYLE to customise on a per-web basis. The following settings work out of the box for the TWiki, Plugins, and Sandbox webs.  
     33Edit WebPreferences in each of your webs and add INLINESTYLE to customise on a per-web basis. The following settings work out of the box for the System, Plugins, and Sandbox webs.  
    3434 
    35 *TWiki:* 
     35*System:* 
    3636<verbatim> 
    3737%PLUGINWEB%.SeeSkin per-web preferences 
     
    6262---+++ Going beyond 
    6363 
    64 EXTernal STYLEsheet is where 90% of magic happens. It is advisable to make a copy and use that for tweaking. This way future upgrades won't clobber your hard work inadvertantly. [[http://www.bradsoft.com/topstyle/index.asp][TopStyle]] is an excellent CSS editor for Windows. See TWiki:Codev/CssResources for tools on other platforms, along with many other good learning resources. 
     64EXTernal STYLEsheet is where 90% of magic happens. It is advisable to make a copy and use that for tweaking. This way future upgrades won't clobber your hard work inadvertantly. [[http://www.bradsoft.com/topstyle/index.asp][TopStyle]] is an excellent CSS editor for Windows. See Foswiki:Development:CssResources for tools on other platforms, along with many other good learning resources. 
    6565 
    6666For inspiration and a solid demonstration of how dramatically you can change a site "simply" by editing the stylesheet there is no better place to visit than the [[http://csszengarden.com/][CSS Zen Garden]]. 
Note: See TracChangeset for help on using the changeset viewer.