387008-387332 subjects 387413-388160
^ FileUtils.touch - permissions?
387215 [shevegen lin] Can I use FileUtils.touch to set permissions?
387218 [shortcutter ] $ ri19 FileUtils#chmod
^ Testing threads in RSpec
387222 [james jamesl] Is it possible to test threads in RSpec? For example (FYI: Jukebox is a
+ 387223 [stefano.croc] You should try putting
| 387224 [james jamesl] Thanks for replying, Stefano. But I DON'T want the main thread to wait
| 387263 [stefano.croc] Ok. Now I understand what you want. Unless I'm missing something, it should
| 387295 [james jamesl] Thanks again, Stefano.
+ 387227 [james jamesl] One issue could be scoping. Can the main thread see into the named
+ 387296 [james jamesl] FYI, my code -- bugs and all -- is available at
^ csv parsing issue
387225 [m_josenhans ] I've generated a CSV Document using Open Office csv export.
+ 387229 [Rob AgileCon] Try using mode "rb" so the line-endings are handled by CSV rather than
+ 387235 [m_josenhans ] Thank you for the answer.
| 387266 [Rob AgileCon] Did any of the other suggestions work? In particular, the fact that
+ 387262 [bbxx789_05ss] You really couldn't come up with a 3 word sentence that duplicates the
+ 387279 [m_josenhans ] The "rb" option did surprisingly work on windows (ruby), on Linux
^ Trouble installing rubywmq under AIX
387226 [ruby.student] I am experiencing a problem instally a ruby gem, rubywmq under the IBM UNIX
^ ripper on array access operation
387233 [sgaddipati o] Ripper.sexp('a')
387236 [justincollin] I am pretty sure it's the :aref part. Ripper is making  a special case.
387237 [sgaddipati o] Thats what it looks like but why not treat aref as any-other method
387238 [justincollin] I don't know. Ripper's output looks like a mess to me when compared to
387258 [adgar carbon] charset=us-ascii
387291 [justincollin] I suppose it depends on what you want out of it. For what I use it for,
387293 [adgar carbon] charset=iso-8859-1
387300 [justincollin] Kind of... :) But "instance_variable_set" might have a different meaning
387329 [josh.cheek g] !false && false # => false
387333 [justincollin] Yes, but precedence is handled by the parser, so that difference
^ how to pass a variable to a method in an existing class?
387239 [yw_hi 163.co] I am a new ruby user and I want to add a function to an existing class.
+ 387241 [killavus gma] class String
+ 387242 [tpaxatb gmai] "...I want to use the string as a variable
+ 387243 [yw_hi 163.co] Martin's answer solved my problem.
^ [ANN] autotest-rails 4.1.1 Released
387240 [ryand-ruby z] autotest-rails version 4.1.1 has been released!
^ [ANN] isolate 3.2.0 Released
387244 [ryand zenspi] isolate version 3.2.0 has been released!
^ newbie question
387246 [info 2020pro] i am coming from php and dont seem to quite understand how ruby works
+ 387247 [percent20 gm] You will need a framework like rails or sinatra to do web "stuff". I
| 387265 [shortcutter ] Not necessarily. For simple tasks it might be sufficient to just use
| 387267 [info 2020pro] but then how would i output using a browser?
| 387268 [shortcutter ] You need a web server capable of using CGI interface. Any web server
+ 387248 [sduncan weta] Have a look at this;
| 387250 [josh.cheek g] +1 for Sinatra
+ 387249 [info 2020pro] ok, installed rails
| + 387253 [cmdjackryan ] www.google.com
| + 387255 [steve stevek] ...
+ 387278 [info 2020pro] #!/usr/bin/ruby
| 387280 [dan nachbar.] #!/usr/bin/env ruby
+ 387290 [julian coret] The php equivalent is erb - embedded ruby. Rails and Sinatra are. More equiv=
^ irb Pleca ("pipe") teclado
387251 [dipetete hot] Buenas noches,
+ 387252 [dipetete hot] I just realized that most of the posts are in English...
| 387256 [ruby zanshin] work=20
+ 387257 [dipetete hot] Thank you Mark for your response.
+ 387259 [dipetete hot] To explain myself a little bit more...
+ 387260 [dipetete hot] I replaced %HOME% with the actual path, and I don't get the
| 387264 [hramrach cen] The difference you are seeing may be just the terminal using different
+ 387275 [dipetete hot] Thank you Michal.
^ ANN: Sequel 3.27.0 Released
387272 [code jeremye] Sequel is a lightweight database access toolkit for Ruby.
^ Re: help on find over find
387274 [gusantor hot] had success
387277 [ryand-ruby z] field=20
387346 [gusantor hot] thank you Ryan
387348 [josh.cheek g] This doesn't make sense, an instance of user should have a method
387416 [b.candler po] In Rails 3 you active Active Relation, where the new query methods
^ Re: Finding best way to pretty print XML files
387276 [jamesdnoyes ] You can't preserve CDATA or !ENTITY using XSLT.
^ processes threads and Windows 7
387281 [paul.denize ] I had a program that used a process thread to press an OK button on a
387282 [rogerpack200] Maybe use a mingw build and reinstall all those gems?
^ [ANN] ri_for 0.6.0 released--easy lookup of method documentation in irb
387283 [rogerpack200] Pleased to announce the release of "ri_for" gem v 0.6.0
+ 387297 [botpena gmai] cool.
| 387328 [anurag08priy] And how about colored output? I couldn't find anything in the README,
+ 387343 [drbrain segm] method's
^ [ANN] ruby2ruby 1.3.0 Released
387284 [ryand zenspi] ruby2ruby version 1.3.0 has been released!
387285 [josh.cheek g] The Release Berserker strikes again!
^ value for VALUE in C for ruby gems
387292 [cartercheng ] I was looking over some ruby gems and the documentation for creating
+ 387326 [dov.murik gm] There's some documentation at the README.EXT file which comes with the
+ 387327 [ammarabuali ] There a several possible actual types, depending on the platform that ruby
387345 [cartercheng ] Thanks both.
^ [ANN] Rainbows! 4.3.1 + Zbatery 4.1.1 - Rack servers for slow clients
387294 [normalperson] Rainbows! is an HTTP server for sleepy Rack applications and slow
^ SOLUTION: My threads were colliding
387298 [james jamesl] I believe I found the bug. It was caused by conflicts between my
^ [ANN] RDoc+ v0.5.0 released
387299 [transfire gm] RDoc+ 0.5.0 has been released.
^ [ANN] RDoc+ GitHub v0.5.0 released
387301 [transfire gm] RDoc+ GitHub 0.5.0 has been released.
^ [ANN] RDoc+ Highlight v0.5.0 released
387302 [transfire gm] RDoc+ Highlight 0.5.0 has been released.
^ [ANN] RDoc+ QuickSearch v0.5.0 released
387303 [transfire gm] RDoc+ QuickSearch 0.5.0 has been released.
^ [ANN] RDoc+ SearchTree v0.5.0 released
387304 [transfire gm] RDoc+ SearchTree 0.5.0 has been released.
^ [ANN] RDoc+ Subversion v0.5.0 released
387305 [transfire gm] RDoc+ Subversion 0.5.0 has been released.
^ [ANN] RDoc+ Prettify v0.5.0 released
387306 [transfire gm] RDoc+ Prettify 0.5.0 has been released.
^ [ANN] RDoc+ Fancybox v0.5.0 released
387307 [transfire gm] RDoc+ Fancybox 0.5.0 has been released.
^ [ANN] Twofish v0.5.0 released
387308 [transfire gm] Twofish 0.5.0 has been released.
387405 [code apotheo] Bummer. I was hoping it was a Ruby implementation of the *other*
^ [ANN] RDoc+ SearchTree v0.5.0 released
387309 [transfire gm] RDoc+ SearchTree 0.5.0 has been released.
^ [ANN] Voloko v0.5.0 released
387310 [transfire gm] Voloko 0.5.0 has been released.
^ [ANN] Newfish v0.5.0 released
387311 [transfire gm] Newfish 0.5.0 has been released.
^ [ANN] Miltonian v1.3.0 released
387312 [transfire gm] Miltonian 1.3.0 has been released.
387317 [tony.arcieri] 404
^ [ANN] RDoc Rubyfaux v1.3.0 released
387313 [transfire gm] RDoc Rubyfaux 1.3.0 has been released.
^ [ANN] Whitfield v0.5.0 released
387314 [transfire gm] Whitfield 0.5.0 has been released.
387318 [tony.arcieri] Also 404
^ [ANN] Porsche v0.5.0 released
387315 [transfire gm] Porsche 0.5.0 has been released.
^ [ANN] Rebecca v1.3.0 released
387316 [transfire gm] Rebecca 1.3.0 has been released.
^ Re: Miltonian v1.3.0 released
387319 [transfire gm] ...
^ Re: Whitfield v0.5.0 released
387320 [transfire gm] Thanks.
^ Re: Newfish v0.5.0 released
387321 [transfire gm] (this is sort of a perpetual beta project, fyi)
387322 [transfire gm] Well, shit. http://rdocidile.github.com/redoc-newfish
387353 [echristopher] How about http://rdocodile.github.com/rdoc-newfish/ ? :)
387387 [markus fisch] I find the text hard to read because the space between lines is so
^ Re: RDoc+ Fancybox v0.5.0 released
387324 [transfire gm] ...
^ Re: RDoc+ QuickSearch v0.5.0 released
387325 [transfire gm] ites to HTML lists, which is useful in creating file, class/module and meth=
^ installing naive bayes classifier
387330 [ayoya_91 hot] This is my first time here so I hope my format is correct
+ 387331 [luislavena g] Seems you're behind a proxy, "Proxy Authorization Required"
+ 387334 [ayoya_91 hot] Tried setting HTTP_PROXY environment variable to my proxy configuration
| + 387335 [shortcutter ] AFAIK the variable name must be lowercase so http_proxy instead of HTTP_PRO=
| + 387336 [cmdjackryan ] If you are using the inbuilt JRuby: Yes, most likely. It's vastly out
+ 387337 [ayoya_91 hot] I am not using JRUBY I am using externally installed Ruby at Netbeans
| 387338 [cmdjackryan ] What can
+ 387339 [ayoya_91 hot] Where should I write
| 387340 [cmdjackryan ] Yes. On Windows, dispense with the $ (it's a general signal that means
+ 387342 [ayoya_91 hot] for $ ruby -v
^ Beginner needing help - Writing right-angle triangle program
387344 [theburrick h] I've been going through a Haskell tutorial (Just to see what it's like)
+ 387350 [list.push gm] Is this no good?
+ 387381 [theburrick h] Thanks for the reply!
| + 387382 [josh.cheek g] def right_triangles
| | 387423 [shortcutter ] =3D c**2
| + 387383 [botpena gmai] try,
+ 387385 [theburrick h] Thanks guys! You've both been helpful! Now how would I make it so that
| + 387386 [list.push gm] Check my equations carefully to be sure they are correct.
| + 387414 [list.push gm] Sorry for the repost.
+ 387421 [theburrick h] What is p? Can you just use it instead of puts?
+ 387426 [list.push gm] p = perimeter
+ 387430 [matma.rex gm] `p var` is mostly the same as `puts var.inspect`.
^ Beginner needing help - Writing right-angle triangle program
387347 [kmandpjlynch] I've been going through a Haskell tutorial (Just to see what it's like)
+ 387349 [dan nachbar.] I couldn't help but notice that this is exactly the same email
+ 387351 [josh.cheek g] Show us your Haskell and Ruby code.
+ 387352 [phrogz me.co] like)
387355 [adam apresco] A very curious use of #tap.
387377 [phrogz me.co] def xyz
387379 [bbxx789_05ss] So when you read the thread title, "Beginner needing help", you thought
387403 [phrogz me.co] No, that was not my intention. I don't personally find it unintelligible; indeed, other than the name of the method "tap" I find that pattern to look more elegant then a clumsy repetition of variable names. (If the method were named something like "named" or "using" or "with" my particular usage might read slightly better.)
^ Re: ri_for 0.6.0 released--easy lookup of method documentation in irb
387354 [rogerpack200] It does in 1.9 I think I could do it in 1.8.x by reading through all
387406 [anurag08priy] Not sure. I tend to use Google more than ri, but I guess that should
^ Which version should I download?
387356 [cluny_gissla] Im new to programming and Im thinking of downloading and starting with
+ 387357 [flo andersgr] Python
| + 387358 [cluny_gissla] Thanks, that's helpful
| + 387361 [steve stevek] Agreed. Ruby 1.9 has been the standard version of Ruby for almost two years now.
+ 387374 [josh.cheek g] I use 1.9.2 (p290) by default, and occasionally 1.8.7 and 1.9.3 (preview)
+ 387378 [phrogz me.co] 1.9 is the future, faster, "better", and sufficiently stable and well-supported at this point.
| 387415 [b.candler po] Just beware: the semantics of String are both complex and very poorly
| 387417 [steve stevek] All of Ruby is poorly defined, not just strings. :p. RubySpec does a decent
+ 387418 [rahul.deshmu] As i think 1.9.2 because it will also support to latest Ruby On Rails 3.x,
+ 387433 [shevegen lin] You guys are aware that newbies will always have this question?
+ 387434 [steve stevek] It is not brainless.
+ 387435 [steve stevek] It is not brainless.
+ 387437 [cwprogram li] Newcomers to a language will always have common questions that are often co=
| + 387439 [cwprogram li] amming languages people are often split into two distinct camps. The first =
| + 387440 [jos catnook.] One issue with 1.9 is that it requires an existing Ruby interpreter. I
| + 387462 [b.candler po] No, but the language *does* have very clearly defined semantics. It also
+ 387438 [josh.cheek g] 1.8.7 EOL is already being discussed (they may have even set a date).
^ Problem in installing rails
387359 [aef1370 gmai] When I type 'gem install rails' to installing rails , I faced to a
387360 [steve stevek] It's just a warning. 'rails new myapp' should still work fine. 'gem
^ Downloading Images Errors
387362 [pluhveso gma] help me dive in. However, I'm having some issues around net/http and
387391 [shortcutter ] This has nothing to do with your download code and everything with
^ opening a file with variable name
387363 [jesmith2095 ] charset=us-ascii
387364 [hassan.schro] ruby-1.9.2-p290 > variable = "foo.txt"
387365 [jesmith2095 ] Thanks for the quick response. When I do a puts "path", this is what I =
+ 387366 [hassan.schro] ? What OS is this? Regardless, try changing all those '\' to '/' first :-)
| 387369 [jesmith2095 ] I changed the slashed and escaped the file path ( I noticed after the =
| 387372 [hassan.schro] Have you tried 1) opening a file that's in the same directory you've
| 387375 [jesmith2095 ] fact that my path has spaces), and no change in the error at all.
| 387390 [shortcutter ] act that my path has spaces), and no change in the error at all.
+ 387371 [josh.cheek g] This text is a top post. The convention here is to bottom post :)
^ arrays(setters and getters)
387367 [shehio_22 ho] # whats wrong with that
+ 387368 [josh.cheek g] whatever.array returns the array object, then whatever.array.=(1,2) is
+ 387370 [shehio_22 ho] Isn't there any other way to invoke shehio.array[index] = sth ... Can
| 387373 [josh.cheek g] Yes, but not from instances of Whatever. You can fake out the object you
+ 387376 [jakekaiden y] so, a couple of things...
+ 387380 [bbxx789_05ss] class Dog
^ ruby 1.9.3: io/console help
387384 [sentinel1879] I'd be grateful if someone could give some examples on how to use
387404 [luislavena g] No, is a simple too for enable/disable of echo and obtaining information
^ [ANN] rib 0.9.5 released
387388 [godfat gmail] # Rib <https://github.com/godfat/rib>
^ [ANN] rest-core 0.3.0 released
387389 [godfat gmail] # rest-core <https://github.com/cardinalblue/rest-core>
^ loops problem
387392 [shehio_22 ho] for (j = @array.length ; j > counter ; j = j-1) # counter is a variable
+ 387393 [dan nachbar.] For this task, I would use #insert rather than iterating, as in
+ 387394 [shehio_22 ho] I didn't know the insert method what are its arguements.. are there
| + 387395 [hassan.schro] You might be able to answer this as well as your original question by
| + 387396 [dan nachbar.] There are many excellent free online resources that do a much better
+ 387397 [shehio_22 ho] thank you very much :)
+ 387398 [shehio_22 ho] I've read about the method which inserts some element in a certain place
| + 387400 [dan nachbar.] The #insert code, I think, did what your pseudo-code would have done.
| + 387401 [bbxx789_05ss] It's pretty simple. It says, "Go to the position 2 in the array and
| + 387402 [josh.cheek g] Insert nil. There are lots of options for docs.
| 387419 [shortcutter ] And if the length should stay the same an additional array.pop will
| 387422 [josh.cheek g] Insert takes multiple arguments, also.
+ 387399 [bbxx789_05ss] There is no element in an array at the index array.length, and there is
^ hubeye gem: keep track of Github repositories for changes
387407 [luke.gru gma] Hey guys, I've been working on a little project (my first ruby gem!
387483 [luke.gru gma] Sorry for the repost, but if anyone downloaded this gem the other day
^ Ruby and XML
387408 [raiello acm.] I am new to Ruby and trying to use it to parse XML files so that I can
+ 387409 [steve stevek] Rexml is in the standard library, but is slow and awkward. Try
+ 387410 [matma.rex gm] First of all, I'd recommend you a different library. Personalyl I
+ 387411 [phrogz me.co] Welcome to Ruby. I concur with the other post that Nokogiri is even better than REXML.
+ 387412 [cwprogram li] Can you provide this test.xml file or a sample file like it=2C and what the=
+ 387420 [bbxx789_05ss] <?xml version="1.0"?>
387428 [phrogz me.co] require 'nokogiri'
+ 387429 [shortcutter ] You can even use an XPath expression to find names which do not have
+ 387431 [bbxx789_05ss] I couldn't figure out the syntax for xpath's following-sibling, but now
387441 [bob.aiello i] thanks for all of the excellent responses. I am going through them all.
387445 [phrogz me.co] For your consideration, below is how I would write a script to handle this. It creates a Hash storing names and key/value pairs; when the same key is seen again with a new value, it keeps track of all values seen as an array. The "SourceFile" module associates with each value string the file that it was defined in, so that you can later see where the values were defined. Use a module for this is both tricky
387446 [phrogz me.co] the