Skip to content

Instantly share code, notes, and snippets.

install-gems:
run-junit-interpreted-short:
[echo] compile=OFF, jit.threshold=20, jit.maxsize=1000000000, jit.max=-1, objectspace=true threadpool=false reflection=fa
n=ruby1_8
[junit] Testsuite: org.jruby.test.ScriptTestSuite
[junit] Tests run: 73, Failures: 0, Errors: 0, Time elapsed: 12.918 sec
[junit]
[junit] Testsuite: org.jruby.test.JRubyTestSuite
t [junit] Error:
@rdp
rdp / gist:496321
Created July 28, 2010 21:12
vlc debug output for starting a screen capture
main debug: incoming request - stopping current input
main debug: dying input
main debug: control type=0
main debug: control: stopping input
main debug: dying input
main debug: thread times: real 0m30.196166s, kernel 0m0.015600s, user 0m0.093600s
main debug: removing module "rawvideo"
main debug: killing decoder fourcc `RV15', 0 PES in FIFO
main debug: removing a sout input (sout_input:03178ea0)
main debug: removing module "screen"
C:\dev\ruby\ruby-prof>ruby -vrtracer test_array.rb
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]
#0:ruby:0:Kernel:<: ?
#0:ruby:0:IO:>: ?
#0:ruby:0:IO:<: ?
#0:ruby:0:IO:>: ?
#0:ruby:0:IO:<: ?
#0:test_array.rb:1::-: a = [1,2,3]
#0:test_array.rb:2::-: a.each{|n|
#0:test_array.rb:2:Array:>: a.each{|n|
@rdp
rdp / gist:517774
Created August 10, 2010 18:53
videolan not streaming to display
qt4 debug: MRL passed to the Sout: screen://
qt4 debug: Adding option: screen-fps=5.000000
qt4 debug: Adding option: screen-caching=300
qt4 debug: Adding option: :sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp3,ab=128,channels=2,samplerate=44100}:duplicate{dst=http{dst=:8080/go.mpg},dst=display}
qt4 debug: Adding option: no-sout-rtp-sap
qt4 debug: Adding option: no-sout-standard-sap
qt4 debug: Adding option: sout-keep
main debug: adding item `Streaming' ( screen:// )
qt4 debug: Adding a new MRL to recent ones: screen://
main debug: rebuilding array of current - root Playlist
require 'ffi'
module Win
extend FFI::Library
ffi_lib 'user32'
ffi_convention :stdcall
# BOOL CALLBACK EnumWindowProc(HWND hwnd, LPARAM lParam)
callback :enum_callback, [ :pointer, :long ], :bool
@rdp
rdp / gist:519744
Created August 11, 2010 20:54
rake fails until you delete the original .gemspec file
C:\installs\trunk3_installed>cd bin
C:\installs\trunk3_installed\bin>rake -T
C:/installs/trunk3_installed/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path': can't find executable rake for rake-0.8.7 (Gem::Exception)
from C:/installs/trunk3_installed/bin/rake:19:in `<main>'
C:\installs\trunk3_installed\bin>cd ..
C:\installs\trunk3_installed>cat ./lib/ruby/gems/1.9.1/specifications/rake.gemspec
Gem::Specification.new do |s|
require 'socket'
host, port = 'localhost', 7000
TCPServer.open(host, port) do |server|
while client = server.accept
readfds = true
got = nil
begin
readfds, writefds, exceptfds = select([client], nil, nil, 0.1)
Current time: 0:00:45.2 next action will be at 0:00:46.0s (r,d,v,q to quit): org.jruby.compiler.NotCompilableException: JITed method size exceeds configured max of 10000
at org.jruby.compiler.JITCompiler$JITClassGenerator.compile(JITCompiler.java:334)
at org.jruby.compiler.JITCompiler$JITClassGenerator.generate(JITCompiler.java:356)
at org.jruby.util.ClassCache.defineClass(ClassCache.java:123)
at org.jruby.util.ClassCache.cacheClassByKey(ClassCache.java:92)
at org.jruby.compiler.JITCompiler.jitThresholdReached(JITCompiler.java:139)
at org.jruby.compiler.JITCompiler.jitIsEnabled(JITCompiler.java:101)
at org.jruby.compiler.JITCompiler.tryJIT(JITCompiler.java:81)
at org.jruby.internal.runtime.methods.DefaultMethod.tryJitReturnMethod(DefaultMethod.java:131)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:156)
D:\installs\devkit-4.5.0>ruby dk.rb install
Unable to find RubyGems in site_ruby or core Ruby. Falling back
to installing gcc, g++, make, and sh into D:\installs\ruby-1.9.2-p0-i386-mingw32
[INFO] Installing /devkit.rb
D:\installs\devkit-4.5.0>cat config.yml
# This configuration file contains the absolute path locations of all
# installed Rubies to be enhanced to work with the DevKit. This config
# file is generated by the 'ruby dk.rb init' step and may be modified
# before running the 'ruby dk.rb install' step. To include any installed
Preparing the GUI for the current project's repository.
undefined method `[]' for nil:NilClass
C:/ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.4.1/plugins/scm_git/vendor/ruby-git/lib/git/status.rb:104:in `construct_status'
C:/ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.4.1/plugins/scm_git/vendor/ruby-git/lib/git/status.rb:91:in `each'
C:/ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.4.1/plugins/scm_git/vendor/ruby-git/lib/git/status.rb:91:in `construct_status'
C:/ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.4.1/plugins/scm_git/vendor/ruby-git/lib/git/status.rb:8:in `initialize'
C:/ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.4.1/plugins/scm_git/vendor/ruby-git/lib/git/base.rb:175:in `new'
C:/ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.4.1/plugins/scm_git/vendor/ruby-git/lib/git/base.rb:175:in `status'
C:/ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.4.1/plugins/scm_git/lib/scm_git.rb:86:in `cache'
C:/ruby19/lib/ruby/gems/1.9.1/gems/redcar-0.4.1/plugins/scm/vendor/ruby-blockcache/lib/blockcache.rb:49:in `call'