-
Carefully acknowledge somehow that this extends the scope of IIIF, but is at least controlled mission creep (i.e. similar to a controlled burn :-))
-
Use cases:
- thematic registries and portals
-
ad-hoc reuse/remixing/mashups
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ kdu_expand -quiet -i 0001.jp2 -o 0001.bmp -reduce 0; identify 0001.bmp | |
0001.bmp BMP3 5906x7200 5906x7200+0+0 8-bit sRGB 127.6MB 0.120u 0:00.129 | |
$ opj_decompress -i 0001.jp2 -o 0001.bmp -r 0; identify 0001.bmp | |
0001.bmp BMP3 5906x7200 5906x7200+0+0 8-bit sRGB 127.6MB 0.120u 0:00.129 | |
$ kdu_expand -quiet -i 0001.jp2 -o 0001.bmp -reduce 1; identify 0001.bmp | |
0001.bmp BMP3 2953x3600 2953x3600+0+0 8-bit sRGB 31.9MB 0.030u 0:00.040 | |
$ opj_decompress -i 0001.jp2 -o 0001.bmp -r 1; identify 0001.bmp | |
0001.bmp BMP3 2953x3600 2953x3600+0+0 8-bit sRGB 31.9MB 0.030u 0:00.040 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
from PIL.ExifTags import GPSTAGS | |
from PIL.ExifTags import TAGS | |
# Keys are listed here: | |
# https://github.com/python-pillow/Pillow/blob/master/PIL/ExifTags.py | |
def _map_key(k): | |
try: | |
return TAGS[k] |
Deprecated. Moved here: https://docs.google.com/document/d/1GY9_CfvFb5WCFOoSQ54DwzoMKPXmh5UrBgBuN5QXjUg/edit#
- Talk to RBSC cat.
- Enhace EAD w/ item level data from TEI. Including pudl0123 IDs temporarily
- Use TEI to EAD mapping to reorg. images to match new EAD (item level) components
- Remove temporary pudl0123 IDs from new EAD components
- Generate new PULFA METS and load EAD
- Migration New PULFA METS to Plum - Make sure EAD component ID is in
dc:replaces
- Map Plum manifest URIs back to TEI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Unwatch from all Github repositories. Note that it will only work with up to | |
# 100 repos at a time (pagination is not implemented), so you may need to run | |
# more than once. | |
# | |
# Depends: | |
# requests : http://docs.python-requests.org/en/master/ | |
# | |
# Output (to stdout): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "http://iiif.io/api/presentation/2/context.json", | |
"id": "https://plum.princeton.edu/concern/scanned_resources/pt722jw092/manifest", | |
"type": "sc:Manifest", | |
"label": [ | |
"Reports of the Princeton University expeditions to Patagonia, 1896-1899 : J. B. Hatcher in charge" | |
], | |
"viewingHint": "paged", | |
"viewingDirection": "left-to-right", | |
"rendering": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for md_file in $(find . -name "*.md"); do | |
gsed -r -i -e 's/([A-z])\.\s{2,3}([A-Z])/\1. \2/g' $md_file | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script takes a single argument, which is a path in an image file. | |
# NOTE: this file will be replaced with the version that this script deems to be 'correct' | |
file=$1 | |
TMP="/tmp/pulfa/img_harvester/rotation-calc" | |
# Clean up if there are files from the last run | |
# (leaving them around is handy for debugging) | |
if [ -d $TMP ]; then |
Note that these instructions use offensive master/slave
terminology because they are still necessary keywords in the NUT configuration files. There is work in progress to change this. I am going to use server
and client
whenever I can, but you can't avoid master/slave in upsd.users
or upsmon.conf
.
Given two UPS's:
And a Raspberry Pi, I'm setting up my home network and critical hardware to shutdown gracefully when the power fails.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (Paste into your bash .profile or whatever you use) | |
# | |
# $ asdf which python | |
# /Users/jstroop/.asdf/installs/python/3.8.5/bin/python # version in .tool-versions | |
# $ asdf which python 3.7.6 | |
# /Users/jstroop/.asdf/installs/python/3.7.6/bin/python # version from 3rd arg | |
# | |
# NOTE: Python < 3.11-dev does not compile on Apple silicon. | |
# See: https://bugs.python.org/issue43878. | |
# Use Rosetta if necessary. |
OlderNewer