221205-390063 subjects 221515-225648

Re: Great step for Ruby CI. Cerberus 0.3.0 released.
221323 [anatol.pomoz] You should to add tests to your application even if you do not use
221332 [zimba.tm@gm ] Sorry, it was some kind of humor. I NEED to start writing tests but

Ruby in a Nutshell .. worth it?
221325 [ebonakDUH_@h] I know this is somewhat out-dated, but is it worth getting?
+ 221331 [emiel@va de ] This was the book that got me hooked on Ruby. It's a really
| 221333 [ebonakDUH_@h] Are those significant changes? How soon is the next version
| + 221338 [peter@ru yr ] Definitely. Absolutely. Doubtlessly.
| | 221475 [cameron@so c] I couldn't understand the Pickaxe book. It was divided into weird sections
| + 221339 [emiel@va de ] It would give you a feel for the Ruby language but would
+ 221334 [peter@ru yr ] I came accross Ruby a few months ago when this book was already outdated
| 221337 [ebonakDUH_@h] he he .. nice way of putting it ;-)
+ 221349 [mathieu.chap] I use it everyday. 200 pages is compact. And French Oreilly book have
+ 221469 [ebonakDUH_@h] Thanks everyone!
+ 221511 [ezmobius@gm ] Hal Fulton's new book "The Ruby Way" #2 is absolutely excellent. I
  + 221514 [ebonak-a-@t-] thanks for the recommendation, I'll have to take a look,
  + 221527 [hal9000@hy e] Thanks for the kind remarks, Ezra...
  | + 221580 [ebonakDUH_@h] I was just looking for your book on amazon, 2nd edition is coming out
  | | 221595 [hal9000@hy e] Odd... I thought there was one at Amazon and/or awprofessional.com --
  | | 221666 [ebonakDUH_@h] Thanks .. that would be great.
  | + 221583 [znmeb@ce ma ] Lucky indeed ... I just went to Addison-Wesley and the book is not yet
  + 221530 [gilesb@gm il] I have version 1 of this. I like it better than Pickaxe, the Nutshell

adding times
221326 [ebonakDUH_@h] Ok, I try to use ruby for all sorts on-the-fly things as
+ 221328 [invalid@gm .] The argument for Time#+ is the seconds to add.
| 221329 [ebonakDUH_@h] cool .. so I was somewhat close. Multiplying my total_mins
+ 221335 [ebonakDUH_@h] Nice! Thanks!

Ruby Inline..
221343 [unni.tallman] How to pass an integer array to a C function, in RubyInline???

Bitwise inversion of Bignum
221347 [ian.roddis@g] A bitwise inversion of a Bignum sometimes yields odd results. As tested
+ 221355 [ian.roddis@g] This seems to be a problem with inverting any 32 bit number. After
+ 221930 [matz@ru y- a] Both of them are as expected from my view point.  What did you expect?
  221992 [rick.denatal] irb(main):01:0> sprintf("%b", "ffffff00".hex) =>
  222005 [matz@ru y- a] Oh, I was looking at wrong place.  It is a bug.  I will fix it soon.

assertion reflection
221351 [phlipcpp@ya ] [X-posted from the RSpec mailing list]

Kumbaya = RubyOSA + iTunes + Marshmallow
221354 [hornbeck@gm ] ...

Audio and/or video of RubyConf talks?
221369 [lyle.johnson] Does anyone know if audio and/or video of RubyConf is available
221592 [sera@fh an .] ...
221706 [lyle.johnson] Thanks, Francis! Hope that you (or some others) will post the other
+ 221756 [obiefernande] We'll (eventually) have Takahashi's history of ruby talk up on InfoQ.com
+ 221838 [sera@fh an .] ...

Ruby-Reports how to use with Rails
221376 [impalapete20] I am in the process of trying to write some code in ruby that will
221389 [gregory.t.br] will be helpful to you.

How can my boss take rails seriously with bugs like this?
221381 [evilgeenius@] The Time::next_week method is supposed to give the time of the start of
+ 221387 [ruby-ml@ki t] I am sure someone on the Rails list has.
+ 221403 [bulibuta@gm ] Your boss can read code?
| + 221407 [carl.lerche@] Not to mention that this is one of the easiest libraries (that I've
| + 221591 [david@va ln ] =20
|   221713 [bulibuta@gm ] ...
|   221734 [Gemma.Camero] I think I might just have to stick up for Chris as it appears he's
|   221779 [robert.dober] ...
+ 221441 [lukfugl@gm i] I agree with everyone else that your manners while pleading for help
  221488 [znmeb@ce ma ] And I thought it was just *cows* that got messed up by Daylight Savings
  + 221490 [greg.carbon8] ...
  + 221521 [hal9000@hy e] Actually, it's Daylight Saving Time.  :)
    221550 [kevin.olbric] Just wait til next year when the US changes the day that DST starts and

Rails in Miami
221398 [miami@em il ] Does anyone know if there are any Ruby on Rails users groups in Miami,

[ANN] Northern Virginia Ruby user's group meeting 10/25/06
221401 [tom@in oe he] For those in the northern Virginia/DC area, there's a Ruby user's group

How do I tell when I'm on Cygwin?
221404 [james@gr yp ] begin
+ 221412 [ara.t.howard] posix = Process.fork{} and Process.wait rescue nil
| 221419 [wilsonb@gm i] Everyone, please remember that Ara is kidding about this. Please do
| 221425 [ara.t.howard] you are spoiling all the fun!
| 221489 [znmeb@ce ma ] It's easier even than that ... just look up. If Austin Ziegler is
| 221495 [gregory.t.br] shootout.alioth.debian.org :)
+ 221415 [nicksieger@g] ...
  221432 [gregory.t.br] irb(main):001:0> RUBY_PLATFORM
  221532 [james@gr yp ] It seems safer to target this one as an exception, rather than mswin,
  221538 [gregory.t.br] I have no idea how to install termios for Cygwin since it's not part
  + 221544 [znmeb@ce ma ] Just about anything that will compile and execute on Linux will compile
  + 221718 [james@gr yp ] Well, if it's not installed HighLine won't find it anyway.  Another

[ANN] Ruby Quiz 2.0 Prototype
221409 [james@gr yp ] I announced this at RubyConf, but for those who missed it there, we
+ 221454 [linguist@gm ] ...
| 221501 [robmnl@gm il] ...
| 221639 [zimba.tm@gm ] Maybe you could put the feeds directly on the layout instead of
| 221715 [james@gr yp ] This is one of the changes I want to make before launch, yes.  I want
+ 221668 [mike@ca ga .] (Just thought you'd want to know...)  THe menu bar doesn't render
| 221714 [james@gr yp ] We are aware of this issue, yes.  Thanks for bringing it up though.
+ 221672 [rossrt@ro co] Wow, that's looking pretty cool - nice work!
+ 221724 [robert.dober] ...

parsing a command
221413 [bulibuta@gm ] My app has (amongst other UIs) a CLI that, as expected, has a small set

Some help against the raging hordes of 'J' fanatics
221414 [peter@ru yr ] Maybe some of you already came across my latest blog entry - it's about
+ 221466 [hgs@dm .a .u] Why do you need to do this?  If they choose another language over
+ 221470 [james.britt@] I say that the Ruby community is cool enough not to argue about this.
| 221478 [TimHunter@nc] Yes, yes, yes, yes, yes, yes, yes, yes, yes. Please let us be forever
+ 221481 [phlipcpp@ya ] There is no honor in preying on the weak.
+ 221513 [steven@lu os] I read it but was turned off by what I saw as technical errors.
+ 221566 [david@va ln ] The post is such blatant trollbait I won't even bother. Anecdote * 10 !=3D=
+ 221640 [peter@ru yr ] Thanks for the comments. The outcome was quite different from what I

Bitstuct and binary files
221416 [robl@mo ke h] I've been working with modifying a binary file to replace some meta-data
+ 221421 [vjoel@pa h. ] puts f.read(3).unpack('h6').first.reverse.to_i(16)
| 221434 [robl@mo ke h] Ah, OK that works with my example script - thanks.  However, that means
| 221439 [vjoel@pa h. ] Then probably your data is in big endian order--I should have grokked
| 221442 [robl@mo ke h] Excellent - thank you.  It all works - if you're interested I'm working
+ 221431 [ben@ia u. et] num=359447
  221437 [robl@mo ke h] No problem !  I've just modified the code and it works great - thanks :)

Getting path of current script
221417 [joeat303@ya ] Is there a simpler way to get the absolute path of the current script?
+ 221418 [gavin.kistne] Under some circumstances (like, you haven't changed the working
+ 221424 [ara.t.howard] just a note, what you have above is not the dir for the current script, it's
  221430 [nwiger@sc a.] I think the main problem is that the second solution is not an abs path

backquote and variables
221420 [robertlaferl] I am trying to construct a command line to be executed using backquote `` notation.  i.e.  capturing the output to a string
+ 221422 [vjoel@pa h. ] string = `#{"cat "} + file`
| 221429 [vjoel@pa h. ] Oops, I didn't really read your example. I assumed you were trying to
+ 221423 [wilsonb@gm i] file = '/etc/motd'

How to maintain App config data?
221426 [nwiger@sc a.] I'm writing an app in Rails, but some modules need to work outside of
+ 221444 [poopdeville@] The first option is most like the Perl solution.  It's pretty
| 221482 [nwiger@sc a.] Awesome, that looks great. I think I'll tweak it into a Singleton w/o
| 221804 [poopdeville@] Like the comments in there say, we're deprecating the global vars
+ 221448 [vjoel@pa h. ] This was developed for GUI (specifically FXRuby) apps, but would
+ 221449 [khaines@en g] In IOWA apps, there is a method, Iowa.config, that has a reference to the

parsing HTML code with regex
221427 [akakuda@ex i] I'm trying to parse through some html code and count the number of times
+ 221435 [gavin.kistne] Do you just want to match the "<tr>", or do you want to match the
| 221438 [gavin.kistne] Er, oops. I mean /<tr[^>]*>/ of course, to match the no-attribute row as
+ 221440 [nospam@no it] You want if op_file =~ /<tr.*?>/
| 221740 [akakuda@ex i] Thanks, this worked.
+ 221443 [phlipcpp@ya ] If the code is not yet XHTML, use Tidy to upgrade it.
+ 221679 [michael_perl] You are parsing always one line only.
  221686 [dblack@wo bl] The /m doesn't make any difference there, because you're not using the

Ruby Console Library
221428 [minkoo.seo@g] ...
221456 [banjo@us rs ] aptitude is written in ncurses (mc probably is too).
+ 221459 [gethemant@gm] Haven't used Highline myself..but seems to me...like a good
| 221460 [gethemant@gm] There was only one Road; that it was like a great river: its springs
+ 221631 [martindemell] martin

Using vim for rails and ruby development
221433 [minkoo.seo@g] ...
222124 [ mfp@ac .o g] Mauricio Fernandez  -   http://eigenclass.org   -  singular Ruby

How to convert long/milliseconds to DateTime?
221445 [mikefapex@gm] Java developer making the switch. I have timestamps stored in Oracle as
221447 [gavin.kistne] Welcome!
221458 [mikefapex@gm] Thanks Gavin. I did a lot of Smalltalk programming in the 90's, so Ruby
+ 221462 [gavin.kistne] irb(main):001:0> Time.at( 1161275493444 / 1000 )
| 221467 [mikefapex@gm] Muchas gracias. I'll RTFM closer...
| + 221468 [gavin.kistne] That trailing ".0" is important (and I omitted it in my answer), if you
| + 395039 [lists@ru y- ] Then, how to convert datetime to milliseconds in rails?
|   395045 [ruby-talk@la] => 329
+ 221464 [khaines@en g] irb(main):003:0> Time.at(1161275493444 / 1000.0)

webdav client with SSL
221450 [rtilley@vt e] I need to connect to a webdav server over SSL with Ruby. I googled
392109 [gasparmrb@gm] I'm having the same problem now!

[ANN] Ruby-VPI 8.2.0
221452 [skurapat@uc ] Version 8.2.0 (2006-10-24)

File#flock as a cross-process mutex
221461 [garbagecat10] ...
221477 [ara.t.howard] can you elaborate?  do you need to yield the resource and re-aquire it?
221492 [garbagecat10] ...
221498 [ara.t.howard] you might look at this
+ 221502 [garbagecat10] ...
| 221505 [ara.t.howard] i don't either - but it was learnt in the trenches: process hung on nfs aren't
+ 221503 [khaines@en g] It works very well, but doesn't work on Windows, though.  Ara, if I sent
  221506 [ara.t.howard] i'm interested.  remember though that flock will fail if rpc.statd isn't
  221551 [garbagecat10] ...

Autodetect encoding / mojibake correction?
221471 [cameron@so c] Is there something to automatically detect what encoding a file is? That
221657 [rubyzbibd@ub] Check our NKF and Kconv in Ruby's standard lib.

RubyConf2006 Retrospective
221474 [Bil.Kleb@NA ] To learn from RubyConf06, I am assuming the role
+ 221476 [ara.t.howard] meeting in a room which cannot support 250+ network connections.
| 221531 [Bil.Kleb@NA ] Thanks, but I'm still waiting on the offlist and "why?"
+ 221479 [tim.pease@gm] Single track for presentations.
| + 221523 [gregory.t.br] +1
| + 221528 [Bil.Kleb@NA ] Thanks, but I'm still waiting on the offlist and "why?"
|   221541 [ara.t.howard] i'm for multi-track: it's not a good use of time to do presentations when only
+ 221518 [james.britt@] Hey! Virginia already had a RubyConf.
  221534 [znmeb@ce ma ] Well ... OK ... nominations in the Eastern Time Zone for places that are
  + 221543 [ruby-ml@ki t] o.
  | 221547 [znmeb@ce ma ] I used to go to SIAM meetings every year. Most of the time, they were in
  + 221622 [halostatue@g] 1. Toronto, ON.
    + 221627 [znmeb@ce ma ] I won't go to either Boston or New York -- they are just too expensive.
    | + 221669 [TimHunter@nc] Where is this "RDU" you speak of? Are you suggesting that RubyConf be
    | | + 221678 [halostatue@g] Nope. I know what it is; I used to live in Greensboro. I'm using it in
    | | | + 221700 [dblack@wo bl] ...
    | | | + 221701 [nicksieger@g] ...
    | | | | 221764 [matt@te hn r] I've driven to Toronto before, it was a rather pretty drive.
    | | | | 221778 [james.britt@] And it's short flight to NYC, so I can *still* visit my family.
    | | | + 221702 [halostatue@g] Yes, but they'll be collecting them on your way HOME.
    | | + 221746 [rick.denatal] RTP
    | |   221754 [halostatue@g] Fair enough. As I said, I lived in Greensboro, not in the Raleigh-Durham area.
    | |   221794 [kevin.olbric] If we do this in RDU / RTP, I'd be more than happy to help.
    | |   221848 [rick.denatal] As would I.
    | + 221752 [obiefernande] Party at my loft downtown if the choice is Atlanta! :-)
    + 221671 [transfire@gm] Disney World
      221681 [halostatue@g] God no. Nothing personal, Trans, but Orlando is less likely to have a
      + 221727 [jeff.barczew] ...
      | 221728 [phurley@gm i] But then I would have to take my whole family and it would cost 10x as much :-)
      + 221761 [transfire@gm] Huh? Orlando it a premier destination for conferences precisely b/c of
      | + 221772 [transfire@gm] I don't mean that in a negative way BTW --it just depends on one's
      | + 221783 [wilsonb@gm i] Orlando would be an awesome choice.
      |   221784 [znmeb@ce ma ] building in Miami, isn't it? :)
      + 221841 [tbray@te tu ] no no no no no No NO, not Orlando. -T
      | 221846 [znmeb@ce ma ] Well ... we've got a couple of vetoes for Orlando, but so far only one
      + 221912 [jwkenne@at g] That wasn't so in the early 90's. IBM had a great conference at the Dolphin.

221480 [pons32@ho ma] Reply-To: ruby-talk@ruby-lang.org

Freeride, FXRuby, FXScintilla, etc. (Includes [Fwd: [fxscintilla-users] ANNOUNCE: FXScintilla 1.71 and stopping])
221483 [znmeb@ce ma ] ...
221500 [david@va ln ] Cue GUI toolkit holy war.
221504 [znmeb@ce ma ] 1. Tk is ugly
+ 221508 [Reid.Thompso] preschool with it using it's FLUID gui builder.  From what I recall,
+ 221537 [david@va ln ] Cue Tile. Sometime. Still not enough to interest me, because the API
  221570 [znmeb@ce ma ] ...
  221637 [richard.j.da] Each to his own, but I can't personally see anything 'weird' there.
  221836 [david@va ln ] Before Qt4, the Windows port specifically wasn't available under the

JRuby shines on Sun Microsystems homepage
221496 [enogrob@ho m] See these two interviews directly from the Sun Microsystems Homepage
221559 [caldridge@gm] Awesome!

Kernel#caller for non-current thread
221497 [steven@lu os] Looks like it can be done in C by: set ruby_frame to the particular
221548 [vjoel@pa h. ] Hm, is there anything in the implementation of #backtrace that could
221883 [steven@lu os] Unfortunately my initial scan of the source turned out to be too

run test scripts concurrently
221499 [christopher.] I've been futzing with this for some time and I am out of ideas.
221507 [ara.t.howard] threads = []
221522 [nospam@no it] In my expereince, if you join all the spawned threads to the current thread,
221535 [vjoel@pa h. ] threads = (0..9).map {|i| Thread.new {sleep rand(5); puts i}}
221624 [nospam@no it] I tried to think of an explanation apart from the obvious one, but it seems
221630 [charles.nutt] Threads that are 100% Ruby code will yield and timeslice correctly.
221795 [vjoel@pa h. ] That's true at the C API level, but not always true at the Ruby API