Re: [CODE4LIB] Combining RSS feeds

2015-06-18 Thread nitin arora
Real quick: I'll throw this out there.
A less obtrusive way to encode the date of event might be to stick it in
a tag - if that's possible with the software you use for both calendars.
It would be with WordPress, for instance.

That's to say, depending on what gets placed in the RSS feed from both
applications, there might be a prettier way to handle it rather then
junking up your titles.

On Thu, Jun 18, 2015 at 10:53 AM, nitin arora nitar...@gmail.com wrote:

 I might be totally misunderstanding your example, but it seems you want to
 rank items by appropriacy and not just date of publication.
 In your example, the ranking depends on date of occurrence of event and
 not publication date. Did I read that right?

 If that's the only criteria, than you might be able to have a parse-able
 convention for notating date of event in your post title.
 And then, while parsing the two feeds, rank them by date of event (nearest
 to farthest away) prior to pumping out a single feed.

 Depending on what you have access to, it might be better to create the
 feed from scratch by querying up your blog and event databases rather then
 merging 2 pre-made feeds after-the-fact.
 Now I'm just rambling.


 On Wed, Jun 17, 2015 at 9:47 PM, Conal Tuohy conal.tu...@gmail.com
 wrote:

 Kyle

 It's a question of merging the two feeds in order of pubDate?

 This is the kind of thing that Yahoo Pipes was for, before Yahoo abandoned
 it.
 https://pipes.yahoo.com/

 But there are alternatives around; perhaps the list in this article will
 provide some options you haven't seen already:
 http://www.makeuseof.com/tag/12-best-yahoo-pipes-alternatives-look/

 If you can't find an existing web service offering, you could implement
 the
 merger pretty easily in a custom XSLT.

 Good luck!

 Conal

 On 18 June 2015 at 06:53, Kyle Breneman tomeconque...@gmail.com wrote:

  I am looking for a solution to combine 2 RSS feeds into a single feed.
 One
  is the feed for our library blog and another is the feed for our
 library's
  events calendar.  My concern is that posts from the two feeds are
  appropriately interspersed.  An example of what I mean: it would be
  counterproductive for an August event, posted today, to have more
  prominence than a previously posted event occurring tomorrow.
 
  Is this possible to accomplish?  I've found scads of online sites that
  offer to combine feeds, but they don't seem to ensure against this
  problem.
 
  Kyle
 




 --
 Nitin Arora
 nitaro74 (at) gmail (dot) com
 Hope always, expect never.

 humaneguitarist.org
 blog.humaneguitarist.org




-- 
Nitin Arora
nitaro74 (at) gmail (dot) com
Hope always, expect never.

humaneguitarist.org
blog.humaneguitarist.org


Re: [CODE4LIB] Combining RSS feeds

2015-06-18 Thread nitin arora
I might be totally misunderstanding your example, but it seems you want to
rank items by appropriacy and not just date of publication.
In your example, the ranking depends on date of occurrence of event and not
publication date. Did I read that right?

If that's the only criteria, than you might be able to have a parse-able
convention for notating date of event in your post title.
And then, while parsing the two feeds, rank them by date of event (nearest
to farthest away) prior to pumping out a single feed.

Depending on what you have access to, it might be better to create the feed
from scratch by querying up your blog and event databases rather then
merging 2 pre-made feeds after-the-fact.
Now I'm just rambling.


On Wed, Jun 17, 2015 at 9:47 PM, Conal Tuohy conal.tu...@gmail.com wrote:

 Kyle

 It's a question of merging the two feeds in order of pubDate?

 This is the kind of thing that Yahoo Pipes was for, before Yahoo abandoned
 it.
 https://pipes.yahoo.com/

 But there are alternatives around; perhaps the list in this article will
 provide some options you haven't seen already:
 http://www.makeuseof.com/tag/12-best-yahoo-pipes-alternatives-look/

 If you can't find an existing web service offering, you could implement the
 merger pretty easily in a custom XSLT.

 Good luck!

 Conal

 On 18 June 2015 at 06:53, Kyle Breneman tomeconque...@gmail.com wrote:

  I am looking for a solution to combine 2 RSS feeds into a single feed.
 One
  is the feed for our library blog and another is the feed for our
 library's
  events calendar.  My concern is that posts from the two feeds are
  appropriately interspersed.  An example of what I mean: it would be
  counterproductive for an August event, posted today, to have more
  prominence than a previously posted event occurring tomorrow.
 
  Is this possible to accomplish?  I've found scads of online sites that
  offer to combine feeds, but they don't seem to ensure against this
  problem.
 
  Kyle
 




-- 
Nitin Arora
nitaro74 (at) gmail (dot) com
Hope always, expect never.

humaneguitarist.org
blog.humaneguitarist.org


Re: [CODE4LIB] Library Hours

2015-05-06 Thread nitin arora
I think both creating a one-off list and schema.org approaches pose
problems within the context of the original fund raising campaign's pitch.
I don't think every library can necessarily implement the latter for a
variety of reasons, not always technical.

From the pov that a library can be a community center in a time of crisis,
I'm wondering not only how quickly a search engine would pick that up but
also, in such moments, how prioritized updating that data would be in the
first place.

On Wed, May 6, 2015 at 8:22 AM, Charlie Morris cdmorri...@gmail.com wrote:

 I'm curious, Karen, Ethan or anyone else, do you know of any examples of
 libraries that have implemented schema.org or RDFa for hours data and have
 noticed that Google or some other search engine has picked it up (i.e.,
 correctly displaying that data as part of the search results)?  And if so,
 how quickly will Google or the like pickup on changes to hours (i.e.,
 shifting between semesters or unplanned changes)?

 On Wed, May 6, 2015 at 8:15 AM, Ethan Gruber ewg4x...@gmail.com wrote:

  +1 on the RDFa and schema.org. For those that don't know the library URL
  off-hand, it is much easier to find a library website by Googling than it
  is to go through the central university portal, and the hours will show
 up
  at the top of the page after having been harvested by search engines.
 
  On Tue, May 5, 2015 at 6:54 PM, Karen Coyle li...@kcoyle.net wrote:
 
   Note that library hours is one of the possible bits of information that
   could be encoded as RDFa in the library web site, thus making it
 possible
   to derive library hours directly from the listing of hours on the web
  site
   rather than keeping a separate list. Schema.org does have the elements
  such
   that hours can be encoded. This would mean that hours could show in the
   display of the library's catalog entry on Google, Yahoo and Bing. Being
   available directly through the search engines might be sufficient, not
   necessitating creating yet-another-database for that data.
  
   Schema.org uses a restaurant as its opening hours example, but much of
  the
   data would be the same for a library:
  
   div vocab=http://schema.org/; typeof=Restaurant
 span property=nameGreatFood/span
 div property=aggregateRating  typeof=AggregateRating
   span property=ratingValue4/span stars -
   based on span property=reviewCount250/span reviews
 /div
 div property=address  typeof=PostalAddress
   span property=streetAddress1901 Lemur Ave/span
   span property=addressLocalitySunnyvale/span,
   span property=addressRegionCA/span span
   property=postalCode94086/span
 /div
 span property=telephone(408) 714-1489/span
 a property=url href=http://www.dishdash.com;www.greatfood.com
 /a
 Hours:
 meta property=openingHours content=Mo-Sa 11:00-14:30Mon-Sat
 11am
  -
   2:30pm
 meta property=openingHours content=Mo-Th 17:00-21:30Mon-Thu
 5pm -
   9:30pm
 meta property=openingHours content=Fr-Sa 17:00-22:00Fri-Sat
 5pm -
   10:00pm
 Categories:
 span property=servesCuisine
   Middle Eastern
 /span,
 span property=servesCuisine
   Mediterranean
 /span
 Price Range: span property=priceRange$$/span
 Takes Reservations: Yes
   /div
  
   It seems to me that using schema.org would get more bang for the buck
 --
   it would get into the search engines and could also be aggregated into
   whatever database is needed. As we've seen with OCLC, having a separate
   listing is likely to mean that the data will be out of date.
  
   kc
  
   On 5/5/15 2:19 PM, nitin arora wrote:
  
   I can't see they distinguished between public libraries and other
 types
  on
   their campaign page.
  
   They say  all libraries as far as I can see.
   So I suppose then that this is true for all libraries:
   Libraries offer a space anyone can enter, where money isn't
 exchanged,
   and
   documentation doesn't have to be shown.
   Who knew fines and library/student-IDs were a thing of the past?
  
   The only data sets I can find where they got the 17,000 number is for
   public libraries:
   http://www.imls.gov/research/pls_data_files.aspx
   Maybe I missed something.
   There is an hours field on one of the CSVs I downloaded, etc for 2012
  data
   (the most recent I could find).
  
   Asking 10k for something targeted for completion in June and without a
   grasp on what types of libraries there are and how volatile the hours
   information is (especially in crisis) ...
   Sounds naive at best, sketchy at worst.
  
   The flexible funding button says this campaign will receive all
 funds
   raised even if it does not reach its goals.
  
   The value of these places for youth cannot be underestimated.
   So is the value of a quick buck ...
  
   On Tue, May 5, 2015 at 4:53 PM, McCanna, Terran 
   tmcca...@georgialibraries.org wrote:
  
I'm not at all surprised that this doesn't already exist, and even if
   OCLC's

Re: [CODE4LIB] Library Hours

2015-05-05 Thread nitin arora
My bad: apparently June 15 is the date thank-you gifts are sent.

On Tue, May 5, 2015 at 5:19 PM, nitin arora nitar...@gmail.com wrote:

 I can't see they distinguished between public libraries and other types on
 their campaign page.

 They say  all libraries as far as I can see.
 So I suppose then that this is true for all libraries:
 Libraries offer a space anyone can enter, where money isn't exchanged,
 and documentation doesn't have to be shown.
 Who knew fines and library/student-IDs were a thing of the past?

 The only data sets I can find where they got the 17,000 number is for
 public libraries:
 http://www.imls.gov/research/pls_data_files.aspx
 Maybe I missed something.
 There is an hours field on one of the CSVs I downloaded, etc for 2012 data
 (the most recent I could find).

 Asking 10k for something targeted for completion in June and without a
 grasp on what types of libraries there are and how volatile the hours
 information is (especially in crisis) ...
 Sounds naive at best, sketchy at worst.

 The flexible funding button says this campaign will receive all funds
 raised even if it does not reach its goals.

 The value of these places for youth cannot be underestimated.
 So is the value of a quick buck ...

 On Tue, May 5, 2015 at 4:53 PM, McCanna, Terran 
 tmcca...@georgialibraries.org wrote:

 I'm not at all surprised that this doesn't already exist, and even if
 OCLC's was available, I'd be willing to bet it was out of date.

 Public library hours, especially in underfunded areas, may fluctuate
 depending on funding cycles, seasons (whether school is in or out), etc.,
 not to mention closing/reopening/moving because of old buildings that need
 to be updated. We have around 280 locations in our consortium and we have
 to rely on self-reporting to find out if their hours change. We certainly
 don't have staff time to check every one of their web sites on regular
 basis, I can't imagine keeping track of 17,000!


 Terran McCanna
 PINES Program Manager
 Georgia Public Library Service
 1800 Century Place, Suite 150
 Atlanta, GA 30345
 404-235-7138
 tmcca...@georgialibraries.org


 - Original Message -
 From: Peter Murray jes...@dltj.org
 To: CODE4LIB@LISTSERV.ND.EDU
 Sent: Tuesday, May 5, 2015 4:36:56 PM
 Subject: Re: [CODE4LIB] Library Hours

 OCLC has an institutional registry [1], which had (in part) library
 hours, addresses, and so forth.  It seems to be unavailable, though [2].
 That is the only systematic collection of library hours data that I know
 about.


 Peter

 [1] https://www.oclc.org/worldcat-registry.en.html
 [2] https://www.worldcat.org/registry/institution/

  On May 5, 2015, at 4:16 PM, Bigwood, David dbigw...@hou.usra.edu
 wrote:
 
  This looks like a decent group, but I find this statement hard to
 believe.
 
  Your tax-deductible donation supports adding the names, address and
 the hours of operation of all libraries to Range. The Institute of Museum
 and Library Services publishes an open data catalog which is the source
 we'll use for the names and the addresses of the nation's libraries.
 However, there isn't a listing of the days and hours of operation for all
 libraries in the US. We are going to track down the hours of operation for
 all 17,000 libraries and make that information available -- in Range and
 for other developers who may want to use it.
 https://www.indiegogo.com/projects/range-food-and-safe-places-for-youth
 
  Are the hours of public libraries really not available?
 
  Sincerely,
  David Bigwood
  dbigw...@gmail.commailto:dbigw...@gmail.com
  Lunar and Planetary Institute
  @LPI_Library
  https://www.flickr.com/photos/lunarandplanetaryinstitute/




 --
 Nitin Arora
 nitaro74 (at) gmail (dot) com
 Hope always, expect never.

 humaneguitarist.org
 blog.humaneguitarist.org




-- 
Nitin Arora
nitaro74 (at) gmail (dot) com
Hope always, expect never.

humaneguitarist.org
blog.humaneguitarist.org


Re: [CODE4LIB] Library Hours

2015-05-05 Thread nitin arora
I can't see they distinguished between public libraries and other types on
their campaign page.

They say  all libraries as far as I can see.
So I suppose then that this is true for all libraries:
Libraries offer a space anyone can enter, where money isn't exchanged, and
documentation doesn't have to be shown.
Who knew fines and library/student-IDs were a thing of the past?

The only data sets I can find where they got the 17,000 number is for
public libraries:
http://www.imls.gov/research/pls_data_files.aspx
Maybe I missed something.
There is an hours field on one of the CSVs I downloaded, etc for 2012 data
(the most recent I could find).

Asking 10k for something targeted for completion in June and without a
grasp on what types of libraries there are and how volatile the hours
information is (especially in crisis) ...
Sounds naive at best, sketchy at worst.

The flexible funding button says this campaign will receive all funds
raised even if it does not reach its goals.

The value of these places for youth cannot be underestimated.
So is the value of a quick buck ...

On Tue, May 5, 2015 at 4:53 PM, McCanna, Terran 
tmcca...@georgialibraries.org wrote:

 I'm not at all surprised that this doesn't already exist, and even if
 OCLC's was available, I'd be willing to bet it was out of date.

 Public library hours, especially in underfunded areas, may fluctuate
 depending on funding cycles, seasons (whether school is in or out), etc.,
 not to mention closing/reopening/moving because of old buildings that need
 to be updated. We have around 280 locations in our consortium and we have
 to rely on self-reporting to find out if their hours change. We certainly
 don't have staff time to check every one of their web sites on regular
 basis, I can't imagine keeping track of 17,000!


 Terran McCanna
 PINES Program Manager
 Georgia Public Library Service
 1800 Century Place, Suite 150
 Atlanta, GA 30345
 404-235-7138
 tmcca...@georgialibraries.org


 - Original Message -
 From: Peter Murray jes...@dltj.org
 To: CODE4LIB@LISTSERV.ND.EDU
 Sent: Tuesday, May 5, 2015 4:36:56 PM
 Subject: Re: [CODE4LIB] Library Hours

 OCLC has an institutional registry [1], which had (in part) library hours,
 addresses, and so forth.  It seems to be unavailable, though [2].  That is
 the only systematic collection of library hours data that I know about.


 Peter

 [1] https://www.oclc.org/worldcat-registry.en.html
 [2] https://www.worldcat.org/registry/institution/

  On May 5, 2015, at 4:16 PM, Bigwood, David dbigw...@hou.usra.edu
 wrote:
 
  This looks like a decent group, but I find this statement hard to
 believe.
 
  Your tax-deductible donation supports adding the names, address and the
 hours of operation of all libraries to Range. The Institute of Museum and
 Library Services publishes an open data catalog which is the source we'll
 use for the names and the addresses of the nation's libraries. However,
 there isn't a listing of the days and hours of operation for all libraries
 in the US. We are going to track down the hours of operation for all 17,000
 libraries and make that information available -- in Range and for other
 developers who may want to use it.
 https://www.indiegogo.com/projects/range-food-and-safe-places-for-youth
 
  Are the hours of public libraries really not available?
 
  Sincerely,
  David Bigwood
  dbigw...@gmail.commailto:dbigw...@gmail.com
  Lunar and Planetary Institute
  @LPI_Library
  https://www.flickr.com/photos/lunarandplanetaryinstitute/




-- 
Nitin Arora
nitaro74 (at) gmail (dot) com
Hope always, expect never.

humaneguitarist.org
blog.humaneguitarist.org


Re: [CODE4LIB] Native MarcEdit for MacOSX

2015-04-08 Thread nitin arora
This discussion is timely form my pov: in a new job where everyone uses a
MAC.

Agreed with Terry: as a command line tool, it works fine on a Mac but I'd
rather not have to write one-off scripts just to avoid using the UI on a
Mac (which crashes on me a lot). I had a Windows VM installed at work today
just to help w/ MarcEdit stuff.

re: types of machine: Personally, I'd rather he get enough $$$ to purchase
a laptop if he chooses ... the software helps a lot of people earn part of
their paycheck. Myself included.




On Tue, Apr 7, 2015 at 1:36 PM, Cary Gordon listu...@chillco.com wrote:

 IMHO:

 1) If you create something, and you are not under contract to another
 entity, you own it as intellectual property, and you can do whatever you
 want with it.

 2) Open source and even free and open source does not imply any
 contribution model or the licensee's right to have input into development
 and maintenance. The open source licenses that I am familiar with do not
 confer any ownership on the licensees.

 3) Under the major open source licenses, licensees are free to fork the
 project, with certain restrictions, such as identifying the source and
 inheriting the license.

 I support Terry's right to do whatever he wants with his work. That said,
 I encourage him to consider moving to open source, where he might learn to
 love the pull request. Probably not all of them, though.

 Cary

  On Apr 6, 2015, at 10:49 PM, Roy Tennant roytenn...@gmail.com wrote:
 
  I agree with Terry. His decisions on how to deal with his codebase has
  stood the test of time. Open source doesn't mean squat if no one steps up
  to maintain it (and I have some experience with that), so having someone
  dedicated to maintaining it is not a bad strategy. It may not beds the
 most
  politically correct solution, but so be it. Running (and maintained) code
  trumps everything.
  Roy
 
  On Mon, Apr 6, 2015 at 6:13 PM, Terry Reese ree...@gmail.com wrote:
 
  Hi Bill,
 
  Sure -- this has been asked before.  In fact, I wrote an article about
 the
  responsibilities developers and organizations have, regardless of if
 they
  utilize a closed or open source model in the C4L Journal back in 2012:
  http://journal.code4lib.org/articles/6393.
 
  In my case, it's been two things.  Until around 2006 or 2007, MarcEdit's
  code libraries were still largely written in assembly so there was very
  little interest.  But since migrating the code to something more
 accessible
  (C#),  I'd have to say that the main reason is that work on the project
  has, and continues to be, a hobby and avenue for me to pursue something
  that I happen to be quite passionate about.
 
  --tr
 
  -Original Message-
  From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of
  William Denton
  Sent: Monday, April 6, 2015 7:46 PM
  To: CODE4LIB@LISTSERV.ND.EDU
  Subject: Re: [CODE4LIB] Native MarcEdit for MacOSX
 
  On 6 April 2015, Terry Reese wrote:
 
  What I've offered is that I'd redo the application to provide a native
  Mac App that is Mac-Native while still making use of the present
  assembly code.  This of course requires a Mac of some kind -- and
  since I'm not a Mac user, there it is.  From the users perspective, it
  should all be Mac-tastic.
 
  I've always been curious, and now seems a good time to ask: I'm sure
  you've considered, and been asked about, releasing MarcEdit under a free
  software license, but decided against it.  Why?
 
  Bill
  --
  William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/
 




-- 
Nitin Arora
nitaro74 (at) gmail (dot) com
Hope always, expect never.

humaneguitarist.org
blog.humaneguitarist.org


Re: [CODE4LIB] Q: Summon API Service?

2014-11-03 Thread nitin arora
I agree with Karen: due to the sensitive info and the Summon API terms of
service it's important to avoid exposing your credentials - same reason
nobody probably has or will offer a public proxy to the Summon API as
mentioned in the embedded email from Oct. 26.

On the other hand, you can create a local proxy/JSONP web service in your
language of choice and call it from JS - taking care to try and limit
access to your service to your own JS files, etc.

I can share our (nclive.org) PHP Summon API caller function (if PHP is a
language you use), but it'll be better in a week or so. Still missing code
comments, special char. escaping, etc. It just returns the native Summon
format (change to XML or JSON) so one would need to add the GET parts and
having it return JSONP with a JSON header, etc. to turn it into a local
JSONP web service that talks to Summon behind the scenes.

In the meantime, maybe someone else on this list has a more ready-to-share
option.

thanks,
Nitin

On Mon, Nov 3, 2014 at 9:05 AM, Karen Coombs librarywebc...@gmail.com
wrote:

 I don't know what the Summon API uses to authenticate clients. It looks
 from the Python code like a key and secret is involved. You should be care
 about embedding these API credentials (key/secret) in a Javascript. This
 makes them available for anyone copy and use.

 Karen

 On Sun, Nov 2, 2014 at 4:12 PM, Sara Amato sam...@willamette.edu wrote:

  Has anyone constructed Summon API queries in javascript?  (assuming that
  they can be constructed to use jsonp and avoid cross domain problems
 …???)
 
 
 
  Subject:
 
 
  Re: Q: Summon API Service?
 
  From:
 
 
  Doug Chestnut dougchest...@gmail.com
 
  Reply-To:
 
 
  Code for Libraries CODE4LIB@LISTSERV.ND.EDU
 
  Date:
 
 
  Wed, 27 Oct 2010 11:56:04 -0400
 
  Content-Type:
 
 
  text/plain
 
  Parts/Attachments:
 
 
 
  text/plain (45 lines)
 
 
  Reply
 
  If it helps, here are a few lines in python that I use to make summon
  queries:
 
  def summonMkHeaders(querystring):
  summonAccessID = 'yourIDhere'
  summonSecretKey = 'yourSecretHere'
  summonAccept = application/json
  summonThedate = datetime.utcnow().strftime(%a, %d %b %Y
  %H:%M:%S GMT)
  summonQS = .join(sorted(querystring.split('')))
  summonQS = urllib.unquote_plus(summonQS)
  summonIdString = summonAccept + \n + summonThedate +
  \n + summonHost + \n + summonPath + \n + summonQS + \n
  summonDigest =
  base64.encodestring(hmac.new(summonSecretKey, unicode(summonIdString),
  hashlib.sha1).digest())
  summonAuthstring = Summon +summonAccessID+';'+summonDigest
  summonAuthstring = summonAuthstring.replace('\n','')
  return
 
 
 {'Accept':summonAccept,'x-summon-date':summonThedate,'Host':summonHost,'Authorization':summonAuthstring}
 
  --Doug
 
  On Tue, Oct 26, 2010 at 6:46 PM, Godmar Back god...@gmail.com wrote:
   Hi,
  
   Unlike Link/360, Serials Solution's Summon API is extremely cumbersome
 to
   use - requiring, for instance, that requests be digitally signed. (*)
  
   Has anybody developed a proxy server for Summon that makes its API
 public
   (e.g. receives requests, signs them, forwards them to Summon, and
 relays
  the
   result back to a HTTP client?)
  
   Serials Solutions publishes some PHP5 and Ruby sample code in two API
   libraries (**), but these don't appear to be fully fledged nor
   easy-to-install solutions.  (Easy to install here is defined as an
  average
   systems librarian can download them, provide the API key, and have a
  running
   solution in less time than it takes to install Wordpress.)
  
   Thanks!
  
- Godmar
  
   (*) http://api.summon.serialssolutions.com/help/api/authentication
   (**) http://api.summon.serialssolutions.com/help/api/code
  
 




-- 
Nitin Arora
nitaro74 (at) gmail (dot) com
Hope always, expect never.

humaneguitarist.org
blog.humaneguitarist.org