Skip to content

Instantly share code, notes, and snippets.

View jcoyne's full-sized avatar

Justin Coyne jcoyne

  • Stanford University Libraries
  • Minneapolis, MN
View GitHub Profile
sufia was resolved to 7.1.0, which depends on
curation_concerns (>= 1.3.3, ~> 1.3) was resolved to 1.3.3, which depends on
active-fedora (< 11.a, >= 10.0.0) was resolved to 10.2.1, which depends on
active-triples (~> 0.7.1) was resolved to 0.7.6, which depends on
linkeddata (~> 1.1) was resolved to 1.99.0, which depends on
rdf-reasoner (~> 0.3) was resolved to 0.3.0, which depends on
rdf-xsd (~> 1.1)
sufia was resolved to 7.1.0, which depends on
curation_concerns (>= 1.3.3, ~> 1.3) was resolved to 1.3.3, which depends on
var pixel = new OpenSeadragon.Point(0, 0);
> undefined
osd.viewport.pointFromPixel(pixel)
> Object { x: -1.04680908203125, y: 0 }
var view_point = osd.viewport.pointFromPixel(pixel)
> undefined
osd.viewport.viewportToImageCoordinates(view_point)
> Object { x: -1071.9325, y: 0 }
Connection Error with url http://dorfetcher-prod.stanford.edu/collections/zp940yp4275
/opt/app/exhibits/exhibits/shared/bundle/ruby/2.3.0/gems/dor-fetcher-1.0.5/lib/dor-fetcher.rb:135:in `rescue in query_api'
/opt/app/exhibits/exhibits/shared/bundle/ruby/2.3.0/gems/dor-fetcher-1.0.5/lib/dor-fetcher.rb:132:in `query_api'
/opt/app/exhibits/exhibits/shared/bundle/ruby/2.3.0/gems/dor-fetcher-1.0.5/lib/dor-fetcher.rb:44:in `get_collection'
/opt/app/exhibits/exhibits/shared/bundle/ruby/2.3.0/gems/harvestdor-indexer-2.3.1/lib/harvestdor/indexer/resource.rb:72:in `items_druids'
/opt/app/exhibits/exhibits/shared/bundle/ruby/2.3.0/gems/harvestdor-indexer-2.3.1/lib/harvestdor/indexer/resource.rb:64:in `block in items'
/opt/app/exhibits/exhibits/shared/bundle/ruby/2.3.0/gems/spotlight-dor-resources-1.1.0/app/models/spotlight/resources/dor_harvester.rb:51:in `size'
/opt/app/exhibits/exhibits/shared/bundle/ruby/2.3.0/gems/spotlight-dor-resources-1.1.0/app/models/spotlight/resources/dor_harvester.rb:51:in `block (2 levels)
describe("iiifCrop API Layer (and DOM rendering)", function() {
var IiifCrop = require('../../src/iiifCrop.js');
var OpenSeadragon = require('../../node_modules/openseadragon/build/openseadragon/openseadragon.min.js')
OpenSeadragon.Viewer.prototype.iiifCrop = IiifCrop;
var HTMLElements = {};
beforeEach(function () {
spyOn(document, 'getElementById').and.callFake(function(ID) {
if(!HTMLElements[ID]) {
@jcoyne
jcoyne / Exhibit.log
Last active July 8, 2016 01:36
Spotlight exhibits stack trace
NoMethodError (undefined method `admin_exhibit_catalog_index_path' for #<ActionDispatch::Routing::RoutesProxy:0x007fb9f1e49d48>
Did you mean? admin_exhibit_catalog_path):
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.6/lib/action_dispatch/routing/routes_proxy.rb:37:in `method_missing'
/opt/app/exhibits/exhibits/shared/vendor/bundle/ruby/2.3.0/gems/spotlight-dor-resources-1.0.1/app/controllers/spotlight/resources/dor_harvester_controller.rb:15:in `create'
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.6/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.6/lib/abstract_controller/base.rb:198:in `process_action'
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.6/lib/action_controller/metal/rendering.rb:10:in `process_action'
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.6/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:117:in `call'
vendor/bun
10) catalog/_index_list_default displays metadata
Failure/Error: expect(rendered).to include '<a href="http://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0 Universal</a>, <a href="http://creativecommons.org/publicdomain/mark/1.0/">Public Domain Mark 1.0</a>, and <a href="http://www.europeana.eu/portal/rights/rr-r.html">All rights reserved</a>'
expected " <div class=\"col-sm-9\">\n <table class=\"table\">\n <tr>\n <th><span class=\"attribute-label h4\">Description:</span></th>\n <td><span itemprop=\"description\">This links to <a href=\"http://example.com/\"><span class=\"glyphicon glyphicon-new-window\"></span> http://example.com/</a> What about that?</span></td>\n </tr>\n <tr>\n <th><span class=\"attribute-label h4\">Creator:</span></th>\n <td><span itemprop=\"creator\">Justin</span> and <span itemprop=\"creator\">Joe</span></td>\n </tr>\n <tr>\n <th><span cla
irb(main):006:0> local_file = File.open('spec/fixtures/images/world.png') => #<File:spec/fixtures/images/world.png>
irb(main):007:0> local_file = Hydra::Derivatives::IoDecorator.new(local_file)
=> #<File:spec/fixtures/images/world.png>
irb(main):008:0> local_file.mime_type = 'application/foo'
=> "application/foo"
irb(main):009:0> local_file.original_name = 'world.png'
=> "world.png"
irb(main):010:0> Hydra::Works::AddFileToFileSet.call(fs, local_file, :original_file, versioning: false)
Unable to check /var/folders/9t/rygbnddx0b1ckw6tjs3m18qm0000gq/T/20160531-85153-cfleh6 for viruses because no virus scanner is defined
=> #<FileSet id: "ww72bb63r", label: nil, relative_path: nil, import_url: nil, part_of: [], resource_type: [], creator: [], contributor: [], description: [], keyword: [], rights: [], publisher: [], date_created: [], subject: [], language: [], identifier: [], based_near: [], related_url: [], bibliographic_citation: [], source: [], head: [], tail: [], depositor: "jcoyne", title: [], date_uploaded:
<> a <http://pcdm.org/models#Object>,
<http://projecthydra.org/works/models#Work>;
<http://purl.org/dc/terms/title> "Knowing their lines: how social boundaries undermine equity-based integration policies in United States and South African schools";
<http://id.loc.gov/vocabulary/relators/dpt> "[email protected]";
<http://purl.org/dc/elements/1.1/contributor> "Carter, Prudence L.",
"Caruthers, Jakeya",
"Perspectives in Education";
<http://purl.org/dc/elements/1.1/description> """"In this paper we argue that although the United States and South Africa have produced qualitatively different national frames about the necessity for racial integration in education, certain practices converge in both nations at the school level that thwart integrationist goals. Drawing on sociologist Jeannie Oakes and colleagues' idea of schools as ""zones of mediation"" of economic, racial, social, and cultural phenomena, we provide empirical evidence of how a complex set of social interactions, sustai
$ dig demo.hydrainabox.org
; <<>> DiG 9.8.3-P1 <<>> demo.hydrainabox.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 6664
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;demo.hydrainabox.org. IN A
HTTP ERROR 500
Problem accessing /solr/hydra-development/select. Reason:
{metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.cloud.ZooKeeperException},msg=SolrCore 'hydra-development' is not available due to init failure: Could not find configName for collection hydra-development found:[hybox, solr_config_uploader_test],trace=org.apache.solr.common.SolrException: SolrCore 'hydra-development' is not available due to init failure: Could not find configName for collection hydra-development found:[hybox, solr_config_uploader_test]
at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:1075)
at org.apache.solr.servlet.HttpSolrCall.init(HttpSolrCall.java:252)
at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:414)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:229)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:184)