386797-387168 subjects 387215-387483
^ eliminate duplicate key based on value
387008 [lakshmi27.u ] i have hash as below
+ 387009 [matma.rex gm] It's not possible to have duplicate keys in hash. Unless you're using
+ 387011 [code apotheo] irb
+ 387021 [josh.cheek g] I don't know of anything like this currently, but it wouldn't be too hard to
^ how to find all matches using ruby regex?
387013 [guorong.xu g] I have the following ruby code and I want to find all matched
+ 387014 [daniel.gayta] "data-1.2.5.tar.gz and data-1.2.7.tar.gz and readme.".scan
+ 387017 [esperantoca ] (data-\d+\.\d+\.\d+\.tar\.gz)/
| 387041 [guorong.xu g] Yes, it works fine.
+ 387023 [shortcutter ] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
^ [ANN] hoe 2.12.2 Released
387015 [ryand-ruby z] hoe version 2.12.2 has been released!
^ [ANN] ZenTest 4.6.2 Released
387016 [ryand-ruby z] ZenTest version 4.6.2 has been released!
^ Re: Can I write text to a notepad and save the file through
387022 [rrparida gma] Here, after creating the files, you can launch/open this file by using
^ Problem with debugging
387024 [aef1370 gmai] i = 1
387026 [bbxx789_05ss] until i > 1000000
^ Enumerable Module
387025 [aef1370 gmai] I want know , Which classes in ruby is supported by Enumerable Module ?
+ 387027 [bbxx789_05ss] None. 'supported' means nothing in ruby.
| 387028 [matma.rex gm] Enumerable will work with any class that has a meaningful #each method.
+ 387034 [gwtmp01 mac.] If you are asking about which classes include Enumerable, try something =
^ Problem with inheritance 1.8.7: uninitialized constant
387033 [altmann.work] /Users/PhilippAltmann/git/objcdoc/objcdoc/Import.rb:3: uninitialized
387035 [matma.rex gm] Main.rb requires Parser.rb, which requires Import.rb before defining
^ Is there libsvn-ruby1.9 Debian or source package?
387038 [faraohh gmai] You know if exist libsvn-ruby in version 1.9? Have looked everywhere...
387080 [faraohh gmai] I'll change my question. Do you know any bindings svn to ruby1.9?
^ Re: NArray install fail with DevKit on Win
387040 [aarmbruster ] I just ran into the same problem and Jon's suggested work-around worked
+ 387048 [luislavena g] You should ask the gem author to release a newer version that corrects
+ 387092 [luislavena g] -LC:\\Users\\Luis\\Projects\\oss\\oneclick\\rubyinstaller\\sandbox\\pdcurses\\lib
^ calling a descendant's method
387043 [muranov math] is it possible in Ruby to make a method of a class calling another
+ 387044 [brian brianj] This returns "HoHo" for me.
+ 387045 [muranov math] No it returns "Hoho"!
| 387054 [bbxx789_05ss] def f
+ 387046 [muranov math] In fact, i've got a problem in Rails with an abstract class
| 387055 [bbxx789_05ss] Inside a class, but outside any method definitions, self equals the
+ 387049 [muranov math] I think i've found an explanation: in fact i used a lambda and called a
| 387056 [bbxx789_05ss] class Dog
+ 387051 [muranov math] Posted via http://www.ruby-forum.com/.
+ 387069 [muranov math] @7stud thanks for a good example.
^ [ANN] unicorn 4.1.1 - fix last-resort timeout accuracy
387052 [normalperson] The last-resort timeout mechanism was inaccurate and often
^ How the access the values of this result
387058 [qaiserwali h] I am getting the following as a result of a script I run.
+ 387059 [jean-christo] puts result.id
| 387060 [jean-christo] Sorry. That is wrong, and .id is deprecated (use .object_id).
| 387061 [qaiserwali h] I am sorry about not asking the right question
+ 387062 [josh.cheek g] What version/implementation of Ruby are you using? That's a curious
+ 387064 [qaiserwali h] I am actually trying to use this gist
+ 387065 [bbxx789_05ss] class Address
| 387066 [qaiserwali h] The line that was creating trouble was
+ 387067 [bbxx789_05ss] module Dog
+ 387068 [bbxx789_05ss] Yah. inspect() returns a String, and a String does not have an
+ 387118 [anurag08priy] object.instance_variable_get(:@address2)
^ [ANN] Optimism v3.0.0 Released
387063 [ywzhaifei gm] Optimism is a ruby configuration library, with v3.0.0, it's much simple,
^ overloading methods question please?
387070 [shehio_22 ho] def do_something(a as Array)
+ 387071 [adam apresco] This is not valid Ruby. Is your problem that you're getting a syntax
| 387073 [adam apresco] Slight mistake. I should have instead said: you can fake the type aspect of
+ 387072 [muranov math] Having multiple methods with the same name and choose one based on the
| + 387074 [cmdjackryan ] Not as inbuilt language feature, anyway.
| + 387078 [hanmac gmx.d] you are wrong
| 387079 [cmdjackryan ] You are both wrong.
+ 387075 [shehio_22 ho] Alexey Muranov and Adam Prescott thank you very much :)
+ 387083 [muranov math] Yes, Hans Mackowiak is right, the case operator is more complicated than
| 387084 [shortcutter ] A generic solution is
+ 387085 [mcpierce gma] Method overloading is not supported in Ruby.
^ operator overloading ?
387076 [shehio_22 ho] lass Whatever
+ 387077 [adam apresco] Your syntax is off. Here's an example of defining #>>
+ 387082 [jakekaiden y] your syntax is not quite ruby... maybe something like this is what
^ Re: Messages to Ruby List/Forum/etc. not arriving equally?
387081 [adam apresco] with everything after "Alexey." removed.
387087 [josh.cheek g] No :( I've brought this up numerous times.
387096 [transfire gm] Someone needs to collect more information, where are the message
^ Passing a ruby var to a js var
387086 [arturo jesco] but i don't know if there's a way to pass the information
387088 [ruby zanshin] charset=us-ascii
387095 [arturo jesco] Thanks for the link
^ ssh login to a host
387089 [bellcolt hot] Can someone give me some advice on how to reliably check that a server
+ 387090 [dan nachbar.] With 1.9.2 you can say -
| 387091 [mcpierce gma] irb(main):008:0> s =3D TCPSocket.open('localhost', 22)
| 387093 [dan nachbar.] Being able to pass #gets a length limit parameter is new in ruby 1.9
+ 387107 [bellcolt hot] Thanks a lot.
^ Re: Ruby Future in coming years
387094 [akshay.dce g] Posted via http://www.ruby-forum.com/.
387100 [ninja slapha] Is this an exploit attempt, or a puzzle I haven't solved?
387109 [cmdjackryan ] These days: The former. Which can be the latter, of course, if you are
387099 [steve vdsp.c] Unsubscribe
387119 [gh9456 yahoo] Unsubscribe
^ Issue with scruffy and Rmagick
387101 [arturo jesco] I'm trying to create a graph with scruffy but my problem begin with
+ 387102 [luislavena g] To compile Rmagick on Windows has been mentioned on stackoverflow,
| 387108 [matma.rex gm] There are also prebuilt binaries available for 1.8.x versions. See
+ 387113 [arturo jesco] Thx for the links, issue solved :)
^ [ANN] net-http-persistent 1.9 and 2.0 Released
387103 [drbrain segm] net-http-persistent versions 1.9 and 2.0 has been released!
^ [ANN] omnifocus-github 1.2.0 Released
387104 [ryand-ruby z] omnifocus-github version 1.2.0 has been released!
^ [ANN] rubygems 1.8.10 Released
387105 [ryand-ruby z] rubygems-update version 1.8.10 has been released!
^ Re: rubygems 1.8.10 Released
387106 [bbxx789_05ss] I have a question. I have rvm installed, and I updated rubygems like
387111 [luislavena g] That is correct
^ Opinions on JS and DOM support
387110 [tasos.laskos] I've been researching this one for a while and as soon as I start
387112 [steve stevek] Check out htmlunit and zombie.js
^ drawing a graph with thin lines Scruffy
387114 [arturo jesco] post (chart.jpg).
+ 387124 [anurag08priy] Two other graphing libraries in Ruby that I know of: Rubyvis
+ 387187 [arturo jesco] little
^ Non-literal hash elements in argument list?
387115 [jay-rforum s] Many Rails helpers use an idiomatic options hash as their last argument;
+ 387116 [matma.rex gm] I'm pretty sure you just want Hash#merge.
| 387157 [jay-rforum s] You know, I think you're right - I never thought of it like that.
+ 387162 [bbxx789_05ss] That is the elegant, clear way to do it. What you came up with belongs
^ [ANN] minitest 2.5.1 Released
387117 [ryand-ruby z] minitest version 2.5.1 has been released!
^ NEWBIE issue: getting the rails command to work
387120 [jhsu802701 j] My OS: Swift Linux (derivative of antiX Linux, a lightweight version of MEPIS)
+ 387121 [jhsu802701 j] The "rails tickets" command didn't work, but the "rails new tickets" command did work.
| 387122 [josh.cheek g] Sounds like your book is written for Rails 2, but you have Rails 3
| 387127 [josh.cheek g] Here's a list of available versions https://rubygems.org/gems/rails/versions
+ 387123 [bbxx789_05ss] rails gets updated so often that rails books become out of date very
^ Help me understand this code
387125 [chrisr1386 g] Can anyone explain the syntax for the following code? It worked in rails
+ 387126 [stefano.croc] It's a shorter form for
+ 387128 [josh.cheek g] That's a ternary operator, it works like Stefano said. It isn't broken,
| 387144 [ninja slapha] And the way we can figure that out is with an error message.
+ 387143 [chrisr1386 g] Perfect. Thank you
^ [ANN] cdexec v0.1
387129 [transfire gm] Just released a small tool to "foreach" over a selection of
387175 [ammarabuali ] find, from findutils, has -exec. It is very handy when it comes to iterating
^ convert unix one-liner to ruby one-liner
387130 [timrandg gma] I would like to append a carriage return to all .txt files. I can do it
+ 387131 [shortcutter ] Be careful to use double quotes if there may be spaces in file names.
+ 387132 [timrandg gma] Robert,
^ Connecting Ruby and MySQL
387133 [aef1370 gmai] I installed MySQL 5.5 ( mysql-installer-126.96.36.199.msi ) and mysql gem (
+ 387134 [jakekaiden y] judging from the error it looks like mysql was not installed
| 387146 [jarodzz gmai] Looks to me, you're installing mysql gem successfully, but not the
+ 387149 [aef1370 gmai] I am in Winows 7 and I think these commands are in Linux.
| + 387160 [dfl_maradent] Yes. I had the same problem. Download the libmySQL.dll into your
| + 387171 [echristopher] They will work if you have DevKit installed. You'll need DevKit to
+ 387172 [luislavena g] The problem lies in the incompatibility of the mysql gem (binary
^ The proper version of Ruby on Rails
387135 [jhsu802701 j] I'm going through the book _Head First Rails_, and I can't even make it through the first chapter, because I can't get everything working.
+ 387136 [bbxx789_05ss] Sure it was/is. The relatively recent upgrade from python 2.6 to python
+ 387137 [bbxx789_05ss] Also, as far as I can tell, beginning rails books just have you copy a
+ 387139 [bbxx789_05ss] Also, why do you keep asking your rails questions in the ruby forum?
+ 387140 [sophrinix gm] hrough the first chapter, because I can't get everything working.
+ 387156 [klauer gmail] I'm sure you'll find alot more help regarding Rails issues and probably more
^ String#split resets regex captures variables (Ruby 1.8.7)
387138 [bestiol gmai] I've just spent some time on this problem until I found the solution,
+ 387141 [josh.cheek g] It worked for me, you probably are using an old version of Ruby.
+ 387142 [bbxx789_05ss] Do you actually consider that a lucid example of the problem? Bejeesus.
| 387147 [matma.rex gm] I think it makes sense for $1, $2 etc to change any time a regex match
| 387150 [josh.cheek g] 2011/8/29 Bartosz Dziewo=C5=84ski <firstname.lastname@example.org>
| 387152 [shortcutter ] and
| 387161 [matma.rex gm] and
+ 387163 [bestiol gmai] thanks for all your replies and tests, I wasn't expecting so many
387164 [shortcutter ] I am doing the opposite experience over at c.l.scheme - zero replies.
387165 [bestiol gmai] Well good luck then ^^
^ [ANN] Rails 3.1.0.rc8
387145 [santiago wye] Rails 3.1.0.rc8 has been released (we've an issue with rc7). =A0This is
^ load mongo fail
387148 [zuerrong gma] irb(main):001:0> require 'rubygems'
387151 [josh.cheek g] You're using an old version of Ruby that leaves the current directory in the
387153 [zuerrong gma] Oh thank you, that's really the problem.
^ Redirecting to referer page after the sign up?
387154 [devilz_myste] Im trying to redirect the user after the sign up by saving the referer
+ 387177 [lake lakeden] vise-sign-in/
+ 387181 [bbxx789_05ss] x = 2
387183 [devilz_myste] @7stud,
^ srand(0) confusion
387155 [sasogeek yah] I'm fairly new to coding ruby and I'm using "Learn to program" by Chris
387158 [shortcutter ] I assume the documentation is wrong. If you use "srand" instead of
387159 [sasogeek yah] thanks a lot :)
^ [ANN] google_hash 0.6.2 speedier hash access
387169 [rogerpack200] Happy to mention the lastest release of the google_hash gem.
^ xmpp4r and openfire 3.7
387170 [nemus grayha] I cannot get this piece of code to work with my openfire 3.7.0 xmpp
^ Rubygems instalation on ubuntu
387173 [aef1370 gmai] sudo gem install algorithms ) , bash gave me an error. How can I install
+ 387176 [lake lakeden] Have you tried using rvm to manage your rubies?
+ 387178 [hanmac gmx.d] the 1.9.1 ruby has extra gem program named gem1.9.1 ... try this
+ 387179 [lucas lucas-] A "Load Error" is unlikely to come from bash. Post the full log?
387180 [larrylv1990 ] u can download the latest version from http://rubygems.org/pages/download
^ Re: cdexec v0.1
387174 [rogerpack200] pssh and/or parallel might help, but I'm not sure :)
^ Importing flat-file data in to a database with Ruby
387182 [peter.hicks ] All,
+ 387184 [cmdjackryan ] What's your benchmarking of another ORM (Sequel, DataMapper) vs.
+ 387195 [shortcutter ] if anyone wants to take a look.
^ Re: oracle oci8 utf8 corruption
387185 [tcrowl yahoo] I placed ENV['NLS_LANG']=3D'AMERICAN_AMERICA.UTF8' as the first line in m=
^ AWS CreateHit ruby code
387186 [regan_russel] I've been a C developer since 1988, I know zero about ruby and I
+ 387188 [regan_russel] After I upgrade the gems and ruby version etc it actually looks like
+ 387189 [ryand-ruby z] Are you addressing this MissingParameters error?
387193 [regan_russel] Thank you for your response. I put in the missing parameters, which is
^ [ANN] Rails 3.1.0 has been released!
387190 [aaron tender] It's been 3 Months since RailsConf, so I think it's time we released Rails =
387191 [t.yao426 gma] s 3.1.0. =A0So, here it is! =A0I've released Rails 3.1.0!
^ Re: Rails 3.1.0 has been released!
387192 [bbxx789_05ss] <div class=3D"code_container">
^ Problem port python ssl socket to ruby
387194 [leopard_ne i] import socket, ssl
^ [ANN] SAMSUNG to produce "Ruby on Rails in Silicon" System on a Chip
387196 [ilias lazari] (public draft)
^ Prepend a character to a string in ruby
387197 [rubyonrails4] I am trying to insert a character to a string at the beginning of a
+ 387198 [stefano.croc] @space_availlability.insert 0, "0"
+ 387199 [shevegen lin] x = "foobar" # => "foobar"
| 387207 [hramrach cen] It is sad there is no obvious method for that.
| 387208 [hassan.schro] But if it makes you happy, there can be :-)
| 387209 [phrogz me.co] On Aug 31, 2011, at 08:29 AM, Hassan Schroeder <email@example.com=
| 387210 [shortcutter ] irb(main):001:0> class String
+ 387205 [lake lakeden] The other answers are better. I am just posting this for yet another
+ 387206 [shortcutter ] You can use String#rjust
+ 387219 [dsisnero gma] String#prepend has been accepted as revision r29120.
^ Re: SAMSUNG to produce "Ruby on Rails in Silicon" System on a Chip
387200 [rubfor recit] I've got a Samsung Galaxy S II. It's great. I only have to re-boot it
+ 387201 [adam apresco] Read the end of the post, and then
| + 387228 [ryand-ruby z] CONGRATULATIONS ILIAS!!! For your burgeoning new career at Fox News!
| + 387234 [shortcutter ] Adam, I can't help pointing at the subtle contradiction here. :-)
+ 387231 [sduncan weta] I've got a Samsung television. I don't think I'd like to serve web pages
^ Deaf Grandma Program doesn't work right
387202 [sasogeek yah] Grandma has hearing issues 'cos she's getting old. All she does is
+ 387203 [jgabrielygal] puts question
+ 387204 [hramrach cen] Try like this: question =3D=3D question.upcase[0...-1]+'?'
| 387211 [sasogeek yah] That did the trick :) thanks a lot. That said though, I don't understand
| 387213 [lake lakeden] Read the documentation. It helps understanding.
+ 387216 [shevegen lin] Do not get confused!
387289 [luke.gru gma] Nice, I started programming with Chris Pine's book too a little under a
^ GUI programming
387212 [sasogeek yah] Is ruby GUI programming something that will come along as I study ruby
+ 387214 [lake lakeden] There are a number of ruby GUI toolkits. Check out shoes first because it's j=
+ 387217 [shevegen lin] - DO I want to use ruby in a GUI or not.
+ 387220 [josh.cheek g] You'll have to explicitly look into GUI frameworks.
+ 387221 [sasogeek yah] Thanks a lot :) I'm going to 'switch' from shell to gui asap.
+ 387230 [axyd80 gmail] I believe right now it's better to stay with console, there's no Ruby
+ 387232 [serialhex gm] shoes is not "abandoned and buggy" it has it's bugs, yes, but it is hardly
+ 387245 [josh.cheek g] I got a lot of help from the IRC channel, and Steve mentioned just recently
| 387254 [steve stevek] In fact, the past two weeks of Shoes development has been more busy than the
+ 387261 [bbxx789_05ss] What is wxRuby, then?
| 387269 [steve stevek] To be fair, I never could get wxRuby working on my computer.
| 387270 [bbxx789_05ss] Well, then in a two person survey, 50% of ruby programmers are able to
| + 387271 [serialhex gm] statistics in action! lol :)
| + 387273 [sutniuq gmx.] Current pixman has a bug that crashes wxLua and thereby wxRuby and
| 387288 [steve stevek] That's wxwidgets, not wxruby.
| 387323 [sutniuq gmx.] ==============================================
| 387332 [steve stevek] Ah, my mistake.
+ 387286 [hramrach cen] It seems every time I turn to GUI programming I am digging into a pile of bugs.
387287 [rogerpack200] The only stable one I've found is jruby (swing or swt).