301283-355534

301076-301917 subjects 301517-310692

Form_remote_tag and csv download?
301283 [ckujawa@fa r] Good morning!  I have a case where I need to build a csv file from my

Which GUI library to use?
301292 [mohsinhijaze] Which GUI library you would recommend to use?
+ 301295 [shevegen@li ] You gave only two choices :)
+ 301309 [dmanriqu@co ] I've had very good results with WxRuby http://wxruby.rubyforge.org/; It
| 301318 [alec@ar ro s] <dmanriqu@correo.fca.unam.mx> writes
+ 301335 [james.britt@] Neither.
+ 301337 [znmeb@ce ma ] I've never seen any statistics on this. I suspect that there aren't all
+ 301359 [vk@ds .p pe ] Both are OK, but it depends on what application you want to write (e.g.
| 301389 [vjoel@pa h. ] and Tk has a nice Canvas...
| 301395 [ruby-lang@da] GTK does have a table.
| 304473 [vk@ds .p pe ] Sorry for the late reply,
+ 301499 [uwe@ku os h.] I've had some experience with JRuby + SWT and I must say it is the most

[QUIZ] The Turing Machine (#162)
301293 [matthew.moss] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+ 301344 [pluskid@gm i] Does it mean the tape head move action can only be [RL] ? Is there an
| 301346 [james@gr yp ] Correct, the tape moves with each instruction.
| 301350 [juanger@gm i] ...
+ 301473 [marcelo.maga] ...
+ 301490 [jgabrielygal] This is what I did: the TuringMachine is made of a TuringTape, a
+ 301502 [mike@st k. a] # Turing machine tape.
+ 301506 [juanger@gm i] ...
+ 301513 [pluskid@gm i] And here's mine.
+ 301583 [adam.shelly@] My first implementation is a fairly literal interpretation of the description.
+ 301595 [alpha.chen@g] #!/usr/bin/env ruby

Re: The Turing Machine (#162)
301294 [matthew.moss] <http://www.splatbang.com/rubyquiz>
301314 [cmshea@gm il] I created another program for our Turning machines that reverses a
+ 301323 [adam.shelly@] Here's a simple one.
+ 301347 [Glen.F.Panko] Below is a (very ugly) machine to convert binary to octal,
  301423 [adam.shelly@] converter I took a fairly different approach.  I think binary is
  301437 [matthew.moss] Just so you guys know, I have no intentions of starting Turning
  + 301441 [cmshea@gm il] Too bad.  I've started on a DSL for creating Turing machine code.  I
  | 301444 [micathom@gm ] Yummy. Please share.
  | 301471 [cmshea@gm il] Unless it's going to be a follow-up quiz.  I think it'd make a great
  + 301472 [cdcarter@gm ] I am surprised nobody has shared their Hello World!
    301476 [cmshea@gm il] I hope it's pretty straightforward.
    + 301478 [micathom@gm ] Already. Ok, so here is mine.
    + 301479 [cdcarter@gm ] It is pretty simple, and short.
      + 301481 [sandro.pagan] This is my solution, I tried to keep it clean (also if I found quite
      + 301482 [vagabond@ca ] I didn't really know what the hell a turing machine actually was until I
        301597 [matthew.moss] Looks like a pretty nice solution, except I think (but didn't confirm)
        301665 [alpha.chen@g] That could be a problem, but I cheated: @tape is actually a hash. (I
        301670 [matthew.moss] Ah, well played, sir. I concede the point. :)

verify installation
301301 [ ma@rw i. om] Is there a way to verify the installation of Ruby
301312 [justincollin] When you use gems, you have to require RubyGems somehow anytime you want
301313 [ ma@rw i. om] I did as suggested. See transcript below. Notice the return of "false"
301319 [justincollin] The false return value is typical for RubyGems and nothing to worry
301320 [ ma@rw i. om] b/
+ 301322 [justincollin] The Ruby source does come with tests, but I have no idea how they work
+ 301429 [luislavena@g] I'll suggest you revisit the Watir dependencies.

in `include': wrong argument type Class ???
301303 [unbewusst.se] module ManPage
301307 [unbewusst.se] it was a caching problem, restarting the server did the trick...

[ANN] RubyKaigi2008 Tickets and News
301304 [l.g.chin@gm ] RubyKaigi is the main Ruby conference in the homeland of Ruby, Japan,

Bad file descriptor - connect(2) (Errno::EBADF)
301308 [valerieh@my ] I am using Ruby to send files to an FTPS site. This was working

[ANN] Inviting Ruby Committers to RubyKaigi 2008
301317 [l.g.chin@gm ] To all Ruby Committers,

Persistent Hash
301321 [kyleaschmitt] I'm looking for some sort of persistent hash, or object store for ruby.
+ 301326 [cdemyanovich] ...
| 301327 [evan@ti ge p] DataMapper +1
+ 301334 [sean.ohalpin] I quite like fsdb - http://redshift.sourceforge.net/fsdb/. It persists
| 301394 [vjoel@pa h. ] It's stable, AFAIK. It's running as part of a couple of my projects and
| 301428 [ara.t.howard] i think this project is one of the most under-rated out there - you
| 301435 [vjoel@pa h. ] Er, you mean like making a gem out of it... yeah I guess so :)
+ 301355 [shortcutter@] Might be an option, depending on how long your transactions are.  If

capture output in real time
301330 [pwinward@lb ] 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@lb ] Thanks for the suggestion but I'm still having the problem.
| + 301399 [pwinward@lb ] Another approach I had tried was to use IO.select, as shown in
| | 301414 [pwinward@lb ] 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@lb ] Thanks for the pointers. I wasn't aware of setvbuf.  I'll look more into
|   355528 [tallak@tv id] %x{stty -icanon -echo}
+ 355534 [shortcutter@] he

Compare :  Testking v Testinside v Killtest Q&A
301332 [7692550@qq c] Compare :  Testking v Testinside v Killtest Q&A
301340 [ben@bl yt in] 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@ze sa] ...
301338 [matz@ru y- a] The latter.  You don't have to (and you shouldn't) free string
301438 [steven@ze sa] ...

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@ce ma ] I need to have a talk with Dr. G. :)

(none)
301345 [minstrel.yin] ...

[Mac OS X] rubygems and wxRuby
301356 [unbewusst.se] #! /usr/bin/env ruby
301358 [alex@de et m] 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@de et m] What version of OS X are you using?
  301368 [unbewusst.se] 10.4.11
  301370 [alex@de et m] 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@al ax ne] content-language
+ 301379 [list.push@gm] , but
| 301381 [ibc@al ax ne] Benchmark.realtime {   "accept".capitalize   }
+ 301382 [dblack@ru yp] ...
  301383 [ibc@al ax ne] Benchmark.realtime {   "accept-asdasd-qweqwe".split('-').map {|w|

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@fi hl d] 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@go gl] Alternatively you could check for STDOUT.closed? or !STDOUT.tty?
+ 301466 [nobu@ru y- a] 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@ti ge p] 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@ce ma ] 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@gm .] Dear all,
301426 [th@tp .r b. ] I've got the same bug.
301427 [AEtzold@gm .] Thorsten,

Sharing variables between classes and instances
301432 [leon@ti -o l] What I'm trying to achieve: add a variable to a class. Fill it with
301434 [dblack@ru yp] I'm not sure what you mean exactly. Do you mean each instance should
+ 301457 [leon@ti -o l] 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@gm il] Hey all, thanks for reading. Today is my first attempt at getting some
301442 [jos@ca no k.] Looks like you are on Windows. Try opening @SaveFile in binary mode (@SaveFile
+ 301446 [cg1161@gm il] Ah ha! Indeed I am on Windows. I knew about the LF to CRLF conversion,
| 301467 [nobu@ru y- a] 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@ga e] 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] ...
  | + 301541 [overlord@gm ] 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@go gl] The "file = nil" part is completely unneccessary. You can just do
| 301459 [andrea.fazzi] Ok, thank you :-)
+ 301461 [decoux@mo lo] 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@hi hw ] 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@de et m] 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] ...
301488 [jordi.aragon] learn a lot from Ruby and his libraries...

Expected XYZcontroller.rb to define XYZ
301485 [rajat79@gm i] ...
301487 [jos@ca no k.] One scenario: flying_club_controller.rb require's some file (perhaps in a

PHPMYADMIN|MySQL5|RubyonRails|Apache
301489 [baxter@ba te] 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@ba te] Yeah..hmm.. well apparently the version of Ruby does a lot more than I
301511 [baxter@ba te] 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@fa t] I am having some trouble trying to remove duplicate data from an array
+ 301503 [lopx@ga et .] class Hash
| 301524 [myemail@fa t] Thank you !
+ 301505 [ shot@ho .p ] shot@devielle:~$ irb

Work in Perth (Australia)
301504 [phillipsds@y] I'll be heading back to Perth in the next few months after a few years working for Customs in Canberra.
301711 [steven@ze sa] ...

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@te de ] 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] ...
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] ...
301716 [kou@co mi ng] Thanks,
301752 [damnbigman@g] ...
threads.html
top