This file contains hidden or 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
| $ redis-cli monitor | |
| OK | |
| 1452204586.436681 [0 [::1]:57239] "smembers" "sufia:development:queues" | |
| 1452204586.437212 [0 [::1]:57239] "lpop" "sufia:development:queue:batch_update" | |
| 1452204586.437463 [0 [::1]:57239] "lpop" "sufia:development:queue:characterize" | |
| 1452204586.437711 [0 [::1]:57239] "lpop" "sufia:development:queue:derivatives" | |
| 1452204586.438056 [0 [::1]:57239] "lpop" "sufia:development:queue:event" |
This file contains hidden or 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
| [1] pry(#<BatchController>)> params | |
| => {"utf8"=>"✓", | |
| "authenticity_token"=>"/nm/7cxffDAqxGtbAXr0cxetwqAlS3lQWOGt9E+eJPfDwOa1fyI2wwvCBMB4aEaHIGAI0kZzo60J6xPm23rDog==", | |
| "title"=>{"7s75dc36z"=>["burkinafaso-fr-note.pdf"], "xg94hp52v"=>["Zambia_hh_survey_report_2010_final.pdf"]}, | |
| "extra_description_count"=>"1", | |
| "generic_file"=> | |
| {"resource_type"=>[""], | |
| "tag"=>["TEST"], | |
| "creator"=>[""], | |
| "rights"=>["http://creativecommons.org/licenses/by/3.0/us/"], |
This file contains hidden or 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
| def allocate_object | |
| active_fedora_class.allocate.init_with_json(profile_json) do |allocated_object| | |
| create_key = allocated_object.indexing_service.class.create_time_solr_name | |
| modified_key = allocated_object.indexing_service.class.modified_time_solr_name | |
| allocated_object.resource.set_value(:create_date, DateTime.parse(solr_doc[create_key])) if solr_doc[create_key] | |
| allocated_object.resource.set_value(:modified_date, DateTime.parse(solr_doc[modified_key])) if solr_doc[modified_key] | |
| end | |
| end |
This file contains hidden or 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 | |
| # | |
| # Stops and then starts resque-pool in either production or development environment | |
| # script/restart_resque.sh [production|development] | |
| #RESQUE_POOL_PIDFILE="$(pwd)/tmp/pids/resque-pool.pid" | |
| RESQUE_POOL_PIDFILE="$(pwd)/scholarsphere/shared/pids/resque-pool.pid" | |
| HOSTNAME=$(hostname -s) | |
| ENVIRONMENT=$1 | |
| function anywait { |
Last Update: 2016-07-29
Table of Contents
Last Update: 2016-03-09
Table of Contents
This file contains hidden or 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
| Error | |
| cannot load such file -- open3 | |
| /cul/web/cals-che-repo-dev.library.cornell.edu/rails-app/agriknowledge/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require' | |
| /cul/web/cals-che-repo-dev.library.cornell.edu/rails-app/agriknowledge/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require' | |
| /cul/web/cals-che-repo-dev.library.cornell.edu/rails-app/agriknowledge/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:238:in `block in load_dependency' | |
| /cul/web/cals-che-repo-dev.library.cornell.edu/rails-app/agriknowledge/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:647:in `new_constants_in' | |
| /cul/web/cals-che-repo-dev.library.cornell.edu/rails-app/agriknowledge/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:238:in `load_dependency' | |
| /cul/web/cals-che-repo-dev.library.cornell.edu/ra |
This file contains hidden or 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
| # defined in Annotation | |
| # NOTE: No class defined, so holds URI string only | |
| property :hasBody, :predicate => RDF::Vocab::OA.hasBody | |
| # in PRY | |
| generic_annotation = Annotation.new(uri_or_str) | |
| body_uri = generic_annotation.hasBody | |
| body = ActiveTriples::Resource(body_uri) | |
| body.statements # => [] |
This file contains hidden or 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
| $ rails new my_app -m https://raw.githubusercontent.com/projecthydra/sufia/master/template.rb | |
| create | |
| create README.md | |
| create Rakefile | |
| create config.ru | |
| create .gitignore | |
| create Gemfile | |
| create app | |
| create app/assets/config/manifest.js | |
| create app/assets/javascripts/application.js |


