410567-411436 subjects 410985-411430

Rexml trouble parsing
410766 [lists@ru y- ] No matter what I do, I can't seem to get valid XML to load into REXML
+ 410767 [abinoam@gm i] Quick answer...
+ 410768 [lists@ru y- ] Totally awesome, all working now.

To extract a particular string
410772 [lists@ru y- ] a="hi how [are] you"
+ 410773 [jgabrielygal] What have you tried?
+ 410774 [mike@st k. a] [1] pry(main)> a="hi how [are] you"
+ 410775 [lists@ru y- ] it's working. Thank you very much.
| 410777 [mike@st k. a] You should take Jesus=92s advice and use a tool like rubular or regexpal =
+ 410776 [lists@ru y- ] Thank you.
+ 410778 [lists@ru y- ] I used your regular expression,it's working, Now I need to avoid the
+ 410779 [lists@ru y- ] I am sorry I haven't seen the comment of yours.yes i will check that out.
| 410782 [mike@st k. a] You can read the http://ruby-doc.org/core-2.0.0/Regexp.html, in the =
+ 410781 [lists@ru y- ] I tried with the tool which you mentioned. Thank you for that, But unfortunately, i couldn't find extract the first instance of [] while this [] appears second time like
| 410783 [lists@ru y- ] s="ssss[fff]gggg[ssss]ddddddd"
| 410794 [tamouse.list] or
| 410795 [shortcutter@] I think OP said he needs only the first match.  In that case he can do
+ 410793 [lists@ru y- ] Excellent, This is what I needed.
+ 410796 [lists@ru y- ] Thank you for your code,it's working fine too.
| 410797 [shortcutter@] I know.  But without the 1 you'll also get the brackets.
+ 410799 [lists@ru y- ] Ohhhhhhhhhhhhhhhhhh, OK, I haven't noticed that. Thank you.
+ 410811 [lists@ru y- ] Can you explain me why this 1 removes the Bracket? I refered the
| 410817 [jgabrielygal] From the docs at: http://www.ruby-doc.org/core-2.0.0/String.html#method-i-5B-5D
+ 410826 [lists@ru y- ] Yes I understood. Thank you.

Why have class hierarchies AND module inclusion? (was: Re: Minimal example to change an instance variable on a class on inclusion)
410780 [shortcutter@] There are indeed some overlaps in functionality but I believe classes
410820 [caduceass@gm] Robert explains it best. I'll only throw in a few pence...

XML parsing, ISO8859-1 & UTF-8
410784 [lists@ru y- ] <?xml version="1.0" encoding="utf-8"?>
410798 [shortcutter@] Since you're embedding XML in XML you need to parse twice.  Btw. it

Oracle error
410787 [lists@ru y- ] `require': OCI.DLL: 193(%1 is not a valid Win32 application.  )
+ 410788 [lists@ru y- ] `initialize': wrong number of arguments (2 for 0..1) (ArgumentError)
| 410806 [kubo@ji ba .] If you are using Oracle instant client, copy *all* dll files in the package
+ 410789 [lists@ru y- ] and FYI, the credentials provided in the config.yaml works (has been

HTTP library for Ruby with HTTPS, SSL Client Certificate and Keep-Alive support?
410791 [lists@ru y- ] I'm trying to write an HTTPS client in Ruby. It will connect to the

Devise - to change the default column names used in devise
410792 [lists@ru y- ] I am using devise for existing application. Do any possibilities

IMAP retrieve messages marked for deletion
410800 [lists@ru y- ] I need to retrieve messages marked for deletion but non expunged yet,

Proxy Server
410801 [lists@ru y- ] I understand that all a proxy does is redirect net traffic, but I dont
+ 410802 [peterhickman] Why write one when you could just install one and configure it?
+ 410803 [jeremy@bo p.] First of all, there is no need to write your own proxy software for
+ 410813 [eliezer@ng e] I will be more then happy to see this kind proxy pseudo code!
  410816 [wildemann.pe] One can be used for bypassing websecurity if your server that is running the=
  410835 [eliezer@ng e] Hey,

Extracting Gem Through Ruby Code
410804 [lists@ru y- ] When I attempt to install rails (or any gem)i get ERROR could not find a

Error making ruby 1.9.3- host is required. And no base options
410805 [lists@ru y- ] I am installing ruby 1.9.3 on a Ubuntu machine.
+ 410807 [zmsquf99@gm ] Why don't you use RVM (Ruby Version Manager) instead of compiling it by
+ 410821 [sto.mar@we .] Why don't you use the Ruby packaged by Ubuntu as base?

Is Python Regex group symbol ( ?: ) work in Ruby?
410808 [lists@ru y- ] I'm starting to learn Ruby and wondering if Python's Regex group (?:)
410809 [justincollin] ...
410819 [shortcutter@] That is not particular to Python.  The proper term would be "non

Re: Does Python Regex group symbol ( ?: ) work in Ruby?
410810 [lists@ru y- ] Thanks Justin! I found what I needed.
410827 [lists@ru y- ] Posted via http://www.ruby-forum.com/.

ruby gem Fbp-0.1.0 announcement
410812 [lists@ru y- ] I have just published the Ruby gem Fbp-0.1.0.  This gem is a beginning

can not show bright_green color at windows terminal
410815 [hgyxbll@qq c] ...
411651 [jw1496@at .c] It looks like you are printing ANSI terminal codes.  This would work only i=

Ruby 1.9.3 bug: #unpack("p") raises exception even with good bytes
410823 [lists@ru y- ] In the following code, why does $p1 succeed but $p2 and $p3 both fail? I
410824 [windwiny.ubt] Read the source Array#pack("p") and String#unpack("p").
410825 [lists@ru y- ] I'll try to do that, when I get a chance. But code like this can be

watir-rspec 1.0 released
410828 [lists@ru y- ] * add installation binary watir-rspec for easier installation of the gem
410838 [tamouse.list] WooT!! Thank you!

[ANN] pluto gem update - another planet generator/feed reader now w/ template packs, live sites, and more
410829 [gerald.bauer] I've updated the pluto gem. What's pluto?

Sorting an array of arrays
410830 [lists@ru y- ] I have an array of arrays.  The first field of each contained array is a
+ 410831 [adam@ap es o] ary.sort won't modify ary in-place.
| 410832 [lists@ru y- ] sort! is definitely the way to go.  Thanks so much for the help.  (I
+ 410833 [cdguillen@ic] ...
+ 410834 [lists@ru y- ] There's always sort_by, as well.
+ 410840 [shortcutter@] No.  It's a String.

[ANN] dtas 0.4.0 - duct tape audio suite for *nix
410836 [normalperson] Free Software command-line tools for audio playback, mastering, and

Help with Ruby Tic Tac Toe Game
410837 [lists@ru y- ] I am working on a tic tac toe game in the IRB but can only get the game
410839 [tamouse.list] game
410864 [abinoam@gm i] Don't ask me where I was with the head in but...
410874 [lists@ru y- ] Hey Abinoam,
+ 410880 [abinoam@gm i] Hey John,
+ 410910 [list.push@gm] bugs and it is not very DRY.
| 410969 [list.push@gm] This is about the same as the code in my previous post, but I removed some
+ 410951 [sto.mar@we .] Hashes...? A two-dimensional array would be more appropriate.
  410958 [abinoam@gm i] I couldn't agree more!

system development lifecycle activites
410843 [lists@ru y- ] I've been reading about the sdlc activites and I'd like to compose a
+ 410846 [shortcutter@] What do you mean by "app"?
| + 410847 [lists@ru y- ] I mean an app or a computer program of a scope that would require
| | 410848 [shortcutter@] I hope you do notice that this is self referential. :-)
| | 410849 [lists@ru y- ] I've only just realized why "app" was confusing, I'm sorry for that
| + 410853 [tamouse.list] On Sep 23, 2013, at 6:41 AM, Robert Klemme <shortcutter@googlemail.com> =
+ 411402 [lists@ru y- ] We use the IF4IT SDLC (located at: <a

OptParse - how do I get the argument values?
410844 [lists@ru y- ] I am trying to use OptParser to get the values of my options, but in the
410845 [mike@st k. a] the

Hpricot problem on class initialize
410856 [lists@ru y- ] with hpricot but something im missing on the syntax or something.
+ 410859 [tamouse.list] What's the part that is *not* working?
| 410863 [ryand-ruby@z] The part where they're trying to use hpricot.
+ 410861 [lists@ru y- ] When I try to get the page with hpricot
| 410862 [tamouse.list] view=20
| 410869 [lists@ru y- ] Im sorry but I think I dont undestood.
| 410876 [tamouse.list] view
+ 410882 [lists@ru y- ] This may be the problem, wget returns a "unsuported browser" page and
  410883 [wbrisett@at ] ...

[ANN] fortune_gem 0.0.7 Released
410857 [beholdthepan] fortune_gem is a port of the unix "fortune" program, written in Ruby.

refactor exercise 3
410860 [lists@ru y- ] Because pass few days, i have learned a lot here, one of my colleagues

Exception Raising
410865 [lists@ru y- ] I have started to introduce the Net::FTP function to download something
+ 410866 [shortcutter@] Kind regards
+ 410867 [lists@ru y- ] I think the part you're missing is that "begin, rescue, end" blocks are
+ 410868 [lists@ru y- ] Thanks both.
| 410870 [shortcutter@] It's purely a syntax issue as the error message indicates.
+ 410873 [lists@ru y- ] Thanks guys, school boy error.
+ 410875 [lists@ru y- ] Guys,
  410878 [tamouse.list] Take a full read through the File, Dir, and FileUtils classes/modules to =

Creating multiple objects from a model
410871 [lists@ru y- ] I'm new to the programming world, so much of this stuff is still pretty
+ 410872 [shortcutter@] 1. Add another prompt before the while loop which asks for number of
+ 410877 [lists@ru y- ] puts 'Enter the number of dice to use'
| 410884 [shortcutter@] The way Dice is implemented it does not make sense to have more than
| 410889 [lists@ru y- ] Fair point, I was thinking that if added complexity was required later -
| 410894 [shortcutter@] Absolutely. One could even wonder whether this problem warrants a
+ 410888 [lists@ru y- ] Thanks Robert and Joel for your suggestions. It forced me to browse some
  410892 [shortcutter@] Disadvantage of #to_i vs. Integer() is that #to_i will happily convert

difference between `Kernel#load` call with the second parameter and without.
410879 [lists@ru y- ] I was trying to understand the difference between `Kernel#load` with the
+ 410881 [abinoam@gm i] Test it with an instance variable.
| 410885 [lists@ru y- ] I tested with an instance variable,the result is same. I didn't get your
| 410891 [abinoam@gm i] Could you repeat the test using the code bellow?
| + 410895 [lists@ru y- ] I did the test...
| + 410896 [lists@ru y- ] In this case how can we access the @doc of the loaded script?
|   410908 [abinoam@gm i] If you load it with the wrap=true then there's a separate enviroment
|   410918 [lists@ru y- ] The above sentences helped me a lot to understand the docs explanations - If the optional wrap parameter is true, the loaded script will be executed under an **anonymous module**, protecting the calling program”Ēs **global namespace.**
+ 410893 [lists@ru y- ] I did what you said. But see the output of mine.

regexes appear same, test !=
410886 [rubyhacker@g] How can this occur?
+ 410887 [wishdev@gm i] Gives a good clue == vs #to_s/#inspect (visual inspection) may produce
+ 410897 [ryand-ruby@z] (using =3D=3D)

tiobe latest
410890 [lists@ru y- ] i have been waiting to start in learning ruby-on-rails to determine its
+ 410898 [bascule@gm i] It is now official. Tiobe has confirmed: Ruby is dying </joke>
+ 410899 [hmaddocks@me] If this matters to you then Ruby probably isn't what you should be learning.
+ 410900 [lists@ru y- ] 1) find a very productive language
| + 410901 [tamouse.list] If you base your choice on perceived popularity, then C or Java will =
| | + 410902 [ixti@me be .] Any language that you know the best is more productive than any other.
| | + 410904 [lists@ru y- ] agreed.  i had hoped that ruby is "what is coming".  i suppose i am
| | | + 410905 [matt@te hn r] It's something that *I* used to code in, thankyouverymuch.
| | | + 410907 [huangsheng2@] ...
| | | + 410911 [shortcutter@] "The ratings are calculated by counting hits of the most popular
| | + 410906 [normalperson] Some just adapt the world to suit their needs and desires :)
| |   410925 [tamouse.list] Exactly. Well said.
| |   410927 [shortcutter@] It's not one or the other.  The tricky part is in determining when to
| + 410903 [bascule@gm i] If this is what you care about, Indeed is probably a better place to look
+ 410917 [lists@ru y- ] extraordinarily insightful comments, robert!  thank you very much.
| + 410919 [shortcutter@] Since both are Turing complete there is no difference in what both can do. ;-)
| + 410920 [wbrisett@at ] ...
|   + 410932 [gvimrc@gm il] I've worked with Perl as my main language for the last 10 years and am
|   | 410934 [fxn@ha hr f.] It takes a while to get used to, in comparison Ruby and Python feel naked,
|   + 410944 [ruby-talk@la] Perhaps when Y3K approaches, COBOL programmers will be called upon again
+ 410923 [lists@ru y- ] the real reason i started this thread:  there are a couple of training
| 410933 [gvimrc@gm il] Have you looked at Moose? It's pretty amazing but TIMTOWTDI has resulted
+ 410935 [lists@ru y- ] from what little i know about ruby, i sorta miss the semicolons !
+ 410936 [lists@ru y- ] You can use semicolons if you want!
| 410939 [tamouse.list] We make everyone happy!
+ 410940 [lists@ru y- ] if i am using semicolons and nobody else is, that's like showing up at
| 410941 [shortcutter@] Exactly.  I personally actually prefer the low syntactic overhead of
+ 410950 [lists@ru y- ] ok i guess i can get used to not using the semicolons !   its just when
  410968 [stu@ru yp og] "syntactic sugar causes cancer of the semicolon." - Aesop Paralysis

How to remove new line from output
410912 [lists@ru y- ] /usr/bin/ldapsearch -h #{internal_it_AD_ipaddress}     -p 389     -D
410916 [shortcutter@] s-ldap-search-single-line

"Well Grounded Rubyist" by David A. Black, Listing 5.6: Keeping track of car manufacturing statistic
410913 [lists@ru y- ] Can someone explain line by line what is happening with the @@cars hash
410915 [alexg@ru ge ] - The Hash is initialised on line 6

Re: "Well-Grounded Rubyist" Listing 5.6: Keeping track of car manfacturing stats with class variable
410914 [lists@ru y- ] It looks like @@cars contains each make in a Hash when one is created,
410922 [lists@ru y- ] It's probably best not to spend too long dwelling on class variables.
410924 [lists@ru y- ] Thank you Joel!
410928 [lists@ru y- ] I learned a lot about OOP and problem-solving by reading the book
+ 410938 [lists@ru y- ] Thank you Joel! I'll definitely give it a try. :)
+ 410952 [sto.mar@we .] And another great book by Russ Olsen: Eloquent Ruby.
  410963 [lists@ru y- ] Should a new programmer pick "Design Patterns in Ruby" as the first
  410964 [stu@ru yp og] Design Patterns is not a first book. For ruby /Eloquent Ruby/ and
  410965 [lists@ru y- ] Okay, but may be I should clarify that by "new programmer" I meant not
  410967 [stu@ru yp og] Have at it: https://mitpress.mit.edu/sicp/full-text/book/book.html
  410970 [lists@ru y- ] Just started reading it. Thank you! God bless you.

Re: "Well Grounded Rubyist" by David A. Black, Listing 5.6: Keeping track of car manufacturing stati
410921 [lists@ru y- ] Ah so the @@cars[make] = 50 is setting the key for the hash. Hm.

Visual Ruby Gem
410926 [lists@ru y- ] I am looking at prototyping a small in-house application which meant to

Iterating over hashes to create instance variables
410929 [lists@ru y- ] I'm working on a dice rolling program. Right now I'm storing user's
+ 410930 [sduncan@we a] This might be helpful for you =]
+ 410931 [lists@ru y- ] class Dice
+ 410945 [shortcutter@] You won't gain much by doing this because you then also would need to
+ 410953 [sto.mar@we .] You are better off simply using the hash itself.
  410954 [sto.mar@we .] Well, seems Robert already told you the same  :)

[ANN] pluggability 0.3.0 Released
410937 [ged@Fa ri MU] pluggability version 0.3.0 has been released!

STDIN.gets() with default value?
410942 [lists@ru y- ] is there a way to give STDIN.gets() a default value?
+ 410943 [lists@ru y- ] I believe that the standard way to use a default is to state what the
+ 410962 [tamouse.list] Specifically that, no, but you should look at the highline gem for =

String spliting
410946 [lists@ru y- ] data = "<input type=\"password\" value=\"hoax\">"
+ 410956 [ryand-ruby@z] \\ -> \
| 410957 [chris.hulan@] and add / to mark the end of the RegEx
+ 411008 [lists@ru y- ] File.open('file','r').read

Rdoc fail encoding iso-8859-1
410947 [lists@ru y- ] I'm quite new to ruby, so forgive me if this is a dumb question.
+ 410948 [stefano.croc] Are you sure iso-8859-2 is the correct encoding? According to wikipedia
+ 410949 [lists@ru y- ] You're right Stefano, iso-8859-1 is the correct encoding for Italian,
  410955 [stefano.croc] Why do you say that UTF-8 doesn't have accented characters? I've been

Re: Rdoc fail encoding iso-8859-1 [SOLVED]
410959 [lists@ru y- ] As I said in the beginning it was a dumb question.

[ANN] clogger 1.3.0 - configurable request logging for Rack
410961 [normalperson] Clogger is Rack middleware for logging HTTP requests.  The log format

cocot 1.0.0 released
410966 [lists@ru y- ] A very simple tool, but usefull for your BDD proyects, in which you will

Career opportunity for a Senior Front-End Engineer
410971 [lists@ru y- ] ARCTOS Consulting is a company of Recruitment, Training and Consultancy
410980 [xeno.campano] I have no experience with Scala, though I am interested in it, and I am

Need help on Tmie#utc_offset
410972 [lists@ru y- ] I was reading this method
410974 [sto.mar@we .] Come on! You explicitly converted t1 to UTC...
410977 [lists@ru y- ] Ohh! I see..

My base.extend does not extend the base
410973 [lists@ru y- ] I want to try out extending a class as explained in
410975 [wishdev@gm i] self.included
410976 [lists@ru y- ] Thanks! I just found this too this moment, but it was already too late
410981 [scottyspictu] All your base are belong to us.

symbol-create DTrace probe
410979 [lists@ru y- ] can't get it fired. Is it really exist in MRI. I'm using ruby 2.0.0p247.

object.method(f) = f.call(object)
410983 [martindemell] Came across a need for this in a somewhat silly golfing exercise, but
+ 410993 [abinoam@gm i] I think "apply" is a good name for that!
+ 410996 [lists@ru y- ] round-about way)
  411009 [abinoam@gm i] Thanks Mathew for pointing them.
  411019 [martindemell] Having thought about it I still like 'apply'. It doesnt have the