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
$ tmp/riak_test_server/bin/riak console
!!!!
!!!! WARNING: ulimit -n is 256; 1024 is the recommended minimum.
!!!!
Exec: /Users/justin/workspace/riak-1.0.3/erts-5.8.4/bin/erlexec -boot /Users/justin/workspace/riak-1.0.3/releases/1.0.3/riak -embedded -config /Users/justin/workspace/cocupu/tmp/riak_test_server/etc/app.config -pa ./lib/basho-patches -args_file /Users/justin/workspace/cocupu/tmp/riak_test_server/etc/vm.args -- console
Root: /Users/justin/workspace/riak-1.0.3
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:64] [hipe] [kernel-poll:true]
** ./lib/basho-patches/etop_txt.beam hides /Users/justin/workspace/riak-1.0.3/lib/observer-0.9.9/ebin/etop_txt.beam
** /Users/justin/workspace/riak-1.0.3/lib/observer-0.9.9/ebin/etop_txt.beam hides /Users/justin/workspace/riak-1.0.3/lib/basho-patches/etop_txt.beam
=erl_crash_dump:0.1
Thu Feb 23 10:47:59 2012
Slogan: Kernel pid terminated (application_controller) ({application_start_failure,riak_core,{shutdown,{riak_core_app,start,[normal,[]]}}})
System version: Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:64] [hipe] [kernel-poll:true]
Compiled: Wed Nov 2 12:43:12 2011
Taints:
Atoms: 11466
=memory
total: 11282040
processes: 597544
Exec: /usr/local/Cellar/riak/1.0.3/libexec/erts-5.8.5/bin/erlexec -boot /usr/local/Cellar/riak/1.0.3/libexec/releases/1.0.3/riak -embedded -config /Users/justin/workspace/cocupu/db/test/1/etc/app.config -pa ./lib/basho-patches -args_file /Users/justin/workspace/cocupu/db/test/1/etc/vm.args -- console
Root: /usr/local/Cellar/riak/1.0.3/libexec
Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:64] [hipe] [kernel-poll:true]
** ./lib/basho-patches/etop_txt.beam hides /usr/local/Cellar/riak/1.0.3/libexec/lib/observer-0.9.10/ebin/etop_txt.beam
** /usr/local/Cellar/riak/1.0.3/libexec/lib/observer-0.9.10/ebin/etop_txt.beam hides /usr/local/Cellar/riak/1.0.3/libexec/lib/basho-patches/etop_txt.beam
** Found 2 name clashes in code paths
context "with rightsMetadata" do
subject do
m = ModsArticle.new()
m.rightsMetadata.update_permissions("group"=>{"group-7"=>'read', 'group-8'=>'edit'})
m.save
m
end
it "should have read groups accessor" do
subject.read_groups.should == ['group-7']
end
@jcoyne
jcoyne / gist:2830451
Created May 29, 2012 20:17
Hydra head gemfile (broken)
PATH
remote: .
specs:
hydra-head (4.0.1)
RedCloth (= 4.2.9)
active-fedora (~> 4.1.0)
blacklight (~> 3.4.2)
block_helpers
cancan
devise
class SomethingController
def update
...
if (obj.save)
update_success(obj)
else
update_failure(obj)
end
end
1.9.3p194 :016 > work = Vrawork.create()
=> #<Vrawork:-4244464321902700475 @pid="changeme:37" >
1.9.3p194 :017 > work.VRA.content
=> nil
1.9.3p194 :018 > work.save
=> true
1.9.3p194 :019 > work.VRA.content
=> "<vra:vra xmlns=\"http://www.vraweb.org/vracore4.htm\" xmlns:vra=\"http://www.vraweb.org/vracore4.htm\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.loc.gov/standards/vracore/vra.xsd\">\n <vra:image refid=\"\">\n <vra:agentSet>\n <vra:display/>\n <vra:agent>\n <vra:name/>\n <vra:attribution/>\n </vra:agent>\n </vra:agentSet>\n <vra:culturalContextSet>\n <vra:display/>\n </vra:culturalContextSet>\n <vra:dateSet>\n <vra:display>\n <vra:date>\n <vra:dateContent/>\n <vra:dateType type=\"\"/>\n <vra:earliestDate/>\n <vra:latestDate/>\n </vra:date>\n </vra:display>\n </vra:dateSet>\n <vra:descriptionSet>\n <vra:display/>\n <vra:descrip
1.9.3p194 :004 > work = Vrawork.create()
=> #<Vrawork:-2147144424747783014 @pid="changeme:39" >
1.9.3p194 :005 > work.VRA.content
=> nil
1.9.3p194 :006 > work.save
=> true
1.9.3p194 :007 > work.VRA.content
=> nil
//= require jquery
//= require jquery_ujs
//
// Required by Blacklight
//= require jquery-ui
//= require blacklight/blacklight
//= require_tree .
h3. 4.1.0
* Add AccessControlsEnforcement to AssetsController
* Upgrade to active fedora ~>4.1
* Upgrade to solrizer-fedora 2.1.0
* Upgrade to blacklight ~> 3.4
* Improved access controls api
* HYDRA-817 allow overriding of where we redirect_to, so that nested routes will work
* Extracted hydra-mods and hydra-access-controls
* Deprecation fest in preparation for 5.0
* HYDRA-822 Move GlobalConfig into Hydra. It was removed from Blacklight.