View Full Version : How do I stay offline?
04-20-2007, 12:06 PM
New N800 owner here... so there might be an easy answer to this one...
I've searched and searched but I can find it... I have cached HTML I'd like to read offline, but neither the internal browser nor Minemo is able to go from one page to another without the N800 prompting me to go back online. This gets old fast.
I can always use Plucker and FBReader like I did with my Palm but the results I get caching real web files are much better. I just need to get rid of the "Exit offline mode?" prompts!
04-20-2007, 01:48 PM
Yeah, the Opera browser needs a "work offline" setting.
04-20-2007, 02:20 PM
Agreed, it does need a better offline mode, but I haven't experienced this problem. If it's feasible (i.e., these are the same documents you access over and over), it may be worth stripping out the outside links. I have a set of HTML files, with only internal links between them, and it doesn't prompt me to go back online. If you're using wget to download pages, the -k switch makes links between pages of a site local, but I don't think it strips external links.
If it's a one-time spidering, it may not be worth the trouble.
04-20-2007, 03:16 PM
Thanks - I am using -k in wget and I haven't seen any outside links on any of the pages - certainly have not clicked on anything. Even a local HTML file seems to trigger it. It's odd that it happens in Minimo too. If I solve it I will definitely post!
04-20-2007, 05:37 PM
04-22-2007, 04:27 PM
Indeed there is some server content remaining on some pages. I found that if I removed it from individual pages by hand the N800 stops asking to go online. Score!
I could not find a way to make wget stop adding outside links... not without causing it download the entire Internet anyway (at least it seemed that way - I stopped at half a gig). I like the idea of the N800 doing the download autonomously (not possible with Plucker) and I see sed is available in xterm, so my next go is going to be to try to find some way to pipe the files into it for processing, or to post process them in a script.
If I can find enough interesting RSS feeds that might do as well. The default reader isn't bad but I have found no way to ask it to cache everything, which is what I would need for offline reading.
A "Work offline" mode would be so much easier!
04-22-2007, 08:16 PM
I was able to write a script that works in both Debian Etch and on the N800 with xterm and wget installed.
Here's a snippet. This assumes a "pages" subdirectory holding all the requested pages.
wget -nv -r -p -k -l 5 http://www.guardian.co.uk/pda/avantgo/
wget -nv -r -p -k -l 5 http://news.bbc.co.uk/low/english/pda/default.htm
# add more as you like,...
for f in `find . -name '*.htm*'` ; do
# unresolved links to file links
sed 's/http:\/\//file:\/\//' "$f" > "$f.tmp"
mv -f "$f.tmp" "$f"
I first retrieve the pages, then use sed to replace "http://" with "file://". This is an imperfect solution as the browser does try to find them, so the page never really finishes "loading." A more clever solution would be to be to remove the entire tag.
A rudimentary index.html gives me one place to access all the links.
<A HREF="./pages/www.guardian.co.uk/pda/avantgo/index.html">Guardian Unlimited</A><br>
<a href="./pages/news.bbc.co.uk/low/english/pda/default.htm">BBC News</a><br>
<!-- add more -->
I just have to keep it in sync with the script.
I can't say how happy I am that this device can do this. I've been hanging on to a Palm T3 that's been falling apart for three years now waiting for a suitable successor. I never thought it'd be called an "Internet Tablet"! :)
04-24-2007, 04:05 AM
The great thing is that you can script properly on the N800.. with that, there are almost no limits to what you can do, given some ideas an imagination.
Now, if there just was an N800 port of Perl available, as I'm must more proficient(sp?) with Perl than Python.. I've been using the 770 port but it's not ideal because there are some dependency problems.
04-24-2007, 05:20 AM
Perl isn't in the N800? I think I recently ran a Perl script and it seemed to work....
Wanna double check?
04-25-2007, 12:19 PM
If you have it it's probably because of canola, IIRC.. there's some rudimentary Perl package which gets sucked in with it. It works, but not all modules (the last time I tried).
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.