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

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-24-2011, 02:21 PM   #1
technomom
Enthusiast
technomom began at the beginning.
 
technomom's Avatar
 
Posts: 33
Karma: 10
Join Date: Sep 2005
Location: Decatur, GA, US
Device: Nook, iPad, Samsung Galaxy Note II
Question Where do YOU store the code that goes with technical books?

I have to think this topic has come up before, but I searched in this topic (which seemed the logical place) and couldn't find anything about it, so I'm asking. Please forgive me and just redirect me if it has already been discussed ad nauseum. My normal searching skills just don't seem to work so very well here.

Many technical books come with samples of the code being discussed. If you buy the physical book, you get the code on a physical disk. In our household, that has always resulted in me getting the book off the shelf, finding the little plastic pouch where the disk should be empty, then asking my husband and daughter what they did with it. The ensuing goose hunt often ends up finding a scratched and useless disk somewhere hours later (out comes the toothpaste!), or never finding the disk at all.

So - happiness! eBooks come, instead, with a the code included as an accompanying download, right? And since I store my eBooks in Calibre, and I don't lose my eBooks, I'm not going to lose the code either.

But - Calibre stores the eBook. Where am I going to put the code to have it with the book, never separated?

Can I place the code archive in the book's Calibre folder without causing some terrible error? I normally keep my fingers OUT of Calibre's file structure completely, fearing disaster!

Advice? Tested solutions? Pretty please?

Thank you!
Cyn
technomom is offline   Reply With Quote
Old 03-24-2011, 02:34 PM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by technomom View Post
Can I place the code archive in the book's Calibre folder without causing some terrible error?
Yes - you can do this outside Calibre, although a library check will warn you about the files.

Calibre will also let you add any file format/file extension you want and will track, but ignore it (if it's not a recognized ebook format). Put your code into a zip file having the extension .zip.code and Calibre will see it as a .code file and ignore it, but list it as a stored format of type CODE.

Last edited by Starson17; 03-24-2011 at 02:37 PM.
Starson17 is offline   Reply With Quote
Old 03-24-2011, 02:54 PM   #3
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,013
Karma: 777817
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
I tend to use a RAR file instead of a ZIP file as that does not conflict with Calibre's use of ZIP files for HTML documents.

I have also used .iso files where the relevant files come on a CD by just making an image of the CD and storing that in Calibre. If I later need to us the .iso file I can use a utility such as Daemon Tools to allow me to mount the image and get at the contained files.
itimpi is offline   Reply With Quote
Old 03-24-2011, 03:25 PM   #4
technomom
Enthusiast
technomom began at the beginning.
 
technomom's Avatar
 
Posts: 33
Karma: 10
Join Date: Sep 2005
Location: Decatur, GA, US
Device: Nook, iPad, Samsung Galaxy Note II
Smile Thank you!

I was considering using an .ISO file. I think Calibre can also handle .RAR files for HTML documents, although that isn't its default.

I appreciate both answers!
technomom is offline   Reply With Quote
Old 03-24-2011, 04:22 PM   #5
theducks
Grand Sorcerer
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: 14,112
Karma: 5468860
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Are we talking code: as in Text source LISTING?
Why not add an Appendix or 2 or 3...
to your book?
theducks is offline   Reply With Quote
Old 03-24-2011, 04:43 PM   #6
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by technomom View Post
I was considering using an .ISO file.
That will work fine. Just drag the ISO into calibre and merge the new record, or drag it into the edit metadata screen for the book.

Quote:
I think Calibre can also handle .RAR files for HTML documents, although that isn't its default.
Calibre will open zip and rar compressed files when you add them. If it finds a single ebook format it recognizes inside, it will add that book as though it was not provided in compressed form. HTML will be put inside a zip. If you go behind the scenes, into the library record where there is an existing rar or zip, and replace the contents of the compressed file with any other single format inside the rar or zip, then try to view it, Calibre also seems to gracefully handle it, although it's not recommended.

In your case, I'd just stick with the ISO format.
Starson17 is offline   Reply With Quote
Old 03-24-2011, 04:44 PM   #7
technomom
Enthusiast
technomom began at the beginning.
 
technomom's Avatar
 
Posts: 33
Karma: 10
Join Date: Sep 2005
Location: Decatur, GA, US
Device: Nook, iPad, Samsung Galaxy Note II
That's a good idea when they are just text source listings. Sometimes they aren't. That's a very good idea, though, for the eBooks I can edit. I don't know how to deal with appendices in Calibre otherwise.
technomom is offline   Reply With Quote
Old 03-24-2011, 04:46 PM   #8
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by technomom View Post
That's a good idea when they are just text source listings. Sometimes they aren't. That's a very good idea, though, for the eBooks I can edit. I don't know how to deal with appendices in Calibre otherwise.
Code listings in text form may/will suffer if you convert them. You may want to convert the book, but not the code.
Starson17 is offline   Reply With Quote
Old 03-25-2011, 03:00 PM   #9
technomom
Enthusiast
technomom began at the beginning.
 
technomom's Avatar
 
Posts: 33
Karma: 10
Join Date: Sep 2005
Location: Decatur, GA, US
Device: Nook, iPad, Samsung Galaxy Note II
Thank you, Starson17. I certainly don't want to mess up the code and make it useless.
technomom is offline   Reply With Quote
Old 03-25-2011, 03:31 PM   #10
theducks
Grand Sorcerer
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: 14,112
Karma: 5468860
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Starson17 View Post
Code listings in text form may/will suffer if you convert them. You may want to convert the book, but not the code.
Would wrapping the code in a <pre> tag stop the mangle?
theducks is offline   Reply With Quote
Old 03-25-2011, 03:38 PM   #11
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by theducks View Post
Would wrapping the code in a <pre> tag stop the mangle?
It should. (You wouldn't have asked, I suspect, if you didn't already know that ). I haven't done it enough to know for sure if there are any cases where it might fail. I know, however, if I had code attachments, I'd prefer they never went through any conversion stage at all. I'd probably keep the .iso format for use, and add the <pre> tags if I also wanted to be able to browse the code on a handheld.
Starson17 is offline   Reply With Quote
Reply

Tags
code, folders, library management, technical books

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ebook for technical books ziNde Which one should I buy? 13 02-21-2010 08:52 AM
technical books in epub wang960 ePub 3 10-07-2009 06:13 PM
20% Discount Code for 1 book at Sony store DojoPat Deals, Freebies, and Resources (No Self-Promotion) 1 09-03-2008 03:58 PM
Best E-Reader for Technical Books rndinit0 Which one should I buy? 6 06-10-2008 07:07 PM
Error-code: 3-007 in connect store diabloNL Sony Reader 9 01-18-2007 09:49 AM


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


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