368278-370552 subjects 368697-369742

^ Re: May I know that why the zz=="s" return false, please?
368484 [jayaoscarlok] Thanks for all of you!!!

^ error handling  with exceptions  in  multi-thread  download
368490 [myocean135 y] there are three  program fragments,all of them  have same problems,
+ 368493 [blambeau gma] rescue Timeout::Error => e
| 368495 [myocean135 y] i have omitted many lines of  code,no TimeOut error,
+ 368497 [shortcutter ] lems,
  368502 [myocean135 y] require 'rubygems'
  + 368503 [myocean135 y] sorry for that: def  self.getdaystock(fromdate)
  + 368512 [shortcutter ] Well, there you have it.  The error is in your exception handling code.

^ How to make a ruby script listining for interactivity?
368496 [bvb vasco.co] I would like to know if I can make a ruby script interactive. I don't
+ 368624 [sentinel1879] Wow ! this sounds like just what i have sorely been wanting. I have
+ 368651 [sean.ohalpin] You could try ruby-debug.

^ Shoes as Gems or other such
368498 [handigandy-e] I was just checking out shoes. While I like it, I am a bit concerned.
+ 368505 [rogerpack200] I'm not aware of one as shoes was basically "it's own fork" of Ruby.
+ 368507 [luislavena g] Basically Shoes does lot of initialization to the graphic framework
+ 368509 [steve stevek] Hey there, thanks for the interest in Shoes!

^ Help with photo album app
368501 [trevor nugen] I'm developing a photo album app that has albums, with pictures
368541 [josh.cheek g] I assume you are using Rails (this is a Ruby mailing list, not a Ruby on

^ ruby-ldap in Netbeans
368504 [hmmedina gma] I'm a newbie at Ruby and I have the following issue.  I need to
368637 [headius head] Go to the Tools menu, under "Ruby Gems". I believe you can install it

^ select tr>3  with nokogiri
368506 [myocean135 y] i want to get  row which it contains  more than 3  columns
+ 368542 [myocean135 y] for  example,
| 368544 [ammarabuali ] document.xpath("//*[count(td)=3D2]")
| 368551 [myocean135 y] p1
| 368552 [myocean135 y] document.xpath("//*[count(td)=2]")  is  right,but  i want to know
| 368553 [ammarabuali ] If the table is not the root or directly inside the root, you need 2
| 368580 [myocean135 y] think Ammar ,one problem vanish,another occur.
+ 368579 [kbloom gmail] doc.xpath('/html/body/table/tr[count(td)>3]')
  368581 [myocean135 y] <table>
  368582 [ammarabuali ] h??
  368583 [myocean135 y] i found they are equal between  not and !=  in nokogiri xpath
  368584 [myocean135 y] a friend tell me,
  368585 [ammarabuali ] That's good. Another possible approach is using following-sibling, if

^ create dinamically hashes from string
368508 [free3zone gm] the data contain in the cookie are grouped by ";" and every group have a

^ Avoiding eval
368510 [wagner.andre] Hey all,
368511 [shortcutter ] a_class = str.split('::').inject(Object) {|cl,n| cl.const_get n}
+ 368513 [wagner.andre] Well, sure. That's a good point. But now you're taking 3 times as long as
| + 368516 [wagner.andre] Err, I think I wasn't very clear in my last email, so I'll say it in a
| + 368517 [shortcutter ] Please do not top post.
+ 368540 [josh.cheek g] (see method constantize)

^ Name that method!
368514 [transfire gm] ...
368515 [wagner.andre] I'll vote for parent_namespace.
368528 [b.candler po] Module#enclosing_module ??
+ 368543 [robert.dober] (+1)
+ 368557 [eregontp gma] I prefer #enclosing_module since the "namespace" is a Module.
| 368559 [transfire gm] def constant(const)
+ 368558 [transfire gm] ...
  368560 [robert.dober] But a class is a module, right? Although more exactly one could argue
  368573 [transfire gm] Your right it is, and that should suffice, though I recall matz once

^ Parameter passing
368520 [ajfrenzel we] Is it possible, to pass local variables by refrerence to method?
+ 368525 [cmdicely gma] uate to true
| 368526 [ajfrenzel we] Thanks for your reply. I'll think about another way to solve my problem.
| + 368529 [cbciv yahoo.] This forum is gatewayed to the ruby-talk mailing list and
| + 368547 [shortcutter ] Interestingly I cannot remember having felt the need for C++ like call
|   368549 [ajfrenzel we] Exactly. I have a lot of experiences with C/C++ und ruby is a very
|   368550 [ajfrenzel we] Interestingly, the webmaster also does'nt like to publish his address to
+ 368669 [rogerpack200] You could pass it as an array

^ default ruby lib path "$:" problem
368521 [juanandrade1] I am trying to install and run ruby from rpm but I am missing ruby
368523 [luislavena g] Please provide more information about Linux version you're using and
368524 [juanandrade1] Running

^ love me
368532 [2011.love.me] 1st step

^ Downloading corrupted files
368548 [nanjung sezn] I have created small program to download files from website. I am using
368613 [justincollin] Try it with open(replay_name, "wb") to open the file in binary mode.
368636 [nanjung sezn] Wou, thanks a lot :)

^ how to rewrite a curl request into a NET::HTTP one ?
368554 [yves_dufour ] I have a curl request (to upload a file) which is running weel in the
368555 [ammarabuali ] attachments
368565 [yves_dufour ] Thanks a lot Amar,  could not get it right ...  I switched  to curb  (

^ Ruby Versions in Common Use (Or, Can we bury 1.8.6 yet?)
368562 [transfire gm] I am curious if Ruby 1.8.6 is still widely used? Have most people made
368621 [brabuhr gmai] "one of the issues that we have been working on ... we are still stuck

^ [ANN] New Ruby IDE discussion group formed.
368563 [ed.howland g] To pump up the volume on discussions around IDEs that do Ruby and have

^ initialize instance variable problem
368564 [cameron1inm ] Why does this return nil for @city?
+ 368567 [jeanjulien.f] Because when you use @city outside a method definition, it is an
| 368586 [cameron1inm ] I get what your saying,
+ 368587 [josh.cheek g] This is basically what Jean said, but I figured it might be easier to follow
+ 368589 [shortcutter ] Others have identified the basic issue (your puts statement accesses a

^ wxruby: clearing and replacing contents of a frame (panel?)
368566 [spare frigid] I was thinking about switching one of my projects interfaces over to

^ Stopping ruby from escaping characters
368570 [shef.hauwang] I'm trying to open a file with variables encased inside the
368572 [josh.cheek g] When you read it in, it is a String, not code being interpreted.

^ [ANN] Rainbows! 0.97.0 - a sleepy HTTP server
368571 [normalperson] Rainbows! is an HTTP server for sleepy Rack applications.  It is based on

^ Problems using gets() on a socket
368574 [geometric.pa] I have built a telnet "chat server" using TCPserver and a select
+ 368590 [shortcutter ] Well, that's perfectly OK since from the socket connection's point of
+ 368668 [rogerpack200] Posted via http://www.ruby-forum.com/.

^ [ANN] rcairo 1.8.5
368576 [kou cozmixng] I released rcairo(*1) 1.8.5 that fixes build related

^ pcaprub on Windows
368577 [chris.rimond] I am trying to use Ruby on Windows to perform some low level packet
368605 [luislavena g] I guess you can't use pcap from cygwin since is emulating posix while

^ delete char
368588 [myocean135 y] i want to make 'gkhj*&()' into 'gkhj',here is my code
368591 [ammarabuali ] puts item.gsub(/[^a-z]+/, '')
368597 [myocean135 y] it is ok,but i want to know  why my code can't run?
+ 368599 [myocean135 y] pt@pt-laptop:~$ irb
| + 368602 [list.push gm] p 'gkhj*&()'[0] #Ruby 1.9
| + 368604 [fred lacave.] => "g"
+ 368601 [list.push gm] I think you should take the advice of someone who shows you a Ruby way, but=

^ require from a method
368592 [ammarabuali ] Are there any gotchas in requiring files from within a method? It
+ 368593 [shortcutter ] Not technically.  It might even be more efficient if you require a
| 368594 [markus fisch] Sorry for hijacking, but I'm wondering how require exactly works in the
| + 368598 [shortcutter ] No.  It would be bad because then if the require statements would be
| + 368600 [Ruby GoogleM] No. Required files always get evaluated in the global context. Which
|   368702 [shortcutter ] ng
+ 368603 [timrandg gma] for visualization) what files load when a given gem is loaded. When I

^ In Shoes, whye does ask_open_file run a shoes app?
368606 [ed.howland g] If I have a bit of code inside Shoes.app block, like this
368609 [steve stevek] Hey Ed-

^ Playing raw PCM files in ruby
368607 [roger.braun ] I am trying to play the music from the old game "Ascendancy" using
+ 368608 [uzimonkey gm] You might be better off converting these sounds to something that can be
| 368610 [roger.braun ] the
+ 368667 [rogerpack200] Linux or windows?
| 368679 [roger.braun ] Possibly both. But mainly Linux.
+ 368686 [rogerpack200] call out to VLC?
+ 368698 [yermej gmail] On Aug 29, 1:45=A0pm, Roger Braun <roger.br...@student.uni-tuebingen.de>

^ Broken alias behavior in Ruby 1.9.2?
368611 [tron soltec.] The following code works in Ruby 1.8.7 but not in 1.9.2, instead, I get
368612 [transfire gm] Your alias is only creating an instance method, yet you are using it
368614 [tron soltec.] Thank you for your reply. However, your suggestion resulted in
368615 [uzimonkey gm] As far as I can tell, 1.9.2 ships with Base64.
368649 [tron soltec.] Thanks, Michael.

^ gsub  blank
368616 [myocean135 y] irb(main):011:0> "     gk".gsub("\s","h")
+ 368617 [myocean135 y] i get it
+ 368618 [hassan.schro] =3D> "hgk"
+ 368619 [josh.cheek g] Your second example is almost there, except that it is a String, not a

^ Re: Web Hosting
368620 [selvi_venki1] Posted via http://www.ruby-forum.com/.
368630 [sureshrajche] fine.

^ Reading Peter Cooper's book; about regular expressions
368622 [sbstn26 yaho] x = <<MY_DELIMITER
368626 [bob proulx.c] The ^ anchors the regular expression to the beginning of the line.  In

^ confirmation
368628 [rajajeyammca] confirm 20100830150641163941261635843 raja j=

^ case (variable) when type1  ... when type2 ... end
368629 [eugen prime-] how can I write case statement to check of specific type the variable has?
+ 368633 [jeanjulien.f] case var
| + 368634 [eugen prime-] oh, I was almost there :p
| + 368948 [tilde autist] "case" statment?
|   + 368949 [uzimonkey gm] No, it's not a special behavior.  Explanation is here.
|   + 368951 [shortcutter ] "case" uses operator "=3D=3D=3D" to check conditions.  If you do "case x
|     368952 [tilde autist] Clear yet concise explaination, thank you!
|     368959 [tilde autist] Also (at least in 1.9.2) the alias is unnecessary, if a proc is provided
|     369006 [shortcutter ] Oh, that's great!  IIRC I suggested this a while ago.
+ 368638 [ralphs dos32] Eugen,

^ Speed issues iterating over chars
368631 [mail maasha.] This snip of code needs more speed. Ideas? What is the state of Ruby and
368635 [shortcutter ] cutoff
368641 [mail maasha.] This could be a good idea, but I am not entirely sure if it will work -
368643 [shortcutter ] Just try it out in IRB.  This creates a regexp with unicode names.
368645 [mail maasha.] regex = Regexp.union((-5 .. cutoff).collect { |n| (n + BASE_SOLEXA).chr
368646 [shortcutter ] It doesn't. Somehow I must have missed an important detail... :-)
368653 [mail maasha.] Yes, converting scores to arrays is bad since the scores are parsed from
368770 [shortcutter ] Here's what I'd probably do.
368790 [mail maasha.] Thanks Robert,
368812 [shortcutter ] Regexp is precompiled but I suspect that tr works at runtime only.

^ Unable to click using div(:text)
368639 [vibhavario c] My application has a PowerGrid Control.

^ Pass an array to a new instance of a class.
368640 [jonathan.all] I am having trouble passing values to an array of a new instance of the
+ 368642 [wagner.andre] If I'm understanding right, the modifications I made to your code below
+ 368644 [shortcutter ] You could do
| 368654 [jonathan.all] Thanks Robert. I didn't think about pushing the items into the array
| 368705 [shortcutter ] Note though that the code above only appends a single Array to the Array
+ 368655 [jgabrielygal] Apart from all the other suggestions, you should change the container

^ Ruby v1.91 won't match literal plus sign
368648 [funn_bunch y] text = "++"
+ 368662 [Rob AgileCon] 1.9.1 and 1.9.2 both work fine.  Perhaps you have a particular bug in
+ 368676 [renard nc.rr] Works fine with ruby-1.9.1p378 on a Mac

^ Want to use Ruby/GTK2 + rcairo on Windows
368652 [satoshi rin-] I'd like to use ruby-gtk2 package and rcairo on my Windows 7 laptop.
368666 [rogerpack200] from source, most likely.  Or if they have a binary distributable (for

^ [ANN] Rb++ / RbGCCXML 1.0
368657 [jameskilton ] What is rb++ / rbgccxml?

^ [ANN] Rice 1.4.0
368658 [jameskilton ] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

^ fork() function is unimplemented on this machine
368660 [ralphs dos32] I am trying to implement the code on page 181 of *Programming Ruby 1.9*
+ 368665 [cremes.devli] As far as I know, Windows does not support fork.
+ 368671 [joelvanderwe] t = Thread.new do
| 368687 [ralphs dos32] Joel,
| 368703 [shortcutter ] Another solution is to use cygwin which does support fork().
+ 368787 [Ruby GoogleM] fork is a POSIX/Unix system call. It is therefore only available on
  368794 [shyouhei rub] All I can say is, if you want it being platform-independent, don't use fo=

^ Ruby 1.9.2 Constant Lookup with BasicObject
368661 [transfire gm] ruby-1.9.2-p0 > module M
368722 [eugen prime-] module M is defined inside Object space.
368727 [transfire gm] I filed a bug report on Ruby's issue tracker and matz brought up the
+ 368728 [matz ruby-la] I understand your complain.  But the solution should be concrete, and
+ 368729 [fxn hashref.] The rules of constant name resolution have changed with BasicObject.
  368740 [fxn hashref.] After some trial and error it seems the algorithm is the same as in

^ Re: the great ruby editor and ide roundup
368664 [rogerpack200] Is this spreadsheet or a copy of it available anywhere?
368701 [me waltonhoo] I was looking for this the other day too, wanted to see if anyone had
368706 [martindemell] Sorry, google docs had reverted the permissions to private. I've fixed
368707 [martindemell] Also, mirroring to a wiki would be nice idea. Google docs is still the
368708 [jgabrielygal] I have a script that reads a Google Docs excel file and imports it
368709 [martindemell] Yes please, that sounds very useful.
368710 [jgabrielygal] It's a bit raw, but it might be useful. It uses gdata-ruby which I
368711 [martindemell] Thanks! Will play with this when I get home tonight.

^ Time#round in 1.9
368672 [transfire gm] Anyone know about Time#round in 1.9. Apparently it exists but it seems
368674 [wyhaines gma] A voice was heard to utter: "Use the source, Luke! Errr, uh, Trans.
368677 [transfire gm] The docs would be nice, but ri has been broken for months[1] and I

^ structural conceptual design of a slab as per EC2
368673 [datulravi gm] I need a conceptual design plugin of Ruby for Sketchup for a concete

^ The nice new braintree_orange
368681 [phlip2005 gm] def test_successful_purchase

^ The nice new braintree_orange_test.rb is confused about what "purchases" are...
368682 [phlip2005 gm] def test_successful_purchase
368714 [b.candler po] If this is a Rails-related tip, it would find the most appropriate
368737 [phlip2005 gm] Neither is the Rails mailing list correct for a plugin, duh.

^ Stuck on "No route matches" when porting to rails 3.0
368683 [d_rems yahoo] I don't do anything special. This should work, but it doesn't.
368684 [d_rems yahoo] Sorry guys this should go to Rails.

^ XSLT-like search in a Ruby Hash
368688 [rps salas.co] I have a need for some relatively fancy searching in a hash, and I am
+ 368693 [joelvanderwe] ...
+ 368718 [shortcutter ] For the simple case one could do

^ Namespaces too looooooong
368690 [iainspeed gm] What's the best trick for avoiding RSI with nested modules? For example,
+ 368691 [ryand-ruby z] don't use them as much.
+ 368692 [joelvanderwe] Use local vars or (scoped) contants?
  368694 [iainspeed gm] Excellent, thanks. I didn't realise they could just be stuck into vars.
  + 368696 [cmdicely gma] Is using deeply nested modules in such a way that a consumer of the
  | 368699 [iainspeed gm] throwing out the good things learned over the
  | 368704 [shortcutter ] module A
  + 368712 [lists kempge] Actually one of the few nice things about namespaces in PHP is the
  | 368713 [shortcutter ] ng out the good things learned over the years about things in computing see=
  | 368716 [lists kempge] Sure.
  | 368717 [shortcutter ] wing out the good things learned over the years about things in computing s=
  | + 368726 [iainspeed gm] I'd have to disagree. Like I said, when I was looking for best practice =
  | | 368730 [shortcutter ] Please note that my statement referred to bugs caused by not anchoring
  | + 368780 [lists kempge] In my totally unscientific benchmarks I did not find any noticeable
  |   368781 [shortcutter ] hmark.
  |   368782 [lists kempge] #!/usr/bin/env ruby
  |   368785 [shortcutter ] Or course you're right.  My bad.
  + 369033 [ryand-ruby z] throwing out the good things learned over the years about things in =