Skip to content

Instantly share code, notes, and snippets.

View eddies's full-sized avatar

Edwin Shin eddies

  • TRA
  • in the space-time continuum
View GitHub Profile
#
# pre-requesites : rvm 1.2.6 (http://rvm.beginrescueend.com/)
#
cd tmp/
mkdir asier
cd asier/
git://github.com/tosch/ruote-kit.git
@eddies
eddies / gist:978603
Created May 18, 2011 13:53
RVM + bundle install for gem w/ native extensions fails, but gem install succeeds
$ bundle install
Installing nokogiri (1.4.4) with native extensions /usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/installer.rb:533:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/usr/local/rvm/rubies/ree-1.8.7-2011.03/bin/ruby extconf.rb
Gem files will remain installed in /usr/local/rvm/gems/ree-1.8.7-2011.03@hyhull/gems/nokogiri-1.4.4 for inspection.
Results logged to /usr/local/rvm/gems/ree-1.8.7-2011.03@hyhull/gems/nokogiri-1.4.4/ext/nokogiri/gem_make.out
from /usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/installer.rb:486:in `each'
from /usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/installer.rb:486:in `build_extensions'
from /usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/installer.rb:159:in `install'
@eddies
eddies / MultipleClientIT.java
Created June 7, 2012 06:43
fedora-client test for multiple clients
package com.yourmediashelf.fedora.client;
import static com.yourmediashelf.fedora.client.FedoraClient.addRelationship;
import static org.junit.Assert.assertEquals;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.yourmediashelf.fedora.client.request.AddRelationship;
@eddies
eddies / org.fcrepo.test.api.TestRISearch.txt
Created July 5, 2012 18:23
riSearch test failure (configB, postgres & mptstore)
-------------------------------------------------------------------------------
Test set: org.fcrepo.test.api.TestRISearch
-------------------------------------------------------------------------------
Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 13.753 sec <<< F
AILURE!
testSpringTripleGenerators(org.fcrepo.test.api.TestRISearch) Time elapsed: 0.02
9 sec <<< FAILURE!
junit.framework.AssertionFailedError: Expected 1 results from SPO query <info:fe
dora/demo:5> <info:fedora/fedora-system:test/tests#tripleGenerator> "true", but
got 0 expected:<1> but was:<0>
@eddies
eddies / rightsMetadata.xsd
Created September 11, 2012 14:47
Sample schema for rightsMetadata (not authoritative)
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://hydra-collab.stanford.edu/schemas/rightsMetadata/v1" xmlns:v1="http://hydra-collab.stanford.edu/schemas/rightsMetadata/v1">
<xs:element name="rightsMetadata">
<xs:complexType>
<xs:sequence>
<xs:element ref="v1:copyright"/>
<xs:element maxOccurs="unbounded" ref="v1:access"/>
<xs:element ref="v1:use"/>
</xs:sequence>
</xs:complexType>
@eddies
eddies / paster_output.txt
Created January 15, 2013 15:21
rdfdatabank paster error
$ paster setup-app development.ini
Traceback (most recent call last):
File "/home/foo/workspace/RDFDatabank/bin/paster", line 8, in <module>
load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
File "/home/foo/workspace/RDFDatabank/lib/python2.7/site-packages/paste/script/command.py", line 93, in run
commands = get_commands()
File "/home/foo/workspace/RDFDatabank/lib/python2.7/site-packages/paste/script/command.py", line 135, in get_commands
plugins = pluginlib.resolve_plugins(plugins)
File "/home/foo/workspace/RDFDatabank/lib/python2.7/site-packages/paste/script/pluginlib.py", line 82, in resolve_plugins
pkg_resources.require(plugin)
@eddies
eddies / settings.xml
Created February 11, 2013 00:53
Mirror settings for fedora4lib attendees. Add the following to your ~/.m2/settings.xml
<mirrors>
<mirror>
<id>fedora4lib</id>
<mirrorOf>central,jboss-public-repository-group,maven2-repository.dev.java.net</mirrorOf>
<url>http://maven.fedora4lib.org:8081/nexus/content/groups/public</url>
</mirror>
</mirrors>
@eddies
eddies / gist:5010180
Created February 22, 2013 02:00
jruby sequencer stacktrace
ERROR 09:50:31.645 (sequencers) Unable to initialize the sequencer "{ "description" : "Example fcrepo sequencer in JRuby\'" , "classname" : "org.fcrepo.example.ReverseContentSequencer" , "pathExpressions" : [ "fedora:/jruby/(.*)[jcr:content/@jcr:data] => fedora:/jruby/$1" ] }" for repository "repo": org.fcrepo.example.ReverseContentSequencer
java.lang.ClassNotFoundException: org.fcrepo.example.ReverseContentSequencer
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[na:1.7.0-u10-b09]
at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[na:1.7.0-u10-b09]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0-u10-b09]
at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[na:1.7.0-u10-b09]
at java.lang.ClassLoader.loadClass(ClassLoader.java:423) ~[na:1.7.0-u10-b09]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) ~[na:1.7.0-u10-b09]
at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ~[na:1.7.0-u10-b09]
at java.lang.Class.forName0(Native
@eddies
eddies / gist:5483316
Created April 29, 2013 17:42
org.fcrepo.binary.PolicyDecisionPoint exception
ERROR 01:36:23.156 (ContextLoader) Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.fcrepo.services.DatastreamService#0': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.fcrepo.binary.PolicyDecisionPoint org.fcrepo.services.DatastreamService.storagePolicyDecisionPoint; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.fcrepo.binary.PolicyDecisionPoint] is defined: expected single matching bean but found 2: [storagePolicyBean, org.fcrepo.binary.PolicyDecisionPoint#0]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:288) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0
@eddies
eddies / FCREPO-1191
Last active December 16, 2015 22:09
addRelationship debug output of POST to fcrepo 3.6.2
1 * Client out-bound request
1 > POST http://localhost:9090/fedora/objects/test-rest:1/relationships/new?subject=info:fedora/test-rest:1&predicate=urn:foo/testAddRelationship&object=urn:foo/%ED%95%9C
1 * Client in-bound response
1 < 200
1 < Date: Thu, 02 May 2013 19:25:37 GMT
1 < Content-Length: 4
1 < Set-Cookie: JSESSIONID=1F9DDDB40836F0819F73288AEC7D312B; Path=/fedora/; HttpOnly
1 < Content-Type: text/html
1 < Server: Apache-Coyote/1.1
1 <