Feb 4, 2013

Wikisrvd now serves Linux


After a few commits, the code in branches is able to build in Linux.

Wikisrvd depends on BZip2, OpenSSL( particular for libcrypto), and can be configured with CMake.

To checkout:
svn co https://wiki2touch-standalone-ui.googlecode.com/svn/branches/wikisrvd wikisrvd

To configure:
cd wikisrvd/ cmake .

To build:
make

To use:
cp wikisrvd daemon/
./daemon/wikisrvd


May 16, 2010

Call for Testers!

This build of wikisrvd is the first test-drive version that is combined with javascript based LaTeX maths rendering by jsMath.

Some changes:
  1. The default listening port is changed from 8080 to 8082. The port 8080 is predominantly used by apps like GoodReader.app, and in these apps the port is usually fixed, and not changeable by users.
  2. So the start page of Wiki2Touch Server for this build goes to http://127.0.0.1:8082/ or http://localhost:8082/ (or other domain/ip address that applies to your case).
  3. Simple maths are rendered when the loading of page is done. (And this still takes some time in some large articles. You can see the percentage done is increasing while jsMath is processing these parts.)
  4. Longer/more complicated maths are displayed in green color, and you can click it to begin rendering a particular piece.
  5. Options for jsMath is at the lower right corner when you scroll the page to top.
  6. According to my experience, it is better to select 'Use images for symbols only' in the options for the balance of quality and compatibility.
  7. All the jsMath fonts are included, and it is consisted of quite A LARGE NUMBER of small image files, taking about 240MB after decompression (according to `du -sh`).
  8. Installing process of this .deb package is slow due to decompression of a large number of small files, so make yourself a cup of tea after you key in 'dpkg -i wikisrvd-1.2.20100515.deb' followed by an 'enter'.

Mar 5, 2010

`Wiki2Touch Server' on theBigBoss repository updated

Thanks to the effort to BigBoss and colleagues, Wiki2Touch Server on BigBoss is updated to the latest stable build on my project site(, which support large dump files, i.e. .dat file that is larger than about 4GB), though the version leapt from 0.x.x to 1.x.x for technical reason.

You can upgrade your Wiki2touch server on Cydia after jailbreaking.

Feb 12, 2010

A bold plan

  • To rewrite a new indexer, to support the original articles.xml.bz2 from Wikipedia + a small separated title-index file (to save a lot of downloading time from 3rd-party sharing sites).
    - almost done,
    e.g. xml.bz2 like the 400MB Chinese one, indexed into three files of total 26MB, further compressed as 12MB.
  • To rewrite the TitleIndex, WikiMarkupGetter, WikiMarkupParser, Main, Settings in order to support the change above.
  • Ajax-Polling for template - the timeout in Safari is too short for the most complicated templates.
  • JSMath integration: rendering-on-demand.

Oct 30, 2009

jsMath is amazing!

jsMath can really do something on the Device.

Plus side: getting rid of xxxMB of hashed Tex-converted png files, no need to update.
Minus side: Slow, still need 7xMB of font images (which may be reduced in future).








Oct 28, 2009

Articles.bin that is lager than 4GB

Seems that some modifications should be done in TitleIndex.cpp/.h or nothing can go on...

Edit:

Please use this snapshot (or this deb package), just unzip and replace old wikisrvd (the one in the folder daemon) with this new one.

Edit2:

Alright. I must confess that I missed the ownership of the .plist file in the deb package, leading to the launchdaemon think that the file is dubious and refuse to load it. So, please download and reinstall the deb package from Google Code again ONLY if you had tried before 14:40 GMT 2009-Oct-28. I know that about 3 persons might be affected.

Jul 9, 2009

quick notes

########### CC ####################### CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1  INCPATH1=/Developer/Platforms/iPhoneOS.platform/Developer/usr/include  INCPATH2=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/include  INCPATH3=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/System/Library/Frameworks  INCPATH4=~/myframeworks  INCPATH5=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/include  INCPATH6=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/lib/gcc/arm-apple-darwin9/4.0.1/include/ CFLAGS= -I$(INCPATH1) \         -I$(INCPATH2) \         -I$(INCPATH3) \         -I$(INCPATH4) \  -I$(INCPATH5) \  -I$(INCPATH6) \         -I. ############# LD ####################### LD=$(CC) LDPATH1=/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/gcc/arm-apple-darwin9/4.0.1  LDPATH2=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/lib  LDPATH3= FPATH=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/System/Library/Frameworks  LDFLAGS=-lobjc \  -framework CoreFoundation \  -framework Foundation \  -framework UIKit \  -framework CoreGraphics \  -L$(LDPATH1) \  -L$(LDPATH2) \  -L$(LDPATH3) \  -F$(FPATH) \  -bind_at_load \  -lgcc_s.1    FILES=Classes/*.o \  main.o  %.o: %.m   $(CC) -c $(CFLAGS) -x objective-c $< -o $@  APPNAME=myName ALL: $(APPNAME)
$(APPNAME): $(FILES)  $(LD) $(LDFLAGS) -v -o $@ $^