399454-410909 subjects 399927-400476

how to attach more files as attachment file in email using gmail_sender
399702 [lists@ru y- ] Dear ALL

399704 [hsuligoy@gm ] 2012/9/24 Eric Christopherson <echristopherson@gmail.com>

[ANN] JRuby 1.7.0.RC1 Released
399711 [tom.enebo@gm] JRuby 1.7.0.RC1 Released, Tuesday, September 25 2012

could initialize return an existing object instead of a new instance?
399714 [lists@ru y- ] Is it possible for initialize to return an existing object instead of a
+ 399718 [lists@ru y- ] class Dog
| 399720 [lists@ru y- ] Can override the new method on the class to get the behavior I was
+ 399723 [matma.rex@gm] Is that an academic discussion or an attempt for practical
| 399727 [lists@ru y- ] I just posted those links there.
| 399793 [matma.rex@gm] Oh wow. This is off-topic, but I've just gotta say that apparently
| 399794 [lists@ru y- ] Sorry, but don't count me in group that is coding up Rails. :) Not saying that you aren't right, but I think there are a number of people that post to the core list that aren't on the core team. From what I read the purpose of the core list is for people to post concerns, bugs, new features, news, etc. about Rails or "how does X work in Rails?" and the "how do I do X in Rails" goes to the Rails user list, vs. the typical "*-dev" list. Ok, I'm defending them now- feel free to go off on them. :) Apparently are some smart guys there though, so don't let them get confused with the others. Thanks a ton for your help with helping me understand this, though. Ruby is cooler every day, and I need all the help I can get!
| 399806 [matma.rex@gm] Oh no, of course I'm not :)
+ 399802 [shortcutter@] First of all, it's totally meaningless what #initialize returns.

Encoding issues...
399726 [rubyhacker@g] I am playing more with encodings and having some problems.
399728 [list.push@gm] What is on line 1?
399729 [rubyhacker@g] Ahh... I bet it has to be on the first nonblank line maybe?
399732 [list.push@gm] I think the magic comment needs to be on the first line.

[ANN] FuzzBert, a minimal random testing framework
399730 [martin.bossl] FuzzBert 1.0.1 has been released!

[ANN] kcar 0.3.1 - bytestream to Rack response converter
399733 [normalperson] kcar features an HTTP parser that will convert a bytestream into a

deserialize from yaml into array of objects
399734 [lists@ru y- ] - !ruby/object:Employee
399735 [lists@ru y- ] require 'yaml'

How To Rectify This Error?
399736 [lists@ru y- ] I am attaching my '.rb' file. Please check it. I am getting an error-
+ 399738 [lists@ru y- ] @file.each do |line|
+ 399742 [lists@ru y- ] The error message is actually telling you what's wrong: The parser ran
  + 399753 [lists@ru y- ] Hey Thanks for replying. I am unable to rectify it. Where should I place
  + 399765 [echristopher] True, but the error message is hard to decipher. When it says "$end",
    399767 [hmaddocks@me] WAT! "keyword_end" is hard to understand? This is the ruby equivalent of missing a closing brace or a semi colon. A Ruby coder is going to see this error message all the time.
    399808 [echristopher] Actually, I'd say it's the "$end" part that's hard to understand; what

Backspace Issue with Highline Gem
399744 [lists@ru y- ] I am using highline gem for getting input from user. It works fine in

[SOLVED] Backspace Issue with Highline Gem
399746 [lists@ru y- ] The code should used instead of the above one is

Discussion - SMART paralell processing
399747 [lists@ru y- ] ###
399749 [peterhickman] Something like this has already been discussed. The topic was "working

[ANN] hoe-debugging 1.1.0 Released
399748 [mike.dalessi] hoe-debugging version 1.1.0 has been released!

Subclassing Date
399750 [lists@ru y- ] require 'date'
+ 399751 [jgabrielygal] 1.9.2p290 :001 > require 'date'
| 399752 [lists@ru y- ] Microsoft Windows XP [Versin 5.1.2600]
+ 399758 [lists@ru y- ] $ ruby --version
+ 399773 [lists@ru y- ] Oh ok! now I'll have to seek another way, thanks for deal.
| + 399787 [lists@ru y- ] Why are you subclassing Date in the first place?
| | 399791 [lists@ru y- ] Well, the class Dia(It's day in spanish) represent a day. Each instance
| | 399803 [shortcutter@] Then better use composition as has been suggested.  Inheriting core
| + 399790 [lists@ru y- ] You can use composition instead of subclassing, as in
+ 399810 [lists@ru y- ] Thank you Robert :)

Need Help With This Ruby Program!!
399754 [lists@ru y- ] I am attaching my '.rb' file. Please check it. I am getting an error-
399755 [gditrick@fu ] ...
399762 [peterhickman] The problem is the clean_number method and the print_numbers method
399780 [lists@ru y- ] Thank You Peter, I was able to rectify it and complete that part of
399788 [peterhickman] This means that the gem sunlight is not installed or at least not

Array Creation
399756 [lists@ru y- ] Start = Time.now
+ 399757 [rubytalk2dav] Precisely BECAUSE it's so large!  You may well have been running out
| 399759 [lists@ru y- ] OK, but when i declare same array with my extension using a simple
| 399760 [tony.arcieri] You're probably doing an inaccurate comparison. You're asking Ruby to
| 399774 [rubytalk2dav] It's worse than that.  ("He's dead, Jim!")  In Ruby it's not just a
| + 399783 [whitequark@w] WBR, Peter Zotov.
| + 399804 [shortcutter@] after the malloc you get empty memory pages which do not exist.  The
|   399805 [t.strepek@tu] How can I get out of this mail list?  I'm about to force all mail list
|   399807 [matma.rex@gm] No you didn't. You need to mail ruby-talk-ctl@ruby-lang.org with
|   399809 [drbrain@se m] Then you need to confirm the unsubscribe request ruby-talk-ctl@ruby-lang.org will send you.
+ 399778 [ryand-ruby@z] On Sep 26, 2012, at 12:21 , Tridib Bandopadhyay <lists@ruby-forum.com> =
+ 399789 [wbrisett@at ] After reading all the responses to this, I was curious to see how it =

Adding method on module class to yield and allow setting of attributes?
399761 [lists@ru y- ] module MyModule
+ 399763 [calvin.bornh] first off, you're not that wrong with your idea. There are two things
| 399772 [lists@ru y- ] Calvin,
+ 399764 [jgabrielygal] 1.9.2p290 :011 > module MyModule
+ 399766 [lists@ru y- ] That just creates a block local variable which is destroyed when the
  399769 [lists@ru y- ] Is there a way to make things in the block execute as if they were being
  399770 [jgabrielygal] I don't know if my previous message got through. If you can handle
  399771 [lists@ru y- ] Thank you, Jesus! That's exactly what I was looking for!

[ANN] ruby_parser 3.0.0.a8 Released
399768 [ryand-ruby@z] ruby_parser version 3.0.0.a8 has been released!

ANN: Sequel 3.40.0 Released
399775 [lists@ru y- ] Sequel is a lightweight database access toolkit for Ruby.

Process.kill 'exit' doesn't work?
399776 [rogerdpack2@] I see from the following that Process.kill 'hup' works, but
399777 [rogerdpack2@] So moving discussion there...

Unable to Load Sunlight How to over come the Load Error?
399779 [lists@ru y- ] in my through my terminal, but when I am running the dependencies file I
399792 [lists@ru y- ] Have you tried uninstalling and reinstalling the gem?

[ANN] Tork 18.2.3
399781 [sunaku@gm il] Tork - test with fork

Need Help With 'Form Letters' In This Event Manager Project
399782 [lists@ru y- ] Letters, in the following link...
399784 [sto.mar@we .] 1. Iteration 6 is has nothing to do with form letters.
399785 [lists@ru y- ] Hey Thanks for replying. If I am trying to run the
399786 [sto.mar@we .] You did not create a directory `output', like explained under

subtract values of a array
399795 [rwobben@ho m] ...
+ 399796 [stefano.croc] Do you mean you want a method which subtracts some numbers from a given one
+ 399797 [jgabrielygal] inject(0) will pass 0 as the first accumulator. If you don't pass the
+ 399798 [rubytalk2dav] You're overthinking it.  Look at a simpler usage of inject.
  399799 [rwobben@ho m] ...
  399800 [rubytalk2dav] You're welcome.  One big thing to get used to in Ruby is that it tries

[ANN] md2man 1.3.0
399801 [sunaku@gm il] md2man - markdown to manpage

Good book for getting started with Ruby? [I code Python!]
399811 [alec.taylor6] I've learned programming in  C++, Python and PHP at University. (also
399812 [keystonelemu] The Elegant Rubyist
+ 399814 [carlos.agari] If you already know some programming languages, just try to build simple
+ 399839 [code@ap th o] I haven't read The Elegant Rubyist, and have nothing substantive to say
  399843 [keystonelemu] Cripes, I meant the Well Grounded Rubyist. My mistake.=20
  399909 [code@ap th o] Metaprogramming Ruby is an awesome book, as is Ruby Best Practices.  I

ruby bindings for RRDtool
399813 [lists@ru y- ] I installed RRDTool on mac & am trying to use RRD from Ruby but it is
399830 [jam@ja an be] ...

calcaulation with unknown numbers of numbers and options fail
399815 [rwobben@ho m] ...
399816 [jgabrielygal] The options hash is the first parameter to your function, so pass it
399817 [rwobben@ho m] ...
399819 [jgabrielygal] Then you have to modify how you declare the function.
399820 [rwobben@ho m] ...
399821 [lists@ru y- ] Then why do you do it? Just set the parameter list according to the
399822 [rwobben@ho m] ...
399823 [lists@ru y- ] First of all, I most correct the code: It should be
399824 [rwobben@ho m] ...
399825 [lists@ru y- ] Yes. But the subtraction was just a guess. I don't know the actual
399826 [rwobben@ho m] ...

Unable to install RMagick on Windows 8 x64
399818 [alec.taylor6] Adding the DevKit to PATH...

Suma de elementos de un array, problema
399827 [lists@ru y- ] Hola, estoy empezando con Ruby y estoy haciendo unos tutoriales que
+ 399828 [lists@ru y- ] This isn't the spanish Ruby group, so use English, please.
+ 399829 [jgabrielygal] Hola Pablo. Lo primero es que esta lista es en ingles, no s=E9 si en

Re: Good book for getting started with Ruby?
399832 [lists@ru y- ] Good question, there's many books about Ruby, now I'm apart from the
+ 399838 [lists@ru y- ] "Beginning Ruby" by Peter Cooper.  It has a section on Rails, but it is
+ 399841 [code@ap th o] I have to disagree.  The Book of Ruby is a bucket of bad habits presented
  399842 [rbakerjax@gm] I really liked The Well Grounded Rubyist.
  399845 [tomcloydmsma] ...
  399884 [lists@ru y- ] I was also searching for a good starter book and I've recently bought

`waitfor': timed out while waiting for more data error on ruby telnet connection
399833 [lists@ru y- ] i tried with below commands to telnet connection to the device

I need to know any way to read the values from a webpage table
399834 [lists@ru y- ] I need your help to find and select the value say "Contact: Email
+ 399837 [jgabrielygal] To scrape a page a good tool is Nokogiri (it's a gem). You can use
| 399885 [mike.dalessi] ...
+ 399882 [lists@ru y- ] which uses nokogiri

Which Ruby Implementation?
399840 [lists@ru y- ] I know that there are other "unofficial" Ruby implementations, like
399853 [headius@he d] JRuby has the advantages and disadvantages of the JVM.

ibonacci sequence problem
399844 [rwobben@ho m] ...
+ 399848 [lists@ru y- ] I got 4_613_732 using
+ 399852 [lists@ru y- ] The problem is that you (unintentionally) start the sum with 1 instead
  399854 [rwobben@ho m] ...
  399856 [lists@ru y- ] Yes, absolutely! And I think my critique was a bit unjust: You've found
  399857 [rwobben@ho m] ...
  399858 [lists@ru y- ] Is this really the task? Because the only even prime number is 2
  399859 [rwobben@ho m] ...

Getting different results using Ruby IRB and files on method merge/code block
399846 [lists@ru y- ] When I run these two Ruby scripts I got two different answers. Also, if
399849 [sto.mar@we .] first example behaves like     puts(h1.merge(h2))  do ... end
399850 [lists@ru y- ] Thanks. it makes sense.

Setting up cucumber test framework
399847 [lists@ru y- ] I am trying to setup a cucumber test framework which tests an
399880 [josh.cheek@g] Typically lib sits at the top level, and not inside of features.

[ANN] minitest 4.0.0 Released
399851 [ryand-ruby@z] minitest version 4.0.0 has been released!

general newbie qustion
399861 [lists@ru y- ] Been working on Ruby for a few weeks now and am well on my way.  I've
+ 399862 [lists@ru y- ] "print x" will print just the letter x.
| + 399863 [lists@ru y- ] Ah that makes sense.  Much appreciate the help.  Unfortunately, the docs
| | 399865 [quintus@qu n] It=E2=80=99s not correct.=20
| + 399864 [doug@ds if r] The above is incorrect.
+ 399867 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
+ 399868 [lists@ru y- ] You really don't see print() too much in ruby.  Instead, you more often
+ 399895 [lists@ru y- ] Douglas Seifert On Sat, Sep 29, 2012 at 1:41 PM
  399942 [doug@ds if r] "print x" (without the quotes)

Qt and unix signals trapping
399866 [lists@ru y- ] keyboard shortcut to some function. Default qt does not support this.

prime numbers problem
399870 [rwobben@ho m] ...
+ 399871 [fxn@ha hr f.] Because the loop first print, and checks later.
+ 399872 [stefano.croc] Well, you're telling ruby to break the loop after having printed out the
  399874 [rwobben@ho m] ...

Watir 4.0 Released
399873 [lists@ru y- ] I'm happy to announce that Watir 4.0 has been released.

[ANN]: Letters 0.1.0 - A tiny debugging library
399875 [david@wi .i ] Hey guys,
+ 399876 [david@wi .i ] The mailing list software cut off the subject, sorry -- it's supposed to be marked [ANN].
| 399877 [whitequark@w] It did not. Your original message is marked as intended.
+ 399898 [tomcloydmsma] Thank you David. This looks interesting and useful. I'll be trying it
+ 399989 [markus@fi ch] I gave it a shot and found it immediately useful, thanks!
+ 399990 [blambeau@gm ] Pure awesomeness. Thanks for such a nice lib.

[ANN] UnicodeUtils 1.4.0 - case conversion, normalization and more
399878 [perfectly.no] ====================

Re: : Letters 0.1.0 - A tiny debugging library
399881 [lists@ru y- ] ...

Windows XP - Path encoding problem prevents script execution
399883 [lists@ru y- ] I've installed ruby 1.9.3 on a Windows XP box (french) for work related
+ 399886 [lists@ru y- ] Looks like your cmd.exe defaults to codepage 850 and ruby doesn't like
| 399887 [lists@ru y- ] Thanks. Changing the command prompts code page did indeed allow me to
| 399893 [lists@ru y- ] Perhaps a font issue. Verify that command prompt is using a unicode
| 399903 [lists@ru y- ] Active code page: 1252
| 399936 [lists@ru y- ] Thanks Jon and Damin.
+ 399891 [lists@ru y- ] Just for be sure, did you tried stablish the default encoding to utf-8,

DRB not connecting from two diffrent computers
399888 [lists@ru y- ] ruby client.rb druby://myMachine:54185
399889 [jgabrielygal] Probably that other computer cannot resolve "myMachine". Try using the IP.
399892 [lists@ru y- ] Thank you very much!!! thats the exact answer!!

cannot reverse string using drb :(
399894 [lists@ru y- ] Just playing with DRB
399896 [jgabrielygal] If you check the DRB docs here
+ 399901 [lists@ru y- ] where is it written, sorry to be stupid, but may be am asking these questions as I am not comfortable or cannot read doc's any help please..?
| 399904 [jgabrielygal] What I posted above is an example of the client code that goes with your se=
+ 399905 [lists@ru y- ] What is exactly map? is it enumerator? then what was the problem with my
  399907 [jgabrielygal] I already explained it. I think you need to read the answers a bit
  399912 [lists@ru y- ] What does map do?
  399943 [jgabrielygal] Because it is a method called on the remote object.

\r\n for EOL in windows?
399897 [lists@ru y- ] I believe "\r\n" is a normal newline for windows "type" files.
+ 399899 [lists@ru y- ] Yes, but in a ruby program it's just "\n".  ruby will take care of
+ 399900 [fxn@ha hr f.] Only in disk. When you work in text mode the I/O layer transforms from nativ=
+ 399902 [lists@ru y- ] Ok thanks for the responses.  I've filed a jruby bug since it appears
| 399906 [fxn@ha hr f.] JRuby may have some gotcha because these semantics work on many languages (C=
+ 399908 [lists@ru y- ] jdk6, but not jdk7)

[ANN] wordnet 1.0.0 Released
399910 [ged@Fa ri MU] wordnet version 1.0.0 has been released!

Strange :-o who changes path?
399911 [lists@ru y- ] path is linux uses '/'
399913 [matma.rex@gm] Because magic. Ruby supports it and it works. I think most Windows

Include a class from other file in other folder
399915 [lists@ru y- ] Suppose my script is in /home/mycode/here/
399916 [lists@ru y- ] you need "require_relative" for this (in Ruby 1.9). "require" is for
399925 [lists@ru y- ] I am using ruby 1.8.7

mysql result is showing empty
399919 [lists@ru y- ] Bellow script.,
+ 399920 [sduncan@we a] Does this work?
| 399921 [lists@ru y- ] its works, So i was missing puts
+ 399930 [lists@ru y- ] if i want to add an external css file with this script

sparse xml string
399922 [lists@ru y- ] suppose input is str="<a>1</a><a>22</a><a>3</a>"
+ 399923 [sduncan@we a] 1.9.3p125 :002 > str.scan /<a>\d+<\/a>/
| 399924 [lists@ru y- ] What if: str="<a>kl1</a><a>22ik</a><a>3o</a>" ?
| 399926 [sduncan@we a] 1.9.3p125 :002 > str.scan /<a>[[:alnum:]]+<\/a>/
| 399929 [lists@ru y- ] I have gone through it previously but could not figure it out, is '.'
| + 399932 [sduncan@we a] There are at least three articles on the Internet about regular
| + 399984 [ryand-ruby@z] ...
| + 400003 [lists@ru y- ] Yes, and .* means zero or more times of any character, so you might
+ 399982 [shortcutter@] I'd use a proper XML or HTML processing tool for that.  Then you can