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
require 'rubygems' | |
require 'net/http' | |
require 'json' | |
require 'uri' | |
$KCODE='UTF-8' | |
dev_id = "YOUR DEVELOPER ID" | |
aff_id = "YOUR AFFILIATE ID" |
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
# | |
1. | |
10-13 08:37PM 04.377 / 500 30063ms 36014cpu_ms 21api_cpu_ms 2kb Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 GTB7.1 ( .NET CLR 3.5.30729),gzip(gfe) | |
See details | |
202.7.107.76 - - [13/Oct/2010:20:37:34 -0700] "GET / HTTP/1.1" 500 2265 "http://yellowcheer.appspot.com/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 GTB7.1 ( .NET CLR 3.5.30729),gzip(gfe)" "yellowcheer.appspot.com" ms=30064 cpu_ms=36014 api_cpu_ms=22 cpm_usd=1.000891 exit_code=104 | |
2. | |
I 10-13 08:37PM 32.904 |
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
# | |
1. | |
10-13 08:09PM 58.680 / 500 29835ms 24695cpu_ms 0kb Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3,gzip(gfe) | |
See details | |
118.243.71.146 - - [13/Oct/2010:20:10:28 -0700] "GET / HTTP/1.1" 500 0 - "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3,gzip(gfe)" "yellowcheer.appspot.com" ms=29836 cpu_ms=24695 api_cpu_ms=0 cpm_usd=0.686016 exit_code=104 | |
2. | |
E 10-13 08:10PM 27.930 |
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
# | |
1. | |
10-13 07:13PM 00.809 / 500 30088ms 32765cpu_ms 0kb Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3,gzip(gfe) | |
See details | |
118.243.71.146 - - [13/Oct/2010:19:13:30 -0700] "GET / HTTP/1.1" 500 854 - "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3,gzip(gfe)" "yellowcheer.appspot.com" ms=30089 cpu_ms=32765 api_cpu_ms=0 cpm_usd=0.910279 exit_code=104 | |
2. | |
E 10-13 07:13PM 29.952 |
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
javax.servlet.ServletContext log: ThreadError - access denied (java.lang.RuntimePermission modifyThreadGroup): | |
generator_internal:134:in `initialize' | |
generator_internal:134:in `new' | |
generator_internal:134:in `_run' | |
generator_internal:129:in `_run_enum' | |
generator_internal:199:in `_next_element' | |
generator_internal:212:in `end?' | |
generator_internal:226:in `current' | |
generator_internal:217:in `next' | |
generator_internal:320:in `next' |
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
2011-03-17 07:56:27.176 | |
javax.servlet.ServletContext log: Java::JavaLang::NoClassDefFoundError - java.nio.channels.SocketChannel is a restricted class. Please see the Google App Engine developer's guide for more details.: | |
com.google.apphosting.runtime.security.shared.stub.java.nio.channels.SocketChannel.<clinit>(SocketChannel.java) | |
org.jruby.ext.socket.RubyTCPSocket.initialize(RubyTCPSocket.java:103) | |
org.jruby.ext.socket.RubyTCPSocket$i_method_0_2$RUBYINVOKER$initialize.call(org/jruby/ext/socket/RubyTCPSocket$i_method_0_2$RUBYINVOKER$initialize.gen:65535) | |
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:642) | |
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:269) | |
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:77) | |
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:82) | |
org.jruby.RubyClass.newInstance(RubyClass.java:773) |
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
no param with arguments matching [class org.jruby.RubySymbol, class org.jruby.RubyString] on object #<Java::ComGoogleAppengineApiLabsTaskqueue::TaskOptions:0x2b2fec> | |
file:/base/data/home/apps/tohoku-shien/1.349080269737285931/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/appengine-apis-0.0.23/lib/appengine-apis/labs/taskqueue.rb:172:in `each' | |
file:/base/data/home/apps/tohoku-shien/1.349080269737285931/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/appengine-apis-0.0.23/lib/appengine-apis/labs/taskqueue.rb:172:in `convert_options' | |
file:/base/data/home/apps/tohoku-shien/1.349080269737285931/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/appengine-apis-0.0.23/lib/appengine-apis/labs/taskqueue.rb:251:in `convert_exceptions' | |
file:/base/data/home/apps/tohoku-shien/1.349080269737285931/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/appengine-apis-0.0.23/lib/appengine-apis/labs/taskqueue.rb:140:in `convert_options' | |
file:/base/data/home/apps/tohoku-shien/1.349080269737285931/WEB-INF/lib/gems.jar!/bund |
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
def create_class | |
Class.new | |
end | |
MyClass = create_class | |
MyClass.class_eval do | |
p self #=> #<Class:0xb775f6a4> | |
def greet | |
puts 'hi' |
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
C 2011-03-25 20:18:45.504 | |
/!\ FAILSAFE /!\ Sat Mar 26 03:18:45 UTC 2011 | |
Status: 500 Internal Server Error | |
undefined method `call_with_exception' for java.lang.NullPointerException:Java::JavaLang::NullPointerException | |
file:/base/data/home/apps/tohoku-shien/3.349263780159279701/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/actionpack-2.3.10/lib/action_controller/dispatcher.rb:90:in `dispatch' | |
file:/base/data/home/apps/tohoku-shien/3.349263780159279701/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/actionpack-2.3.10/lib/action_controller/dispatcher.rb:121:in `_call' | |
file:/base/data/home/apps/tohoku-shien/3.349263780159279701/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/actionpack-2.3.10/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack' | |
file:/base/data/home/apps/tohoku-shien/3.349263780159279701/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/actionpack-2.3.10/lib/action_controller/string_coercion.rb:25:in `call' | |
file:/base/data/home/apps/tohoku-shien/3.349 |
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
array = ARGV.dup | |
p Hash[*(array.uniq.map {|a| [a, array.select {|b| a == b }.size] }.flatten)] |
OlderNewer