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 $@ $^ 

Dec 14, 2008

Math support...



















With help from Norbert, the matrix is finally made possible, after some guess and luck.

Perhaps it's time that I make it available to Cydia.

Dec 9, 2008

Way to Implement Controller Classes Without ANY .nib Files

The trick by RickMaddy@iphonedevsdk.com is what I was looking for, the way to inherit a Controller class without an Interface Builder, i.e. .nib/.xib files. And samples for the Open Toolchain!

Hope this technique would make my codes more organized and readable. And this just neuturalized another reason for me to buy a Mac.

Dec 6, 2008

Webkit ignores 'alt' text?

OK, I concede safari does recongize alternative text in <img> tag, but only with mouse cursor hovered over, and only in Safari, not Chrome or MobileSafari, where mouse cursor does not even exists. In Firefox/IE, alt text is displayed in the box of the lost image.

Sadly, I can never get the hints by HTML alone on iPhone.