363354-381295

363167-371429 subjects 363527-376582

heads-up for arch linux users: rvm installer workaround
363354 [martindemell] Anyone on arch linux planning on using rvm, note that the installer
363359 [transfire@gm] Personally I don't understand why rvm uses so much bash scripting.
363362 [james@gr ys ] Because you don't want to have to have Ruby installed to install Ruby.  =

RDoc and HTML5: 'tt' -> 'code'
363357 [transfire@gm] I read that HTML5 has deprecated the <tt> tag. In that case I suggest

AS400 database connectivity(aka iSeries, i5, System i)
363360 [frankkany@ci] I am looking for a working open-source RUBY example that demonstrates
+ 363361 [sophrinix@gm] I had to interface with Quadra Star  (a non relational DB from the early 80s
+ 363363 [rahegge@gm i] Here is the first hit on google for AS/400 ruby... you can check it out

Ruby confused about current directory?
363364 [brian.hartin] Something is wrong with my environment such that ruby occasionally gets
+ 363366 [Gennady.Byst] It looks like the difference in invocation -- first system() command invoke=
+ 363367 [luislavena@g] Your co-workers are using XP too?
  363368 [brian.hartin] Thanks for replying.  Yes, they are using Windows XP.  My values for
  363380 [brian.hartin] This is an environment issue, not a Ruby issue.  I have narrowed it down
  363385 [luislavena@g] Console or anything like that?

RubyInline folder
363369 [brgsousa@gm ] "# gem install RubyInline" installs its files in /root/.ruby_inline
363373 [paul.p.carey] I don't have it locally so I can't check, but it may well be INLINEDIR.
363375 [monty@vm ar ] It is indeed INLINEDIR
363381 [brgsousa@gm ] Using a certain rails app, I was having problems with permissions

ADSENSE ACCOUNT ONLY $5 WITH IN 4 HOURS
363371 [magguri.devi] ADSENSE ACCOUNT ONLY $5 WITH IN 4 HOURS

[ANN] Win32::Screenshot (old name win32screenshot) 0.0.4
363376 [jarmo.p@gm i] I've taken over a gem called win32screenshot from Aslak Hellesøy and
364030 [tcblues@gm i] I'm trying to download this gem but now it's not possible anymore.
364037 [jarmo.p@gm i] What do you mean it's not possible to download?
364042 [tcblues@gm i] Posted via http://www.ruby-forum.com/.

permissions problem when running Ruby
363378 [beverley.hin] I am having a permissions problem which no one else on the developement
+ 363386 [vikkous@gm i] This is just a shot in the dark, but could it be because you have a
| 363406 [beverley.hin] I tried removing the space and that didn't help.
+ 363387 [data@qu nt m] If you are using Vista or newer you might want to turn UAC off to see if
  363408 [beverley.hin] I am running Windows XP Professional.

[ANN] io_splice 1.0.0 - zero-copy pipe I/O for Linux
363383 [normalperson] The splice family of Linux system calls can transfer data between file

Get Google adsense account approval in 4 hours
363390 [harikasmiley] Get Google adsense account approval in 4 hours

Insecure operation - chdir
363391 [yanghatespam] #include <stdlib.h>
363444 [yanghatespam] To add to the confusion, the rake task runs fine from root's crontab.
+ 363448 [luislavena@g] You need to cd into the directory where the Rakefile is since most of
+ 363459 [ninja@sl ph ] Well, if the purpose of these things being enabled on setuid is to make it
+ 363598 [b.candler@po] $SAFE is set to 1 if the code is run setuid.

Ruby Core - Lambda function
363392 [cyril.staff@] I think it could be cool to call lambda function just like: λ
+ 363393 [shortcutter@] This might cause issues with encoding of the source code - I believe
| 363397 [piyush.pr@gm] okay I have seen this in clojure also. sigma and likes. Can you please tell
+ 363399 [vikkous@gm i] a=3D0
| 363402 [shortcutter@] or even
| + 363404 [sophrinix@gm] 2010/5/28 Robert Klemme <shortcutter@googlemail.com>
| + 363407 [vikkous@gm i] I meant it as mostly a joke, but I really do want a unicode keyboard
| | 363418 [kbloom@gm il] I think an optimus maximus keyboard would be what you want. Set the 10
| + 363425 [joelvanderwe] puts(*0...5)
|   363464 [robert.dober] I can beat you in pointlessness ;)
+ 363400 [transfire@gm] For that matter, if we're going by similarity, doesn't /\ look much

Append a file to another file
363409 [j_wu_76@ya o] What is the best way to append the content from one file to another
363410 [imphasing@gm] Just open the file in append mode, and write the contents of the file

Reports & Graphs
363411 [stuart.clark] Hey all,
+ 363413 [jason.lillyw] Ever considered Ruby GNUplot?
| 363414 [jason.lillyw] Posted via http://www.ruby-forum.com/.
| 363415 [jason.lillyw] Posted via http://www.ruby-forum.com/.
+ 363427 [joelvanderwe] RRDTool is nice if you are always plotting the last N seconds. The

A better way to write this function?
363412 [jason.lillyw] #c is the drag coefficent
+ 363423 [shortcutter@] Just a slight improvement
+ 363428 [vikkous@gm i] A couple small speedups. c/m never changes while the loop is running,
+ 363439 [joelvanderwe] Not quite pure ruby, but if it's acceptable to have a C backend, then
| 363683 [jason.lillyw] Thank you Joel.
| 363700 [joelvanderwe] Yes, that's the same thing (but there is no formal release on that site).
| 363952 [joelvanderwe] gem install redshift
+ 363703 [colinb2r@go ] Using C for the "fast" bits has been suggested.
| 363945 [brabuhr@gm i] of
| + 363956 [jason.lillyw] I'm sorry, can you tell me what Duby is? I tried looking it up and found
| | 363959 [brabuhr@gm i] Duby is a Ruby-like static-typed language with local type inference
| | 363960 [jason.lillyw] Thank you for the links. Duby is really fast. thanks.
| + 363964 [joelvanderwe] That is a very impressive speed-up!
+ 364024 [b.candler@po] def velocity(c, m, t, dt, v)

ANN: guirb 0.02: The return of fxirb
363416 [martindemell] * Application-configurable behaviour when IRB exits, so that it can be used as

Interrupting the evaluation of a ruby script
363417 [emmanuel.bac] Let's say I have a ruby script which first takes as an input a ruby
363447 [branden.tang] Ruby noob here. I think what technique you would have to use would be
363483 [emmanuel.bac] Thanks very much for your answer.
+ 363516 [branden.tang] * User can input a string of any length to be evaluated
| 364103 [headius@he d] JRuby threads are Java threads, which on all the common JVM
+ 363519 [vikkous@gm i] If this is what you want to do, you should probably use the Timeout
  363548 [emmanuel.bac] Thank you for both of you !!
  + 363549 [ddefrenne@gm] You might want to take a look at Eventmachine
  + 363559 [vikkous@gm i] What is the difference between 'kill' and 'interrupt'? Do you mean by
    363560 [emmanuel.bac] Nope.
    363564 [vikkous@gm i] MS documentation claims they have a posix-like signal(), which
    363568 [emmanuel.bac] What I know (having tried it) is that on ruby, only the signal Kill can

Hash : TypeError: can't convert Symbol into Integer
363420 [unbewusst.se] h = Hash.new  (same error with h = {} )
+ 363421 [unbewusst.se] h = {:path => "/Users/yt/lib/ruby-i386/"}
| 363424 [unbewusst.se] truc = info_for(h[:path])
+ 363422 [rick.denatal] You are calling info_for with h[:path] which is"/Users/yt/lib/ruby-i386/"
  363429 [unbewusst.se] Merci, j'avais vu ma connerie entre-temps )))

A complete beginners question
363426 [anthonywainw] Sorry this is probably going to be a real easy question but I am totally
+ 363430 [reid.thompso] puts 'Do you not think' + number.to_s + 'is a better number?'
| 363431 [anthonywainw] Thank for the reply but I am still getting the same error even after
| + 363433 [Rob@Ag le on] the problem is with number+=1
| | 363435 [anthonywainw] Thank you very much, that worked. And thanks for the explanation of how
| + 363434 [ondemannen@g] You need to convert the input from String to Fixnum
|   363436 [gonzalezgjai] puts "What is your favourite number?"
+ 363438 [angushammond] When you call gets.chomp it returns a string (lets say it's "5"). That
+ 363575 [ak@mi da la ] ...
  363577 [seeth@ye h. ] ...
  363579 [ywzhaifei@gm] puts 'What is your favourite number?'
  363581 [josh.cheek@g] You don't need chomp.
  363585 [wes@ve ti al] Let's not forget our double quotes.  Also why write so much code?
  363593 [martindemell] Because when you're learning to program it's nice to have stuff teased
  363622 [wes@ve ti al] Agreed Martin.  I should have chosen a better way to express that the code could be done more succinctly while at the same time pointing out what a more experienced ruby developer would do.

Dynamic SVG with Ruby/Tk
363432 [spam@jo an j] The example I'm looking for in regards to ruby/SVG differs from the
+ 363441 [arndt.roger@] Jeszra
| 363442 [spam@jo an j] Maybe I can read the file.svg, modify it, and then write it as a temp
| + 363446 [spam@jo an j] Jeszra looks like a GUI Builder - it's interesting, but really I'm just
| | + 363456 [paradisaeida] Ruby is the Right language for pretty much everything.
| | | 363458 [spam@jo an j] I agree - I was planning two applications, one in Ruby, and one in
| | | 363465 [arndt.roger@] I agree with Mark that SVG is important for web-deployment.
| | | 363469 [spam@jo an j] Long term I really need individual event handling on each node of the
| | | 363488 [arndt.roger@] SVG grants this type of access.
| | | 364088 [help@ra es l] Ok, I'm really drinking your Kool-Aid and really want to believe every
| | | 365032 [help@ra es l] If anyone is in the silicon valley area would be able to show me how to
| | + 363462 [arndt.roger@] There are no SVG-images, but you can use raster images inside of
| + 363461 [arndt.roger@] Yes,
+ 381295 [ahmed.eldawy] There's a new gem called Rasem.

Reusable Applications - Architecture Question
363437 [di3go.bernar] Some times i ask my self about reusable applications, ive build several

simple GUI framework - nothing fancy
363440 [jason.lillyw] I'm looking for a very basic GUI framework that would be useful for
363453 [transfire@gm] On May 28, 4:43=A0pm, Jason Lillywhite <jason.lillywh...@gmail.com>

Suggestion to design specific network client
363443 [ravenz@o2 ie] as in the object i need to realize a simple IPv6 multicast client. And I
363450 [vikkous@gm i] Um, maybe use threads? EventMachine ought to work too, but I can't
363451 [ravenz@o2 ie] yes i can use threads but, now i was wondering would a good idea to
363455 [vikkous@gm i] An observer feels wrong, idunno. Observer is not a

.rb security
363445 [ameliorable@] Wondering if possible to compile a ruby script to byte code that can be
+ 363449 [luislavena@g] You mean encrypt/lock your source code?
| 363452 [ravenz@o2 ie] Luis, i think you forgot to say: "And unless you compile the rb into a
+ 363506 [Ruby@Go gl M] Short answer: No, it doesn't.
  364102 [headius@he d] This has largely landed in 1.5.1, with improvements to follow in 1.6 I'm sure.

[QUIZ] Geometric Intersections (#233)
363454 [yahivin@gm i] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
363571 [andrea@an re] Hei everybody,

Source Code for puts(..)
363457 [derril.lucci] Dear all,
363463 [robert.dober] I am convinced that the reason lies in the shell command.

[ANN] Rainbows! 0.93.0 - MOAR!!!1
363460 [normalperson] Rainbows! is an HTTP server for sleepy Rack applications.  It is based on

1.9.3 Encoding Error w/ compressed data http request header
363466 [biot023@gm i] thought I'd post what I'm trying to do here & see what comes back.
363634 [aaron@te de ] Can you reduce the problem to code the breaks outside of your particular

Date.today problem on linux with Ruby 1.8.6
363467 [jarmo.p@gm i] I just installed Ruby 1.8.6 from source and then stumbled upon the
363473 [jarmo.p@gm i] Time.now works correctly
363474 [jarmo.p@gm i] Also, found one very similar problem, but no solutions...
363476 [wyhaines@gm ] I'm not able to reproduce this.  However, what version of GCC did you
363487 [jarmo.p@gm i] jarmo@jarmo-laptop:~/Downloads$ gcc -v
363491 [jarmo.p@gm i] i executed make test and it seems that some of the tests are also
+ 363495 [shortcutter@] If you are compiling from source anyway I'd probably switch to 1.8.7.
| 363503 [jarmo.p@gm i] By the way, doing every same move with 1.8.7 as i did with 1.8.6 works
+ 363497 [kubo@ji ba .] As far as I checked, ruby_strtod() in util.c is broken by gcc 4.4's
  363504 [jarmo.p@gm i] Thank you for this (insight|help)ful reply!

Reporting a bug how to ?
363468 [unbewusst.se] I got a "Segmentation fault" with open4.rb:65 (ruby 1.9.1p378
+ 363481 [ninja@sl ph ] =2E..which seems to be moderately active.
| 363485 [unbewusst.se] fine, thanks.
+ 363486 [ryand-ruby@z] You can either email ruby-core@ or file a ticket on redmine.

Non blocking IO during an AJAX request
363470 [zundra.danie] I realize this is a Ruby mailing list but I have a Ruby/Rails question that
+ 363471 [tony.arcieri] The semantics of pipes are somewhat tricky and definitely not ideal for this
+ 363472 [gwtmp01@ma .] that
  363477 [zundra.danie] The only value Fifo.open returns is the name of the pipe.  Since the pipe's

"uninitialized constant Encoding::UTF_8" in rb_require
363475 [o01eg@ya de ] When load script with rb_require I got error about Encoding constants.
363492 [o01eg@ya de ] Encoding.list return [#<Encoding:ASCII-8BIT>, #<Encoding:UTF-8>,
363498 [o01eg@ya de ] Fixed.

Another complete beginners question
363478 [equisigriega] tutorial, i am a beginner in ruby. My problem is that when i want to
+ 363499 [ravenz@o2 ie] It's ok, you want to run it as a normal command if i understand well.
+ 363501 [josh.cheek@g] # add a shebang to the top of a file called hello_world.rb
  363502 [ravenz@o2 ie] You're right, maybe my answer can get someone confused, to be 100% sure,
  363512 [equisigriega] the first line of code in the example i trying to run : "#!/usr/bin/env
  363517 [josh.cheek@g] Please follow the instructions above, exactly, and let us know whether the
  363518 [josh.cheek@g] If you are having difficulty following it, this is what it looks like on my

Inject Loop Syntax
363479 [transfire@gm] I wonder if any other languages have any sort of "multiplicative
+ 363496 [shortcutter@] This can never work because the string is evaluated before the method
| 363505 [transfire@gm] Yea, I didn't really expect it could be done in Ruby as it now stands.
| 363521 [wes@ve ti al] irb(main):074:0> class MyTest
| 363553 [transfire@gm] s + "def hello_#{var}?; puts \"hello_#{var}\"; end\n" }
+ 363500 [vikkous@gm i] Maybe you want something like python's array comprehensions? This is

Square Root
363480 [angushammond] Is there a way to get an accurate square root?
363482 [jeanjulien.f] le
363484 [angushammond] Thanks I had tried require complex and Math::sqrt but only separately.
363677 [jzakiya@gm i] lves

Windows XP can create a Rumhtml file but ruby cannot.
363489 [Dave.Hurrell] Windows XP can create a R=E9sum=E9.html file but ruby cannot.  Why?

Windows XP can create a Rumhtml file but ruby cannot.
363490 [Dave.Hurrell] Windows XP can create a R=E9sum=E9.html file but ruby cannot.  Why?

`require': no such file to load on Windows
363493 [toshiromibal] spec "C:\Ruby19\wwwjdic2db\spec\p4_importer_spec.rb"
363494 [toshiromibal] spec "C:\Ruby19\project4\spec\p4_importer_spec.rb"
363507 [toshiromibal] This is the default application that I've been trying to modify and run.
363510 [vikkous@gm i] Your error message indicates that a file named p4_importer.rb cannot

How to load code converters?
363508 [o01eg@ya de ] When I try to encode string in program I got
363509 [vikkous@gm i] require 'enc/koi8_r'
363511 [o01eg@ya de ] Ruby 1.9
+ 363513 [o01eg@ya de ] Solved. It has to require "enc/trans/transdb".
+ 363514 [vikkous@gm i] Did you try my suggestion or not?
  363515 [o01eg@ya de ] Yes, but as I say, it doesn't help me.

uninitialized constant error... trying to create a TCPsocket in a  module
363520 [dennis@co te] Okay, forget about the editor thing.. (;
363526 [vikkous@gm i] Spelled wrong, I guess. The correct name is TCPSocket, not TCPsocket.
363539 [dennis@co te] Thanks.  I looked at that for hours and didn't notice.  I take it the
363546 [shortcutter@] Capitalization of identifiers *always* made a difference in Ruby!
+ 363555 [joelvanderwe] $ ruby -v -r socket -e 'p TCPSocket, TCPsocket'
+ 363570 [dennis@co te] yes?  (;

Trouble with timeout
363522 [lukich@gm il] require 'rubygems'
363611 [walle.sthlm@] begin
363623 [lukich@gm il] I'll try it out, thanks!

Graphical programming with Qt
363523 [amirsanaii@g] How are you my friends?
+ 363532 [d_rems@ya oo] require 'Qt'
+ 363541 [han.holl@gm ] require 'rubygems'

enumerator problem in 1.9.1
363524 [amberarrow@y] [5, 7].each_with_index.each_cons(2) {|v| p v }
+ 363525 [vikkous@gm i] Works for me in 1.9.3. Maybe a 1.9.1 bug?
+ 363528 [botpena@gm i] you'll have specify the index, eg,
  363533 [shortcutter@] irb(main):009:0> [5, 7].each_with_index.map {|v| v }
  + 363534 [robert.dober] Even more so, as
  | + 363561 [amberarrow@y] Thanks for all the responses. Where do I pick up 1.9.3 ? I don't see it
  | + 363569 [amberarrow@y] Just checked the just-released 1.9.2-preview3 and it too seems to have
  |   363612 [robert.dober] I am afraid that is incorrect :(
  |   + 363613 [botpena@gm i] ...
  |   | 363615 [robert.dober] =A0 =A0 =A0 =A0 =A0 =A0 =A0 --> =A0|*a|
  |   + 363625 [amberarrow@y] ruby -ve '[5, 7].each_with_index.each_cons(2) {|a| p a}'
  |     363628 [robert.dober] Funny indeed...
  |     363635 [botpena@gm i] ah, ok, now i know where i'm confusing myself, and in turn, all of you  :)
  |     363643 [robert.dober] Do not be too harsh with yourself, the semantics of this are
  + 363538 [botpena@gm i] brain dead here.
    363544 [shortcutter@] [5, 7].each_with_index.each_cons(2) {|v| p v }
    363574 [botpena@gm i] LOL. ok i get it :)
    363594 [shortcutter@] No, this does not create an intermediate Enumerator.  For trying to
    363604 [botpena@gm i] no. it's me who is talking past. you're right on really :)
threads.html
top