Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-12-2008, 11:50 PM   #61
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by CrazyIvan View Post
Ok... let me clarify. I know what a relative path is. I just don't know where this is expected to happen. When I look at the source all the paths appear to be relative. What are you seeing that is not working? Everything seems to be working fine for me at this point. (as long as I run the server from the command line.)

BOb
pilotbob is offline   Reply With Quote
Old 11-13-2008, 04:07 AM   #62
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,976
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Right now the entries in the stanza feed have URL lihe http://somehostname/path/to/epub/file

For this to work the user has to specify a hostname that his iphone can resolve. I was hoping that instead URLs like
/path/to/epub/file would work, in which case the iphone should automatically use whatever IP address the user used to get the feed in the first place as the host.
kovidgoyal is online now   Reply With Quote
Advert
Old 11-13-2008, 05:19 AM   #63
jakewalk
iPhone Rookie
jakewalk began at the beginning.
 
jakewalk's Avatar
 
Posts: 9
Karma: 10
Join Date: Nov 2008
Device: Clié TH55, iPhone
Thumbs down

Hi,

Crazy, thanks for the complements for pdaConverter.

Sadly for my router there is no modified I know of. (At least Tomato and DD-WRT don't support it). But in the meantime I was able to mainly solve my network problems. It had to do with a wireless AP I use to connect my Linux XBOX to the network.

So basically it works, but the server acts strange and I think I found the problem. I have exactly the same behaviour that tHeFiRsTiDioT described.

I cannot ping my PC using the hostname, when I started the server with the command server-calibre --hostname=jakewalk and add http://jakewalk:8080/stanza to stanza's online catalog it doesn't work, but starting the server without any parameter and using the IP for the catalog seems to work: http://192.168.2.79:8080/stanza
But when I try to download a book it doesn't work (see attached IMG_0002.jpg). Then I looked at the XML file and it is apparently not correct:

<entry>
<title>Urteil</title>
<id>urn:calibre:7</id>
<author><name>Kafka</name></author>
<updated>2008-11-13T09:43:51+00:00</updated>
<link type="application/epub+zip" href="http://localhost:8080/get/epub/7"/>
<link rel="x-stanza-cover-image" type="image/jpeg" href="http://localhost:8080/get/cover/7"/>
<link rel="x-stanza-cover-image-thumbnail" type="image/jpeg" href="http://localhost:8080/get/thumb/7"/>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml"><pre></pre></div>
</content>
</entry>

So I tried to manually download the epub file through Stanza's Option "Download Book at URL" (hidden in the settings) and I could succesfully import the file through the URL http://192.168.2.79:8080/get/epub/Das%20Urteil_6.epub (see attached IMG_0003.jpg) That's the prove that the network connection is not part of the problem.

I think the solution is simple. Could you please add a server parameter to the calibre-server.exe that allows using the IP-address in the XML-output instead of localhost? That should fix the problem.
Attached Thumbnails
Click image for larger version

Name:	IMG_0002.jpg
Views:	439
Size:	35.7 KB
ID:	17833   Click image for larger version

Name:	IMG_0003.jpg
Views:	442
Size:	42.1 KB
ID:	17834  
jakewalk is offline   Reply With Quote
Old 11-13-2008, 07:00 AM   #64
tHeFiRsTiDioT
Random Reader of Rubbish
tHeFiRsTiDioT began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Apr 2007
Device: Dell Axim X50v, Sony PRS 505, HTC Incredible, Pocketbook IQ
Jakewalk has posted exactly the same problem I have - wont paste the feed here then.
tHeFiRsTiDioT is offline   Reply With Quote
Old 11-13-2008, 08:44 AM   #65
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by jakewalk View Post
I think the solution is simple. Could you please add a server parameter to the calibre-server.exe that allows using the IP-address in the XML-output instead of localhost? That should fix the problem.
I'm curious have you tried to specify your IP address to the hostname parameter?

BOb
pilotbob is offline   Reply With Quote
Advert
Old 11-13-2008, 08:49 AM   #66
jakewalk
iPhone Rookie
jakewalk began at the beginning.
 
jakewalk's Avatar
 
Posts: 9
Karma: 10
Join Date: Nov 2008
Device: Clié TH55, iPhone
Quote:
Originally Posted by pilotbob View Post
I'm curious have you tried to specify your IP address to the hostname parameter?
Yes, that was my first idea, too. But it didn't work.
jakewalk is offline   Reply With Quote
Old 11-13-2008, 09:33 AM   #67
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
That's what I figured was your issue jakewalk. This all stems from not having your networks setup to support hostnames. If you cannot ping every other network device via its hostname then its not setup correctly. Sure you can get by without having this setup but things like running servers becomes much more problematic when you don't.

This is a large problem domain so ideally if you know someone who understands this stuff maybe talk to them for pointers. Google is also your buddy here. If your still stuck then you'll need to explain how your network is setup i.e. what mechanism you use to provide IP addresses to network devices, how you think your setting up hostnames etc.

These days I believe all of the off the shelf routers/access points/firewalls that can serve DHCP can provide a hostname and update a local dns server on the router to handle local network hostname to IP address resolution.

P.S. Jake you should be trying "http://192.168.2.79:8080/get/epub/7" from stanza. Use a browser to confirm your URL's. Can you see the book cover image at "http://192.168.2.79:8080/get/cover/7" in safari on your iphone? I'm suprised that using the IP address passed in as the server hostname doesn't work. When you pass in the IP to calibre-server are you saying that you don't see the IP in the XML source if you browse to it?

Last edited by RoninTech; 11-13-2008 at 09:43 AM.
RoninTech is offline   Reply With Quote
Old 11-13-2008, 10:13 AM   #68
jakewalk
iPhone Rookie
jakewalk began at the beginning.
 
jakewalk's Avatar
 
Posts: 9
Karma: 10
Join Date: Nov 2008
Device: Clié TH55, iPhone
Crazy, I am sure you are right an I will have to investigate that network problem. For the moment I solved the problem by adding my IP to the iPhone's host-file (/etc/hosts). Now it works and that's really cool. Thanks for your support here!
jakewalk is offline   Reply With Quote
Old 11-13-2008, 10:16 AM   #69
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by CrazyIvan View Post
These days I believe all of the off the shelf routers/access points/firewalls that can serve DHCP can provide a hostname and update a local dns server on the router to handle local network hostname to IP address resolution.
Both of my routers provide a DHCP server. But, neither of them actually contain a DNS server. What router do you have that is also a DNS server?

BOb
pilotbob is offline   Reply With Quote
Old 11-13-2008, 11:21 AM   #70
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
Quote:
Originally Posted by pilotbob View Post
Both of my routers provide a DHCP server. But, neither of them actually contain a DNS server. What router do you have that is also a DNS server?

BOb
Hey Bob,

There's DNS server's and then there's DNS servers.

Have a read up on dns caching and dnsmasq. The way it works is that your off the shelf router keeps track of DNS queries it has made and keeps them in a local DNS cache. Whenever it doles out a an IP address and hostname to a machine on the LAN its managing via DHCP it adds an ip/hostname entry to its DNS cache. If you look on the machine that received the IP address and do an ipconfig /all (on windows at least) you'll see that the DNS server address matches the DHCP server address which is your off the shelf router/AP/firewall's IP. What happens is that your PC will query the local "DNS server", the router/AP/firewall just queries its local cache and responds if it gets a hit otherwise it forwards the query to your ISP's full blown dns server.

Hope that helps.
RoninTech is offline   Reply With Quote
Old 11-13-2008, 11:39 AM   #71
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by CrazyIvan View Post
There's DNS server's and then there's DNS servers.

What happens is that your PC will query the local "DNS server", the router/AP/firewall just queries its local cache and responds if it gets a hit otherwise it forwards the query to your ISP's full blown dns server.

Hope that helps.
My understanding is that the "DNS" server in my router is nothing of the kind but basically forwards the DNS request to the ISPs DNS server. So, I am not getting this local DNS feature that you talk of. Also, I know that some DHCP requests don't provide the hostname to the router. I can see this when I look at the DHCP table on my router.

Once again, I do understand IP and networking. I was a Novell CNE (lapsed) and the IP test is one of the elective exams that I chose and passed.

My point is, I was not aware that any home routers actually acted as a true DNS server and where basically just pass thru shells. Also, it seems many home routers just reply to the DHCP request with the ISP DNS server addresses directly rather than have it's own pass thru service.

I'm not say I don't believe you that there are some routers that do true DNS services but I have yet to own one. So do you know of specific brands and models that do do this? I know for my router in the stepup web server the DNS page basically only allows you to set specific DNS server IPs or to get the DNS addresses from the ISPs DHCP server and there is no facility to maintain a manual DNS routing table.

Thanks,
BOb
pilotbob is offline   Reply With Quote
Old 11-13-2008, 12:51 PM   #72
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,976
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@jakewalk: You should be able to pass the IP address as --hostname to the server. For example is you use --hostname 2.3.4.5 your links in the feed will look like http://2.3.4.5:8080/get/epub/594
kovidgoyal is online now   Reply With Quote
Old 11-13-2008, 01:05 PM   #73
Hadrien
Feedbooks.com Co-Founder
Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.
 
Hadrien's Avatar
 
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
Relative paths work fine in Stanza catalog's system.

For the covers I believe that they follow the same rules than Mobipocket with OPF 2.0: http://www.mobipocket.com/dev/articl...over.htm#IDPF2

You might modify the way EPUB are generated based on this.
Hadrien is offline   Reply With Quote
Old 11-13-2008, 01:24 PM   #74
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
Quote:
Originally Posted by Hadrien View Post
Relative paths work fine in Stanza catalog's system.
Strange. I'll take another look tonight. I basically changed the thumb, cover and epub URL's for a book's entry from:

"http://mydomain.com/ebooks/author/book..."

to:

"ebooks/author/book..."

The first one worked fine when viewed via the online catalog. The second one would not let me see the images or book.
RoninTech is offline   Reply With Quote
Old 11-13-2008, 04:10 PM   #75
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,976
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by CrazyIvan View Post
Strange. I'll take another look tonight. I basically changed the thumb, cover and epub URL's for a book's entry from:

"http://mydomain.com/ebooks/author/book..."

to:

"ebooks/author/book..."

The first one worked fine when viewed via the online catalog. The second one would not let me see the images or book.
try /ebooks/author/book
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Covers in Stanza on iPhone/iPod Touch pietvo Calibre 3 07-25-2011 05:28 AM
iPhone Get your Ebooks off your iPhone/Touch Stanza Library RoninTech Apple Devices 15 03-25-2010 09:17 AM
Creating an online Stanza catalog wdonne News 6 02-25-2010 03:33 PM
Still can't generate a Mobi catalog Sydney's Mom Library Management 11 02-02-2010 08:55 AM
Loading Stanza on jailbroken iPhone/iPod Touch? Robotech_Master Apple Devices 1 08-12-2009 04:57 PM


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


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