bbox-2015:~ birkin$
bbox-2015:~ birkin$ brew doctor
Your system is ready to brew.
bbox-2015:~ birkin$
bbox-2015:~ birkin$
bbox-2015:~ birkin$ node -v
-bash: node: command not found
| AVAILABLE_LOCATIONS = [ | |
| "ANNEX", | |
| "ONLINE", | |
| "ONLINE BOOK", | |
| "ORWIG", | |
| "ORWIG STORAGE", | |
| "ROCK", | |
| "ROCK CHINESE", | |
| "ROCK JAPANESE", | |
| "ROCK KOREAN", |
| """ | |
| Shib tunneler. | |
| Assumes non-two-factor-authentication acount | |
| """ | |
| import json, logging, os, pprint | |
| from urllib.parse import urlparse, parse_qs | |
| import requests | |
| from bs4 import BeautifulSoup |
| import pprint, sys | |
| import execnet # <http://execnet.readthedocs.io/en/latest/> | |
| ## todo... | |
| ## compare & contrast with: | |
| ## <https://github.com/Brown-University-Library/xsl_transformer_project/blob/61f4a0e7f6dacd6fdc50e87e09b0ead88b35e958/transformer_app/models.py#L215-L217> | |
| assert sys.version_info >= ( 3,0 ) | |
| gw = execnet.makegateway( 'popen//python=python2.7' ) |
| package main | |
| import "fmt" | |
| import "reflect" | |
| func main() { | |
| var a int = 2 | |
| var b []int | |
| var c [10]int |
| # -*- coding: utf-8 -*- | |
| """ | |
| Experimentation for how to handle bad marc records. | |
| <https://gist.github.com/birkin/dc657b15f64704ed03126d556317da3c> | |
| """ | |
| import io, pprint, time | |
| import pymarc |
Main wishes...
logging
post requests
Right now, I put a data-file, and a related count-file, in a particular place on the server. I would like to be able to post required data to a url -- and get back an appropriate status code indicating the submission was valid.
I'll note a problem, and a solution I wanted to share, and speak a little more broadly...
The problem was a workflow. A Digital Humanities Librarian and her graduate-students would intermittently work on a faculty project, which, at its core, has a website showing translated inscriptions. Their xml data was stored in a private subversion repository. I had set up a script to periodically check to see if inscriptions in the subversion repository had been updated, and, if so, to then process them for display. Many months could go by without any data changes being made, followed by brief bursts of updates. So the problem was, I tended to want my script to check for changes relatively infrequently, but during work-bursts, the data-updaters wanted to see their changes flow into the website as immediately as possible.
We tried a couple things, but the eventual solution: we've moved the xml data-files to a public github repository, and use github's webhooks feature. This allowed us to m
| ###### | |
| ## - the problem: on macOS 10.12.1, trying to install a virtual-env specifying python 3 does not work | |
| ## - cause of problem seems to be an old version of `virtualenv` | |
| ## - this is a work-around... | |
| ###### | |
| ## if you need to install python 3... | |
| ## ensure you can run brew doctor with no errors/warnings |