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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# Vagrant configuration options are fully documented at
# https://docs.vagrantup.com.
from /Users/justin/workspace/rdf/lib/rdf/repository.rb:370:in `query_pattern'
from /Users/justin/workspace/rdf/lib/rdf/mixin/queryable.rb:86:in `query'
from /Users/justin/workspace/rdf/lib/rdf/model/graph.rb:262:in `each'
from /Users/justin/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/active-triples-0.7.2/lib/active_triples/rdf_source.rb:76:in `each'
from /Users/justin/workspace/rdf/lib/rdf/mixin/queryable.rb:150:in `grep'
from /Users/justin/workspace/rdf/lib/rdf/mixin/queryable.rb:150:in `query_pattern'
from /Users/justin/workspace/rdf/lib/rdf/mixin/queryable.rb:302:in `block in enum_for'
from /Users/justin/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/active-triples-0.7.2/lib/active_triples/relation.rb:42:in `each'
--> #0 #<Class:HttpCounter>.increment(http#Net::HTTP::Get) at /Users/justin/workspace/goldenseal/script/load_test.rb:17
#1 Net::HTTP.request(request#Net::HTTP::Get, body#NilClass, &block#Proc) at /Users/justin/workspace/goldenseal/script/load_test.rb:34
#2 Net::HTTP.get(path#String, initheader#Faraday::Utils::Headers, dest#NilClass, &block#NilClass) at /Users/justin/.rbenv/versions/2.2.3/lib/ruby/2.2.0/net/http.rb:1133
#3 Faraday::Adapter::NetHttp.perform_request(http#Net::HTTP, env#Faraday::Env) at /Users/justin/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:80
#4 block in Faraday::Adapter::NetHttp.block in call(env#Faraday::Env) at /Users/justin/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:40
#5 Faraday::Adapter::NetHttp.with_net_http_connection(env#Faraday::Env) at /Users/justin/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:87
#6 Faraday
--> #0 #<Class:HttpCounter>.increment(http#Net::HTTP::Get) at /Users/justin/workspace/goldenseal/script/load_test.rb:17
#1 HttpLogger.perform(http#Net::HTTP, request#Net::HTTP::Get, request_body#NilClass, &block#Proc) at /Users/justin/workspace/goldenseal/script/load_test.rb:35
#2 #<Class:HttpLogger>.perform(*args#Array, &block#Proc) at /Users/justin/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/http_logger-0.5.1/lib/http_logger.rb:45
#3 Net::HTTP.request(request#Net::HTTP::Get, body#NilClass, &block#Proc) at /Users/justin/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/http_logger-0.5.1/lib/http_logger.rb:197
#4 block in Net::HTTP.block in request(request#NilClass, body#NilClass, &block#Proc) at /Users/justin/.rbenv/versions/2.2.3/lib/ruby/2.2.0/net/http.rb:1377
#5 Net::HTTP.start at /Users/justin/.rbenv/versions/2.2.3/lib/ruby/2.2.0/net/http.rb:853
#6 Net::HTTP.request(request#NilClass, body#NilClass, &block#Proc) at /Users/justin/.rbenv/versions/2.2.3/lib/ruby/2.2.0/net/http.
Measure Mode: wall_time
Thread ID: 70260992901640
Fiber ID: 70261079409200
Total: 559.914302
Sort by: self_time
%self total self wait child calls name
5.54 32.805 31.023 0.000 1.782 12457370 RDF::URI#hash
4.93 81.153 27.584 0.000 53.569 5169225 *Kernel#dup
4.71 56.797 26.383 0.000 30.414 5574658 *Kernel#initialize_dup
@jcoyne
jcoyne / gist:0ff7fe1c9bb1222a710b
Last active October 23, 2015 16:40
undeclared files
[11, 20] in /Users/justin/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/active_fedora-974393d860a8/lib/active_fedora/attached_files.rb
11: end
12: deprecation_deprecate :ds_specs
13:
14: def serialize_attached_files
15: byebug if $go
=> 16: attached_files.each_value {|file| file.serialize! }
17: end
18:
19: #
--> #0 ActiveFedora::File.initialize(parent_or_url_or_hash#String, path#NilClass, options#Hash, &block#NilClass) at /Users/justin/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/active_fedora-974393d860a8/lib/active_fedora/file.rb:36
ͱ-- #1 Class.new(*args) at /Users/justin/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/active_fedora-974393d860a8/lib/active_fedora/file_relation.rb:4
#2 ActiveFedora::FileRelation.load_from_fedora(id#String, _#NilClass) at /Users/justin/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/active_fedora-974393d860a8/lib/active_fedora/file_relation.rb:4
#3 ActiveFedora::FinderMethods.find_one(id#String, cast#NilClass) at /Users/justin/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/active_fedora-974393d860a8/lib/active_fedora/relation/finder_methods.rb:178
#4 ActiveFedora::FinderMethods.find_with_ids(ids#Array, cast#NilClass) at /Users/justin/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/bundler/gems/active_fedora-974393d860a8/lib/active_f
@jcoyne
jcoyne / import.log
Last active October 26, 2015 13:48
Before. The old slow way
14:49:11 Parsing lew1864.0001.001.xml
14:49:12 attaching file: lew1864.0001.001.xml
14:49:13 attaching file: letz_01_0001_unm.tif
14:49:15 attaching file: letz_01_0002_ttl.tif
14:49:18 attaching file: letz_01_0003_bln.tif
14:49:24 attaching file: letz_01_0004_003.tif
14:49:30 attaching file: letz_01_0005_004.tif
14:49:35 attaching file: letz_01_0006_005.tif
# Find the Work
HEAD (15.2ms) http://127.0.0.1:8983/fedora/rest/dev/rr/17/1x/21/rr171x21v Service: 70186006465200
GET (147.3ms) http://127.0.0.1:8983/fedora/rest/dev/rr/17/1x/21/rr171x21v Service: 70186006465200
# Create a new FileSet
HEAD (9.6ms) http://127.0.0.1:8983/fedora/rest/dev/57/12/m6/53/5712m653d Service: 70186006465200
HEAD (9.4ms) http://127.0.0.1:8983/fedora/rest/dev/57/12/m6/53/5712m653d Service: 70186006465200
PUT (10.5ms) http://127.0.0.1:8983/fedora/rest/dev/57/12/m6/53/5712m653d Service: 70186006465200
HEAD (12.9ms) http://127.0.0.1:8983/fedora/rest/dev/57/12/m6/53/5712m653d Service: 70186006465200
HEAD (8.1ms) http://127.0.0.1:8983/fedora/rest/dev/57/12/m6/53/5712m653d/list_source Service: 70186006465200
Loading environment
0 - 2.2741853129991796
1 - 1.4138160160000552
2 - 1.3438450780013227
3 - 1.646761174997664
4 - 1.6438375529978657
5 - 2.204354225003044
6 - 2.5052152580028633
7 - 2.660645575997478
8 - 2.8062296380012413