Re: [CODE4LIB] CODE4LIB Digest - 18 Dec 2011 to 19 Dec 2011 (#2011-310)

2011-12-20 Thread Stern, Randall
I too am willing to help and serve on the committee.

- Randy Stern
Manager of Systems Development
Office for Information Systems, Harvard Library

--

Date:Mon, 19 Dec 2011 14:08:22 +
From:Friscia, Michael michael.fris...@yale.edu
Subject: Re: Subject: Re: NEcode4lib?

I guess if we can nail down a list of people willing to help plan so we can get 
past the three basics, planning committee list, when and where this will 
happen. 

So to get the ball rolling, please respond to say if you are willing to help 
plan and can commit to at least two hours a week leading up and effectively be 
on the planning committee. If you'd like to help plan but don't want to be on 
the committee, respond saying that. 

I'll start by saying, I'll help and am willing to serve on the committee.

___
Michael Friscia
Manager, Digital Library  Programming Services 

Yale University Library
(203) 432-1856


[CODE4LIB] math problem

2011-12-20 Thread Nate Hill
Here's a brain teaser for the mathematically inclined:

I've got a set of values that I want to scale to the 0-255 range so that I
can adjust colors in my CSS.
Say I have the following data: (6, 457, 97, 200, 122).
I'd like to scale those numbers so that the highest one, 475 = 255.
and the lowest one, 6 = 0.
All of the other numbers, 97, 200, and 122 should be scaled proportionally
to fit within the range.

This way, when I loop through and hit my CSS {background-color:rgb(255,
**data**, 255);} each piece of data will generate a different color and
I'll have the maximum spread in proportionally correct colors from 0-255.

There's probably some math operation to do this, but I know I paid far too
little attention in math class as a kid.  When will I ever need to use
this stuff in *real life*, I asked the teacher with a sneer.

If anyone could point me in the right direction I'd appreciate it.

-- 
Nate Hill
nathanielh...@gmail.com
http://www.natehill.net


Re: [CODE4LIB] math problem

2011-12-20 Thread Tod Olson
Off the cuff, I think you're looking for

f(x) = (x-m) * 255 / (M-m)

where M is the maximum in the input data set, m in the minimum, and x is the 
number in hand.

-Tod


On Dec 20, 2011, at 10:57 AM, Nate Hill wrote:

 Here's a brain teaser for the mathematically inclined:
 
 I've got a set of values that I want to scale to the 0-255 range so that I
 can adjust colors in my CSS.
 Say I have the following data: (6, 457, 97, 200, 122).
 I'd like to scale those numbers so that the highest one, 475 = 255.
 and the lowest one, 6 = 0.
 All of the other numbers, 97, 200, and 122 should be scaled proportionally
 to fit within the range.
 
 This way, when I loop through and hit my CSS {background-color:rgb(255,
 **data**, 255);} each piece of data will generate a different color and
 I'll have the maximum spread in proportionally correct colors from 0-255.
 
 There's probably some math operation to do this, but I know I paid far too
 little attention in math class as a kid.  When will I ever need to use
 this stuff in *real life*, I asked the teacher with a sneer.
 
 If anyone could point me in the right direction I'd appreciate it.
 
 -- 
 Nate Hill
 nathanielh...@gmail.com
 http://www.natehill.net


Re: [CODE4LIB] math problem

2011-12-20 Thread Cary Gordon
(255*x)/457 ?

On Tue, Dec 20, 2011 at 8:57 AM, Nate Hill nathanielh...@gmail.com wrote:
 Here's a brain teaser for the mathematically inclined:

 I've got a set of values that I want to scale to the 0-255 range so that I
 can adjust colors in my CSS.
 Say I have the following data: (6, 457, 97, 200, 122).
 I'd like to scale those numbers so that the highest one, 475 = 255.
 and the lowest one, 6 = 0.
 All of the other numbers, 97, 200, and 122 should be scaled proportionally
 to fit within the range.

 This way, when I loop through and hit my CSS {background-color:rgb(255,
 **data**, 255);} each piece of data will generate a different color and
 I'll have the maximum spread in proportionally correct colors from 0-255.

 There's probably some math operation to do this, but I know I paid far too
 little attention in math class as a kid.  When will I ever need to use
 this stuff in *real life*, I asked the teacher with a sneer.

 If anyone could point me in the right direction I'd appreciate it.

 --
 Nate Hill
 nathanielh...@gmail.com
 http://www.natehill.net



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


Re: [CODE4LIB] math problem

2011-12-20 Thread Cary Gordon
The highest one (at least it's not me) is 457, btw.

On Tue, Dec 20, 2011 at 9:05 AM, Cary Gordon listu...@chillco.com wrote:
 (255*x)/457 ?

 On Tue, Dec 20, 2011 at 8:57 AM, Nate Hill nathanielh...@gmail.com wrote:
 Here's a brain teaser for the mathematically inclined:

 I've got a set of values that I want to scale to the 0-255 range so that I
 can adjust colors in my CSS.
 Say I have the following data: (6, 457, 97, 200, 122).
 I'd like to scale those numbers so that the highest one, 475 = 255.
 and the lowest one, 6 = 0.
 All of the other numbers, 97, 200, and 122 should be scaled proportionally
 to fit within the range.

 This way, when I loop through and hit my CSS {background-color:rgb(255,
 **data**, 255);} each piece of data will generate a different color and
 I'll have the maximum spread in proportionally correct colors from 0-255.

 There's probably some math operation to do this, but I know I paid far too
 little attention in math class as a kid.  When will I ever need to use
 this stuff in *real life*, I asked the teacher with a sneer.

 If anyone could point me in the right direction I'd appreciate it.

 --
 Nate Hill
 nathanielh...@gmail.com
 http://www.natehill.net



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



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


Re: [CODE4LIB] math problem

2011-12-20 Thread Cary Gordon
Okay, maybe it is me.

(255*(x-6))/451

On Tue, Dec 20, 2011 at 9:03 AM, James Stuart james.stu...@gmail.com wrote:
  255 * (point - data.min) / (data.max - data.min)

 On Tue, Dec 20, 2011 at 11:57 AM, Nate Hill nathanielh...@gmail.com wrote:
 Here's a brain teaser for the mathematically inclined:

 I've got a set of values that I want to scale to the 0-255 range so that I
 can adjust colors in my CSS.
 Say I have the following data: (6, 457, 97, 200, 122).
 I'd like to scale those numbers so that the highest one, 475 = 255.
 and the lowest one, 6 = 0.
 All of the other numbers, 97, 200, and 122 should be scaled proportionally
 to fit within the range.

 This way, when I loop through and hit my CSS {background-color:rgb(255,
 **data**, 255);} each piece of data will generate a different color and
 I'll have the maximum spread in proportionally correct colors from 0-255.

 There's probably some math operation to do this, but I know I paid far too
 little attention in math class as a kid.  When will I ever need to use
 this stuff in *real life*, I asked the teacher with a sneer.

 If anyone could point me in the right direction I'd appreciate it.

 --
 Nate Hill
 nathanielh...@gmail.com
 http://www.natehill.net



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


Re: [CODE4LIB] math problem

2011-12-20 Thread Nate Vack
On Tue, Dec 20, 2011 at 10:57 AM, Nate Hill nathanielh...@gmail.com wrote:

 This way, when I loop through and hit my CSS {background-color:rgb(255,
 **data**, 255);} each piece of data will generate a different color and
 I'll have the maximum spread in proportionally correct colors from 0-255.

I'd need to see exactly what you're doing, but I think this method may
leave you somewhat unsatisfied. The magenta-white color scale isn't
gonna be lovely, and there's no sense of absolute scale to this
technique. Maybe that's what you want, but... probably not. You might
want to say Hey, values are supposed to be from 0 to 450; anything
outside this range should be clamped. Or highlighted. Or something.

Anyhow, for perceptually good color scales, this is a great resource:

http://colorbrewer2.org/

... and if you want a good way to generate color ramps in javascript,
the most excellent d3.js library will help you out:

http://mbostock.github.com/d3/

In this case, to create a scale like this, you'd do:

var data = [6, 457, 97, 200, 122];
var color_scale = d3.scale.linear().domain([d3.min(data),
d3.max(data)]).range(['#FF00FF', '#FF']); // we're expecting data
from 6..457, and will output magenta to white...

console.log(color_scale(6)); // rgb(255,0,255);
console.log(color_scale(457)) // rgb(255,255,255);
console.log(color_scale(500)) // rgb(255,279,255); //oops!
color_scale.clamp(true);
console.log(color_scale(500)) // rgb(255,255,255); //better!

-n


Re: [CODE4LIB] math problem

2011-12-20 Thread Nate Hill
Thanks Nate- I'll get this working and check back with these other options.

I've got a top 25 list of fiction titles, and I'm making a set of divs
change color according to how many times they've been checked out.  If it
looks bad and it's a lousy approach no doubt I'll try something else.

On Tue, Dec 20, 2011 at 9:40 AM, Nate Vack njv...@wisc.edu wrote:

 On Tue, Dec 20, 2011 at 10:57 AM, Nate Hill nathanielh...@gmail.com
 wrote:

  This way, when I loop through and hit my CSS {background-color:rgb(255,
  **data**, 255);} each piece of data will generate a different color and
  I'll have the maximum spread in proportionally correct colors from 0-255.

 I'd need to see exactly what you're doing, but I think this method may
 leave you somewhat unsatisfied. The magenta-white color scale isn't
 gonna be lovely, and there's no sense of absolute scale to this
 technique. Maybe that's what you want, but... probably not. You might
 want to say Hey, values are supposed to be from 0 to 450; anything
 outside this range should be clamped. Or highlighted. Or something.

 Anyhow, for perceptually good color scales, this is a great resource:

 http://colorbrewer2.org/

 ... and if you want a good way to generate color ramps in javascript,
 the most excellent d3.js library will help you out:

 http://mbostock.github.com/d3/

 In this case, to create a scale like this, you'd do:

 var data = [6, 457, 97, 200, 122];
 var color_scale = d3.scale.linear().domain([d3.min(data),
 d3.max(data)]).range(['#FF00FF', '#FF']); // we're expecting data
 from 6..457, and will output magenta to white...

 console.log(color_scale(6)); // rgb(255,0,255);
 console.log(color_scale(457)) // rgb(255,255,255);
 console.log(color_scale(500)) // rgb(255,279,255); //oops!
 color_scale.clamp(true);
 console.log(color_scale(500)) // rgb(255,255,255); //better!

 -n




-- 
Nate Hill
nathanielh...@gmail.com
http://www.natehill.net


Re: [CODE4LIB] Obvious answer to registration limitations

2011-12-20 Thread Nordstrom, Kurt
I suggested that all registration for C4L should go through zoia.

If you don't know who zoia is, maybe you should learn more about the C4L 
community before queuing for a conference spot. ;)

-Kurt

From: Code for Libraries [CODE4LIB@LISTSERV.ND.EDU] on behalf of Fleming, 
Declan [dflem...@ucsd.edu]
Sent: Tuesday, December 20, 2011 11:34 AM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] Obvious answer to registration limitations

Hiya - ya know what the cheapest, most inclusive part of code4lib is?  The IRC 
channel.  I know it's old school, and one more thing to learn, but drop in and 
toss an idea around.  I've found it very rewarding.

D


Re: [CODE4LIB] math problem

2011-12-20 Thread Nate Vack
On Tue, Dec 20, 2011 at 11:48 AM, Nate Hill nathanielh...@gmail.com wrote:

 I've got a top 25 list of fiction titles, and I'm making a set of divs
 change color according to how many times they've been checked out.  If it
 looks bad and it's a lousy approach no doubt I'll try something else.

Ah, then a relative scale like you're proposing does make more sense. Neat!

-n


[CODE4LIB] Islandora Announces 11.3.0 Release

2011-12-20 Thread David Wilcox
* Apologies for cross-posting*

We are pleased to announce the release of Islandora 11.3.0!

You can download all available modules from
http://islandora.ca/download, or test drive the release at
http://sandbox.islandora.ca.

A guide to this release is available here:
http://islandora.ca/11-3-guide. The guide introduces changes and new
features in this version, including improvements to the batch ingest
and book solution pack modules, as well as a host of bug fixes.

The documentation is undergoing updates to match this version of
Islandora, and is available here:
https://wiki.duraspace.org/display/ISLANDORA.

Please report any issues to the google developer or users lists, or at
our JIRA: https://jira.duraspace.org/browse/ISLANDORA.

Please read the documentation carefully before updating as this
version may cause issues with previously installed versions of
Islandora - particularly versions released prior to Islandora 11.2.
All modules should be updated simultaneously to keep everything in
sync. If you encounter an undocumented issue, please let us know so
that we can help build and document a complete upgrade path.


Re: [CODE4LIB] Islandora Announces 11.3.0 Release

2011-12-20 Thread Wilfred Drew
I was wondering what Islandora is. Here is the description form the about page:

Islandora is an open source framework developed by the University of Prince 
Edward Island's Robertson Library. Islandora uniquely combines the Drupal and 
Fedora open software applications to create a robust digital asset management 
system that can be fitted to meet the short and long term collaborative 
requirements of digital data stewardship.

Bill Drew

-Original Message-
From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of David 
Wilcox
Sent: Tuesday, December 20, 2011 2:53 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: [CODE4LIB] Islandora Announces 11.3.0 Release

* Apologies for cross-posting*

We are pleased to announce the release of Islandora 11.3.0!

You can download all available modules from http://islandora.ca/download, or 
test drive the release at http://sandbox.islandora.ca.

A guide to this release is available here:
http://islandora.ca/11-3-guide. The guide introduces changes and new features 
in this version, including improvements to the batch ingest and book solution 
pack modules, as well as a host of bug fixes.

The documentation is undergoing updates to match this version of Islandora, and 
is available here:
https://wiki.duraspace.org/display/ISLANDORA.

Please report any issues to the google developer or users lists, or at our 
JIRA: https://jira.duraspace.org/browse/ISLANDORA.

Please read the documentation carefully before updating as this version may 
cause issues with previously installed versions of Islandora - particularly 
versions released prior to Islandora 11.2.
All modules should be updated simultaneously to keep everything in sync. If you 
encounter an undocumented issue, please let us know so that we can help build 
and document a complete upgrade path.


[CODE4LIB] Repository developer job @ Cornell Library

2011-12-20 Thread Simeon Warner

WANTED: MOTIVATED DEVELOPER to join the repositories group within Cornell
University Library.

  http://goo.gl/yXuep

Join a 6 person team working on major repository projects including arXiv.org
(http://arxiv.org/, which has transformed scientific communication, allowing
scientists to disseminate their work rapidly and broadly and democratizing
access to scientific research), Project Euclid (http://projecteuclid.org/, a
collaboration with Duke publishing 110k mathematics articles, 80k of which are
open-access), our eCommons institutional repository
(http://ecommons.cornell.edu/), and the library's archival repository. We work
with Python, Perl, Java, Solr/Lucene, Fedora, etc., and deliver services to
hundreds of thousands of users.

This position (Repository Developer/Applications Developer III, job# 16552) is
within the Cornell University Library, at the center of the Cornell campus in
Ithaca, NY. Located in the beautiful Finger Lakes region, Ithaca consistently
appears in Top-10 lists of desirable places to live.

Feel free to contact me if you have questions about the position.

--
Simeon Warner
Director of Repository Development
Cornell University Library Information Technologies
107D Olin Library, Ithaca, NY 14853, USA
email: simeon.war...@cornell.edu
tel: +1.607.254.8605


[CODE4LIB] Drupal panelists needed for ALA Midwinter!

2011-12-20 Thread Nina Mchale
***Apologies for Cross-Posting***

We could still use 1-2 more folks to serve on the LITA Drupal Interest
Group's Fail Panel, which will take place during the IG meeting on
Saturday, January 21st from 1:30-3:30 pm. Virtual participants are welcome;
this IG has presented pre-recorded presentations and Skyped folks in very
successfully in the past, so even if you're not going to Dallas, we'd love
to hear your tale of Drupal fail!

More information about the fail panel is available here:

http://groups.drupal.org/node/193583

Also, the purpose of the fail panel is not to blame, assign fault, etc.,
about Drupal fails, but to educate others and help them avoid the same
mistakes. The format--a series of slightly silly, yet insightful, questions
asked by an emcee--is fun and light-hearted, so it's a snap to prep for
(you'll get the questions ahead of time) and fun to do.

And don't worry: the audience will be groaning along with you, not laughing
at you!

-- 
Nina

Nina McHale, MA/MSLS
milehighbrarian.net
Facebook  Twitter: @ninermac