Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > Fictionwise eBookwise

Notices

Reply
 
Thread Tools Search this Thread
Old 08-28-2008, 09:47 AM   #16
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Surf the internet from within a .imp ebook?

I'm playing with the idea of embedding weblinks in a .imp ebook, and then loading it onto the ebook reader with Linreb after putting the .imp ebook into the 'shelf' directory.

I wanted to see how I could enable the reader to access the internet, not from the content html pages, but from an opened .imp ebook.

I failed (for now...) since the 'register.ebooksystem.net' was not being forwarded to the internet, but to Linreb. Linreb cannot yet fetch webpages.

I tried to forward just this request to privoxy, but got into an endless loop. Requires a bit more study.

BTW, the HTTP request sent by the ebook reader was logged as:
Code:
http://register.ebooksystem.net/form/redirect.asp?target=http%3A%2F%2Fwiki%2Emobileread%2Ecom%2Fwiki%2FMain_Page&pubid=None%3Aebook%3Aguid-237ceaa3f5cb49b281ca33724a38bc5b
The sample .imp ebook I used is attached below. Your mileage may vary...

EDIT: Oops, I carelessly uploaded a .imp that was only for the REB1200. These attachments correct that! Please note that the .imp below is for the EBW1150 and _1200.imp for REB1200.
Attached Files
File Type: imp next.imp (36.4 KB, 517 views)
File Type: imp next_1200.imp (34.5 KB, 1316 views)

Last edited by nrapallo; 08-30-2008 at 02:00 PM. Reason: Corrected/uploaded .imp for EBW1150 and _1200.imp for REB1200
nrapallo is offline   Reply With Quote
Old 08-28-2008, 02:23 PM   #17
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by nrapallo View Post
the HTTP request sent by the ebook reader was logged as:
Code:
http://register.ebooksystem.net/form/redirect.asp?target=http%3A%2F%2Fwiki%2Emobileread%2Ecom%2Fwiki%2FMain_Page&pubid=None%3Aebook%3Aguid-237ceaa3f5cb49b281ca33724a38bc5b
Reading the privoxy documentation and config files, I have noticed a "rule" or action that could possibly handle that HTTP register.ebooksystem.net request and "fast-direct" just the tail URL (http%3A%2F%2Fwiki%2Emobileread%2Ecom%2Fwiki%2FMai n_Page).

This is the description in the "default.action" file that is giving me hope to get this to work:
Code:
# +fast-redirects{check-decoded-url}
# +fast-redirects{simple-check}
#    Many sites, like yahoo.com, don't just link to other sites.
#    Instead, they will link to some script on their own server,
#    giving the destination as a parameter, which will then redirect
#    you to the final target. 
#
#    URLs resulting from this scheme typically look like:
#    http://some.place/some_script?http://some.where-else
#
#    Sometimes, there are even multiple consecutive redirects encoded
#    in the URL. These redirections via scripts make your web browsing
#    more traceable, since the server from which you follow such a link
#    can see where you go to. Apart from that, valuable bandwidth and
#    time is wasted, while your browser asks the server for one redirect
#    after the other. Plus, it feeds the advertisers.
#
#    The +fast-redirects{check-decoded-url} option enables interception of 
#    these requests by Privoxy, who will cut off all but the last valid URL 
#    in the request and send a local redirect back to your browser without
#    contacting the intermediate sites. NOTE: Syntax change as of v.3.0.4.
I don't have my hardware reader with me to test it right now, but will do so soon and report my findings here.

It seems privoxy is a very sophisticated program with abilities that need to be looked at more closely...
nrapallo is offline   Reply With Quote
Old 08-28-2008, 02:51 PM   #18
ashkulz
Addict
ashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enough
 
ashkulz's Avatar
 
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
Quote:
Originally Posted by nrapallo View Post
I don't have my hardware reader with me to test it right now, but will do so soon and report my findings here.

It seems privoxy is a very sophisticated program with abilities that need to be looked at more closely...
Nick, I'm writing my own HTTP proxy in python (called impserve, naturally!) which should both serve local content, remote content over the web and the bookshelf. I'm grateful to linreb for leading the way, but it's not code which you can hack upon easily. I should be done today or tomorrow so I don't think we'll need to use Privoxy or any other software, I hope
ashkulz is offline   Reply With Quote
Old 08-28-2008, 03:11 PM   #19
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by ashkulz View Post
Nick, I'm writing my own HTTP proxy in python (called impserve, naturally!) which should both serve local content, remote content over the web and the bookshelf. I'm grateful to linreb for leading the way, but it's not code which you can hack upon easily. I should be done today or tomorrow so I don't think we'll need to use Privoxy or any other software, I hope
'nuff said! Great, I'm done reading this stuff!

I'll wait for your 'impserve' solution!

Talk about tackling the "low-hanging fruit" first, you have made great strides in .imp programming tools evolution.

Way to go, Ashish!
nrapallo is offline   Reply With Quote
Old 08-28-2008, 05:19 PM   #20
Ret
Connoisseur
Ret has a complete set of Star Wars action figures.Ret has a complete set of Star Wars action figures.Ret has a complete set of Star Wars action figures.Ret has a complete set of Star Wars action figures.Ret has a complete set of Star Wars action figures.
 
Ret's Avatar
 
Posts: 81
Karma: 480
Join Date: Dec 2004
It seems the reader sends all web page requests from links within an ebook to ETI servers for redirection. In order to bypass them you need to extract the required URL.
I've managed to make it work with privoxy by adding this code into default.action file.
Code:
{+fast-redirects{check-decoded-url}}
bookshelf.ebooksystem.net/form/redirect.asp?
This may also help ashkulz for his coding.
By the way, ashkulz, if you want to let your impserve download IMP books from mobileread.com you'll have to change their HTTP response header. Whenever you download an IMP file from them, they handle the file with this header "Content-type: unknown/unknown" and it should be "application/x-softbook".
Plus, take a look at the way mobileread writes their links: their href field omits domain name. The readers http client can't understand that.
Ret is offline   Reply With Quote
Old 08-28-2008, 05:29 PM   #21
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Thanks Ret, again, for the solution to our problems/hurdles!

Will try this out soon...
nrapallo is offline   Reply With Quote
Old 08-28-2008, 05:32 PM   #22
Ret
Connoisseur
Ret has a complete set of Star Wars action figures.Ret has a complete set of Star Wars action figures.Ret has a complete set of Star Wars action figures.Ret has a complete set of Star Wars action figures.Ret has a complete set of Star Wars action figures.
 
Ret's Avatar
 
Posts: 81
Karma: 480
Join Date: Dec 2004
I forgot to add that the code I included didn't work with all URLs in your test imp file.
For some reason only google news .CA worked flawlessly, some others didn't work, and sometimes the reader crashed showing some kind of memory dump
Ret is offline   Reply With Quote
Old 08-28-2008, 05:39 PM   #23
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by Ret View Post
I forgot to add that the code I included didn't work with all URLs in your test imp file.
For some reason only google news .CA worked flawlessly, some others didn't work, and sometimes the reader crashed showing some kind of memory dump
Time to update those links to more PDA-friendly sites.

Now where to collect and store all those interesting sites... wiki? thread?

Do you have any suggestions?
nrapallo is offline   Reply With Quote
Old 08-28-2008, 07:30 PM   #24
ashkulz
Addict
ashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enough
 
ashkulz's Avatar
 
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
I've posted the software I was talking about, impserve-0.1. Let me know if you have any bug reports or suggestions... it's 5am here, so I'll look at them tomorrow
ashkulz is offline   Reply With Quote
Old 08-28-2008, 07:42 PM   #25
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by ashkulz View Post
I've posted the software I was talking about, impserve-0.1. Let me know if you have any bug reports or suggestions... it's 5am here, so I'll look at them tomorrow
Wow, an all-nighter, just for our beloved .imp community? What a trooper!

Much appreciated, Ashish.

You have always been an inspiration. You started me programming .imp format tools and look what has been accomplished here since those PDFRead v1.7 days, a year ago...
nrapallo is offline   Reply With Quote
Old 08-29-2008, 08:22 AM   #26
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Hey, we made it to the "Week's Hot Topics" listing on the Mobileread Home page!

Let's keep this thread alive with user suggestions/improvements, list of cool websites visited, websites that don't work and should be avoided, amusing stories explaining this "ability" to co-workers, etc...

EDIT: To easily surf the internet WITHOUT using the (limited) Linreb or Privoxy, please use Impserve and be sure to download all of the Impserve plugins to allow the downloading of content directly from the internet to your ebook reader!!!

Last edited by nrapallo; 02-22-2009 at 10:56 PM. Reason: better to use Impserve for Surfing the Internet!
nrapallo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
About the Keyboard in EBW1150 locomouse Fictionwise eBookwise 2 12-11-2009 01:35 PM
Surf the Internet (Revisited) - sort of! nrapallo Fictionwise eBookwise 5 04-28-2009 08:28 AM
64 MB ebw1150 cyan Fictionwise eBookwise 21 02-18-2009 02:49 PM
Linreb - eLibrarian for REB1200 and EBW1150 nrapallo Fictionwise eBookwise 8 10-01-2008 07:23 PM
TIP: Surf just the images in an ebook nrapallo IMP 8 04-14-2008 10:17 PM


All times are GMT -4. The time now is 12:57 AM.


MobileRead.com is a privately owned, operated and funded community.