Skip to content

Instantly share code, notes, and snippets.

[nruest@digital:modules]$ drush -v --user=admin --uri=http://digital.library.yorku.ca islandora_batch_scan_preprocess --content_models=islandora:sp_large_image_cmodel --parent=yul:F0433 --parent_relationship_pred=isMemberOfCollection --type=directory --target=/mnt/big_data/tmp/image_test
Initialized Drupal 7.22 root directory at /extra/sites/digital.library.yorku.ca [notice]
Initialized Drupal site digital.library.yorku.ca at sites/default [notice]
Argument 1 passed to IslandoraScanBatch::preprocess_children() must be an instance of IslandoraBatchObject, null given, called in [notice]
/extra/sites/digital.library.yorku.ca/sites/all/modules/islandora_batch/includes/islandora_scan_batch.inc on line 160 and defined islandora_scan_batch.inc:169
PHP Fatal error: Call to a membe
@ruebot
ruebot / Update collection policy error
Created July 26, 2013 17:52
Update collection policy error
WARN 2013-07-26 13:42:21.555 [http-8080-5] (BaseRestResource) Lock exception; unable to fulfill REST API request
org.fcrepo.server.errors.DatastreamLockedException: islandora:54b50062-3de5-47a5-980c-24e3ae18142a/COLLECTION_POLICY lastModifiedDate (2013-07-26T17:42:21.35Z) is more recent than the request (2013-07-26T17:40:43.987Z)
at org.fcrepo.server.management.DefaultManagement.modifyDatastreamByValue(DefaultManagement.java:884) ~[fcrepo-server-3.6.2.jar:na]
at sun.reflect.GeneratedMethodAccessor105.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_33]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_33]
at org.fcrepo.server.messaging.NotificationInvocationHandler.invoke(NotificationInvocationHandler.java:76) ~[fcrepo-server-3.6.2.jar:na]
at $Proxy7.modifyDatastreamByValue(Unknown Source) ~[na:na]
at sun.reflect.GeneratedMethodAccessor105.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAcces
@ruebot
ruebot / Islandora importer
Created July 29, 2013 15:05
Looks like islandora_checksum breaks other modules :-(
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?render=overlay&id=326&op=do StatusText: Service unavailable (with message) ResponseText: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'public://MODS record_4.xml' for key 'uri': INSERT INTO {file_managed} (uid, filename, uri, filemime, filesize, status, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( [:db_insert_placeholder_0] => 129 [:db_insert_placeholder_1] => MODS record_4.xml [:db_insert_placeholder_2] => public://MODS record_4.xml [:db_insert_placeholder_3] => application/xml [:db_insert_placeholder_4] => 161 [:db_insert_placeholder_5] => 1 [:db_insert_placeholder_6] => 1375110301 ) in drupal_write_record() (line 7136 of /extra/sites/digital.library.yorku.ca/includes/common.inc).
-----------------
Failed operat
@ruebot
ruebot / geo-json-solr.json
Last active December 22, 2015 11:09
Sketching out cross-walking Solr results to Geojson for YUDL
{
"features" : [
{
"geometry" : {
"coordinates" : [
"-77.337546",
"44.546103"
],
"type" : "Point"
},
This file has been truncated, but you can view the full file.
INFO:root:checking for rate limit info
INFO:root:new rate limit remaining=180 and reset=1386512045
INFO:root:writing tweets to #freedaleaskey-20131208085905.json
INFO:root:starting search for #freedaleaskey with since_id=None and max_id=None
INFO:root:fetching https://api.twitter.com/1.1/search/tweets.json?count=100&q=%23freedaleaskey
INFO:root:rate limit remaining 180
INFO:root:archived http://twitter.com/ruebot/status/408714903470759936
INFO:root:archived http://twitter.com/PLGGTA/status/408714585705701376
INFO:root:fetching https://api.twitter.com/1.1/search/tweets.json?count=100&q=%23freedaleaskey&max_id=408714585705701377
INFO:root:rate limit remaining 179
[nruest@digital:yudl-batch-ingest]$ swift upload F0047 F0047
F0047/F0047.xml
F0047/F0047-template.xml
F0047/F0047-batch/ASC02086.xml
F0047/F0047-batch/ASC02085.xml
F0047/F0047-batch/ASC02094.xml
F0047/F0047-batch/ASC02092.xml
F0047/F0047-batch/ASC02090.xml
F0047/F0047-batch/ASC02091.xml
F0047/F0047-batch/ASC02093.xml
@ruebot
ruebot / README.md
Last active August 29, 2015 13:56
Sample Islandora Foundation README.me based off of https://drupal.org/node/2181737

Islandora Checksum

Build Status

Build Status

Introduction

A simple module to allow repository managers to enable the creation of a checksum for objects. If enabled, the following checksum algorithms are available: MD5, SHA-1, SHA-256, SHA-384, SHA-512.

Dear Nick Ruest,
As stated by the McMaster University's electronic repository, you authored the work entitled "McMaster University Library & Digital Commons" in the framework of your postgraduate degree.
Due to the fact that we are currently planning publications in this subject field, we would be pleased to know whether you would be interested in publishing the above mentioned work with us.
LAP LAMBERT Academic Publishing is a member of an international publishing group, which has almost 10 years of experience in the publication of high-quality research works from well-known institutions across the globe.
Besides producing printed scientific books, we also market them actively through more than 80,000 booksellers.
Kindly confirm your interest in receiving more detailed information in this respect.
@ruebot
ruebot / gccaedits IP ranges
Last active June 3, 2020 04:44
These are the IP ranges used for @gccaedits. These IP address come from here: https://en.wikipedia.org/wiki/Wikipedia:Blocking_IP_addresses. If you know of more that should be added, please contact @ruebot, and/or comment here.
"ranges": {
"Government of Canada": [
["192.139.201.0", "192.139.201.255"],
["192.139.202.0", "192.139.202.255"],
["192.139.203.0", "192.139.203.255"],
["192.139.204.0", "192.139.204.255"],
["192.197.77.0", "192.197.77.255"],
["192.197.78.0", "192.197.78.255"],
["192.197.80.0", "192.197.80.255"],
["192.197.84.0", "192.197.84.255"],