regex to match similar strings Hi, Im writing some validation code the basically make sure a users login is not too similar to their password. I was thinking a regular expression to match similarities and if they are alike then make the user change their password. This doesnt have to be bullet proof just enough to really say if someones u... 12 Jul 2010 19:37
while loop end action I am trying to write a script that when certain circumstances arise it creates an object instance that adds some info to a temporary array for a given time. When the given time is up I would like to perform a couple actions and print the array. After that the array and object instance will no longer be needed, so ... 13 Jul 2010 11:59
Try Ruby is back online. On Mon, Jul 12, 2010 at 6:53 PM, andrew mcelroy <sophrinix(a)gmail.com> wrote: Try Ruby is not compatible with 1.9.2-*. I am still looking in to why this is the case, but ruby 1.9.2 will not execute tryruby.rb. I am hoping that I am wrong about this, but every time I try to use 1.9.2 it is unable to find tr... 12 Jul 2010 17:23
[UPDATE] Try Ruby is back online. [Note: parts of this message were removed to make it a legal post.] Greetings, Some of you may have noticed that Try Ruby was down this weekend. It is now back up. In the downtime, I discovered several things. Try Ruby is not compatible with 1.9.2-*. I am still looking in to why this is the case, but rub... 12 Jul 2010 12:55
Substitution I have this part of code from "Why's poignant guide to Ruby" that is intended to make substitution: Note: code_words here is a hash ... idea = gets code_words.each do |real, code| idea.gsub!(real, code) end ... I know that "real" is what to find, and "code" is what to put in place. But, what I'm not get... 12 Jul 2010 18:30
Adding cookies to my http client Hi, The following is a modified version of the http client found in the o'reilly ruby cookbook. Does any one know how I can add custom cookies to this? class HTTP # Makes an HTTP reuqest and returns the HTTPRespnse object. # Args: :proxy_host, :proxy_port, :action (:get, :post, etc.), # :dat... 12 Jul 2010 11:48
How to create keybinds? My Rubyknowledge is somewhat limited, so im in need of some help with the following dilemma.. is there a way to create keybinds in ruby? In plain english, I want to be able to press f2 and run a rubyscript, how would I go about doing that? -- Posted via http://www.ruby-forum.com/. ... 13 Jul 2010 07:36
[ANN] Free shell accounts on new ruby-versions.net site Hi -- I'm please to announce the new incarnation of ruby-versions.net, where you can get a free shell account. (See http://www.ruby-versions.net for how.) The server for the new incarnation is generously provided by Blue Box Group. ruby-versions.net has lots of Ruby versions, now under the control of RVM, for... 12 Jul 2010 06:19
ruby float modulus operation. Hi, I am new to ruby and found this while experimenting with ruby. irb(main):010:0> 5.1%0.5 => 0.0999999999999996 irb(main):011:0> Is this similar to the float related operations that MS Excel has? - Karthick S. ... 12 Jul 2010 10:40
hash example Hello. First of all, I'm reading this ebook, http://www.ruby-doc.org/docs/ProgrammingRuby/ is it a good book? --------------------------------------------------------------------------------- instSection['oboe'] » "woodwind" instSection['cello'] » "string" instSection['bassoon'] » nil As the last examp... 12 Jul 2010 06:19 |