This file contains 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
# | |
# pre-requesites : rvm 1.2.6 (http://rvm.beginrescueend.com/) | |
# | |
cd tmp/ | |
mkdir asier | |
cd asier/ | |
git://github.com/tosch/ruote-kit.git |
This file contains 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
$ 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' |
This file contains 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
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; |
This file contains 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
------------------------------------------------------------------------------- | |
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> |
This file contains 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
var https = require('https'); | |
var util = require('util'); | |
exports.handler = function(event, context) { | |
console.log(JSON.stringify(event, null, 2)); | |
console.log('From SNS:', event.Records[0].Sns.Message); | |
var postData = { | |
"channel": "#aws-sns", | |
"username": "AWS SNS via Lamda :: DevQa Cloud", |
This file contains 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
<?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> |
This file contains 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
import pytest | |
def test_spark_sanity_check(sc, tmpdir): | |
csv = tmpdir.mkdir(__name__).join('one_liner.csv') | |
csv.write("foo,bar,baz") | |
data = sc.textFile(str(csv)) | |
line_count = data.count() | |
assert line_count == 1 |
This file contains 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
$ 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) |
This file contains 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
<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> |
This file contains 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 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 |
OlderNewer