184518-413780

184325-399484 subjects 184696-188523

Newbie: Reflection question(?)
184518 [gaudimila@ya] At runtime I have the name of a class in a string, and I want to call a
+ 184519 [kevin.jackso] you need to look at call
| + 184520 [gaudimila@ya] I'll try that, thanks Kev!
| + 184679 [benjohn@fy h] I don't think that's going to work for him (if c is the
+ 184528 [rossrt@ro co] str = "Array"
  184536 [bob.news@gm ] const_get is definitely preferred as it doesn't show the same security

[YAML] quirks with \0 in double quotes
184521 [vjoel@pa h. ] Are these bugs? This is ruby-1.8.4. The YAML spec seems to say "\0" is

$25,000.00 WEEKLY INCOME.MAGAZINE FRANCHISE.WORK AT HOME
184522 [invest@vo ar] ...

does exists a module similar to the Perl's Encode::Guess in Ruby ?
184527 [pere.noel@la] does exists a module similar to the Perl's Encode::Guess in Ruby ?

Q: variable "declarations"
184529 [billy@ar is ] I'm new to Ruby so my question could look a bit... hmmm.. stupied.
184533 [farrel.lifso] I would suggest unit tests using the Test::Unit API which comes
241081 [jenda@cp n. ] I would suggest using a programming language.
241109 [djberg96@gm ] That seems like a rather snarky reply, coming nearly a year (!) after
241171 [subs@su fu a] I touched on the issue of lack of variable declarations in my short

HungryNil
184534 [jchris@mf z.] you can use to selectively turn nill values into nulls, in a method
184537 [jchris@mf z.] sorry, I forgot the link: <a
184538 [jchris@mf z.] Posted via http://www.ruby-forum.com/.

deleting from hash question
184539 [ryan@ji my t] I'm a ruby newbie and have what is probably a relatively simple problem
184576 [james@gr yp ] Just FYI, Rails's dynamic finder methods are probably a little
184637 [ryan@ji my t] Yep. I totally flaked on that. Thanks!
184640 [james@gr yp ] This is me being dumb and not realizing how clever Ruby is.  You can
184645 [ryan@ji my t] That did it, thanks! You've been a HUGE help!

Are college professors teaching computer science with ruby?
184541 [anne@wj .h r] I was wondering if anybody taught the traditional computer courses in
+ 184542 [jeroenbulter] I use Ruby (being a lab assistant) in my Relational Database
| 184554 [bob.news@gm ] Prebuild solutions they can find on the web maybe? :-)
| 184570 [jeff@sc wa c] Python may be perceived as a more valuable addition to a resume.  Python
+ 184544 [robert.feldt] Not traditional in the sense of being basic courses in the starting
| 184545 [anne@wj .h r] Interesting, I had not thought of the students resenting having to
| + 184547 [robert.feldt] Well it's not a major factor in the decision since we use it anyway...
| | 184574 [bob.news@gm ] IMHO that's true for a completely other reason as well: the task of
| | 184579 [robert.feldt] Yes, that's a good point. Unfortunately many companies are overly
| + 184558 [ news@ja .f ] It certainly never contributed to the decision of whether or not to keep
+ 184561 [pat.eyler@gm] You might take a looki at
| 184619 [anne@wj .h r] thanks, that extended the list quite a bit.
| 184638 [pjhyett@gm i] I tried desperately to change the language used for our school's
| 184690 [anne@wj .h r] In your case what prevented the use of Ruby for this Bioinformatics
| 184697 [rubytalk@gm ] I had a programming languages class where we had to research and
+ 184766 [drosihn@gm i] ...
+ 184807 [greg.kujawa@] It's funny how every decade or so the prominent language taught at
  184810 [rubytalk@gm ] I don't think that the languages are as important as knowing how to

The Borg Are At It Again!
184551 [thoran@th ra] Howdy Good Ruby Folk,
+ 184566 [robert.feldt] The more the merrier. MS supports research into compiling many
+ 184705 [ptkwt@ar cn ] Believe me, I am no fan of that company from Redmond.
+ 184708 [doug.holton@] I think you're over-reacting.  You know there has already been a
+ 184713 [ jupp@gm .d ] Borg no Matsumoto Yukihiro desu
+ 184732 [ssmoot@gm il] I see this as great news.
| 184841 [paul@ic no l] It would also, if I understand .NET properly, mean that if somebody
| 184913 [cypher@qs g.] Apparently it is true. Even though I didn't find it directly on the
| 184914 [cypher@qs g.] Both http://www.answers.com/topic/david-korn and
+ 184838 [netghost@gm ] I think this is great.  If they are succesful it would mean that I can

Rapid Prototyping Perl In Ruby?
184552 [thoran@th ra] I was searching for a library in Ruby which I wasn't sure existed, and
184557 [dblack@wo bl] Maybe I still haven't had enough caffeine... but it doesn't sound
+ 184594 [james_b@ne r] Remarkable testimony, too, on how language choice effects thinking.
| 184597 [dblack@wo bl] Simon took very strongly to Ruby, and was pretty visible for a while.
| 184601 [pat.eyler@gm] He did mention that he was stepping away from programming on his
| 184614 [jimfreeze@gm] No doubt as a some sort of restitution for all those years of
| 184687 [thoran@th ra] Jim,
| 184731 [thoran@th ra] It's a sign!  Prediction: Simon Cozens Will Code Ruby...
+ 184682 [thoran@th ra] David,
  184688 [agorilla@gm ] Easier said than done.  If you have a ton of legacy code, it makes
  184691 [james_b@ne r] a) A member of of a derivative group of the Wobblies (most likely the

libxml: handling parse errors
184556 [mage@ma e. u] I found the libxml API very nice, so I started using it.
184565 [rossrt@ro co] We have a (contributed) patch that addresses this (allows an error proc

[QUIZ] Space Merchant (#71)
184560 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 184632 [lukfugl@gm i] ...
| 184671 [rossrt@ro co] Pretty cool, beats my current random generation strategy :)
| 184850 [timothy.s.be] I'm working on a Sector implementation at the moment.  I'll post the
| 184858 [timothy.s.be] Here's the Sector implementation I was working on.  It can use a
| 184859 [timothy.s.be] Correction to this solution:  in plot_course, @path.nil? should be
+ 184872 [rossrt@ro co] ...
| + 184880 [rossrt@ro co] I must've run these tests a few hundred times over the past few days,
| + 184907 [james@gr yp ] This might be a fun follow-up quiz someday, if we can get the other
| | 184908 [timothy.s.be] I'm working on a planet.rb.
| | 184935 [timothy.s.be] ...
| | + 184947 [timothy.s.be] James (or whoever else is doing station.rb), how are you representing
| | | + 184950 [james@gr yp ] I'm thinking I will introduce a Ship object in there.  I've cleared
| | | + 184952 [lukfugl@gm i] I'm working on an implementation of Station and just representing
| | | + 185015 [james@gr yp ] I haven't had time to introduce ships yet, so I went with pretty much
| | |   185023 [timothy.s.be] Ok, great, I'll work with that then.
| | |   185041 [timothy.s.be] ...
| | |   185108 [rossrt@ro co] Maybe we could work it with a block on planet/station initialize, so
| | + 184951 [steve@wa ts ] Would you guys like a public svn repository for this?  That way you
| | + 184954 [rossrt@ro co] Now you mention that, I think it's probably better if I remove that
| + 184945 [vjoel@pa h. ] What about including DRbUndumped in the sector class, to keep them on
| | 184955 [rossrt@ro co] The setup I had in the end was: (server) Galaxy as front object,
| | 184956 [james@gr yp ] Could you have the client pass you $stdout and $stdin, then set them
| | 184996 [rossrt@ro co] ...
| | 185016 [james@gr yp ] James Edward Gray II
| | 185057 [rossrt@ro co] Ahh, I see. It looks like we had pretty similar concepts of how it
| | + 185100 [rossrt@ro co] Okay, I have this working now after a fashion, but still can't get it to
| | | 185145 [james@gr yp ] Yeah, this was a fun little experiment.  I'm glad we were able to get
| | + 185144 [james@gr yp ] This is a great point.  Good ideas all around.  I believe you're
| + 185294 [ mfp@ac .o g] I found your message indirectly via my httpd logs :)
|   185312 [rossrt@ro co] I meant to put a thanks in the message body after I decided the code was
|   185365 [rossrt@ro co] ...
+ 185485 [aglarond@gm ] I know this is 11th-hour and all, but I thought I'd mention it
  185535 [james@gr yp ] I *almost* made the quiz like this, but changed my mind to keep

irb completion in Emacs
184580 [vfoley@gm il] does anyone know if it's possible to have irb's tab completion when
184639 [rubikitch@ru] I created irbsh, extended inf-ruby.

RMagick Image Optimize
184584 [tomrossi7@gm] I'm new to RMagick and am looking for how you can set the optimization
184591 [rmagick@gm i] ...
184651 [tomrossi7@gm] Thanks!  The compession is definitely what I am looking for.  I'm
184663 [cyclists@nc ] quality works as an option to the to_blob method, too. To change the

Re: Are college professors teaching computer science with ru
184587 [talhasy@ho m] In one of our courses (Programming Languages), we study Ruby, and have

Ruby projects in Sweden?
184588 [anders1@ve d] I would like to know if Ruby is used by companies in
+ 184592 [robert.feldt] As an old member of the Gothenburg Ruby User Group I should probably
+ 184656 [jon.olsson@g] We're using Ruby at work, and, we're hiring! We're based in Stockholm

Writing long-running daemons without memory leaks?
184589 [toby@cb g. e] I am in the middle of writing some code that will exist as a
+ 184590 [ara.t.howard] i'm running dozens of ruby daemons, some of which are extremely (months at a
| 184595 [toby@cb g. e] Sure. Here is a server and client, resp, that exhibit the behavior I am
| 184617 [ara.t.howard] require 'socket'
| 184624 [toby@cb g. e] ruby 1.8.4 on Ubuntu Linux, kernel 2.6.12-10 on a P4 Thinkpad with 1GB
| 184633 [ara.t.howard] yes - but it's definitely not leaking.  i'm running
| 184643 [toby@cb g. e] Interesting.
+ 184609 [vikkous@gm i] Set things to nil after you're finished using them.
+ 184655 [comp.lang.ru] _ This is generally true of all unix processes. They do not
  184740 [vjoel@pa h. ] I thought they did return freed memory. Am I misreading the following?

ruby-sqlite 2.2.3 bug
184593 [jlsysinc@al ] This is using sqlite-ruby (2.2.3)

sqlite3-ruby bug
184596 [jlsysinc@al ] Sane as earlier post.   Code to reproduce different.

c/c++ enum equivalent?
184598 [benjohn@fy h] I'd like to fill a module with valueless constants (because I don't care
+ 184600 [ruby@an hr p] } I'd like to fill a module with valueless constants (because I don't care
| 185003 [benjohn@fy h] ... in some code, and have Ruby come back and bash me for talking
+ 184608 [bob.news@gm ] That's true. :-)  If you just need the names you can just use symbols
| 185004 [benjohn@fy h] Thank you, I will take a look for that thread.
+ 184767 [drosihn@gm i] # -------+---------+---------+-------- + --------+---------+---------+---------+

Explanation of if __FILE__ == $0
184599 [pjhyett@gm i] __FILE__ is the name of the current source file
+ 184605 [dblack@wo bl] Yes; if __FILE__ (the name of the current file) is the same as $0 (the
+ 184607 [dharple@ge e] It is used when you want to run something when the file is executed
| 184611 [jimfreeze@gm] Most definitely. I would like to see this changed in existing code.
| 184628 [pjhyett@gm i] Thanks guys, that's helpful.
+ 413780 [lists@ru y- ] I agree with Jim Freeze - I think

Re: Compile Ruby 1.8.4 on HP-UX 11
184606 [CMcDevitt@aa] Thanks.  I instilled gcc and ran configure.  It received and error, so I
184644 [vanek@ac .n ] I would have stuck with the tried-and-true gcc 3.4 series instead of the

Card tricks with Ruby 2 - The Riffle
184612 [grrr@to o. a] First of all I wish to humbly send my thanks everyone taking their time to
+ 184620 [matthew.moss] def merge(left, right, &pred)
+ 184622 [dblack@wo bl] That's different from the person next to the dealer cutting the deck,

Named fixtures and automatic instance variables; newbie prob
184615 [mike.blyth@s] According to Agile Web Development with Rails (pg 148), a fixture like

Re: Named fixtures and automatic instance variables; newbie
184618 [cohen.jeff@g] You should post to the Rails list, not this Ruby list.
184704 [mike.blyth@s] Thanks, Jeff.

incremental rebuild with Rake
184623 [neoneye@gm i] I am using Rake for testing c++ code.
184625 [neoneye@gm i] I have made some changes to my .h files
184646 [neoneye@gm i] Anything smarter than converting makedepend to ruby, like this?
184652 [jim@we ri hh] Actually, its a bit easier than that ... but its a poorly documented
184712 [neoneye@gm i] Touching 'a.cpp' does not result in a compile, what am I doing wrong?
184715 [jim@we ri hh] Ahh, evidently, makedepend does not create an explicit dependency
184723 [neoneye@gm i] Excellent.. Now incremental rebuild is working
184763 [neoneye@gm i] I have noticed that the '.exe' file sometimes is'nt being linked.
+ 184770 [neoneye@gm i] seems to be an osx issue with disk caching.
+ 184771 [jim@we ri hh] I'm not able to reproduce this.  Hmmmm.
  184772 [neoneye@gm i] After reading on the mac groups.. the solution seems to be

unit testing with webrick
184626 [aaron_patter] the setup method.  I was wondering what the best way would be to

Where does core dump info go?
184629 [amusselman@r] delete a post from a deleted user.

validates_format_of :zipcode
184636 [michaelaugus] how can I set the validation of the zipcode ?
184648 [jon.druse@gm] you'll want to try a regexp.  look here for the code

help with a simple SOAP WSDL client?
184642 [petermichaux] I'm trying to write a little SOAP WSDL client to get a currency
185244 [petermichaux] anyone?
185486 [emarceta@gm ] Here is the example. The service is doc literal
+ 185753 [petermichaux] Thanks for the respone. I've tried what you posted and it didn't work.
| 185793 [petermichaux] Resolved.
+ 373141 [craig.talber] Apologies for bumping a ridiculously old thread, but it's exactly on the
  373142 [tony.arcieri] Tony Arcieri

aspectr and rails
184647 [bodikp.archi] Has anybody successfully used AspectR with Rails?
184769 [deanwampler@] AspectR is pretty old now and doesn't appear to be actively

Double Quotes in XML
184649 [geoffrey.par] <?xml version="1.0" encoding="utf-8"?>
+ 184650 [r.mark.volkm] You need to do one of the following.
| 184654 [geoffrey.par] Unfortunately i don't have much control over the markup (i'm not even
+ 184676 [hutch@re ur ] This is well-formed XML.
  184677 [r.mark.volkm] I think it's not well-formed because the Code element contains text
  184711 [hutch@re ur ] It isn't really a matter of opinion, and you are nowhere near lazy

Getting the name of a class that's in a module
184653 [noone@no he ] 'some_object.class.to_s' doesn't work because it returns the entire hierarchy,
184661 [ara.t.howard] # creates a class by class name

validation of form whoch is a image
184657 [michaelaugus] I don not let upload the file which are not images
184706 [Nuralanur@ao] ...

[ANN] Ruby Hacking Guide Translation
184658 [vincent.isam] I am pleased to announce that I have translated in English the second
+ 184660 [marcel@ve ni] Very exciting. Many thanks.
+ 184664 [jgbailey@gm ] Awesome. I'm know this represents a ton of work. Thank you for your time!
+ 184667 [ezmobius@gm ] Thank you very much Vincent for your hard work on this, I have been
+ 184670 [wilsonb@gm i] Awesome. Need some help on future chapters? I have a copy of the book,
+ 184692 [ptkwt@ar cn ] That looks like a very useful book.  Thanks for translating this chapter, I'm
+ 184693 [jperkins@sn ] Vincent, this is fantastic. Thank you!
+ 184707 [surrender_it] basically, thank a lot, to you and to minero aoki for letting his book
+ 184793 [meinrad.rech] the Ruby Hacking Guide is an almost mystical book outside japan
  184797 [vincent.isam] I do need help :). As written on the web page

Installing and running Hieraki 2.0.1
184659 [jim@fr ez .o] ...

Hash of Arrays nItems problem
184662 [hoyhoy@gm il] I'm having a bit of problem using a hash of arrays.  It appears that
184803 [bob.news@gm ] You want
184848 [hoyhoy@gm il] Oh, snap.  Thanks robert.  I will name my first son Robert in your
184877 [bob.news@gm ] You're welcome.  And I feel humbled.

ActiveRecord dynamic finder methods
184665 [r.mark.volkm] I've received conflicting answers to this question and I'd like to
184669 [james@gr yp ] => false

Selective runtime provision of instance methods
184666 [julian.kamil] I'd like to get some comments and suggestions from anyone who may have

Cant install RMagick from gems
184672 [wn9r-amn@as ] I tried install Rmagick from gems, but didn't it.
184737 [eule@sp ce c] Can you repost this on the help forum in the RMagick project section on

PDF::Writer errors in Rails
184673 [ray_carrasco] install of PDF::Writer (including the dependancies: Transaction::Simple
184865 [peter.fitzgi] ...

Using Ruby to read outlook message stores
184680 [ksader@gm il] Does anyone know of a way to use Ruby to look at Outlook email stores?
+ 184683 [greg.kujawa@] I've written a few scripts that connect to the CDO Exchange message
| 184684 [greg.kujawa@] Below is an URL to one thread I posted to awhile back regarding this
+ 184689 [james_b@ne r] James Britt

Ruby ported to Windows CE
184686 [info@ja eo a] and found nothing current. Sorry if this has been asked before.
184709 [daniel@vo lk] Search the list, last week I posted several questions. To summarize: No,
threads.html
top