399927-400476

399702-400003 subjects 400138-400604

delete object from array of object
399927 [lists@ru y- ] class C_L_A_S_S
+ 399928 [sduncan@we a] Is this homework?
| 399933 [lists@ru y- ] No I am just playing around wit ruby, and sorry there is a delete
+ 399934 [ivan.bisevac] 2012/10/2 ajay paswan <lists@ruby-forum.com>
+ 399935 [lists@ru y- ] a_of_obj.delete_if {|obj| obj.a == 33}

self post method in ruby cgi
399937 [lists@ru y- ] I have done php programming before.. and just wondering if ruby cgi has
399941 [lists@ru y- ] if cgi.params()["formSubmit"].empty?

how to read arrary with an array
399938 [lists@ru y- ] programming and choose Ruby to learn from.  I grabbed Chris Pine's book
+ 399939 [matthew@ke w] In this case it's pretty simple, if you rearrange the source code you
+ 399940 [lists@ru y- ] If you are confused, it is the author's fault for choosing confusing
| 399946 [sto.mar@we .] I disagree.
+ 399944 [lists@ru y- ] Thanks for replies.  I at least understand it much better between the
| + 399945 [jgabrielygal] Basically yes, just the indices start with 0. So an array with three
| + 399950 [sto.mar@we .] In this case you can interpret the nested arrays in this way.
+ 399958 [lists@ru y- ] after some experimenting, I understand but still have a bit of fog.
| + 399960 [jgabrielygal] The reason is that your metaphor about arrays being like a 2x2 matrix
| + 399961 [sto.mar@we .] I do not understand what your problem is.
|   399965 [lists@ru y- ] "slice" is *not* an alias for "[]". What makes you think that?
|   399968 [sto.mar@we .] Maybe only for String and Array.
+ 399969 [lists@ru y- ] thanks for the replies, especially the thorough one from Jesus.  What
| + 399977 [sto.mar@we .] Well, that's wrong. You did not understand how Array#each works.
| + 399991 [jgabrielygal] I'm not really sure what you expected in the third case, but let's see
+ 399971 [lists@ru y- ] No.  Your array has 3 elements (remember commas separate the elements of
+ 399973 [lists@ru y- ] ***
+ 399978 [lists@ru y- ] OH!!!  Now I see.  I was thinking correctly the puts statments
+ 399996 [lists@ru y- ] For some reason, despite the examples, I was making a connection that

(none)
399947 [stephane.ili] unsubscribe

Void value expression error?
399948 [lists@ru y- ] doing mistake but I am getting Void value expression error... Can
+ 399955 [lists@ru y- ] You seem to be programming a kind of "Java in Ruby" rather than actual
| 399963 [lists@ru y- ] Thanks. Your guess is right. I am from java technology. I made a mistake
+ 399983 [lists@ru y- ] Ruby is actually very different from Java, regarding both the syntax and

unsuscribe
399949 [ciberclaude@] unsuscribe

need help to fix syntax problem for cgi
399951 [lists@ru y- ] I think its failing at
+ 399953 [sto.mar@we .] You should use irb to try out code snippets.
+ 399959 [lists@ru y- ] The ruby error will be in your web server's log file.  Or, you can use

Ruby Mechanize and do-if loops
399952 [lists@ru y- ] This is probably pretty basic stuff, but I can't seem to manage to get
+ 399954 [sto.mar@we .] link_with(:text => 'some text') returns nil when there is no such link.
+ 399956 [lists@ru y- ] Thanks! Should work..
+ 399957 [lists@ru y- ] Never mind - had to do with Loop (capital L) in stead of loop.. sigh.

2D array strategies
399970 [lists@ru y- ] I'm a relative Ruby Nuby, and am running into some difficulty
+ 399975 [lists@ru y- ] array2d = [
| 399976 [lists@ru y- ] ============================================================= (BOF)
| 399979 [lists@ru y- ] It really depends on the actual data.  If you really want the most
+ 399980 [ryand-ruby@z] arrays?

[ANN] Ruby-Mongrel2 0.33.0 Released
399985 [ged@Fa ri MU] Ruby-Mongrel2 version 0.33.0 has been released!

Cucumber Automation
399986 [lists@ru y- ] Further to getting Cucumber installed with cuke4nuke, I am trying to run

[ANN] heckle 2.0.0.b1 Released
399987 [ryand-ruby@z] heckle version 2.0.0.b1 has been released!

How can I catch browser error in watir-webdriver?
399992 [lists@ru y- ] 1. when somebody closes the browser intentionally. Or it is closed by
+ 400037 [lists@ru y- ] Please help me somebody. I am stuck here.
| 400038 [jam@ja an be] What have you tried so far?
+ 400043 [lists@ru y- ] Use something along these lines to record the types of error and

Building XML with Nokogiri
399993 [lists@ru y- ] I'm trying to build XML using Nokogiri::XML::Builder, in the following
399995 [ruby-talk@la] The hyphen is being interpreted by Ruby as a minus operator. You can
400002 [lists@ru y- ] Thank You!

"Killed thread" -- exception
399994 [lists@ru y- ] I catch the exception as: rescue => e

Writing developer's document and user's document
399997 [lists@ru y- ] I have developed a software using DRb, now as I have completed I want to
+ 399999 [jam@ja an be] Developer docs are probably best written as rdoc inside the code. Check the s=
| 400004 [lists@ru y- ] Do I need anything apart from RDoc?
| 400015 [jam@ja an be] Only if you want something different.=20
| 400019 [code@ap th o] Learning the basics of creating gems is a good idea when creating Ruby
+ 400022 [sto.mar@we .] For user documentation which is not directly linked to the source code
  400033 [lists@ru y- ] How these: http://rubydoc.info/gems/document/1.0.1/frames documents are
  400036 [jam@ja an be] Generated from rdoc, normally. Seriously, check the ruby implementation of s=
  400042 [carlos.agari] Actually, there were created using YARD <http://yardoc.org/>, which is a

Cucumber Automation: Issue with ansicon.exe and ruby
399998 [lists@ru y- ] When installing ansicon v.1.3.2 and running a cucumber feature file, I
400027 [lists@ru y- ] In addition I get the following error message when raising command
400252 [peterpan1051] =0ADa: Rahul D. <lists@ruby-forum.com>=0AA: ruby-talk ML <ruby-talk@ruby-la=
+ 400475 [lists@ru y- ] I have installed also the latest version v1.5.2 and get the same issue.
+ 400476 [lists@ru y- ] I have installed also the latest version v1.5.3 and get the same issue.

Redirecting $stdout and $stderr streams
400000 [lists@ru y- ] Guys, how are you?
+ 400001 [jam@ja an be] ...
+ 400012 [lists@ru y- ] I don't know where you're headed with this, but this is what I use to
+ 400029 [lists@ru y- ] Thank you Jam and Joel.

How to get installed module version
400005 [lists@ru y- ] I am new to ruby, just need one liner command in ruby to check any
400006 [jgabrielygal] $ gem list nokogiri
400007 [lists@ru y- ] Thanks Jesus, is there any way i can get by ruby command like
400008 [ruby-talk@la] If you want to search for more information on this topic, note that the
400009 [lists@ru y- ] thanks for your responce
400011 [ruby-talk@la] #{gem.version}"}'
400031 [lists@ru y- ] Thanks Lars.

DRb - know clients identity
400010 [lists@ru y- ] How can I know the clients identity from the server, I mean I want to
400020 [lists@ru y- ] Let me Google "drb client ip address" for you.

Unable to work with class variable
400013 [lists@ru y- ] class Test
400014 [lists@ru y- ] Calling attr_accessor defines getters and setter for the *instances* of
400032 [lists@ru y- ] Thanks Jan,
400039 [shortcutter@] You still should remove class variables from your repertoire.  Their

Extract numbers from an alpha numeric string
400016 [lists@ru y- ] I'm doing a program in which you have to enter a series of numbers like
+ 400017 [jgabrielygal] I think you are making things too complicated. If you have a mapping
+ 400018 [lists@ru y- ] when you iterate over single characters, then of course you only get
  400094 [shortcutter@] I think OP wants to map numbers to names.  Since keys in this case are

Calculation of heights
400021 [lists@ru y- ] The question I have is how to load a hash where the key is not numeric
+ 400023 [lists@ru y- ] so the question in your other thread has been answered?
+ 400024 [sto.mar@we .] - you should use more descriptive variable names
+ 400040 [shortcutter@] The program does not do any calculations.  What are you trying to
  400065 [lists@ru y- ] What I'm trying to say is that whenever I post some code, which use a
  400066 [matthew@ke w] Just keep in mind that all (programming) languages are different, and the
  400068 [shortcutter@] Absolutely agree!  Joao, also consider this: if all programming

Activerecord query question
400025 [lists@ru y- ] Struggling with formulating a simple join. I am pretty new to
400030 [troy.surrett] It's helpful to know which version of ActiveRecord you're using.  Here's
400041 [lists@ru y- ] Thanks Troy. It is ActiveRecord 3. Here is the solution that worked for

[ANN] marked-rails 0.0.4 released
400026 [beholdthepan] Marked <https://github.com/chjj/marked> is a fast Markdown parser and

[Ann] Cobra 2.5 - Windows GUI test automation tool
400028 [nagappan@gm ] * Added Perl interface (Contributed by xsawyerx)

NET:HTTP headers ruby gem
400034 [lists@ru y- ] I am trying to use the NET:HTTP gem to add an api-key to http header of
400035 [ryand-ruby@z] By "to http header of a client" I assume you mean to the request...

Writing SOAP clients in Ruby
400044 [matt@te hn r] I need to write a bunch of tests that will drive a remote server via SOAP
400045 [cookrn@gm il] I'd recommend taking a look at Savon: http://savonrb.com/

Ruby range - verify if date lies between two specified dates
400046 [lists@ru y- ] I came across some issue in verifying if a date lies between two
+ 400047 [ryand-ruby@z] =3D> "01-Oct-2013"
+ 400048 [caduceass@gm] first_date = Date.new(2012, 10, 1)
  400060 [lists@ru y- ] I tried doing this, can anyone point out why it is not
  + 400063 [ryand-ruby@z] Maybe it is the superfluous parenthesis... :P
  + 400064 [caduceass@gm] Ranges can't go backwards. Do... range = (seven..today)
    400071 [shortcutter@] irb(main):001:0> d = 3.times.map {sleep 1; Time.now}

[ANN] gauntlet 2.0.1 Released
400049 [ryand-ruby@z] gauntlet version 2.0.1 has been released!

img src while sending email ruby cgi
400050 [lists@ru y- ] I am sending email by ruby cgi.
+ 400051 [sto.mar@we .] You are *not* sending an email with an attached image,
+ 400052 [lists@ru y- ] Instead of attachment, Can i not imbedded the image ??
| + 400054 [sto.mar@we .] you could for example
| + 400062 [hmaddocks@me] Sending images, or other non-text data, in an email has to be done as an attachment. The difference is whether it is an _inline_ attachment or not. You want an inline attachment.
+ 400069 [lists@ru y- ] I am found this from this link
+ 400070 [lists@ru y- ] ok to make this same as that link
| 400073 [matma.rex@gm] What do you mean "no luck"? Is the message sent and received, but
| 400075 [lists@ru y- ] but there is not image,
| 400076 [sto.mar@we .] you could try `puts message` instead of sending it.
| 400077 [lists@ru y- ] Sorry did not understand what you meant..
| 400081 [sto.mar@we .] First, look at the source code of the email you received.
+ 400079 [lists@ru y- ] also i found this
+ 400082 [lists@ru y- ] i can see in html format
| 400084 [sto.mar@we .] Do you see the same in the source code of your received email?
+ 400086 [lists@ru y- ] no

[ANN] minitest 4.1.0 Released
400053 [ryand-ruby@z] minitest version 4.1.0 has been released!

Regular Expression Help
400055 [lists@ru y- ] and they are killing me...
+ 400056 [sto.mar@we .] 1.9.3-p194 :001 > text = '"--- this is a string ---" = "--- this is a
| 400072 [shortcutter@] I'd rather use an approach which explicitly includes the "=" sign, for example
| 400074 [sto.mar@we .] ???
| 400078 [shortcutter@] Right you are.  I let myself irritate by your usage of String#scan.
+ 400085 [lists@ru y- ] text.scan(/"(.*?)" = "(.*?)"/).flatten

Db power value
400057 [lists@ru y- ] I've a question from grc, I hope you can help me ...

[ANN] reconsidered 0.9.1 Released
400058 [jwise@dr ga ] reconsidered version 0.9.1 has been released!
400061 [ryand-ruby@z] FINALLY!

rvm: installing latest development version of Ruby
400059 [sto.mar@we .] I am trying to install the latest version of Ruby using rvm.
400259 [lists@ru y- ] rvm has a google group you might ask.
400263 [sto.mar@we .] RVM uses by default the GitHub Ruby repository, which at the moment

seperating tables in documnet
400067 [lists@ru y- ] I have a word document with tables in it, i want to separate each table

How to add mime module to sent email ruby
400080 [lists@ru y- ] I am looking in google for long time about how to sent email with inline
+ 400083 [sto.mar@we .] In Ruby you can include a module into your own class,
+ 400087 [lists@ru y- ] thats work but then i dont think it does sent anything
| 400088 [sto.mar@we .] Yes, it is only "ready to be sent"...
+ 400089 [lists@ru y- ] then how will i sent email ??
+ 400090 [lists@ru y- ] yes its works with net/smtp
+ 400091 [lists@ru y- ] same problem if i use net/smtp .. image does not work as inline ..
+ 400109 [lists@ru y- ] This is not a Ruby question, it's about MIME.
+ 400110 [lists@ru y- ] Sorry, posted reply to wrong thread :-(

Kata @$$-kick! Prime Factors
400092 [lists@ru y- ] I'm trying to re-write the prime factors kata without using the Prime
400093 [dnspringer@g] This will get you the answers you want BUT it is not doing the correct

Regexp Problem
400095 [karangarg31@] I recently started learning ruby from some videos online. These videos,
+ 400096 [lists@ru y- ] just use Google to find a tutorial or book about regular expressions.
+ 400097 [alexandermcm] ...
+ 400098 [lists@ru y- ] I've found this to be a great tool for experimentation and learning

know my IP in LAN
400099 [lists@ru y- ] Like in socket, I wanna send my IP to the target machine.
+ 400100 [cliff.rosson] Use gethostbyaddr. Toss it in a string and send it along.
| 400102 [cliff.rosson] Woops. I think ip_address_list is closer to what you want.
+ 400103 [caduceass@gm] You can can use the system method, as in...

[ANN] red25519 1.0.0: a fast public-key digital signature system
400101 [tony.arcieri] red25519 is a Ruby wrapper for the Ed25519 public key digital signature
400113 [botpena@gm i] omg. thank you

Changing the default extension of Ruby
400104 [lists@ru y- ] I would like to change the default extension for the ruby interpreter to
400105 [matma.rex@gm] Where? In what environment? What for?
400106 [lists@ru y- ] I'm developing Ruby under Windows. My web host is running under linux
400107 [hassan.schro] That's ridiculous. Find yourself a real web host.
400159 [elihu5991@gm] Hassan is quite correct
400164 [jeremy@bo p.] While I agree on this point, I suspect that the workaround may actually
400169 [lists@ru y- ] Thank you for responding but changing the web host is not a solution
400180 [hassan.schro] If your time is worth nothing, spending it trying to work around a

Process.spawn: behaviour at variance with documentation?
400108 [lists@ru y- ] I'm puzzled by the behaviour of Process.spawn.  Allow me to

General Syntax question, Definiting Methods
400111 [lists@ru y- ] I think my question is more about general syntax, than more about
+ 400112 [troy.surrett] Hey Richard,
+ 400115 [lists@ru y- ] By the way, I wouldn't use a local variable with the same name as the
+ 400118 [caduceass@gm] The method returns the result of the last statement. So, in your case,
  + 400119 [lists@ru y- ] Isn't that exactly what Troy already said?
  | 400126 [caduceass@gm] Yes, I guess I glossed over that sentence in Troy's reply. In any
  + 400137 [lists@ru y- ] Actually it's not the same; consider the case where the object being

How to edit a specific line in a file, without using a temp file?
400114 [lists@ru y- ] How to edit a specific line in a file? Writing it to a temporary file
400129 [chris.hulan@] I think using the temp file and replacing is a good way. also lets you

What is the error: unexpected break?
400116 [lists@ru y- ] What are the possible reasons for this?
+ 400117 [lists@ru y- ] Is this some kind of guessing game? :-/
| 400121 [lists@ru y- ] As this is a big program, and I don't know exactly at which line am
| + 400124 [lists@ru y- ] The error message should say that (along with the file name). For
| + 400125 [aleiphoenix@] What's the exact error stack?
|   400127 [lists@ru y- ] Error message: unexpected break
|   400128 [jgabrielygal] Please check executor.rb, line 141 and show us what's there (and
+ 400135 [lists@ru y- ] hey am new to ruby programming. can someone help me in installing the

Palindrome error
400120 [karangarg31@] I am making a function which should return "true" if the input variable
+ 400122 [lists@ru y- ] You cannot pattern match a regex against a regex. This doesn't make
+ 400123 [peterhickman] Why are you using a regex? There is nothing regex about this!

Resource conflict when start a new browser-watirweb driver
400130 [lists@ru y- ] I have created 6 threads and now each thread will create browser and
400134 [lists@ru y- ] It would help if you could provide a bit more of the surrounding code,

Multithread in DRb
400131 [lists@ru y- ] Suppose I want to create 6 threads in client side
400132 [lists@ru y- ] 1. It calls DRb.start_service 6 times
400133 [lists@ru y- ] why? and how?
400136 [lists@ru y- ] The second code you put consumes 6 elements from ARGV. You might be
threads.html
top