413332-414771 subjects 413731-414284

syntax error I am getting while csv operations
413529 [lists@ru y- ] I am keep getting an error from the below code.
+ 413531 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
| 413532 [lists@ru y- ] I don't understand :(
| 413535 [mike@st k. a] ~  irb --simple-prompt
| 413536 [lists@ru y- ] Yes, Mike that worked. Thanks for your reply. I got it from Hans's
+ 413533 [lists@ru y- ] change
  413534 [lists@ru y- ] Thanks friend.. Lots of code today.. My eyes were not working at that

Local gem repo with just the latest versions
413537 [gvimrc@gm il] Rubygems totalled about 75GB last time I looked but that includes all
413549 [abinoam@gm i] Are you using RVM?
413550 [abinoam@gm i] Sorry for the last answer.
413556 [gvimrc@gm il] I use rbenv. No, `gem server` is for viewing documentation of installed
413627 [tamouse.list] While rubygems-mirror might look promising, it looks like it mirrors the

How to put everything from directory into assets as subdirectory
413540 [lists@ru y- ] By everything I mean everything. Untouched by assets pipeline.
413542 [lists@ru y- ] Sorry. I reposted quiestion in the Rails forum.

Regexp in Ruby
413545 [lists@ru y- ] Ruby Regular Expression
+ 413546 [HANSEM1@na i] This will work. There may be a cleaner way than that match in the collect.
+ 413547 [lists@ru y- ] str.scan(/(\w+)[[:punct:]]/).flatten
| 413564 [abinoam@gm i] Dear Selvag Ruby,
+ 413548 [asu9421@gm i] 1. /\w+[^\w\s]/
+ 413566 [lists@ru y- ] thanks to all replies. your all codes working well. some codes
+ 413570 [lists@ru y- ] I'll have a go at explaining, although I'm no expert on Regexp.
+ 413573 [lists@ru y- ] I understood that words.
| 413576 [mike@st k. a] One place to start is =
+ 413575 [lists@ru y- ] Look up "POSIX bracket expressions". I'm not 100% sure, but I think the

String#[] confusions
413551 [lists@ru y- ] Why I am not getting second capture from the string
+ 413552 [andrew.louck] Someone can correct me if I'm wrong about this, but since Regex match from
+ 413553 [lists@ru y- ] You're only looking for 1 match group. If you use 2 match groups, you
| 413554 [lists@ru y- ] But here http://rubular.com/r/rZgnEP3hSP I can see the matches as 1,2.
| 413555 [jgabrielygal] I'm guessing that Rubular is checking for all the matches across the
| + 413557 [lists@ru y- ] Thanks you...
| | 413558 [sepp2k@go gl] The regex /[aeiou](.)\1/ matches the substring "ell". Specifically [aeiou]
| | 413562 [lists@ru y- ] Thank you very much! I got it now fully..
| + 413625 [tamouse.list] Not exactly sure why you'd want the subgrouping with scan as it's creating
|   + 413639 [lists@ru y- ] I had some wrong perception about `String#[]`.
|   + 413640 [jgabrielygal] n.
+ 413764 [lists@ru y- ] can the below reular expression can be written in another way, to get
| 413765 [shortcutter@] You should starting by matching only once to avoid unnecessary work.
+ 413766 [lists@ru y- ] @Robert - Thanks for mentioning all these possibilities. A good learning

inheritance problem
413559 [lists@ru y- ] #--------------------------------------------------------
+ 413560 [shortcutter@] You are using a class variable here.  That is the source of your
+ 413561 [rubytalk2dav] Gotcha!  Class vars (w/ @@) don't behave in Ruby the way you're
  413565 [lists@ru y- ] Thanks !
  413568 [jgabrielygal] Essentially they are the same as object instance variables, it's just
  413571 [lists@ru y- ] self.inspect everywhere :)
  413572 [shortcutter@] But there it behaves differently: the Array will be created and filled

[ANN] color 1.5.1 Released
413567 [austin@ru yf] color version 1.5.1 has been released!

Implications of --enable-shared config
413569 [lists@ru y- ] I'm building a lot of ruby servers - I just want to understand if there
413647 [normalperson] It's a little slower (we're having a discussion in ruby-core related
413723 [lists@ru y- ] Thanks for the replies Eric!
413762 [normalperson] Startup + execution are slower.  Not sure about compilation, but I

Watir/Ruby : How to click on a text in dropdown in Ruby/Watir
413574 [lists@ru y- ] I am using the WATIR-Ruby for my Web Application. I am currently facing
+ 413577 [lists@ru y- ] b.li(:text => 'Profile_Child').flash
+ 413626 [lists@ru y- ] You can try using waits and :xpath locator. You might similar examples

[File.readable?] How to make it work?
413578 [lists@ru y- ] I'm trying to make my own program that can help me manage my
+ 413579 [shortcutter@] What error are you seeing?  Is it this one?
| 413580 [abinoam@gm i] Dear Cynic Limbu,
| 413585 [shortcutter@] Generally Pathname comes handy in such situations because it supports
+ 413600 [lists@ru y- ] why we can't open a dir , and return a file list   .
  413602 [shortcutter@] Because a directory does not consist of lines or arbitrary content.  A

Need to do left padding a string using String#%
413581 [lists@ru y- ] I have some dynamic strings of size <= 10, but never > 10. Now when I
+ 413582 [mike@st k. a] Have you looked at String#rjust?
| 413583 [lists@ru y- ] @Mike - Yes, I know this. But I have been asked in an interview to do this using `String#%`. But I couldn't answer it.
| + 413584 [cookrn@gm il] See `Kernel::sprintf` -- http://rubydoc.info/stdlib/core/Kernel:sprintf
| + 413622 [shortcutter@] I do not think there is a robust way because there is no (s)printf
|   413623 [botpena@gm i] On 1/30/14, Robert Klemme > I do not think there is a robust way
+ 413586 [lists@ru y- ] There's likely to be more than one way to do it, but this is the first
| 413587 [tp@ti ed ix ] Although I suppose then a format is not required at all as something like
+ 413588 [lists@ru y- ] Yes, by doing it that way I may as well just stick Strings together; but
| 413589 [tp@ti ed ix ] Understood. :) It was merely a musing of mine. :)
+ 413624 [lists@ru y- ] I want to see how the interviewer does it, maybe they've phrased the
| 413633 [tamouse.list] Personally, in an interview, I ask the candidate how they would go about
| + 413635 [shortcutter@] ... and come up with sensible reasoning. Completely agree.
| + 413638 [lists@ru y- ] For my case, I didn't think of about String#%, rather String#rjust. But
|   413676 [tamouse.list] If I were interviewing you, I'd turn the question around and ask you
+ 413782 [lists@ru y- ] And if I would be the one interviewed, I'd tell the interviewer

Strange behavior when class_eval'ing a Class object
413592 [mlists@fu lo] class Test;end
413598 [matthew@ke w] Because Test.class == Class and Class.class == Class
413599 [mlists@fu lo] Yep! I just figured out that a few minutes before you sent the message! Eureka :)

Ruby code to MS Exel 2013
413593 [lists@ru y- ] I've no idea, so I do ask from my Ruby community.
+ 413596 [tamouse.list] Simplest might be writing out the Array as a comma-separated value file
+ 413617 [lists@ru y- ] "rubyexcel" to interact with Excel 2010: reading 2D arrays or excel

413594 [sirbunicolae] What can you tell me about Ruby that will completely change my vision about
+ 413595 [tamouse.list] not a single thing. i have no idea what your vision is currently, nor any
+ 413601 [tony.arcieri] You can use Ruby to lure Catherine Zeta Jones into your unicorn petting
| 413643 [josh.cheek@g] <3
| 413651 [ruby.student] I heard ruby programmers get much beautiful dates. It does not work for me
+ 413655 [stu@ru yp og] It was built with secret alien techno freax deep inside a wormhole by a
| 413690 [sirbunicolae] So basically nothing.
| 413691 [shortcutter@] We do not know you. We do especially not know your "vision of Ruby".
| 413692 [sirbunicolae] Despite the fact that everything is an object in Ruby, despite the fact
| 413693 [sirbunicolae] But NOO, let's make fun of the newbies. Thanks all for your constructive
| 413696 [hassan.schro] Nah, I just checked the Fun Reservoir and it's fully topped off.
| 413698 [sirbunicolae] You clearly don't C# Hassan.
| + 413699 [mickylmartin] If are coming from other programming languages, there are few things in
| | 413700 [sirbunicolae] Awsome, thanks Micky!
| | 413701 [mickylmartin] No worries. If you need to know anything else, feel free to ask!
| + 413702 [ruby.student] Sirbu,
|   413703 [sirbunicolae] ke
|   + 413704 [ruby.student] The kid is also rude! LOL.
|   + 413716 [stu@ru yp og] I can't say for sure though it may be optional to consider how one may deal
|     413717 [echristopher] I think we should just stop now.
+ 413694 [lists@ru y- ] Troll alert! Abandon thread!
+ 413746 [lists@ru y- ] I don't think you got your answer because if you would

Re: How to make it work?
413597 [lists@ru y- ] I'd like to thank all of you for answering my question, it looks like

[ANN] unicorn 4.8.1 - Rack HTTP server for fast clients and Unix
413603 [normalperson] Unicorn is an HTTP server for Rack applications designed to only serve

413604 [lists@ru y- ] class Raj
+ 413606 [lists@ru y- ] You use excel.ole_methods
+ 413607 [lists@ru y- ] thank you, I was using puts
+ 413608 [lists@ru y- ] Where can I find the documentation of those functions? How would I know
+ 413609 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
+ 413610 [lists@ru y- ] Thank you.

Kitchen Sale Birkenhead
413605 [lists@ru y- ] Kitchen Sale Birkenhead www.exdisplaykitchens1.co.uk.  Cheap kitchen

Using 'gets' sends uknown data
413611 [lists@ru y- ] def check_input
+ 413616 [abinoam@gm i] Try STDIN.gets.chomp and tell us if the input is the same.
+ 413618 [lists@ru y- ] Fixed it.
| 413619 [jgabrielygal] In any case, if you want to support passing arguments to the scripts
+ 413620 [lists@ru y- ] ok, thanks, i'll take a look at that.

confusion with Object#respond_to?
413612 [lists@ru y- ] irb(main):001:0> class Animal
+ 413613 [lists@ru y- ] Object is a special case.
+ 413614 [sergey.avsey] 1.9.3p484 (main):001:0> Object.is_a?(Class)
| 413621 [lists@ru y- ] This part in Ruby is very confusing to me.. :(
+ 413615 [stefano.croc] Because everything in ruby is an instance of Object, including instances of class Class

Loops, $end, kEND, kELSE
413628 [lists@ru y- ] Program Second Edition book in which there is an instruction to make a
+ 413630 [justincollin] This error messages are cryptic almost always indicate you have
+ 413631 [rob.biedenha] On 2014-Jan-29, at 21:25 , Coralie Harmache <lists@ruby-forum.com> =
+ 413632 [lists@ru y- ] Also, here's a hint: the keyword 'elsif' exists.

to_f and the format of E notation
413629 [chalupecky@j] 7.0 .7E1 0.7+1 .70+1 7.E+0 70.-1
413636 [ryand-ruby@z] On Jan 29, 2014, at 18:31, Vladimir, Chalupecky =
413637 [chalupecky@j] I see. Thanks for the help.

Dir.glob ['*.#{variable}'] Not working.
413644 [lists@ru y- ] I've got a problem with displaying files of a same extension
+ 413645 [atma@co va e] Dir.glob ["*.#{ext}"] instead of Dir.glob ['*.#{ext}']
+ 413781 [lists@ru y- ] You can also use Dir[] instead of Dir.glob()
+ 413791 [shortcutter@] There are two issues

Re: Dir.glob Not working.
413646 [lists@ru y- ] Oh my god, thank you very much.

Need to undersatnd the other options with String#encode
413649 [lists@ru y- ] I found a code online when I was searching a solution to encoding
413652 [tamouse.list] 2.1.x: http://www.ruby-doc.org/core-2.1.0/String.html#method-i-encode

invalid byte sequence in UTF-8 (ArgumentError) - Ruby - how to hande invaid bytes on runtime
413650 [lists@ru y- ] Cote  0.56  0.6  0.71  0.93  0.08  0.21  0.98  0.96  Cte d'Ivoire
413656 [abinoam@gm i] Dear Arup Rakshit,
413657 [lists@ru y- ] Very good suggestion indeed.
413661 [abinoam@gm i] Dear Arup,
413662 [lists@ru y- ] One line from the file gave me so much trouble, once. I fixed it as
413672 [abinoam@gm i] Can you give me the line?

Cannot sort a file in ruby but can in bash
413659 [zen146410@ze] 7|22|Come let us praise the Lord
413660 [abinoam@gm i] Dear Barrie Stott,
413664 [zen146410@ze] the third column, where columns are separated by '|'. At the terminal I =
413673 [abinoam@gm i] You're welcome!

Offline database in Ruby?
413667 [lists@ru y- ] Now I'm not talking about those type of databases that keeps datas of a
+ 413668 [mailme@hs s.] I believe an SQLite DB would serve your purpose. Its file based at the same
+ 413669 [shortcutter@] Basically any database can be used without a web application. At least
  413671 [joelvanderwe] - FSDB, https://github.com/vjoel/fsdb

[ANN] Rainbows! 4.6.1 - Rack HTTP server for the sleepy
413674 [normalperson] Rainbows! is an HTTP server for sleepy Rack applications.  It is based on

[ANN] ruby-oci8 2.1.7
413677 [kubo@ji ba .] Ruby-oci8 2.1.7 is released. This is the Oracle module using OCI8 API.

[ANN] RubyDNS 0.7.0 - Using Fiber for improved DSL.
413679 [space.ship.t] I wouldn't normally share an incremental release, but I thought that the

regex ignore whitespace in target string
413680 [lists@ru y- ] Does anyone know how to ignore whitespace in the target string (Not in
+ 413681 [lists@ru y- ] Just remove all the whitespace before you match.
+ 413682 [mike@st k. a] On Feb 2, 2014, at 1:34 PM, Dave Castellano <lists@ruby-forum.com> =
| 413683 [mike@st k. a] in
+ 413684 [shortcutter@] You want "\/" rather than "|" between "male" and "female" to match the
+ 413685 [lists@ru y- ] Thanks!

[Gem] Izzy - Condense long conditionals
413686 [keystonelemu] Izzy lets you condense long conditionals into more terse code.

GUI-access to existing YAML configuration file
413689 [lists@ru y- ] This is more a call for advice than a support-question, as my program

Using CDATA for Builder XmlMarkup
413695 [lists@ru y- ] I have used Builder XMLMarkup in a ruby script. For one of the xml tags
413697 [jgabrielygal] Have you tried with blocks?
413728 [lists@ru y- ] Hey Jesus,

advice for me
413705 [lists@ru y- ] to write in Ruby, on a gift card for my son-in-law, "I am so glad I know
+ 413706 [marco-oweber] puts "I am so glad I know you"
+ 413707 [lists@ru y- ] Boy, I'd have never figures out that could have become english!! thank
+ 413708 [l.urraca@gm ] Hey Sandy,
+ 413709 [lists@ru y- ] thank you for your help
| 413714 [atma@co va e] I have answered a similar request on SO some time ago, so I will just post a link with multiple answers from which you can adjust and choose what fits you better: http://stackoverflow.com/questions/21081351/need-help-writing-birthday-messages-in-ruby
+ 413715 [lists@ru y- ] Reading that site gives me a whole new appreciation of all that you must

Google Summer of Code for Ruby
413710 [bascule@gm i] I know in the past that Ruby (Central?) has applied as a Google Summer of
413712 [johnmoonyy@g] I would be interested in such mentorship, but it would depend on the time.
413721 [bascule@gm i] The deadline for a mentoring organization to apply is February 14 at 19:00
413793 [carlos.agari] Well, SciRuby is going to apply as a mentoring organization again this

how to capitalize nonascii characters ?
413711 [lists@ru y- ] Why #capitaize not working here as documented -
413719 [abinoam@gm i] Dear Arup,
+ 413741 [tamouse.list] Unicode does it. I'm having a problem getting it deployed at the
+ 413742 [matz@ne la .] Yes, use unicode gem for now.  String operations on non ASCII

[ANN] kgio 2.9.0 - kinder, gentler I/O for Ruby + Unix
413718 [normalperson] kgio provides non-blocking I/O methods for Ruby without raising

Basic Gems are Missing?
413720 [lists@ru y- ] new to mac interface and have been trying to get back into ruby from a
+ 413722 [atma@co va e] Can you copy and paste the exact output of the following commands in your terminal?
+ 413744 [lists@ru y- ] require() is not a gem command - it is a ruby method.
+ 413745 [lists@ru y- ] You should also clean up your system and write down exactly what you are
| 413771 [lists@ru y- ] How would you recommend that I "clean my system?"
+ 413768 [lists@ru y- ] Do you mean that you wish for me to write : print 'Hello World'? or that
+ 413769 [lists@ru y- ] Darwin localhost 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7
| 413778 [abinoam@gm i] Dear Raf Ri,
| 413779 [abinoam@gm i] Dear Raf Ri,
| 413866 [lists@ru y- ] Oh nice, very true. I figured that could be an issue but I didn't think
| 413870 [abinoam@gm i] Just curious about... was it an Aptana issue?
+ 413770 [lists@ru y- ] Also @Panagiotis Atmatzidis, I cannot attach a .rb file to send so I'll
+ 413777 [lists@ru y- ] Just realized that was a terrible example code. I'll try to find a

gsub not matching?
413724 [lists@ru y- ] Can anyone see an obvious reason why
+ 413725 [peterhickman] question = "A {30-45} year old {asthmatic, diabetic, hypertensive} {male,
+ 413726 [shortcutter@] question = "A {30-45} year old {asthmatic, diabetic, hypertensive}
  413727 [lists@ru y- ] Thank you!  You have given me lots to look up and learn about from your
  413734 [lists@ru y- ] Are they variables inherent to regex?
  413738 [abinoam@gm i] Dear Dave,
  413739 [lists@ru y- ] Thank you - thats a huge help!
  413750 [shortcutter@] There is one important thing you should know: these global variables