Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-05-2013, 12:42 PM   #136
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
OK, I looked at a Good PI and a problem PI
Code:
version                 = PLUGIN_VERSION_TUPLE
is in the problem PI
theducks is offline   Reply With Quote
Old 08-05-2013, 12:48 PM   #137
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by kovidgoyal View Post
The deprecated plugins issue will be fixed in the next build (it is unrelated to the new backend, caused by some other changes I was making to the plugin infrastructure).
TNX

We are good bug finders
theducks is offline   Reply With Quote
Advert
Old 08-05-2013, 12:55 PM   #138
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
@BR: Preferences->Look & Feel->Cover Grid
The image size settings baffled me - I don't think of images on the screen in terms of units of length, I think of them in pixels.

However, I think this would work better - display a sample cover in the default size and allow it to be resized on percentage basis - maybe with a slider widget.

Quote:
Originally Posted by kovidgoyal View Post
and if you want to select books, and make it visually obvious that they are selected use a search or a temporary virtual library. You can switch searching to highlight mode if you dont want the view restricted (though this only wrks in the book list, not the cover grid).
I don't think I am the only person who 'forgets' the search highlight button, maybe it needs a different icon

Temp Marker works fine with the highlight button in the Book List - just that I never wanted to use it there. In the Book List I always have it 'blue bars with red slash'.

Maybe you can devise a way of making 'blue bars only' work in CoverGrid View, I suspect I would use it there - I appreciate that might be counter-intuitive, but...

BR
BetterRed is offline   Reply With Quote
Old 08-05-2013, 01:05 PM   #139
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by BetterRed View Post
The image size settings baffled me - I don't think of images on the screen in terms of units of length, I think of them in pixels.
Well you should start thinking of them in units of length, that way if you move your settings to a computer with a monitor with different pixel density, they will still appear the same size.

Quote:
However, I think this would work better - display a sample cover in the default size and allow it to be resized on percentage basis - maybe with a slider widget.
Sure, but that's also a lot more effort for a control that is not going to be used very often.

Search highlighting will work in the grid view as well, once I get around to it.
kovidgoyal is offline   Reply With Quote
Old 08-05-2013, 02:00 PM   #140
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by kovidgoyal View Post
@Krazykiwi: Never mind, I think I know what the problem is. It occurs if you try to merge two books that both have the same tag. Fix will be in the next build.
I had the same problem, I just couldn't reproduce it with any arbitrary pair of books. I was able to merge most books [that I tried], but a few produced similar error message. I was waiting with a bug report until I can reproduce steps to cause the bug.
kacir is offline   Reply With Quote
Advert
Old 08-05-2013, 02:10 PM   #141
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Maybe something like a aspect ratio (4/3 etc.) can be a nice feature in the setup of cover sizes in the Grid view. A given width or hight calculate the rest if selected.
Divingduck is offline   Reply With Quote
Old 08-05-2013, 02:10 PM   #142
Krazykiwi
Zealot
Krazykiwi ought to be getting tired of karma fortunes by now.Krazykiwi ought to be getting tired of karma fortunes by now.Krazykiwi ought to be getting tired of karma fortunes by now.Krazykiwi ought to be getting tired of karma fortunes by now.Krazykiwi ought to be getting tired of karma fortunes by now.Krazykiwi ought to be getting tired of karma fortunes by now.Krazykiwi ought to be getting tired of karma fortunes by now.Krazykiwi ought to be getting tired of karma fortunes by now.Krazykiwi ought to be getting tired of karma fortunes by now.Krazykiwi ought to be getting tired of karma fortunes by now.Krazykiwi ought to be getting tired of karma fortunes by now.
 
Posts: 137
Karma: 2156958
Join Date: Jan 2013
Device: Too many random androids to list
Quote:
Originally Posted by kovidgoyal View Post
@Krazykiwi: Never mind, I think I know what the problem is. It occurs if you try to merge two books that both have the same tag. Fix will be in the next build.
Ahh, that does make perfect sense. Dupes were in a new batch of books I imported, which got autotagged "CLEANME" on import. And as mentioned above, zapping the tags makes them merge quite happily.

And Kacir: it did look like it was any arbitrary pair for me, since.... well all the dupes I had to toy with triggered it.

Thanks again for all your fine work

Last edited by Krazykiwi; 08-05-2013 at 02:15 PM.
Krazykiwi is offline   Reply With Quote
Old 08-05-2013, 02:44 PM   #143
scissors
Addict
scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.
 
Posts: 241
Karma: 1001369
Join Date: Sep 2010
Device: prs300, kindle keyboard 3g
Hi

thought i'd give it a try. All seemed fine until just.

After converting and AZW to Mobi and then trying to delete the original file i keep getting

calibre, version 0.9.42
ERROR: Unhandled exception: <b>LockingError</b>:can't downgrade SHLock object

Traceback (most recent call last):
File "site-packages\calibre\gui2\library\models.py", line 932, in data
File "site-packages\calibre\gui2\library\models.py", line 685, in func
File "site-packages\calibre\db\cache.py", line 54, in ans
File "site-packages\calibre\db\locking.py", line 208, in __enter__
File "site-packages\calibre\db\locking.py", line 79, in acquire
File "site-packages\calibre\db\locking.py", line 149, in _acquire_shared
LockingError: can't downgrade SHLock object

After setting new dbase to false and a restart the file deletes fine.
scissors is offline   Reply With Quote
Old 08-05-2013, 02:49 PM   #144
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Well you should start thinking of them in units of length, that way if you move your settings to a computer with a monitor with different pixel density, they will still appear the same size.
No need for me to wait to get another computer I have three monitors available on the one I am using. If I were to run Calibre on the 22" Lenovo I would want to see more covers than I would on the 30" Dell - the Lenovo is 3840x2400 pixels, the Dell is 2560x1600pixels. If I run Calibre on the 24" Samsung at 1920x1200 then I'd probably want to see about the same as I would on the Dell - the Samsung normally being a lot closer than is the Dell.

Viewing comfort is at least as much a function of pixel density, the dot pitch and the distance between the eye and screen, as it is on screen size - I would argue more so.

I used an image editor to work it out, easier than doing the sums in my head - now I have a 12x5 grid on the 24" 1920x1200 Samsung. Next time I run Calibre on the other monitors I'll work out a good size for them and write it down - somewhere

I worked on hi-end imaging system for a decade or so, back then we only thought in units of length when we printed images for situation room briefings. AFAIK camera's and scanners still work in pixels - even the ones on fiddle fones - never mind.

BR

Last edited by BetterRed; 08-05-2013 at 02:54 PM.
BetterRed is offline   Reply With Quote
Old 08-05-2013, 02:57 PM   #145
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
BR
I thought I was bad
2@ 1920x1080 (run at 1440x900 because of tired eyes)
and a old 1024x768 above (for notes/reference matl)
theducks is offline   Reply With Quote
Old 08-05-2013, 03:00 PM   #146
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by BetterRed View Post
Viewing comfort is at least as much a function of pixel density, the dot pitch and the distance between the eye and screen, as it is on screen size - I would argue more so.
I for one look at all my different monitors at the same distance, and I like to adjust things so that they are equally legible at that distance on all monitors, regardless of their resolution.
kovidgoyal is offline   Reply With Quote
Old 08-05-2013, 03:03 PM   #147
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@scissors: That is the same error as reported here:
https://bugs.launchpad.net/calibre/+bug/1208470

It is being investigated, unfortunately, I am handicapped by not being able to reproduce it.
kovidgoyal is offline   Reply With Quote
Old 08-05-2013, 03:20 PM   #148
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
BR
I thought I was bad
2@ 1920x1080 (run at 1440x900 because of tired eyes)
and a old 1024x768 above (for notes/reference matl)
The lenovo is a legacy of a former life, when I had a salary to sacrifice, a forgiving wife, and access to the bulk buy corporate price
BetterRed is offline   Reply With Quote
Old 08-05-2013, 03:25 PM   #149
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by kovidgoyal View Post
You should not need to do anything at all. It may happen that some operations, typically updating a field in the database for many books, one at a time, becomes slower, in which case you should re-write it to use the new api. Other than that, you should not need to do anything, and that only if you or your users notice some slowness. Basically, where you had:

Code:
for book_id in book_ids:
   db.set_something(book_id, value)
replace it with

Code:
db.new_api.set_field(something, {book_id:value for book_id in book_ids})
Is this example the only recommended refactoring for plugins found so far?

Will it now be safe for PIs to skip self.gui.proceed_question() when updating the DB? (When using new DB, of course.)

Speaking of which, what's the best way for PIs to detect when the new DB is active?

Finally, a suggestion: I would change the name db.new_api (or make an alias for it) that doesn't have 'new' in it. db.api2 maybe. I can tell you from experience that having the word 'new' in your code after it's become old confuses people.
Someday :
"So new_api is the new API?"
"No, new_api is the old API. api3 is the new API."
JimmXinu is offline   Reply With Quote
Old 08-05-2013, 03:33 PM   #150
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, that is the only recommendation, so far.

proceed_question() was never only about thread safety, since the updates all happen in the gui thread anyway. So you still need to use it. Think about what happens if the user has the edit metadata dialog open for a book that you are updating in the background, either the users' changes or yours would get obliterated.

Considering that this new api took almost two years to develop, I dont think I will ever do this again But, if I do, I'll deal with any resulting confusion.

If you wish to check for the new api, just do hasattr(db, 'new_api')
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MTP support: Testers needed kovidgoyal Calibre 68 09-21-2012 03:54 AM
shared backend database? perler Calibre 4 01-26-2012 05:37 AM
Windows testers needed kovidgoyal Calibre 51 11-21-2010 05:58 AM
OS X testers needed kovidgoyal Calibre 23 11-18-2010 12:11 PM
calibre ereader output testers needed user_none Other formats 24 05-11-2009 12:00 AM


All times are GMT -4. The time now is 04:36 PM.


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