Skip to content

Instantly share code, notes, and snippets.

View awead's full-sized avatar
🏠
Working from home

Adam Wead awead

🏠
Working from home
View GitHub Profile
* Update History.md [Michael J. Giarlo]
* Make geonames username configurable. Closes #1336 [Tonmoy Roy]
* Install generator should not call generators that duplicate default config values. Fixes #1347 [Michael J. Giarlo]
* lock collection when uploading files to a collection [E. Lynette Rayle]
* Pin engine_cart to 0.8 [Justin Coyne]
* Updates for latest version of rubocop [Justin Coyne]
* Rubocop fix for Rails/PluralizationGrammar from Hydra Sufia master [mtribone]
* Fixes the link being wider than the image if the browser window is expanded. In order to just have the link wrap the intrinsic value of the image, switch img-responsive to inline block [mtribone]
* Linked Project Hydra to projecthydra.org [Dan Kerchner]
* Refactor BatchUpdateJob and allow overrides [Adam Wead]
2015-11-02 11:11:08 -0500 (16163) rescued exception: undefined method `empty?' for nil:NilClass
2015-11-02 11:11:10 -0500 (16163) LDAP error checking exists for agw13, reason (code: 11): Admin Limit Exceeded
2015-11-02 11:11:10 -0500 (16163) User: `agw13' does not exist in ldap
(byebug) GenericFile.where(label: item['file']['filename'])
Findings from NSF Study
(byebug) item['file']['filename']
(byebug) GenericFile.where(label: nil)
Findings from NSF Study
(byebug) item.class
String
(byebug) item["file"].class
@awead
awead / gist:0023a0f385eef9ebaf2d
Last active October 21, 2015 13:10
Accession dates
> accession = Accession.find("archivesphere:707957642")
> accession.date_uploaded
=> Sun, 11 Oct 2015
> accession.date_uploaded.class
=> Date
> accession.create_date
=> "2015-10-11T20:46:04.369Z"
> accession.create_date.class
=> String
> accession.create_date.class
describe("toggleCheckbox", function() {
it("toggles the value between 1 and 0", function() {
var html = '<input type="checkbox" name="select_all" id="select_all" value="0" class="ev-select-all"/>';
setFixtures(html);
toggleCheckbox(html);
expect($("#select_all").value).toEqual("1");
});
@awead
awead / fedora.log
Created August 19, 2015 17:16
Fedora stack trace error from solr reindex task
ERROR 2015-08-19 00:42:39.954 [http-bio-8080-exec-4] (BaseRestResource) Unexpected error fulfilling REST API request
org.fcrepo.server.errors.UnknownSessionTokenException: Session is expired or never existed.
at org.fcrepo.server.search.FieldSearchSQLImpl.resumeFindObjects(FieldSearchSQLImpl.java:343) ~[fcrepo-server-3.7.0.jar:na]
at org.fcrepo.server.search.FieldSearchSQLModule.resumeFindObjects(FieldSearchSQLModule.java:167) ~[fcrepo-server-3.7.0.jar:na]
at org.fcrepo.server.storage.DefaultDOManager.resumeFindObjects(DefaultDOManager.java:1962) ~[fcrepo-server-3.7.0.jar:na]
at org.fcrepo.server.access.DefaultAccess.resumeFindObjects(DefaultAccess.java:714) ~[fcrepo-server-3.7.0.jar:na]
at org.fcrepo.server.rest.FedoraObjectsResource.searchObjects(FedoraObjectsResource.java:101) ~[fcrepo-server-3.7.0.jar:na]
at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
** [out :: as1qa.dlt.psu.edu]
** [out :: as1qa.dlt.psu.edu] --------------------------------------------
** [out :: as1qa.dlt.psu.edu]
** [out :: as1qa.dlt.psu.edu] Checking whether there are multiple Apache installations...
** [out :: as1qa.dlt.psu.edu] AH00526: Syntax error on line 47 of /etc/httpd/conf.d/vhost-archivesphere-qa.conf:
** [out :: as1qa.dlt.psu.edu] An error occured reading the Keyfile.
** [out :: as1qa.dlt.psu.edu] AH00526: Syntax error on line 47 of /etc/httpd/conf.d/vhost-archivesphere-qa.conf:
** [out :: as1qa.dlt.psu.edu] An error occured reading the Keyfile.
** [out :: as1qa.dlt.psu.edu] AH00526: Syntax error on line 47 of /etc/httpd/conf.d/vhost-archivesphere-qa.conf:
** [out :: as1qa.dlt.psu.edu] An error occured reading the Keyfile.
describe "class names that are literals" do
before :all do
class GenericAsset < ActiveFedora::Base
property :set, predicate: ::RDF::DC.title, class_name: "Set"
end
end
after :all do
Object.send(:remove_const, :GenericAsset)
~/Projects/Github/psu-stewardship/archivesphere (poltergeist *%)$ bundle exec rspec spec/features/
/Users/awead/.gem/ruby/2.1.5/gems/rubyzip-0.9.9/lib/zip/constants.rb:2: warning: already initialized constant Zip::VERSION
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/awead/.rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138)
FF...F.F
Failures:
1) Creating a new accession should be successful
Failure/Error: click_on "Create Collection"
Capybara::Poltergeist::JavascriptError:
@awead
awead / gist:3dc4db181b8e5196ea27
Created April 28, 2015 15:30
Second cap command
~/Projects/Github/psu-stewardship/scholarsphere (master=)$ bundle exec cap staging deploy BRANCH_NAME=master --hosts ss1stage.dlt.psu.edu
** Invoke staging (first_time)
** Execute staging
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke rbenv:validate (first_time)
** Invoke rbenv:install (first_time)
** Execute rbenv:install
** Invoke rbenv:install_rbenv (first_time)
** Execute rbenv:install_rbenv