301330-314161

301135-304473 subjects 301528-310692

^ capture output in real time
301330 [pwinward lbl] I'm wondering how to capture data written to stdout (or stderr) in real
301331 [ara.t.howard] popen3 is going to be using fork/exec under the hood and should
301351 [pwinward lbl] Thanks for the suggestion but I'm still having the problem.
+ 301399 [pwinward lbl] Another approach I had tried was to use IO.select, as shown in
| 301414 [pwinward lbl] I found a perl solution at http://www.perlmonks.org/?node_id=305812 that
| 301424 [ara.t.howard] pty is supported and the dist has a bunch of demo code in it (ext/pty/
+ 301425 [ara.t.howard] if the child program makes a call to setvbuf (as ruby does) there is
  301567 [pwinward lbl] Thanks for the pointers. I wasn't aware of setvbuf.  I'll look more into

^ Compare :  Testking v Testinside v Killtest Q&A
301332 [7692550 qq.c] Compare :  Testking v Testinside v Killtest Q&A
301340 [ben bleythin] So uh... what are you talking about?
301342 [cmdjackryan ] It's spam.

^ Do strings from rb_str_new and friends need to be free'd?
301336 [steven zensa] I have some C native code that calls a logging class written in Ruby. To
301338 [matz ruby-la] The latter.  You don't have to (and you shouldn't) free string
301438 [steven zensa] Ah, cool. Thanks, Matz!

^ RailsConf Registration for auction
301339 [mgregory22 g] I registered for O'Reilly RailsConf, but I can't make it, so I'm

^ open web page from Ruby Tk app
301341 [edeleflie gm] All,
301353 [bbxx789_05ss] require 'tk'

^ Rumors about Twitter dropping Rails because of scalability?
301343 [znmeb cesmai] I need to have a talk with Dr. G. :)

^ (none)
301345 [minstrel.yin] # unsubscribe

^ [Mac OS X] rubygems and wxRuby
301356 [unbewusst.se] #! /usr/bin/env ruby
301358 [alex deletem] As the wiki states, it's better to start with the samples bundled with
301360 [unbewusst.se] Thanks for all.
+ 301362 [unbewusst.se] ~/work/Ruby/wxruby%> sudo gem install wxruby --version '>= 1.9.6'
+ 301365 [alex deletem] What version of OS X are you using?
  301368 [unbewusst.se] 10.4.11
  301370 [alex deletem] If you're using 10.4, you'll need to use wxRuby version 1.9.4 or later.
  301373 [unbewusst.se] OK, i did subscribe to it.

^ [Mac OS X] problem with cgi
301357 [unbewusst.se] i'm using cgi under mod_ruby with Apache2.

^ Give you a good recommendation
301361 [cindyxwalden] This firm guarantee the finest prices on the Web for these fine quality

^ Format natural date
301363 [johnnybutler] Is there a way to format a natural date like May 7, 2008 to 07/05/2008.
+ 301374 [shortcutter ] You seem to want to _reformat_ a date string.  But the code you show
+ 301375 [caduceass gm] Yes, but I don't know why you would want to.
  301376 [johnnybutler] Ok i see, i didnt explain myself properly, i wanted to turn "May 23,

^ "capitalize" also letters after "-" ?
301378 [ibc aliax.ne] content-language
+ 301379 [list.push gm] , but
| 301381 [ibc aliax.ne] Benchmark.realtime {   "accept".capitalize   }
+ 301382 [dblack rubyp] This message is in MIME format.  The first part should be readable text,
  301383 [ibc aliax.ne] Benchmark.realtime {   "accept-asdasd-qweqwe".split('-').map {|w|=20

^ Net::SSH 'channel_failure: 0' Error on Remote Host
301380 [disposable77] I am having trouble with the Net::SSH:start() function on one device,
301498 [globyy3000 h] Net::SSH 'channel_failure: 0' Error on Remote Host
+ 301710 [disposable77] I tried you suggestion of changing the command to execute in the
+ 301712 [globyy3000 h] Net::SSH 'channel_failure: 0' Error on Remote Host
  304563 [disposable77] I figured out the answer to my original post. I used the PuTTy SSH

^ ruby keyboard commando switch off
301384 [hein_dauven ] I'm not really a master with ruby, so I would nicely want to ask if
301392 [hein_dauven ] I heard it was possible but I didn't find anything yet, maybe someone
301418 [hein_dauven ] Ok I am now this far
301463 [dangerwillro] H. D.

^ ruby imap: can't login to server a second time
301393 [mark fishlad] I have a courier imap server which i can log into and do all the things

^ How to tell if script running under rubyw vs ruby?
301402 [joe.swatosh ] I spent some time poking around in Config, but so far this is the the
+ 301415 [sean.ohalpin] As you've found out, stdout doesn't work under rubyw because all three
| 301445 [sepp2k googl] Alternatively you could check for STDOUT.closed? or !STDOUT.tty?
+ 301466 [nobu ruby-la] It depends on what you want to know.  If it is
  301515 [joe.swatosh ] Thanks Sean.

^ (none)
301403 [paqualou1380] unsuscribe=0A=0A__________________________________________________=0ADo You=

^ Profiling tool with GraphViz or similar?
301406 [evan tiggerp] In the PragProg Advanced Ruby Studio today, we were discussing
+ 301408 [rogerpack200] bleak house, ruby-prof has a memory extension and allows for
+ 301411 [znmeb cesmai] What do you mean by "memory profiling?"
+ 301520 [ryand-ruby z] Please don't hijack threads. Start a new mail thread like a good person.

^ Rbplusplus gem problem
301421 [AEtzold gmx.] Dear all,
301426 [th tp1.rub.d] I've got the same bug.
301427 [AEtzold gmx.] Thorsten,

^ Sharing variables between classes and instances
301432 [leon tim-onl] What I'm trying to achieve: add a variable to a class. Fill it with
301434 [dblack rubyp] I'm not sure what you mean exactly. Do you mean each instance should
+ 301457 [leon tim-onl] Thanks David. That's a whole lot simpler. I think I'll stick with your
| + 301462 [albertschlef] btw, you can simply do @@var to have a var that is shared among objects
| | 301465 [rick.denatal] There be dragons!  Class variables (@@var) in Ruby are also shared by
| + 301464 [rick.denatal] You might also want to have a look at the class_inheritable_accessor
+ 301480 [ara.t.howard] careful, any ruby code that uses 'dup' or clone has serious bugs 9 out

^ Re: How to update a file?
301433 [bbxx789_05ss] contents = IO.read("data.txt")

^ IO#putc writing 2 bytes?
301439 [cg1161 gmail] Hey all, thanks for reading. Today is my first attempt at getting some
301442 [jos catnook.] Looks like you are on Windows. Try opening @SaveFile in binary mode (@SaveFile
+ 301446 [cg1161 gmail] Ah ha! Indeed I am on Windows. I knew about the LF to CRLF conversion,
| 301467 [nobu ruby-la] It's just a curse of CP/M. (sorry, but couldn't resist... :)
+ 301447 [bbxx789_05ss] Why would that help?  The output in the file is 0A 0D, which is a
  301460 [eleanor game] Because he's not reading or writing 'a' (ASCII character 97) but the
  301469 [bbxx789_05ss] I don't understand where the op is writing the LF character?  It's
  + 301470 [bbxx789_05ss] Furthermore, all that opening the file in binary mode does is prevent
  | + 301475 [jfs.world gm] Re-Read that original post again. And I do mean re-read it again. From the
  | + 301541 [overlord gmx] Well, that's '\r', '\n' is 0x0a or 'a'.hex.
  + 301545 [vidar.hoksta] Vidar
    301571 [bbxx789_05ss] Thanks.

^ Either gem or rails is borked.  Still.
301449 [ttmrichter g] $ gem install --rdoc --ri --verbose rails
303755 [rogerpack200] Maybe file a bug report on rubygems' tracker.

^ Erasing text from a file
301451 [lucaslevin g] To me it seems it should be a rather obvious thing, but no matter where
+ 301452 [andrea.fazzi] File.open('file.txt', 'w') { |file| file = nil }
| 301455 [lucaslevin g] That reopens the file. Is there a way to do it without reopening?
| 301458 [sepp2k googl] The "file = nil" part is completely unneccessary. You can just do
| 301459 [andrea.fazzi] Ok, thank you :-)
+ 301461 [decoux moulo] perhaps File#truncate
  301508 [lucaslevin g] The documentation says this is platform specific, which I'd like to

^ validation of date_select
301453 [kim-isabell ] I'm new to ror. I need to check a date in a form.
301454 [cmdjackryan ] Though, you might want to ask the Rails community about this and Other
301456 [kim-isabell ] Thanks. I'll post my question there.

^ [ANN] Ruby-GetText-Package-1.91.0
301468 [mutoh highwa] Ruby-GetText-Package-1.91.0 is now available.

^ [ANN]  Monday May 12:  Phoenix Ruby User Group Meeting
301474 [james.britt ] May Phoenix Ruby User Group Meeting

^ soap4r with digest authentication
301477 [ryan.quinlan] I've been trying to get digest authentication working for soap calls for
+ 301684 [ryan.quinlan] Anyone? I'd really appreciate the help.
| 301686 [cmdjackryan ] Wild guess: You are using SSL where you shouldn't, or you aren't using
| 301703 [ryan.quinlan] Phillip,
+ 311515 [sb_poulsen y] I have a bit of information, if you are still working on this.
+ 314154 [david.medine] Are you running into this issue? I am trying to perform basic
  314156 [ryan.quinlan] Yup, still getting the same error.
  314157 [david.medine] I'm collaborating with a Ruby expert tomorrow to see if we can't find a
  314161 [ryan.quinlan] That would be great. Let me know how it turns out.

^ Re: testing stdin for bad encoding, ruby 1.9
301483 [alex deletem] I use IConv in the standard library to convert from UTF8 to UTF8 to test

^ Extracting HTML
301484 [jordi.aragon] I have a problem, and I can't find the solution.
301486 [dandiebolt y] require 'hpricot'
301488 [jordi.aragon] learn a lot from Ruby and his libraries...

^ Expected XYZcontroller.rb to define XYZ
301485 [rajat79 gmai] I have a page - http://www.pilotoutlook.com/flying_club/dosearch
301487 [jos catnook.] One scenario: flying_club_controller.rb require's some file (perhaps in a

^ PHPMYADMIN|MySQL5|RubyonRails|Apache
301489 [baxter baxte] This is the configuration I am trying to use , but I am kinda in a spot
301500 [cmdjackryan ] The servers Rails uses for development (Mongrel, Webrick, depending on
301510 [baxter baxte] Yeah..hmm.. well apparently the version of Ruby does a lot more than I
301511 [baxter baxte] oh yeah also to correct what I said at first ,

^ [FA] RailsConf Registration
301491 [mgregory22 g] I registered for O'Reilly RailsConf, but I can't make it, so I'm

^ [ANN] gchart 0.5.0 Released
301492 [jbarnette gm] gchart version 0.5.0 has been released!

^ Container wont contain! (noob question)
301493 [bengalyean h] Here I want to change Class1's var2 to equal 2. Now, I can do this by..
+ 301494 [sandro.pagan] MMH... you can try add this function to M_class
| 301496 [bengalyean h] Wow, didn't know about that =() function. Thanks for the help
| 301497 [bbxx789_05ss] class Dog
+ 301495 [bbxx789_05ss] class Class1

^ Array#uniq with Hash elements... can't remove duplicates
301501 [myemail fatt] I am having some trouble trying to remove duplicate data from an array
+ 301503 [lopx gazeta.] class Hash
| 301524 [myemail fatt] Thank you !
+ 301505 [ shot hot.pl] shot@devielle:~$ irb

^ Work in Perth (Australia)
301504 [phillipsds y] ew years working for Customs in Canberra. =0AIs there anyone here from Pert=
301711 [steven zensa] I am currently in Brisbane at the moment, but I actually grew up in Perth

^ A site for all your programming language needs
301507 [varshinirs g] A complete tutorial for all your programming language needs such as

^ [ANN] mechanize 0.7.6 Released
301512 [aaron tender] mechanize version 0.7.6 has been released!

^ problem finding purelib.rb when compiling Ruby 1.9
301514 [stephen.bann] I'm getting errors that purelib.rb can't be found compiling Ruby 1.9

^ create groups with ruby-net-ldap
301516 [callmervd gm] I would like to ask if it's possible to add new groups in active
301518 [callmervd gm] 1. Is there a way to change the user's group("OU") or assign to
301553 [damnbigman g] Yes you can create groups in AD with ruby-net-ldap.
301599 [callmervd gm] really? could you show me a code snippet on how to create
301605 [callmervd gm] I was able to create groups using ruby-net-ldap.
301609 [callmervd gm] My only concern now is to assign user from one OU(Organizational Unit)
301641 [damnbigman g] From my understanding there is no direct way to do that in the LDAP
301716 [kou cozmixng] Thanks,
301752 [damnbigman g] That will only change the cn portion of the dn.  You can't change ou's with

^ rubygems-update and Mac OS X 10.4.11
301517 [unbewusst.se] $ sudo gem install --local rubygems-update
301522 [ryand-ruby z] % sudo update_rubygems
301539 [unbewusst.se] ~%> sudo update_rubygems
301729 [ryand-ruby z] % sudo gem update --system

^ Re: Huge performance gap
301519 [rogerpack200] My question is what does 1.9 exactly do with its "Inline (Method)
301546 [vidar.hoksta] There's a huge amount of room for improvement in the still. I haven't
301603 [charles.nutt] I've experimented with PICs in JRuby, and for most tests I ran they did
+ 302758 [rogerpack200] Maybe something is possible along the lines of
| + 303629 [charles.nutt] Yeah, I'm looking into those possibilities, trying to find a
| | + 303630 [rogerpack200] One option that YARV could use is compiler definitions. :)
| | + 303645 [shortcutter ] That's an interesting idea, but I'd rather separate Ruby code from
| + 303679 [charles.nutt] - Most of the optimizations I'm trying to specify are not compatible
+ 303757 [pbrannan atd] Similar speedups with ludicrous, which isn't even very smart about its

^ Re: ruby wish-list
301521 [rogerpack200] All right ruby-genie.  My next wish!
+ 301530 [shortcutter ] My next wish: yeah, you guessed right.
+ 302766 [rogerpack200] Back to the wishing well...
  302778 [shevegen lin] I have a big wish :)
  + 302935 [davebass mus] I really wish I was forced to declare all my variables.
  | 302937 [rogerpack200] why do you wish for that?
  | 303009 [davebass mus] declare x1 = 0
  | 303040 [mark mwilden] This will be caught the first time you try to read x1.
  | 303260 [rogerpack200] gem install package_name --checkout_latest_svn_trunk_and_build_it
  | 303280 [ snk gna.org] Not everyone uses Subversion. :)
  | 303285 [ninja slapha] No reason it has to be SCM-specific.
  | 303299 [ snk gna.org] From my understanding of the problem, implementing this kind of feature
  | 303316 [ninja slapha] Make RubyGems pluggable, in some sense, if it isn't already.
  | 303583 [rogerpack200] Seems like minimalistically you'd need
  | 304923 [rogerpack200] my latest wish
  | 306227 [rogerpack200] Doh that one's in facets already :)
  | 306230 [rogerpack200] Yeah /* comments */ would be sweet.  Then you could also have 'inline'
  | + 306238 [dpalacio uni] other
  | | 306239 [rogerpack200] That would work, but forces you to insert line breaks per comment, which
  | | 306443 [rogerpack200] I wish that backtraces had more information, and could also display
  | | 306952 [rogerpack200] rescue => e
  | | 306957 [rogerpack200] My thanks to the 1.9 team, who allowed for "abc\x14" style string
  | | + 307236 [rogerpack200] I wish we had Fiber.root method in 1.9 :)
  | | + 307367 [nobu ruby-la] Of course, it's been possible also in 1.8 or earlier, even in 0.95.
  | |   308521 [rogerpack200] Nice.
  | |   308523 [Rob AgileCon] Granted!
  | |   308530 [rogerpack200] Thank you genie!  That's like my 4th wish granted, and one created! You
  | |   + 309105 [rogerpack200] That 1.9 had a dissassemble command that worked, or some way at the
  | |   | 309121 [rogerpack200] Wish I could 'steal' methods from classes.  Without using parse_tree,
  | |   + 309129 [rogerpack200] Or rather wishing that alias weren't a compiler keyword but just a
  | |     309161 [transfire gm] ++1
  | + 309196 [robert.dober] D=E9j=E0 vu?
  + 302936 [rogerpack200] +1 on wishing for tons of documentation and examples.
    302947 [TimHunter nc] My mother used to say "Wish in one hand and spit in the other. See which

^ Convert integer to array?
301525 [kaepora mac.] x=1234
+ 301526 [raasdnil gma] irb(main):001:0> x=1234
| + 301535 [dblack rubyp] That's an array of strings rather than integers, though. See my other
| + 301791 [globyy3000 h] x=1234
+ 301527 [botp delmont] RnJvbToga2FlcG9yYUBtYWMuY29tIFttYWlsdG86a2FlcG9yYUBtYWMuY29tXSANCiMgTGV0J3Mg
| 301529 [lokesh_agraw] Integer to Array
+ 301531 [shortcutter ] x.scan /\d/
| 301621 [shortcutter ] x.to_s.scan(/\d/).map {|i| i.to_i}
+ 301534 [dblack rubyp] require 'scanf'
| 301536 [dblack rubyp] "%1d" * x.size would be better (no need to hard-code the 4).
+ 301537 [sepp2k googl] result_array = []
  301618 [shortcutter ] Well, that's easily fixed: just work with another variable.  You can
  301622 [Rob AgileCon] def int_split(x)
  + 301626 [shortcutter ] The reasoning is wrong but comes to the right conclusion: if you want
  | 301647 [dblack rubyp] I still like scanf :-)
  | 301715 [botp delmont] # I still like scanf :-)
  | 301833 [botp delmont] # scan+map since i don't need the formatting=20
  + 301631 [phasis gmail] def int_split(x)
threads.html
top