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
| Not an ARRAY reference at /export/tmp/app/venda-scripts/../venda-siteperl/lib/perl5/Plack/Middleware/StackTrace.pm line 27. |
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
| sub call { | |
| my ($self, $env) = @_; | |
| my $response = [...]; # regular PSGI response | |
| return sub { | |
| my $write = shift; | |
| $write->($response); | |
| post_hit_stuff(); | |
| }; |
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
| [#|2010-03-08T14:44:12.157+0000|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=1647;_ThreadName=ActiveMQ Session Task;_RequestID=4134e88a-356b-4bb9-aae8-50adfe009c5e;|java.lang.VerifyError: class JRuby$$Rack$$Queues$$LocalRackApplication_1044390618 overrides final method getRuntime.()Lorg/jruby/Ruby; | |
| at java.lang.ClassLoader.defineClass1(Native Method) | |
| at java.lang.ClassLoader.defineClass(ClassLoader.java:621) | |
| at org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:39) | |
| at org.jruby.java.codegen.RealClassGenerator.defineRealImplClass(RealClassGenerator.java:459) | |
| at org.jruby.java.codegen.RealClassGenerator.createRealImplClass(RealClassGenerator.java:70) | |
| at org.jruby.javasupport.Java.generateRealClass(Java.java:1139) | |
| at org.jruby.java.proxies.JavaInterfaceTemplate$9.call(JavaInterfaceTemplate.java:262) | |
| at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:182) | |
| at org.jruby.internal.r |
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
| public class FirehoseFn extends BaseOperation implements Function { | |
| public FirehoseFn() { | |
| super(2, new Fields("daterange", "duration")); | |
| } | |
| public void operate( FlowProcess flowProcess, FunctionCall functionCall ) { | |
| TupleEntry arguments = functionCall.getArguments(); | |
| Tuple result = new Tuple(); |
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
| public class MovingAverage { | |
| public static void main(String[] args) throws Exception { | |
| Fields keyFields = new Fields( "date" ); | |
| String[] familyNames = {"basic"}; | |
| Fields[] valueFields = new Fields[]{new Fields("duration", "datemillis")}; | |
| Tap source = new HBaseTap("candrewsdev", new HBaseScheme( keyFields, familyNames, valueFields ) ); | |
| Tap sink = new Lfs(new Fields("daterange", "average"), "/tmp/average.out", SinkMode.REPLACE); |
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
| # setup for CPAN, not CPANPLUS: | |
| $ENV{PERL_AUTOINSTALL_PREFER_CPAN} = 1; | |
| # unattended mode | |
| $ENV{PERL_MM_USE_DEFAULT} = '1'; | |
| # Only use core and site modules | |
| use FindBin; | |
| use local::lib '--self-contained', "$FindBin::Bin/siteperl"; | |
| use lib "$FindBin::Bin/siteperl"; |
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
| package com.venda.jruby; | |
| import java.util.ArrayList; | |
| import org.jruby.Ruby; | |
| import org.jruby.RubyObjectAdapter; | |
| import org.jruby.RubyRuntimeAdapter; | |
| import org.jruby.javasupport.JavaEmbedUtils; | |
| import org.jruby.runtime.builtin.IRubyObject; | |
| import org.jruby.RubyInstanceConfig; |
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
| chris-mbp-en1:epicfail chris$ rake -T --trace | |
| (in /Users/chris/Projects/venda/epicfail) | |
| ** Invoke environment (first_time) | |
| ** Execute environment | |
| rake aborted! | |
| can't convert Module into String | |
| /usr/local/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2449:in `load_imports' | |
| /usr/local/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2390:in `raw_load_rakefile' | |
| /usr/local/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile' | |
| /usr/local/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' |
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
| # System - Centos 5, RPM perl: | |
| perl-5.8.8-18.el5_3.1 | |
| # OK: | |
| [chris@dev ~]$ /usr/bin/perl -MScalar::Util=weaken -e1 | |
| [chris@dev ~]$ | |
| # same, but local::libbed, self-contained: | |
| [chris@dev ~]$ cat test.pl | |
| use local::lib '--self-contained'; |
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 'lib/cascading-core-1.1.0-54.jar' | |
| require 'lib/cascading-1.1.0-54.jar' | |
| require 'lib/hadoop-0.20.0-core.jar' | |
| require 'lib/jgrapht-jdk1.6.jar' | |
| require 'lib/log4j-1.2.15.jar' | |
| require 'lib/commons-logging-1.0.4.jar' | |
| require 'lib/commons-logging-api-1.0.4.jar' | |
| require 'lib/commons-codec-1.3.jar' |