> Today, it works on iPhone OS 3.0 thanks to TiddlyWeb.
Woot! This is awesome, well done.
It would be great if you could make a blog posting or something
similar that provides what amounts to a cookbook for the entire
process, from jailbreaking through to working with tiddlers.
> I'm going to search around tiddlywiki css again for a minimalist
> mobile lightweight stylesheet. I like BidiX's iTW TiddlyWiki for the
> iPhone but it looks specific to BidiX's upload service and has tweaks
> I'm not sure to take out without killing the patient.
Very early on in TiddlyWeb's development I loaded up iTW into a bag,
minus some of the BidiX plugins (keeping the style but getting rid of
the upload functionality), and it "just worked". So I would think,
with some judicious filtering, you could do it again.
There was a missing import - should be fixed now:
http://github.com/tiddlyweb/tiddlywebwiki/commit/9d8bd144a4a776e337e2b5557d803d78b5a98835
I guess we should release TWW 0.4 ASAP - hopefully we can do that early
next week.
-- F.
Since I got access to an iPhone[1] now, I gave this a try.
initial setup:
* installed Python (via Cydia)
* installed Setup Tools (via Cydia)
* upgraded Setup Tools (via easy_install)
* installed Subversion (via Cydia)[2]
* installed adv-cmds (via Cydia)[3]
* installed pip (via easy_install) -- this is optional
* installed virtualenv (via pip) -- this is optional[4]
* installed tiddlyweb and tiddlywebwiki (via pip)[5]
instance setup:
$ cd /tmp
$ twanager --load tiddlywebwiki.config instance tweb
$ cd tweb
$ nohup twanager server localhost 8080 &> tweb.log &
accessing instance:
in Safari, open http://localhost:8080 - or directly go to
http://localhost:8080/recipes/default/tiddlers.wiki
(something like cachinghoster might be handy here to save typing)
terminating instance:
$ ps aux | grep twanager | cut -d " " -f 2-8 # returns PID[6]
$ kill <PID>
All shell commands were run via SSH (as root), not using MobileTerminal.
The use of nohup means Backgrounder should not be required.
This works great - apart from the expected UI issues; I might look into
making BidiX's iTW work for this.
-- F.
[1] rant suppressed
[2] apparently the simplejson package is distributed via SVN
[3] this is required for ps, which I use when terminating the instance
[4] virtualenv doesn't actually seem to work ("___VENV_RESTART___ failed
with error code 1") - I had similar issues on Ubuntu, which I fixed by
installing the python-virtualenv package from the repositories instead
of using pip/easy_install - there's no equivalent in Cydia AFAICT
[5] the simplejson C extension could not be compiled - but it works fine
without those speedups
[6] on my Ubuntu system this also returns the PID of the grep command,
though not on the iPhone - also, there's probably a safer way to grab
the PID, but that's secondary since we don't automate the kill
I've added these instructions to TPC:
http://tiddlyweb.peermore.com/wiki/recipes/docs/tiddlers/Installing%20on%20iPhone
Also, there's this tweet*:
"""
after upgrade to TiddlyWeb 0.9.56 and Tiddlywebwiki 0.6 su root no
longer needed! can save TiddlyWiki as user mobile
"""
Tony, can you elaborate on that? I'm not quite sure how the latest
release changes anything in this regard.
-- F.
> I don't have/didn't load ps from Cydia, but luckily the pid was listed
Well, the job is only being displayed right after starting the process
though, right? What if you want to terminate the process after having
closed the respective terminal session?
> I haven't imwiki'd BidiX's iTW, but i look forward to your discoveries
It looks like getting iTW running on TiddlyWeb is simple - all I had to
do was disable UploadPlugin and UploadTiddlerPlugin (for convenience, I
directly edited the file, adding the "systemConfigDisable" tag).
Then I imported the document into TiddlyWeb, and it just worked.
There was, however, a "backstage.init is not a function" JavaScript
error, originating from the iTWTweaks plugin. Fixing that was as simple
as adding a new single-line plugin (called "iTWTweax" for load order):
backstage.init = function() {};
(CC'd Bidix, as this might be a compatibility issue with newer
TiddlyWiki versions.)
> along with your well experienced take on the
> TiddlyWiki/web/webwiki dev married to all these wonderful Cydia/
> Telephoreo tools: git, JamVM, PyObjC, etc..
Uhm, what? :)
> Once the basic pattern is laid down, Android, mojo webOS, Maemo, and
> others will hopefully benefit along with the re-buzz of TiddlyWiki/web/
> wiki.
Unfortunately, I don't have access to an Android or WebOS device...
-- F.