Roger's woze

April 30, 2010

jruby woes

Filed under: Uncategorized — rogerdpack @ 6:58 pm

Main.java:128:in `run’: java.lang.NoClassDefFoundError: org/jruby/exceptions/ThreadKill
from Main.java:97:in `main’

meant “you upgraded your jruby version while a program was using the jar, so it changed from underneath it” (don’t do that).

April 29, 2010

gpfs No space left on device when df reports that there is a lot of space left

Filed under: Uncategorized — rogerdpack @ 10:51 pm

this actually meant “you have met the file limit that is set for that gpfs device” (so increase it)

April 28, 2010

ruby build woe

Filed under: Uncategorized — rogerdpack @ 6:19 pm

gcc.exe: ../.././ext/bigdecimal/bigdecimal.def: No such file or directory
make[1]: *** [../../.ext/i386-mingw32/bigdecimal.so] Error 1
make[1]: Leaving directory `/c/dev/ruby/downloads/ruby_trunk/ext/bigdecimal’
make: *** [mkmain.sh] Error 1

meant “you need to run configure again, it appears, to get new makefiles”

April 27, 2010

maven woe

Filed under: Uncategorized — rogerdpack @ 6:12 pm

error: error reading /root/.m2/repository/org/apache/xbean/xbean-spring/2.7/xbean-spring-2.7.jar; error in opening zip file

meant “that zip file was corrupted–a 404 file — delete it then run maven again” (the jar file was corrupt–boo on maven).

April 25, 2010

ruby multi input methods

Filed under: Uncategorized — rogerdpack @ 6:00 am

I’ve contemplated in the past creating a little helper for ruby that allows the following:


class A
 def go_from_x_to_y(x, y)
 end
 multi_input :go_from_x_to_y
end

A.new.go_from(23).to(78)
or possibly
A.new.go_from_x(23).to_y(78)

Anybody think this would be interesting? Any takers thinking that this would be useful?
Just comment here and I’ll code it up.
Thanks.
-rp

April 24, 2010

rails woe

Filed under: Uncategorized — rogerdpack @ 7:40 pm
C:\dev\ruby\ties>ruby script\console
script/console:3:in `require’: C:/dev/ruby/ties/vendor/rails/railties/lib/commands/console.rb:19: syntax error, unexpected ‘:’, expecting keyword_then or ‘,’ or ‘;’ or ‘\n’
(SyntaxError)
when “p”: “production”
^
C:/dev/ruby/ties/vendor/rails/railties/lib/commands/console.rb:20: syntax error, unexpected keyword_when, expecting $end
when “d”: “development”
^
from script/console:3:in `<main>’
C:\dev\ruby\ties>pik 186

C:\dev\ruby\ties>ruby script\consolescript/console:3:in `require’: C:/dev/ruby/ties/vendor/rails/railties/lib/commands/console.rb:19: syntax error, unexpected ‘:’, expecting keyword_then or ‘,’ or ‘;’ or ‘\n’(SyntaxError)  when “p”: “production”           ^C:/dev/ruby/ties/vendor/rails/railties/lib/commands/console.rb:20: syntax error, unexpected keyword_when, expecting $end  when “d”: “development”      ^        from script/console:3:in `<main>’

meant “you wanted to run this with 1.8.6, not 1.9.x!”
C:\dev\ruby\ties>pik 186

ruby ripper

Filed under: Uncategorized — rogerdpack @ 6:20 pm

see http://wiki.github.com/rdp/ruby_tutorials_core/ripper

April 22, 2010

mingw pre processor macro

Filed under: Uncategorized — rogerdpack @ 7:14 pm

looks like this:

__MINGW32__

April 16, 2010

how to turn off sophos anti virus

Filed under: Uncategorized — rogerdpack @ 6:31 pm

Well, savservice.exe eats lots of cpu for me, and, unable to uninstall it from windows 7, for some reason, I think you can turn it off by disabling its service:

run “services.msc” (windows+r, type in services.msc)

right click on sophos xxx, change its status to disabled.

ack woe

Filed under: Uncategorized — rogerdpack @ 5:51 pm
C:\dev\ruby\downloads\fcgi-2.4.0>ack os_unix –make
Undefined subroutine &Getopt::Long::Parser::Configure called at /usr/lib/perl5/5.6/msys/Getopt/Long.pm line 184.

meant “you need to use a non msys version of perl, like a cygwin one or a better msys one or something”

Older Posts »

Powered by WordPress