Re: [CODE4LIB] disk doubler anyone?

2015-05-14 Thread Benjamin Florin
Supposedly the Linux package MacUtil (
http://www.rpmfind.net/linux/RPM/opensuse/11.1/ppc/ppc/macutils-2.0b3-153.22.ppc.html)
can unpack DiskDoubler files. I haven't used it.

Ben

On Thu, May 14, 2015 at 8:09 PM, Miles Fidelman mfidel...@meetinghouse.net
wrote:

 I figure someone here might know how to retrieve a file in an ancient
 format.  Anybody know of a tool that will uncompress a file compressed with
 disk doubler, that doesn't require dredging up an old Mac running OS 9 (or
 trying to emulate one?).

 Thanks very much,

 Miles Fidelman

 --
 In theory, there is no difference between theory and practice.
 In practice, there is.    Yogi Berra



Re: [CODE4LIB] Voting for Code4Lib 2015 Prepared Talks begins today!

2014-11-11 Thread Benjamin Florin
I can only see them after logging in.


On Tue, Nov 11, 2014 at 10:53 AM, Andreas Orphanides akorp...@ncsu.edu
wrote:

 Is anyone else not seeing the titles of the presentations in the
 diebold-a-tron?

 On Tue, Nov 11, 2014 at 10:33 AM, Chris Beer ch...@cbeer.info wrote:

  The Code4Lib 2015 Program Committee is happy to announce that voting
  is now open
  for prepared talks.
 
  To vote, visit http://vote.code4lib.org/election/33, review the
  proposals, and
  assign points to those presentations you would like to see on the program
  this year.
 
  You will need to log in with your code4lib.org account in order to vote.
  If
  you have any issues with your account, please contact Ryan Wick at
  ryanw...@gmail.com.
 
  *Voting will end on Tuesday, November 25, 2014 at 11:59:59 PM PT
 (GMT-8).*
 
  The top 10 proposals are guaranteed a slot at the conference. The Program
  Committee will curate the remainder of the program in an effort to ensure
  diversity in program content and presenters. Community votes will still
  weigh heavily in these decisions.
 
  The final list of presentations will be announced in early- to
  mid-December.
 
  For more information about Code4Lib 2015, visit
  http://code4lib.org/conference/2015/.
 



Re: [CODE4LIB] LibGuides v2 - Templates and Nav

2014-09-17 Thread Benjamin Florin
 devs hashed it
   out
  and
   will be rolling out a fix to the migration script so that this won't
  happen
   again.
  
   Q2. Three-columns or single column?
Single column. Users scan, and they scan the top and left-most
portions
   of
the screen. Anything in the middle and to the right is lost.
Also,
  three
columns on a responsive site is a little weird, because content is
  pretty
squishy; on tablets you might have pretty narrow left and right
  columns.
   
  
   Actually, when you view a 3-column layout on a smaller screen, it
   scales down to a single column.  If you're seeing otherwise, can you
   send us
  some
   examples in case this is a bug we need to fix?  Thanks. :)  The key
   here, of course, is to have the most important information in the
   left-hand column, and not to have too many boxes on a single page.
  
  
Q5. Has anyone split the main content column into two smaller
 columns?
LG2 makes it crazy easy to change number and percentage-based
widths of the columns. So you could still use the
tabs-across-the-top template
  and
create a little 33% wide left sidebar column and a 66% wide
right
  main
column.
   
  
   One slight caution here:  if you add a second content column to a
  side-nav
   layout and the guide author wants to display nav pills for the
   page's boxes, only the boxes from the first content column will be
   displayed as pills. This is by design, but we've filed it as a known
 issue.
  
  
   
   
-Original Message-
From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On
Behalf
  Of
Blake Galbreath
Sent: Tuesday, September 16, 2014 6:37 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] LibGuides v2 - Templates and Nav
   
I have always thought that left-nav was the UX standard for
  left-to-right
languages (as opposed to Arabic, eg.: http://www.france24.com/ar/).
   
Personally, I feel that right-nav makes more sense across the
board,
  due
to the fact that it is less distance to travel for right-handed
 people.
   But
the convention seems pretty set in stone. I am also not sure how
screen readers deal with right-nav - although i am guessing that
there is no problem there programming wise.
   
Blake
   
On Tue, Sep 16, 2014 at 3:24 PM, Brad Coffield 
bcoffield.libr...@gmail.com
wrote:
   
 Benjamin: Unfortunately we have authors who want *three*
 columns
  plus
 left-nav... LOL

 Margaret: Love the floating nav on that page. It's exciting that
  we'll
 be able to leverage Bootstrap with our guides now. Moving the
 entire library website to libguides CMS is looking more and more
 promising.


 Some more thoughts:

 I'm no UX expert but is it generally agreed that left-nav is the
 much better choice? It seems like it to me. Given current web
 wide conventions etc.

 One big issue to switching to left-nav in v2 is the amount of
 work it's going to take everyone to convert all guides to the new
 layout.
 Which is one of those things that both shouldn't matter (when
 looking at it in a principledness way - that is, Whatever is
 best for the patrons! No matter
 what!) but also does matter (in a practical way - that is, OMG
 we
  are
 all so busy being awesome).

 But part of me, when looking at other people's guides and my
 own, wonders if three columns isn't just a little TOO much for the
 user.
 How is one supposed to scan the page? What's the prioritized
 information? For a couple years now I've been eschewing three
 columns whenever possible. Do others agree that three columns
 can be info
overload?

 Brad

 On Tue, Sep 16, 2014 at 4:32 PM, Benjamin Florin 
 benjamin.flo...@gmail.com
 wrote:

  We've been tinkering with our LibGuides template in
  preparation for an eventual redesign of our site and guides,
 e.g.:
 
  http://libguides.bc.edu/libraries/babst/staff
 
  Some of our guide authors weren't happy with the LibGuides
  side-navigation's single-column limitation, so we made our own
  template, moved {{guide_nav}} off to a left column, and wrote
  our own styles to
 make
  the default top-nav display as left-nav. We've found that a
  50/50
  or
 75/25
  split next to the left nav looks pretty good.
 
  Unfortunately we have authors who want *three* columns plus
   left-nav...
 
  In general the LibGuides templating has felt modern and easy
  to
  work
 with.
 
  Ben
 
 
  On Mon, Sep 15, 2014 at 3:18 PM, Brad Coffield 
  bcoffield.libr...@gmail.com
  wrote:
 
   Hi all,
  
   I'm finally diving into our Libguides v2 migration and I'm
   wondering if anyone would be willing to share their
   experience/choices regarding templating

Re: [CODE4LIB] LibGuides v2 - Templates and Nav

2014-09-16 Thread Benjamin Florin

  So the one thing we really wanted to do was customize the header of a
 guide based on whether it was produced at the health sciences library or at
 the main campus library, to hopefully help students keep track of where
 they are.


Have you tried assigning the Health Sciences guides to their own groups and
adding custom header HTML at the group-level (Admin  Groups 
Header/Footer/Tabs/Boxes)? You can't use the new mustache-based templating
inside the headers, but you can use plain-jane HTML.


On Tue, Sep 16, 2014 at 3:14 PM, Will Martin w...@will-martin.net wrote:

 My impression of the LibGuides v2 template system is that it's decent
 within strict boundaries.  We just launched LibGuides v2 about 6 weeks
 ago.  We took a look at the templates, and opted not to do anything with
 them, because they didn't do what we needed them to.

 Our instance of LibGuides is shared between the main campus library and
 the health sciences library.  Students navigating the system are often
 confused if they accidentally wind up looking at a guide produced for the
 other set of patrons.  So the one thing we really wanted to do was
 customize the header of a guide based on whether it was produced at the
 health sciences library or at the main campus library, to hopefully help
 students keep track of where they are.

 Unfortunately, LibGuides' template system can't do that.  It only applies
 to the content areas of the guide.  Within that area, it affords a great
 degree of flexibility as regards the HTML markup of the guides.  Outside of
 that area, it's useless.

 So we're running with the defaults.  I may revisit those at some point,
 but for now we're reasonably happy with them.

 Oh, and here's a link to the documentation for the template system:

 http://support.springshare.com/libguides/guidetemplates/intro

 It does require you to be logged into your LibApps account, because
 apparently the details of their templating system is a deep, dark secret.

 Will




 On 2014-09-16 10:48, Graham, Jeannie wrote:

 Our library is also just getting ready to delve into LibGuides v2 so
 I'm also interested in hearing what others are doing!



 Thank you,

 -- Jeannie Graham





 Jeannie Graham

 California State University, Chico

 Meriam Library - Library Technology Specialist

 Chico, CA 95929-0295

 jgra...@csuchico.edu

 530-898-4311



 -Original Message-
 From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf
 Of Brad Coffield
 Sent: Monday, September 15, 2014 12:19 PM
 To: CODE4LIB@LISTSERV.ND.EDU
 Subject: [CODE4LIB] LibGuides v2 - Templates and Nav



 Hi all,



 I'm finally diving into our Libguides v2 migration and I'm wondering
 if anyone would be willing to share their experience/choices regarding
 templating. (Or even some code!)



 I'm thinking left-nav is the way to go. Has anyone split the main
 content column into two smaller columns? Done that with a
 column-width-spanning box atop the main content area? Any other neato
 templates ideas?



 We are in the process of building a style guide for all libguides
 authors to use. And also some sort of peer-review process to help
 enforce the style guide. I'm thinking we are going to want to restrict
 all authors to left-nav templates but perhaps the ideal solution would
 be to require left-nav of all but to have a variety of custom left-nav
 templates to choose from.



 Any thoughts are much appreciated!



 Warm regards,



 Brad



 --

 Brad Coffield, MLIS

 Assistant Information and Web Services Librarian Saint Francis University

 814-472-3315

 bcoffi...@francis.edumailto:bcoffi...@francis.edu




Re: [CODE4LIB] [WEB4LIB] Interactive content for digital signage

2014-07-18 Thread Benjamin Florin
We have a touchscreen kiosk cobbled together from a mini-PC, a giant touch
panel, Google Maps, some SVGs, and D3.js. The popular features are (in
order):

* In-building wayfinding (Where's room 312?)
* On-campus wayfinding (Where's the admissions office?)
* Event locations (Where is the RefWorks workshop?)
* Library hours.
* Guided tour-type stuff (Visit our other libraries! Mostly used by
families on admissions visits)
* Computer availability. Our library contains most of the public terminals
on campus, and the kiosk displays which ones are available.
* Local bus routes and times (using TransLoc for route monitoring)

Stuff that doesn't get used:

* About the Librarian
* Book locator.

Ben



On Fri, Jul 18, 2014 at 1:31 PM, Jason Bengtson j.bengtson...@gmail.com
wrote:

 We've been looking at digital signage for some time now. The campus uses a
 CMS for digital signage that's pretty good which we could license (from
 four winds interactive). I've offered to build web content for the signs as
 well, should the CMS be problematic. I second what Michael said; if you're
 already doing web development building on that to produce sign content
 shouldn't be a problem. The campus is using some higher priced NEC units,
 but we're looking at less expensive monitors and NUCs. I like the idea of
 Raspberry Pis, but the CMS uses a windows client, unfortunately. We're
 considering a touchscreen station, too . . . according to the folks who
 manage the CMS the content that's been most popular in the interactive
 forums has, not surprisingly, been maps. Room calendars have come in
 second.

 Best regards,
 *Jason Bengtson, MLIS, MA*

 Head of Library Computing and Information Systems
 Assistant Professor, Graduate College
 Department of Health Sciences Library and Information Management
 University of Oklahoma Health Sciences Center
 405-271-2285, opt. 5
 405-271-3297 (fax)
 jason-bengt...@ouhsc.edu
 http://library.ouhsc.edu
 www.jasonbengtson.com

 NOTICE:
 This e-mail is intended solely for the use of the individual to whom it is
 addressed and may contain information that is privileged, confidential or
 otherwise exempt from disclosure. If the reader of this e-mail is not the
 intended recipient or the employee or agent responsible for delivering the
 message to the intended recipient, you are hereby notified that any
 dissemination, distribution, or copying of this communication is strictly
 prohibited. If you have received this communication in error, please
 immediately notify us by replying to the original message at the listed
 email address. Thank You.
 j.bengtson...@gmail.com


 On Fri, Jul 18, 2014 at 11:58 AM, Michael Schofield mschofi...@nova.edu
 wrote:

  My friend Amanda Goodman (@godaisies on Twitter) is building and
 designing
  a touch kiosk right now. She's been sharing pictures about the design and
  the process. I'd pick her brain.
 
  Also,
 
  At this stage I too would balk about a $30,000 price tag. There are some
  legit reasons [I guess] for the cost of the hardware, etc. - but based on
  how you and other libraries intend to use this it really shouldn't cost
  that much. What you need is a large touch screen with internet access,
 then
  you can essentially do what OSU [and Amanda] are doing and build a
  responsive website for the kiosk. It can be on top of a CMS or pull from
  RSS or JSON feeds to make it painless to update. You might even use a
  framework like jQuery Mobile (which isn't just for small hand screens)
 that
  adds a nice layer of interactive transitions, modals, etc.
 
  I'm x-posting this to code4lib because I think folks might like to weigh
  in. Good topic!
 
  // Michael
  // ns4lib.com
  // @gollydamn
 
 
  -Original Message-
  From: Web technologies in libraries [mailto:web4...@listserv.nd.edu] On
  Behalf Of Thomas Edelblute
  Sent: Friday, July 18, 2014 12:23 PM
  To: web4...@listserv.nd.edu
  Subject: Re: [WEB4LIB] Interactive content for digital signage
 
  When we did a remodel of the library a few years ago, I first looked at a
  server that would feed the content to various digital signs that we could
  change on the fly and pull content from RSS feeds.  But management balked
  at the $30,000 price tag on that.  So we went with a company that
 provides
  large television like monitors that read JPG files of USB drives and are
  turned on and off by a Christmas tree timer.  The company also supports
  these setups with auto-dealerships in the area.
 
  Thomas Edelblute
  Public Access Systems Coordinator
  Anaheim Public Library
 
  -Original Message-
  From: Web technologies in libraries [mailto:web4...@listserv.nd.edu] On
  Behalf Of David S Vose
  Sent: Friday, July 18, 2014 7:36 AM
  To: web4...@listserv.nd.edu
  Subject: [WEB4LIB] Interactive content for digital signage
 
  We will be installing interactive digital signs in our main library this
  fall. One sign will be at our entrance and one will be in the lobby. The
  draft plan is to 

Re: [CODE4LIB] whimsical homepage idea

2012-05-01 Thread Benjamin Florin
Hi Ellen!

How about a just javascript that randomly spits out temperatures
around 70° Fahrenheit? That would cost less and have the knock-on
effect of stifling student dissent.

Ben

On Tue, May 1, 2012 at 6:52 PM, Friscia, Michael
michael.fris...@yale.edu wrote:
 I like the idea. I'd also like to experiment with microphones that can detect 
 the noise level in reading rooms so when a student is looking for a quiet 
 one, they look at the heat map of the reading rooms and avoid the ones that 
 are red and go to the quieter light blue ones...

 ___
 Michael Friscia
 Manager, Digital Library  Programming Services
 Yale University Library
 (203) 432-1856
 
 From: Code for Libraries [CODE4LIB@LISTSERV.ND.EDU] on behalf of Ellen K. 
 Wilson [ewil...@jaguar1.usouthal.edu]
 Sent: Tuesday, May 01, 2012 3:39 PM
 To: CODE4LIB@LISTSERV.ND.EDU
 Subject: [CODE4LIB] whimsical homepage idea

 This is really more of a thought experiment than an actual project, but
 I thought some people might get a kick out of it - maybe someone has
 even done it.

 We are in the process of redesigning our library homepage. During the
 fall semester we had a team of freshmen CIS students do a basic
 usability and design service learning project and we are now
 incorporating as much of their feedback as possible. We'd like to be as
 student-centric as possible.

 This got me thinking about the top two suggestions in the library's
 feedback box - 1) we want a coffee shop and 2) it's too cold/hot in the
 library. I figure I covered number one by throwing in some Javascript on
 the page (*groan*) but I see an opportunity with the second one. We do
 have microclimates within the library, so while it may be hot on 3N,
 chances are good it's freezing on 4S. Given that actually fixing this is
 beyond the library's control, what if we put wireless temperature
 sensors throughout the building and displayed their readings on the
 library homepage?

 So, if one were to attempt this:
 -How would you go about it? (hardware- or software-wise)
 -Could it be done for cheap?
 -Would it be OCLC-approved?

 Best regards,
 Ellen

 DISCLAIMER: The a/c is out in the library (again) and I think the high
 temperatures in my office may be frying my brain.

 --
 Ellen Knowlton Wilson
 Instructional Services Librarian
 Room 250, University Library
 University of South Alabama
 5901 USA Drive North
 Mobile, AL 36688
 (251) 460-6045
 ewil...@jaguar1.usouthal.edu


Re: [CODE4LIB] Composite imaging?

2012-03-12 Thread Benjamin Florin
If the original work is truly copyrighted, than any derivative works
will be in violation of copyright unless they are themselves original,
creative expressions--and even then you aren't in the clear. It
doesn't sound like this would pass.

If it's any consolation, an photograph of an artistic work that is out
of copyright can't be copyrighted in the United States. When US
libraries and museums claim copyright on photos of 100 year-old
paintings they are being disingenuous. It's called copy-fraud.

Other countries--most notably the UK--have different takes on this.

I'm not a lawyer, by the way.

Ben Florin

On Mon, Mar 12, 2012 at 10:51 AM, Matt Amory matt.am...@gmail.com wrote:
 I'm working with a set of images of artworks (images which are common on
 the web for the most part) and I'm wondering if there is a way to layer
 multiple possibly-subject-to-copyright-claim images together into a
 single layered image which would not be subject to any copyright claim.

 Since the GIMP'ed image I would be presenting would be different from any
 of its constituent parts, could I post it without fear of takedown orders?
 Or is this a dubious strategy?

 Thanks for pondering

 --
 Matt Amory
 (917) 771-4157
 matt.am...@gmail.com
 http://www.linkedin.com/pub/matt-amory/8/515/239


Re: [CODE4LIB] Conference size

2012-02-08 Thread Benjamin Florin
For those of us reading about this from home, what was the keynote bomb?

Ben

On Wed, Feb 8, 2012 at 11:35 AM, Patrick Berry pbe...@gmail.com wrote:
 I completely agree that size and character are a complex issues.  The folks
 at Concentra have dealt with these issues before and have helped other
 organizations (JASIG to name the one I'm familiar with), so it's just a
 piece of the puzzle.

 But if we're going to tackle this we can't just say that it's too tough and
 we don't know where to start.  We start at the beginning.

 On Tue, Feb 7, 2012 at 10:40 AM, Cary Gordon listu...@chillco.com wrote:

 I think that conference size and character is a complex issue that
 won't be solved by simply hiring a production company. That part comes
 later.

 Cary

 On Tue, Feb 7, 2012 at 10:17 AM, John Fereira ja...@cornell.edu wrote:
  Hi Patrick,
 
  Yes, Jenn (from Concentra) is awesome.
 
  -Original Message-
  From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of
 Patrick Berry
  Sent: Tuesday, February 07, 2012 1:00 PM
  To: CODE4LIB@LISTSERV.ND.EDU
  Subject: [CODE4LIB] Conference size
 
  So, the keynote bomb has gone off.  One of the issues is that it's
 really hard to put on a conference. Another conference I used to attend
 used Concentra CMS to run their conferences.
 
  http://www.concentra-cms.com/services.html
 
  I'm just throwing that out there.
 
  Pat



 --
 Cary Gordon
 The Cherry Hill Company
 http://chillco.com



Re: [CODE4LIB] Representing copyright holder in MODS

2011-06-13 Thread Benjamin Florin
The MODS convention is to add an accessCondition containing copyright
information expressed in a more specialized schema. There's an example
at:

  http://www.loc.gov/standards/mods/userguide/accesscondition.html

The word copyright in copyrightDate in originInfo is a bit of a
misdirect in this case, since copyright date is always relevant to the
resource's origin but the identity of the rights holder isn't.

Cheers,
Ben Florin

On Mon, Jun 13, 2011 at 11:46 AM, Mike Taylor m...@indexdata.com wrote:
 So far as I can make out from the element descriptions at
        http://www.loc.gov/standards/mods/userguide/origininfo.html
 and related pages, there seems to be no way to express in MODS who the
 copyright holder of a work is -- which seems strange, as you CAN state
 the copyright date.

 Am I missing something?

 (The publisher element is not the answer here, as it's not at all
 unusual for the copyright to be held by someone other than the
 publisher -- the author, for example.)



Re: [CODE4LIB] What do you wish you had time to learn?

2011-04-27 Thread Benjamin Florin
To those who are interested in transitioning to git from Subversion, I
can recommend the excellent git-svn tool
(http://www.kernel.org/pub/software/scm/git/docs/git-svn.html) that
comes with git.

You can clone (git for checkout) directly from an svn repository:

  git svn clone http://svn.example.com/project/trunk

Version control locally using git, merging any changes from the svn repository:

  git svn rebase

and when you're done, commit the final changes back to the svn repository:

  git svn dcommit

This lets you learn how to work with git locally (branching and
merging like gangbusters and making frequent commits) without fear of
messing up your svn repository in any conversion process. It's a very
smooth intro to the DVCS way of working.

One caveat--git-svn only works well when svn development is done
entirely on trunk instead of in branches. Since the main reason people
switch to git is for easier branching, this is usually not a problem.

And thanks for the recipes. It looks like the key to baconless brussel
sprouts is to a) roast them, or b) make them sweet like candy.

Thanks,
Ben


Re: [CODE4LIB] What do you wish you had time to learn?

2011-04-26 Thread Benjamin Florin
* neo4j
* All the math I forgot since college (linear algebra, graph theory, etc)
* RDA
* PostGIS
* Augmented reality
* Cleaner, more stylish Javascript than the derpy stuff I currently write.
* A brussel sprout recipe my wife will eat that doesn't involve bacon.

Ben


Re: [CODE4LIB] Auto-suggest and the id.loc.gov LCSH web service

2009-12-07 Thread Benjamin Florin
Delaying the autosuggest until three or four characters have been
entered should save some time.

Unfortunately, the search results aren't very digestible. The query
term is matched anywhere in the heading, and only 30 results are
returned per page. So, for example, the first page of a search for
doc*:

  http://id.loc.gov/authorities/search/?q=doc*

doesn't return any results that actually start with doc ( Act of
state doctrine, Adventists--Doctrines,
Agriculture--Documentation, etc).

Ben

On Mon, Dec 7, 2009 at 11:21 AM, Doug Chestnut dougchest...@gmail.com wrote:
 mod_cache might help, assuming that performance gets better as your
 query string grows.

 --Doug

 On Mon, Dec 7, 2009 at 11:14 AM, Ethan Gruber ewg4x...@gmail.com wrote:
 It doesn't seem very efficient.  It is taking me at least 30 seconds to load
 a page of 'a*' in http://id.loc.gov/authorities/search/

 On Mon, Dec 7, 2009 at 11:05 AM, Houghton,Andrew hough...@oclc.org wrote:

  From: Code for Libraries [mailto:code4...@listserv.nd.edu] On Behalf Of
  Winona Salesky
  Sent: Monday, December 07, 2009 11:00 AM
  To: CODE4LIB@LISTSERV.ND.EDU
  Subject: Re: [CODE4LIB] Auto-suggest and the id.loc.gov LCSH web
  service
 
  Quoting Ethan Gruber ewg4x...@gmail.com:
 
   I have a need to integrate the LCSH terms into a web form that uses
   auto-suggest to control the vocabulary.  Is this technically possible
  with
   the id.loc.gov service?

 Why can't you just add a * to the end of the data in your search form
 and send the request to the id.loc.gov search, per:

 http://id.loc.gov/authorities/techcenter/searching.html

 then parse the response?


 Andy.






-- 
Benjamin Florin
Technology Assistant for Blended Education
Simmons College GSLIS
617-521-2842
benjamin.flo...@simmons.edu


Re: [CODE4LIB] lingua::stem::snowball

2009-10-12 Thread Benjamin Florin
It's been a while since I perled, so this might not be the most
idiomatic solution, but you could stem the entire words has list once
and create a hash of all the sums (%words_stems), then run the list of
idea words (@ideas), checking only the desired stems:

use strict;
use Lingua::Stem::Snowball;
my @ideas  = ('books', 'otters', 'library');
my %words = ( 'books'= 5,
 'library'   = 6,
 'librarianship' = 5,
 'librarians'= 3,
 'librarian' = 3,
 'book'  = 3,
 'museums'   = 2
   );
my %words_stems = {};
my $stemmer   = Lingua::Stem::Snowball-new( lang = 'en' );

foreach my $word (keys %words)
{
$words_stems{$stemmer-stem($word)} += $words{$word};
}

foreach my $idea (@ideas)
{
my $idea_stem = $stemmer-stem( $idea );
print $idea ($idea_stem)\n;
print $words_stems{$idea_stem}.\n;
}

The first foreach loop is executed once per word in %words, while the
second foreach loop gets run once per item in @ideas. So 150,000 words
with 1,000 ideas would only call the stem function (which is
presumably where all the cost is) only 150,000 times.

If you plan on doing something similar later, you could save that hash
to disk, btw.

Ben

-- 
Benjamin Florin
Technology Assistant for Blended Education
Simmons College GSLIS
617-521-2842
benjamin.flo...@simmons.edu