332271-374059 subjects 332688-334333

Help with GServer
332481 [kulkarni.sud] I have a requirement
332486 [ibc@al ax ne] I don't understand your problem.
332500 [b.candler@po] For a low-level HTTP app, I'd say use Rack. You just write a single
332507 [kulkarni.sud] Thanks for the solutions Sinatra and Rack look good but need a bit of
332508 [james@gr yp ] Then use the WEBrick standard library that ships with Ruby.
+ 332511 [b.candler@po] If you don't trust him: read RFC 2616 from top to bottom. Then you will
+ 332518 [eleanor@ga e] For an overview of how to use WEBrick grab the Camping presentation

Looking for help with a collaborative blog effort
332504 [gregory.t.br] kick-ass collaborative blog at rubybestpractices.com

REG: How can we debug a ruby script
332513 [ext-golla.an] I want to debug a ruby script using -rdebug option.
332574 [b.candler@po] Something in your environment is making ruby do -rubygems (require

How to Sync mysql adapter with MySql
332514 [jlopes151@co] I'm getting an error when I run db:migrate that the call to SHOW_TABLE

activerecord query building question
332517 [Aldric Giaco] require 'activerecord'
+ 332525 [phrogz@ma .c] On Mar 30, 12:30=A0pm, Aldric Giacomoni <"aldric[remove]"@trevoke.net>
+ 332555 [mark@th ma z] On Mar 30, 2:30=A0pm, Aldric Giacomoni <"aldric[remove]"@trevoke.net>
  332577 [Aldric Giaco] That would probably work really well in a Rails app, but I get a
  332581 [mark@th ma z] Yes, you have to change the methods to match your database. You did
  + 332585 [Aldric Giaco] Right- I tried the following, which works for my schema (by which I
  | 332609 [mark@th ma z] You probably have an capitalization where it should be lowercase
  | 332612 [Aldric Giaco] I got a friend to look at it - you're right, that's it. it considered
  + 332605 [Aldric Giaco] Refphys.find(:all, :include => :rephyslocation, :conditions =>

When to use instance variables @
332520 [stevedogers@] 1) do i need to declare them at the top of my class file - I do
+ 332522 [phrogz@ma .c] No. You can ask for any instance variable at any time - if no value
| 332524 [phrogz@ma .c] Here's a more real example of why you might want to write arbitrary
+ 332526 [michael.malo] No, you don't need to declare them at the top of your file, just before
+ 332535 [albertschlef] In Ruby you declare nothing. (That's unlike languages like Java, C,
| 332536 [ibc@al ax ne] This is not true when using class variables (@@). These need to be "declared"
| 332538 [ josh@im .l ] [quote]This is not true when using class variables (@@). These need to be
| 332542 [ibc@al ax ne] Perhaps you could detail it a little more.
| 332545 [ josh@im .l ] All variables in Ruby (Local, Global, Instance (object), or Class) do not
| 332549 [ibc@al ax ne] I didn't say "at the beginning of a method", but "at the beginning of a class"
| 332550 [ josh@im .l ] Ah right.
| 332552 [ibc@al ax ne] Yes, I just wanted to point that, but I chose a wrong and prohibited word in
+ 332554 [matt@ti bi s] No, nor can you! Code that looks like it is declaring them isn't. A
+ 332565 [bbxx789_05ss] class Person
  332590 [bbxx789_05ss] class Product
  332591 [bbxx789_05ss] puts Person::PersonProduct.product
  332680 [stevedogers@] Thank you to everyone who answered - yes it makes a lot more sense now!
  332691 [adam.oddfell] I for one sometimes prefix methods with self to help visually
  + 332694 [sepp2k@go gl] def x
  + 332695 [pjb@in or at] C/USER[55]> hello

lambda vs non-lambda proc
332523 [stevedogers@] I guess my question is rather simple, what's the difference between
+ 332539 [sean.ohalpin] A simple question but one not so easily answered. Google "ruby blocks
+ 332558 [jan.h.xie@gm] - J

Which methods does "puts" invoke?
332527 [ibc@al ax ne] puts string
+ 332530 [jaco@ne tt a] to_s  (inspect is called by p)
| 332533 [ibc@al ax ne] et
| 332543 [jaco@ne tt a] Oh yes, you're right... puts doesn't use to_s when called on a String.
| 332573 [b.candler@po] Nor on nil. (It prints "nil", whereas nil.to_s is the empty string)
+ 332532 [lyle@ly ej h] the
+ 332551 [rko618@gm il] the

Getting the current module(s), class name and method in Ruby 1.9
332529 [ibc@al ax ne] (but I ca't find it now).
+ 332531 [michael.malo] Something I prefer to use is the __LINE__ and __FILE__ constants.  They
| 332534 [ibc@al ax ne] That's ok, but it's not what I'm looking for.
+ 332537 [sean.ohalpin] 8 but
  332541 [ibc@al ax ne] =46antastic! Thanks a lot.
  332546 [ibc@al ax ne] If somebody is interested, I've implemented the above code adding Class=20
  332611 [ibc@al ax ne] =20

Problems with GC.. again
332540 [whitequark@w] Again, I ran into some kind of wrongly garbage collected object, but
332635 [nobu@ru y- a] Why do you use such old, unreleased revision?
332638 [whitequark@w] It's latest 1.9 packaged in Debian.
+ 332639 [ryand-ruby@z] *sigh*
+ 332703 [nobu@ru y- a] Well, your code doesn't segfault with 1.9.1p0 anyway.
+ 332750 [kbloom@gm il] Get the latest version from experimental.

[ANN] Localmemcache-0.2.0: The beauty of memcached.  For local data.  Blazingly fast.
332547 [schween@sn f] I am happy to announce the next version of localmemcache (0.2.0), a
+ 332556 [ara.t.howard] really nice idea.  can't wait to try it out!
+ 332571 [billk@ct .c ] Very nice!!
| 332583 [schween@sn f] Thanks!
+ 332955 [m.fellinger@] This sounds great, can't wait to add it as a caching option to Ramaze.
  + 332958 [radek.bulat@] The same for me. My configuration: ubuntu 8.10 64bit, ruby 1.8.7.
  + 332970 [schween@sn f] Hmm... Can you see the namespace in /var/tmp/localmemcache/ ?
    + 332971 [schween@sn f] -S.
    | 332989 [usenet@in tu] reima@marvin:~$ uname -a
    | 333022 [schween@sn f] Ok, thanks to everyone who reported bugs!
    | + 333023 [radek.bulat@] LocalMemCache
    | + 333029 [m.fellinger@] Aye, now it works as expected, thanks a lot. Will we get an updated release as
    + 332988 [radek.bulat@] Yes

Euro currency symbol
332553 [david_v_wrig] Hmm, I seem to be having a bit of a time representing  the Euro sign in
332557 [bbxx789_05ss] dec_num = "20254".oct
332560 [bbxx789_05ss] 8 bits can be used to store codes between 0-255.
332567 [david_v_wrig] Thanks, good stuff.  I didn't know about Array#pack
332595 [kungfu-free-] ruby -e 'puts "\244"'

Rubygems Problems
332559 [btrichardson] Is anyone else having problems with Rubygems?  I'm running Ubuntu 8.10
332561 [bbxx789_05ss] Yes.  The forum is full of posts about ruby gems problems this week.   I
332586 [btrichardson] foo@bar:~$ gem env
332587 [dsisnero@gm ] the update to mojombo-grit is the problem.  Here is Aslax Hellesoy response
332597 [djberg96@gm ] onse
332613 [btricha@gm i] I am getting the exact same NoMethodError having to do with calling
332615 [drbrain@se m] If you figure out which gem is doing it, please send the gemspec from
332617 [btrichardson] Looks like it was mojombo-grit version 1.1.0.  I uninstalled
332621 [Usenet@Go gl] The only difference between the 1.1.0 and 1.1.1 Gems is this commit,

[BUG] Bus Error?
332562 [fixxie.wits@] I tried to compile a simple TK/Ruby code using  "ruby rubyscript2exe.rb

How to get list of all processes and the kill by name
332563 [ericmilford@] I am working on a scraper that blows up if an instance of Firefox is
+ 332582 [damnbigman@g] I would just use the system for it.  But if you really want to do it in Rub=
+ 332584 [djberg96@gm ] gem install sys-proctable
+ 332604 [pbooth@no oi] It's OS specific. `killall Firefox` is a good place to start.

Installing Ruby and the ext/Setup file.
332564 [aaron.vander] I just finished installing Ruby 1.9.1 on Mac OS 10.5.6 and I have a
332566 [steve@vd p. ] SSBoYWQgdGhlIGV4YWN0IHNhbWUgc29ydCBvZiBwcm9ibGVtcyBhbmQgaGFkIHRvIGNvbXBsZXRl
332568 [julien.kirch] Return Receipt

Re: Ruby 1.9.1 is released
332572 [m.mastrodona] I want to thank all ruby team for this great work.

A 64bit question?
332576 [contact@se c] I have been trying to implement the music sequencer in the mac
332732 [contact@se c] just solved the problem by declaring a struct

[ANN] Ruby 1.8.6-p368 released
332578 [shyouhei@ru ] This time we've fixed dozens of bugs, including workarounds for

Wt::Ruby 0.9.1 release
332579 [richard.j.da] * http://wiki.github.com/rdale/wtruby
332628 [saji@ap c2 .] Installed wtruby without trouble, but got the following error when running
332644 [richard.j.da] wt.so.1: undefined symbol: _ZTIN2Wt19WAbstractTableModelE - /usr/lib/ruby/s=

OpenSSL verify certificate from own CA
332580 [sardaukar.si] I need to verify certificates issued by my own CA, for which I have a

Change of behaviour for sleep(0) in 1.9
332588 [sean.ohalpin] Just thought I'd share this to save anyone else the bafflement it caused me.
+ 332602 [ibc@al ax ne] I've tested it in Ruby 1.9.1 and sleep(0) means do not sleep at all.
| 332620 [sean.ohalpin] Hmmm.  Just tested on Ubuntu 8.04 and sleep(0) works as expected in
| 332661 [shortcutter@] CYGWIN_NT-5.1 padrklemme1 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin
| 332671 [sean.ohalpin] Looks like a Mac OSX thing then. I've filed a bug report. Is there
| 332674 [adam.oddfell] $ uname -a
+ 332630 [matz@ru y- a] "Zero arguments" means "sleep", not "sleep(0)".  Disambiguation welcome.
  332632 [Rob@Ag le on] The fastri output colors the first "sleep" as a Ruby item and leaves
  332634 [matz@ru y- a] That sounds better.  Thank you.

Array read to seperate items
332589 [stuart.clark] This might be a stupid question.
+ 332593 [Rob@Ag le on] Array#transpose
+ 332594 [matt@ti bi s] Are you talking about something like this?
  332596 [matt@ti bi s] Last line cute but unnecessary, forgot about "transpose" (see msg from

Read and modify logs
332592 [mfurmaniuk@y] I'm trying to read the entries in a logfile so I can enter its contents
332714 [srijayanth@g] There's at least a couple of ways to remove duplicate lines.
332715 [srijayanth@g] Sorry, I misread your question.
332740 [mfurmaniuk@y] I wanted to avoid that as I am using this log file to maintain results

332598 [vetrivel.bks] I have dowunloaded the xml-simple-1.0.12.gem .
+ 332603 [bbxx789_05ss] $ gem list --local
+ 332616 [b.candler@po] In summary, you don't. Read the documentation/examples, or look at what
  332648 [mark@th ma z] This seems to be one area (of many) where Perl's CPAN is superior. The

convert number to english word
332599 [vetrivel.bks] How to convert number to word.
+ 332600 [james@gr yp ] James Edward Gray II
| 332601 [vetrivel.bks] I need Ruby Module  to use this...
| 332938 [loganathan_g] There is a module called linguistics in ruby to do that.
+ 332943 [transfire@gm] On Mar 31, 12:26=A0pm, Vetrivel Vetrivel <vetrivel.bk...@gmail.com>
+ 332948 [nobuhiro.ima] Integer#to_alphabetic from
+ 333085 [jazzezravi@g] try this ..
  333087 [jazzezravi@g] The above code works only upto billions.

Parsing HTML tables
332606 [nicolas.even] I'm searching for a way to write a beautidull code which parse an HTML
332610 [mark@th ma z] #---
332614 [nicolas.even] Thanks for your help.

tab characters in database.yml breaks mongrel
332607 [djangofan@gm] i dont have a bug tracking user account and so ill post this here
332608 [dblack@ru yp] s = "a: 1\nb:\t2"

Why does mathn kill this method?
332619 [s.korteling@] Really stumped here.
+ 332622 [cmdicely@gm ] irb(main):001:0> require 'mathn'
+ 332623 [martindemell] n /=3D 10 just keeps making n into a smaller and smaller rational. it
  332625 [s.korteling@] Yes, that's clear. Thanks for the help (real fast), Christopher and
  332633 [gnrvzsix@gm ] yeah really fast!!

Move over, Phusion, here comes the *real* Enterprise Edition!
332624 [Usenet@Go gl] I just learned about another new Ruby Implementation. This one is
+ 332629 [james.britt@] What defines an implementation?  70% or more of RubySpec?
| + 332637 [djberg96@gm ] Sucker.
| + 332645 [Usenet@Go gl] Sorry, that was some unfortunate wording on my part. Well, more than
|   332651 [charles.nutt] Well, according to the earliest drafts of the Ruby standard,
|   + 332657 [julian@co et] Be MORE defensive!
|   + 332718 [zznmeb@gm il] IIRC YARV also dropped continuations because they would be slow on the
|     + 332745 [charles.nutt] I think it's a matter of how much Ruby has to save to support
|     + 332752 [mneumann@nt ] Which YARV do you mean? The one integrated into Ruby 1.9? :)
|     | 332753 [rick.denatal] IIRC (sometimes hard to do at my age) continuations were gone from Ruby 1.9
|     | 332754 [mneumann@nt ] Getting older (but still young enough to remember), in 1998 I was using Ruby
|     + 332786 [matz@ru y- a] It's not for the performance, but for various problems it can cause,
|     + 334513 [Usenet@Go gl] I'm three weeks late, but I just *had* to drop my 2 cents here ...
+ 332640 [gethemant@gm] ABAP
| + 332642 [mneumann@nt ] <https://SDN.SAP.Com/irj/scn/go/portal/prtroot/docs/library/uuid/408a9a3b-03f9-2b10-
| | 332646 [djberg96@gm ] Error code: ssl_error_bad_cert_domain
| | 332655 [mark@th ma z] Well, it's not an April Fool's joke, but the whitepaper certainly had
| | 332675 [james.britt@] <snip />
| + 332649 [charles.nutt] LOL
+ 334520 [botpena@gm i] great project. i hope it continues. it will show the scalability of

[ANN] hoe 1.12.0 Released
332626 [ryand-ruby@z] hoe version 1.12.0 has been released!

[ANN] graph 1.0.0 Released
332627 [ryand-ruby@z] graph version 1.0.0 has been released!

[ANN] hoe 1.12.1 Released
332631 [ryand-ruby@z] hoe version 1.12.1 has been released!

Suggest me useful Daily Build Platforms
332641 [jykim@al ib ] I have plan to test own module based on several different modules
332647 [phlip2005@gm] Use CruiseControl.rb, and don't bother with "daily build". That's for projects

Shoes 'method_missing' error
332643 [agnanov@sw n] I'm new to the ruby community and therefore to Shoes (which is really
+ 332662 [agnanov@sw n] Me again !
+ 332663 [bbxx789_05ss] Shoes.app do
  332667 [agnanov@sw n] Thanks for giving a hand.
  332668 [why@ru y- an] Say, how did you install Shoes originally? There is a Debian package

how to do coding to check mail delivered or not
332650 [anshali@ci h] Plz tell me how this problem will solved.
+ 332652 [phlip2005@gm] At test time?
| + 332654 [anshali@ci h] thanks for reply
| | 332664 [phlip2005@gm] You can't. If your mail gets as far as POP3, actionmailer will return "success".
| | 332665 [phlip2005@gm] as far as SMTP.
| + 332656 [julian@co et] No he means how do you tell what the SMTP server has responded with,
+ 332660 [pjb@in or at] It is not possible.  There is absolutely now way in this universe to

Anything better than klass = eval("#{task_class}")
332653 [noway@fa en ] Seems a bit to verbose for me but I don't know any other solution to
332658 [gregory.t.br] => String
332666 [Rob@Ag le on] Or dealing with things like Admin::User or Net::HTTP
+ 332670 [rick.denatal] Actually, I don't think this is entirely right, since const_get will find
| + 332672 [sean.ohalpin] The const_missing handling is a nice touch. I'm pinching this :)
| + 332673 [Rob@Ag le on] ?>       def constantize(camel_cased_word)
|   332677 [rick.denatal] Because it does, if MyModule is actually defined and doesn't define another
|   332682 [Rob@Ag le on] Ah, I see now.  Thanks for the improvement, Rick!
+ 332716 [noway@fa en ] Okay, so nothing less verbose ;-) But thanks for all the answers...
  332746 [gregory.t.br] se

[ANN] hpricot 0.8
332669 [why@ru y- an] Incident to one urgent bug and many good speed/memory improvements,

Ruby Embedding
332676 [xiny_32@ya o] I downloaded the ruby 1.9.1 for windows and i'm trying to embed using
332679 [phlip2005@gm] Post a sample of your code, and the "crash" particulars. And what C++ are you using?
332683 [xiny_32@ya o] I'm using MSVC 2008 Express

ActionMailer:Base Validation
332678 [sandeepcasp@] I've used below link to send mass emails to people.I am able to send

BInary Files
332681 [gene@re it c] Im trying to learn how to create and modify(by a percentage) a binary
+ 332684 [michael.malo] My personal view, is that binary files should be avoided unless
| 332686 [gene@re it c] sadly yes I do have to use some binary files for the test im trying to
+ 332687 [vjoel@pa h. ] As noted, Array#pack is useful. If you want a DSL that fills in some
  332803 [brusch4_remo] "Joel VanderWerf" <vjoel@path.berkeley.edu> schrieb im Newsbeitrag
  332841 [vjoel@pa h. ] what would that do?
  332913 [brusch4_remo] "Joel VanderWerf" <vjoel@path.berkeley.edu> schrieb im Newsbeitrag
  333048 [vjoel@pa h. ] It would be nice for ruby to have some bit operation primitives like
  333086 [brusch4_remo] "Joel VanderWerf" <vjoel@path.berkeley.edu> schrieb im Newsbeitrag