Roger's woze

July 31, 2009

rails woe

Filed under: Uncategorized — rogerdpack @ 10:06 pm
C:/dev/ruby/ties/vendor/rails/activesupport/lib/active_support/core_ext/string/conversions.rb:1:in `require’: no such file
to load — parsedate (MissingSourceFile)

C:/dev/ruby/ties/vendor/rails/activesupport/lib/active_support/core_ext/string/conversions.rb:1:in `require’: no such file

to load — parsedate (MissingSourceFile)

meant “you need a newer version of rails to work with 1.9 silly”

named arguments woe

Filed under: Uncategorized — rogerdpack @ 4:05 pm

C:\dev\ruby\p2pwebclient\src>ruby tests_working\test_all.rb

C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:42:in `module_eval’: C:/dev/ruby/p
2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:130: syntax error, unexpected keyword_and (Synt
axError)
and = opts.key?(:and) ? opts[:and] : args.fetch(12)
^
C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:166: syntax error, unexpected keyw
ord_in
in = opts.key?(:in) ? opts[:in] : args.fetch(18)
^
C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:208: syntax error, unexpected ‘=’
for = opts.key?(:for) ? opts[:for] : args.fetch(25)
^
C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:219: syntax error, unexpected ‘,’
… we, ll, keep, pool, size, and, pool, creation, race, size, …
…                               ^
C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:219: syntax error, unexpected keyw
ord_in, expecting ‘=’
…creation, race, size, close, in, number, to, free, up, some,…
…                               ^
C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:219: syntax error, unexpected ‘,’
…ee, up, some, descriptors, for, ourselves, &block
…                               ^
from C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:42:in `block in named
_arguments_for’
from C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:5:in `each’
from C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:5:in `named_arguments
_for’
from C:/dev/ruby/p2pwebclient/src/lib/opendht/opendht_em.rb:50:in `<class:OpenDHTEM>’
from C:/dev/ruby/p2pwebclient/src/lib/opendht/opendht_em.rb:3:in `<top (required)>’This

This odd error meant “you have a ruby comment on the line of a method definition–don’t do that!”

C:\dev\ruby\p2pwebclient\src>ruby tests_working\test_all.rb

C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:42:in `module_eval’: C:/dev/ruby/p

2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:130: syntax error, unexpected keyword_and (Synt

axError)

and = opts.key?(:and) ? opts[:and] : args.fetch(12)

^

C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:166: syntax error, unexpected keyw

ord_in

in = opts.key?(:in) ? opts[:in] : args.fetch(18)

^

C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:208: syntax error, unexpected ‘=’

for = opts.key?(:for) ? opts[:for] : args.fetch(25)

^

C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:219: syntax error, unexpected ‘,’

… we, ll, keep, pool, size, and, pool, creation, race, size, …

…                               ^

C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:219: syntax error, unexpected keyw

ord_in, expecting ‘=’

…creation, race, size, close, in, number, to, free, up, some,…

…                               ^

C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:219: syntax error, unexpected ‘,’

…ee, up, some, descriptors, for, ourselves, &block

…                               ^

from C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:42:in `block in named

_arguments_for’

from C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:5:in `each’

from C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:5:in `named_arguments

_for’

from C:/dev/ruby/p2pwebclient/src/lib/opendht/opendht_em.rb:50:in `<class:OpenDHTEM>’

from C:/dev/ruby/p2pwebclient/src/lib/opendht/opendht_em.rb:3:in `<top (required)>’

how to make windows beautiful

Filed under: Uncategorized — rogerdpack @ 12:42 am

Windows default look is somewhat grating, I’ll admit.
How to make it better?

Apply a theme via allure!

http://ccollomb.free.fr/allure/

download the one with aero in it and voila–a beautiful windows.

July 30, 2009

ruby how to get thread backtrace stacktrace

Filed under: Uncategorized — rogerdpack @ 9:29 pm

try using the “caller” method

ruby singleton class

Filed under: Uncategorized — rogerdpack @ 3:36 pm

here’s how to get it:

(class << hello; self; end)

of

class Object
def singleton_class
(class << hello; self; end)
end
end

how to install ruby-debug on ruby 1.9

Filed under: Uncategorized — rogerdpack @ 12:03 am

Here’s how…

$ gem install mark-moseley-linecache — –with-ruby-include=c:/dev/ruby/downloads/ruby_trunk # for mingw–replace with your own path to source for linux
$ gem install mark-moseley-columnize — –with-ruby-include=c:/dev/ruby/downloads/ruby_trunk
$ gem install mark-moseley-ruby-debug-base — –with-ruby-include=c:/dev/ruby/downloads/ruby_trunk
$ git clone http://github.com/mark-moseley/ruby-debug.git
$ cd ruby-debug
$ rake package # create ruby-debug.gem
$ cd pkg
$ gem install ruby-debug-0.11.gem –ignore-dependencies

Follow the instructions on the wiki: http://wiki.github.com/mark-moseley/ruby-debug
and experience the goodness of ruby-debug.

July 29, 2009

ruby woe

Filed under: Uncategorized — rogerdpack @ 10:10 pm

C:\dev\ruby\arguments\lib\arguments>ruby class.rb
class.rb:50:in `include’: wrong argument type Class (expected Module) (TypeError)
from class.rb:50:in `
from class.rb:50:in `

meant “you can’t mix in a class, only a module [which is odd, but hey]“

svn woe

Filed under: Uncategorized — rogerdpack @ 1:03 am
$ svn co svn+ssh:///wilkboardonline.com/home/wilkboar/svn/all/ties
ssh: connect to host  port 22: Connection refused
svn: Network connection closed unexpectedly

$ svn co svn+ssh:///wilkboardonline.com/home/wilkboar/svn/all/ties

ssh: connect to host  port 22: Connection refused

svn: Network connection closed unexpectedly

meant “you have an extra slash in the url”

July 28, 2009

how to make windows actually fast!

Filed under: Uncategorized — rogerdpack @ 1:39 am

We know that typically windows is slow. Dog slow. Awful.

Reason? Disk thrashing and/or running out of available RAM.

Solution? use Google Chrome to save on RAM.  Solved!

July 27, 2009

hoe woe

Filed under: Uncategorized — rogerdpack @ 11:48 pm

C:\dev_c\downloads\rubyinline>rake -T
(in C:/dev_c/downloads/rubyinline)
rake aborted!
undefined method `define_seattlerb_tasks’ for #<Hoe:0x332ddb0>
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile

meant “run gem install hoe you apparently needed a newer version”

Older Posts »

Powered by WordPress