<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>sacha chua :: enterprise 2.0 consultant, storyteller, geek &#187; library</title>
	<atom:link href="http://sachachua.com/wp/category/library/feed/" rel="self" type="application/rss+xml" />
	<link>http://sachachua.com/wp</link>
	<description>I help people connect through blogs, wikis, other Web 2.0 tools. I'm also writing a book about Emacs.</description>
	<pubDate>Fri, 21 Nov 2008 21:28:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Ruby code to quickly convert titles to ISBNs</title>
		<link>http://sachachua.com/wp/2008/07/10/ruby-code-to-quickly-convert-titles-to-isbns/</link>
		<comments>http://sachachua.com/wp/2008/07/10/ruby-code-to-quickly-convert-titles-to-isbns/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 02:19:33 +0000</pubDate>
		<dc:creator>Sacha Chua</dc:creator>
		
		<category><![CDATA[book]]></category>

		<category><![CDATA[library]]></category>

		<category><![CDATA[reading]]></category>

		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sachachua.com/wp/2008/07/10/ruby-code-to-quickly-convert-titles-to-isbns/</guid>
		<description><![CDATA[I love the Toronto Public Library system. I can&#039;t say that enough. I particularly love how I can go on a reading spree, place holds on a gazillion books, and have them delivered to the library branch that&#039;s about three blocks away from the house.
Ideally, of course, these books would arrive suitably spaced apart so [...]]]></description>
			<content:encoded><![CDATA[<p>I love the Toronto Public Library system. I can&#039;t say that enough. I particularly love how I can go on a reading spree, place holds on a gazillion books, and have them delivered to the library branch that&#039;s about three blocks away from the house.</p>
<p>Ideally, of course, these books would arrive suitably spaced apart so that a new batch arrives just as I&#039;ve finished another. This happens when I request popular books. Most of the time, though, the books that I want to read fall in the Long Tail&#8211;obscure titles, books that have fallen off the New York Times bestseller lists, and the occasional random find.</p>
<p>All of these books tend to descend on the unsuspecting library branch at the same time.</p>
<p>There were 27 books waiting for me earlier. The librarian thanked me for clearing the shelf. J- greatly enjoyed piling them into the shopping cart we had the foresight to bring. Yes, I&#039;ve got presentations to prepare and things to do&#8211;but reading is fun, and I&#039;m somehow going to find time to read all those books before my three-week loan period is up. I&#039;ll probably be able to renew them, but hey, might as well try.</p>
<p>So I decided I might as well try tracking them on <a href="http://www.librarything.com/catalog/sachachua">LibraryThing</a>. Instead of typing in all the details manually, I grabbed the list of titles from my account on <a href="http://libraryelf.com">LibraryElf</a> (good reminder system for books), used <a href="http://isbndb.com/">ISBNdb</a> to convert the titles into ISBNs (best guess), and imported the list of ISBNs into LibraryThing. Now my profile lists 163 books&#8211;a small fraction of the books that have passed through my hands, but it&#039;s better than nothing. Someday I might even get myself a barcode scanner so that I can just pick up the ISBNs from the book jackets.</p>
<p>Anyway, I promised the Ruby code I&#039;d quickly written to convert the titles to ISBNs:</p>
</p>
<pre>require 'net/http'
require 'CGI'
require 'open-uri'
require 'rexml/document' 

access_key = 'YOURACCESSKEYHERE'
while (s = gets)
  s.chomp!
  url = &quot;http://isbndb.com/api/books.xml?access_key=&quot; + access_key + &quot;&amp;index1=title&amp;value1=&quot; + CGI::escape(s)
  xml = REXML::Document.new(open(url).read)
  if (xml.elements[&quot;ISBNdb/BookList/BookData&quot;])
    puts xml.elements[&quot;ISBNdb/BookList/BookData&quot;].attributes[&quot;isbn&quot;]
  end
end</pre>
<p>Takes titles as standard input, prints out ISBNs. Enjoy!</p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:8ccb5b36-1157-4aa3-8e2c-cdac22ae4da5" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/isbn" rel="tag">isbn</a>,<a href="http://technorati.com/tags/ruby" rel="tag">ruby</a>,<a href="http://technorati.com/tags/librarything" rel="tag">librarything</a>,<a href="http://technorati.com/tags/isbndb" rel="tag">isbndb</a>,<a href="http://technorati.com/tags/books" rel="tag">books</a>,<a href="http://technorati.com/tags/book" rel="tag">book</a>,<a href="http://technorati.com/tags/reading" rel="tag">reading</a></div>

<!-- start wp-tags-to-technorati 0.95 -->

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://sachachua.com/wp/2008/07/10/ruby-code-to-quickly-convert-titles-to-isbns/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Library Elf is awesome</title>
		<link>http://sachachua.com/wp/2008/02/03/library-elf-is-awesome/</link>
		<comments>http://sachachua.com/wp/2008/02/03/library-elf-is-awesome/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 16:06:19 +0000</pubDate>
		<dc:creator>Sacha Chua</dc:creator>
		
		<category><![CDATA[books]]></category>

		<category><![CDATA[library]]></category>

		<category><![CDATA[reading]]></category>

		<guid isPermaLink="false">http://sachachua.com/wp/2008/02/03/library-elf-is-awesome/</guid>
		<description><![CDATA[ 
When I blogged about my totally small-school library reminder script, Claudine recommended Library Elf, which helps people manage their library loans. I hopped over and set weekly reminders to go out on Sunday, just before my Monday book runs. I just got my first reminder e-mail from them, and I am impressed. C&#039;mon. Look [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sachachua.com/wp/wp-content/uploads/2008/02/image.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="184" alt="image" src="http://sachachua.com/wp/wp-content/uploads/2008/02/image-thumb.png" width="334" border="0" /></a> </p>
<p>When I blogged about my totally small-school <a href="http://sachachua.com/wp/2008/01/27/library-book-reminder-script-perl-geeking-required">library reminder script</a>, Claudine recommended <a href="http://libraryelf.com/">Library Elf</a>, which helps people manage their library loans. I hopped over and set weekly reminders to go out on Sunday, just before my Monday book runs. I just got my first reminder e-mail from them, and I am <em>impressed.</em> C&#039;mon. Look at that screenshot. It tells me when books are due and when my holds expire. If I hover over the links, I can see which books they are. The lists of holds ready for pickup and books that are checked out are sorted by date, which makes perfect sense. I can add W-&#039;s library card and track his books as well. =)</p>
<p>Awesome awesome awesome.</p>

<!-- start wp-tags-to-technorati 0.95 -->

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://sachachua.com/wp/2008/02/03/library-elf-is-awesome/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Library book reminder script - Perl geeking required</title>
		<link>http://sachachua.com/wp/2008/01/27/library-book-reminder-script-perl-geeking-required/</link>
		<comments>http://sachachua.com/wp/2008/01/27/library-book-reminder-script-perl-geeking-required/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 06:17:48 +0000</pubDate>
		<dc:creator>Sacha Chua</dc:creator>
		
		<category><![CDATA[library]]></category>

		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://sachachua.com/wp/2008/01/27/library-book-reminder-script-perl-geeking-required/</guid>
		<description><![CDATA[W- and I borrow lots of books from the library. This script helps keep order in the house by reminding us when either of us have books that are due. I&#039;ve removed our information from it and have made no efforts to make it user-friendly. Perl geeking required.
opac-reminder.txt
(It&#039;s really a .pl. Can&#039;t be bothered to [...]]]></description>
			<content:encoded><![CDATA[<p>W- and I borrow lots of books from the library. This script helps keep order in the house by reminding us when either of us have books that are due. I&#039;ve removed our information from it and have made no efforts to make it user-friendly. Perl geeking required.</p>
<p><a href="http://sachachua.com/notebook/proj/opac-reminder.txt">opac-reminder.txt</a></p>
<p>(It&#039;s really a .pl. Can&#039;t be bothered to mess around with forcing content type at 1:10 AM&#8230;)</p>
<p>Here&#039;s the one that generates the RSS file that&#039;s pulled into the right sidebar of my blog:</p>
<p><a href="http://sachachua.com/notebook/proj/opac2rss.txt">opac2rss.txt</a></p>
<p>Enjoy!</p>

<!-- start wp-tags-to-technorati 0.95 -->

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://sachachua.com/wp/2008/01/27/library-book-reminder-script-perl-geeking-required/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Bookmarklet for the Toronto Public Library</title>
		<link>http://sachachua.com/wp/2006/08/03/bookmarklet-for-the-toronto-public-library/</link>
		<comments>http://sachachua.com/wp/2006/08/03/bookmarklet-for-the-toronto-public-library/#comments</comments>
		<pubDate>Thu, 03 Aug 2006 12:18:00 +0000</pubDate>
		<dc:creator>Sacha Chua</dc:creator>
		
		<category><![CDATA[bookmarklet]]></category>

		<category><![CDATA[firefox]]></category>

		<category><![CDATA[library]]></category>

		<guid isPermaLink="false">http://sachachua.com/notebook/wiki/2006.08.03.php#anchor-1</guid>
		<description><![CDATA[<p>Thanks to <a href="http://uc.org/simon">Simon Ditner</a> for this totally cool bookmarklet!</p>

<blockquote>
Did Dan mention the bookmarklet creator compatible with the TPL? This will suck up ISBN numbers on a page (i.e. Amazon), and search the TPL catalog:


<p><a href="javascript:var%20re=/([/-]&#124;is[bs]n=)(d{7,9}[dX])/i;if(re.test(location.href)==true){var%20isbn=RegExp.$2;void(win=window.open('<a href="http://hip.tpl.toronto.on.ca">http://hip.tpl.toronto.on.ca</a>'+'/ipac20/ipac.jsp?index=ISBN&#038;term='+isbn,'LibraryLookup','scrollbars=1,resizable=1,location=1,width=575,height=500'))}">Library Lookup</a> bookmarklet</p>


<p>Created from:
<a href="http://weblog.infoworld.com/udell/stories/2002/12/11/librarylookupGenerator.html">http://weblog.infoworld.com/udell/stories/2002/12/11/librarylookupGenerator.html</a>
</blockquote></p>

<p>(Awwww, he reads my blog! ^_^)</p>

<p>On Technorati: <a href="http://www.technorati.com/tag/library" rel="tag">library</a>, <a href="http://www.technorati.com/tag/bookmarklet" rel="tag">bookmarklet</a>, <a href="http://www.technorati.com/tag/firefox" rel="tag">firefox</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://uc.org/simon">Simon Ditner</a> for this totally cool bookmarklet!</p>

<blockquote>
Did Dan mention the bookmarklet creator compatible with the TPL? This will suck up ISBN numbers on a page (i.e. Amazon), and search the TPL catalog:


<p><a href="javascript:var%20re=/([/-]|is[bs]n=)(d{7,9}[dX])/i;if(re.test(location.href)==true){var%20isbn=RegExp.$2;void(win=window.open('<a href="http://hip.tpl.toronto.on.ca">http://hip.tpl.toronto.on.ca</a>'+'/ipac20/ipac.jsp?index=ISBN&term='+isbn,'LibraryLookup','scrollbars=1,resizable=1,location=1,width=575,height=500'))}">Library Lookup</a> bookmarklet</p>


<p>Created from:
<a href="http://weblog.infoworld.com/udell/stories/2002/12/11/librarylookupGenerator.html">http://weblog.infoworld.com/udell/stories/2002/12/11/librarylookupGenerator.html</a>
</blockquote></p>

<p>(Awwww, he reads my blog! ^_^)</p>

<p>On Technorati: <a href="http://www.technorati.com/tag/library" rel="tag">library</a>, <a href="http://www.technorati.com/tag/bookmarklet" rel="tag">bookmarklet</a>, <a href="http://www.technorati.com/tag/firefox" rel="tag">firefox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sachachua.com/wp/2006/08/03/bookmarklet-for-the-toronto-public-library/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
