[Gambas-user] Offline documentation is out-of-date

ron ronstk at ...239...
Sun Jun 4 18:52:47 CEST 2006


On Sunday 04 June 2006 18:20, Christopher Brian Jack wrote:
> On Sun, 4 Jun 2006, ron wrote:
> 
> > > That program may be as simple as wget --mirror, but ideally you
> > > want something a little faster and nicer to the web server.  The
> > > "publish" program provided that for TWiki; whether the current
> > > wiki Benoit wrote has such a utility, I don't know, but we can
> > > always use the wget method once in a while in a pinch (and if I
> > > were to catch people doing that a lot during the day, I'd have
> > > to put IP bandwidth restrictions in place.)
> 

That wasn't me :)

> Due to the birthday paradox (it only takes 70 people to be over 90% and
> there's a lot more than 70 people in any one time zone) and time zones
> (what is peak daytime hours for your server may be 3am for others)  you'd
> be restricting a LOT of IP addresses on a regular basis.  It would appear
> wget --mirror isn't really a good idea.  Also one would want to grab just
> the part of the documentation that is in their desired language.  wget
> --mirror will grab everything!
> 

wget --mirror would be indeed to much.

The problem is by the way the language select is done
For dutch: 
  'http://gambasdoc.org/help/changes?nl' 

It would be better using the mod_rewrite with apache
  'http://gambasdoc.org/help/nl/changes' 
or
  'http://gambasdoc.org/help/changes/nl' 
with mod_rewrite the url can be translated at the server to 
  'http://gambasdoc.org/help/changes?nl' 
to keep the current system working.


or
  'http://gambasdoc.org/help/{help_page}?lang=nl'
  'http://gambasdoc.org/help/{help_page}?lang=nl'

Take a look at 'http://82.171.66.79/www/ftp/Gambas_Dokumentation.war'
Here I use mod_rewrite to start a script to present the content
of a *.war (.tgz) file as web page. 
(the links does not work because this is only one page for demo)

Ron
 




More information about the User mailing list