wackimonki | can i view my local version of rdoc in a browser? |
alterego | wackimonki, file:///where/your/rdoc/file/is.html |
wackimonki | alterego, they all seem to be in ja format can i run a ruby doc server somehow? like gem_server for ruby on rails |
alterego | gem_server isn't for rails .. It's for gems. What do you mean 'ja' format? |
wackimonki | in my C:\dev\InstantRails\ruby\doc\ruby\ruby-1.8.5 folder, they are a lot of files ending in .ja no .html's |
Flwyd | I understand why ++i and i++ don't do what they do in many other languages, but why does this do what it does: i = 1; print ++i # prints 1 i = 1; print i++ # syntax error |
Olathe | + is like -. It gives the number itself. |
Flwyd | ah |
manveru | they are both methods in this case an unary one |
Flwyd | and --1 == 1 |
manveru | yes it's like you call 1.-.- not that this would work but, from the principle :) |
ajturner | I'm using active_record gem for a project, but after about 2 mins, I'm getting "MySQL server has gone away" |
Flwyd | or (- (- 1)) and (+ (+ 1)) in lisp |
Olathe | 1.__send__ :-@ |
ajturner | is there a way I can test & recooenct? s/reconnect/ |
Olathe | That has Ruby stick its tongue out at 1. |
manveru | ajturner: #rubyonrails :) |
ajturner | this isn't Rails |
Olathe | One becomes very negative towards Ruby afterwards. |
ajturner | manveru - it's a GServer that is storing data to a database using ActiveRecord (not Rails) |
Olathe | And so that's how -@ came to be the negative sign. |
rellik | if I have str = "Foo" how do I say 'obj = "#{str}Bar".new' ? |
manveru | rellik: ? |
Olathe | klass = Kernel.const_get("#{str}Bar"); obj = klass.new unless security check thingy here |
manveru | oh and the lobster goes to: Olathe! |
Olathe | Yay :D |
rellik | Olathe, perfect, thanks Olathe, what's the "security check" part? |