221326-225648

221212-222396 subjects 221554-223267

^ adding times
221326 [ebonakDUH_ h] Ok, I try to use ruby for all sorts on-the-fly things as
+ 221328 [invalid gmx.] 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 ruby-la] 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 ruby-la] Oh, I was looking at wrong place.  It is a bug.  I will fix it soon.

^ assertion reflection
221351 [phlipcpp yah] [X-posted from the RSpec mailing list]

^ Kumbaya = RubyOSA + iTunes + Marshmallow
221354 [hornbeck gma] yesterday.  If you use OS X, Campfire and Itunes check it out.

^ Audio and/or video of RubyConf talks?
221369 [lyle.johnson] Does anyone know if audio and/or video of RubyConf is available
221592 [sera fhwang.] ...
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 fhwang.] ...

^ 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 kitt] I am sure someone on the Rails list has.
+ 221403 [bulibuta gma] Your boss can read code?
| + 221407 [carl.lerche ] Not to mention that this is one of the easiest libraries (that I've
| + 221591 [david vallne] =20
|   221713 [bulibuta gma] I agree with most of the things you said, but do note that after that quote
|   221734 [Gemma.Camero] I think I might just have to stick up for Chris as it appears he's
|   221779 [robert.dober] Yup but he kind of deserved it, I mean if you behave differently you will
+ 221441 [lukfugl gmai] I agree with everyone else that your manners while pleading for help
  221488 [znmeb cesmai] And I thought it was just *cows* that got messed up by Daylight Savings
  + 221490 [greg.carbon8] Cows and people in Arizona
  + 221521 [hal9000 hype] 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 email.] 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 infoethe] 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 graypr] begin
+ 221412 [ara.t.howard] posix = Process.fork{} and Process.wait rescue nil
| 221419 [wilsonb gmai] Everyone, please remember that Ara is kidding about this. Please do
| 221425 [ara.t.howard] you are spoiling all the fun!
| 221489 [znmeb cesmai] It's easier even than that ... just look up. If Austin Ziegler is
| 221495 [gregory.t.br] shootout.alioth.debian.org :)
+ 221415 [nicksieger g] I /think/ RUBY_PLATFORM is different for cygwin than the pure windows
  221432 [gregory.t.br] irb(main):001:0> RUBY_PLATFORM
  221532 [james graypr] 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 cesmai] Just about anything that will compile and execute on Linux will compile
  + 221718 [james graypr] Well, if it's not installed HighLine won't find it anyway.  Another

^ [ANN] Ruby Quiz 2.0 Prototype
221409 [james graypr] I announced this at RubyConf, but for those who missed it there, we
+ 221454 [linguist gma] I love the new site!
| 221501 [robmnl gmail] Very well done, awesome site
| 221639 [zimba.tm gma] Maybe you could put the feeds directly on the layout instead of
| 221715 [james graypr] This is one of the changes I want to make before launch, yes.  I want
+ 221668 [mike cargal.] (Just thought you'd want to know...)  THe menu bar doesn't render
| 221714 [james graypr] We are aware of this issue, yes.  Thanks for bringing it up though.
+ 221672 [rossrt rosco] Wow, that's looking pretty cool - nice work!
+ 221724 [robert.dober] Just wanted to make sure to tell him how much I love the site ;)

^ parsing a command
221413 [bulibuta gma] 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 rubyra] Maybe some of you already came across my latest blog entry - it's about
+ 221466 [hgs dmu.ac.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 yah] There is no honor in preying on the weak.
+ 221513 [steven lumos] I read it but was turned off by what I saw as technical errors.
+ 221566 [david vallne] The post is such blatant trollbait I won't even bother. Anecdote * 10 !=3D=
+ 221640 [peter rubyra] Thanks for the comments. The outcome was quite different from what I

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

^ Getting path of current script
221417 [joeat303 yah] 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 scea.] 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 path.b] string = `#{"cat "} + file`
| 221429 [vjoel path.b] Oops, I didn't really read your example. I assumed you were trying to
+ 221423 [wilsonb gmai] file = '/etc/motd'

^ How to maintain App config data?
221426 [nwiger scea.] 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 scea.] 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 path.b] This was developed for GUI (specifically FXRuby) apps, but would
+ 221449 [khaines enig] In IOWA apps, there is a method, Iowa.config, that has a reference to the

^ parsing HTML code with regex
221427 [akakuda exci] 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 nosit] You want if op_file =~ /<tr.*?>/
| 221740 [akakuda exci] Thanks, this worked.
+ 221443 [phlipcpp yah] If the code is not yet XHTML, use Tidy to upgrade it.
+ 221679 [michael_perl] You are parsing always one line only.
  221686 [dblack wobbl] The /m doesn't make any difference there, because you're not using the

^ Ruby Console Library
221428 [minkoo.seo g] I'm thinking about some advanced console programs. For the program, I'll use
221456 [banjo users.] 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] Did you see http://platypope.org/yada/emacs-demo/, a demo of
222124 [ mfp acm.org] 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
+ 221464 [khaines enig] 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

^ [ANN] Ruby-VPI 8.2.0
221452 [skurapat ucs] Version 8.2.0 (2006-10-24)

^ File#flock as a cross-process mutex
221461 [garbagecat10] Has anyone wrapped up File#flock so it can used as a platform-independent
221477 [ara.t.howard] can you elaborate?  do you need to yield the resource and re-aquire it?
221492 [garbagecat10] Most of the time I want to make sure only one process is running in a
221498 [ara.t.howard] you might look at this
+ 221502 [garbagecat10] Thanks Ara. Some interesting ideas in there. I don't care for the outboard
| 221505 [ara.t.howard] i don't either - but it was learnt in the trenches: process hung on nfs aren't
+ 221503 [khaines enig] 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] I have to admit, it seems to me that we're dealing with two different

^ Autodetect encoding / mojibake correction?
221471 [cameron soyc] 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 NAS] 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 NAS] 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 NAS] 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 cesmai] Well ... OK ... nominations in the Eastern Time Zone for places that are
  + 221543 [ruby-ml kitt] o.
  | 221547 [znmeb cesmai] I used to go to SIAM meetings every year. Most of the time, they were in
  + 221622 [halostatue g] 1. Toronto, ON.
    + 221627 [znmeb cesmai] 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 wobbl] This message is in MIME format.  The first part should be readable text,
    | | | + 221701 [nicksieger g] Oh geez, I guess you'd all be out of luck then! :)
    | | | | 221764 [matt technor] 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] Well with all due respect, I have been to many high tech conferences in
      | 221728 [phurley gmai] 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 gmai] Orlando would be an awesome choice.
      |   221784 [znmeb cesmai] building in Miami, isn't it? :)
      + 221841 [tbray textua] no no no no no No NO, not Orlando. -T
      | 221846 [znmeb cesmai] Well ... we've got a couple of vetoes for Orlando, but so far only one
      + 221912 [jwkenne attg] That wasn't so in the early 90's. IBM had a great conference at the Dolphin.

^ Unsubscribe
221480 [pons32 hotma] Reply-To: ruby-talk@ruby-lang.org

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

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

^ Kernel#caller for non-current thread
221497 [steven lumos] Looks like it can be done in C by: set ruby_frame to the particular
221548 [vjoel path.b] Hm, is there anything in the implementation of #backtrace that could
221883 [steven lumos] 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 nosit] In my expereince, if you join all the spawned threads to the current thread,
221535 [vjoel path.b] threads = (0..9).map {|i| Thread.new {sleep rand(5); puts i}}
221624 [nospam nosit] 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 path.b] That's true at the C API level, but not always true at the Ruby API

^ Endianess of the underlying platform
221515 [tim.pease gm] Does ruby provide a global or a method call to determine the endianess
+ 221540 [ara.t.howard] you could at least have more fun
| 221733 [tim.pease gm] Very tricksie of you!  I'm always amazed at how your mind operates.
+ 225203 [drbrain segm] Beware, some versions of ruby shipped with OS X have a broken pack
  225280 [garbagecat10] Kinky. Is it a bug, or a hack intended to make PowerPCs look like Intel
  225287 [halostatue g] Bug. It was fixed in a later OS update, IIRC.
  225352 [drbrain segm] Yes.  Apple cross-compiled ruby from Intel to PPC and Ruby assumes
  225648 [charles.nutt] Sounds like a bug in Ruby's build to me...

^ zlib.so Problem on MIPS target platform.
221536 [craigslist w] You'll have to forgive me if I miss some obvious details, as I've
221542 [aredridel nb] Do note that zlib.so is the ruby extension, but libz.so.foo is the zlib
221546 [craigslist w] so...zlib.so extension IS required by ruby? I thought I had read
221567 [aredridel nb] It is -- you don't need an externally supplied zlib.so, hence the

^ Best way to automate web browser tasks?
221545 [hal9000 hype] I know there's Watir or something... but I'm not using
+ 221552 [gregory.t.br] If it doesn't involve javascript, mechanize should do just fine.
+ 221553 [ruby-ml kitt] iD8DBQFFPrxg7Nh7RM4TrhIRAnUzAJ4jr9GxFmNq1/Qe2tKHuwBq+oEQYACcCMGN
+ 221556 [ezmobius gma] exists SafariWatir and FireWatir for safari and firefox respectively.
+ 221562 [ara.t.howard] curl?
| 221593 [hal9000 hype] No, I *don't* have to do it via FF or any other browser.
| + 221597 [ruby philip.] Yes.
| | 221599 [hal9000 hype] [snip snip]
| + 221605 [ara.t.howard] that, and then some.
+ 221569 [nicksieger g] If I were going to do it in a browser, I'd use Selenium RC [1] along with
| 222034 [zoso foton.e] +1
+ 221664 [hgs dmu.ac.u] Some of this info may be obsolete now.    Forms are more difficult
+ 221670 [alex_f_il ho] Don't forget about DHTML. Without a browser you will have to write your
  221826 [gilesb gmail] I worked on something very similar recently. We looked at Beautiful
threads.html
top