|
|
Thread Tools | Search this Thread |
08-28-2008, 08:21 PM | #1 |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
impserve: serving content and accessing the internet for the 1200/1150
NOTE: impserve is now part of ebookutils which is hosted at http://ebookutils.berlios.de.
I'm proud to release impserve, which will allow you to do the following:
Please see the Impserve page for further details on how to configure your ebook, install and use impserve. For downloading the latest version, please visit the ebookutils homepage. I always planned to do this script, but linreb gave me quite a few good ideas. Big thanks to Nick, Nandu, and all the other people who are helping us to maintain this community Last edited by ashkulz; 09-21-2008 at 09:53 AM. Reason: move to website |
08-28-2008, 10:59 PM | #2 |
GuteBook/Mobi2IMP Creator
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
|
NOTE: For more impserve "plugins", see Impserve: user-created Plugins and requests....
Ashish, I'm using WinXP with ActivePython 2.5.1.1 installed (hey, I compiled PDFRead didn't I?) and I get the segmentation fault below: Code:
E:\ebooks\Impserve>impserve.py -a 192.168.X.XX -p 8118 shelf Traceback (most recent call last): File "E:\ebooks\Impserve\impserve.py", line 119, in <module> signal.signal(signal.SIGALRM, SIGALRM_handler) AttributeError: 'module' object has no attribute 'SIGALRM' Eagerly waiting for a fix, and don't say switch to linux! Last edited by nrapallo; 01-10-2011 at 02:14 PM. |
Advert | |
|
08-29-2008, 01:14 AM | #3 |
GuteBook/Mobi2IMP Creator
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
|
I already have some suggestions, without even using the program, Sheesh!
When you "serve up" the webpages to the hardware reader, could you text substitute: - <a href> to <a UNDERLINE="YES" href> (so that you can SEE hyperlinks) - DONE IN LATEST VERSION! - <body> to <body style="margin-left:2%; margin-right:2%"> (so there's no edge-bleeding) - HAS NO EFFECT SO CAN'T DO THIS! - etc. (give it time; more suggestions forthcoming...) Last edited by nrapallo; 09-09-2008 at 02:43 PM. Reason: added comment what can be done using latest verison. |
08-29-2008, 06:38 AM | #4 |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
|
08-29-2008, 09:04 AM | #5 |
GuteBook/Mobi2IMP Creator
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
|
Congratulations on a finely-crafted all-in-one software solution! Kudos!
OK, works now, sort of. Have to FIRST change a line in def main(argv) to fix a simple typo ('b' should be 'a'): Code:
opts, args = getopt.getopt(argv, "hb:p:") --> opts, args = getopt.getopt(argv, "ha:p:") I initially thought, "Maybe my network is congested?". But after further testing using Linreb instead, I would have to say "No, it seems that impserve is very much slower (guessing about 1/2 to 1/3 the transfer speed of Linreb + privoxy)". It seems to have lost it's "snap"! Would the python libraries be at fault here? I used my content/index.html from the Linreb package as a test and surfed to the Mobileread Wiki pages. Can you try a comparison at your end? |
Advert | |
|
08-29-2008, 09:06 AM | #6 |
Jack O' Apes
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
|
Theres a typo in the options so that the -a option isn't recoginized. Its a b instead of an a.
ver .02 line 332 Code:
opts, args = getopt.getopt(argv, "hb:p:") Nick beat me to it. Changed that and it worked fine, had to specify the directory for it to use as a basis for the book shelf though. Just used impserve -a 127.0.0.1 . and it picked up all of the imp files in the current directory and all of those below it. Very nice. Things keep changing so fast I'll never be able to keep a tutorial up to date on how to get your eb-1150 working with usb and linux. |
08-29-2008, 09:14 AM | #7 | ||
GuteBook/Mobi2IMP Creator
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:
Quote:
Did you notice any speed degregation in linux? If not, it may just be a windows-specific thing with ActiveState Python 2.5.1.1! Oh, well... |
||
08-29-2008, 09:31 AM | #8 |
Jack O' Apes
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
|
Seems just a touch slower, but its hard to say that just may be an impression.
Tried it with the same book about 500k as close as I can tell they were exactly the same speed wise. Took about 8 seconds with a pause toward the middle of the progress bar for both impserve and linreb. I'm assuming that was when the 1150 was converting the imp to its internal format. |
08-29-2008, 09:34 AM | #9 | |
GuteBook/Mobi2IMP Creator
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:
|
|
08-29-2008, 09:45 AM | #10 |
Jack O' Apes
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
|
Can't tell you about that all I'm getting is 404 errors when the reader tries to open the index.html file in content.
Code:
localhost - - [29/Aug/2008 07:43:32] code 404, message File not found localhost - - [29/Aug/2008 07:43:32] "GET http://bookshelf.ebooksystem.net/content/ HTTP/1.0" 404 - |
08-29-2008, 09:58 AM | #11 | |
GuteBook/Mobi2IMP Creator
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:
Otherwise, "roll your own" index.html. Last edited by nrapallo; 08-29-2008 at 11:37 AM. Reason: reworded post a bit |
|
08-29-2008, 10:04 AM | #12 |
GuteBook/Mobi2IMP Creator
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
|
Speed comparison on WinXP
I have tried the same ebook reader actions under two 'surf the internet' solutions: one being impserve; the other being 'Linreb+privoxy'. I only used the REB1200, so far, haven't tried the EBW1150 yet.
I attach the log results from both and you can see that the transfer times are much slower in impserve. Now to find the cause of it and if it is system related... BTW, Ashish, notice the last log entry; it's a delete request from the online bookshelf that could be implemented in impserve. Linreb also ignores that delete request. Food for thought... Last edited by nrapallo; 08-29-2008 at 10:35 AM. |
08-29-2008, 10:06 AM | #13 | |
Jack O' Apes
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
|
Quote:
I'll try some more later I'm off to bed for now. Just got in from work a couple of hours ago. |
|
08-29-2008, 10:41 AM | #14 |
Connoisseur
Posts: 81
Karma: 480
Join Date: Dec 2004
|
IMPRESSIVE work! Congratulations ashkulz! Thank you for your effort!
I downloaded Portable Python and in a minute Impserve was up and running! I'd change the first hard-coded web page to use an index.html file. It nows shows two links: local contents, and online library which I find to be unnecessary. Just open local contents page. I'm adding the HTML code I use as index.html to show a Google search, a link to an IMP book in mobileread and a link to the forum message where it was found. So far it seems you cannot directly download ebooks from Mobileread. As I said before, this is becausem Mobileread webservers (as almost ALL webservers) doesn't know the MIME type application/x-softbook and handles IMP files with type unknown/unknown. Is there a way to change those HTTP headers to "Conten-type: applicaction/x-sofbook"? Thanks again for your code. It's incredible that such few lines of code resolves HOURS of testing, settings, etc. Well done! Code:
<html> <head> <title>Welcome to ImpServe</title> </head> <body> <p><h1> Welcome to Impserve</h1> </p> <p> </p> <p> </p> <center> <img alt="Google" src="http://www.google.com/intl/en/images/about_logo.gif" height=65 width=175> </center> <p> <form name=Search method=GET action="http://www.google.com/search?hl=en"> <input type=text name='q' size=22 maxlength=2048 value=""> <input type=submit name="btnG" value="Search"></form> </p> <p> </p> <center> <a href="https://www.mobileread.com/forums/attachment.php?attachmentid=15610&d=1219722410 ">Link to an IMP ebook in Mobileread</a> <a href="https://www.mobileread.com/forums/showthread.php?t=28232">Link to a Mobileread forum</a> </center> </body> </html> |
08-29-2008, 11:03 AM | #15 | |
GuteBook/Mobi2IMP Creator
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:
Thanks, Ret, for the startup page; it was a bit minimalist. I would leave the 'Online Bookshelf' link, for nothing else, but the novelty of it! It only gets better and better... What next, whispernet! Last edited by nrapallo; 08-29-2008 at 11:43 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Confused about personal content re: eBookwise 1150 | locomouse | Fictionwise eBookwise | 6 | 11-25-2009 01:52 PM |
PDFRead - reading PDFs on the 1100/1150/1200 eBook Readers | ashkulz | IMP | 87 | 06-04-2009 03:43 PM |
How do you get new content onto your eBookwise 1150 / REB 1200? (pick all that apply) | nrapallo | Fictionwise eBookwise | 23 | 02-03-2009 05:34 PM |
Hacking EBW-1150 to browse the Internet | sputnik | Fictionwise eBookwise | 44 | 08-27-2008 09:40 AM |
Comparing 1150 to 1200 or 2150 | Katelyn | Fictionwise eBookwise | 1 | 04-29-2007 12:38 PM |