Re: [CODE4LIB] Barcodes in XSLT (Alma letters)

2023-08-03 Thread Adam Constabaris
Sorry, the HTML 12309809SA should do the fallback trick I mentioned. Apologies for omitting it from the example while leaving the prose in! On Thu, Aug 3, 2023 at 10:26 AM Adam Constabaris wrote: > Assuming you have a suitable font installed on the computers that are > looking

Re: [CODE4LIB] Barcodes in XSLT (Alma letters)

2023-08-03 Thread Adam Constabaris
Assuming you have a suitable font installed on the computers that are looking at the barcodes (e.g. https://fonts.google.com/specimen/Libre+Barcode+128 <- not an endorsement, YMMV, etc.), the HTML 12309809SA Should display the value inside the span as a barcode, falling back to Winding as an obvi

Re: [CODE4LIB] "The rows are not all the same number of columns."

2023-01-17 Thread Adam Constabaris
To engage in a little code golf, the following python script uses only the standard library. The `csv` module is pretty good about understanding various kinds of escapes and so forth. This should help you find any lines with an "unusual" number of fields. #!/usr/bin/env python > > from csv impor

Re: [CODE4LIB] Logout solution for OpenAthens when an additional SAML system is used for authentication

2022-09-01 Thread Adam Constabaris
If both systems support logging out via simply following a link (i.e. you can log out via GET), then you can have your unitary logout button/link take the user to a page that loads the two logout pages in iframes: https://[openathens.logout.url ]" style="display: non

Re: [CODE4LIB] file too large

2022-06-16 Thread Adam Constabaris
On further inspection, it looks like AFS has a limitation of 64000 files in a directory which _decreases_ if the filenames are long, but I'm not sure what the formula is[1]. It does seem from your description that you might be running into such a limitation. If you lack other storage options and t

Re: [CODE4LIB] file too large

2022-06-16 Thread Adam Constabaris
Hi Eric, `tar -tvzf [tarfilename]` will give you a detailed listing of the files in the archive. If your archive isn't compressed with gzip, you can leave out the 'z' switch. You can inspect the individual files listed in the error message by passing in the path to the file, e.g. `tar -tvf [tarfi

Re: [CODE4LIB] Google Chrome privacy changes untenable

2018-09-26 Thread Adam Constabaris
By way of an update, Google has made an announcement about this issue (and others, such as that currently, "delete all cookies" in Chrome 69 does not delete google-domain cookies): https://www.blog.google/products/chrome/product-updates-based-your-feedback/ So, it sounds like they will be reverti

Re: [CODE4LIB] limiting the number of cpu's used by spacy

2018-05-29 Thread Adam Constabaris
Eric, I don't know if spacy has anything built in for this, but I'd recommend going in the direction suggested by Flannon and one of the answers on Stack Overflow, and use your OS to do the limiting, if it supports that. If your goal is specifically to limit the *number* of CPUs a process can use

[CODE4LIB] A "Dead Simple" Catalog Indexer

2018-03-19 Thread Adam Constabaris
Hi folks, While working on a project that frequently requires that we find out various low-level facts about our MARC records (e.g. "How many records do we have with 510 fields where indicator1 = '1'?"), we ended up writing a small, unsophisticated, but so-far useful tool for extracting those reco

Re: [CODE4LIB] python 2 versus python 3

2018-03-08 Thread Adam Constabaris
... which is what Charles already pointed out (sorry about that)! cheers, AC On Thu, Mar 8, 2018 at 8:14 AM, Adam Constabaris wrote: > Although we've answered Eric's original question to over the hills and far > away and all the way back, I feel compelled to point out that py

Re: [CODE4LIB] python 2 versus python 3

2018-03-08 Thread Adam Constabaris
Although we've answered Eric's original question to over the hills and far away and all the way back, I feel compelled to point out that python 2.7's end-of-life support is on the horizon: https://pythonclock.org/ While existing python 2.x installations won't turn into pumpkins in 2020, you won't

Re: [CODE4LIB] edit jobs posting

2018-01-30 Thread Adam Constabaris
This should tell the general tale: https://github.com/code4lib/job_board/blob/75bdd0922c11aa3157294c511fe51da0a2c1482a/config/schedule.rb#L31 (basically, it logs into a gmail account that is subscribed to this list and checks it for posts that look like job postings). cheers, AC On Tue, Jan 30

Re: [CODE4LIB] What's so bad about bylaws?

2017-07-21 Thread Adam Constabaris
It's an interesting question, but code4lib -- whatever exactly that is -- has managed to make all sorts of decisions, about where to hold conferences, keynote speakers, etc. for over a decade without formalizing. I am unclear on the exact details, but there is some carryover of conference funds fr