From waldner at waldner.priv.at Fri Mar 10 18:58:09 2006 From: waldner at waldner.priv.at (Robert Waldner) Date: Sat, 11 Mar 2006 00:58:09 +0100 Subject: [Alexandria-list] 12- vs. 13-digit barcodes Message-ID: <20060310235821.119FF1D008@fsck.waldner.priv.at> Hi! I recently aquired a barcode reader (USB, emulates a keyboard), and started taking inventory of my ~ 2,000 book collection with Alexandria (0.6.1-0.2, on Debian). This combination works fine, except for two issues: - is a bloody annoying keyboard shortcut for adding new books because it's hard to press with one hand whilst simultanously grabbing the next book from the pile with the other ;-) - Alexandria refuses to recognize about 50 % of the barcode numbers This latter issue is pretty hard for me, for example, one book (ISBN 0-812-57558-X) has a barcode of 037145007991 which Alexandria refuses. The next book on my pile (ISBN 3-453-06211-6) has a barcode of 9783453062115, which is accepted. I've no idea what's wrong with those barcodes, I tried looking at the ISBN/EAN pages on wikipedia, but, frankly, I don't get it. Help? The only pattern I see is that the barcodes not working are all one digit shorter - 12 instead of 13 digits, maybe UPC/EAN.UCC-12 vs. EAN-13? cheers+TIA, &rw -- -- Acronyms explained: DMCA -- Don't Make Content Available -- http://www.userfriendly.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20060311/abf49036/attachment.bin From blarson at blars.org Fri Mar 10 23:03:45 2006 From: blarson at blars.org (Blars Blarson) Date: Fri, 10 Mar 2006 20:03:45 -0800 Subject: [Alexandria-list] 12- vs. 13-digit barcodes In-Reply-To: <20060310235821.119FF1D008@fsck.waldner.priv.at> Message-ID: <200603110403.k2B43jeH013328@renig.nat.blars.org> In article <20060310235821.119FF1D008 at fsck.waldner.priv.at> you write: >I recently aquired a barcode reader (USB, emulates a keyboard), and > started taking inventory of my ~ 2,000 book collection with > Alexandria (0.6.1-0.2, on Debian). > >This combination works fine, except for two issues: > - is a bloody annoying keyboard shortcut for adding new books > because it's hard to press with one hand whilst simultanously > grabbing the next book from the pile with the other ;-) > - Alexandria refuses to recognize about 50 % of the barcode numbers > >This latter issue is pretty hard for me, for example, one book (ISBN > 0-812-57558-X) has a barcode of 037145007991 which Alexandria refuses. > The next book on my pile (ISBN 3-453-06211-6) has a barcode of > 9783453062115, which is accepted. > >I've no idea what's wrong with those barcodes, I tried looking at the > ISBN/EAN pages on wikipedia, but, frankly, I don't get it. > >Help? The only pattern I see is that the barcodes not working are all > one digit shorter - 12 instead of 13 digits, maybe UPC/EAN.UCC-12 vs. > EAN-13? Most US paperbacks have UPC on the back cover, which Alexendria does not support. (I think it's being worked on.) Most recent US paperbacks have EAN on the inside front cover, which Alexandria does support. Hardbacks and UK paperbacks seem to use EAN on the back cover ususally, but I've seen hardbacks with UPC. If you find a book with an SBN, you can add a leading 0 to make it an ISBN. -- Blars Blarson blarson at blars.org http://www.blars.org/blars.html With Microsoft, failure is not an option. It is a standard feature. From waldner at waldner.priv.at Sat Mar 11 04:24:07 2006 From: waldner at waldner.priv.at (Robert Waldner) Date: Sat, 11 Mar 2006 10:24:07 +0100 Subject: [Alexandria-list] 12- vs. 13-digit barcodes In-Reply-To: Your message of "Fri, 10 Mar 2006 20:03:45 PST." <200603110403.k2B43jeH013328@renig.nat.blars.org> References: <200603110403.k2B43jeH013328@renig.nat.blars.org> Message-ID: <20060311092413.BB0F91D008@fsck.waldner.priv.at> On Fri, 10 Mar 2006 20:03:45 PST, Blars Blarson writes: >Most US paperbacks have UPC on the back cover, which Alexendria does >not support. (I think it's being worked on.) Most recent US >paperbacks have EAN on the inside front cover, which Alexandria does >support. Now that's a useful tip, thanks! cheers, &rw -- -- bah, diese konsumenten-mentalitaet-wappler! -- - az -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20060311/6061da49/attachment.bin From roffe at extern.uio.no Sat Mar 11 04:51:06 2006 From: roffe at extern.uio.no (=?iso-8859-1?Q?Rolf_Marvin_B=F8e_Lindgren?=) Date: Sat, 11 Mar 2006 10:51:06 +0100 Subject: [Alexandria-list] Cocoa Alexandria In-Reply-To: <20060310235821.119FF1D008@fsck.waldner.priv.at> (Robert Waldner's message of "Sat, 11 Mar 2006 00:58:09 +0100") References: <20060310235821.119FF1D008@fsck.waldner.priv.at> Message-ID: Having moved from Linux to MacOS X, I was very excited to see signs of a Cocoa port. However I can't get it to build. I've installed RubyCocoa. The Mac in question runs on Intel. xcode warns: main.m:22: error: ruby.h: No such file or directory main.m:27: error: parse error before 'paths' main.m:27: error: 'VALUE' undeclared (first use in this function) main.m:34: warning: implicit declaration of function 'rb_gv_get' main.m:34: error: 'paths' undeclared (first use in this function) main.m:45: warning: implicit declaration of function 'rb_str_new2' main.m:45: warning: implicit declaration of function 'rb_ary_unshift' main.m:47: error: 'RUBY_PLATFORM' undeclared (first use in this function) RatingCell.m:46: warning: use '-fobjc-exceptions' to enable Objective-C exception syntax there's ruby.h on my system. build instrucitons, anyone? -- Rolf Lindgren http://www.roffe.com/ roffe at extern.uio.no http://www.dignus.no/ From thomasleveil at gmail.com Mon Mar 13 14:52:03 2006 From: thomasleveil at gmail.com (Thomas Leveil) Date: Mon, 13 Mar 2006 19:52:03 +0000 Subject: [Alexandria-list] how to go to advanced mode ? Message-ID: <4f9f38400603131152p745dad77n4b1e50f814d6322c@mail.gmail.com> Hi, I might be blind... I can't find the check box mentionned in the help that switch to advanced mode. (sur Ubuntu breezy, Alexandria 0.6.1) Does anyone know how to switch to advanced mode ? Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/alexandria-list/attachments/20060313/6a0b2019/attachment.htm From rizlo at fastwebnet.it Tue Mar 14 06:24:24 2006 From: rizlo at fastwebnet.it (rizlo) Date: Tue, 14 Mar 2006 12:24:24 +0100 Subject: [Alexandria-list] export "note" field with database Message-ID: <4416A7E8.601@fastwebnet.it> I need to export all alexandria databases included the "note" field for each book to move it to another PC with alexandria. I noticed that the export function, doesn't save in the database the "note" field. It is possible to include that field? Maybe just moving all the folders present in alexandria directory? From pterjan at linuxfr.org Tue Mar 14 09:24:05 2006 From: pterjan at linuxfr.org (Pascal Terjan) Date: Tue, 14 Mar 2006 15:24:05 +0100 Subject: [Alexandria-list] export "note" field with database In-Reply-To: <4416A7E8.601@fastwebnet.it> References: <4416A7E8.601@fastwebnet.it> Message-ID: <1142346245.15015.0.camel@localhost> Le mardi 14 mars 2006 ? 12:24 +0100, rizlo a ?crit : > I need to export all alexandria databases included the "note" field for > each book to move it to another PC with alexandria. I noticed that the > export function, doesn't save in the database the "note" field. > It is possible to include that field? Maybe just moving all the folders > present in alexandria directory? Yes you can just move the directory. Each directory is a library and each file a book. From laurent.sansonetti at gmail.com Tue Mar 14 11:48:32 2006 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Tue, 14 Mar 2006 17:48:32 +0100 Subject: [Alexandria-list] Cocoa Alexandria In-Reply-To: References: <20060310235821.119FF1D008@fsck.waldner.priv.at> Message-ID: <1be7247c0603140848k7f04a618o792e06de9587a576@mail.gmail.com> Hi Rolf, On 3/11/06, Rolf Marvin B?e Lindgren wrote: > Having moved from Linux to MacOS X, I was very excited to see signs of a > Cocoa port. However I can't get it to build. > > I've installed RubyCocoa. The Mac in question runs on Intel. > > xcode warns: > > main.m:22: error: ruby.h: No such file or directory > main.m:27: error: parse error before 'paths' > main.m:27: error: 'VALUE' undeclared (first use in this function) > main.m:34: warning: implicit declaration of function 'rb_gv_get' > main.m:34: error: 'paths' undeclared (first use in this function) > main.m:45: warning: implicit declaration of function 'rb_str_new2' > main.m:45: warning: implicit declaration of function 'rb_ary_unshift' > main.m:47: error: 'RUBY_PLATFORM' undeclared (first use in this function) > RatingCell.m:46: warning: use '-fobjc-exceptions' to enable Objective-C exception syntax > > there's ruby.h on my system. build instrucitons, anyone? > Well, I should cleanup the Mac OS X build process, as it currently requires some dependencies located on hardcoded paths. In the meantime, you can still try a build: http://www.dhertog.be/~lrz/alexandria_mac_builds/ Tiger is required. It's nearly complete (I would say 90%). It has some threading issues but this is RubyCocoa-related, a fix should appear soon there. Laurent From laurent.sansonetti at gmail.com Tue Mar 14 11:50:21 2006 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Tue, 14 Mar 2006 17:50:21 +0100 Subject: [Alexandria-list] how to go to advanced mode ? In-Reply-To: <4f9f38400603131152p745dad77n4b1e50f814d6322c@mail.gmail.com> References: <4f9f38400603131152p745dad77n4b1e50f814d6322c@mail.gmail.com> Message-ID: <1be7247c0603140850q7df62445t5836b04f2c76a0a6@mail.gmail.com> Hi Thomas, On 3/13/06, Thomas Leveil wrote: > Hi, > > I might be blind... I can't find the check box mentionned in the help that > switch to advanced mode. (sur Ubuntu breezy, Alexandria 0.6.1) > Does anyone know how to switch to advanced mode ? > The Debian package has disabled Z39.50 support in the package as Ruby/ZOOM is not yet packaged. I suspect the Ubuntu package does the same. In order to have Z39.50 support, you need to: 1/ install Ruby/ZOOM (and its dependency YAZ) 2/ install Alexandria by hand Cheers Laurent From laurent.sansonetti at gmail.com Tue Mar 14 11:57:24 2006 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Tue, 14 Mar 2006 17:57:24 +0100 Subject: [Alexandria-list] need help for Acquire Books dialog (scanner) Message-ID: <1be7247c0603140857k5c13464bp4ead8abfdbb01cdd@mail.gmail.com> Hi all, I need some help in order to finish the Acquire Books dialog box. The UI is ready, the backend as well (we have CueCat userland support in the scanner sub-directory). All we need is to plug them together. As I don't have a PC and my Mac does not have a PS/2 port I can not test the CueCat support, so this is not very easy for me to work on this. Anyone here with a CueCat to work on this? This won't be hard, all you need to do is to listen to the standard keyboard input, grep ISBNs, query providers in the background and put the title of the book in the list. Then clicking Add should insert the selected imported books in the selected library. A piece of cake (or two fingers in the nose as we would say in French). In fact this is the only thing left on the TODO list for the next release :-) Laurent From laurent.sansonetti at gmail.com Mon Mar 20 10:29:29 2006 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Mon, 20 Mar 2006 16:29:29 +0100 Subject: [Alexandria-list] need help for Acquire Books dialog (scanner) In-Reply-To: <1be7247c0603140857k5c13464bp4ead8abfdbb01cdd@mail.gmail.com> References: <1be7247c0603140857k5c13464bp4ead8abfdbb01cdd@mail.gmail.com> Message-ID: <1be7247c0603200729r7d7bc6a4s8ea97b96f4ea840f@mail.gmail.com> On 3/14/06, Laurent Sansonetti wrote: > Hi all, > > I need some help in order to finish the Acquire Books dialog box. The > UI is ready, the backend as well (we have CueCat userland support in > the scanner sub-directory). All we need is to plug them together. > > As I don't have a PC and my Mac does not have a PS/2 port I can not > test the CueCat support, so this is not very easy for me to work on > this. > > Anyone here with a CueCat to work on this? This won't be hard, all > you need to do is to listen to the standard keyboard input, grep > ISBNs, query providers in the background and put the title of the book > in the list. Then clicking Add should insert the selected imported > books in the selected library. A piece of cake (or two fingers in the > nose as we would say in French). > > In fact this is the only thing left on the TODO list for the next release :-) > A friend is going to give me an old PC laptop for a few hours this week, I will therefore hopefully be able to hack on this. Laurent From waldner at waldner.priv.at Fri Mar 24 14:45:29 2006 From: waldner at waldner.priv.at (Robert Waldner) Date: Fri, 24 Mar 2006 20:45:29 +0100 Subject: [Alexandria-list] Can't find _any_ book any more Message-ID: <20060324194531.34CFE1CC97@fsck.waldner.priv.at> Hi! Up until today, Alexandria was working fine. But now each&every book I enter: it can't find it, even though if I just search for the ISBN at, say, amazon.(com,de), it's there alright. Even searching for authors, say "Allan Dean Foster" (of whom I know there's gazillion books to be found, I already have a couple in Alexandria): it can't find anything. My last update of any kind was over 2 weeks ago, so I'm a bit at a loss as what to look for. I tried getting Alexandria to use a proxy to be able to see what it does on the 'net, but couldn't find out how to do it. The obvious `export http_proxy="http://127.0.0.1:8080"; alexandria` at least doesn't make it use a proxy (and I don't even know if it uses HTTP for book-searching or something else entirely). I'd be grateful for any hint. Using Alexandria 0.6.1-0.2, on Debian. cheers+TIA, &rw -- -- Modern PCs are horrible. ACPI is a complete design disaster in every way. -- But we're kind of stuck with it. If any Intel people are listening to -- this and you had anything to do with ACPI, shoot yourself now, before -- you reproduce. - Linux Torvalds -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20060324/7e423741/attachment.bin From waldner at waldner.priv.at Sat Mar 25 07:58:51 2006 From: waldner at waldner.priv.at (Robert Waldner) Date: Sat, 25 Mar 2006 13:58:51 +0100 Subject: [Alexandria-list] Can't find _any_ book any more In-Reply-To: Your message of "Fri, 24 Mar 2006 20:45:29 +0100." <20060324194531.34CFE1CC97@fsck.waldner.priv.at> References: <20060324194531.34CFE1CC97@fsck.waldner.priv.at> Message-ID: <20060325125908.0C09A1C657@fsck.waldner.priv.at> On Fri, 24 Mar 2006 20:45:29 +0100, Robert Waldner writes: >Up until today, Alexandria was working fine. But now each&every book I > enter: it can't find it, even though if I just search for the ISBN at, > say, amazon.(com,de), it's there alright. Even searching for authors, > say "Allan Dean Foster" (of whom I know there's gazillion books to be > found, I already have a couple in Alexandria): it can't find anything. <..> >I'd be grateful for any hint. > >Using Alexandria 0.6.1-0.2, on Debian. I just stumbled upon an old bug, where the Amazon Associate ID used by Alexandria had been canceled, so thought maybe that happened again, and created my own account with AWS. No luck. Also deleted ~/.alexandria (after backing it up and exporting the booklist, of course) and reinstalled Alexandria. Still no luck. An strace of the ruby-process revealed nothing interesting (to me). If I start looking up a book, and press ctrl-c in the terminal where I started Alexandria, it immediately comes back with "nothing found" instead of taking a couple minutes, so I guess it's some lookup-process that times out. But how to find out which one? I can't even find out how to selectively disable them, or I'd go through them one-by-one to (maybe) find the culprit. cheers, &rw -- -- Ikea in Open Source? -- Also Zusammenbauanleitungen als PDFs -- zum Download und den Rest bei OBI? -- - d.a.s.r -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20060325/acbdd795/attachment.bin From waldner at waldner.priv.at Sat Mar 25 08:33:30 2006 From: waldner at waldner.priv.at (Robert Waldner) Date: Sat, 25 Mar 2006 14:33:30 +0100 Subject: [Alexandria-list] Can't find _any_ book any more In-Reply-To: Your message of "Sat, 25 Mar 2006 13:58:51 +0100." <20060325125908.0C09A1C657@fsck.waldner.priv.at> References: <20060324194531.34CFE1CC97@fsck.waldner.priv.at> <20060325125908.0C09A1C657@fsck.waldner.priv.at> Message-ID: <20060325133348.DE8461C657@fsck.waldner.priv.at> On Sat, 25 Mar 2006 13:58:51 +0100, Robert Waldner writes: >If I start looking up a book, and press ctrl-c in the terminal where I > started Alexandria, it immediately comes back with "nothing found" > instead of taking a couple minutes, so I guess it's some lookup-process > that times out. But how to find out which one? I can't even find out > how to selectively disable them, or I'd go through them one-by-one to > (maybe) find the culprit. There _is_ a problem with Amazon, though I don't know if it's the one bugging me. I commented out every provider but Amazon in /usr/lib/ruby/1.8/alexandria/book_providers.rb, and a subsequent search immediately comes back with "HTTP response code 302". If I trace this with ethereal, the HTTP conversation looks like this .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. GET /onca/xml3?t=calibanorg-20&AsinSearch=0006479901&f=xml&type=heavy&dev-t=1XQCB3VJ5VW8P8FKFDG2&locale=de HTTP/1.1 Accept: */* User-Agent: Ruby/Amazon 0.9.0 Host: xml.amazon.com HTTP/1.1 302 MovedTemporarily Date: Sat, 25 Mar 2006 13:08:55 GMT Server: Server x-amz-id-1: 1ZMQSK6Z491267JFMSYB x-amz-id-2: /Llt7MEQEP660Dxv5M+2RMUnA0U5fhsl Location: http://webservices.amazon.de/onca/xml3?t=calibanorg-20&AsinSearch=0006479901&f=xml&type=heavy&dev-t=1XQCB3VJ5VW8P8FKFDG2&locale=de nnCoection: close Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 0 .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. If I just copy&paste that URL into the browser, I get an XML-file that contains the book information I tried to look up. I can't find "xml.amazon.com" mentioned anywhere in Alexandria's files, though, so I can't just update the host: # dpkg -L alexandria | xargs grep -i xml.amazon # Help? cheers+TIA, &rw -- -- Ikea in Open Source? -- Also Zusammenbauanleitungen als PDFs -- zum Download und den Rest bei OBI? -- - d.a.s.r -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20060325/19c99a21/attachment.bin From waldner at waldner.priv.at Sat Mar 25 08:49:09 2006 From: waldner at waldner.priv.at (Robert Waldner) Date: Sat, 25 Mar 2006 14:49:09 +0100 Subject: [Alexandria-list] Can't find _any_ book any more In-Reply-To: Your message of "Sat, 25 Mar 2006 14:33:30 +0100." <20060325133348.DE8461C657@fsck.waldner.priv.at> References: <20060324194531.34CFE1CC97@fsck.waldner.priv.at> <20060325125908.0C09A1C657@fsck.waldner.priv.at> <20060325133348.DE8461C657@fsck.waldner.priv.at> Message-ID: <20060325134909.C32791C657@fsck.waldner.priv.at> On Sat, 25 Mar 2006 14:33:30 +0100, Robert Waldner writes: <..> >HTTP/1.1 302 MovedTemporarily <..> >Location: http://webservices.amazon.de/onca/xml3?t=calibanorg-20&AsinSearch=0006479901&f=xml&type=heavy&dev-t=1XQCB3VJ5VW8P8FKFDG2&locale=de <..> >If I just copy&paste that URL into the browser, I get an XML-file that > contains the book information I tried to look up. > >I can't find "xml.amazon.com" mentioned anywhere in Alexandria's files, <..> However, there's the package libamazon-ruby, which contains /usr/lib/ruby/1.8/amazon/search.rb, and when I just change xml.amazon.com to webservices.amazon.com, Alexandria's able to look up books again. Whee! cheers, &rw -- -- Nicht alles was Software auf Hardware installiert ist ein Admin. -- David Schmitt, aum -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20060325/be8e29fb/attachment-0001.bin From eric.tanguy at univ-nantes.fr Sat Mar 25 11:58:05 2006 From: eric.tanguy at univ-nantes.fr (Eric Tanguy) Date: Sat, 25 Mar 2006 17:58:05 +0100 Subject: [Alexandria-list] Installation problem ? Message-ID: <1143305885.2559.2.camel@bureau.maison> tried to install alexandria on my fresh fedora core 5. I think all dependencies were well installed as the complete configuration and installation of alexandria went fine. But when i try to launch alexandria i obtain this error : $ alexandria (eval): line 1 GLib-GObject-CRITICAL **:g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed (eval):1: [BUG] rbgobj_define_class: Invalid gtype [CanvasPathDef] ruby 1.8.4 (2005-12-24) [i386-linux] Abandon what could be the problem ? Thanks. Eric From pterjan at linuxfr.org Sat Mar 25 12:21:11 2006 From: pterjan at linuxfr.org (Pascal Terjan) Date: Sat, 25 Mar 2006 18:21:11 +0100 Subject: [Alexandria-list] Installation problem ? In-Reply-To: <1143305885.2559.2.camel@bureau.maison> References: <1143305885.2559.2.camel@bureau.maison> Message-ID: <1143307271.5464.2.camel@localhost> Le samedi 25 mars 2006 ? 17:58 +0100, Eric Tanguy a ?crit : > tried to install alexandria on my fresh fedora core 5. I think all > dependencies were well installed as the complete configuration and > installation of alexandria went fine. But when i try to launch > alexandria i obtain this error : > $ alexandria > (eval): line 1 > GLib-GObject-CRITICAL **:g_boxed_type_register_static: assertion > `g_type_from_name (name) == 0' failed > (eval):1: [BUG] rbgobj_define_class: Invalid gtype [CanvasPathDef] > > ruby 1.8.4 (2005-12-24) [i386-linux] > > Abandon > what could be the problem ? Either you have an old version of ruby-gnome2 or it was not rebuilt on your new gnome (Bug appeared with gnome 2.12 IIRC). From laurent.sansonetti at gmail.com Sun Mar 26 14:04:24 2006 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Sun, 26 Mar 2006 21:04:24 +0200 Subject: [Alexandria-list] Can't find _any_ book any more In-Reply-To: <20060325134909.C32791C657@fsck.waldner.priv.at> References: <20060324194531.34CFE1CC97@fsck.waldner.priv.at> <20060325125908.0C09A1C657@fsck.waldner.priv.at> <20060325133348.DE8461C657@fsck.waldner.priv.at> <20060325134909.C32791C657@fsck.waldner.priv.at> Message-ID: <1be7247c0603261104k375d87a7xfb3a4e65d1f268a0@mail.gmail.com> Hi Robert, On 3/25/06, Robert Waldner wrote: > > On Sat, 25 Mar 2006 14:33:30 +0100, Robert Waldner writes: > <..> > >HTTP/1.1 302 MovedTemporarily > <..> > >Location: http://webservices.amazon.de/onca/xml3?t=calibanorg-20&AsinSearch=0006479901&f=xml&type=heavy&dev-t=1XQCB3VJ5VW8P8FKFDG2&locale=de > <..> > >If I just copy&paste that URL into the browser, I get an XML-file that > > contains the book information I tried to look up. > > > >I can't find "xml.amazon.com" mentioned anywhere in Alexandria's files, > <..> > > However, there's the package libamazon-ruby, which contains > /usr/lib/ruby/1.8/amazon/search.rb, and when I just change xml.amazon.com > to webservices.amazon.com, Alexandria's able to look up books again. > Thanks for the detective work! Davydd apparently found the same issue and did send an e-mail to the Ruby/Amazon author, so this will surely be quickly fixed. Have a nice Sunday, Laurent From waldner at waldner.priv.at Sun Mar 26 14:26:20 2006 From: waldner at waldner.priv.at (Robert Waldner) Date: Sun, 26 Mar 2006 21:26:20 +0200 Subject: [Alexandria-list] Can't find _any_ book any more In-Reply-To: Your message of "Sun, 26 Mar 2006 21:04:24 +0200." <1be7247c0603261104k375d87a7xfb3a4e65d1f268a0@mail.gmail.com> References: <20060324194531.34CFE1CC97@fsck.waldner.priv.at> <20060325125908.0C09A1C657@fsck.waldner.priv.at> <20060325133348.DE8461C657@fsck.waldner.priv.at> <20060325134909.C32791C657@fsck.waldner.priv.at> <1be7247c0603261104k375d87a7xfb3a4e65d1f268a0@mail.gmail.com> Message-ID: <20060326192639.5AC301CC6D@fsck.waldner.priv.at> On Sun, 26 Mar 2006 21:04:24 +0200, "Laurent Sansonetti" writes: >> However, there's the package libamazon-ruby, which contains >> /usr/lib/ruby/1.8/amazon/search.rb, and when I just change xml.amazon.com >> to webservices.amazon.com, Alexandria's able to look up books again. >Thanks for the detective work! Not knowing _any_thing about Ruby didn't help my efficiency ;) > Davydd apparently found the same issue >and did send an e-mail to the Ruby/Amazon author, so this will surely >be quickly fixed. I submitted an "important" bug against the Debian package of libamazon-ruby, too, so hopefully it shouldn't take long for the situation to improve for us Debianites. However, I do think that Alexandria should report "unordinary" errors encountered in the various search-modules - that would've made debugging _way_ more easier. As well as maybe making the search-providers configurable and not hardcoded (but that may be a Debian thing, haven't looked into it yet). cheers, &rw -- -- das ist eine der im EDV-bereich ueblichen leistungsangaben -- und bedeutet: "Der angegebene Wert kann auch unter optimalen -- Bedingungen mittels angepa?ter Testf?lle sicher nicht -- ?bertroffen werden." - frank paulsen, dasr -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20060326/64ede120/attachment.bin From eric.tanguy at univ-nantes.fr Mon Mar 27 01:48:57 2006 From: eric.tanguy at univ-nantes.fr (Eric Tanguy) Date: Mon, 27 Mar 2006 08:48:57 +0200 Subject: [Alexandria-list] installation Message-ID: <1143442137.2585.5.camel@bureau.maison> installing ruby-gettext-package-1.3.0 i found some errors: /usr/bin/ruby: No such file or directory -- /usr/bin/rake (LoadError) ./lib/gettext/parser/ruby.rb:15:in `require': no such file to load -- irb/ruby-lex.rb (LoadError) where these errors come from ? Thanks Eric From waldner at waldner.priv.at Mon Mar 27 02:29:11 2006 From: waldner at waldner.priv.at (Robert Waldner) Date: Mon, 27 Mar 2006 09:29:11 +0200 Subject: [Alexandria-list] installation In-Reply-To: Your message of "Mon, 27 Mar 2006 08:48:57 +0200." <1143442137.2585.5.camel@bureau.maison> References: <1143442137.2585.5.camel@bureau.maison> Message-ID: <20060327072913.30B081C7D9@fsck.waldner.priv.at> On Mon, 27 Mar 2006 08:48:57 +0200, Eric Tanguy writes: >installing ruby-gettext-package-1.3.0 i found some errors: > >/usr/bin/ruby: No such file or directory -- /usr/bin/rake (LoadError) >./lib/gettext/parser/ruby.rb:15:in `require': no such file to load -- >irb/ruby-lex.rb (LoadError) > >where these errors come from ? I guess you'll need some "irb" package installed. On Debian there're interpreters/irb1.6 interpreters/irb1.8 interpreters/irb1.9 with a description of "Interactive Ruby (irb) 1.6.x The irb is acronym for Interactive RuBy. It evaluates Ruby expression from the terminal." Since you didn't reveal on which kind of system/distribution you're trying to install, that's as good as I can guess. cheers, &rw -- -- "I will not obey the voices in my head." -- - Bart Simpson -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20060327/07320809/attachment.bin From bel8 at lilik.it Mon Mar 27 05:20:18 2006 From: bel8 at lilik.it (Claudio Belotti) Date: Mon, 27 Mar 2006 12:20:18 +0200 Subject: [Alexandria-list] covers Message-ID: <4427BC62.2080903@lilik.it> Dear all, I noticed that book cover's are not downloaded from the Italian book provider ( ibs.it via ibs_it.rb ) any more. Mirko Maischberger (Alexandria's Italian translator) pointed me to check the option --referer=internetbookshop.it in wget and this way it worked ;) >From what I understand the cover is downloaded by save_cover(book, cover_uri) in library.rb via uri.read So now, how do I solve this issue? I can download the cover in ibs_it.rb with uri.read specifying the "right" referer, and than return the filename, but the file should be deleted after the book is added to the library (how?). Or maybe we can add a book_provider attribute specifying if alexandria should use a refer when downloading the cover? Any suggestion? cheers, Claudio From laurent.sansonetti at gmail.com Mon Mar 27 08:35:09 2006 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Mon, 27 Mar 2006 15:35:09 +0200 Subject: [Alexandria-list] covers In-Reply-To: <4427BC62.2080903@lilik.it> References: <4427BC62.2080903@lilik.it> Message-ID: <1be7247c0603270535r23ef783ei7bded38ea6c79b8c@mail.gmail.com> Ciao Claudio, On 3/27/06, Claudio Belotti wrote: > Dear all, > I noticed that book cover's are not downloaded from the Italian book > provider ( ibs.it via ibs_it.rb ) any more. > > Mirko Maischberger (Alexandria's Italian translator) pointed me to check > the option --referer=internetbookshop.it in wget and this way it worked ;) > Good catch! We should check this in the test suite. > >From what I understand the cover is downloaded by save_cover(book, > cover_uri) in library.rb via uri.read > > So now, how do I solve this issue? > > I can download the cover in ibs_it.rb with uri.read specifying the > "right" referer, and than return the filename, but the file should be > deleted after the book is added to the library (how?). > > Or maybe we can add a book_provider attribute specifying if alexandria > should use a refer when downloading the cover? > I think the best way to fix this without changing a lot of things is to download each cover in ibs_it.rb with the requested referer stuff to temporary files, then return file:///... URIs. I believe the rest of the program should be OK with this. You can put the temporary covers in ~/.ibs_it_cache (as we already have ~/.amazon_cache), and we can then clean up the directory when alexandria starts and/or exits. Cheers, Laurent From laurent.sansonetti at gmail.com Mon Mar 27 08:45:01 2006 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Mon, 27 Mar 2006 15:45:01 +0200 Subject: [Alexandria-list] Can't find _any_ book any more In-Reply-To: <20060326192639.5AC301CC6D@fsck.waldner.priv.at> References: <20060324194531.34CFE1CC97@fsck.waldner.priv.at> <20060325125908.0C09A1C657@fsck.waldner.priv.at> <20060325133348.DE8461C657@fsck.waldner.priv.at> <20060325134909.C32791C657@fsck.waldner.priv.at> <1be7247c0603261104k375d87a7xfb3a4e65d1f268a0@mail.gmail.com> <20060326192639.5AC301CC6D@fsck.waldner.priv.at> Message-ID: <1be7247c0603270545m4a5af6c5v8ab79d19bef41720@mail.gmail.com> Hi Robert, On 3/26/06, Robert Waldner wrote: > > On Sun, 26 Mar 2006 21:04:24 +0200, "Laurent Sansonetti" writes: > >> However, there's the package libamazon-ruby, which contains > >> /usr/lib/ruby/1.8/amazon/search.rb, and when I just change xml.amazon.com > >> to webservices.amazon.com, Alexandria's able to look up books again. > > >Thanks for the detective work! > > Not knowing _any_thing about Ruby didn't help my efficiency ;) > Well Ruby is not that hard to learn, and anyway you found the problem very fast :-) > > Davydd apparently found the same issue > >and did send an e-mail to the Ruby/Amazon author, so this will surely > >be quickly fixed. > > I submitted an "important" bug against the Debian package of > libamazon-ruby, too, so hopefully it shouldn't take long for the > situation to improve for us Debianites. > Ah I see, Dafydd is the Debian maintainer as you probably know, the world is small. I hope Ian (Ruby/Amazon's author) will quickly reply and make a new release. If not, we can still hack a bit the webservice URLs at runtime from Alexandria :-) > However, I do think that Alexandria should report "unordinary" errors > encountered in the various search-modules - that would've made > debugging _way_ more easier. As well as maybe making the > search-providers configurable and not hardcoded (but that may be a > Debian thing, haven't looked into it yet). > You're right, we should log more book providers stuff. Each time there is a problem I need to add my own logs to find and fix, but this is not efficient. BTW if you run ``DEBUG=1 alexandria'' you will get a lot of stuff printed in the console (you probably found it), sometimes it helps. About the hardcoded search providers, I do not understand your point. Maybe you are referring to the Amazon webservice URLs? This is therefore a Ruby/Amazon problem. The search providers are already more or less configurable... :-) Cheers Laurent From laurent.sansonetti at gmail.com Mon Mar 27 08:55:51 2006 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Mon, 27 Mar 2006 15:55:51 +0200 Subject: [Alexandria-list] export "note" field with database In-Reply-To: <1142346245.15015.0.camel@localhost> References: <4416A7E8.601@fastwebnet.it> <1142346245.15015.0.camel@localhost> Message-ID: <1be7247c0603270555n72208b28md310f199da906a42@mail.gmail.com> Hi, On 3/14/06, Pascal Terjan wrote: > Le mardi 14 mars 2006 ? 12:24 +0100, rizlo a ?crit : > > I need to export all alexandria databases included the "note" field for > > each book to move it to another PC with alexandria. I noticed that the > > export function, doesn't save in the database the "note" field. > > It is possible to include that field? Maybe just moving all the folders > > present in alexandria directory? > > Yes you can just move the directory. Each directory is a library and > each file a book. > Ideally we should support ONIX import, you could then export/import easily from different machines. But in the meantime... yes copying your ~/.alexandria library directory is probably the best way. Cheers, Laurent From waldner at waldner.priv.at Mon Mar 27 10:28:46 2006 From: waldner at waldner.priv.at (Robert Waldner) Date: Mon, 27 Mar 2006 17:28:46 +0200 Subject: [Alexandria-list] Can't find _any_ book any more In-Reply-To: Your message of "Mon, 27 Mar 2006 15:45:01 +0200." <1be7247c0603270545m4a5af6c5v8ab79d19bef41720@mail.gmail.com> References: <20060324194531.34CFE1CC97@fsck.waldner.priv.at> <20060325125908.0C09A1C657@fsck.waldner.priv.at> <20060325133348.DE8461C657@fsck.waldner.priv.at> <20060325134909.C32791C657@fsck.waldner.priv.at> <1be7247c0603261104k375d87a7xfb3a4e65d1f268a0@mail.gmail.com> <20060326192639.5AC301CC6D@fsck.waldner.priv.at> <1be7247c0603270545m4a5af6c5v8ab79d19bef41720@mail.gmail.com> Message-ID: <20060327152859.222301C7D9@fsck.waldner.priv.at> On Mon, 27 Mar 2006 15:45:01 +0200, "Laurent Sansonetti" writes: >BTW if you run ``DEBUG=1 alexandria'' you will get a lot of stuff >printed in the console (you probably found it), sometimes it helps. Nope, didn't notice that. Thanks. >About the hardcoded search providers, I do not understand your point. I meant the "require amazon.rd" etc, eg I can't disable search-providers from within Alexandria. cheers, &rw -- -- "Try our product for 30 days. If you're not completely satisfied, -- just be grateful that you live in a country where people are -- still allowed to be dissatisfied." http://www.glasbergen.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20060327/6bcf2b4b/attachment-0001.bin From bel8 at lilik.it Mon Mar 27 11:23:07 2006 From: bel8 at lilik.it (Claudio Belotti) Date: Mon, 27 Mar 2006 18:23:07 +0200 Subject: [Alexandria-list] covers In-Reply-To: <1be7247c0603270535r23ef783ei7bded38ea6c79b8c@mail.gmail.com> References: <4427BC62.2080903@lilik.it> <1be7247c0603270535r23ef783ei7bded38ea6c79b8c@mail.gmail.com> Message-ID: <4428116B.9060306@lilik.it> Ciao Laurent, on 27/03/2006 15:35 Laurent Sansonetti wrote: > I think the best way to fix this without changing a lot of things is > to download each cover in ibs_it.rb with the requested referer stuff > to temporary files, then return file:///... URIs. I believe the rest > of the program should be OK with this. > > You can put the temporary covers in ~/.ibs_it_cache (as we already > have ~/.amazon_cache), and we can then clean up the directory when > alexandria starts and/or exits. I did not know about .amazon_cache, I agree with you that downloading the covers there it is the obvious way. I let you know cheers Claudio From eric.tanguy at univ-nantes.fr Mon Mar 27 12:08:19 2006 From: eric.tanguy at univ-nantes.fr (Eric Tanguy) Date: Mon, 27 Mar 2006 19:08:19 +0200 Subject: [Alexandria-list] Can't find _any_ book any more In-Reply-To: <1be7247c0603270545m4a5af6c5v8ab79d19bef41720@mail.gmail.com> References: <20060324194531.34CFE1CC97@fsck.waldner.priv.at> <20060325125908.0C09A1C657@fsck.waldner.priv.at> <20060325133348.DE8461C657@fsck.waldner.priv.at> <20060325134909.C32791C657@fsck.waldner.priv.at> <1be7247c0603261104k375d87a7xfb3a4e65d1f268a0@mail.gmail.com> <20060326192639.5AC301CC6D@fsck.waldner.priv.at> <1be7247c0603270545m4a5af6c5v8ab79d19bef41720@mail.gmail.com> Message-ID: <1143479299.2529.7.camel@bureau.maison> Le lundi 27 mars 2006 ? 15:45 +0200, Laurent Sansonetti a ?crit : > Hi Robert, > > On 3/26/06, Robert Waldner wrote: > > > > On Sun, 26 Mar 2006 21:04:24 +0200, "Laurent Sansonetti" writes: > > >> However, there's the package libamazon-ruby, which contains > > >> /usr/lib/ruby/1.8/amazon/search.rb, and when I just change xml.amazon.com > > >> to webservices.amazon.com, Alexandria's able to look up books again. > > > > >Thanks for the detective work! > > > > Not knowing _any_thing about Ruby didn't help my efficiency ;) > > > > Well Ruby is not that hard to learn, and anyway you found the problem > very fast :-) > > > > Davydd apparently found the same issue > > >and did send an e-mail to the Ruby/Amazon author, so this will surely > > >be quickly fixed. > > > > I submitted an "important" bug against the Debian package of > > libamazon-ruby, too, so hopefully it shouldn't take long for the > > situation to improve for us Debianites. > > > > Ah I see, Dafydd is the Debian maintainer as you probably know, the > world is small. I hope Ian (Ruby/Amazon's author) will quickly reply > and make a new release. > > If not, we can still hack a bit the webservice URLs at runtime from > Alexandria :-) > > > However, I do think that Alexandria should report "unordinary" errors > > encountered in the various search-modules - that would've made > > debugging _way_ more easier. As well as maybe making the > > search-providers configurable and not hardcoded (but that may be a > > Debian thing, haven't looked into it yet). > > > > You're right, we should log more book providers stuff. Each time > there is a problem I need to add my own logs to find and fix, but this > is not efficient. > > BTW if you run ``DEBUG=1 alexandria'' you will get a lot of stuff > printed in the console (you probably found it), sometimes it helps. > > About the hardcoded search providers, I do not understand your point. > Maybe you are referring to the Amazon webservice URLs? This is > therefore a Ruby/Amazon problem. > > The search providers are already more or less configurable... :-) > > Cheers > Laurent > I finally achieve to install alexandria on my fresh Fedora core 5. I was thinking that my installation was not good because i was not able to retrieve book from amazon ... Now that i understand where the problem come from i'm happy to know that my installation was good! In this distribution the file is in /usr/lib/site_ruby/1.8/amazon/search.rb but if i change xml.amazon.com to webservices.amazon.com it works but only if i select us (which is normal) but it seems in webservices.amazon.com some french books are not present. If i try to change xml.amazon.fr to webservices.amazon.fr, it does not work and i can't retrieve books. It seems that this solution is only for us and not for france ie the ip address is not the same for xml.amazon.com and webservices.amazon.com whereas xml.amazon.fr and webservices.amazon.fr have the same ip address. So i think the only solution for me is to wait a ruby-amazon release ? Thanks Eric From waldner at waldner.priv.at Mon Mar 27 14:45:45 2006 From: waldner at waldner.priv.at (Robert Waldner) Date: Mon, 27 Mar 2006 21:45:45 +0200 Subject: [Alexandria-list] Can't find _any_ book any more In-Reply-To: Your message of "Mon, 27 Mar 2006 19:08:19 +0200." <1143479299.2529.7.camel@bureau.maison> References: <20060324194531.34CFE1CC97@fsck.waldner.priv.at> <20060325125908.0C09A1C657@fsck.waldner.priv.at> <20060325133348.DE8461C657@fsck.waldner.priv.at> <20060325134909.C32791C657@fsck.waldner.priv.at> <1be7247c0603261104k375d87a7xfb3a4e65d1f268a0@mail.gmail.com> <20060326192639.5AC301CC6D@fsck.waldner.priv.at> <1be7247c0603270545m4a5af6c5v8ab79d19bef41720@mail.gmail.com> <1143479299.2529.7.camel@bureau.maison> Message-ID: <20060327194603.2BF961C7D9@fsck.waldner.priv.at> On Mon, 27 Mar 2006 19:08:19 +0200, Eric Tanguy writes: >In this distribution the file is >in /usr/lib/site_ruby/1.8/amazon/search.rb but if i change >xml.amazon.com to webservices.amazon.com it works but only if i select >us (which is normal) but it seems in webservices.amazon.com some french >books are not present. If i try to change xml.amazon.fr to >webservices.amazon.fr, it does not work and i can't retrieve books. It worked for .com and .de for me. Try commenting out all book-providers but amazon around line 233 in /usr/lib/ruby/1.8/alexandria/book_providers.rb (of course, the exact file location may vary for you). This should get you an error box with "302" when looking up books. Then, before looking up books, run ethereal (as root), let it capture on your outgoing interface with a filter of "port 80". When you look at the packets via "follow TCP stream", you should see where it goes wrong. But since this is somewhat intriguing, I'll do it for you this time. It seems that even if I select "fr" as language, Ruby/amazon tries to look up via amazon.com: .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. GET /onca/xml3?t=calibanorg-20&AsinSearch=2848930284&f=xml&type=heavy&dev-t=1XQCB3VJ5VW8P8FKFDG2&locale=fr HTTP/1.1 Accept: */* User-Agent: Ruby/Amazon 0.9.0 Host: webservices.amazon.com HTTP/1.1 302 MovedTemporarily Date: Mon, 27 Mar 2006 19:32:44 GMT Server: Server x-amz-id-1: 0SZFY39YG2DMV339SXF8 x-amz-id-2: 78FPJQeiegGyqnbtcZT47k7vlk77uz2J Location: http://webservices.amazon.fr/onca/xml3?t=calibanorg-20&AsinSearch=2848930284&f=xml&type=heavy&dev-t=1XQCB3VJ5VW8P8FKFDG2&locale=fr nnCoection: close Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 0 .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. Now if I change xml.amazon.*com* to webservices.amazon.*fr* in /usr/lib/ruby/1.8/amazon/search.rb it works. Even though I'd guess it should've used xml.amazon.fr in the first place: .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. LOCALES = { 'ca' => 'xml.amazon.ca', 'de' => 'xml-eu.amazon.com', 'fr' => 'xml.amazon.fr', 'jp' => 'xml.amazon.co.jp', 'uk' => 'xml-eu.amazon.com', 'us' => 'webservices.amazon.fr', } .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. Don't ask /me/ why - I'm a sysadmin, not a programmer. My job is just to make stuff work, whatever fugly workarounds it takes ;-) cheers, &rw -- -- I still think the fastest way to get wholesale IPv6 adoption -- is to write a pr0n server that serves thumbnails over IPv[46] -- and full-size images over IPv6 *only*. - Ingvar -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20060327/ff7d7013/attachment.bin From eric.tanguy at univ-nantes.fr Mon Mar 27 15:49:51 2006 From: eric.tanguy at univ-nantes.fr (Eric Tanguy) Date: Mon, 27 Mar 2006 22:49:51 +0200 Subject: [Alexandria-list] Can't find _any_ book any more In-Reply-To: <20060327194603.2BF961C7D9@fsck.waldner.priv.at> References: <20060324194531.34CFE1CC97@fsck.waldner.priv.at> <20060325125908.0C09A1C657@fsck.waldner.priv.at> <20060325133348.DE8461C657@fsck.waldner.priv.at> <20060325134909.C32791C657@fsck.waldner.priv.at> <1be7247c0603261104k375d87a7xfb3a4e65d1f268a0@mail.gmail.com> <20060326192639.5AC301CC6D@fsck.waldner.priv.at> <1be7247c0603270545m4a5af6c5v8ab79d19bef41720@mail.gmail.com> <1143479299.2529.7.camel@bureau.maison> <20060327194603.2BF961C7D9@fsck.waldner.priv.at> Message-ID: <1143492591.2529.0.camel@bureau.maison> Le lundi 27 mars 2006 ? 21:45 +0200, Robert Waldner a ?crit : > On Mon, 27 Mar 2006 19:08:19 +0200, Eric Tanguy writes: > >In this distribution the file is > >in /usr/lib/site_ruby/1.8/amazon/search.rb but if i change > >xml.amazon.com to webservices.amazon.com it works but only if i select > >us (which is normal) but it seems in webservices.amazon.com some french > >books are not present. If i try to change xml.amazon.fr to > >webservices.amazon.fr, it does not work and i can't retrieve books. > > It worked for .com and .de for me. > > Try commenting out all book-providers but amazon around line 233 in > /usr/lib/ruby/1.8/alexandria/book_providers.rb (of course, the exact > file location may vary for you). This should get you an error box with > "302" when looking up books. > > Then, before looking up books, run ethereal (as root), let it capture > on your outgoing interface with a filter of "port 80". When you look > at the packets via "follow TCP stream", you should see where it goes > wrong. But since this is somewhat intriguing, I'll do it for you this > time. > > It seems that even if I select "fr" as language, Ruby/amazon tries to > look up via amazon.com: > > .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > GET /onca/xml3?t=calibanorg-20&AsinSearch=2848930284&f=xml&type=heavy&dev-t=1XQCB3VJ5VW8P8FKFDG2&locale=fr HTTP/1.1 > Accept: */* > User-Agent: Ruby/Amazon 0.9.0 > Host: webservices.amazon.com > > HTTP/1.1 302 MovedTemporarily > Date: Mon, 27 Mar 2006 19:32:44 GMT > Server: Server > x-amz-id-1: 0SZFY39YG2DMV339SXF8 > x-amz-id-2: 78FPJQeiegGyqnbtcZT47k7vlk77uz2J > Location: http://webservices.amazon.fr/onca/xml3?t=calibanorg-20&AsinSearch=2848930284&f=xml&type=heavy&dev-t=1XQCB3VJ5VW8P8FKFDG2&locale=fr > nnCoection: close > Transfer-Encoding: chunked > Content-Type: text/html; charset=UTF-8 > > 0 > .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > > Now if I change xml.amazon.*com* to webservices.amazon.*fr* in > /usr/lib/ruby/1.8/amazon/search.rb it works. Even though I'd guess it > should've used xml.amazon.fr in the first place: > > .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > LOCALES = { 'ca' => 'xml.amazon.ca', > 'de' => 'xml-eu.amazon.com', > 'fr' => 'xml.amazon.fr', > 'jp' => 'xml.amazon.co.jp', > 'uk' => 'xml-eu.amazon.com', > 'us' => 'webservices.amazon.fr', > } > .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > > Don't ask /me/ why - I'm a sysadmin, not a programmer. My job is just to > make stuff work, whatever fugly workarounds it takes ;-) > > cheers, > &rw yes you are right. It's incredible but it works! Thanks Eric From bel8 at lilik.it Wed Mar 29 16:15:41 2006 From: bel8 at lilik.it (Claudio Belotti) Date: Wed, 29 Mar 2006 23:15:41 +0200 Subject: [Alexandria-list] Italian book provider and covers Message-ID: <442AF8FD.2030503@lilik.it> Dear all, I modified lib/alexandria/book_providers/ibs_it.rb to download the cover images using a referer. Covers are now downloaded to .alexandria/.ibs_it_cache. The cache is cleaned at the exit. To handle cover files in treeview a little modification of lib/alexandria/ui/new_book_dialog.rb was needed. So now nice covers are back for the Italian-speaking Alexandria users community ;-) cheers Claudio From laurent.sansonetti at gmail.com Wed Mar 29 16:26:13 2006 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Wed, 29 Mar 2006 23:26:13 +0200 Subject: [Alexandria-list] Italian book provider and covers In-Reply-To: <442AF8FD.2030503@lilik.it> References: <442AF8FD.2030503@lilik.it> Message-ID: <1be7247c0603291326n31524990uaaebe2b4a3f71fea@mail.gmail.com> Thanks for your time Claudio! Laurent On 3/29/06, Claudio Belotti wrote: > Dear all, > I modified lib/alexandria/book_providers/ibs_it.rb to download the cover > images using a referer. > Covers are now downloaded to .alexandria/.ibs_it_cache. > The cache is cleaned at the exit. > > To handle cover files in treeview a little modification of > lib/alexandria/ui/new_book_dialog.rb was needed. > > So now nice covers are back for the Italian-speaking Alexandria users > community ;-) > > > cheers > Claudio > > _______________________________________________ > Alexandria-list mailing list > Alexandria-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/alexandria-list >