Archive for September 13th, 2007
A PhD student in HCI using TiddlyWiki beautifully to present lots of interesting work (nice theme from Saq, too)
So, here at Osmosoft been lucky enough to have access to an iPhone to play with for the last few weeks. Our first discovery was that TiddlyWiki works just fine on the iPhone – apart from being excruciatingly slow. TiddlyWiki is so meaty you really feel the 20x speed difference between a MacBook Pro and an iPhone. Anyhow, I’m confident that we can slim TiddlyWiki down to the extent that it runs at a reasonable speed on these new portable slow AJAX devices. (If you try the leaner and meaner first version of TiddlyWiki on an iPhone, it’s a good deal snappier).
The other problem is that saving doesn’t work properly because the TiddlyWiki is being accessed via http. We can expect that TiddlyWiki adaptations that support serverside saving (like TiddlySpot) will work, but that doesn’t really speak to the TiddlyWiki vision of untethered access to the information that you need.
I quickly discovered a potential solution: the iPhone supports bookmarks whose URL is a data URI. The procedure is to use something like Hixie’s data: URI kitchen to encode a file (HTML, images or PDFs all seem to work fine; possibly Word and Excel Documents too) into a data: link. Then right-click on the link and select “add to bookmarks”. You’ll end up with a bookmark that starts something like this:
When that bookmark is invoked, the base64 data is converted back into a binary file, which is then displayed by the browser – all without recourse to the Internet.
The really interesting thing is that Safari/iPhone support bookmarks of up to 32 megabytes or so, which suggested the possibility of embedding an entire TiddlyWiki in a bookmark. And, it turns out that it works — giving you offline read-only access to TiddlyWiki files on an iPhone.
Here are the steps to convert any TiddlyWiki to use offline on the iPhone
1. Locate the TiddlyWiki file you want to convert (it can be stored locally or on the internet)
2. Go to Hixie’s data: URI kitchen in Safari
3. Make sure the ‘base64′ checkbox is enabled
4. Either enter the URL of the TiddlyWiki file in the text box, or use the ‘Choose file’ button to select a local file
5. Click ‘Generate’
6. Wait; it can be quite slow to do the conversion with a big TiddlyWiki file
7. Right click on the resulting link and select ‘Add Link to Bookmarks…’
8. Go to iTunes and make sure that you’ve selected to sync your Safari bookmarks with the iPhone
9. Sync the iPhone
10. On the iPhone, select the bookmark
This is all still quite rough and ready; there’s still a bunch of work to do to get a first-class TiddlyWiki experience on the iPhone. In my next post I’ll be looking at optimising the TiddlyWiki user interface for the iPhone, to make it look and feel more like a native application.