282277-283016
282026-284971 subjects 282484-283809
^ Capturing STDOUT from a system call (POSIX) into an array
282277 [venkatesh.ma] What's the best way to capture STDOUT into an Array? I looked at
+ 282279 [phrogz mac.c] lines = `ls -l`.split( /\n/ )
| 282282 [venkatesh.ma] Thanks for your quick reply. I realize that you don't even need to use
| + 282288 [alexg kuicr.] I'm not so sure about that last comment. As far as I know backticks
| | 282297 [venkatesh.ma] Thanks for your reply. It works now. I was looking for the method
| | 282301 [venkatesh.ma] Also, I tried collect! method earlier, but didn't know how to apply
| | 282362 [sepp2k googl] map and collect are the same. As are map! and collect!.
| + 282384 [kbloom gmail] `cat /tmp/test.txt` will create a single string.
| 282397 [venkatesh.ma] Thanks.
| 282456 [MonkeeSage g] You can always use shell redirection to redirect stderr to stdout...
+ 282284 [kbloom gmail] You can use the IO objects returned by popen3 in any way that you'd use a
282287 [venkatesh.ma] Actually, the output is not in a file. The output is generated by a
^ Reasons to use a buffer in IO::read?
282291 [midgley.stev] I'm wondering what the functional and performance differences might be
282296 [MonkeeSage g] $ ri IO#buffer
282477 [midgley.stev] buffer = io.read
+ 282481 [MonkeeSage g] I don't know if there is any optimization is the back end, but it lets
| 282506 [jan.svitok g] I'd *assume* the former saves you a bunch of allocations when looping
| 282518 [MonkeeSage g] I'm not the smartest C programmer (or the smartest anything
| 282520 [MonkeeSage g] Oh...wait...I'm completely dense. Duh! io_read() is going to create /
| 282526 [shortcutter ] LOL
+ 282505 [shortcutter ] This line above is completely superfluous.
^ Ruby method to strip out XML codes?
282294 [_mwryder wor] I am trying to process an XML file that includes various codes. The
282306 [phrogz mac.c] On Dec 5, 6:13 pm, "Michael W. Ryder" <_mwry...@worldnet.att.net>
282325 [_mwryder wor] My problem is that the XML file includes 
 in the middle of a
^ [ANN] Rails/Informix 1.1.0 released
282302 [gerardo.sant] Rails/Informix is the ActiveRecord adapter for Informix.
^ Komodo debugger question
282304 [diegoslice g] I writing my first gem and have a question about how to set up Komodo
282318 [diegoslice g] Never mind. I found a better cross-platform way in the pickaxe 2nd ed.
^ Telnet - attempting to initiate a telnet session within an established telnet session
282309 [heath.novak ] My company builds a product that has a dual slot architecture for
^ Ruby Tk?
282311 [keeresarge n] I have started learning Ruby (on Debian Linux) and am at the point to get
282320 [nagai ai.kyu] If you already installed Tcl/Tk ('tcl' and 'tk' package),
^ FTP File download
282312 [cuiguy netwo] I am a Ruby Newbie
282338 [jan.svitok g] FTP#list gives you list of files, possibly with timestamps, and
282404 [robert.citek] Unfortunately, I can't get the example to work for me. Specifically,
^ How do I use Ruby 1.9 RC ?
282319 [ashutosh.amb] I downloaded Ruby 1.9 RC binaries (ruby 1.9.0 (2007-07-09 patchlevel
+ 282329 [d_rems yahoo] I guess this should not work.
| 282485 [ashutosh.amb] I tried that but did not work for me.
+ 282358 [brandon.g.jo] This is usually caused by the environment variable RUBYOPT. Remove
+ 282394 [luislavena g] SET RUBYOPT=
282486 [ashutosh.amb] Thanks a lot.
^ [ANN] Rassmalog 9.0.0
282324 [ snk gna.org] Rassmalog
^ Can we foresee any big changes for Ruby in year 2008?
282327 [songmash gma] I understand this question is a little bit "earlier" before Ruby 1.9.x debut
282359 [coder68 yaho] This is akin to a team that suffered, sweated, agonized over building a
282462 [songmash gma] Hey,
^ [ANN] character-encodings 0.4.0 has been released!
282335 [nikolai.weib] This is yet another "unstable" release, but you should be able to
^ Please Forward: Ruby Quiz Submission
282339 [vvangelovski] #!/usr/bin/env ruby
^ if /hello/ =~line
282340 [loftuz gmail] Got help with this code earlier its just checking a file for a line
+ 282342 [jeremymcanal] You can use string interpolation like you can with double quoted strings.
| 282345 [loftuz gmail] if /#{var1}/ =~ line
| + 282346 [jari.william] # is not a comment inside a regexp or string
| + 282349 [jeremymcanal] Though your IDE may think you're commenting out the whole line, you're
| 282353 [loftuz gmail] Thanks for explaining it
+ 282343 [ljjarvis gma] var = "hello"
282351 [jan.svitok g] Sometimes it's better to cache the /#{var}/ as in this case, new
+ 282356 [ljjarvis gma] True, you could use the Regexp class also then..
| 282412 [martindemell] # And don't miss the very useful Regexp.quote, which makes sure
+ 282372 [yermej gmail] You can also use the /o option, which tells Ruby to compile the Regex
282391 [jan.svitok g] Thanks, I didn't know that... Now I see it even in the first pickaxe
^ open browser
282344 [christian.ke] Is there a way to open a browser window from ruby, that works on
+ 282348 [fedzor gmail] Check out launchy. Its good for opening native applications.
| 282354 [christian.ke] I installed this launchy gem and it works in general, but obviously not
| + 282376 [fxn hashref.] command = windows ? 'start /B' : macosx ? 'open' : '???'
| | + 282429 [ara.t.howard] it's called 'htmlview'
| | | 282432 [fxn hashref.] Is it normally installed?
| | | 282437 [ara.t.howard] it's pretty common - but not universal. i would think something like
| | | 283015 [jeremy hineg] Yup, this is sort of what launchy does on linux. Its a bit more
| | + 282471 [vjoel path.b] kfmclient exec <url-or-file>
| + 282427 [tanner.burso] On Dec 6, 2007 6:47 AM, Christian Kerth <christian.kerth@dynamicmedia.at>
| 283016 [jeremy hineg] launchy does the forking internally for those OS's that support it.
+ 282352 [dangerwillro] Not really easily.
+ 282497 [peter.bunyan] I'm not 100% sure, but I think you can just launch a URL in Windows and
^ Fwd: Please Forward: Ruby Quiz Submission
282347 [james graypr] ...
^ [SUMMARY] Postfix to Infix (#148)
282350 [james graypr] The big advantage of postfix expressions is that they are built with a stack in
^ Ruby and boogers
282361 [tmpmaster gm] Found a commercial where Java Duke is contemplating about Ruby while
282365 [rick.denatal] Yeah but he still doesn't get it.
282400 [jan.svitok g] Right. Perhaps he'll learn about duck typing someday ;-)
282658 [cjs cynic.ne] Static typing is infinitely superior to dynamic typing when done
282844 [dido.sevilla] T24gRGVjIDgsIDIwMDcgMTA6MjkgQU0sIEN1cnQgU2FtcHNvbiA8Y2pzQGN5bmljLm5ldD4gd3Jv
+ 282850 [shevegen lin] Dynamic typing is infinitely superior to static typing when done
+ 282895 [cjs cynic.ne] Yes. I'm quite fond of Haskell.
^ how(where) to define a method that to be called by views?
282363 [ as hut.at] I just dabbed Ruby on rails abit and what to know where is the right place
+ 282367 [rick.denatal] Yes that's what helpers are for.
+ 282369 [brandon.g.jo] [code]
282370 [ as hut.at] thanks you guys for your prompt answers!!!, you are of great help. I am in a
^ opc_connect
282364 [manjunath si] Please any one can help me regarding this problem. My problem is , I
^ Watir: how to get the url in a frame
282371 [mario betwar] class GiveMe(frame)
282865 [mario betwar] No ideas?
^ function like "function_exits"
282373 [fred.girard ] how to know if funtion exists ?
+ 282385 [ljjarvis gma] This is a method..
| 282461 [MonkeeSage g] a.methods.include? is normally spelled a.respond_to?
+ 282493 [peter.bunyan] A method and a function are the same thing. Also, check this out.
+ 282509 [fred.girard ] Thanks a lot Peter, it's the answer i m looking for;)
| + 282511 [alex blackke] In Ruby, it is not possible for a function to exist without being
| | 282512 [fred.girard ] this explains that:)
| + 282513 [jari.william] def foo
+ 282524 [alex blackke] irb(main):001:0> def foo
282529 [MonkeeSage g] Toplevel methods are implicitly added as private methods of class
282545 [fred.girard ] => nil
282549 [MonkeeSage g] But you don't really want that... ;)
282553 [fred.girard ] No it's ok, i am happy with that, if i really want, i can merge these 2
282561 [MonkeeSage g] Your english is fine. :)
^ regular expression. newbie problem.
282374 [stu_09 hotma] i know this is a pretty basic problem but im a newbie so any help would
+ 282378 [brandon.g.jo] You can achieve this with ease by better utilizing Ruby's string
| 282379 [stu_09 hotma] thank you very much for your help
| 282380 [ljjarvis gma] class Name
| + 282382 [ljjarvis gma] Sorry, I didn't realize you didn't want middle names aswell, I kinda
| + 282387 [stu_09 hotma] the class looks good
| 282388 [ljjarvis gma] class Name
| 282390 [stu_09 hotma] hmm still being unsuccessful
| 282392 [sepp2k googl] You are aware that you are trying to input ruby code into a unix shell, yes?
| 282393 [stu_09 hotma] yes
| + 282395 [ljjarvis gma] You need to require the file with the Name class in it.
| + 282396 [stu_09 hotma] working
| + 282398 [sepp2k googl] You enter ruby code in irb. name.rb is not valid ruby code (well, it could be
| + 282494 [peter.bunyan] Would I be a terrible person if I laughed at these?
+ 282381 [w_a_x_man ya] p "Chidiock Tichborne".strip.match( /^(\S+)( +\S.*)? +(\S+)$/ ).to_a
^ Blowfish and Rails
282375 [ramyarams gm] I'm working on encrypting some data using blowfish. My Client uses php
^ Too many open files causes Mechanize/Net::HTTP to timeout?
282389 [gabe-rubyfor] I'm experiencing an issue where my get/submit calls to the Mechanize
^ [ANN] main-2.6.0
282399 [ara.t.howard] NAME
^ IE7 and ror problem
282406 [ramyarams gm] I'am trying to redirect the user to the login page if the user is not
282424 [peter.bunyan] Hmmm... check out the HTML source that the code generates. Also, you
^ Preferred way to overwrite an object method?
282407 [blogger pier] I have an app with source code I really don't want to touch, which has
282416 [blogger pier] Ahh, much better. I had missed remove_method. In my case, there is
^ Custom error handling question
282410 [anton si.on.] I'm trying to port something I've done in Perl to Ruby and am getting
282441 [anton si.on.] Some enlightenment.
282488 [m_goldberg a] Is the 'puts "Caught #{e.message.to_s}"' being called? Do you see
^ Re: Worth an RCR? static_type_check, polymorphic_type_check,
282411 [apeiros gmx.] While I mostly agree with what you say: if somebody defines
+ 282419 [dblack rubyp] => true
| 282538 [rick.denatal] While this last example might strike some, heck even me, as silly, it
| 282546 [MonkeeSage g] That's also a great use case for what I was talking about in my last
| 282570 [rick.denatal] But that kills the duck.
+ 282659 [cjs cynic.ne] Not always, as others have pointed out on this thread. Still, good
^ array iterator that have more arrays that also need iteratio
282413 [coder montx.] In my new introduction to RoR and Ruby, I'm stopped again ...
282415 [fxn hashref.] Looks like you have a collection of InvoicesCalcul, each of them with
^ sorting Array of accentuated Strings
282414 [unbewusst.se] class String
282434 [dan zeraweb.] On Dec 6, 11:36 am, unbewusst.s...@weltanschauung.com.invalid (Une
+ 282677 [unbewusst.se] Une Bñ×ue
| + 282678 [rishabhshri ] Une Bév
| + 282693 [MonkeeSage g] On Dec 8, 1:09 am, unbewusst.s...@weltanschauung.com.invalid (Une
| + 282697 [AEtzold gmx.] Besides that, the problem of sorting accented strings seems to be
| | 282699 [MonkeeSage g] ust like in Swedish, where <A-DIAERESIS>,<O-DIAERESIS> are also used (but co=
| + 282719 [unbewusst.se] yes, for sure, but, in order to compare F to i've to know F uses only
+ 282685 [unbewusst.se] <ftp://ftp.mars.org/pub/ruby/Unicode.tar.bz2>
^ Re: array iterator that have more arrays that also need iter
282417 [coder montx.] thanks ...
+ 282420 [coder montx.] a.each_value {|value| puts value }
+ 282421 [fxn hashref.] @temp_result is already an array of ARs.
282423 [coder montx.] @arr.push(@temp_result)
282430 [fxn hashref.] invoice_calculs.map(&:attributes).map(&:values)
282436 [coder montx.] I'm sorry but I don't understand ...
282438 [fxn hashref.] The version with flatten gives you all the values in a row in a single
282443 [coder montx.] values = @arr[0].map do |ic|
282448 [fxn hashref.] But why do you put a trace at that point? Of course a is a hash there,
282500 [coder montx.] Now I see where was my error ... I was using the variable a instead of
282503 [MonkeeSage g] Hashes are unordered in ruby 1.8. The best way to guarantee you always
282504 [coder montx.] thanks for the explanation, I see I have to learn more Ruby ...
^ Re: Lambda funcs that call gets won't halt program execution
282422 [peter.bunyan] William, you're a brilliant person. You win. You're wintastic, in fact.
282425 [w_a_x_man ya] I've scratched my head because of this behavior, too.
^ Modulus and Exponent
282426 [shandybleu y] Is there a way to get the modulus and exponent from an key, or is there
282642 [adam.boz gma] It's in ext/openssl/ossl_pkey_rsa.c:ossl_rsa_get_params
^ rails form help needed
282439 [junkone1 gma] For some reason my selct shows <option value="#<Tag:0x47f52e8>"
282452 [ryand-ruby z] please redirect this question to the ruby on rails mailing list.
^ [ANN] systemu-1.2.0
282440 [ara.t.howard] NAME
^ [ANN] punch-0.0.1
282442 [ara.t.howard] NAME
^ Newbie ruby wonderment.
282444 [none nowhere] Nothing important here, just wondering.
282445 [ljjarvis gma] Ruby, like Perl, reads the code line by line, the same as you write it..
+ 282474 [none nowhere] Sorry, but I have to disagree. (That is, if you are saying that Perl has
| + 282491 [peter.bunyan] They don't have 'compiling structures' - they're interpreted languages.
| + 282498 [MonkeeSage g] Seems that perl parses the entire file first, before it runs any code.
| | 282552 [ihatespam ho] This is interesting 'cause Python is "compiled at runtime" (as Lee
| | 282556 [MonkeeSage g] On Dec 7, 8:12 am, "Just Another Victim of the Ambient Morality"
| + 282499 [ljjarvis gma] Yeah sorry, I went out for dinner after saying that and realized I was
+ 282558 [phrogz mac.c] digit = rand 9
^ [OT] Re: Newbie ruby wonderment.
282446 [james graypr] Sorry for slipping off-topic.
^ [ANN] search-0.0.1
282447 [ara.t.howard] NAME
282469 [rsanheim gma] Inspired by ack?
282476 [ara.t.howard] yeah i blogged that a while back
282559 [rick.denatal] Hmmm, something must be in the air. Shortly after reading this, my
+ 282611 [ara.t.howard] funny. for me it has been rails that's caused the change: too dang
+ 282639 [steven lumos] Also http://www.incava.org/projects/glark/, which is Ruby.
^ Re: punch-0.0.1
282449 [ymendel pobo] Very nice, Ara.
282450 [ara.t.howard] glad to hear it. encoding a schema version into the yaml file so
282464 [ymendel pobo] I accept a certain risk when I start using not-actually-released
282466 [ara.t.howard] ;-)
^ help with has_and_belongs_to_many
282453 [junkone1 gma] class Trade < ActiveRecord::Base
282496 [peter.bunyan] Well, first off, you forgot to end the Trade class. And you forgot to
282522 [junkone1 gma] i tried that but does not work.
282563 [rick.denatal] You don't replace a habtm relationship with an assignment, you add to it
282575 [junkone1 gma] thanks. how do you do the reverse. if i want to remove an existing
282582 [rick.denatal] a.tags.delete(z)
282583 [junkone1 gma] thanks a lot.
^ Re: character-encodings 0.4.0 has been released!
282460 [MonkeeSage g] On Dec 6, 3:39 am, "nikolai.weib...@gmail.com"
^ Re: search-0.0.1
282463 [MonkeeSage g] Nice. Playing with it now.
282467 [ara.t.howard] ooooops. thanks!
282478 [MonkeeSage g] NP. I really like this package, BTW. :)
282479 [MonkeeSage g] Not sure what the difference in performance is with Find#fidn vs.
+ 282483 [MonkeeSage g] Testing on a few different directories and filter patterns, the
| 282610 [ara.t.howard] i'll incorporate something like you suggest and re-release. thanks
+ 282801 [ara.t.howard] that's kind of interesting - why not simply
282817 [MonkeeSage g] Cause I'm not smart, hehe. That works fine.
^ [ANN] csspool 0.2.4 Released
282468 [aaron tender] csspool version 0.2.4 has been released!
^ cursed curses
282475 [hramrach cen] SGVsbG8KCkZvciBtZSwgdGhlIGN1cnNlcyBleHRlbnNpb24gaXMgcXVpdGUgZmxhd2VkLgoKSSBj
threads.html
top