354191-355075 subjects 354626-355237

regex =~ string or string =~ regex?
354386 [rubynewbee@g] string =~ regex.
354399 [shortcutter@] The first version invokes method Regexp#=~ and the second version
+ 354418 [marnen@ma ne] Interesting.  Whereas I prefer the second because I think
+ 354419 [wyhaines@gm ] es

How to know the childs PID of a given process?
354391 [ibc@al ax ne] How could I know the PID of those childs from any other ruby interpreter?
354400 [shortcutter@] times.=20
354407 [ibc@al ax ne] Thanks a lot. The fact is that I'd like not to modify the program whose=20
354410 [djberg96@gm ] ut
+ 354411 [ibc@al ax ne] ed
+ 354412 [ibc@al ax ne] gem install sys-proctalbe --platform linux   # Linux

Parsing of Html/Text files
354392 [hemant.bharg] Actually the situation is that i have a txt file or can be html file. In
354393 [ibc@al ax ne] When that text is contained in a HTML file, is it alawys enclosed in the same
354394 [hemant.bharg] I am not using any tags for text. Ok leave html part. Help me only with
354395 [ibc@al ax ne] Then using pure regex is good enough. If you want something "cooler" try

ANN: Sequel 3.8.0 Released
354420 [code@je em e] Sequel is a lightweight database access toolkit for Ruby.

Why does "warn" print a extra \n ?
354432 [ibc@al ax ne] realized that Kernel#warn prints an extra \n so the logger is called twice
354462 [shortcutter@] ) I've=20
354464 [ibc@al ax ne] =20
354465 [fxn@ha hr f.] On the other hand, that \n may come in handy in line-buffered I/O, and

Interfacing with Ruby garbage collector - when returning value from C  extension to Ruby
354436 [benjie@la li] I am working my way through Ferret (Ruby port of Lucene) code to solve
354441 [vikkous@gm i] text=token.text
354443 [benjie@la li] Hmm, can you elaborate on where the reference in C is created to
+ 354468 [benjie@la li] Actually, I believe a better solution to the problem I described is
+ 354494 [vikkous@gm i] So, Data_Wrap_Struct returns a VALUE, that is, something that ruby's
  354504 [benjie@la li] Caleb,
  354575 [vikkous@gm i] damn. I had my hopes.

ruby debugger
354442 [fbogdanovi@x] require 'debug'
354480 [rogerpack200] debugger

Subclassing in a C extension
354445 [echristopher] I've been trying to make a subclass written in C of the MySQL/Ruby
+ 354452 [b.candler@po] In my opinion, you should not use rb_require("rubygems"). If your
| 354510 [echristopher] That makes sense. It is possible to install mysql (and I would imagine
| 354517 [b.candler@po] Sorry, I meant the latter - using rb_funcall to invoke 'require', a bit
+ 354509 [albertschlef] Here's a simple solution: ship a mysqlemb.rb file with your extension,

How to generate a collection?
354446 [superxain@gm] Given any four letter word, for example: "card"
354449 [billk@ct .c ] 0001
354507 [superxain@gm] Thanks.

[ANN] SgfParser 0.8.0 - Open, browse and save!
354450 [aldric@tr vo] SgfParser has been released!

closing of the stderr pipe not detected - issue in 1.9.1?
354459 [shortcutter@] in trying to come up with a test script for

354467 [alexandrtara] in the BMP file. How can this be achieved in Ruby?
354469 [chris.hulan@] On Jan 5, 8:42=A0am, Alexander Alexander <alexandrtaras...@gmail.com>
354470 [  sim@me co ] Cool! I hope there steganography gem around XD
354471 [alexandrtara] stenography
354474 [chris.hulan@] On Jan 5, 10:02=A0am, Alexander Alexander <alexandrtaras...@gmail.com>
354475 [alexandrtara] Your link something does not work :(.
+ 354485 [jonathan@jm ] -Jonathan Nielsen
| 354484 [jonathan@jm ] ...
+ 354488 [b.candler@po] Replace spaces with %20 to make a valid URL.

[Q] how can I create a VB Date object from ruby using win32ole?
354472 [cremes.devli] I need to pass a VB Date object to a COM object using win32ole. I have

Volunteering for Scheme language standardization working groups  ***deadline January 8***
354473 [feeley@ir .u] *** PLEASE NOTE THAT THE DEADLINE IS JANUARY 8 ***
354520 [gavcomedy@gm] .html

[A] win32ole types was Re: [Q] how can I create a VB Date object from ruby using win32ole?
354477 [cremes.devli] ...

Re: Volunteering for Scheme language standardization working
354479 [marnen@ma ne] What has this got to do with Ruby?

Pair of O'Reilly Authors looking for challenging work opportunities
354483 [gregory.t.br] [the following message is from Gregory Brown (of "Ruby Best

RCR: fork(n) {|n| }
354486 [rogerpack200] Currently, it's surprising to me to have the semantics of fork differ
+ 354487 [b.candler@po] I don't think it gains you anything: in a fork the child process has a
| 354491 [rogerpack200] right it doesn't gain anything, except continuity between threading
| 354492 [shortcutter@] How would that proposed change make switching between threads and
| 354493 [rogerpack200] Unless you don't do any (ex: sub jobs that used to run in threads can
| 354608 [quixoticsyco] Posted via http://www.ruby-forum.com/.
| 354627 [rogerpack200] Interesting--language level multiprocessing.  I guess this isn't quite
| 354702 [quixoticsyco] Fork is not used.
| 355297 [quixoticsyco] I missed the 'unparse' method in RedParse which converts a sexp into
+ 354636 [djberg96@gm ] Regards,
  354638 [ruby-lists@n] This is my project and actually, Roger's question came from a
  354670 [djberg96@gm ] What about redefining fork?
  354676 [ruby-lists@n] Not opposed necessarily but start(...) is already a wrapper around

Online Math Coding Contest
354489 [kvenkan@gm i] Coding Contest of Kurukshetra 2010 , the International Techo-

Ruby library that creates classes from an XML Schema
354490 [gjeudy@gm il] I've been googling and couldn't find any Ruby library that would let me

Controlling another browser window
354495 [parzival@mi ] I have a set of static html files with their own links (essentially a
354496 [paradisaeida] I have used it to accept OpenID's on a page.
354585 [parzival@mi ] Open both the book page and the companion page separately.  Then have

How Do I Debug This?
354497 [james@gr ys ] ..........................................................................=
+ 354498 [jeremy@hi eg] When I have something like this, I generally will compile a debug (-g)
| + 354542 [james@gr ys ] ..........................................................................=
| + 354567 [rogerpack200] Like Jeremy said, you could run it in gdb by re-compiling your version
+ 354499 [rogerpack200] Running ruby under valgrind might help.
  354501 [achoi@ha ma ] ...

JRuby bug mash...with PRIZES!
354500 [headius@he d] Hey all! We're running a JRuby "Bug Mash" this weekend to help attack

what's String.hash
354502 [rubynewbee@g] irb(main):038:0* x="hello"
+ 354503 [rick.denatal] Actually all Objects have both a hash and an eql? method.
| 354541 [b.candler@po] A Hash puts objects into "hash chains", to make it quick to find a
+ 354562 [ryand-ruby@z] 501 % ri String.hash
  354566 [echristopher] st
  354568 [Rob@Ag le on] yes, and if you're using fastri (it's a gem), you'll get actual

being very confused about this hash
354505 [rubynewbee@g] irb(main):039:0> hash = Hash.new []
+ 354506 [billk@ct .c ] I'm not sure why hash.keys was empty.
| 354514 [emr1776@mi d] I believe that keys is returning empty because the hash is empty.  If
+ 354513 [ninja@sl ph ] I assume here that [] is the default value, right?
  354515 [rubynewbee@g] Thanks for the explaining, now I think I have got it.

html formatted string -displaying only upto specific length
354518 [subashinikum] I have a string

group in the array
354519 [lastdrv@gm i] I have a two-dimensional array Farr.
+ 354521 [ralf.mueller] regards
+ 354522 [ralf.mueller] irb(main):039:0> a = [["200912-829", 10],["200912-893",
| 354523 [lastdrv@gm i] Many thanks, Ralf!
+ 354525 [jeffpeng@ne ] You could use a hash for translating that.
| 354526 [lastdrv@gm i] Also works.
+ 354534 [shortcutter@] arr.group_by {|date,val| date}.each do |date, items|
  354538 [ralf.mueller] Looks good, but I could not find it in the online documentation on
  354539 [shortcutter@] group_by
  + 354580 [rubynewbee@g] I have checked the document for inject, but still can't understand for.
  | 354584 [rubynewbee@g] Now I checked some other help documents wigh google, and find Ruby's
  | 354595 [shortcutter@] I don't know Python's reduce but a few things are probably noteworthy
  | 354631 [rick.denatal] ut
  | 354739 [shortcutter@] out
  + 354589 [ralf.mueller] thanks robert!

Bug on ruby_parser gem?
354527 [andrea.grana] I think i just found a bug on ruby_parser gem on ruby 1.9.1
354536 [headius@he d] This looks like an incompatibility rather than a bug. As far as I
354561 [ryand-ruby@z] ...

[ANN] Rack 1.1, a modular Ruby webserver interface
354528 [chneukirchen] Today, with a few days delay, we are proud to announce the release of

Online math-coding contest
354529 [athena.kuruk] Coding Contest of Kurukshetra 2010 , the International

invoke javascript by clicking an image
354530 [gopinathmand] I am newbie to Ruby so pl pardon my ignorance.
354540 [b.candler@po] If you want to control a browser programatically using Ruby, have a look
354545 [gopinathmand] Thanks a lot for your prompt note. I actually started off with Watir,
+ 354556 [ninja@sl ph ] Wait, why are you attaching this as a screenshot? Shouldn't you be able to
+ 354559 [b.candler@po] Then your question should be: "in Watir, how do I click on an image that

Script to interact with a database
354543 [qaiserwali@h] I have an application in rails in which i am adding a new column in one
+ 354546 [aldric@tr vo] Sounds like you should be posting this in the Rails forum / newsgroup.
| 354547 [qaiserwali@h] I shall try posting to the rails forum, but i would still very much like
| + 354548 [marnen@ma ne] That can also be better answered in the Rails forum, I think.
| + 354552 [aldric@tr vo] Migrations, as I mentioned, are excellent for one-time work on tables,
+ 354553 [jdmaher@jd a] Can you update the database outside of your Rails application?  Yes.
| 354555 [marnen@ma ne] You should see my apps, then.  Unless the DB is corrupted (which has
+ 354554 [flo@an er gr] one
| 354641 [qaiserwali@h] Thanks a lot for the help. seems the Rails group wins as they made a
+ 354558 [josh.cheek@g] I'd make a method in your model that gets the address, then have it get that

Strings - foo[0,0] vs..  foo[-1,0] ?
354544 [shevegen@li ] string = 'bc'
354549 [matt@ha ps a] string[string.size,0]='c' works

Re: html formatted string -displaying only upto specific len
354551 [marnen@ma ne] You'll need to parse the HTML to know where the tags begin and end.  Use

[ANN] hoe-seattlerb 1.2.2 Released
354563 [ryand-ruby@z] hoe-seattlerb version 1.2.2 has been released!

[ANN] hoe 2.5.0 Released
354564 [ryand-ruby@z] hoe version 2.5.0 has been released!

[ANN] minitest 1.5.0 Released
354565 [ryand-ruby@z] minitest version 1.5.0 has been released!
354569 [ibc@al ax ne] Is there doucmentation somewhere? I'd like to try it.
354576 [ryand-ruby@z] There is always rdoc/ri once you install a gem. You can see the rdoc =

Is File.open deprecated?
354571 [xeno.campano] I don't see it mentioned in the File chapter of the latest Pickaxe book?  Is
+ 354572 [xeno.campano] It looks like the answer of my question is on page 162.  Apparently it still is
+ 354573 [rick.denatal] =A0Is
  354574 [xeno.campano] No, it's not on my page 549.  I've got instance methods pid through putc on that
  354578 [rick.denatal] It's page 549 of the PDF version, my dead tree version is upstairs.

[ANN] clogger 0.2.0 - configurable logging for Rack
354577 [normalperson] Clogger is Rack middleware for logging HTTP requests.  The log format

[ANN] Falluto: A model checker for verifying fault tolerant systems
354581 [ehames@gm il] I'm very excited to announce the availability of Falluto: a model

Re: Falluto: A model checker for verifying fault tolerant systems
354582 [jherrera14@g] Cool, negro!

text to speech - OS agnostic
354587 [dglnz2@gm il] I'm interesting in getting some feeling on how best to approach the
+ 354588 [james.daniel] And gem tie ins http://festivaltts4r.rubyforge.org/
+ 354635 [marnen@ma ne] It might be best to write an abstraction layer that wraps the OS's

354590 [mnjagadeesh@] Here my data structure
+ 354591 [jgabrielygal] =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 && ('open' ||
| 354597 [mnjagadeesh@] On Jan 7, 2:33=A0pm, Jes=FAs Gabriel y Gal=E1n <jgabrielyga...@gmail.com>
| 354600 [jgabrielygal] =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 && ('open' ||
| 354677 [mnjagadeesh@] On Jan 7, 3:08=A0pm, Jes=FAs Gabriel y Gal=E1n <jgabrielyga...@gmail.com>
+ 354592 [stefano.croc] ($DATA[pr].has_key?('closed') || $DATA[pr].has_key?('feedback')) &&
  + 354594 [mnjagadeesh@] =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 && ('open' ||
  | 354604 [stefano.croc] I'm not sure about what you mean by "using array?". Your code clearly uses =
  + 354596 [mnjagadeesh@] Here is how I am trying to do with array
    354607 [stefano.croc] Still I don't understand exactly what you're trying to do. states contains all
    354612 [stefano.croc] You don't need to use grep to see whether an array contains an element. You

[ANN] nanoc 3.0.3
354598 [denis.defrey] nanoc 3.0.3 has been released.
354601 [ibc@al ax ne] r=20
354605 [ibc@al ax ne] In the tutorial page there is a non working link with text "full list of=20
354615 [denis.defrey] to

Serialization ruby 1.8 vs ruby 1.9
354603 [ odo@ma .c m] I am trying to marshal objects with ruby 1.8 and read them with 1.9 but
+ 354606 [james.daniel] Marshal isn't constant, it can only be expected to work when you are
+ 354618 [shortcutter@] James is right: the format of Marshal is not guaranteed to be portable
  354621 [ odo@ma .c m] Thank you for your very informative answers.
  354623 [shortcutter@] You're welcome!

each method in FireWatir::Firefox
354609 [manojchouras] I am trying to run my script in Firefox. I want to count hoe mant

encrypt message in html file
354610 [alexandrtara] that is, the message must be recorded in the gaps that HTML ignores.
354611 [pg@th mi n. ] HTML has no "gaps", in the sense that content is ignored.
354629 [alexandrtara] it does not address the problem of safety, it is a task for the
+ 354630 [pg@th mi n. ] That does not, however, *hide* your text.
+ 354634 [marnen@ma ne] You could put it in comments, or encode it as whitespace characters, or

How to use the same params in respond_to for some formats ?
354613 [roux.camille] I want to make an API in XML and JSON (maybe more), and I want most of
354663 [b.candler@po] respond_to is not a ruby method. My guess is that you are writing an

which shell?
354614 [wybo@se va y] #!/usr/bin/env ruby
354620 [shortcutter@] If I would want to enforce a particular shell I would always explicit

What is ruby-web.exe
354616 [michael.hugh] Newbie question!
354703 [michael.hugh] After a little more searching...ruby web was a foundation built to
354709 [walton@vy er] Darn, and here I was hoping you knew something I didn't since getting
354835 [michael.hugh] Unfortunately I work at a windows site so IIS it is.

Nexus Programming Language
354617 [acampbellb@h] In the spirit of agile software development practices "release early,
354624 [jameskilton@] Wrong mailing list.

Non-blocking communication between Ruby processes
354619 [ibc@al ax ne] - When a worker processes a HTTP request it must notify some data to other
+ 354622 [shortcutter@] cesses.=20
| 354625 [ibc@al ax ne] Really thanks a lot.
| 354640 [shortcutter@] TTP
| 354643 [ibc@al ax ne] =20
| 354645 [ibc@al ax ne] Hummm, I have a reader process and a writer process.
| + 354646 [pg@th mi n. ] pipe.write unless pipe.full?
| | 354651 [ibc@al ax ne] Unfortunatelly #full? is not a method of File :(
| | 354652 [pg@th mi n. ] Well, yes, you'd have to implement the method (or something like it)
| | 354653 [shortcutter@] not
| | + 354657 [pg@th mi n. ] A little refined (in that I skipped the buffering), but it's still the
| | + 354658 [ibc@al ax ne] =20
| |   354661 [normalperson] FIFO are pipes, they just have a name on the filesystem.
| |   354665 [ibc@al ax ne] is
| + 354647 [shortcutter@] so
| | + 354650 [ibc@al ax ne] so
| | + 354744 [ibc@al ax ne] threads. Finally I've decided to use posix message queue [*] under Ruby.
| |   + 354773 [shortcutter@] o,
| |   + 354774 [gwtmp01@ma .] benchmarks (but=20
| |     354778 [ibc@al ax ne] Yes, pipes allow atomic operation but just in case the message is less than=
| |     354801 [gwtmp01@ma .] I just tried this on Mac OS X using threads and using forks to write to
| |     354802 [ibc@al ax ne] I got the mixed strings using a name pipe (created with "mkfifo" command) a=
| |     354804 [gwtmp01@ma .] command) and=20
| |     354805 [ibc@al ax ne] d)
| + 354649 [ibc@al ax ne] Ok, the fifo remains working at SO level so it can receive messages after s=
+ 354662 [normalperson] If stressed enough, everything has to block/reject or run your systems
  354666 [ibc@al ax ne] Really interesting. Is it safe to have various processes (Unicorn workers)=
  354668 [normalperson] These queues are completely atomic at the message level and descriptors
  354673 [ibc@al ax ne] Great!
  354674 [ibc@al ax ne] is