117929-118556 subjects 118273-119677
^ run linux commands as ruby scripts
118104 [nkb pacific.] 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 keepy] a=`ls -l`
^ Daily erb Questions
118114 [james graypr] I bet everybody wants me to finish this project by now, so I'll stop
^ Another blog entry on Rails...
118115 [tom infoethe] 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 infoethe] Argh, you're right. I skimmed too fast... disregard, disregard...
+ 118130 [matt technor] Very neat. However, I do want to point out that writing the software is
118149 [david loudth] 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 nte] 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 nte] Yes, you have to install Ruby/DB2, too ;-)
118155 [victor.reyes] Mike,
118210 [botp delmont] 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 nte] BTW, which version of Ruby do you use (and which DB2)?.
^ Pickaxe 2 pdf - hyperlinks missing ?
118123 [itsme213 hot] 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 nosp] Where can you download the fixed PDF version (if you have paid for it :P)?
| + 118147 [usenet2 nosp] Never mind. :) Just got an e-mail that I can download the PDF file.
| + 118177 [robert.mcgov] Exactly what I was wondering.
+ 118138 [dave pragpro] The PDF hyperlinks explicit cross references (typically things that
118163 [itsme213 hot] 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 graypr] This could make a great Ruby Quiz, if written up correctly, I think...
118385 [ruby brian-s] Why not just use integer valued cent-counts?
118393 [sera fhwang.] 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 fhwang.] 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 hot] require "win32/file"
| 118255 [doodpants ma] Cool, thanks!
+ 118217 [bob.news gmx] "Karl von Laudermann" <email@example.com> schrieb im Newsbeitrag
^ Matz's baby!
118142 [jgb3 email.b] If I'm reading Matz's blog right, it looks like his wife just gave birth
+ 118165 [rff_rff remo] auguri!
+ 118170 [ s xss.de] And just as was the case with his other child,
^ [ANN] Needle 0.9.0
118146 [jgb3 email.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 email.b] Carl,
118178 [carl.youngbl] Thanks Jamis. Now I have another problem. How do I get a pointer to
118183 [jgb3 email.b] Try "mypointer.ptr".
118188 [jgb3 email.b] Ack. Other way around. PtrData#ptr dereferences a pointer, while
+ 118197 [carl.youngbl] That was just what I needed. Thanks!
+ 118202 [timsuth ihug] What do you think of the following patch to dl/doc/dl.txt? The first time I
118244 [burtdav hotm] Much better. +1
^ [ANN] Needle 0.9.0
118157 [jgb3 email.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 email.b] It's actually a part of the Ruby standard library as of 1.8. Thus, you
| | + 118340 [timsuth ihug] ...
| | | 118343 [jgb3 email.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 vpop.net] you can login and search netflix from our Netflix toolbar.
118161 [transami run] This just struck me as so "cute" that I had to share.
^ Why does Ruby issue this warning?
118168 [curt hibbs.c] puts HTTP.get url("collection", MARK)
118193 [batkins57 gm] I think Matz is trying to deprecate the use of multiple method calls
^ mod_ruby problems
118171 [belorion gma] 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 gma] I went through and deleted mod_ruby.so. It appears in 2 locations, and
| 118565 [curne curnom] Well, LD_LIBRARY_PATH and LD_RUN_PATH are environment variables, set at
+ 118570 [patrick hexa] * there are lists at modruby.net specifically for mod_ruby. you might
118594 [belorion gma] Thanks everyone for the help. I had indeed posted a message to the
^ How to make Dir.glob method NOT case sensitive.
118179 [keuler porta] charset="us-ascii"
118182 [drbrain segm] See Dir.glob and File.fnmatch in ri
118184 [keuler porta] 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 verk.in] 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 verk.in] 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 REMO] 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 remo] 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 space.c] You should get libz (or so) and openssl library... This link
| 118293 [ml-ruby thep] <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 hot] 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 remo] 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 remo] you mean I *should expect* this and report different experiences as a bug?
+ 118240 [nobu.nokada ] At first, correction.
+ 118241 [ml-ruby thep] I haven't used MinGW in a while, but it used to be that it used the same
^ building openssl extension
118203 [ptkwt aracne] 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 not] Did you try this?
+ 118296 [ptkwt aracne] As pointed out by Brian Candler, I don't see a --with-openssl-dir option
+ 118331 [ptkwt aracne] That worked.
118361 [ptkwt aracne] Sorry to reply to my own post, but someone else might also run into
^ toplevel is all levels ?
118208 [transami run] My, my. I'm always discovering something new about Ruby. Strange how POLS can
118209 [matz ruby-la] def statement at the top level defines private method in Object
118212 [transami run] 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 cts.co] Maybe,
| 118218 [bob.news gmx] "Bill Kelly" <firstname.lastname@example.org> schrieb im Newsbeitrag
| 118316 [billk cts.co] The OP mentioned the possibility of new threads being created
| + 118325 [Ara.T.Howard] exactly correct - i'll examine your code.
| + 118379 [bob.news gmx] "Bill Kelly" <email@example.com> schrieb im Newsbeitrag
| + 118433 [drbrain segm] st=20
| | 118499 [bob.news gmx] "Eric Hodel" <firstname.lastname@example.org> schrieb im Newsbeitrag
| | 118536 [drbrain segm] re
| + 118454 [billk cts.co] I did think about that, whether it would terminate... But I'd
| 118500 [bob.news gmx] "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 segm] 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 segm] $ ruby
^ BUG in File
118234 [bitserf gmai] module X
+ 118236 [nobu.nokada ] Should it return Qnil or raise an exception?
+ 118237 [decoux moulo] same with IO#closed?
118239 [nobu.nokada ] Yes.
118245 [matz ruby-la] Commit those fixes, please.
^ Output of 'ri inherited'
118235 [Stephan.Kaem] When I do this
118472 [dave pragpro] 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 gmai] i'm curious as to why finalizers receive object id only, and cannot
118242 [bob.news gmx] "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 code-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 code-e] I'm not the one that is telling lies, and yes he does. He thinks he has
| 118261 [dross code-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 code-e] Trolling? excuse me. Everytime anyone argues its called trolling. Grow up.
| + 118283 [todd.bradley] vendettas
| + 118322 [aengstrom gn] Well said.
| 118323 [dross code-e] I agree. Often people jump in and back someone up without studying the
| 118329 [hal9000 hype] No, David, YOU are the problem here, you and no one else.
+ 118387 [ruby brian-s] PLONK
118388 [dross code-e] /me blinks
118392 [mikael phubu] Well, metaphorically, it means dumping your hostile allegations against
+ 118394 [transami run] Killfile?
| + 118398 [dross code-e] I've actually bee thinking of writing some code for usemod to check RBL,
| | 118405 [dross code-e] wrong. The ruby scanner won't work, it will have to be done in C/C++
| + 118400 [dross code-e] What can I say.. Efnet and certain gruops rubbed off on me. I've tried
+ 118395 [dross code-e] <>Oh, Thanks Mikael, I'm not great with sound recognition. I asked
+ 118401 [mikael phubu] You say you can't escape your habit of rudeness. Here's a simple
| + 118403 [dross code-e] You don't know how hard I've tried, even lilo(head of Freenode IRC) has
| + 118404 [jgb3 email.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 reali] 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 code-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 code-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 code-e] Yes, there is which I pasted below. He said he used blask listing. Even
118419 [decoux moulo] Associate it with another test (captcha, or what you want)
118421 [dross code-e] oops, I mean real-time scanning like Freenode networks. Sure, the lists
^ [QUIZ] Sokoban (#5)
118250 [james graypr] 1. Please do not post any solutions or spoiler discussion for this quiz until
^ Re: [QUIZ] Sokoban (#5) -- Games in Ruby
118253 [flgr ccan.de] Interesting. In fact I did a cross between Sokoban and Dr. Mario (a nice
+ 118256 [james graypr] I'm glad you like this one.
| 118259 [laurent.sans] There is an interesting implementation of the Sobokan game as a
+ 118554 [gdprasad gma] Thank you for causing me to write my first ever game programme in any language.
| + 118561 [burtdav hotm] 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 graypr] I was very surprised when my company got contracted last year to write
| + 118967 [james graypr] There's a minor bug in here somewhere. When I play the first level and
+ 118601 [flgr ccan.de] And here's my solution to this quiz. I used Ruby/Gosu again. It's very
^ [ANN] Design by Contract for C
118262 [cmills frees] I am pleased to announce the first public release of DBC for C - a C
118267 [bob.news gmx] "Charles Mills" <firstname.lastname@example.org> schrieb im Newsbeitrag
118274 [cmills frees] No and certainly DBC for C is not a one-size fits all solution. But,
118337 [botp delmont] //Subject: [ANN] Design by Contract for C
^ true? & false?
118265 [mkhan lextra] 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 lextra] I prefer something like,
+ 118269 [batkins57 gm] if (a.method_call == b.method_call).true?
| 118272 [mkhan lextra] Bill,
| 118277 [batkins57 gm] Well, all Objects must be nil or non-nil, but the idea of true/false
| 118279 [mkhan lextra] I agree with you on this point.
| 118280 [transami run] But it must be responded to by all classes.
| 118284 [mkhan lextra] class Object
| + 118285 [transami run] Cool, that'll work.
| | 118287 [mkhan lextra] yes, they will work.
| + 118300 [batkins57 gm] I'm still skeptical about the usefulness of this, but I think the best
+ 118270 [james graypr] if a
118276 [mkhan lextra] compare this,
118294 [halostatue g] I'm sorry, but I don't understand why you think you need this latter.
118295 [mkhan lextra] Same way I can say,
118297 [msparshatt y] The point Austin was making was, if nil? was removed why would you need
118303 [mkhan lextra] 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 gmx] "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 gmx] "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 lextra] to make differentiation between "a value in boolean context" and "its
| + 119886 [mkhan lextra] Correction, please read
| + 119938 [halostatue g] Why? This is the ultimate question that I don't think has been
| 119951 [mkhan lextra] class Object
| 119961 [halostatue g] No, I didn't. Not anything convincing, at any rate. It seemed to
| 119962 [mkhan lextra] 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 lextra] Answer is Yes.
| | 120072 [michael.deha] "In ruby there have many methods that names end with '!' like, collect!,
| | 120073 [mkhan lextra] Thanks for your nice explanation on exclamatory sign.
| + 120043 [jean_hugues_] Style matters. Personal style matters too. In order
| 120055 [mkhan lextra] I do the same. I fact I was doing it for a while.
+ 119942 [hal9000 hype] I agree, and well said.
120042 [jean_hugues_] Thanks. EOM.