287290-373226

287091-358914 subjects 287541-381197

is iif available
287290 [junkone1@gm ] is there a IIF equavalent in Ruby. I could not find one
287291 [rick.denatal] result = left == right ? trueval : falseval
+ 287293 [sepp2k@go gl] Or   result =3D if left =3D=3D right then trueval else falseval end
+ 287329 [MonkeeSage@g] I like Wittgenstein's penultimate point in the expanded final edition
+ 287369 [rick.denatal] Well I was tempted to reply with such a litany in my original post,

Stupid question. I'm in deadend
287302 [rosol@in ox ] I'm newbie. Please, help. I suppose it's easy :)
287307 [fxn@ha hr f.] Could you please repost this question to the rubyonrails-talk mailing
287312 [rosol@in ox ] Thanks. I've reported and got right solution

known api for mbtrading
287304 [junkone1@gm ] are there any known ruby api/gem to interface with mbtrading sdk

ANN: Babel 0.1.1 Released
287305 [ciconia@gm i] Babel 0.1.1 has just been released. Babel is a tiny library for
287313 [apeiros@gm .] Thanks for writing that gem. However installing it via gem install babel
+ 287316 [apeiros@gm .] Installing via download + local install works nice btw. And thanks
+ 287340 [ciconia@gm i] Yes, there's a name conflict with an existing gem. I've renamed mine,

termination of my ruby apps leads to error
287306 [junkone1@gm ] I always get a error like this when i press Ctrl C to terminate my
301619 [boesemar@gm ] If I am not mistaken it's the SIGINT handler that produces the trace (assuming

(none)
287308 [mwbalk@re ea] ...

regex help partial code
287310 [junkone1@gm ] I have with great effort started on teh regex implemention and am
+ 287318 [john.carter@] Unless you use the i modifier, ruby regexps are case sensitive. So
+ 287323 [junkone1@gm ] irb(main):046:0> a=3DRegexp.new('(add)\s+(\S+)\s+([i|s|f])\s+([pei])?\s
  + 287326 [john.carter@] irb
  + 287337 [yermej@gm il] There are a few problems here, I think.

Re: Counting Cards (#152)
287319 [micathom@gm ] Two basic ASCII front-ends are provided. If figlet is available and
287324 [s.korteling@] Your code resulted in this error: "card_count_trainer1.rb:50:in `*': no

regular expression
287321 [stu_09@ho ma] hey
+ 287325 [thomas.adam2] What is it you want to do with this?
+ 373226 [b.candler@po] Is this a homework question?

MySQL gem on 64-bit Solaris won't compile
287333 [andrew.ohnst] Solaris 10 x86 on a 64-bit Xenon server...  Can anyone guess where this
+ 287335 [steve@vd p. ] on the subject line, etc. that denotes this as a [ruby-talk] group, so
| 287342 [konrad@ty er] charset="utf-8"
+ 287413 [tom.hurst@cl] It's *Xeon*.  Every time you say Xenon an Intel marketing team member
  287473 [andrew.ohnst] Oops, I mean I meant to do that, I mean oops... }:0
  287550 [gerardo.sant] You're mixing 32-bit and 64-bit libraries.
  287871 [andrew.ohnst] Well, yes, apparently this is true.
  287880 [andrew.ohnst] I tried this as well.  I got the MySQL libraries off a Solaris x86 32
  287909 [gerardo.sant] You have to tell Solaris where are the 32-bit libraries and the 64-bit

Two dimention arrays and accessing syslog.
287346 [smurf_bp@at ] All,
287349 [stefano.croc] ed
287350 [smurf_bp@at ] thanks for that, that was really cool code.

[ANN] Malaysia.rb January 2008 Meetup
287347 [kamal@ro .c ] Malaysia.rb is kicking off 2008 with a bang! The January 2008 Meetup =20

setting string width
287352 [hsolter@gm i] I'd like to insert  newlines into a string around every 80ish
+ 287353 [andrew@an re] Hurcan
| + 287357 [billk@ct .c ] Ah, nice.
| | 287360 [robert.dober] I know you have been served well but I would like to take advantage to
| | 287372 [james@gr yp ] Absolutely.
| + 287358 [hsolter@gm i] yes yes the word was "the word wrap" .Silly me
+ 287354 [billk@ct .c ] string.gsub(/(.{75,}?\S*)\s+/, "\\1\n")
+ 287355 [fxn@ha hr f.] require 'facets'

regular expression
287368 [stu_09@ho ma] hey
287371 [shortcutter@] Doesn't sound too difficult.  What did you came up with so far?
287374 [stu_09@ho ma] hey
287375 [shortcutter@] You can do either
287376 [stu_09@ho ma] i appreciate the help
+ 287378 [shortcutter@] Yes.
| 287379 [stu_09@ho ma] thank you.
| 287400 [phrogz@ma .c] piece. Hint: \e is not meaningful in a (Ruby) regexp.
+ 287380 [rick.denatal] That's looking for 10 word characters FOLLOWED by either ed or ing.
  287381 [stu_09@ho ma] thank you.
  + 287382 [ruby@sl gh l] \w{7}(?:\wed|ing)
  + 287384 [moises.trovo] The "\w{7}" matches with 7 chars, so to match all your expression it
  + 287387 [shortcutter@] Maybe you should rather *read* what people write if they take the time
    287436 [pstickne@gm ] You can also expand the alternation all the way through.
    287480 [shortcutter@] But this is less efficient with NFA regexp engines because it has to

Re: Thin v0.5.2 Cheezburger released
287393 [code@je em e] ruby-style [1] supports what you want, serving Rails via Mongrel or
287396 [ara.t.howard] fcgi support?

how to get the method name
287395 [mario@be wa ] puts self.class.to_s()
+ 287401 [carlosjhr64@] I don't think I've got your question exactly, but
+ 287406 [thibaut.barr] For pre ruby 1.9 you'll have to use a work-around.
  287482 [mario@be wa ] Thank you very much.

any tricks to speed up ruby?
287414 [rogerpack200] Wondering if anybody had suggestions for how to speed up 1.8.6 on an old
+ 287418 [billk@ct .c ] Not sure if this applies to OS X or not, but there have been some posts recently
| + 287421 [rogerpack200] Thanks!  Now if I can just figure out how to check if mine is built with
| | 287425 [tpo2@so rc p] tpo@petertosh:~$ ldd `which ruby`
| | 287469 [dan-ml@da 42] That is not necessarily true. It's possible to have ruby compiled with
| + 287429 [shortcutter@] I also believe to remember that optimization options made a significant
|   287430 [rogerpack200] Unfortunately it's for a rails app so I am unequivocally (except for
|   287464 [cwdinfo@gm i] If you have a Rails app that is taking a long time in Ruby code, then
|   287465 [ryand-ruby@z] ...at least take me out for a drink first...
|   287475 [cwdinfo@gm i] Ground on which you walk, then, Ryan.
|   287485 [raasdnil@gm ] What... and waste a good drink?!?!
+ 287423 [james.britt@] A) Helpful
| + 287424 [victor.reyes] ...
| + 287431 [rogerpack200] I like it!
| + 287450 [john.carter@] Helpfully trolling with laughable flamebait?
| + 287571 [charles.nutt] Heh, same question for "Use JRuby"...
| + 287583 [znmeb@ce ma ] Well ... my answer was, "if it's a notebook, I'll give you $50 for it." :)
| | 294240 [rogerpack200] Wow that does indeed help (once figured out).  for me on my G4 it was
| | + 294290 [pbrannan@at ] I suspect --disable-pthread had the largest impact.  The cost of memory
| | | 294293 [hramrach@ce ] I suspect this is pretty much noop as most of the code is in libruby
| | | 294296 [pbrannan@at ] Perhaps it depends on the platform, but on x86 linux, libruby is a
| | + 295318 [rogerpack200] So turns out that the difference seems to be that between p110 and p114.
| |   295515 [pbrannan@at ] I'm guessing it's the way you built it; these are the only changes
| |   295568 [rogerpack200] Yep you were right on.
| |   295641 [pbrannan@at ] ruby -rrbconfig -e 'puts Config::CONFIG["configure_args"]'
| + 294245 [w_a_x_man@ya] Use Pascal.
+ 287510 [ara.t.howard] use narray whenever possible.

a wrapper for logging the executables' usage
287415 [max.bret@ya ] ...

can't install ccsv (wiered)
287420 [linux@pi rd ] gem install ccsv -r
287437 [pstickne@gm ] It looks like you need to install the Ruby DEVELOPMENT files.
287575 [linux@pi rd ] I tried - but still no luck.

[ANN] ruby-wmi 0.2.2 Released
287432 [gthiesfeld@g] ruby-wmi version 0.2.2 has been released!

Re: Ruby from source on Leopard excruciatingly slow internet
287434 [rogerpack200] could try the macport ruby
287462 [cwdinfo@gm i] I've had almost exactly the same experience. Really slow internet
287472 [andrew.ohnst] I had this problem too and found some bogus DNS servers had creeped into

Multiple Trees in a better_nested_set Table.
287438 [beholdthepan] ...

How to force a copy over a read-only file
287439 [mchabotsol@h] I want to copy a folder over an existing one. Some files are read-only.
287557 [damnbigman@g] ...
287744 [mchabotsol@h] I thought about this solution, but in fact I don't want to change the

Splitting up hostname using Regex
287440 [gustav@vo sy] "eat.chunky.bacon.com" => regex => ["eat","chunky","bacon","com"]
+ 287441 [thomas.adam2] Why a regexp?
| + 287443 [gustav@vo sy] Good question, to which I have no real answer ;)
| + 287444 [kriswindham@] Hey,
|   287445 [thomas.adam2] Depends what the OP was wanting to do with the TLD.  You might not
|   287448 [kriswindham@] Oh,
+ 287442 [justincollin] No need for regex or anything fancy, really...

Lots of seg faults
287446 [scottburton1] Anyone care go guess what's going on here?
287447 [thomas.adam2] Anything else segfaulting?   Might be faulty memory -- see memtest86
287452 [scottburton1] Thanks Thomas,
287460 [tom.hurst@cl] No, that just means the value on the stack isn't a valid memory address
292243 [originofstor] i am having the same problem. was a solution found? did it turn out to
292245 [scottburton1] I'll let you know in a few days when I get my RAM

weird irb behavior osx
287449 [kriswindham@] Just wanted to point this out.

[ANN] Ruby 1.9 Compatibility for TMail
287451 [raasdnil@gm ] We have now finished getting TMail trunk compatible with Ruby 1.9.

Process.setrlimit question
287453 [ara.t.howard] why does this not blow up?
287456 [djberg96@gm ] What platform?
287459 [ara.t.howard] osx - tiger
287468 [djberg96@gm ] setrlimit() doesn't work on OS X.
287470 [ara.t.howard] well gosh - that'd explain it - doh!  ;-)
287570 [djberg96@gm ] You would think. I've hit other situations like this with OS X, too. :(

eval question ?
287454 [macro.peng@g] I hava a string indicate a hh/mm/ss time and some other strings indicat
+ 287455 [nobu@ru y- a] "+5".to_i == 5
+ 287457 [m.fellinger@] ^ manveru
  287461 [macro.peng@g] Cool website, cool solution. Thanks very much :-)

Fwd: Attempted solution. :)
287458 [james@gr yp ] ...

[OT] Re: Ruby from source on Leopard excruciatingly slow internet
287463 [ara.t.howard] me too.  this a leoTard issue.  in general i'm finding it to be
+ 287476 [cwdinfo@gm i] ...
+ 287483 [frederick.ch] I had a problem like that. For some reason removing all locations from

ANN: Holidays 0.9.1 released and call for contributors
287466 [alex@du ae c] The Ruby holidays gem has been released and I'm looking for

[ANN] ZenTest 3.8.0 Released
287467 [ryand-ruby@z] ZenTest version 3.8.0 has been released!

OptionParser order of arguments
287471 [tom@ac id nt] all-
287474 [nobu@ru y- a] print_param = false

[ANN] mechanize 0.7.0 Released
287477 [aaron@te de ] mechanize version 0.7.0 has been released!

[ANN] vlad 1.2.0 Released
287478 [ryand-ruby@z] vlad version 1.2.0 has been released!

TreeView question
287479 [cesare.diaz@] I try use a TreeView with libglade2 library ... it work fine writing

utime a dir and convert Date to Time
287484 [info@ra ia s] I am learning some core Ruby (non Rails env) by playing with some File
287497 [giuan.m@gm i] File.utime  works with C ruby and jruby 1.1 (I haven't try 1.0)
287527 [info@ra ia s] Yea, quite right. My simple mistake was to issue a FileUtils.mkdir
287560 [s.korteling@] timeInMillis would be stored in a fixnum. Hmm, let's try .to_f .

How to catch and rescue a login error through telnet
287486 [prasadm29@gm] I was trying out the following snippet of code and just wanted to
287490 [raasdnil@gm ] It's because not all exceptions are created equal :)
287491 [prasadm29@gm] I have used TimeoutError with the rescue statement, which works
287597 [prasadm29@gm] Just curious to know if there exists any error if the login fails ???

hashes
287487 [redaudi@gm i] hopefully someone might be able to shed some light on this.
287492 [andrew@an re] I assume that you can already do the database lookup etc.
287504 [redaudi@gm i] On Jan 15, 1:04 pm, Andrew Timberlake <and...@andrewtimberlake.com>

IO redirection
287488 [devi.webmast] Basically, I need to redirect the results of exec. While I can
287502 [yu_raku_an@y] Use

Generic ? regarding Threads
287489 [venkatesh.ma] I am planning to use Ruby threading to query 2 different databases
287495 [carlosjhr64@] My experience on multiple sources is that sometimes
287509 [venkatesh.ma] I have much simpler requirements. I don't use Active Record which I
287519 [carlosjhr64@] I did some very minor experimentation back when the first Database

Re: Attempted solution. :)
287494 [james@gr yp ] Thanks for sending in a solution!
287500 [doodpants@ma] I personally tend to avoid using those cryptic Perl-like two character

How to generate a serial random number
287496 [chen_li3@ya ] I want to generate a serial of 5 random numbers based on the size of an
287505 [phrogz@ma .c] I agree that removing the items is the way to go.

having trouble with ruby and rubygem versions
287501 [segwinkler@g] When I tried to install Thin as a gem, it refused to contend itself

[OT] Re: How to generate a serial random number
287507 [phrogz@ma .c] 5.times{
287520 [gareth.adams] If you want to be picky then it should be "fewer" too
287529 [pstickne@gm ] How "random" does random have to be?

Fwd: 1.9 significantly slower than 1.8 on Mac
287508 [groups@de uk] Hmm. Simplifying my test script further, I am not sure that Regexp is
+ 287514 [decoux@mo lo] Well, some part of #each_line for 1.8.6
+ 287533 [lopx@ga et .] Oops, It seems you're right, just split the original logfile and use

how to set my homepage?
287511 [mghohoo@gm i] i have a problem in how to configure my websites

ruby-oci8-1.0.0 rowid
287512 [a.goo0h@gm i] It would seem that this is still a problem? I'm trying to port some
287750 [a.goo0h@gm i] cursor = conn.parse('select rowid, t.* from dual t')

Ruby 1.9 and unicode
287513 [mailing.mr@g] Well i tried to play a little with new unicode features.
287523 [giuan.m@gm i] I try with netbeans and from command in windows: it works!
287547 [mailing.mr@g] Strange, anyone can confirm that behavior? mayby some compiler flags ?

Failure to load "openssl.bundle" (RuntimeError) - need help
287524 [trey@tr ya d] I'm new to Ruby on Rails and am using the stack provided in Leopard.

Overridding A Method Via A Mixin
287525 [boss@ai bl d] I believe one can add methods to a class by including a module but
+ 287526 [shortcutter@] irb(main):001:0> module Bar;end
| 287530 [boss@ai bl d] Aha, of course.  Thank you for the clear explanation.
| 287535 [shortcutter@] You're welcome!
| 287640 [boss@ai bl d] Thanks!  You are kind to say so.
| 287656 [caduceass@gm] I think he was joking since Americans typically use "specialize" and
| 287664 [shortcutter@] You're welcome!  I really like the clean design.  You know, I am more
| + 287689 [caduceass@gm] Got it.  Easy to miss.  Also, I assumed you were talking about the home page.
| + 287723 [boss@ai bl d] Got it.  Quelle gaffe!
+ 287532 [jens.wille@u] module Bar
| 287639 [boss@ai bl d] There's always a way!  Thanks Jens, that's neat.
+ 287540 [ara.t.howard] i personally avoid aliases like that - they stack when you double
  + 287561 [robert.dober] Actually whenever these issues come up I wonder why we still define
  + 287644 [boss@ai bl d] I see.  That sounds much more sensible.

rake published rdoc version and arity of Rake::Task#execute - wrong number of arguments (0 for 1)
287528 [jamesmead44@] Does anybody know if there is a reason why the rdoc for the rake gem

Ruby on Rails/mod_perl Developer - Free lunch on Fridays!
287534 [sbaker@pa ke] Are you a talented Ruby on Rails or mod_perl Developer looking for an
287538 [jeremymcanal] Where is this at?  This is one of the most vague job listings I've ever seen.
287552 [damnbigman@g] ...

set operations on array of hash
287537 [scooterm@ho ] var1    = [
287577 [pstickne@gm ] Also, check out the follow-up reply.

regex failure notifcation
287539 [junkone1@gm ] When i match a pattern and if it returns a nil, obviously the regex
287588 [andrew@an re] You could change the regular expression to
threads.html
top