276193-277576 subjects 276665-408426

[ANN] RubyJS 0.6 - pre-RubyConf version
276450 [mneumann@nt ] After 9 months, the second incarnation of RubyJS is out (a complete rewrite).
276471 [james.britt@] Very cool!

A screen cast of RubyCocoa
276455 [dangerwillro] There is a screencast of building a RubyCocoa app with Xcode in the

Racc: when is on_error called?
276459 [aaron@te de ] When is on_error supposed to be called?  Will on_error be called when
352028 [vascoas@gm i] Did you get the answers to your questions? If so, could you share it

Something wrong with my hash of hash
276460 [nicolas.rass] I try to get a hash of hash to make some sort of counter (I have a set
+ 276461 [nicolas.rass] Changing declaration by
| 276479 [sepp2k@go gl] Hash.new is called, since parameters are evaluated before the actual method
| 276523 [nicolas.rass] Thanks all of you guys and especially Sebastian for the explanations.
+ 276462 [Gennady.Byst] h =3D Hash.new { |h, k|
+ 276470 [rick.denatal] You're using the wrong form of Hash.new for this use case.

is rubyzip threadsafe ?
276469 [come.news@fr] zipfile.extend(MonitorMixin)

form.select question
276473 [daveh@vi ex ] ...
276481 [jgarvin.list] You'll probably get more response over at the Rails list...

does a required_by method exist?
276474 [jack.dempsey] Through some caller() and load path searching, I've found you can get
276478 [ara.t.howard] over ride Kernel#require and Kernel#load

Cheri: Builder-style JRuby/Swing GUI development
276487 [charles.nutt] Ara mentioned wanting to hear more about Swing-based GUI stuff in JRuby,
276524 [charles.nutt] I can certainly do that, at least when it's a purely informational post.

Rexml Xpath parsing change
276491 [ermac100@ya ] Some of my old code no longer works with the latest version of ruby
277384 [halfgaar@gm ] Did you find a solution? I'm having the same problem.
277392 [halfgaar@gm ] "Unfortunately, there is a bug in Ruby 1.8.6 that affects documents with a

RubyConf wifi
276494 [ruby@an hr p] For those going to RubyConf, it appears that WiFi is available at the
+ 276503 [rick.denatal] Does anyone know if there will be wifi access at the conference for
| 276506 [dblack@ru yp] Yes, we're providing wifi for the conference.
+ 276518 [pergesu@gm i] On Oct 29, 2007 12:38 PM, Gregory Seidman

21 Success Scerets of Self-Made Millionaires
276497 [mneumann@nt ] ...

RubyCocoa dmg on 10.4
276498 [ari@ar br wn] Much in the way that Charles Dickens asked Dr. Who, I, too, want to
276543 [laurent.sans] We fixed a similar problem a few weeks ago, and we plan to release a

Problem with socket.recv()
276500 [frank.preisw] ...
+ 276540 [vjoel@pa h. ] #recv gives you data as soon as there is data available, not necessarily
| 276608 [frank.preisw] ...
| + 276614 [garbagecat10] ...
| | 276616 [shortcutter@] There is another option - even if the server does not close after
| | 276619 [bbxx789_05ss] That's not what I'm seeing.  What I see is: read() blocks until it
| | + 276629 [garbagecat10] ...
| | | 276633 [shortcutter@] So it seems pretty clear that he knows how many bytes to expect. In
| | + 276632 [shortcutter@] Yes, I was imprecise: when using #read(limit) the method will block
| + 276709 [vjoel@pa h. ] Here's an idea that's a little different from what you're asking for (it
+ 276624 [bbxx789_05ss] I just wanted to add that as far as I know, you can't count on
+ 276716 [rogerpack200] Make sure you flush on the sending side, as it might not send it all
  276791 [frank.preisw] ...

.txt on README?
276501 [transfire@gm] I'm curious about use the .txt extension on README. I know Hoe does
+ 276557 [m_goldberg@a] Not just Windows. The Mac OS X Finder recognizes the txt extension.
| 276567 [konrad@ty er] charset="iso-8859-1"
| 276590 [bigboss64@ip] I think any decent file management program should use both MIME and
+ 276689 [tim.pease@gm] Hoe is using regexp patterns to select files to include in the gem.
  276717 [transfire@gm] Ah, I see. Thanks for explaining. I just wanted to makes sure I wasn't

find the closest items in an array to a given value.
276502 [mrobert@tr b] I'm searching for a light method for finding the closest items to a given
+ 276521 [shortcutter@] It's crucial to know whether your sequence of values is always sorted.
| 276537 [dblack@ru yp] Is that your .sig? :-)
| 276866 [shortcutter@] Not until now. Thanks for the inspiration!
+ 276528 [linkin.dev@g] ...
| + 276549 [bbxx789_05ss] arr = [...]
| | 276576 [botp@de mo t] # a = [ 1.25, 1, 3, 1.9, 1.95, 2.1, 2.2, 1.5]
| | 276591 [bbxx789_05ss] No, I haven't.  Thanks for pointing the partition method out to me.
| + 276571 [mrobert@tr b] Well must be RMXP.org.. isn't it?
+ 276536 [apeiros@gm .] [1,2,3,4,5,6].min {??|a,b| (a-value).abs <=> (b-value).abs }
| 276541 [apeiros@gm .] Since you want more than 1 you can either implement your own min method
+ 276565 [ara.t.howard] install rbtree - it has upper_bound and lower_bound methods that do
| 276570 [mrobert@tr b] While waiting for solutions, i did something really similar.
| 276575 [botp@de mo t] # a =3D myhash.keys.sort[value-0.05..value+0.05]
| 276594 [botp@de mo t] ignore that post.
+ 276588 [ermac100@ya ] Of course there are many ways.  Here's one.  Add your target value to

Good learning-by-doing projects?
276510 [soren.anders] ...
+ 276525 [thomas.adam2] This come up from time to time, and frankly, I never understood what
| 276531 [dblack@ru yp] ...
+ 276526 [jeremywoerti] Well, my first language was ruby, so I learned it by doing Rails stuff.
+ 276533 [dblack@ru yp] ...
| 276548 [znmeb@ce ma ] You *really* want that "checkers" Ruby Quiz, don't you? ;)
| 276556 [dblack@ru yp] That's funny -- I actually hadn't even read that thread.
+ 276562 [m_goldberg@a] Learning by doing is good. So is reading the code others have =20
| 276563 [ari@ar br wn] Depending on how new you are to programming (as i am/was), try =20
| 276577 [eric.mahurin] If you liked the rope one, you should try the current one - editing
+ 276586 [lloyd@2l ve ] I believe that this is very much an "eye of the beholder" issue.  You

Ruby 1.9 upgrade problems with existing Ruby web application
276519 [s.d@co ca t.] I've upgraded to Ruby 1.9 today, in preparation for attending RubyConf
276626 [ajalkane@gm ] File.exists? has been deprecated in favor of File.exist?
+ 276685 [ara.t.howard] and, of course, test(?e, filename) still works...
+ 276722 [s.d@co ca t.] Why should something as simple as this cause legacy code to break?  And

[ANN] Sup 0.2 released
276522 [wmorgan-ruby] Sup version 0.2 has been released!
+ 276583 [konrad@ty er] charset="utf-8"
| 277185 [wmorgan-ruby] Sadly there's no POP functionality. (Patches welcome, of course!)
+ 276644 [manish@gs ab] Great stuff.
  277189 [wmorgan-ruby] You could download and store them locally with fetchmail. But (if you're

Zip an existing directory?
276539 [petertmarks@] system("zip /Users/petermarks/Desktop/orbus/public/1/daily/2007-10-29")
276544 [phlip2005@gm] How does zip work on the command line? What does zip --help tell you?
276546 [znmeb@ce ma ] At least on Linux / Cygwin, the command to make a zip archive from a
276550 [petertmarks@] Thanks for the help guys. I am developing in osx and will deploy in
276587 [znmeb@ce ma ] zip -r archive.zip
276589 [petertmarks@] Thanks Ed, that archives the contents of "2007-10-29". Do you know if
276597 [znmeb@ce ma ] $ cd /Users/petermarks/Desktop/orbus/public/1/daily/
+ 276599 [petertmarks@] I think I'll digg up that other way in order to write this into a ruby
| 276601 [znmeb@ce ma ] Isn't there a Ruby library that does this without calling the
| 276602 [petertmarks@] Apparently there's rubyzip. I haven't really looked into that too much,
+ 276603 [bbxx789_05ss] Dir.chdir("/Users/petermarks/Desktop/orbus/public/1/daily")
  276604 [bbxx789_05ss] Whoops.  Too late.
  276605 [petertmarks@] You were by no means too late. I was unaware that there was a ruby
  276607 [bbxx789_05ss] system("cd /Users/petermarks/Desktop/orbus/public/1/daily")
  + 276609 [bbxx789_05ss] Actually, that doesn't work because the cd system() call executes in a
  | 276610 [bbxx789_05ss] Gee whiz, I can't get anything straight tonight.  In your case, it would
  + 276611 [petertmarks@] Oh you're right. I must have done something wrong when initially trying
    276612 [petertmarks@] system("cd #{RAILS_ROOT}/public/1/daily")

ruby-frontbase doesn't compile on Mac OS X version 10.5
276542 [lists@ka am ] When trying to compile ruby-frontbase version 1.0.1 on a G5 PPC

Gateway Upgraded
276547 [james@gr yp ] We are now running on my new gateway code that will hopefully get
+ 276554 [raasdnil@gm ] Hey James,
| 276573 [james@gr yp ] My new version uses TMail, yes.
| + 276581 [raasdnil@gm ] James,
| + 276592 [raasdnil@gm ] irb(main):007:0> mail = TMail::Mail.new
| | 276658 [james@gr yp ] => true
| | 276671 [raasdnil@gm ] No, you are doing it right.  Looks like a bug.  I'll get onto it.
| | 276672 [james@gr yp ] Mikel, if you could email me (private is fine) when there's a new
| + 276638 [fred@la av .] Double-plus-ungood.  Strictly, it _may_ be an acceptable folded header,
+ 276555 [james@gr yp ] My upgrade did not go as planned and I have reverted, while I figure
| 276572 [james@gr yp ] Usenet readers, can you confirm the gateway is functioning as
+ 276895 [james@gr yp ] The TMail team tried to squeeze in a fix for our new gateway script
  277058 [james@gr yp ] The new gateway is now in place and does seem to be gating messages.
  277236 [james@gr yp ] Just a small update on how this went=85
  + 277239 [celtic@sa ry] Thank you.
  | 277342 [raasdnil@gm ] Thanks for your work James.
  | 277361 [see@si na ur] Well, there appears to be at least one little glitch remaining.
  | + 277401 [james@gr yp ] I'll look into this issue tomorrow.  Thanks for pointing it out.
  | + 277472 [james@gr yp ] Mikel, I have some TMail questions for you=85
  | | 277501 [raasdnil@gm ] TMail does not handle the email body.  In fact, it basically ignores
  | | 277520 [james@gr yp ] I use the two message approach because I filter what goes through.
  | + 277551 [james@gr yp ] I've deployed some fixes to the gateway this morning that I hope will
  |   277633 [james@gr yp ] I have deployed another set of fixes to the gateway tonight.
  + 277623 [martindemell] Brilliant work. Out of curiosity, is there any part of the gateway
    277625 [james@gr yp ] Well, the gateway is now just a bit of glue code between TMail and
    277626 [raasdnil@gm ] Maybe we could make it an extension to TMail...
    277630 [james@gr yp ] This might be a possibility.

How to trim a string
276552 [dany@wu ne .] I'm a newbie who's just started experimenting with Ruby and Rails. At
+ 276558 [TimHunter@nc] String#[] takes a variety of arguments that support the activities you
+ 276574 [bbxx789_05ss] str =  "In the absence of justice, what is sovereignty but organized
  276578 [dany@wu ne .] ...<snipped> Some excellent examples </snipped>

Re: Fluid Dynamics
276560 [ari@ar br wn] There's a company (Fluent) located in my town that does fluid

jruby and case insensitive environment variables on win32
276561 [martindemell] When converting a Win32/Ruby application to JRuby, I ran into an
276579 [charles.nutt] In JRuby, we pull in whatever the system provides as an environment, and
276595 [renard@nc rr] On Oct 29, 11:52 pm, Charles Oliver Nutter <charles.nut...@sun.com>

276564 [neomatrixjc@] ...

Getting a stack trace of a running thread
276568 [bryan@ra le ] I'm trying to update a tool we've developed here at Rapleaf for

book about design pattern
276580 [coolgeng410@] ...
+ 276584 [znmeb@ce ma ] Well ... I don't know if it's *perfect*, but I highly recommend Martin
+ 276585 [james.britt@] No.
  + 276623 [thomas.adam2] I can't say I agree here.  Patterns are just that; patterns.  How they
  + 276628 [chris.lowis@] Regards,
    276660 [dangerwillro] Interesting. Veeeery, interesting.
    277631 [coolgeng410@] ...

ruby libpcap fails when passing command-line argument
276593 [kenny.roytma] Can someone please help me out here?   I'm trying to use Ruby/Libpcap

ANN: Sequel 0.3.1 Released
276606 [ciconia@gm i] Sequel version 0.3.1 has just been released. This release includes an

db4o oo database for ruby?
276615 [gerpux@gm il] I saw that the guys at db4o support ruby to some degree and I wanted
276696 [edlich@gm il] Dear gerpux,
276721 [christof@db ] I don't recommend to create a separate rewrite, though.  We currently

what is the difference between two block?
276617 [hariharan.sp] Dear friends,
+ 276620 [sepp2k@go gl] Precedence. Other than that there is no difference, but it's convention to use
| 276622 [hariharan.sp] Dear friend,
| 276627 [sepp2k@go gl] Ehrm, I open my mouth and the words come out? I don't quite understand
| 276631 [hariharan.sp] Dear friends,
+ 276634 [botp@de mo t] # I wan to know the difference,I feel soething is there,but i
  276657 [hariharan.sp] Dear Friend,

[ANN] the result of Ruby official logo contest
276618 [matz@ru y- a] As a chairman of the recently formed Ruby Association LLC[1], I
+ 276621 [matz@ru y- a] Oops, this is Japanese version. Try
| 276625 [benjohn@fy h] It's a little like an invitingly open door way.
| 276643 [peter@ru yr ] This is really interesting... The (so far 2) answers here are quite...
| + 276649 [raasdnil@gm ] From a design point of view, it has a number of flaws and I find it
| | + 276653 [dangerwillro] It's ok, but it's really just the same logo in a box.
| | | + 276668 [eustaquioran] I know it's too late for the contest, but this is a logo I'm using on some
| | | + 276712 [james.britt@] Yes, well Python proved that a sucky logo need not hamper a language,
| | + 276835 [_mwryder@wo ] A couple of seconds experimenting with PhotoShop and the Spotlight
| + 276711 [james.britt@] Well, I rarely comment on blogs, and prefer to hold discussions on lists
|   + 276746 [martindemell] That was my first thought too. It lacks contrast and "edge
|   | 277216 [simon@mu li ] ...
|   + 276755 [qdbrown@gm i] Speaking strictly as a new user to Ruby, first impressions are very
|   + 276759 [mental@ry ia] Fully concur.  Also, as a merely practical matter, this logo will be
|     276760 [perrin@ap th] See the very simple inverted triangle logo dealio on the left.  Think
+ 276728 [stas@Fr eB D] For me, the old logo looks much more simple, clean and stylish. The new
+ 276799 [jeremymcanal] You can see my comments on the http://www.rubyinside.com/ page, and I
| + 276808 [matz@ru y- a] Those comments made me down. X-<
| | + 276832 [jeremymcanal] Oh, I didn't mean to make you sad! :)
| | + 276854 [raasdnil@gm ] Hey Matz¤µ¤ó
| + 276810 [james.britt@] FWIW, I announced this contest on  a mailing list for Web designers and
+ 276882 [celtic@sa ry] I changed the logo on
| 276928 [dangerwillro] Arlen, it looks like you adjusted the logo a bit. Colors are more
| 277053 [celtic@sa ry] I did not modify the logo in any other way than cropping the text.
+ 277802 [eustaquioran] Argh, sorry to post this again but I noticed now looking on my logs

Ruby Survey/Questionaire  ?
276630 [remco.zwaan@] Is there a gem or script available for a survey/Questionaire..so i can

Ruby2exe with tk
276635 [martyn.jago@] ...

Is there a better way to do this? (write something to a file
276642 [evilgeenius@] Is there a better way to write text to a file?
+ 276645 [thomas.adam2] File.copy in this instance, surely?
+ 276648 [d_rems@ya oo] file = File.open("/file/location/new.txt","w")
| 276650 [eustaquioran] File.open("test.txt","w") {|file| file << "data to write"}
+ 276654 [dblack@ru yp] Are you sure you mean unmessy? :-) In any case -- I agree, it does
+ 276670 [lojicdotcom@] What would you prefer?

Re: Is there a better way to do this? (write something to a
276647 [evilgeenius@] This isn't a file copy.  I'm just writing data to a file.
+ 276651 [thomas.adam2] Oops.  That's what I get for not drinking coffee before replying.  :)
+ 276823 [botp@de mo t] # This isn't a file copy.  I'm just writing data to a file.

Ruby Lex Specification
276659 [vascoas@gm i] Where can i find a ruby (1.8.6) syntax specification? If that
276667 [jameskilton@] ...
+ 276669 [vascoas@gm i] Thanks Jason.
| 276674 [pticedric@gm] ...
| 276834 [vascoas@gm i] Thanks a lot.
| 276855 [gene.tani@gm] there were also  ANTLR grammars
+ 276690 [gaspard@te i] Waou!!