Roger's woze

November 21, 2007

bug report

Filed under: Uncategorized — rogerdpack @ 7:44 am

./ruby: symbol lookup error: ./ruby: undefined symbol: ruby_init_stack

means ‘you must do make install for it to work in linux’

November 19, 2007

how to trap interrupt’s in ruby on windows capture

Filed under: Uncategorized — rogerdpack @ 7:56 pm

windows msvc:

trap :INT, proc {  puts ‘ha got your ctrl-c!’ }

and linux

trap ”SIGUSR1″, proc {‘whatever’} # I think

November 15, 2007

Filed under: Uncategorized — rogerdpack @ 5:12 am

./p2p_server.rb:223:in `startServer’: undefined method `P2PServerConnection’ for #<P2PServer:0xb763f6ac> (NoMethodError)

with eventmachine

means ‘put parenthesis around your arguments, it thinks the last parameter is a function call!

November 7, 2007

mingw ruby-prof

Filed under: Uncategorized — rogerdpack @ 5:42 am

install normal, then copy the .so to your i36-mingw directory, then create bin\ruby-prof.cmd

@ruby “c:/ruby_mingw4/bin/ruby-prof” %*

amazingly. Wow.

It won’t be compiled by default with object allocations enabled.  Wow is all I can say.

Powered by WordPress