From lrz at gnome.org Wed Jun 1 15:38:15 2005 From: lrz at gnome.org (Laurent Sansonetti) Date: Wed Jun 1 15:31:17 2005 Subject: [Alexandria-list] New bug... sorry In-Reply-To: <40979.82.239.64.142.1117572772.squirrel@82.239.64.142> References: <1117144132.7936.14.camel@localhost.localdomain> <39201.82.239.64.142.1117146542.squirrel@82.239.64.142> <1117570674.7974.4.camel@localhost.localdomain> <1117571263.7974.10.camel@localhost.localdomain> <40979.82.239.64.142.1117572772.squirrel@82.239.64.142> Message-ID: <1117654695.5566.0.camel@localhost.localdomain> Hi Liam, On Tue, 2005-05-31 at 22:52 +0200, Laurent Sansonetti wrote: > Hi Liam, > > > Worked it out, although I don't understand quite what this means. > > > > I commented out your > > > > alias_method :old_select, :select > > def select > > filtered_library = Library.new(@name) > > self.each do |book| > > filtered_library << book if yield(book) > > end > > return filtered_library > > end > > Bug fixed in CVS. Sorry for the inconvenience, and thanks again! Laurent From afb at paradise.net.nz Fri Jun 3 03:49:57 2005 From: afb at paradise.net.nz (Adam Bogacki) Date: Fri Jun 3 03:58:19 2005 Subject: [Alexandria-list] Backup Options ? In-Reply-To: <40077.82.239.64.142.1117149411.squirrel@82.239.64.142> References: <42903969.10007@paradise.net.nz> <36867.82.239.64.142.1116793357.squirrel@82.239.64.142> <42911D02.5010000@paradise.net.nz> <40427.82.239.64.142.1116880086.squirrel@82.239.64.142> <42925DB1.7060103@paradise.net.nz> <42131.82.239.64.142.1116893131.squirrel@82.239.64.142> <4292DC0F.8090704@paradise.net.nz> <40077.82.239.64.142.1117149411.squirrel@82.239.64.142> Message-ID: <42A00BA5.8060901@paradise.net.nz> Laurent Sansonetti wrote: >Hi, > >(Sorry for the late answer.) > > > >>Laurent Sansonetti wrote: >> >> >> >>>>Laurent Sansonetti wrote: >>>> >>>> >>>> >>>> >>>> >>>>>> There are many things about Alexandria I like, but it still keeps >>>>>>crashing when I >>>>>>select another library. What is the situation with debian instals and >>>>>>Gconf ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Well, of course it should not crash :) >>>>> >>>>>Please run Alexandria from the console like this: >>>>> >>>>>$ DEBUG=1 alexandria >>>>> >>>>>Then, make it crash and report me the output. >>>>> >>>>>Regards >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>Sorry if it's a bit repetitive .. >>>> >>>> >>>> >>>> >>>> >>>OK so it does not crash on the Ruby code. This is therefore a serious >>>crash... >>> >>>Next step: >>> >>> $ gdb ruby >>> [...] >>> run /usr/bin/alexandria >>> [make it crash] >>> bt >>> >>>And send me the backtrace. >>> >>>(warning: gdb commands untested, no box there to try) >>> >>>An easier way to recover the backtrace, when it crash you should have the >>>usual GNOME bug report dialog. Click on report (or 'inform developers', >>>something like that) and then an option button should give you the >>>backtrace. >>> >>> >>> >>> >>> >>More (repetitive) error messages .. >> >>Adam. >> >> >> >>>(gdb) run /usr/bin/alexandria >>>The program being debugged has been started already. >>>Start it from the beginning? (y or n) >>>Please answer y or n. >>>The program being debugged has been started already. >>>Start it from the beginning? (y or n) y >>> >>>Starting program: /usr/bin/ruby /usr/bin/alexandria >>>(no debugging symbols found) >>>(no debugging symbols found) >>>(no debugging symbols found) >>>[Thread debugging using libthread_db enabled] >>>[New Thread 1076413536 (LWP 9504)] >>>(no debugging symbols found) >>> >>> >>>(no debugging symbols found) >>> >>>Program received signal SIGSEGV, Segmentation fault. >>>[Switching to Thread 1076413536 (LWP 9504)] >>>0x409f7af1 in gtk_tree_model_get_valist () from >>>/usr/lib/libgtk-x11-2.0.so.0 >>>(gdb) >>> >>> >>Much as before .. either Alexandria freezes in ruby (gdb) mode, or Bug >>Buddy freezes >>when started in /home/adam and 'Inform Developers' is clicked. >> >>Adam. >> >> >> >> >> > >Interesting feedback... Your environment seems to be really unstable. > >Just a though, did you use Debian packages for everything Alexandria >depends on? This kind of issue could be related to a binary Ruby binding >build against a wrong version of the native library. In other words, did >you install GTK+, GConf, or whatever, by hand? > >Also, is Alexandria the only app that is crashing on your system like this? > >Otherwise, it may be interesting to open a bug at the Debian tracker: > >http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=alexandria > >The Debian maintainer could help you better than I, asking you to provide >output of Debian internal commands to check that your environment is >clean. I do not know Debian so much, unfortunately. > >Regards > > > Sorry about the delayed response, I've been busy on other issues. I think you might be right in your most recent comments. My system is almost completely debian (good for automatic distribution upgrades). I first installed Alexandria 0.5.1 from a tarball after you told me it was out. I later deleted the alexandria folder and installed via apt for this reason. It might be that something I did not realise was part of alexandria is interacting with the debian install. I did not install GTK+, GConf, or whatever else, by hand. Most apps are stable but I've noticed that Rubrica crashes when I click save after entering address data. Alexandria libraries behave correctly when logged in as root or another user. It's not affecting major components/apps - I use AbiWord, most browsers, rss feeds, and other apps with no problems. I don't think its a specifically debian problem but may have to do with interaction between remnants of the decompressed tarball and the debian installed version. That does not however explain Rubrica crashing. Adam Bogacki, afb@paradise.net.nz From registrations at liamjdavison.info Mon Jun 6 16:16:13 2005 From: registrations at liamjdavison.info (LJD) Date: Mon Jun 6 16:12:05 2005 Subject: [Alexandria-list] Question re Ruby/Amazon Message-ID: <1118088973.8284.6.camel@localhost.localdomain> Hi all I've been playing around with alexandria, looking at ways of integrating book prices. But I can't find any suitable documentation for Ruby/Amazon. I can't find any site that lists the properties retrieved by an amazon search, or how to access it. In alexandria/lib/book_providers/amazon.rb I thought and hoped I could do something like tempprice = product.listprice But this is just returning a nil value!!!! Driving me bonkers, this is. At http://www.amazon.com/gp/aws/sdk/002-1041508-9255248?v=2005%2d03% 2d23&s=AWSEcommerceService there is reference to ListPrice.Amount, ListPrice.CurrencyCode and ListPrice.FormattedPrice but these all come to nil! Where can I find proper documentation for this? Liam From laurent.sansonetti at gmail.com Mon Jun 6 16:40:39 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Mon Jun 6 16:36:30 2005 Subject: [Alexandria-list] Question re Ruby/Amazon In-Reply-To: <1118088973.8284.6.camel@localhost.localdomain> References: <1118088973.8284.6.camel@localhost.localdomain> Message-ID: <1be7247c050606134047e3fa9@mail.gmail.com> Hi Liam, On 6/6/05, LJD wrote: > Hi all > > I've been playing around with alexandria, looking at ways of integrating > book prices. But I can't find any suitable documentation for > Ruby/Amazon. I can't find any site that lists the properties retrieved > by an amazon search, or how to access it. > API reference is available there: http://www.caliban.org/ruby/ruby-amazon/ Please note that a lot of things (like product attributes) are automatically generated at run time by parsing the webservice XML, so they do not figure in the documentation. The best way to find them is to investigate the API through 'irb', the Ruby terminal program: irb -r amazon/search [make your request there] p result # will introspect an Amazon::Result object > In alexandria/lib/book_providers/amazon.rb I thought and hoped I could > do something like > > tempprice = product.listprice > > But this is just returning a nil value!!!! > Try product.list_price, it should work (untested though). Ian choosed to map CamelCase with underscores names to probably make the API more ruby'sh. HTH, Laurent From web at liamjdavison.info Thu Jun 9 04:18:52 2005 From: web at liamjdavison.info (Liam Davison) Date: Thu Jun 9 07:55:31 2005 Subject: [Alexandria-list] New feature for alexandria? Book prices Message-ID: <1118305132.7949.14.camel@localhost.localdomain> Good morning all I have been playing around with the Alexandria code with the aim of adding support for book prices. To this end, I've created my own little fork of Alexandria called Carnegie. This isn't a competitive product - I'll still be using Alexandria to catalogue my book collection. It's more of a testbed where I can learn Ruby and explore options for Alexandria. Right now, Carnegie allows you to record the price of a book, in several different currencies. The price is fetched from the ListPrice in amazon.com/.co.uk/.de/.co.jp and stored as a currency code (eg USD, GBP), a currency symbol ($, ?) and an integer value. You can add and remove additional currencies manually. I have still to support other book providers, and to include the prices in the export features. Next I want to look at Contributors - such as editors, designers, and other people who can contribute to a book. As I say, I'm still using Alexandria myself, but if anyone wants to have a look at Carnegie just drop me a line. Liam Davison * Carnegie is named after Andrew Carnegie, the great American industrialist, who was actually born in the same town as me, Dunfermline in Scotland. He may be famous for New York's Carnegie Hall, but he also built a Carnegie Hall in Dunfermline. And a Carnegie Health Centre, the Louise Carnegie gates to a park, and the Carnegie Library, one of the first public libraries in Scotland - all in Dunfermline. -- From todd at hardboot.org Thu Jun 9 11:42:02 2005 From: todd at hardboot.org (todd@hardboot.org) Date: Thu Jun 9 11:37:52 2005 Subject: [Alexandria-list] New feature for alexandria? Book prices In-Reply-To: <1118305132.7949.14.camel@localhost.localdomain> References: <1118305132.7949.14.camel@localhost.localdomain> Message-ID: <20050609084202.oq8sw69ieqo088kc@hardboot.org> Quoting Liam Davison : > I have been playing around with the Alexandria code with the aim of > adding support for book prices. Ooh... > Right now, Carnegie allows you to record the price of a book, in several > different currencies. The price is fetched from the ListPrice in > amazon.com/.co.uk/.de/.co.jp and stored as a currency code (eg USD, > GBP), a currency symbol ($, ?) and an integer value. You can add and > remove additional currencies manually. Why currency symbol? It doesn't add any information not already in the currency code. When you say "integer value" do you really mean that it will only display in whole euros/dollars/yen/whatever? If a book lists for ? 15.49, what will your modifications display? > * Carnegie is named after Andrew Carnegie A worthy namesakee. I'd be very much interested in having a copy of your changes, Liam. I don't know Ruby, but I could stumble my way through it. Price info is something I would really like to have. -todd -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-keys Size: 1320 bytes Desc: PGP Public Key Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20050609/e24649ba/attachment.bin From lrz at gnome.org Thu Jun 9 15:08:45 2005 From: lrz at gnome.org (Laurent Sansonetti) Date: Thu Jun 9 15:04:22 2005 Subject: [Alexandria-list] New feature for alexandria? Book prices In-Reply-To: <1118305132.7949.14.camel@localhost.localdomain> References: <1118305132.7949.14.camel@localhost.localdomain> Message-ID: <45363.82.239.64.142.1118344125.squirrel@82.239.64.142> Hi Liam, > Good morning all > > I have been playing around with the Alexandria code with the aim of > adding support for book prices. To this end, I've created my own little > fork of Alexandria called Carnegie. This isn't a competitive product - > I'll still be using Alexandria to catalogue my book collection. It's > more of a testbed where I can learn Ruby and explore options for > Alexandria. > > Right now, Carnegie allows you to record the price of a book, in several > different currencies. The price is fetched from the ListPrice in > amazon.com/.co.uk/.de/.co.jp and stored as a currency code (eg USD, > GBP), a currency symbol ($, ??) and an integer value. You can add and > remove additional currencies manually. I have still to support other > book providers, and to include the prices in the export features. > This sounds very interesting! In the past someone requested to have book prices in Alexandria but I had the following problems: - Each book provider has a different price, and some providers do not return a price ; - Localisation problems, yes, Alexandria should not print prices in American Dollars when running with the French locale for instance (it should use Euro instead). The second point brings a lot of problems with currency conversion. I would be very happy to know how you did to print the different currencies for a book's price. Also, is there any chance that you could give me a patch so I can perhaps merge this change in Alexandria? Good continuation with Carnegie! -- Laurent From registrations at liamjdavison.info Thu Jun 9 17:55:12 2005 From: registrations at liamjdavison.info (LJD) Date: Thu Jun 9 17:51:00 2005 Subject: [Alexandria-list] Carnegie price support Message-ID: <1118354113.7972.8.camel@localhost.localdomain> Hi all Giving some thought to the comments on pricing. I'm still keen to work on it, so I will make some changes over the next couple of days, clean it up a bit, then make a release at the beginning of next week. Todd: The currency symbol was partly just a learning experience for me, building a larger Gtk::TreeView. I think I will cut it down and simplify things. Laurent: It's true that each provider has different prices. Amazon has an OfferPrice and a ListPrice (amazon don't recommend that you locally store an OfferPrice anyway). I haven't looked at the other providers yet - I will do what I can. I wanted multiple currency support because, in my mind, I want Carnegie to be a tool for publishers to manager their book lists rather than just to catalogue a collection. That's a long way away, but it's quite normal in the UK for smaller publishers to have UK, US and other prices on their books. So far, Carnegie only fetches one price from Amazon (as set up in the amazon preferences). I am wondering if I could get Carnegie to fetch prices from other amazon sites as well... I've had to make changes to quite a few files - I'll post a tarball next week. Mostly, I'm having fun with learning ruby and the speed at which I can make changes! Best, Liam From blarson at blars.org Sat Jun 11 03:00:10 2005 From: blarson at blars.org (Blars Blarson) Date: Sat Jun 11 02:55:59 2005 Subject: [Alexandria-list] New feature for alexandria? Book prices Message-ID: <20050611070010.GA18716@blars.org> In article <1118305132.7949.14.camel@localhost.localdomain> web@liamjdavison.info writes: >Right now, Carnegie allows you to record the price of a book, in several >different currencies. The price is fetched from the ListPrice in >amazon.com/.co.uk/.de/.co.jp and stored as a currency code (eg USD, >GBP), a currency symbol ($, £) and an integer value. You can add and >remove additional currencies manually. I have still to support other >book providers, and to include the prices in the export features. The UPC and extended EAN usually contain the list price. It would be nice if you could grab it from there. The list price is the only thing reasonable to automae, and that should be in the books native currency (or curencies). Purchase price might also be interesting, but that would need to be entered manually. I've got a spare bar code reader, AT-keyboard style (that works with ps2-AT converters). I'd be happy to give it to anyone that will try to fix two anoying bugs trying to use it with Alexandria: extend the number of characters accepted in the EAN input by one (to allow the space) and ignore spaces in the ISBN/EAN input field. I'm even willing to pay postage in the US and add the converts to PS2 if needed. I tryed to fix the bugs myself, and will admit the code had me completely stumped. Why didn't you use something easy to read like obfuscated Perl? :=) Getting Alexandria to handle UPC would be much appriciated, but that's a lot more work. -- Blars Blarson blarson@blars.org http://www.blars.org/blars.html With Microsoft, failure is not an option. It is a standard feature. From o.evans at gmail.com Sat Jun 11 06:52:59 2005 From: o.evans at gmail.com (Owain Evans) Date: Sat Jun 11 06:48:45 2005 Subject: Spaces in EAN/ISBN input + UPC was Re: [Alexandria-list] New feature for alexandria? Book prices In-Reply-To: <20050611070010.GA18716@blars.org> References: <20050611070010.GA18716@blars.org> Message-ID: <42AAC28B.5020506@gmail.com> Blars Blarson wrote: > I've got a spare bar code reader, AT-keyboard style (that works with > ps2-AT converters). I'd be happy to give it to anyone that will try > to fix two anoying bugs trying to use it with Alexandria: extend the > number of characters accepted in the EAN input by one (to allow the > space) and ignore spaces in the ISBN/EAN input field. I'm even > willing to pay postage in the US and add the converts to PS2 if > needed. > > I tryed to fix the bugs myself, and will admit the code had me > completely stumped. Why didn't you use something easy to read like > obfuscated Perl? :=) Try changing the following line in library.rb: Change : def self.canonicalise_isbn(isbn) numbers = self.extract_numbers(isbn) to: def self.canonicalise_isbn(isbn) numbers = self.extract_numbers(isbn.gsub(/ /, "")) This _should_ remove all whitespaces from ISBN/EAN/UPC code. A patch against library.rb (version 1.33 CVS) is attached. > Getting Alexandria to handle UPC would be much appriciated, but that's > a lot more work. Initial UPC support is added to the cvs version. Feedback would be appreciated. (For information on how to obtain the CVS version see http://rubyforge.org/scm/?group_id=205) All the best, Owain -------------- next part -------------- A non-text attachment was scrubbed... Name: library.rb.diff Type: text/x-patch Size: 1747 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20050611/70d1bf42/library.rb.bin From laurent.sansonetti at gmail.com Sat Jun 11 09:06:24 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Sat Jun 11 09:02:09 2005 Subject: [Alexandria-list] Carnegie price support In-Reply-To: <1118354113.7972.8.camel@localhost.localdomain> References: <1118354113.7972.8.camel@localhost.localdomain> Message-ID: <1be7247c05061106061fe92bfe@mail.gmail.com> Hi Liam, On 6/9/05, LJD wrote: > Hi all > > Giving some thought to the comments on pricing. I'm still keen to work > on it, so I will make some changes over the next couple of days, clean > it up a bit, then make a release at the beginning of next week. > > Todd: The currency symbol was partly just a learning experience for me, > building a larger Gtk::TreeView. I think I will cut it down and simplify > things. > > Laurent: It's true that each provider has different prices. Amazon has > an OfferPrice and a ListPrice (amazon don't recommend that you locally > store an OfferPrice anyway). I haven't looked at the other providers yet > - I will do what I can. I wanted multiple currency support because, in > my mind, I want Carnegie to be a tool for publishers to manager their > book lists rather than just to catalogue a collection. That's a long way > away, but it's quite normal in the UK for smaller publishers to have UK, > US and other prices on their books. So far, Carnegie only fetches one > price from Amazon (as set up in the amazon preferences). I am wondering > if I could get Carnegie to fetch prices from other amazon sites as > well... > > I've had to make changes to quite a few files - I'll post a tarball next > week. > Great, I am looking forward to the first Carnegie release. I will try to finish the z39.50 provider soon, then I will release 0.6.0. I did not have the time to finish all the features I planned, sorry :( 0.6.0 will feature the following: - help manual ; - autocompletion in the properties dialog ; - z39.50 support (plus the ability to manage your own z39.50 sources). Someone requested a Bibtex import/export filter, well it should not be so hard, so if I have the time I will do it also. > Mostly, I'm having fun with learning ruby and the speed at which I can > make changes! > Yeah! I am glad you appreciate the language, well I still do not know someone who did not like it after trying :) Laurent From laurent.sansonetti at gmail.com Sat Jun 11 09:30:04 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Sat Jun 11 09:25:47 2005 Subject: Spaces in EAN/ISBN input + UPC was Re: [Alexandria-list] New feature for alexandria? Book prices In-Reply-To: <42AAC28B.5020506@gmail.com> References: <20050611070010.GA18716@blars.org> <42AAC28B.5020506@gmail.com> Message-ID: <1be7247c05061106301ce96cfc@mail.gmail.com> Hi Owain, On 6/11/05, Owain Evans wrote: > Blars Blarson wrote: > > > I've got a spare bar code reader, AT-keyboard style (that works with > > ps2-AT converters). I'd be happy to give it to anyone that will try > > to fix two anoying bugs trying to use it with Alexandria: extend the > > number of characters accepted in the EAN input by one (to allow the > > space) and ignore spaces in the ISBN/EAN input field. I'm even > > willing to pay postage in the US and add the converts to PS2 if > > needed. > > > > I tryed to fix the bugs myself, and will admit the code had me > > completely stumped. Why didn't you use something easy to read like > > obfuscated Perl? :=) > > Try changing the following line in library.rb: > Change : > > def self.canonicalise_isbn(isbn) > numbers = self.extract_numbers(isbn) > > to: > > def self.canonicalise_isbn(isbn) > numbers = self.extract_numbers(isbn.gsub(/ /, "")) > > This _should_ remove all whitespaces from ISBN/EAN/UPC code. A patch > against library.rb (version 1.33 CVS) is attached. > Thanks, but I prefered to make the modification elsewhere: Index: lib/alexandria/library.rb =================================================================== RCS file: /var/cvs/alexandria/alexandria/lib/alexandria/library.rb,v retrieving revision 1.33 diff -u -r1.33 library.rb --- lib/alexandria/library.rb 26 May 2005 20:13:20 -0000 1.33 +++ lib/alexandria/library.rb 11 Jun 2005 13:22:58 -0000 @@ -124,7 +124,7 @@ def self.extract_numbers(isbn) raise "Nil ISBN" if isbn == nil - isbn.strip.delete('-').split('').map { |x| + isbn.delete('- ').split('').map { |x| raise InvalidISBNError.new(isbn) unless x =~ /[\dX]/ x == 'X' ? 10 : x.to_i } > > Getting Alexandria to handle UPC would be much appriciated, but that's > > a lot more work. > > Initial UPC support is added to the cvs version. Feedback would be > appreciated. (For information on how to obtain the CVS version see > http://rubyforge.org/scm/?group_id=205) > Yeah, I completely forgot UPC support in my last mail about 0.6.0 features, sorry :( Laurent From feb at maths.bath.ac.uk Fri Jun 10 19:41:34 2005 From: feb at maths.bath.ac.uk (feb@maths.bath.ac.uk) Date: Sat Jun 11 10:37:29 2005 Subject: [Alexandria-list] alexandria dump Message-ID: <17066.9518.455220.440382@localhost.localdomain> Here's the dump: ----------------------- Alexandria just crashed ----------------------- Timestamp: Sat Jun 11 00:37:58 BST 2005 Message: undefined method `call' for "edition":String Backtrace: (eval):1:in `set_active' (eval):1:in `active=' /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:738:in `initialize_ui' /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:731:in `call' /usr/lib/ruby/1.8/alexandria/ui.rb:41:in `main' /usr/lib/ruby/1.8/alexandria/ui.rb:41:in `main' /usr/lib/ruby/1.8/alexandria.rb:47:in `main' /usr/bin/alexandria:10 Release: 0.4.0 Uname -a: Linux bianchi 2.6.10-5-686-smp #1 SMP Tue Jun 7 09:34:54 UTC 2005 i686 GNU/Linux -- Please report this dump to 'alexandria-list@rubyforge.org' with some additional information, such as the description of the crash and the steps to reproduce it (if it's possible). What caused it: changing from icon view to list view (either from view menu or the drop-down top left) ---Fran From motylewski at zhr.pl Sat Jun 11 10:22:26 2005 From: motylewski at zhr.pl (Tadeusz Motylewski) Date: Sat Jun 11 10:37:29 2005 Subject: [Alexandria-list] crash Message-ID: <1118499746.15267.25.camel@Genowefa> I tryed both version 0.40 and 0.51. Both of them crashed after start: ----------------------- Alexandria just crashed ----------------------- Timestamp: sob cze 11 15:55:09 CEST 2005 Message: undefined method `map' for nil:NilClass Backtrace: /usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:146:in `update_priority' /usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:142:in `initialize' /usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:18:in `new' /usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:18:in `new' /usr/lib/ruby/1.8/singleton.rb:95:in `instance' /usr/lib/ruby/1.8/singleton.rb:84:in `instance' /usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:150:in `method_missing' /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:644:in `initialize_ui' /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:40:in `initialize' /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:40:in `new' /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:40:in `main' /usr/lib/ruby/site_ruby/1.8/alexandria.rb:47:in `main' /usr/bin/alexandria:10 Release: 0.4.0 Uname -a: Linux Genowefa 2.6.11-gentoo-r9 #3 SMP Mon Jun 6 08:54:38 CEST 2005 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz GenuineIntel GNU/Linux -- ----------------------- Alexandria just crashed ----------------------- Timestamp: sob cze 11 16:18:58 CEST 2005 Message: wrong number of arguments (1 for 2) Backtrace: /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:528:in `move' /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:528:in `restore_preferences' /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:81:in `initialize' /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:40:in `new' /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:40:in `main' /usr/lib/ruby/site_ruby/1.8/alexandria.rb:60:in `main' /usr/bin/alexandria:10 Release: 0.5.1 Uname -a: Linux Genowefa 2.6.11-gentoo-r9 #3 SMP Mon Jun 6 08:54:38 CEST 2005 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz GenuineIntel GNU/Linux -- From laurent.sansonetti at gmail.com Sat Jun 11 10:42:59 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Sat Jun 11 10:38:42 2005 Subject: [Alexandria-list] alexandria dump In-Reply-To: <17066.9518.455220.440382@localhost.localdomain> References: <17066.9518.455220.440382@localhost.localdomain> Message-ID: <1be7247c05061107421ed17051@mail.gmail.com> Hi, On 6/11/05, feb@maths.bath.ac.uk wrote: > > Here's the dump: > > ----------------------- > Alexandria just crashed > ----------------------- > Timestamp: Sat Jun 11 00:37:58 BST 2005 > Message: undefined method `call' for "edition":String > Backtrace: > (eval):1:in `set_active' > (eval):1:in `active=' > /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:738:in `initialize_ui' > /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:731:in `call' > /usr/lib/ruby/1.8/alexandria/ui.rb:41:in `main' > /usr/lib/ruby/1.8/alexandria/ui.rb:41:in `main' > /usr/lib/ruby/1.8/alexandria.rb:47:in `main' > /usr/bin/alexandria:10 > Release: 0.4.0 > > Uname -a: Linux bianchi 2.6.10-5-686-smp #1 SMP Tue Jun 7 09:34:54 UTC 2005 i686 GNU/Linux > -- > Please report this dump to 'alexandria-list@rubyforge.org' with some additional > information, such as the description of the crash and the steps to reproduce it > (if it's possible). > > What caused it: changing from icon view to list view (either from > view menu or the drop-down top left) > This is a well-known bug and it has been fixed since 0.5.0. Please upgrade. Cheers Laurent From laurent.sansonetti at gmail.com Sat Jun 11 10:44:22 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Sat Jun 11 10:40:10 2005 Subject: [Alexandria-list] crash In-Reply-To: <1118499746.15267.25.camel@Genowefa> References: <1118499746.15267.25.camel@Genowefa> Message-ID: <1be7247c05061107444e410e2e@mail.gmail.com> Hi, On 6/11/05, Tadeusz Motylewski wrote: > I tryed both version 0.40 and 0.51. Both of them crashed after start: > > ----------------------- > Alexandria just crashed > ----------------------- > Timestamp: sob cze 11 15:55:09 CEST 2005 > Message: undefined method `map' for nil:NilClass > Backtrace: > /usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:146:in > `update_priority' > /usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:142:in > `initialize' > /usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:18:in `new' > /usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:18:in `new' > /usr/lib/ruby/1.8/singleton.rb:95:in `instance' > /usr/lib/ruby/1.8/singleton.rb:84:in `instance' > /usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:150:in > `method_missing' > /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:644:in > `initialize_ui' > /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:40:in `initialize' > /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:40:in `new' > /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:40:in `main' > /usr/lib/ruby/site_ruby/1.8/alexandria.rb:47:in `main' > /usr/bin/alexandria:10 > Release: 0.4.0 > > Uname -a: Linux Genowefa 2.6.11-gentoo-r9 #3 SMP Mon Jun 6 08:54:38 CEST > 2005 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz GenuineIntel GNU/Linux > -- > > ----------------------- > Alexandria just crashed > ----------------------- > Timestamp: sob cze 11 16:18:58 CEST 2005 > Message: wrong number of arguments (1 for 2) > Backtrace: > /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:528:in `move' > /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:528:in > `restore_preferences' > /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:81:in `initialize' > /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:40:in `new' > /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:40:in `main' > /usr/lib/ruby/site_ruby/1.8/alexandria.rb:60:in `main' > /usr/bin/alexandria:10 > Release: 0.5.1 > > Uname -a: Linux Genowefa 2.6.11-gentoo-r9 #3 SMP Mon Jun 6 08:54:38 CEST > 2005 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz GenuineIntel GNU/Linux > -- Typical GConf schemas problem. Please restart GConf (gconftool-2 --shutdown) and try again. Cheers Laurent From daf at muse.19inch.net Sun Jun 12 12:05:02 2005 From: daf at muse.19inch.net (Dafydd Harries) Date: Sun Jun 12 12:00:47 2005 Subject: [Alexandria-list] images for book searches Message-ID: <20050612160501.GT15763@muse.19inch.net> I've committed a version of my book search image display patch. After having trouble with getting the UI to update inside the thread, I opted for the following solution: - When the user requests a search, a thread is begun which queries the book providers. At the same time, a GTK main loop timeout function is registered which checks whether any results have arrived. When they have, it updates the UI with the results. It then calls a function to start the image downloading process asynchronously and unregisters itself. - The asynchronous image download function works by kicking off another thread which downloads the images, and registering another main loop timeout function which updates the UI with images as they arrive. When the image download thread has finished, the timeout function unregisters itself. If the user cancels the dialog, either thread gets killed if it is running, which causes the timeout functions to unregister themselves. The threads also get killed if the user selects a book before the images have finished downloading. I've also fixed a bug where it was possible for a search to return no results but for the user not to get a notification to that effect. I've had an idea for reforming the book search dialog. Rather than having two types of image adding (ISBN and non-ISBN), we could just make ISBN search a different type of search along with title, author, etc. This would make the dialog less complicated. What do people think? -- Dafydd From registrations at liamjdavison.info Sun Jun 12 10:54:28 2005 From: registrations at liamjdavison.info (LJD) Date: Sun Jun 12 13:12:28 2005 Subject: [Alexandria-list] Carnegie Version 0.1.0 Message-ID: <1118588068.7994.5.camel@localhost.localdomain> Hello everyone Attached is a tarball of carnegie version 0.1. It provides support for prices in multiple currencies. Prices are composed of a currency code (USD, GBP, etc) and a value (?9.99, $14.95, that sort of thing). Carnegie 0.1 fetches the list price from amazon only just now. The price isn't included in any of the export functions yet. So, for carnegie 0.2 expect more providers to be included, and for prices to be exported in both HTML and ONIX formats. And a proper manual, which is still basically the old alexandria manual! Any questions, just ask! Liam -------------- next part -------------- A non-text attachment was scrubbed... Name: carnegie-0.1.0.tar.gz Type: application/x-compressed-tar Size: 656122 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20050612/9a9322a2/carnegie-0.1.0.tar-0001.bin From o.evans at gmail.com Sun Jun 12 17:48:56 2005 From: o.evans at gmail.com (Owain Evans) Date: Sun Jun 12 17:44:43 2005 Subject: [Alexandria-list] images for book searches In-Reply-To: <20050612160501.GT15763@muse.19inch.net> References: <20050612160501.GT15763@muse.19inch.net> Message-ID: <42ACADC8.60603@gmail.com> Just checked out the cvs version and got this error: /usr/local/lib/site_ruby/1.8/alexandria/web_themes.rb:44:in `load': undefined local variable or method `entries' for Alexandria::WebTheme:Class (NameError) from /usr/local/lib/site_ruby/1.8/alexandria/web_themes.rb:30:in `all' from /usr/local/lib/site_ruby/1.8/alexandria/web_themes.rb:30:in `map' from /usr/local/lib/site_ruby/1.8/alexandria/web_themes.rb:30:in `all' from /usr/local/lib/site_ruby/1.8/alexandria/ui/export_dialog.rb:48 from /usr/local/lib/site_ruby/1.8/alexandria/ui.rb:32:in `require' from /usr/local/lib/site_ruby/1.8/alexandria/ui.rb:32 from /usr/local/lib/site_ruby/1.8/alexandria.rb:85:in `require' from /usr/local/lib/site_ruby/1.8/alexandria.rb:85 from /usr/bin/alexandria:7:in `require' from /usr/bin/alexandria:7 From daf at muse.19inch.net Sun Jun 12 20:01:17 2005 From: daf at muse.19inch.net (Dafydd Harries) Date: Sun Jun 12 19:56:59 2005 Subject: [Alexandria-list] images for book searches In-Reply-To: <42ACADC8.60603@gmail.com> References: <20050612160501.GT15763@muse.19inch.net> <42ACADC8.60603@gmail.com> Message-ID: <20050613000116.GW15763@muse.19inch.net> Ar 12/06/2005 am 22:48, ysgrifennodd Owain Evans: > > Just checked out the cvs version and got this error: Ah, this is actually related to a change Laurent made a couple of weeks ago. I've just committed a fix to CVS. -- Dafydd From laurent.sansonetti at gmail.com Mon Jun 13 06:00:38 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Mon Jun 13 05:56:18 2005 Subject: [Alexandria-list] images for book searches In-Reply-To: <20050613000116.GW15763@muse.19inch.net> References: <20050612160501.GT15763@muse.19inch.net> <42ACADC8.60603@gmail.com> <20050613000116.GW15763@muse.19inch.net> Message-ID: <1be7247c05061303006e2b5dea@mail.gmail.com> Hi, On 6/13/05, Dafydd Harries wrote: > Ar 12/06/2005 am 22:48, ysgrifennodd Owain Evans: > > > > Just checked out the cvs version and got this error: > > Ah, this is actually related to a change Laurent made a couple of weeks ago. > I've just committed a fix to CVS. > Oops, I did it again :-) Thanks for the fix. Laurent From registrations at liamjdavison.info Tue Jun 14 07:05:09 2005 From: registrations at liamjdavison.info (LJD) Date: Tue Jun 14 07:00:48 2005 Subject: [Alexandria-list] Oops... a duff Carnegie Message-ID: <1118747109.8622.15.camel@localhost.localdomain> Hi guys Ok, so I've made a terrible mistake with Carnegie 0.1.0. It doesn't do what I claimed... Serves me right for not testing the release tarball. I was over-enthusiastic when removing the debugging code, and I removed the line which basically says book.prices[0] = tempprice. So the price, while fetched from amazon, isn't stored in the book. Duh! So look out for a carnegie 0.1.1 release soon, which will fix this problem, and will include the book price in the HTML export option. Once I've worked out why "?7.99" comes out as "??7.99"... Once again, sorry guys! Liam From tao at acc.umu.se Tue Jun 14 08:00:46 2005 From: tao at acc.umu.se (David Weinehall) Date: Tue Jun 14 07:56:29 2005 Subject: [Alexandria-list] Oops... a duff Carnegie In-Reply-To: <1118747109.8622.15.camel@localhost.localdomain> References: <1118747109.8622.15.camel@localhost.localdomain> Message-ID: <20050614120046.GO20439@khan.acc.umu.se> On Tue, Jun 14, 2005 at 12:05:09PM +0100, LJD wrote: > Hi guys > > Ok, so I've made a terrible mistake with Carnegie 0.1.0. It doesn't do > what I claimed... Serves me right for not testing the release tarball. I > was over-enthusiastic when removing the debugging code, and I removed > the line which basically says book.prices[0] = tempprice. So the price, > while fetched from amazon, isn't stored in the book. Duh! > > So look out for a carnegie 0.1.1 release soon, which will fix this > problem, and will include the book price in the HTML export option. Once > I've worked out why "?7.99" comes out as "??7.99"... UTF-8 vs iso-8859-x? Regards: David Weinehall -- /) David Weinehall /) Northern lights wander (\ // Maintainer of the v2.0 kernel // Dance across the winter sky // \) http://www.acc.umu.se/~tao/ (/ Full colour fire (/ From registrations at liamjdavison.info Fri Jun 17 13:42:03 2005 From: registrations at liamjdavison.info (LJD) Date: Fri Jun 17 20:57:40 2005 Subject: [Alexandria-list] Carnegie 0.1.1 Message-ID: <1119030123.8323.2.camel@localhost.localdomain> Hey guys Fixed my broken Carnegie. Prices are fetched from amazon, you can add additional prices manually, and the prices are included in the XHTML export function. Next is to add prices to the onix export. I will also add a web page to my site where you can download tarballs, as the mailing list limits large attachments. Liam -------------- next part -------------- A non-text attachment was scrubbed... Name: carnegie-0.1.1.tar.gz Type: application/x-compressed-tar Size: 656593 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20050617/ace37431/carnegie-0.1.1.tar-0001.bin From rvinyard at cs.nmsu.edu Sat Jun 18 18:41:09 2005 From: rvinyard at cs.nmsu.edu (Rick L Vinyard Jr) Date: Sat Jun 18 19:25:03 2005 Subject: [Alexandria-list] Bug report Message-ID: <1119134469.14566.0.camel@fangorn.local> Not sure what else might help... ----------------------- Alexandria just crashed ----------------------- Timestamp: Sat Jun 18 09:45:13 MDT 2005 Message: wrong number of arguments (1 for 2) Backtrace: /usr/lib64/site_ruby/1.8/alexandria/ui/main_app.rb:528:in `move' /usr/lib64/site_ruby/1.8/alexandria/ui/main_app.rb:528:in `restore_preferences' /usr/lib64/site_ruby/1.8/alexandria/ui/main_app.rb:81:in `initialize' /usr/lib64/site_ruby/1.8/alexandria/ui.rb:40:in `new' /usr/lib64/site_ruby/1.8/alexandria/ui.rb:40:in `main' /usr/lib64/site_ruby/1.8/alexandria.rb:60:in `main' /usr/bin/alexandria:10 Release: 0.5.1 Uname -a: Linux fangorn.local 2.6.11-1.1381_FC5 #1 Thu Jun 9 20:51:51 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux -- Please report this dump to 'alexandria-list@rubyforge.org' with some additional information, such as the description of the crash and the steps to reproduce it (if it's possible). From laurent.sansonetti at gmail.com Sun Jun 19 09:21:30 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Sun Jun 19 09:16:59 2005 Subject: [Alexandria-list] Bug report In-Reply-To: <1119134469.14566.0.camel@fangorn.local> References: <1119134469.14566.0.camel@fangorn.local> Message-ID: <1be7247c05061906216b78237e@mail.gmail.com> Hi, On 6/19/05, Rick L Vinyard Jr wrote: > Not sure what else might help... > > ----------------------- > Alexandria just crashed > ----------------------- > Timestamp: Sat Jun 18 09:45:13 MDT 2005 > Message: wrong number of arguments (1 for 2) > Backtrace: > /usr/lib64/site_ruby/1.8/alexandria/ui/main_app.rb:528:in `move' > /usr/lib64/site_ruby/1.8/alexandria/ui/main_app.rb:528:in > `restore_preferences' > /usr/lib64/site_ruby/1.8/alexandria/ui/main_app.rb:81:in `initialize' > /usr/lib64/site_ruby/1.8/alexandria/ui.rb:40:in `new' > /usr/lib64/site_ruby/1.8/alexandria/ui.rb:40:in `main' > /usr/lib64/site_ruby/1.8/alexandria.rb:60:in `main' > /usr/bin/alexandria:10 > Release: 0.5.1 > > Uname -a: Linux fangorn.local 2.6.11-1.1381_FC5 #1 Thu Jun 9 20:51:51 > EDT 2005 x86_64 x86_64 x86_64 GNU/Linux > -- > Please report this dump to 'alexandria-list@rubyforge.org' with some > additional > information, such as the description of the crash and the steps to > reproduce it > (if it's possible). > > Please restart GConf and try again. gconftool-2 --shutdown Laurent From laurent.sansonetti at gmail.com Sun Jun 19 14:23:14 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Sun Jun 19 14:18:42 2005 Subject: [Alexandria-list] Bug report In-Reply-To: <1119204922.28933.3.camel@fangorn.local> References: <1119134469.14566.0.camel@fangorn.local> <1be7247c05061906216b78237e@mail.gmail.com> <1119204922.28933.3.camel@fangorn.local> Message-ID: <1be7247c050619112357f24238@mail.gmail.com> Hi, On 6/19/05, Rick L Vinyard Jr wrote: > Beautiful... works perfect. > > I apologize if that was in a FAQ somewhere. > In fact it is written in the README. > Thanks. Now that I've got it working I'll write some Fedora Core 4 specs > (for alexandria and dependencies) if anyone's interested. > Oh excellent, I have been waiting for this! Please keep this work on, and drop me a message when you have built packages, so that I can put a link on the project home page. A lot of people have been requesting Fedora packages, if you can do this it would be very beautiful! Thanks Laurent From rvinyard at cs.nmsu.edu Sun Jun 19 14:15:21 2005 From: rvinyard at cs.nmsu.edu (Rick L Vinyard Jr) Date: Sun Jun 19 14:35:07 2005 Subject: [Alexandria-list] Bug report In-Reply-To: <1be7247c05061906216b78237e@mail.gmail.com> References: <1119134469.14566.0.camel@fangorn.local> <1be7247c05061906216b78237e@mail.gmail.com> Message-ID: <1119204922.28933.3.camel@fangorn.local> Beautiful... works perfect. I apologize if that was in a FAQ somewhere. Thanks. Now that I've got it working I'll write some Fedora Core 4 specs (for alexandria and dependencies) if anyone's interested. On Sun, 2005-06-19 at 15:21 +0200, Laurent Sansonetti wrote: > Please restart GConf and try again. > > gconftool-2 --shutdown > > Laurent > > From laurent.sansonetti at gmail.com Mon Jun 20 06:47:00 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Mon Jun 20 06:42:27 2005 Subject: [Alexandria-list] Web Demo Against Software Patents Message-ID: <1be7247c0506200347346f77af@mail.gmail.com> Hi, The web site is temporary closed in order to support the web demo against software patents. The original web site is still available from this address: http://alexandria.rubyforge.org/index.orig.html More info there: http://noepatents.eu.org/index.php/Web_Demo_Against_Software_Patents Laurent From registrations at liamjdavison.info Mon Jun 20 15:15:35 2005 From: registrations at liamjdavison.info (LJD) Date: Mon Jun 20 15:11:03 2005 Subject: [Alexandria-list] Last message on Carnegie Message-ID: <1119294935.11331.7.camel@localhost.localdomain> Hi I wanted to let everyone know that I am going to stop hijacking the Alexandria mailing list with messages about Carnegie. I have set up a simple website, soon to be improved, at http://www.liamjdavison.info/carnegie where you can follow my plans and progress on Carnegie. There is also a link to download the tarball. If you are specifically interested in learning more about Carnegie, drop me a line at carnegie@liamjdavison.info . I am still following and using Alexandria, and I hope I can continue to help with bug reports, feature requests and writing documentation! If Carnegie grows, I will look at getting a rubyforge account or setting up a mailing list, but that's a little beyond my skills right now. Finally, thanks to Laurent and the others who have given me support with both Alexandria and Carnegie. Best wishes, Liam Davison From lrz at gnome.org Mon Jun 20 15:58:56 2005 From: lrz at gnome.org (Laurent Sansonetti) Date: Mon Jun 20 15:54:33 2005 Subject: [Alexandria-list] Last message on Carnegie In-Reply-To: <1119294935.11331.7.camel@localhost.localdomain> References: <1119294935.11331.7.camel@localhost.localdomain> Message-ID: <34352.82.239.64.142.1119297536.squirrel@82.239.64.142> Hi Liam, > Hi > > I wanted to let everyone know that I am going to stop hijacking the > Alexandria mailing list with messages about Carnegie. I have set up a > simple website, soon to be improved, at > http://www.liamjdavison.info/carnegie where you can follow my plans and > progress on Carnegie. There is also a link to download the tarball. If > you are specifically interested in learning more about Carnegie, drop me > a line at carnegie@liamjdavison.info . > Oh, please continue to forward at least announcements here! I am sure it will interest everybody. And sometimes, I will steal some of your features (hehe) :-) > I am still following and using Alexandria, and I hope I can continue to > help with bug reports, feature requests and writing documentation! > Thanks! Your contributions have been very valuable, especially the documentation, which is very clean and complete. I hope to release 0.6.0 as soon as possible so that regular users can benefit of it. I am also looking forward to your work on Carnegie :-) > If Carnegie grows, I will look at getting a rubyforge account or setting > up a mailing list, but that's a little beyond my skills right now. > Would be great. Or maybe we can share the same project? I do not know how do you plan to merge future Alexandria changes in Carnegie, but if we share the same CVS it could maybe be easier. Cheers -- Laurent From marrakis at gmail.com Mon Jun 20 21:53:22 2005 From: marrakis at gmail.com (Arrakis Muadib) Date: Tue Jun 21 05:46:58 2005 Subject: [Alexandria-list] Alexandria crashed... Message-ID: <200506202153.22997.marrakis@gmail.com> Hi, When I tried to change the view of my current library, from icon to list, alexandria crashed and gave me the following dump: By the way, I was using the french version of alexandria with LC_ALL="fr" Timestamp: Mon Jun 20 21:49:00 EDT 2005 Message: undefined method `call' for /(^[ \t]+.*$)|(\S.{0,79})(?:[ \t]+| (\n+(?=[ \t]|\Z))|$)/:Regexp Backtrace: (eval):1:in `set_active' (eval):1:in `active=' /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:738:in `initialize_ui' /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:731:in `call' /usr/lib/ruby/1.8/alexandria/ui.rb:41:in `main' /usr/lib/ruby/1.8/alexandria/ui.rb:41:in `main' /usr/lib/ruby/1.8/alexandria.rb:47:in `main' /usr/bin/alexandria:10 Release: 0.4.0 Uname -a: Linux arak4 2.6.10-5-386 #1 Tue Jun 7 08:26:42 UTC 2005 i686 GNU/Linux thank you math From laurent.sansonetti at gmail.com Tue Jun 21 06:52:02 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Tue Jun 21 06:47:28 2005 Subject: [Alexandria-list] Alexandria crashed... In-Reply-To: <1be7247c05062102534171f651@mail.gmail.com> References: <200506202153.22997.marrakis@gmail.com> <1be7247c05062102534171f651@mail.gmail.com> Message-ID: <1be7247c0506210352fa5fc0b@mail.gmail.com> (Forgot to reply on list.) ---------- Forwarded message ---------- From: Laurent Sansonetti Date: Jun 21, 2005 11:53 AM Subject: Re: [Alexandria-list] Alexandria crashed... To: Arrakis Muadib Dear Herbert Lover, On 6/21/05, Arrakis Muadib wrote: > Hi, > > When I tried to change the view of my current library, from icon to list, > alexandria crashed and gave me the following dump: > > By the way, I was using the french version of alexandria with LC_ALL="fr" > > Timestamp: Mon Jun 20 21:49:00 EDT 2005 > Message: undefined method `call' for /(^[ \t]+.*$)|(\S.{0,79})(?:[ \t]+| > (\n+(?=[ \t]|\Z))|$)/:Regexp > Backtrace: > (eval):1:in `set_active' > (eval):1:in `active=' > /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:738:in `initialize_ui' > /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:731:in `call' > /usr/lib/ruby/1.8/alexandria/ui.rb:41:in `main' > /usr/lib/ruby/1.8/alexandria/ui.rb:41:in `main' > /usr/lib/ruby/1.8/alexandria.rb:47:in `main' > /usr/bin/alexandria:10 > Release: 0.4.0 > This bug has been fixed since 0.5.0. Please consider upgrading :-) Laurent From afb at paradise.net.nz Wed Jun 22 07:19:21 2005 From: afb at paradise.net.nz (Adam Bogacki) Date: Wed Jun 22 07:14:50 2005 Subject: [Alexandria-list] Backup Options ? SOLVED. In-Reply-To: <40077.82.239.64.142.1117149411.squirrel@82.239.64.142> References: <42903969.10007@paradise.net.nz> <36867.82.239.64.142.1116793357.squirrel@82.239.64.142> <42911D02.5010000@paradise.net.nz> <40427.82.239.64.142.1116880086.squirrel@82.239.64.142> <42925DB1.7060103@paradise.net.nz> <42131.82.239.64.142.1116893131.squirrel@82.239.64.142> <4292DC0F.8090704@paradise.net.nz> <40077.82.239.64.142.1117149411.squirrel@82.239.64.142> Message-ID: <42B94939.1090102@paradise.net.nz> Laurent .. my solution was simple. I set up user 'biblio', copied folder contents to /home/biblio/.alexandria, and it works perfectly. I know it avoids resolving the (gconf ?) problem in /home/adam, but I'm a busy boy. Cheers, Adam Bogacki, afb@paradise.net.nz Laurent Sansonetti wrote: >Hi, > >(Sorry for the late answer.) > > > >>Laurent Sansonetti wrote: >> >> >> >>>>Laurent Sansonetti wrote: >>>> >>>> >>>> >>>> >>>> >>>>>> There are many things about Alexandria I like, but it still keeps >>>>>>crashing when I >>>>>>select another library. What is the situation with debian instals and >>>>>>Gconf ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Well, of course it should not crash :) >>>>> >>>>>Please run Alexandria from the console like this: >>>>> >>>>>$ DEBUG=1 alexandria >>>>> >>>>>Then, make it crash and report me the output. >>>>> >>>>>Regards >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>Sorry if it's a bit repetitive .. >>>> >>>> >>>> >>>> >>>> >>>OK so it does not crash on the Ruby code. This is therefore a serious >>>crash... >>> >>>Next step: >>> >>> $ gdb ruby >>> [...] >>> run /usr/bin/alexandria >>> [make it crash] >>> bt >>> >>>And send me the backtrace. >>> >>>(warning: gdb commands untested, no box there to try) >>> >>>An easier way to recover the backtrace, when it crash you should have the >>>usual GNOME bug report dialog. Click on report (or 'inform developers', >>>something like that) and then an option button should give you the >>>backtrace. >>> >>> >>> >>> >>> >>More (repetitive) error messages .. >> >>Adam. >> >> >> >>>(gdb) run /usr/bin/alexandria >>>The program being debugged has been started already. >>>Start it from the beginning? (y or n) >>>Please answer y or n. >>>The program being debugged has been started already. >>>Start it from the beginning? (y or n) y >>> >>>Starting program: /usr/bin/ruby /usr/bin/alexandria >>>(no debugging symbols found) >>>(no debugging symbols found) >>>(no debugging symbols found) >>>[Thread debugging using libthread_db enabled] >>>[New Thread 1076413536 (LWP 9504)] >>>(no debugging symbols found) >>> >>> >>>(no debugging symbols found) >>> >>>Program received signal SIGSEGV, Segmentation fault. >>>[Switching to Thread 1076413536 (LWP 9504)] >>>0x409f7af1 in gtk_tree_model_get_valist () from >>>/usr/lib/libgtk-x11-2.0.so.0 >>>(gdb) >>> >>> >>Much as before .. either Alexandria freezes in ruby (gdb) mode, or Bug >>Buddy freezes >>when started in /home/adam and 'Inform Developers' is clicked. >> >>Adam. >> >> >> >> >> > >Interesting feedback... Your environment seems to be really unstable. > >Just a though, did you use Debian packages for everything Alexandria >depends on? This kind of issue could be related to a binary Ruby binding >build against a wrong version of the native library. In other words, did >you install GTK+, GConf, or whatever, by hand? > >Also, is Alexandria the only app that is crashing on your system like this? > >Otherwise, it may be interesting to open a bug at the Debian tracker: > >http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=alexandria > >The Debian maintainer could help you better than I, asking you to provide >output of Debian internal commands to check that your environment is >clean. I do not know Debian so much, unfortunately. > >Regards > > > From o.evans at gmail.com Wed Jun 22 12:31:59 2005 From: o.evans at gmail.com (Owain Evans) Date: Wed Jun 22 12:27:26 2005 Subject: [Alexandria-list] images for book searches In-Reply-To: <20050612160501.GT15763@muse.19inch.net> References: <20050612160501.GT15763@muse.19inch.net> Message-ID: <42B9927F.7080509@gmail.com> Dafydd Harries wrote: > I've had an idea for reforming the book search dialog. Rather than having two > types of image adding (ISBN and non-ISBN), we could just make ISBN search a > different type of search along with title, author, etc. This would make the > dialog less complicated. What do people think? > I like the idea of having one search bar, which searches all fields at the same time. So if I enter "Arthur" into the search bar it will come up with any title, author, or note etc. that contains the search term "Arthur". An addition to this could be that if you enter a barcode number that doesn't exist in your current library, into the search bar, but it is a valid code, (see my valid_barcode? post!) a new button appears such as "add this book to my collection" which you can click, and then alexandria will try and retrieve the info. This removes the isbn dialog, and then you have the option of manually entering your books also..... Just an idea! Owain From o.evans at gmail.com Wed Jun 22 12:33:38 2005 From: o.evans at gmail.com (Owain Evans) Date: Wed Jun 22 12:29:00 2005 Subject: [Alexandria-list] Ideas Message-ID: <42B992E2.4000800@gmail.com> Hi there, I've gone away and written a few more ruby programs and feel sufficiently confident to have another go at alexandria. My plans are as follows: 1) Make upc code more integrated, my thoughts were to create a valid_barcode? method for the Library class and replacing all the valid_isbn? and valid_ean? throughout the code. This would make it easier for future additions. The valid_barcode? method would return isbn, ean or upc so that current tests could be performed. 2) Add surname and forename fields to author info. My feelings are to create an author object within the book object, but I will listen to people who are in the know on this one. Any comments/suggestions before I go ahead with trying this out? Owain From tom_jones_mk2 at yahoo.co.uk Wed Jun 22 12:20:34 2005 From: tom_jones_mk2 at yahoo.co.uk (Owain Evans) Date: Wed Jun 22 12:50:33 2005 Subject: [Alexandria-list] Ideas Message-ID: <42B98FD2.7000301@yahoo.co.uk> Hi there, I've gone away and written a few more ruby programs and feel sufficiently confident to have another go at alexandria. My plans are as follows: 1) Make upc code more integrated, my thoughts were to create a valid_barcode? method for the Library class and replacing all the valid_isbn? and valid_ean? throughout the code. This would make it easier for future additions. The valid_barcode? method would return isbn, ean or upc so that current tests could be performed. 2) Add surname and forename fields to author info. My feelings are to create an author object within the book object, but I will listen to people who are in the know on this one. Any comments/suggestions before I go ahead with trying this out? Owain From laurent.sansonetti at gmail.com Wed Jun 22 13:10:04 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Wed Jun 22 13:05:29 2005 Subject: [Alexandria-list] Ideas In-Reply-To: <42B992E2.4000800@gmail.com> References: <42B992E2.4000800@gmail.com> Message-ID: <1be7247c0506221010cf6e97d@mail.gmail.com> Hi Owain, On 6/22/05, Owain Evans wrote: > Hi there, > > I've gone away and written a few more ruby programs and feel > sufficiently confident to have another go at alexandria. > Cool. > My plans are as follows: > > 1) Make upc code more integrated, my thoughts were to create a > valid_barcode? method for the Library class and replacing all the > valid_isbn? and valid_ean? throughout the code. This would make it > easier for future additions. The valid_barcode? method would return > isbn, ean or upc so that current tests could be performed. > Looks interesting! > 2) Add surname and forename fields to author info. My feelings are to > create an author object within the book object, but I will listen to > people who are in the know on this one. > I believe it is not easy to split the authors' compound name in surname and forename. Here are some thoughts: 1/ Almost (all?) providers return authors in a single string (sometimes they return all the authors in a very long string). This is therefore difficult to determine the surname and the forename part of a string. 2/ In some compound name you can find a prefix or a suffix. Like George Bush Jr for instance. The prefixes and suffixes are important, and must be kept in the authors compound name. Some names are composed (multiple words) also. This makes the decomposition harder. 3/ In some countries the compound name is written using first the surname, and then the forename. In other countries, the name ordering is different. If we plan to split a compound name in two parts, we should reassemble it in the most natural way for the user (according to the current locale). Laurent From laurent.sansonetti at gmail.com Wed Jun 22 13:32:13 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Wed Jun 22 13:27:35 2005 Subject: [Alexandria-list] images for book searches In-Reply-To: <1be7247c050622100045d1cc21@mail.gmail.com> References: <20050612160501.GT15763@muse.19inch.net> <42B9927F.7080509@gmail.com> <1be7247c050622100045d1cc21@mail.gmail.com> Message-ID: <1be7247c05062210327a19e3e2@mail.gmail.com> (Grumbl, forgot again the list.) ---------- Forwarded message ---------- From: Laurent Sansonetti Date: Jun 22, 2005 7:00 PM Subject: Re: [Alexandria-list] images for book searches To: Owain Evans Hi Owain, On 6/22/05, Owain Evans wrote: > Dafydd Harries wrote: > > > I've had an idea for reforming the book search dialog. Rather than having two > > types of image adding (ISBN and non-ISBN), we could just make ISBN search a > > different type of search along with title, author, etc. This would make the > > dialog less complicated. What do people think? > > > I like the idea of having one search bar, which searches all fields at > the same time. So if I enter "Arthur" into the search bar it will come > up with any title, author, or note etc. that contains the search term > "Arthur". > Good idea. In fact I already implemented it in the Cocoa version of the program, and I plan to backport the feature to the GNOME version, as soon as I have the time. > An addition to this could be that if you enter a barcode number that > doesn't exist in your current library, into the search bar, but it is a > valid code, (see my valid_barcode? post!) a new button appears such as > "add this book to my collection" which you can click, and then > alexandria will try and retrieve the info. > I am less confident about this one. The search bar is used to filter books, not adding books. And making things appearing in the user interface is not good in terms of usability. It is better to disable controls than hiding them. Thanks for the idea nevertheless Laurent From registrations at liamjdavison.info Wed Jun 22 13:38:34 2005 From: registrations at liamjdavison.info (registrations@liamjdavison.info) Date: Wed Jun 22 13:33:58 2005 Subject: [Alexandria-list] Re: Ideas In-Reply-To: <1be7247c0506221010cf6e97d@mail.gmail.com> References: <42B992E2.4000800@gmail.com> <1be7247c0506221010cf6e97d@mail.gmail.com> Message-ID: <20050622173834.34836.qmail@server15.donhost.co.uk> > >> 2) Add surname and forename fields to author info. My feelings are to >> create an author object within the book object, but I will listen to >> people who are in the know on this one. >> > > I believe it is not easy to split the authors' compound name in > surname and forename. Here are some thoughts: > > 1/ Almost (all?) providers return authors in a single string > (sometimes they return all the authors in a very long string). This > is therefore difficult to determine the surname and the forename part > of a string. > > 2/ In some compound name you can find a prefix or a suffix. Like > George Bush Jr for instance. The prefixes and suffixes are important, > and must be kept in the authors compound name. Some names are > composed (multiple words) also. This makes the decomposition harder. > > 3/ In some countries the compound name is written using first the > surname, and then the forename. In other countries, the name ordering > is different. If we plan to split a compound name in two parts, we > should reassemble it in the most natural way for the user (according > to the current locale). > I've been wondering the about the same thing. Because I am trying to make Carnegie produce minimal but valid ONIX files, I need to be able to split and invert the author's name for (I think that's the tag name...). I think ultimately I would have to go for Owain's idea. I want to include author contributors (editors, translators, etc) in Carnegie, and would have to create a Contributor class with a name and a role field anyway... Does Alexandria need the extra complexity of separating forenames and surnames? Just thinking out loud... Liam From o.evans at gmail.com Wed Jun 22 15:41:07 2005 From: o.evans at gmail.com (Owain Evans) Date: Wed Jun 22 15:36:30 2005 Subject: [Alexandria-list] Ideas In-Reply-To: <1be7247c0506221010cf6e97d@mail.gmail.com> References: <42B992E2.4000800@gmail.com> <1be7247c0506221010cf6e97d@mail.gmail.com> Message-ID: <42B9BED3.6080008@gmail.com> Laurent Sansonetti wrote: > Hi Owain, > > On 6/22/05, Owain Evans wrote: > >>Hi there, >> >>I've gone away and written a few more ruby programs and feel >>sufficiently confident to have another go at alexandria. >> > > > Cool. > > >>My plans are as follows: >> >>1) Make upc code more integrated, my thoughts were to create a >>valid_barcode? method for the Library class and replacing all the >>valid_isbn? and valid_ean? throughout the code. This would make it >>easier for future additions. The valid_barcode? method would return >>isbn, ean or upc so that current tests could be performed. >> > > > Looks interesting! > Get prepared for many patch files then! :D >>2) Add surname and forename fields to author info. My feelings are to >>create an author object within the book object, but I will listen to >>people who are in the know on this one. >> > > > I believe it is not easy to split the authors' compound name in > surname and forename. Here are some thoughts: > > 1/ Almost (all?) providers return authors in a single string > (sometimes they return all the authors in a very long string). This > is therefore difficult to determine the surname and the forename part > of a string. > > 2/ In some compound name you can find a prefix or a suffix. Like > George Bush Jr for instance. The prefixes and suffixes are important, > and must be kept in the authors compound name. Some names are > composed (multiple words) also. This makes the decomposition harder. > > 3/ In some countries the compound name is written using first the > surname, and then the forename. In other countries, the name ordering > is different. If we plan to split a compound name in two parts, we > should reassemble it in the most natural way for the user (according > to the current locale). > > Laurent > Good points, I will be honest and say that I was primarily concerned with my experiance of UK/US books. The majority of my data falls into these easy categories. Forename Surname Surname, Forename Forename Initial. Surname Forename Middlename Surname Author1, Author2 I agree that suffixes and titles (such as Dr, sir) are difficult and throwing away the original data should not be done. But my 500+ book collection would only require a few manual corrections. I'll have a go and see how much of a mess I make! Owain From o.evans at gmail.com Thu Jun 23 14:27:26 2005 From: o.evans at gmail.com (Owain Evans) Date: Thu Jun 23 14:22:48 2005 Subject: [Alexandria-list] Alpha surname parsing support Message-ID: <42BAFF0E.8040303@gmail.com> Ok here goes with the first attempt at surname support. First of all make sure you backup your .alexandria folder as I make changes to to the yaml format, which _may_ not be backward compatible.... Anyway, here are the patch files against the latest cvs files, and new file called authors.rb which lives in the 'alexandria/lib/alexandria/' directory. I decided to include individual patch files to make it easier for me to monitor what was being changed, I _may_ be able to provide an all in one patch if you tell me how to do it! :D You also need to add the following line to alexandria.rb: require 'alexandria/authors' To enable and disable surname parsing, choose the checkbox in Edit->Preferences. Note you have to click on Refresh to activate the change. If you start alexandria from a console any authors that cannot be parsed will be printed there. Please post any authors that cannot be parsed or are parsed incorrectly. Thanks Owain -------------- next part -------------- A non-text attachment was scrubbed... Name: preferences_dialog.glade.diff Type: text/x-patch Size: 1142 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20050623/4c46af91/preferences_dialog.glade-0001.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: book.rb.diff Type: text/x-patch Size: 4051 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20050623/4c46af91/book.rb-0001.bin -------------- next part -------------- # Copyright (C) 2004-2005 Laurent Sansonetti # # Alexandria is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # Alexandria is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public # License along with Alexandria; see the file COPYING. If not, # write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. module Alexandria class Author attr_reader :forenames, :surname def initialize(surname, forenames) @forenames = forenames @surname = surname end end end -------------- next part -------------- A non-text attachment was scrubbed... Name: library.rb.diff Type: text/x-patch Size: 1130 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20050623/4c46af91/library.rb-0001.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: book_properties_dialog.rb.diff Type: text/x-patch Size: 637 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20050623/4c46af91/book_properties_dialog.rb-0001.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: main_app.rb.diff Type: text/x-patch Size: 593 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20050623/4c46af91/main_app.rb-0001.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: preferences_dialog.rb.diff Type: text/x-patch Size: 700 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20050623/4c46af91/preferences_dialog.rb-0001.bin From o.evans at gmail.com Thu Jun 23 14:32:34 2005 From: o.evans at gmail.com (Owain Evans) Date: Thu Jun 23 14:27:56 2005 Subject: [Alexandria-list] new_book_dialog.rb tweak Message-ID: <42BB0042.4050004@gmail.com> Hi all, Here is a small tweak to make the new book dialog accept upc barcodes from the clipboard. Thanks Owain -------------- next part -------------- A non-text attachment was scrubbed... Name: new_book_dialog.rb.diff Type: text/x-patch Size: 549 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20050623/d460ec29/new_book_dialog.rb.bin From laurent.sansonetti at gmail.com Mon Jun 27 20:57:32 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Mon Jun 27 20:52:47 2005 Subject: [Alexandria-list] Alpha surname parsing support In-Reply-To: <42BAFF0E.8040303@gmail.com> References: <42BAFF0E.8040303@gmail.com> Message-ID: <1be7247c0506271757288febbd@mail.gmail.com> Hi Owain, On 6/23/05, Owain Evans wrote: > Ok here goes with the first attempt at surname support. > > First of all make sure you backup your .alexandria folder as I make > changes to to the yaml format, which _may_ not be backward compatible.... > > Anyway, here are the patch files against the latest cvs files, and new > file called authors.rb which lives in the 'alexandria/lib/alexandria/' > directory. I decided to include individual patch files to make it easier > for me to monitor what was being changed, I _may_ be able to provide an > all in one patch if you tell me how to do it! :D > > You also need to add the following line to alexandria.rb: > > require 'alexandria/authors' > > To enable and disable surname parsing, choose the checkbox in > Edit->Preferences. Note you have to click on Refresh to activate the change. > > If you start alexandria from a console any authors that cannot be parsed > will be printed there. Please post any authors that cannot be parsed or > are parsed incorrectly. > First of all, sorry for the late response, as usual. Well, very good job indeed! I have read the code and it seems pretty good to me. Unfortunately I could not find the time to try it yet. One idea came when reading your code: it would be nice to have an option in the preferences dialog to set the name ordering (first last name, or last first name). Could you provide your changes as a single unified patch (diff -u) and correct headers (with your name and not mine)? I promise to check it out and give you some feedback this week. Also, if you are interested in maintaining this code, could you give me a rubyforge ID so I can add you in the commit list? Thanks! Laurent From laurent.sansonetti at gmail.com Mon Jun 27 20:58:24 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Mon Jun 27 20:53:38 2005 Subject: [Alexandria-list] new_book_dialog.rb tweak In-Reply-To: <1be7247c05062717507d377d20@mail.gmail.com> References: <42BB0042.4050004@gmail.com> <1be7247c05062717507d377d20@mail.gmail.com> Message-ID: <1be7247c05062717581462bd4a@mail.gmail.com> I am getting old... ---------- Forwarded message ---------- From: Laurent Sansonetti Date: Jun 28, 2005 2:50 AM Subject: Re: [Alexandria-list] new_book_dialog.rb tweak To: Owain Evans Hi, On 6/23/05, Owain Evans wrote: > Hi all, > > Here is a small tweak to make the new book dialog accept upc barcodes > from the clipboard. > Nice! Patch merged. Thanks Laurent From laurent.sansonetti at gmail.com Mon Jun 27 21:03:39 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Mon Jun 27 20:58:52 2005 Subject: [Alexandria-list] Backup Options ? SOLVED. In-Reply-To: <42B94939.1090102@paradise.net.nz> References: <42903969.10007@paradise.net.nz> <36867.82.239.64.142.1116793357.squirrel@82.239.64.142> <42911D02.5010000@paradise.net.nz> <40427.82.239.64.142.1116880086.squirrel@82.239.64.142> <42925DB1.7060103@paradise.net.nz> <42131.82.239.64.142.1116893131.squirrel@82.239.64.142> <4292DC0F.8090704@paradise.net.nz> <40077.82.239.64.142.1117149411.squirrel@82.239.64.142> <42B94939.1090102@paradise.net.nz> Message-ID: <1be7247c05062718035c766402@mail.gmail.com> Hi Adam, Sorry for the late answer... On 6/22/05, Adam Bogacki wrote: > Laurent .. my solution was simple. I set up user 'biblio', copied folder > contents to /home/biblio/.alexandria, > and it works perfectly. I know it avoids resolving the (gconf ?) problem > in /home/adam, but I'm a busy boy. > Hehe, nice workaround :) About GConf, I have though about yet another protection to work around the schema setup bug: generating some ruby script at the installation time based on the .schema default values so that the Preferences manager can return the proper default value when GConf returns nil for a given key. Should not be hard to implement and should definitely avoid this nasty kind of bugs. Laurent From carnegie at liamjdavison.info Tue Jun 28 11:50:02 2005 From: carnegie at liamjdavison.info (Liam Davison) Date: Tue Jun 28 11:45:17 2005 Subject: [Alexandria-list] Carnegie 0.1.5 Message-ID: <1119973802.8288.6.camel@localhost.localdomain> Hi I'm pleased to announce the release of Carnegie version 0.1.5. This build of Carnegie includes some major enhancements to the ONIX export function. Carnegie can now create a valid, if minimal, ONIX message from your library. There are a couple of places where I've made some 'sensible defaults' to make this work, but the structure is now in place to develop further. I want to implement as much of the ONIX spec as possible. Download carnegie-0.1.5 at http://www.liamjdavison.info/carnegie/carnegie-0.1.5.tar.gz Laurent - I submitted a patch to Alexandria's ONIX export code to get the
part valid, but I've had to make a lot of changes to the rest of the function in Carnegie so I haven't submitted changes to rest of the alexandria export function. If you want, have a look at the export_library.rb file in carnegie and see what changes I have had to make to make a valid ONIX message. Carnegie doesn't have Dafydd's cool 'Images for book searches' feature... If Carnegie becomes more of a publisher's tool, as I'd like, the mostly the users will be creating a new book from scratch. -- Liam Davison Developer of Carnegie http://www.liamjdavison.info/carnegie/ From todd at hardboot.org Tue Jun 28 16:13:50 2005 From: todd at hardboot.org (Todd Walton) Date: Tue Jun 28 16:09:34 2005 Subject: [Alexandria-list] Carnegie 0.1.5 In-Reply-To: <1119973802.8288.6.camel@localhost.localdomain> References: <1119973802.8288.6.camel@localhost.localdomain> Message-ID: <1119989630.18805.0.camel@localhost> Quoting Liam Davison : > If Carnegie becomes more of a publisher's tool, as I'd like, Are your goals for Carnegie different enough from Alexandria that you don't want to merge all of your changes into Alexandria? I'm wondering why you want to keep Carnegie separate. -todd -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/alexandria-list/attachments/20050628/dbffdf23/attachment.htm From o.evans at gmail.com Wed Jun 29 03:32:22 2005 From: o.evans at gmail.com (Owain Evans) Date: Wed Jun 29 03:27:33 2005 Subject: [Alexandria-list] Alpha surname parsing support In-Reply-To: <1be7247c0506271757288febbd@mail.gmail.com> References: <42BAFF0E.8040303@gmail.com> <1be7247c0506271757288febbd@mail.gmail.com> Message-ID: <5b967bc70506290032198eb3f5@mail.gmail.com> On 6/28/05, Laurent Sansonetti wrote: > > First of all, sorry for the late response, as usual. > > Well, very good job indeed! I have read the code and it seems pretty > good to me. Unfortunately I could not find the time to try it yet. > > One idea came when reading your code: it would be nice to have an > option in the preferences dialog to set the name ordering (first last > name, or last first name). Sure, at the moment the default is first name, last name then enabling the surname parsing tried to provide surname, firstnames. > Could you provide your changes as a single unified patch (diff -u) and > correct headers (with your name and not mine)? I promise to check it > out and give you some feedback this week. Can somebody give me some help on how to provide the single unified patch? Appologies about the headers, I must admit I just cut and pasted without taking much notice :) I'm actually on holiday from tomorrow, so I won't have much time to work on alexandria until at least next weekend. > Also, if you are interested in maintaining this code, could you give > me a rubyforge ID so I can add you in the commit list? Sure, it's 'mrzaphod' > Thanks! > > Laurent > Do you or anybody else have any input or guidelines on how to keep the yaml format in alexandria as clean as possible? Does it have to be backward compatible for instance? Cheers, Owain From laurent.sansonetti at gmail.com Wed Jun 29 06:16:54 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Wed Jun 29 06:12:07 2005 Subject: [Alexandria-list] Alpha surname parsing support In-Reply-To: <5b967bc70506290032198eb3f5@mail.gmail.com> References: <42BAFF0E.8040303@gmail.com> <1be7247c0506271757288febbd@mail.gmail.com> <5b967bc70506290032198eb3f5@mail.gmail.com> Message-ID: <1be7247c05062903164210002a@mail.gmail.com> Hi Owain, On 6/29/05, Owain Evans wrote: > On 6/28/05, Laurent Sansonetti wrote: > > > > > First of all, sorry for the late response, as usual. > > > > Well, very good job indeed! I have read the code and it seems pretty > > good to me. Unfortunately I could not find the time to try it yet. > > > > One idea came when reading your code: it would be nice to have an > > option in the preferences dialog to set the name ordering (first last > > name, or last first name). > > Sure, at the moment the default is first name, last name then enabling > the surname parsing tried to provide surname, firstnames. > Great. > > Could you provide your changes as a single unified patch (diff -u) and > > correct headers (with your name and not mine)? I promise to check it > > out and give you some feedback this week. > > Can somebody give me some help on how to provide the single unified patch? > Appologies about the headers, I must admit I just cut and pasted without > taking much notice :) > I'm actually on holiday from tomorrow, so I won't have much time to > work on alexandria until at least next weekend. > This is very easy in fact: cvs -q diff -u > my_changes.patch At the root of the project. > > Also, if you are interested in maintaining this code, could you give > > me a rubyforge ID so I can add you in the commit list? > > Sure, it's 'mrzaphod' > Great. I will add you asap. > > Thanks! > > > > Laurent > > > Do you or anybody else have any input or guidelines on how to keep the > yaml format in alexandria as clean as possible? Does it have to be > backward compatible for instance? > Yes of course, it should be backward compatible :-) This is an important point to discuss. I have changed the data model in the past, and kept it compatible with previous versions. For instance: - in the past we used to have 2 cover files (one small and one big), now we have only one cover (the big one) that is reduced when needed. There is some code in library.rb to migrate old data models to the new one. - bit by bit, new fields have appeared in the Book class (rating, notes, loaning stuff, etc...). If you look attentively to the code, I always check if those fields are nil or not. All of these backward compatibility things will be removed for 1.0.0. For your authors, IMHO the best way to preserve compatibility is to migrate the data model in library.rb, when loading the books from the YAML files. If you find an old Book object, change it dynamically and save it. I will give you some comments about this asap. Laurent From carnegie at liamjdavison.info Thu Jun 30 04:05:37 2005 From: carnegie at liamjdavison.info (Liam Davison) Date: Thu Jun 30 04:00:48 2005 Subject: [Alexandria-list] Carnegie 0.1.5 In-Reply-To: <1119989630.18805.0.camel@localhost> References: <1119973802.8288.6.camel@localhost.localdomain> <1119989630.18805.0.camel@localhost> Message-ID: <1120118737.8306.6.camel@localhost.localdomain> On Tue, 2005-06-28 at 13:13 -0700, Todd Walton wrote: > Quoting Liam Davison : > > > If Carnegie becomes more of a publisher's tool, as I'd like, > > Are your goals for Carnegie different enough from Alexandria that you > don't want to merge all of your changes into Alexandria? I'm > wondering why you want to keep Carnegie separate. > > -todd > Todd, I think that Carnegie and Alexandria are likely to diverge - I want to add support for bindings and imprints, different contributors, sales and marketing information, territorial sales and rights information and a whole lot more. I've got a mock-up of an early version of the Carnegie UI - it's got about 10 different tabs with loads of fields... So I think they need to be kept separate. But there is certainly some overlap. Carnegie as it stands creates a minimally valid ONIX file, and there's not much that Alexandria would need to change to add that functionality. I'm certainly happy for my work on Carnegie to be used in Alexandria - Carnegie wouldn't exist if it wasn't for Alexandria! Liam Davison Developer of Carnegie http://www.liamjdavison.info/carnegie/ From carnegie at liamjdavison.info Thu Jun 30 04:09:01 2005 From: carnegie at liamjdavison.info (Liam Davison) Date: Thu Jun 30 04:04:14 2005 Subject: [Alexandria-list] Backwards compatibility In-Reply-To: <1be7247c05062903164210002a@mail.gmail.com> References: <42BAFF0E.8040303@gmail.com> <1be7247c0506271757288febbd@mail.gmail.com> <5b967bc70506290032198eb3f5@mail.gmail.com> <1be7247c05062903164210002a@mail.gmail.com> Message-ID: <1120118942.8306.11.camel@localhost.localdomain> > > Do you or anybody else have any input or guidelines on how to keep the > > yaml format in alexandria as clean as possible? Does it have to be > > backward compatible for instance? > > > > Yes of course, it should be backward compatible :-) This is an > important point to discuss. > > I have changed the data model in the past, and kept it compatible with > previous versions. For instance: > > - in the past we used to have 2 cover files (one small and one big), > now we have only one cover (the big one) that is reduced when needed. > There is some code in library.rb to migrate old data models to the new > one. > > - bit by bit, new fields have appeared in the Book class (rating, > notes, loaning stuff, etc...). If you look attentively to the code, I > always check if those fields are nil or not. > > All of these backward compatibility things will be removed for 1.0.0. > > For your authors, IMHO the best way to preserve compatibility is to > migrate the data model in library.rb, when loading the books from the > YAML files. If you find an old Book object, change it dynamically and > save it. > > I will give you some comments about this asap. > > Laurent Hi Laurent, Owain I've also been worrying about backwards compatibility. I'll look how Alexandria handles this - certainly haven't had any errors thrown up yet, even when I added price support. But I will be adding lots more fields into Carnegie, and something is likely to break before long. -- Liam Davison Developer of Carnegie http://www.liamjdavison.info/carnegie/ From carnegie at liamjdavison.info Thu Jun 30 04:21:09 2005 From: carnegie at liamjdavison.info (Liam Davison) Date: Thu Jun 30 04:16:20 2005 Subject: [Alexandria-list] Help requested Message-ID: <1120119670.8306.25.camel@localhost.localdomain> Hi all I'm about to move onto the next stage in Carnegie development, and I'm looking for a little bit of programming advice. I want to properly support ONIX 'code lists' - these are lists of specific codes for the different ONIX elements. For instance, the onix element can take a huge range of values, from 'AC (CD audio)' to 'BB (Paperback)' to 'CB (Sheet map, folded)' to 'ZF (T-shirt)', and I'd like to offer these as a drop down menu for the 'Binding' field in Carnegie. My question is: how and where do I store these? I was thinking of creating a generic Class ONIXList, with attributes 'code' and 'name' (and maybe a third, a longer helpful description'). Maybe a method to return a simple pretty string like 'AC (CD audio)' for the menus. Then for each code list (there are about 80 I think...), create an inherited class ('ProductForm', etc), fill in all the values, serialise the class with YAML... Then when the program loads, load all the data back in. The data doesn't change, although a few lists can be added to. Does this make any sense? Not sure that it does. Basically, I need a way of loading and storing long lists of codes, names and descriptions, without hardcoding them into the ruby files or, heaven forbid, saving them in GConf. Any and all thoughts gratefully received! -- Liam Davison Developer of Carnegie http://www.liamjdavison.info/carnegie/ From daf at muse.19inch.net Thu Jun 30 05:29:11 2005 From: daf at muse.19inch.net (Dafydd Harries) Date: Thu Jun 30 05:24:21 2005 Subject: [Alexandria-list] Alpha surname parsing support In-Reply-To: <1be7247c05062903164210002a@mail.gmail.com> References: <42BAFF0E.8040303@gmail.com> <1be7247c0506271757288febbd@mail.gmail.com> <5b967bc70506290032198eb3f5@mail.gmail.com> <1be7247c05062903164210002a@mail.gmail.com> Message-ID: <20050630092911.GR9252@muse.19inch.net> Ar 29/06/2005 am 12:16, ysgrifennodd Laurent Sansonetti: > For your authors, IMHO the best way to preserve compatibility is to > migrate the data model in library.rb, when loading the books from the > YAML files. If you find an old Book object, change it dynamically and > save it. Perhaps it would be worth having a format version number in the file, so that it's easier for the code to know which compatibility upgrades to perform? E.g. If you are loading a book and it has format version 2, but the current format version is 4, you apply the 2 -> 3 converter function and the 3 -> 4 converter function when you load the book. (When you save it again, you save it with format version 4.) -- Dafydd From carnegie at liamjdavison.info Thu Jun 23 08:29:52 2005 From: carnegie at liamjdavison.info (Carnegie) Date: Thu Jun 30 17:20:39 2005 Subject: [Alexandria-list] Using Gconf to store configuration details Message-ID: <1119529792.8332.5.camel@localhost.localdomain> Hi Could someone please point me in the direction of a suitable introduction to GConf? I would like to store a couple of additional settings for Carnegie in Gconf, but sure where to start. Can I just hack the schemas/carnegie.schemas file to include two extra entries, give them default values then rebuild carnegie? With thanks Liam Davison From terje at senikk.com Mon Jun 27 12:38:16 2005 From: terje at senikk.com (Terje Pedersen) Date: Thu Jun 30 17:20:40 2005 Subject: [Alexandria-list] Alexandria just crashed Message-ID: ----------------------- Alexandria just crashed ----------------------- Timestamp: man jun 27 18:25:14 CEST 2005 Message: wrong number of arguments (1 for 2) Backtrace: /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:528:in `move' /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:528:in `restore_preferences' /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:81:in `initialize' /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:40:in `new' /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:40:in `main' /usr/lib/ruby/site_ruby/1.8/alexandria.rb:60:in `main' /usr/bin/alexandria:10 Release: 0.5.1 Uname -a: Linux consalez 2.6.10-gentoo-r7 #1 Sat Feb 26 21:44:17 CET 2005 x86_64 AMD Athlon(tm) 64 Processor 3500+ AuthenticAMD GNU/Linux -- Terje :-) Skype: callto://senikk - senikk.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1603 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20050627/cccee79c/attachment.bin