362168-363405

361963-367420 subjects 362378-371727

^ Calculation in a block
362168 [contactmouli] I'm new to ruby, and I am trying to add all the natural numbers below
+ 362171 [alex.decaria] In your code, numbers is an array with a single element.  That single
| 362173 [b.candler po] numbers = (1..1000).to_a
| 362175 [robert.dober] or even [*1...1000] ( remark that 1000 must not be in the solution here ).
| 362178 [contactmouli] Great, now I understand.  Works fine now with both Array.new(1000) {|i|
+ 362174 [robert.dober] I would be more rubymatic here ;)
  362641 [  tvw s4r.de] (1..1000).select{|n| n % 3 == 0 or n % 5 == 0}.inject{|sum,n| sum + n }

^ Scope
362183 [edumucelli g] class String
+ 362187 [shortcutter ] def to_b
+ 362193 [rick.denatal] This opens up the system class String (or ::String if you prefer to
  362197 [edumucelli g] Thanks, that solved my scope doubt.

^ Download version 1.8?
362192 [velvetpixel ] Where can I download the latest version of the 1.8 branch?
362194 [aldric trevo] How about http://www.ruby-lang.org/en/downloads/ ?
362195 [velvetpixel ] Linux - CentOS and Ubuntu
+ 362196 [jonathan jmn] You can find the source for pretty much any version you want at
+ 362254 [ninja slapha] Ubuntu has Ruby packages, and the default ones (I think) are still 1.8.
  362255 [james grayso] sudo apt-get install ruby-full
  362258 [rick.denatal] One might also using rvm

^ [ANN] JRuby 1.5.0.RC3 Released
362198 [tom.enebo gm] The JRuby community is pleased to announce the release of JRuby 1.5.0.RC3

^ [ANN] Rainbows! 0.92.0 - inching towards the pot of gold
362203 [normalperson] Rainbows! is an HTTP server for sleepy Rack applications.  It is based on

^ [ANN] raindrops 0.2.0 - raining penguins!
362205 [normalperson] For servers running Unicorn 0.98.0 (and derivative servers)

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

^ How to suggest Kernel#printf to add a note to see sprintf
362208 [blueskybreez] when we do
362265 [rogerpack200] You can edit the rdoc associated with printf to add such a note, then

^ What about charset?
362209 [casanejo gma] I have a ruby program wich take some information from a .txt file, and
362262 [b.candler po] Show your code, and also which exact versions of ruby, ruby-sqlite3 and

^ [ANN] posix_mq 0.5.0 - POSIX Message Queues for Ruby
362210 [normalperson] POSIX message queues allow local processes to exchange data in the form

^ unable to install ruby-debug
362212 [ghotrapa yah] $: sudo gem install ruby-debug
362214 [luislavena g] Please paste the contents of gem_make.out indicated above.
362221 [ghotrapa yah] $ cat

^ racc 1.4.6 fails to install on windows
362213 [amey_mahajan] racc fails to install and gives following error on the STDOUT.
362244 [luislavena g] c'

^ for-in vs. map closures
362215 [mike_ekim ya] I was experimenting with closures and JavaScript's and Ruby's
+ 362216 [josh.cheek g] I don't know, it seems like very peculiar behaviour. It does create new
| 362217 [dblack rubyp] => nil
+ 362218 [jgabrielygal] Here, n is local to the block, so the n in the lambda is different
  362241 [josh.cheek g] Wow, those were both really good explanations. Thanks David and Jesus.
  362243 [jgabrielygal] In fact there was something not so clear (or just plain wrong,
  362270 [mike_ekim ya] On May 5, 9:01=A0am, Jes=FAs Gabriel y Gal=E1n <jgabrielyga...@gmail.com>
  + 362294 [jgabrielygal] I suppose it's slower but I think it's mainly because the block call.
  + 362295 [robert.dober] No not really (at least for 1.9)
    362305 [rick.denatal] eal
    362311 [robert.dober] <snip> I almost never use for in Ruby, it makes me feel more like I'm writing

^ troubles with nested hashes
362219 [teedubb gmai] i'm new to ruby and not that great a programmer so bear with me.  i'm
362220 [peterhickman] When you do this
362227 [teedubb gmai] thanks Peter, that solved my issue.

^ Why can't I do a "to_i?"
362222 [pbailey bna.] I keep getting an "undefined method `to_f'" for this simple script. Can
+ 362223 [pbailey bna.] Sorry. I meant a "to_f" there in the subject line, although it happens
| 362224 [peterhickman] to_f occurs on three lines in the code you show us. How about a clue as to
+ 362225 [calamitates ] 5}) x
  362226 [pbailey bna.] Yes, thanks. I found the problem. It's the placement of my [1] and [2]

^ sudo gem install mysql  problem
362229 [myocean135 y] today i have installed ubuntu10.04.
+ 362231 [rich.mcgrath] try sudo gem install mysql -- --with-mysql-dir= *Put Location Mysql
+ 362245 [luislavena g] You need a full Ruby installation, from the path "/var/lib" looks like
| + 362246 [rich.mcgrath] This Doc might help.
| + 362903 [lyn.samuel e] I've been scratching my head all afternoon as you suggested sudo apt-
+ 362906 [lyn.samuel e] I was getting the exact same error - I can get sudo gem install mysql
  362961 [oscartheduck] As much as this might not be what you want to hear, I've always =

^ PROJECT TRACKING SOFTWARE
362230 [lsewingenter] PROJECT TRACKING SOFTWARE

^ socket problem
362232 [picky.mendoz] I just started to learn how to use sockets in Ruby and my Problems
362236 [jgabrielygal] require only loads a resource once. If it was already required

^ Re: [RFC] Proposing a Ruby Packaging Standard
362233 [dolzenko gma] How the Config.datadir('$projectname') pattern is supposed to be used

^ Using array instead of hash and still have efficient  cross-referencing
362234 [transfire gm] I am storing a collection of OfModule instances in a hash (@modules)
362247 [vikkous gmai] So, am I understanding you correctly? The core problem in on line 77?
+ 362253 [transfire gm] That was my first alternative idea too. I'm just not sure if it's
| 362261 [vikkous gmai] From what you say about how this is used, it doesn't sound like this
| 362272 [transfire gm] Interesting. I may go ahead do it this way then. Thanks.
+ 362256 [transfire gm] BTW, Caleb, I watched your Ocelot talk last night. Pretty neat idea to

^ do Rails/gems updates break applications?
362235 [enos76 gmail] Some time ago I started experimenting with Ruby on Rails.
+ 362237 [jonathan jmn] This is a question you will probably want to ask the Rails mailing
| 362238 [enos76 gmail] Let's say you must reinstall a server, or migrate many old applications
| 362240 [kvnhpkns gma] To answer this question, check out my previous email about the
| 362248 [enos76 gmail] Exactly what I needed to know. Now after doing a little research on gem
+ 362239 [kvnhpkns gma] I know this more of a Rails specific question but I'll answer it anyways.

^ How to use Ruby portable?
362249 [nospam news.] I downloaded  Ruby binaries, ruby-1.8.7-p72-i386-mswin32.zip  I' wondering
362250 [sutniuq gmx.] No, Ruby doesn't write any registry entries. That's beacuse Ruby IS
362297 [nospam news.] And where should be placed programs: inside Ruby directory?
362298 [d_rems yahoo] It doesn't matter at all.
362300 [nospam news.] Type command where: in windows cmd prompt , MS DOS windows or other place?
362306 [nospam news.] program is in
362337 [mrzombie the] You could use a batch script to launch Ruby with the parameters you'd

^ public_methods vs methods
362252 [transfire gm] Why?

^ Ruby Equivalent of "Pythonista"
362257 [martinrineha] A savvy and enthusiastic Python programmer is called a "Pythonista."
+ 362259 [rick.denatal] I've always used Rubyist.
+ 362260 [imphasing gm] A Rubyist.
| 362263 [alex.decaria] An enlightened individual.
| 362264 [robert.dober] Alex I hate you, but ok I have to admit you were faster ;)
| 362269 [martinrineha] Thanks, Rubyists!
+ 362276 [tony.arcieri] I am often caught using the less popular term "Rubysexual"
| 362277 [sophrinix gm] a php developer with design sense.
+ 362280 [mmpeters gma] =E3=80=8C=E3=83=AB=E3=83=93=E3=83=BC=E5=AE=B6=E3=80=8D=EF=BC=88=E3=82=8B=E3=

^ rmagick install fail
362266 [devguy.ca gm] I can't seem to install rmagic on ubuntu 9.10 using ruby 1.9, I have
+ 362267 [luislavena g] RMagick needs development headers of ImageMagick.
| 362271 [devguy.ca gm] Thanks that did it!
+ 362268 [edds718 gmai] ...

^ How can I call String#replace (rb_str_replace()) in C API?
362273 [james.d.mast] I am wrapping a C++ API using SWIG for Ruby and in some cases strings
362281 [vikkous gmai] Are you using ruby 1.8 or 1.9? 1.9 makes rb_str_replace non-static and
362284 [james.d.mast] Unfortunately I am using Ruby 1.8.
362285 [vikkous gmai] garbage collector, or else your program will crash mysteriously in
362288 [james.d.mast] Thanks for the advice :).  Yeah, I was actually thinking about
362303 [rick.denatal] You could use rb_intern and rb_funcall*

^ automated service
362274 [msrnivas yah] I am new to Ruby and want to write one automation service which support
+ 362348 [josh.cheek g] Can you give a bit more information about this part?
+ 362362 [transfire gm] Buy Book Programming Ruby and read it.
  362363 [williamkmani] Wow that was terse.

^ Email listener?
362278 [chandrasekar] I'm trying to figure how best to write an email listener -- basically,
+ 362290 [shortcutter ] Bad news is that you might not even need Ruby for that. :-)
+ 362292 [b.candler po] You could write a program which polls a POP3 mailbox periodically, and

^ Default Graph URI in Sparql Client
362283 [tsyren.hey g] May be i'm not clearly understand Sparql Client

^ ri on sqlite
362286 [transfire gm] What do others think of a creating a new ri tool which uses a SQLite
+ 362293 [b.candler po] Have you looked at fastri?
| + 362314 [transfire gm] Last I checked fastri no longer worked.
| | 362329 [botpena gmai] do it like this,
| | 362487 [drbrain segm] 1.8
| | 362493 [botpena gmai] RDoc instead of letting them fall by the wayside every other year. =A0(hint=
| | 362632 [drbrain segm] to RDoc instead of letting them fall by the wayside every other year.  =
| + 362325 [ryand-ruby z] If you're not on windows, then it isn't (much) faster than ri (via the =
+ 362328 [drbrain segm] Go for it!
| 362346 [joelvanderwe] An rdb would give you prefix search (useful for completion).
| 362489 [drbrain segm] $ ri String#gs
+ 362334 [gsinclair gm] I've thought of it many times, but would never personally undertake
| + 362340 [botpena gmai] maybe because the docs are just mined from the source.  doc making
| + 362364 [transfire gm] This has been my feeling as well.
| + 362488 [drbrain segm] $ ri String
+ 362351 [rogerpack200] NB that ri speed has much improved with more recent versions of rdoc..
  362366 [botpena gmai] thanks for the tip. just upgraded now.

^ what 's wrong with my fxruby?
362287 [myocean135 y] pt@pt-laptop:~$ sudo gem install fxruby
+ 362289 [myocean135 y] somen people say ruby1.9 don't surpport   wxruby,so i change into ruby
| 362301 [ruby slightl] irb(main):001:0> require 'fox16'
+ 363405 [martindemell] Resurrecting this thread because I faced the same issue - the solution

^ Failed to build the native extension
362291 [liumengjiang] I used ruby-1.8.7-p249-i386-mingw32.7z on the windows 7 x64, and have
362304 [luislavena g] Luis Lavena

^ [ANN] rest-graph 1.0.0 - super simple facebook open graph api client
362296 [godfat gmail] =3D rest-graph 1.0.0

^ Code review of n00b code and unit tests if you dare ...
362299 [mail maasha.] Please alert me to bad OO thinking, major flaws, style violations,

^ Ruby User Group, Cambridge, UK
362302 [ruby slightl] I'm one of those who learns by talking to experienced practitioners, as=20

^ require 'dm-community' # a developer Q&A
362307 [ted knowtheo] Hey Rubyists!

^ Class variable "scope"
362308 [vinibaggio g] I've been writing a library for me to play with metaprogramming as an
362309 [rick.denatal] the
362310 [vinibaggio g] Great, much better, thanks for the reply, Rick!

^ Kernel.open
362312 [farkas_imre ] I am trying to run an external commands with Kernel.open writing and
+ 362315 [rogerpack200] Maybe because gets requires a closing newline?
| 362331 [farkas_imre ] ...and hunspell puts a closing newline after the output. So that
+ 362333 [b.candler po] Try here: fh.flush

^ Immediate need for a QA Manual Tester in Chicago, IL
362313 [jsam.recruit] Below is a very urgent need. Send resumes to joe@zeninfotech.com ASAP

^ request.env['HTTP_USER_AGENT']
362316 [mmc_collins ] I just want to do a simple output on my machine showing the ie browser.
362318 [jgabrielygal] The request object is usually something a web framework gives you. You

^ [ANN] unicorn 0.99.0 - simplicity wins
362317 [normalperson] Unicorn is an HTTP server for Rack applications designed to only serve

^ Rolling Checksum
362319 [di3go.bernar] Someone ever build a Rolling Checksum with Ruby?

^ gserver problem
362320 [bussiereruby] i've made to tiny scripts but it doesn't seem to work if you have any idea
362321 [jgabrielygal] The problem is that in the server you are doing a io.gets, so it's
362323 [bussiereruby] it works

^ Parse file to a hash
362322 [joao.pompei ] blablabla......
362324 [gthiesfeld g] You might try String#scan with a multiline regex.

^ rdoc/ri issue
362326 [transfire gm] $ ri "String#to_s"
362327 [drbrain segm] Did you upgrade rdoc-data and reinstall it as well?  The earlier =
362330 [transfire gm] ntation sets had bugs, 2.5.3 is the latest.

^ Include? on array of objects
362332 [gregorylepac] Is it possible to use include? on an array of objects? I would like to
362335 [s.korteling ] You can use Array#include?(arg) but it will return true only if arg is
362338 [gregorylepac] Ok thanks I have to use Detect
362339 [dblack rubyp] ar.find {|el| el.size == 1 }  # synonym for detect

^ [ANN] kramdown 0.7.0 released
362336 [t_leitner gm] ## About kramdown

^ ease of porting (translating) ruby to C (vs. python)?
362341 [jtprince gma] In a very small bioinformatics group I know of, they are deciding
+ 362347 [usenet-nospa] That's a bunch of bullshit.
| 362443 [mrzombie the] From my understanding, both Python and Ruby are able to use native
+ 362349 [josh.cheek g] C to begin with so that you don't get side tracked using some nice
+ 362350 [rogerpack200] Rubinius is pretty fast these days..
| 362355 [cameron.mcbr] and if you're familiar with C, inline or C extensions are really easy
+ 362356 [tony.arcieri] There's lots of good reasons to use Python for scientific computing, such as
| + 362357 [williamkmani] What is the nature of the project? If it is solely intended for research
| + 362358 [cameron.mcbr] I do not agree, but this is becoming the typical rant and somewhat
|   362361 [tony.arcieri] What's a Ruby equivalent of SciPy?
|   362365 [cameron.mcbr] I took this offline since I feel it's off-topic to the OP.
+ 362683 [cbciv yahoo.] First, I agree with Peter Seebach that this is nonsense.
| + 362702 [vikkous gmai] While one should not get overwrought about performance ahead of time,
| | 362703 [colinb2r goo] Seconded!
| | 362704 [jameskilton ] Good design will always beat the pants off of hasty premature optimization,
| + 363306 [jtprince gma] Thanks to all for their thoughtful responses!  I'll pass it along.
+ 362709 [tony.arcieri] on translating to C for this thread.

^ bond 0.2.0 - Improving Irb's Autocompletion
362342 [gabriel.horn] I just released version 0.2.0 of bond, a gem which improves irb's
362359 [botpena gmai] autocompletion-for-methods-in-irb.html
362389 [joelvanderwe] That happens in irb anyway (without bond).

^ Re: NANWSI: Not Another .NET Web Service Issue
362343 [msrnivas yah] I did exactly what noisefree did but getting below error
362374 [headius head] I'm not intimately familiar with this library, but I would be

^ Can't use RDF/Raptor on Windows
362344 [yuridenommus] I have compiled Raptor on Windows with cygwin, now I don't know where to
362352 [rogerpack200] Unfortunately you can't mix and match cygwin libraries with your windows
362354 [yuridenommus] I'm trying to use RDF.rb on a Rails project, and almost everything is

^ [ANN] Money 3.0.0
362345 [shane.emmons] Money 3.0.0 Released

^ Is Ruby ready to embrace new Linux face and UI realities?
362353 [gooigpi gmai] I may be utterly out of line expecting sympathy for my concerns about
+ 362368 [transfire gm] I do not know about GNOME 3, but I have always been under the
| 362397 [shevegen lin] Ruby Gnome support is quite ok.
+ 362474 [rogerpack200] I think if you want GUI for Ruby that's stable, etc., it might be a good
  362625 [gooigpi gmai] Thank you, for your suggestions.  Roger, yours might be particularly

^ Modify Class Instance Inside Another Class (scope problem?)
362360 [thephist hot] First, I've not used a forum before, but I want to be more involved.
362371 [josh.cheek g] You have an instance method called cards which returns an initialized set of
362379 [thephist hot] So basically, my method was working as intended, but I was looking for

^ [QUIZ] Interactive Mode BASIC Interpreter (#232)
362369 [yahivin gmai] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=

^ [ANN] "Using JRuby" book in beta now!
362372 [headius head] I'm incredibly excited to announce that the new JRuby book, "Using

^ Strings iteration
362375 [viorelvladu ] I have some names like aaxxbbyy where xx is '01'..'10' and yy is also
+ 362376 [jeanjulien.f] Perhaps this would do what you are looking for ?
+ 362377 [robert.dober] Without knowing what aa and bb look like I can only guess.
+ 362380 [shortcutter ] I am not sure I understand exactly what you are trying to do.  Does this
  + 362385 [Rob AgileCon] aa01bb01
  + 362390 [viorelvladu ] ractices.com/
    + 362394 [shevegen lin] r.zip(r){|xx,yy| puts "aa#{xx}bb#{yy}"}
    + 362398 [shortcutter ] Where's the difference?
      362406 [viorelvladu ] this
      + 362409 [rick.denatal] gh
      | 362410 [colinb2r goo] so
      + 362411 [shortcutter ] Yes, now I see it, too.  Sorry for my stupidity.  :-)  You want all
        + 362412 [eregontp gma] You could also use this one liner in ruby-1.9.2(r > 27352), if both
        + 362413 [viorelvladu ] Thank you, Robert, that is exactly what I need. You are the best!
threads.html
top