117929-118556 subjects 118273-119677
run linux commands as ruby scripts
118104 [nkb@pa if c.] I've 2 commands to run on my Linux.
+ 118107 [batkins57@gm] Well, exec will execute the command passed to it and _replace_ the
+ 118110 [NOSPAM@ke py] a=`ls -l`
Daily erb Questions
118114 [james@gr yp ] I bet everybody wants me to finish this project by now, so I'll stop
Another blog entry on Rails...
118115 [tom@in oe he] The fellow expects to be able to do in Rails in a month or two what a
+ 118117 [mailinglist_] month or two what
| 118119 [tom@in oe he] Argh, you're right. I skimmed too fast... disregard, disregard...
+ 118130 [matt@te hn r] Very neat. However, I do want to point out that writing the software is
118149 [david@lo dt ] The true revelation comes when you realize that writing software is one
How to connect to a DB2 database.
118118 [victor.reyes] ruby 1.8.2 (2004-07-29) [i386-mswin32]
118121 [mneumann@nt ] You need Ruby/DBI and Ruby/DB2. See RAA (raa.ruby-lang.org).
118129 [victor.reyes] I noticed that I already have dbi installed as part of the 1.8.2 installation.
118133 [mneumann@nt ] Yes, you have to install Ruby/DB2, too ;-)
118155 [victor.reyes] Mike,
118210 [botp@de mo t] haven't tried it but will it help if you remove the last "/" ?
118381 [victor.reyes] I tried it without the "/" with the same result.
118384 [mneumann@nt ] BTW, which version of Ruby do you use (and which DB2)?.
Pickaxe 2 pdf - hyperlinks missing ?
118123 [itsme213@ho ] The pdf for Pickaxe-2 is missing some important hyperlinks I was expecting
+ 118124 [matt.mower@g] I reported some similar issues (in the index) to Dave last week and a
| 118139 [usenet2@no p] Where can you download the fixed PDF version (if you have paid for it :P)?
| + 118147 [usenet2@no p] Never mind. :) Just got an e-mail that I can download the PDF file.
| + 118177 [robert.mcgov] Exactly what I was wondering.
+ 118138 [dave@pr gp o] The PDF hyperlinks explicit cross references (typically things that
118163 [itsme213@ho ] Ouch. That's a big disappointment in an otherwise very nice book. I was
Money Class (was Re: Rounding error, (100.0 * 9.95).to_i == 994)
118135 [james@gr yp ] This could make a great Ruby Quiz, if written up correctly, I think...
118385 [ruby@br an s] Why not just use integer valued cent-counts?
118393 [sera@fh an .] Sometimes that's not sufficient. If you're an organization that has to
+ 118402 [samgoldman@j] And the subject takes up the whole first section of Test Driven
+ 118432 [carl.youngbl] Come to think of it, do all currencies even have "cents"? I know of
118435 [sera@fh an .] Well, it depends on what you're measuring. Some tasks need a finer
118451 [aredridel@gm] It's important when there's large amounts of a price -- a million at
Execution and dos path woes
118140 [doodpants@ma] Is there an easy way in Ruby to convert a long dos path name into a
+ 118162 [Ara.T.Howard] how about
| 118254 [doodpants@ma] Those aren't single quotes; that's Ruby's backquote method. IOW, that
+ 118164 [matt.mower@g] Try
+ 118200 [djberg96@ho ] require "win32/file"
| 118255 [doodpants@ma] Cool, thanks!
+ 118217 [bob.news@gm ] "Karl von Laudermann" <email@example.com> schrieb im Newsbeitrag
118142 [jgb3@em il b] If I'm reading Matz's blog right, it looks like his wife just gave birth
+ 118165 [rff_rff@re o] auguri!
+ 118170 [ s@xs .d ] And just as was the case with his other child,
[ANN] Needle 0.9.0
118146 [jgb3@em il b] [I sent this over 2 hours ago, now, and it still hasn't shown up on the
Dereferencing PtrData in Ruby/DL
118156 [carl.youngbl] window = DL.malloc(DL.sizeof('P'))
118159 [jgb3@em il b] Carl,
118178 [carl.youngbl] Thanks Jamis. Now I have another problem. How do I get a pointer to
118183 [jgb3@em il b] Try "mypointer.ptr".
118188 [jgb3@em il b] Ack. Other way around. PtrData#ptr dereferences a pointer, while
+ 118197 [carl.youngbl] That was just what I needed. Thanks!
+ 118202 [timsuth@ih g] What do you think of the following patch to dl/doc/dl.txt? The first time I
118244 [burtdav@ho m] Much better. +1
[ANN] Needle 0.9.0
118157 [jgb3@em il b] Needle is a dependency injection (and service locator) container for Ruby.
From a Ruby Script, How to automatically login to www.netflix.com
118158 [victor.reyes] I have a subscription to www.netflix.com and I also have a library fo
118166 [todd.bradley] You've got a couple options, either interacting with the HTTP stream
118275 [paul.rogers@] The code base for wtr is migrating to WATIR at the same url. There are
+ 118278 [carl.youngbl] Another option is the CURL library. You could execute curl commands
| 118282 [todd.bradley] Interacting with the HTTP stream directly may turn
| 118286 [mailinglist_] execute curl commands
| + 118288 [jgb3@em il b] It's actually a part of the Ruby standard library as of 1.8. Thus, you
| | + 118340 [timsuth@ih g] ...
| | | 118343 [jgb3@em il b] I admit, I overstated the facts. However, API documentation is only half
| | + 119222 [michael.camp] Don't forget "open-uri" for the quick/dirty stuff.
| + 118289 [carl.youngbl] It's built into the current version of ruby, including the Windows
+ 118861 [pat@vp p. et] you can login and search netflix from our Netflix toolbar.
118161 [transami@ru ] This just struck me as so "cute" that I had to share.
Why does Ruby issue this warning?
118168 [curt@hi bs c] puts HTTP.get url("collection", MARK)
118193 [batkins57@gm] I think Matz is trying to deprecate the use of multiple method calls
118171 [belorion@gm ] I've installed mod_ruby and eruby on a number of different occassions
+ 118174 [Ara.T.Howard] sounds like you are linking (at runtime) against the old mod_ruby libraries
| 118175 [belorion@gm ] I went through and deleted mod_ruby.so. It appears in 2 locations, and
| 118565 [curne@cu no ] Well, LD_LIBRARY_PATH and LD_RUN_PATH are environment variables, set at
+ 118570 [patrick@he a] * there are lists at modruby.net specifically for mod_ruby. you might
118594 [belorion@gm ] Thanks everyone for the help. I had indeed posted a message to the
How to make Dir.glob method NOT case sensitive.
118179 [keuler@po ta] ...
118182 [drbrain@se m] See Dir.glob and File.fnmatch in ri
118184 [keuler@po ta] Eric-
118194 [Stephan.Kaem] "ri" is the I Ging. It has the answer to all questions (as long as
Ruby & Oracle 10g
118180 [aengstrom@gn] I'll be starting a new project in a month or two, and the DB will be
118181 [alex@ve k. n] DBI comes with Oracle driver that can work with 9.2 at least.
118186 [aengstrom@gn] Thanks. Would that be the Ruby9i driver (by Jim Cain)?
118190 [alex@ve k. n] I think what I use is dbd_oci8. Don't remember exactly, I'm not in the
118199 [aengstrom@gn] Coo.. I'll have to give the oci8 driver a try :)
118219 [roberto@RE O] I use 10g and Ruby/dbi/oci8 everyday on my MacOSX so I can guarantee it
118233 [aengstrom@gn] That's great news! I suppose that means that the information on
How to build Ruby on Windows
118191 [matt.mower@g] I've added a page to Ruby garden documenting how I built Ruby 1.8.2
+ 118192 [aredridel@gm] Wow, Matt, nicely documented!
+ 118222 [ruby-lists@l] this is getting to be a ****ing joke.
+ 118226 [rff_rff@re o] very nice. You could have asked for the main page of rubygarden, maybe ;)
| 118243 [matt.mower@g] This is an interesting question. My understanding from editing
| 118247 [eule@sp ce c] You should get libz (or so) and openssl library... This link
| 118293 [ml-ruby@th p] <http://sourceforge.net/project/showfiles.php?group_id=23617>
+ 118483 [Stephan.Kaem] Nice work.
118485 [matt.mower@g] I'm not sure what you mean. Can you please explain?
118486 [Stephan.Kaem] Sure.
118489 [matt.mower@g] Hmm... I can't remember why I did that. Maybe I read (or misread?)
How to install the free compiler for Windows
118198 [djberg96@ho ] I've put up a wiki page for how to install the free Windows compiler.
+ 118201 [joaopedrosa@] Thanks for that! I'm going to try out your recipe and report anything. :-)
+ 118221 [ruby-lists@l] anyone able to summarize a few reasons for
118227 [rff_rff@re o] are'nt MS' compiler and VC the same thing? :)
+ 118228 [ruby-lists@l] erm. oops yes :) i meant gcc vs m$
+ 118229 [nobu.nokada@] Extensions compiled with mingw32 are binary compatible with
118231 [rff_rff@re o] you mean I *should expect* this and report different experiences as a bug?
+ 118240 [nobu.nokada@] At first, correction.
+ 118241 [ml-ruby@th p] I haven't used MinGW in a while, but it used to be that it used the same
building openssl extension
118203 [ptkwt@ar cn ] I tried building ruby 1.8.2 preview 2 and noticed that I didn't get
+ 118220 [B.Candler@po] $ grep -i ssl configure
| 118223 [B.Candler@po] This may not be what you need for your Mandrake system, but from mkmf.log it
+ 118291 [gotoyuzo@no ] Did you try this?
+ 118296 [ptkwt@ar cn ] As pointed out by Brian Candler, I don't see a --with-openssl-dir option
+ 118331 [ptkwt@ar cn ] That worked.
118361 [ptkwt@ar cn ] Sorry to reply to my own post, but someone else might also run into
toplevel is all levels ?
118208 [transami@ru ] My, my. I'm always discovering something new about Ruby. Strange how POLS can
118209 [matz@ru y- a] def statement at the top level defines private method in Object
118212 [transami@ru ] I see. Thank you. Interestingly irb doesn't throw the error.
118246 [batkins57@gm] Why should it? If t is a private method of Object, and R is an
Thread::list and GC
118211 [Ara.T.Howard] i have a program i'd like to exit gracefully on certain signals. the code
+ 118213 [billk@ct .c ] Maybe,
| 118218 [bob.news@gm ] "Bill Kelly" <firstname.lastname@example.org> schrieb im Newsbeitrag
| 118316 [billk@ct .c ] The OP mentioned the possibility of new threads being created
| + 118325 [Ara.T.Howard] exactly correct - i'll examine your code.
| + 118379 [bob.news@gm ] "Bill Kelly" <email@example.com> schrieb im Newsbeitrag
| + 118433 [drbrain@se m] st=20
| | 118499 [bob.news@gm ] "Eric Hodel" <firstname.lastname@example.org> schrieb im Newsbeitrag
| | 118536 [drbrain@se m] re
| + 118454 [billk@ct .c ] I did think about that, whether it would terminate... But I'd
| 118500 [bob.news@gm ] "Bill Kelly" <email@example.com> schrieb im Newsbeitrag
| 118507 [Ara.T.Howard] almost exactly what i'm doing... basically i set a global variable when a
+ 118311 [drbrain@se m] Have you seen the ThreadGroup class? A thread can only live in one
118312 [Ara.T.Howard] i did look at that - however i'm worried that having a reference to the thread
118318 [drbrain@se m] $ ruby
BUG in File
118234 [bitserf@gm i] module X
+ 118236 [nobu.nokada@] Should it return Qnil or raise an exception?
+ 118237 [decoux@mo lo] same with IO#closed?
118239 [nobu.nokada@] Yes.
118245 [matz@ru y- a] Commit those fixes, please.
Output of 'ri inherited'
118235 [Stephan.Kaem] When I do this
118472 [dave@pr gp o] I believe that's an old ri/ruby. It seems to work OK in the latest CVS.
finalizer receiving object id only. by design?
118238 [bitserf@gm i] i'm curious as to why finalizers receive object id only, and cannot
118242 [bob.news@gm ] "leon breedt" <firstname.lastname@example.org> schrieb im Newsbeitrag
RubyGarden wiki patch
118249 [chadfowler@g] FYI, I've just implemented this
+ 118251 [phil.roberts] Chad Fowler <email@example.com> treated the lovely people of
+ 118252 [dross@co e- ] Then you wouldn't mind giving out the server logs for us to confirm you
+ 118258 [batkins57@gm] Oh, give it a rest, you. He's got nothing to gain from lying.
| 118260 [dross@co e- ] I'm not the one that is telling lies, and yes he does. He thinks he has
| 118261 [dross@co e- ] oh btw, besides the common ports, there are special ports that change
| 118264 [batkins57@gm] If you have issues with Chad's decisions, then communicate with him
| 118271 [dross@co e- ] Trolling? excuse me. Everytime anyone argues its called trolling. Grow up.
| + 118283 [todd.bradley] vendettas
| + 118322 [aengstrom@gn] Well said.
| 118323 [dross@co e- ] I agree. Often people jump in and back someone up without studying the
| 118329 [hal9000@hy e] No, David, YOU are the problem here, you and no one else.
+ 118387 [ruby@br an s] PLONK
118388 [dross@co e- ] /me blinks
118392 [mikael@ph bu] Well, metaphorically, it means dumping your hostile allegations against
+ 118394 [transami@ru ] Killfile?
| + 118398 [dross@co e- ] I've actually bee thinking of writing some code for usemod to check RBL,
| | 118405 [dross@co e- ] wrong. The ruby scanner won't work, it will have to be done in C/C++
| + 118400 [dross@co e- ] What can I say.. Efnet and certain gruops rubbed off on me. I've tried
+ 118395 [dross@co e- ] <>Oh, Thanks Mikael, I'm not great with sound recognition. I asked
+ 118401 [mikael@ph bu] You say you can't escape your habit of rudeness. Here's a simple
| + 118403 [dross@co e- ] You don't know how hard I've tried, even lilo(head of Freenode IRC) has
| + 118404 [jgb3@em il b] I, for one, am surprised that people continue to reply to David's
| + 118407 [steven.jenki] Wholeheartedly concur. I plonked dross a long time ago and haven't
| + 118408 [jamesUNDERBA] Thank you.
| | 118412 [markus@re li] Maybe we just need to think creatively here. With a bit of
| + 118411 [halostatue@g] This is certainly true. Even folks with Tourette's syndrome can help it.
| 118414 [dross@co e- ] No, they can't. I had Tourettes, I'll fax you my medical record if you
| 118415 [halostatue@g] No, David, they can. The tics and involuntary movements is the primary
| 118417 [dross@co e- ] No, they cannot. Even if you hold the throat or arm muscle, it *will*
+ 118410 [halostatue@g] You're an ass, David, and you do more harm for the things that you suggest than
118416 [dross@co e- ] Yes, there is which I pasted below. He said he used blask listing. Even
118419 [decoux@mo lo] Associate it with another test (captcha, or what you want)
118421 [dross@co e- ] oops, I mean real-time scanning like Freenode networks. Sure, the lists
[QUIZ] Sokoban (#5)
118250 [james@gr yp ] 1. Please do not post any solutions or spoiler discussion for this quiz until
Re: [QUIZ] Sokoban (#5) -- Games in Ruby
118253 [flgr@cc n. e] Interesting. In fact I did a cross between Sokoban and Dr. Mario (a nice
+ 118256 [james@gr yp ] I'm glad you like this one.
| 118259 [laurent.sans] There is an interesting implementation of the Sobokan game as a
+ 118554 [gdprasad@gm ] Thank you for causing me to write my first ever game programme in any language.
| + 118561 [burtdav@ho m] I'm rubying on Windows. Is there a way I can do this? Or something even a
| | 118600 [batsman.geo@] Compile pdcurses, then build curses.so linking against it.
| + 118580 [james@gr yp ] I was very surprised when my company got contracted last year to write
| + 118967 [james@gr yp ] There's a minor bug in here somewhere. When I play the first level and
+ 118601 [flgr@cc n. e] ...
[ANN] Design by Contract for C
118262 [cmills@fr es] I am pleased to announce the first public release of DBC for C - a C
118267 [bob.news@gm ] "Charles Mills" <firstname.lastname@example.org> schrieb im Newsbeitrag
118274 [cmills@fr es] No and certainly DBC for C is not a one-size fits all solution. But,
118337 [botp@de mo t] //Subject: [ANN] Design by Contract for C
true? & false?
118265 [mkhan@le tr ] Wouldn't it be nice to have two more methods true? and false? like nil?
118266 [batkins57@gm] Why would that be nice? :)
118268 [mkhan@le tr ] I prefer something like,
+ 118269 [batkins57@gm] if (a.method_call == b.method_call).true?
| 118272 [mkhan@le tr ] Bill,
| 118277 [batkins57@gm] Well, all Objects must be nil or non-nil, but the idea of true/false
| 118279 [mkhan@le tr ] I agree with you on this point.
| 118280 [transami@ru ] But it must be responded to by all classes.
| 118284 [mkhan@le tr ] class Object
| + 118285 [transami@ru ] Cool, that'll work.
| | 118287 [mkhan@le tr ] yes, they will work.
| + 118300 [batkins57@gm] I'm still skeptical about the usefulness of this, but I think the best
+ 118270 [james@gr yp ] if a
118276 [mkhan@le tr ] compare this,
118294 [halostatue@g] I'm sorry, but I don't understand why you think you need this latter.
118295 [mkhan@le tr ] Same way I can say,
118297 [msparshatt@y] The point Austin was making was, if nil? was removed why would you need
118303 [mkhan@le tr ] That's why I wanted to have true? and false? method.
119841 [jean_hugues_] I think things should stay the way they are, here is
+ 119859 [bob.news@gm ] "Jean-Hugues ROBERT" <email@example.com> schrieb im Newsbeitrag
| + 119877 [jean_hugues_] I don't agree. I don't think that an object IS a value.
| | 119888 [bob.news@gm ] "Jean-Hugues ROBERT" <firstname.lastname@example.org> schrieb im Newsbeitrag
| | 119917 [jean_hugues_] So. What is a value ? What is an object ? What are the
| | 119937 [logancapaldo] Well I have written true? and false? methods in the past. Forgetting
| | 119939 [halostatue@g] unless a.nil?
| | + 119941 [logancapaldo] Well that was just one example, of course I know about unless. I'm not
| | | 119959 [halostatue@g] case
| | + 119968 [gsinclair@so] if a.notnil?
| + 119879 [mkhan@le tr ] to make differentiation between "a value in boolean context" and "its
| + 119886 [mkhan@le tr ] Correction, please read
| + 119938 [halostatue@g] Why? This is the ultimate question that I don't think has been
| 119951 [mkhan@le tr ] class Object
| 119961 [halostatue@g] No, I didn't. Not anything convincing, at any rate. It seemed to
| 119962 [mkhan@le tr ] Personal taste! May be I am fond of wired taste !!
| + 120002 [halostatue@g] Perhaps it is a matter of taste -- but is this sufficient reason to
| | 120060 [mkhan@le tr ] Answer is Yes.
| | 120072 [michael.deha] "In ruby there have many methods that names end with '!' like, collect!,
| | 120073 [mkhan@le tr ] Thanks for your nice explanation on exclamatory sign.
| + 120043 [jean_hugues_] Style matters. Personal style matters too. In order
| 120055 [mkhan@le tr ] I do the same. I fact I was doing it for a while.
+ 119942 [hal9000@hy e] I agree, and well said.
120042 [jean_hugues_] Thanks. EOM.