Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-28-2008, 07:21 PM   #1
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
Talking 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:
  1. serve as a local content server so that you can download IMP books to your device (you do not need software like GEB Librarian)
  2. serve static pages/media residing on your hard-disk
  3. browse the net using impserve as a proxy server
  4. download .IMP books from the net
  5. automatic conversion of PRC, LIT, DJVU and PDF books to .IMP (via plugins)

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
Attached Files
File Type: zip impserve-0.1.zip (5.2 KB, 1647 views)
File Type: zip impserve-0.2.zip (5.1 KB, 1715 views)
File Type: zip ebookutils-0.3.zip (61.5 KB, 1589 views)
File Type: zip ebookutils-0.4.zip (61.8 KB, 1576 views)
File Type: zip ebookutils-0.4.1.zip (60.7 KB, 1723 views)
File Type: zip ebookutils-0.4.2.zip (58.3 KB, 1640 views)
File Type: zip ebookutils-0.4.2-win32.zip (1.94 MB, 1912 views)

Last edited by ashkulz; 09-21-2008 at 08:53 AM. Reason: move to website
ashkulz is offline   Reply With Quote
Old 08-28-2008, 09:59 PM   #2
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
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'
Is this a windows thing using alarm()?

Eagerly waiting for a fix, and don't say switch to linux!

Last edited by nrapallo; 01-10-2011 at 01:14 PM.
nrapallo is offline   Reply With Quote
Advert
Old 08-29-2008, 12:14 AM   #3
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
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 01:43 PM. Reason: added comment what can be done using latest verison.
nrapallo is offline   Reply With Quote
Old 08-29-2008, 05:38 AM   #4
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
Is this a windows thing using alarm()?

Eagerly waiting for a fix, and don't say switch to linux!
Released a new version 0.2, with miscellaneous windows compatibility fixes.
ashkulz is offline   Reply With Quote
Old 08-29-2008, 08:04 AM   #5
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
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:")
It transfers .imp ebooks OK from the "online bookshelf", but the "local content" traffic seems slower than Linreb + privoxy (especially for MIME image types for .gif/.jpg/.png files).

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?
nrapallo is offline   Reply With Quote
Advert
Old 08-29-2008, 08:06 AM   #6
derrell
Jack O' Apes
derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.
 
derrell's Avatar
 
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:")
//edit//
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.
derrell is offline   Reply With Quote
Old 08-29-2008, 08:14 AM   #7
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 derrell View Post
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:")
//edit//
Nick beat me to it.
Sorry, what's that phrase again "Great minds, ..."

Quote:
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.
Tutorial? what's that and who has the time...

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...
nrapallo is offline   Reply With Quote
Old 08-29-2008, 08:31 AM   #8
derrell
Jack O' Apes
derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.
 
derrell's Avatar
 
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.
derrell is offline   Reply With Quote
Old 08-29-2008, 08:34 AM   #9
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 derrell View Post
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.
My .imp transfer speed to the reader "seems" OK as well, it's the internet MIME transfers that are very slow, as far as I can tell!
nrapallo is offline   Reply With Quote
Old 08-29-2008, 08:45 AM   #10
derrell
Jack O' Apes
derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.
 
derrell's Avatar
 
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 -
derrell is offline   Reply With Quote
Old 08-29-2008, 08:58 AM   #11
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 derrell View Post
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 -
Did you try copying in the entire 'content' directory from the Linreb-0.2.02 package? Just the index.html is in ashkulz's v0.2 post above; it's missing the rest of the files to make it work.

Otherwise, "roll your own" index.html.

Last edited by nrapallo; 08-29-2008 at 10:37 AM. Reason: reworded post a bit
nrapallo is offline   Reply With Quote
Old 08-29-2008, 09:04 AM   #12
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
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...
Attached Files
File Type: txt impserve-log-WinXP.txt (3.0 KB, 1161 views)
File Type: txt Linreb+privoxy-log-WinXP.txt (27.1 KB, 1189 views)

Last edited by nrapallo; 08-29-2008 at 09:35 AM.
nrapallo is offline   Reply With Quote
Old 08-29-2008, 09:06 AM   #13
derrell
Jack O' Apes
derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.
 
derrell's Avatar
 
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
Quote:
Originally Posted by nrapallo View Post
Did you try with the entire 'content' directory from the Linreb-0.2.02 package?
Yep tried both access to the net has been flaky for me with my eb-1150 anyway. It could very well be a problem with my box somewhere. Permissions, or something.

I'll try some more later I'm off to bed for now. Just got in from work a couple of hours ago.
derrell is offline   Reply With Quote
Old 08-29-2008, 09:41 AM   #14
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
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>&nbsp;</p>
<p>&nbsp;</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>&nbsp;</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>
Ret is offline   Reply With Quote
Old 08-29-2008, 10:03 AM   #15
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
IMPRESSIVE work! Congratulations ashkulz! Thank you for your effort! ... Thanks again for your code. It's incredible that such few lines of code resolves HOURS of testing, settings, etc. Well done!
I echo the same sentiment. You look at that python code and say "WOW". I guess you have to be a techie to really appreciate what Ashish has done!

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 10:43 AM.
nrapallo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Confused about personal content re: eBookwise 1150 locomouse Fictionwise eBookwise 6 11-25-2009 12:52 PM
PDFRead - reading PDFs on the 1100/1150/1200 eBook Readers ashkulz IMP 87 06-04-2009 02: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 04:34 PM
Hacking EBW-1150 to browse the Internet sputnik Fictionwise eBookwise 44 08-27-2008 08:40 AM
Comparing 1150 to 1200 or 2150 Katelyn Fictionwise eBookwise 1 04-29-2007 11:38 AM


All times are GMT -4. The time now is 10:57 PM.


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