235642-238095 subjects 236151-376369

Help with kernel.exec
235886 [petr@pu ch o] Hey there,
+ 235895 [shortcutter@] As always with input parameters: verify them.  Make sure those variables
| 235955 [aledonne.lis] Robert is correct - you would be surprised how much stuff is legal in
| 235960 [gwtmp01@ma .] I generally agree with Alex, but I would suggest allowing a '+' also.
| 235962 [aledonne.lis] Good call, Gary, thanks for the reminder. Some MDAs (Courier
+ 235898 [ara.t.howard] require 'tmail'
+ 235949 [vjoel@pa h. ] One thing you can do is to use 2 or more args with exec.
  235984 [petr@pu ch o] I did use it, but for some reason it kept being a pain in the arse.

attn: kara - really amazing fast downloads -  vuy oz - (1/1)
235894 [confident@cu] I love the newsgroups,

Exception Handling/Divide By Zero/NaN Done on One Line
235897 [kopanas@gm i] a = (y != 0) ? (x/y) : 0
+ 235906 [niko@ki gt n] a = begin
+ 235910 [ara.t.howard] works for me?
  235929 [Rob@Ag le on] from (irb):1:in `/'
  235944 [kopanas@gm i] I need to keep it as a float... that is my problemo :-(.
  235985 [Rob@Ag le on] Perhaps...

Text file parsing in ruby
235902 [Paul.vanDels] As I use ruby more and more for things, I find myself creating "Config" classes, filling
+ 235912 [ara.t.howard] require 'yaml'
+ 235915 [w_a_x_man@ya] open('data1'){|handle|
  235920 [shortcutter@] # untested
  235935 [Paul.vanDels] [snip example]

[ANN] One-Click Ruby Installer for Windows: 185-22 RC1
235922 [ml.chibbs@gm] ...
235930 [pit@ca it in] Curt, thank you very much! Given that there are some gems installed in
235941 [ml.chibbs@gm] ...
235970 [pit@ca it in] Thanks for the info. It's no problem for me personally.

installation problem proper use of ./configure
235925 [jt@ar lo al ] I'm trying to install ruby on an older linux box. When I install, with
236285 [nobu@ru y- a] Maybe --with-openssl-dir=/usr/local/ssl, if you have headers in

Re: RubyGems 0.9.1 problem (was Re: Struggling With RubyGems
235937 [byrnejb@ha t] I had this problem as well and executing

Ruby IDE for Windows 98?
235938 [bart.braem@g] In a few weeks I am going to teach a class of 16 year old students how to
+ 235939 [martindemell] See if Mondrian works in Win98 (not sure, but it's worth a try)
| 235958 [bart.braem@g] I'll give it a shot, thanks for the suggestion!
+ 235940 [jeremymcanal] SciTe should do what you want I believe; I'd use that because it's
+ 235946 [detlev@di -o] You could try eric4 (currently available as snapshots). It is written in
+ 235952 [vjoel@pa h. ] Have you tried RDE?
+ 235973 [o.renaud@la ] I don't see the need for an IDE in your case. When you say that tou want "To
| 235980 [robert.dober] ...
| + 235981 [sonoflilit@g] ...
| | + 236026 [martindemell] When I taught my brother to program, I started with text i/o. He had
| | | 236040 [sonoflilit@g] ...
| | | 236499 [gregory.t.br] I have to admit, I started with the BASIC drawing commands on a
| | | 236507 [gregory.t.br] Mindstorms is a decent approach because you could move from graphical
| | | 236509 [matt@te hn r] Or Forth.
| | | 236511 [gregory.t.br] Yeah, there are a whole host of languages it supports... i think java
| | + 236540 [listbox@ju i] Which, by occasion, is going to be called Squeak (and will run
| |   + 236549 [robert.dober] ...
| |   + 236556 [sonoflilit@g] ...
| + 235993 [o.renaud@la ] Sure ! As a bad student, I'm glad to be supported by a bad teacher :)
| + 236015 [reid.thompso] zenlive ( site appears to be down for maint tonight ). I seem to recall
+ 236043 [richard.conr] Well there is really no IDE for Ruby on Windows, at best
+ 236053 [r.vernagus@g] ...
+ 236066 [bgulian@gm i] Komodo by ActiiveState does everything you want plus intellisense.
+ 236068 [bgulian@gm i] Oooh, re Komodo.  Sorry.  ActiveState's product placement has

putting commas in floats to seperate hundreds from thousands etc...
235942 [kopanas@gm i] class Float
235948 [gavin@re in ] ...
235965 [coachhilton@] The latest edition of Mastering Regular Expressions suggests the

Off-topic: c language and bioinformatics
235945 [chen_li3@ya ] It is an off-topic in Ruby. But I just wonder if anyone out there knows

Arachno gets problem?
235957 [bart.braem@g] I'm trying Arachno as a IDE and it gives me a strange problem with gets.
236451 [nightphotos@] When running a script in Arachno that reads from stdin, it's necessary

Re: One-Click Ruby Installer for Windows: 185-22 RC1
235966 [cohen.jeff@g] Awesome.
235979 [drbrain@se m] I've been working with Curt to try to get a major issue with 0.9.1 on
236004 [cohen.jeff@g] Sounds good, Eric.  If you need any help testing something on Windows,

[ANN] Motiro 0.6.1 released
235967 [thiago.arrai] Motiro is a simple project tracking system written in Ruby with Rails. The

Hpricot question
235968 [furfey@gm il] doc=Hpricot(open(url))
236103 [dongleberry@] lets say you've done this in your controller where the Feed is a model

RubyQuiz suggestion
235974 [srobertjames] has the full description.
235978 [james@gr yp ] James Edward Gray II
236007 [srobertjames] On Jan 24, 4:50 pm, James Edward Gray II <j...@grayproductions.net>

embedded: multiple interpreters
235976 [shea@nu l. e] I have read some comments saying that when embedded, you can only have

235977 [observatory@] I know the environment variable PHP_FCGI_CHILDREN sets the maximum
+ 236041 [david@va ln ] Specifically, the -processes switch.
+ 236054 [jeremy@bi sw] Not builtin, but your FastCGI process manager (Apache, lighttpd,
  236318 [observatory@] I knew this could be done using the options offered by

How to simulate Mouse Click with Ruby, or mouse library
235982 [gert365@ya o] to do this through Ruby?  Does Ruby have any library for simulating
+ 235987 [benjohn@fy h] I think you'll need to provide a little more info to help people get
| 235989 [gert365@ya o] Thanks for the suggestion Ben, I would like to use ruby to simulate a
| 235991 [malvim@gm il] Well, AutoIt is a fine automation program for windows, although it
| + 235996 [gert365@ya o] Thanks for the help Marcelo. Using AutoIt through Ruby does exactly what
| + 235998 [nlloyds@gm i] ...
+ 250735 [crb002@gm il] Write a ruby script that outputs this to a file named Bot.java, runs
  250783 [brenton.lean] I would imagine you could use

[ANN] North Bay Ruby Users Group Formed
235983 [keith@au io ] I'm pleased to announce a new Ruby Users Group for folks north of
238864 [keith@au io ] North Bay Ruby Users group: first meeting

can it be shorter?
235986 [dorrenchen@g] doing access control on rails controller,
+ 235988 [dorrenchen@g] a little clearer than previous one.
| 236006 [w_a_x_man@ya] Hash[ *hash.map{|k,v| k=[*k]; k.zip([v]*k.size) }.flatten ]
+ 235990 [vincent.four] h = {}
| + 235994 [vincent.four] h = {}
| | + 236009 [martin@sn wp] h={};hash.map{|k,v|[*k].map{|t|h[t]=v}};h
| | | 236044 [shortcutter@] Not really shorter but I though there should be at least one solution
| | + 236045 [drbrain@se m] ...
| + 235995 [dorrenchen@g] better, thank tou.
+ 236049 [erikveen@gm ] There's a glitch, which is not yet mentioned...

"rake db:migrate" error
235992 [mcyi2mr3@go ] Just setup ruby on rails.
+ 236063 [jameskilton@] ...
+ 236131 [drbrain@se m] You want the ruby on rails mailing list.

Class Variables and Singelton Mix-Ins
236002 [shfriedrich@] I'm trying to find a way to declare class variables in a module that
236003 [shfriedrich@] uuh-ooh. i guess i could use an instance variable for the Singleton
236019 [gwtmp01@ma .] That isn't an instance variable for the singleton class.  It is an

tk text  tag_configure
236008 [redman@ac es] I am trying to use Ruby/tk and a TkText object and change the text font on
236017 [vjoel@pa h. ] Take a look at sample/demos-en/style.rb. It creates a text box with
236022 [m_goldberg@a] Just to clarify things a little, the full URL is

inter-platform communication
236023 [tiberiu.moto] I'm trying to find a new way to achieve inter-platform communication.
+ 236025 [farrel.lifso] Have a look at dRb (distributed Ruby). It's in the standard library.
| 236046 [alex@bl ck e] If you need XML-RPC or SOAP, then they're both in the standard library too.
+ 236051 [alexandru@gl] You could also try the 9P protocol from Plan9[1]. There are at least
+ 236319 [tiberiu.moto] Tiberiu

ruby and library paths
236024 [fastfoo@fa t] I'm (brand) new to Ruby, so treat my questions in that light. On trying
236027 [pit@ca it in] You have to put quotes around fcgi, like
236028 [fastfoo@fa t] Thanks for the advice Pit, but there still appears to be a path issue?
236029 [fastfoo@fa t] This does work though... absolute path to lib, so there must be a path
236031 [pit@ca it in] to use gems, you first have to load the ruygems library itself. So try
236034 [fastfoo@fa t] Ha! Super! You were spot on. Thanks!
236036 [cmdjackryan@] If you are going to work with rubygems more often, it is a good idea to
236038 [fastfoo@fa t] Thanks Phill.

Gem unpack problem
236048 [alex@bl ck e] Does anybody have any idea why this happens?
236064 [Rob@Ag le on] func=detail&aid=7980&group_id=126&atid=575
236067 [alex@bl ck e] That looks like it.  Thanks.

Re: test/spec 0.3, a BDD interface for Test::Unit
236052 [Allan.Cochra] [1807] sudo gem update
236098 [vjoel@pa h. ] That's odd. I installed from the default source, and said "Y" to both

[SUMMARY] Method Auto Completion (#112)
236055 [james@gr yp ] by Robert Dober
236239 [james@gr yp ] For those keeping score at home, this message had a bad subject.  It

Class.new ?
236061 [warrens@ac c] class Act
236070 [wonado@do ne] You can write your own "new" method if it makes sense for your application. As I
236097 [warrens@ac c] Thanks, I see how to make it work, but I don't see need to ever do it...
+ 236099 [avdi@av i. r] A class which might return an existing object out of an object pool,
| + 236104 [shortcutter@] Singletons for example.
| | 236113 [james@gr yp ] Which messages are missing?  My simple inbox/Google Groups cross-
| | 236116 [shortcutter@] Hm, that's weird.  Checking again I see all the postings.  Some where
| + 236105 [alex@bl ck e] Ooh...  Has anyone written a ThreadPool which works that way?  That
|   236117 [shortcutter@] I don't think this is the right pattern for a thread pool.  There you
|   236118 [alex@bl ck e] Not really - just wondering what it would look like :-)  I might have a
+ 236101 [wonado@do ne] I think it is only necessary, if you need a special "allocate" method for your
+ 236115 [dchelimsky@g] thing = mock("thing")

some small suggestions to Array
236065 [wangqianpku@] I'm a new user of ruby from China. I love it very much. And I believe
+ 236205 [threeeyedfis] ̴
+ 236214 [m.fellinger@] Please, learn the language a bit more before you already givesuggestions, i know this sounds not very nice and we really appreciateyour suggestions, however, there are some quirks and standards in rubythat you may not be aware of as you write this.This should not mean that you have to be totally proficient in rubyafter a couple of days, it only means that, before you critizisesomething you should have as much knowledge about it as possible.
| 236393 [robert.dober] ...
+ 236317 [vjoel@pa h. ] irb(main):001:0> a = (0..9).to_a

Form validation issue in form_remote_tag
236071 [kjawaharbabu] In one of my application part, I am validating 'not null' check of

Form validation issue in form_remote_tag
236072 [kjawaharbabu] In one of my application, I am using form validation check for

breakpointer GUI
236074 [jonahfox@gm ] I remember reading about a breakerpoint client that received an award

Codegolf: Pascal's Triangle
236075 [olsonas@gm i] I've been quite addicted to www.codegolf.com for a while and I'm trying
236102 [robert.dober] ...
236106 [erikveen@gm ] Not again... ;]
236234 [robert.dober] ...

Class & modifiers modifiers
236078 [ktalanet@ya ] I want to make a question to all the ruby-lang people (I hope that
236085 [matz@ru y- a] public.  I don't recommend to override protected method though.
236091 [ktalanet@ya ] Why not?
236128 [matz@ru y- a] Because protected methods are called only from subclass of defining
236218 [ktalanet@ya ] Excuse me if I'm getting boring but I don't know if I explained myself
236219 [robert.dober] ...
236223 [ktalanet@ya ] I'm sorry, but Shape is a module (it can not be create an object using
+ 236227 [ktalanet@ya ] I'm sorry if I have been a little rude, it was not my intention :-)
+ 236229 [robert.dober] ...
  236231 [robert.dober] ...

Re: Free as in beer Komodo editor
236081 [djberg96@gm ] I like the Komodo editor, especially now that it has vi bindings. The

Running a rake test task within a specific directory
236083 [djberg96@gm ] I'm trying to figure out how to setup a task that temporarily changes

Parsing XML and then sending via SOAP
236090 [thedossone@g] I'm looking to write a small test stub that will read in some XML from a

installing Ruby under Mac OS X
236093 [mark@oc we .] I just downloaded the source for Ruby 1.8.5-p12 and built it under
+ 236096 [olsonas@gm i] Mark -
+ 236173 [mark@oc we .] I fixed this by editing /usr/local/lib/ruby/i686-darwin8.8.1/

Python's win32com.client for Ruby?
236100 [wood_yee12@h] (http://www.microsoft.com/technet/scriptcenter/scripts/python/pyindex.mspx?mfr=true).
236107 [david.mullet] require 'win32ole'

Mac OS X ruby text editor
236108 [sauron_the_g] to Mac OS 10.4, please tell me a similar free text editor for Ruby in
+ 236111 [jeremymcanal] Smultron is great: http://smultron.sourceforge.net/
| 236112 [a2800276@gm ] vim!
+ 236114 [jonsdenni@gm] I did the same thing
| 236136 [lazymutt@gm ] ...
+ 236119 [olsonas@gm i] Komodo Edit was just released and is free. It has auto completion, great
+ 236148 [m_goldberg@a] TextWrangler 2.2 has pretty good Ruby support and, best of all, it's
  236152 [rsayers@gm i] Another Smultron user here.  Switched from TextWranger quite a while
  236293 [sauron_the_g] OK, guys I got Smultron, and its awesome. Thanks. But I couldn't figure
  236362 [jonsdenni@gm] Yeah
  236380 [threeeyedfis] Same with me!
  236559 [sonoflilit@g] ...

Mac OS X ruby text editor
236110 [sauron_the_g] to Mac OS 10.4, please tell me a similar free text editor for Ruby in

How to stop nested catch from looking messy?
236120 [greg.hurrell] I'm writing a parser generator (for fun) and am making use of

Free Online Programming Books on Ruby
236121 [pmsprasa@ya ] <a href="http://pspxworld.com/repo/content/155.php">Little Book Of

[OT maybe] ActiveRecord curious behaviour
236122 [alexandru@gl] I appologise if this question is offtopic, hopefully it isn't though...
236171 [dgoodlad@gm ] It would probably be ore appropriate to ask this on the rails-users
236207 [alexandru@gl] Ok then, sorry for the noise, and a warm thank you for the

Helper help
236124 [bomeksan@gm ] I need a helper, which will render a table in my customized style.
236135 [gavin@re in ] You will probably get a better response if you ask this on the Ruby on

Run other programs
236127 [jonsdenni@gm] lets say I have three programs
236826 [ruby.hardwar] If you just want to run them one at a time and wait, you can do this;
+ 236830 [botp@de mo t] # > lets say I have three programs
+ 236836 [jonsdenni@gm] thank you!

Regexp and string halts ruby
236129 [ricardo-g-ra] /^((?:\s*.+[;=][^,]*,?)+)$/ =~ " pid=934, time=478611,
+ 236130 [donald.ball@] I can confirm this on ruby-1.8.5-win32. Neat.
+ 236137 [ara.t.howard] it's just a bad regex.
+ 236138 [wonado@do ne] There is no infinite loop - it it takes a long time, because your regular
+ 236139 [shortcutter@] Are you *sure* that it enters an infinite loop?  I see you nest two star
+ 236149 [martin@sn wp] It is possible to write a regular expression that takes exponential
+ 236164 [w_a_x_man@ya] On Jan 25, 12:20 pm, Ricardo Ramalho <ricardo-g-rama...@telecom.pt>
  236210 [ricardo-g-ra] Thanks guys, i guess that was it, the regexp was too complex. Daniel
  236236 [james@gr yp ] You wont be disappointed.  It is a tome of black magic.  ;)

Problem using back-ticks + eval
236133 [RichardDummy] I'm trying to demo how Ruby handles various argument formats.
236134 [drbrain@se m] def show(command)
236142 [RichardDummy] I was working in making "show" simpler,  but I couldn't come up with

A Ruby Operating System (no bashing please)
236140 [andre.nho@gm] this post might sound strange, but after working with ruby for so long,
+ 236143 [andre.nho@gm] Well... I figured that a title like "(no IRB:ing please)" would be just
+ 236144 [dmjmusser@gm] ...
| 236145 [Fdavis@us an] I know I would enjoy seeing that, just for the educational value of seeing how you accomplished it.
+ 236147 [gwtmp01@ma .] You might want to take a look at Inferno (http://www.vitanuova.com/
| 236163 [bitdoger2@ya] ..it sounds very interesting...but i would start with rubinius since
+ 236167 [brabuhr@gm i] Sounds like a cool project.  :)
| 236224 [artur_spruce] ...
+ 236169 [gavin@re in ] How are you defining an 'operating system'? The definitions I'm used to
+ 236187 [Joerg.Mittag] Of course it does!
+ 236235 [andre.nho@gm] Thank you everyone for your kind answers. I'll lookup the links you
+ 236298 [scoopr@ik .f] Well, there is http://unununium.org/
  236355 [paradisaeida] A recent article in Linux Journal by David Lynch is about his efforts