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
require 'java' | |
require 'jOpenDocument-1.0.jar' | |
include_class 'javax.swing.table.AbstractTableModel' | |
include_class 'org.jopendocument.dom.spreadsheet.SpreadSheet' | |
include_class 'org.jopendocument.dom.OOUtils' | |
class MyTable < AbstractTableModel | |
def initialize |
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
$ warble --trace | |
warble aborted! | |
undefined method `create_database' for class `#<Class:0x11a0d7ed8>' | |
/home/pldms/Development/CVS-Other/jruby/lib/ruby/gems/1.8/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:211:in `load_dependency' | |
/home/pldms/Development/CVS-Other/jruby/lib/ruby/gems/1.8/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:215:in `load' | |
/home/pldms/Development/CVS-Other/jruby/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/lib/jdbc_adapter/rake_tasks.rb:5 | |
/home/pldms/Development/CVS-Other/jruby/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/lib/jdbc_adapter/rake_tasks.rb:215:in `load' | |
/home/pldms/Development/CVS-Other/jruby/lib/ruby/gems/1.8/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:215:in `load' | |
/home/pldms/Development/CVS-Other/jruby/lib/ruby/gems/1.8/gems/activesupport-3.0.0.rc/lib/active_support/dependencies.rb:205:in `load_dependency' | |
/home/pldms/Development/CVS-Other/jruby/lib/ruby/gems/1.8/gems/activesupport-3.0.0. |
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
SEVERE: Application Error | |
org.jruby.rack.RackInitializationException: Valid types are [:development, :runtime], not nil | |
from /home/pldms/Applications/apache-tomcat-6.0.14/webapps/research-revealed-merb/WEB-INF/gems/gems/bundler-1.0.0.rc.3/lib/bundler/resolver.rb:355:in `new' | |
from /home/pldms/Applications/apache-tomcat-6.0.14/webapps/research-revealed-merb/WEB-INF/gems/gems/bundler-1.0.0.rc.3/lib/bundler/resolver.rb:355:in `search' | |
from /home/pldms/Applications/apache-tomcat-6.0.14/webapps/research-revealed-merb/WEB-INF/gems/gems/bundler-1.0.0.rc.3/lib/bundler/resolver.rb:181:in `resolve' | |
from /home/pldms/Applications/apache-tomcat-6.0.14/webapps/research-revealed-merb/WEB-INF/gems/gems/bundler-1.0.0.rc.3/lib/bundler/resolver.rb:177:in `each' | |
from /home/pldms/Applications/apache-tomcat-6.0.14/webapps/research-revealed-merb/WEB-INF/gems/gems/bundler-1.0.0.rc.3/lib/bundler/resolver.rb:177:in `sort_by' | |
from /home/pldms/Applications/apache-tomcat-6.0.14/webapps/research-revealed-merb/WEB-INF/gems/gems/bundle |
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
import example.Foo; | |
public class CallRuby | |
{ | |
public static void main(String[] args) { | |
Foo f = new Foo(); | |
f.hello(); | |
} | |
} |
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
require 'java' | |
java_package 'example' | |
class Foo | |
def hello | |
puts 'Hi' | |
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
Op op = constraintsToOp(constraints); | |
// Using count(*) -- lost! | |
E_Aggregator agg = new E_Aggregator("name", AggCount.get().create()); | |
op = new OpGroupAgg(op, new VarExprList(), Collections.singletonList(agg)); | |
Query q = OpAsQuery.asQuery(op); |
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
# DO NOT MODIFY THIS FILE | |
# Generated by Bundler 0.9.25 | |
require 'digest/sha1' | |
require 'yaml' | |
require 'pathname' | |
require 'rubygems' | |
Gem.source_index # ensure Rubygems is fully loaded in Ruby 1.9 | |
module Gem |
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
SEVERE: Error: application initialization failed | |
org.jruby.rack.RackInitializationException: unable to create shared application instance | |
at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:39) | |
at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40) | |
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) | |
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342) | |
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) | |
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) | |
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) | |
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830) |
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
$ unzip ~/Downloads/joseki-3.4.1.zip | |
$ unzip ~/Downloads/tdb-0.8.5.zip | |
$ cd Joseki-3.4.1/lib | |
$ cp ../../TDB-0.8.5/lib/*.jar . | |
$ rm arq-2.8.1* iri-0.7.jar slf4j-*-1.5.6* | |
$ cd .. | |
$ cp joseki-config-tdb.ttl joseki-config.ttl | |
# Plus fix to web.xml, to let joseki handle /update/service |
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
$ jar tf check.jar | |
META-INF/ | |
META-INF/MANIFEST.MF | |
foo/ | |
foo/bar.rb | |
$ export CLASSPATH=check.jar | |
$ jruby -e 'require "foo/bar"' | |
hello |