234950-236166 subjects 235463-236907

^ Serial Port Control with Ruby win32serial-0.5
235196 [jtb hikeariz] I have downloaded win32serial-0.5 and am trying to install in a Windows
235199 [ruby.hardwar] I installed Win32serial a few months ago and if I remember correctly,
235276 [jtb hikeariz] I tried that with no luck.  Wondering, should I be extracting to a
235329 [felipenavas ] You don't have nmake.
+ 235343 [jtb hikeariz] Thanks for the help.  I got nmake installed in the c:\ruby\bin
+ 235344 [jtb hikeariz] Would you be able to give me a brief description install procedure for

^ Getting the version number for rubygems?
235197 [gregory.t.br] In ruport I have a tool that generates a bunch of boilerplate code for
+ 235200 [grauenwolf g] Well, from the command line you can call "gem -v" to get the version.
+ 235201 [twifkak comc] require 'rubygems/rubygems_version'
+ 235202 [drbrain segm] Just use #gem, and don't bother being backwards-compatible.  RubyGems
  235203 [gregory.t.br] I'll probably do this by the next release, but the one coming up in a
  235204 [jeremymcanal] require 'rubygems'
  + 235205 [gregory.t.br] instead of alias i'll use alias_method.  But I bet that would work.
  | 235206 [twifkak comc] Why? (Curious, not argumentative.)
  | + 235208 [gregory.t.br] alias is really a somewhat scary function.  I can't think of a good
  | | + 235209 [gregory.t.br] well, keyword.  alias_method is actually a method, alias is not.
  | | + 235219 [drbrain segm] You're seeing phantoms.  There's no difference between alias_method
  | |   + 235220 [gregory.t.br] Hah.  That'd explain why I am scared.
  | |   | 235221 [drbrain segm] any slides online?
  | |   | 235223 [gregory.t.br] I didn't see them on the nycruby list. :-/
  | |   + 235308 [james graypr] Well, you can override alias_method() if needed, but not alias.
  | |     235314 [ryand-ruby z] And that changes or invalidates what Eric said... how? Not only did
  | |     235316 [james graypr] Eric showed the implementation of a method.  Methods are
  | |     235317 [gregory.t.br] Also the interface and the behaviours are different, as I mentioned in
  | + 235288 [gregory.t.br] I guess it really is just the method vs. keyword thing.
  + 235211 [drbrain segm] NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO! NO!
    + 235215 [jeremymcanal] Maybe you should tell the Rails team because I'm fairly sure that's
    + 235217 [gregory.t.br] There you go being an asshole again Eric. (please stop)

^ What am i doing wrong?
235210 [hardcoredumm] I realize this is an extremely noobish question, but i'm stuck and can't
+ 235212 [peter rubyra] Nick,
| 235315 [james graypr] When you want to remove a line ending, prefer chomp() to chop().
+ 235213 [jeremymcanal] (number.to_i + 1).to_s
| 235216 [hardcoredumm] Thank you very much! That does make sense now!
+ 235218 [phillipsds y] puts "What's your favourite number?"
| 235226 [lionel-subsc] print "What's your favorite number? "
| 235227 [phillipsds y] charset=US-ASCII;
+ 235222 [w_a_x_man ya] printf "That is good, but %d is better.\n", number.to_i+1

^ [ANN] Dhaka-2.0.0
235225 [mushfeq.khan] There's a new tutorial on creating a small interpreter at
235230 [gregory.t.br] Looks good!  Thanks Musfeq.

^ ruby coding guidelines?
235233 [zack bononia] Is there in the Ruby community anything like "ruby coding convention"?
235263 [cdcarter gma] There is no official/authoritative Style Sheet/Coding Conventions but
+ 235266 [dblack wobbl] I'd also point to the standard library (at least most of it :-) as a
| 235277 [zack bononia] That's indeed what I usually do, but a visible document on the net would
| 235281 [dblack wobbl] Like I said, "also" :-)
+ 235323 [james.britt ] There is also style guide on the RubyGarden wiki

^ (none)
235239 [duzuike gmai] unsubscribe

^ anybody here using ActiveRDF?
235241 [dfl_maradent] I'm starting working with ActiveRDF and I have very simple newbie
235253 [lyle.johnson] I've experimented with it a little bit, but I'm not using it heavily
235257 [dfl_maradent] Well, it's just I think my questions are quite silly for the mailing
235319 [lyle.johnson] I don't think that should discourage you from posting your question(s)

^ Newbie quesiton about inheritance single table
235242 [tobias.hutzl] _____________________________
235243 [tobias.hutzl] Sorry wrong ng

^ uninstalling the mac tiger version of ruby
235248 [mcyi2mr3 goo] in trying to uninstall the mac version of ruby how can i do this?
235251 [mcyi2mr3 goo] My reason for wanting to uninstall is that ive tried to install the
+ 235252 [gene.tani gm] There's been numbers of posts on installing Rails from Locomotive,
+ 235256 [gavin refine] Probably your PATH environment variable is set to use the
+ 235258 [TimHunter nc] No, don't uninstall the version of Ruby that comes with OS X.  That
  + 235286 [mcyi2mr3 goo] Yes it seems to be the case that its looking for the wrong version.
  + 235287 [mcyi2mr3 goo] Yes it seems to be the case that its looking for the wrong version.
    235294 [TimHunter nc] PATH is an environment variable that the bash shell uses when it

^ gsub and backslashes
235261 [ruby technit] test = "a string with \\ a backslash"
+ 235267 [wonado donne] Ooops
| 235278 [wonado donne] Even after looking to "Programming Ruby - Second Edition", and several other
+ 235269 [gavin refine] This is a FAQ. Please search the mailing list archives and the web;
+ 235307 [w_a_x_man ya] puts test.gsub(/\\/, '\&\&')

^ IP Routing table - RTNETLINK - sockets
235264 [keyesbob yah] I wish to manipulate the routing table in Linux without having to make

^ Flattenx [was Re: Hash pairs at?]
235268 [gavin refine] Yes, yes! I've used this locally, and wanted to rely on this remotely,

^ [ANN] RMagick 1.15.0
235270 [TimHunter nc] I've just uploaded RMagick 1.15.0 to RubyForge. There have been many changes

^ module global variables
235283 [zack bononia] Is there a way to define per-module global variables? My best
235289 [transfire gm] Try a constant.
235290 [zack bononia] Already tried. I can't stand the warning and I can't blame the compiler
235291 [gregory.t.br] why do you need this in your module?  Is it going to be mixed into
+ 235292 [gregory.t.br] => nil
| 235297 [gethemant gm] Well just a stolen idea from somewhere. But why not use module instance
| + 235300 [gregory.t.br] That's probably the same effect, and a little shorter, too.
| | 235302 [gethemant gm] And i missed that, you will have to use self.class.foo to access the
| + 235339 [zack bononia] Thanks (to you and Gregor), that's precisely what I was looking for!
|   235357 [mkasick-rt c] Where is this discussed in pickaxe (which page number)?
|   235417 [zack bononia] Page 374.
|   235623 [mkasick-rt c] Hmm, must be first edition, although you gave me a clue where to look
|   235647 [zack bononia] Uhm my fault. It's actually the second edition, but indeed I wanted to
+ 235338 [zack bononia] Actually no. It's just the "namespace" in which I'm implementing various

^ debugging with eclipse
235298 [mr.potato it] I have installed ruby1.8.4 and ruby1.8.5 "All in One" Packs with
235428 [mr.potato it] hmm, Am I the only one who wants to use eclipse with debugging or the
235429 [mr.potato it] In addition is there an good howto, to start the "remote" debugger from

^ Ruby to java or java to ruby converter
235311 [vinodkone ya] am a newbie to ruby and was wondering whether there is any ruby2java or
+ 235325 [vinodkone ya] thanx Bill,
| 235333 [vinodkone ya] i understand that comparing programming languages is a non-trivial issue
| 235335 [work ashleym] Personally, I think the best use of your time (and the most important
+ 235373 [logancapaldo] I think if you want to do this the right way you shouldn't use an
  235455 [mneumann nte] I have implemented a rudimentary Ruby to Javascript converter. So I don't

^ Fwd: Please Forward: Ruby Quiz Submission
235312 [james graypr] charset=US-ASCII;

^ Fwd: Please Forward: Rubyquiz Submission (CORRECTED)
235313 [james graypr] charset=US-ASCII;

^ Ruby Cookbook - problem recipe
235324 [lcl tarazed.] Skipping through the Ruby Cookbook (Carlson & Richardson) I tried out the

^ strange error msg when i run "ruby script/server "in my new site
235337 [mcyi2mr3 goo] i just installed ruby and rails but i get this error msg when i run

^ [ANN] Ruby-GetText-Package-1.9.0
235340 [mutoh highwa] Ruby-GetText-Package-1.9.0 is now available.

^ Embedded Ruby crashing with profiling? (was Re: Ruby and E.V.E. Paradox)
235341 [garthy_lmklt] Hey everyone,
235399 [garthy_lmklt] An additional note: I've since been running the code provided for several hours
235406 [GGarramuno a] Nothing caught my eye at first glance, but I have not yet looked at it
235447 [garthy_lmklt] Hey gga,
235570 [garthy_lmklt] Hey all,

^ Re: Ruby-GetText-Package-1.9.0
235346 [shevegen lin] Wow, nice! :)

^ Ruby extension tutorial
235348 [wim.vandersc] I just finished a tutorial about writing simple ruby extensions.
+ 235350 [wim.vandersc] - Wim
| + 235351 [garthy_lmklt] Hey Wim,
| | 235419 [wim.vandersc] Thank you all for your comments!
| + 235355 [danfinnie op] I like the content of the tutorial, and I've been curious about writing
| + 235359 [TimHunter nc] Nice work! Here's a couple of nitpicks...
| + 235425 [drbrain segm] abort 'need stdio.h' unless have_header("stdio.h")
|   235426 [wim.vandersc] Yes, I first did that as well, I thought have_header and the like
|   235431 [drbrain segm] It allows you to look for headers that may have different names for
|   235435 [wim.vandersc] I might add this to the discussion of the extconf.rb file later, I think
+ 235353 [gregory.t.br] Cool stuff.  it's good to see a tutorial on this.

^ another wierd error whilst installing gems?
235358 [mcyi2mr3 goo] what could cause this error in terminal when updating gems?
235364 [TimHunter nc] Well, going by the "permission denied" message I'd guess that you don't

^ Tricky: converting path into a Hash
235360 [robmnl gmail] I am wondering if the mighty ruby crowd has a brilliant idea for a tricky
+ 235365 [ara.t.howard] require 'pathname'
| + 235372 [w_a_x_man ya] s = "a/b/c"
| + 235393 [djberg96 gma] I guess my question is....why?
+ 235366 [vjoel path.b] pr = proc {|h,k| h[k] = Hash.new(&pr)}
| 235390 [kbloom gmail] Then the inject trick becomes
| + 235396 [logancapaldo] h = 3
| | 235436 [robmnl gmail] Gracias everyone!
| + 235398 [ara.t.howard] i think it's less overhead to simply name the top hash and return it
+ 235367 [logancapaldo] path = "a/b/c"
+ 235389 [john.carter ] I suspect you are asking the wrong question.

^ ri-emacs promble
235368 [yangfreecode] couldn't start ruby script.
235371 [gethemant gm] I dunno, if its just me, but ri-emacs seems to be broken for the time
235446 [kristof vlee] Are you using the latest version of ri-emacs?
235820 [yangfreecode] The Ri-emacs-users Archives
235972 [kristof vlee] Yes, I created the list just recently (because I realised rubyforge

^ Can't install rubygems
235384 [cpunion gmai] The rubygems installer can't finish, and CPU is 100% used in several hours.
235412 [drbrain segm] If you hit ^C, what is the backtrace?
235418 [cpunion gmai] Successfully built RubyGem
235424 [drbrain segm] Did you have a RubyGems already installed before starting the upgrade?
235438 [cpunion gmai] # ruby setup.rb
235619 [drbrain segm] Can you check your sources gem's MD5?
235660 [cpunion gmai] ===================================
+ 235668 [cpunion gmai] I have copied $RUBY_PATH/site_ruby/*,
+ 235799 [cpunion gmai] My Gentoo installed from stage3,
  235801 [drbrain segm] This may be a source of your problems.  Ruby is not guaranteed to
  235811 [cpunion gmai] I have removed -formit-frame-pointer and changed -O3 to -O2, then
  + 235839 [drbrain segm] localhost distfiles # gem install activesupport
  + 242740 [robbie.wilhe] gems / ruby is broken on gentoo!
    243196 [cpunion gmai] I have downgraded autoconf to 2.60, and re-merge ruby and rubygems, it

^ IntelliJ IDEA Ruby plugin
235386 [gsinclair gm] I haven't seen this mentioned in comp.lang.ruby yet, so here goes...
+ 236042 [david vallne] OMGWTFBBQ.
+ 236073 [twifkak comc] God, *run configurations*? Why do they insist on taking something simple
  236087 [richard.conr] Because its not simple? Last time I checked, there is at least 3-4

^ Ruby Web Services Client
235391 [pwhbeck comc] I have a simple web services client written in Java. The essence of it
+ 235392 [hellonico gm] Hey Peter,
| 235395 [hellonico gm] - what is the protocol ?
+ 235394 [pwhbeck comc] It is implied but not stated that I want a Ruby program that does the
  235397 [pwhbeck comc] Niko,
  + 235401 [jeremymcanal] String sendmsg    = soapAction+".xml";
  | 235405 [pwhbeck comc] Thanks. I still don't see how to send and XML message and get an XML
  | 235481 [brabuhr gmai] Do you have a WSDL for the service?
  | 235488 [pwhbeck comc] Thanks to everyone for trying to help this old man. For the moment I am
  + 235403 [hellonico gm] Hey Peter,
    235404 [pwhbeck comc] Thanks for the reference. I read the article, but it talks about web

^ A tip about using Hash - and a documentation request
235402 [per velschow] I just spent several hours of investigating a problem that I had when
235411 [drbrain segm] Please provide a patch to the ruby-doc mailing list, or to ruby-core
235427 [per velschow] I've never made a patch before, so I decided to follow the instructions
+ 235432 [drbrain segm] After installing the documentation you should be able to
| 235444 [per velschow] OK, I submitted it to the tracker. It was not possible for me to assign
+ 235434 [ryand-ruby z] For the record... You RULE.

^ ruby-lang down?
235407 [alex.combas ] Can anyone else out there in interweb land confirm ruby-lang is down?
+ 235409 [alex.combas ] hmm.. move along, nothing to see here.
+ 235410 [peter rubyra] For me it seems to be up and running...

^ how to install/use ruby and tk on winxp?
235415 [sroun.ngo gm] Im a newby with ruby. Im trying to do some user interface with tk. I
+ 235440 [w_a_x_man ya] You probably should have used the one-click installer.
+ 235441 [ruby.hardwar] If you use the one click installer tk is included.
  235467 [sroun.ngo gm] I used the one click installer to install Ruby.
  + 235568 [ruby.hardwar] I installed an older version with no problem.
  + 235589 [nagai ai.kyu] Please use ActiveTcl 8.4.x.
    235778 [sroun.ngo gm] Cool it works!!!
    238720 [bhayes84 gma] I also solved the above problem in Ruby 184-17 under WinXP by

^ conditional variable assignment from array
235421 [josselin wan] one of my methods receives  a sort parameter either as
+ 235423 [peter rubyra] You could try something like
+ 235430 [shortcutter ] First of all you cannot mix symbol and string keys, i.e. you cannot use
+ 235439 [w_a_x_man ya] h = {"sort"=>{"criteria"=>{"criterion"=>{"foo"=>"1"}}}}

^ in ``': No such file or directory - getcwd (Errno::ENOENT)
235433 [amos.goldman] I'm getting this error message when I'm using the back tick method
235493 [drbrain segm] You deleted .

^ connecting via ssh to hostgator's ruby server
235437 [mcyi2mr3 goo] instructions on how to connect to hostgator's ssh are given here
+ 235450 [logancapaldo] This isn't really a ruby question, but in the interests of being nice,
+ 235454 [jeremymcanal] This isn't really a Rails question, but I'll answer it anyhow. :)

^ Re: help on pp / Wirble (irb)?
235449 [twifkak comc] I believe it's something like Object#pretty_print_inspect. Plus, I
235645 [martindemell] works for me
235753 [martindemell] => #<StringIO:0xb7c98e70>

^ gem install - install directory not absolute
235458 [r.mark.volkm] When I run ...
+ 235475 [cohen.jeff g] My guess is that you, like me, are running gem version 0.9.1.  After I
| 235480 [r.mark.volkm] That's right. I did exactly that.
+ 235499 [drbrain segm] What does `gem environment` report?
  235501 [r.mark.volkm] - VERSION: 0.9.1 (0.9.1)
  235620 [drbrain segm] You're missing 1.8 in that path (or 1.9).
  235655 [mark ociweb.] charset=WINDOWS-1252;
  235726 [drbrain segm] That's bad.
  235731 [mark ociweb.] ruby 1.8.5 (2006-12-04 patchlevel 2) [i686-darwin8.8.1]

^ ebedded: calling a C function from script.
235460 [shea null.ne] I have my embedded interpreter running my scipt.  Now I would like my
+ 235466 [stefano.croc] If I understand correctly what you mean, I think you need to create a ruby
| 235879 [shea null.ne] Thanks, that worked great.  How do I do I define a class method?
| 235891 [shea null.ne] Also, I can't seem to figure out how to pass ARGV to my script.  I tried
| 235914 [stefano.croc] You should use the ruby_options C function.
| 235918 [shea null.ne] Aahh, that was the one I was looking for.
+ 235913 [shea null.ne] How do I call a global function  (which resides in a script) from C.
  235924 [stefano.croc] Your problem is that you're calling 'script_main', which is an instance method
  236092 [shea null.ne] VALUE script_obj = rb_eval_string("self");
  236150 [stefano.croc] According to one of your previous posts, you use rb_load_file to load a file,
  236305 [shea null.ne] I had fixed the problem using rb_require. Would it be better to use
  236313 [stefano.croc] I think (but I'm not sure) that the difference between the two is exactly the