My C++ parser is now a working offline browser. This is achieved by converting a mysql dump of the cur table into an sqlite database once, then using apache/php as a frontend and a php file calling the compiled C++ executable, which renders HTML on-the-fly. Browse using your favourite browser :-)
Why bother with this, if a static HTML version would do the same? * Proof-of-principle * sqlite databases can be changed, allowing for edits * Encapsuled database object, can be easily switched to use mysql or any other database instead of sqlite for use on a website * Full-text search (which I'll implement next)
Some things that bug me: * Is there an easy way to call an executable directly from apache, without the need for a PHP script in-between? * Is there a no-setup-needed web browser? Some .exe that I can start on a windows machine, then fire up the web browser, and view/edit my local wikipedia copy?
Magnus
On Tuesday, Oct 21, 2003, at 03:09 US/Pacific, Magnus Manske wrote:
My C++ parser is now a working offline browser. This is achieved by converting a mysql dump of the cur table into an sqlite database once, then using apache/php as a frontend and a php file calling the compiled C++ executable, which renders HTML on-the-fly. Browse using your favourite browser :-)
Neat!
Why bother with this, if a static HTML version would do the same?
- Proof-of-principle
- sqlite databases can be changed, allowing for edits
- Encapsuled database object, can be easily switched to use mysql or
any other database instead of sqlite for use on a website
- Full-text search (which I'll implement next)
* eliminate filesystem overhead of a hojillion tiny files
Pack source plus ready-to-run executables for Windows, Linux/x86, and Mac, and this could be handy.
Some things that bug me:
- Is there an easy way to call an executable directly from apache,
without the need for a PHP script in-between?
CGI? Turn it into an Apache module to run in-process?
- Is there a no-setup-needed web browser? Some .exe that I can start
on a windows machine, then fire up the web browser, and view/edit my local wikipedia copy?
Probably some out there.
-- brion vibber (brion @ pobox.com)
On Tue, 21 Oct 2003, Magnus Manske wrote:
- Is there a no-setup-needed web browser? Some .exe that I can start on
a windows machine, then fire up the web browser, and view/edit my local wikipedia copy?
I downloaded Mozilla Firebird (currently at version 0.7 and working *very* well) yesterday on windows and discovered that it's a simple ZIP file with no installation: just unzip and run the EXE file. URL is www.mozilla.org
I mailed some days ago Brion privately about the static html dump, but probably the email got lost in some server upgrade madness :-) My script works fine, and (compared to the last days) works well enough that I feel confident it can be used on wikipedia servers. Is anyone interested on putting static dumps online? It can be an automatic procedure or, for the first times, manually run from any machine.
Ciao, Alfio
wikitech-l@lists.wikimedia.org