327350-329885

327165-328371 subjects 327528-358881

How to capture standart output to variable?
327350 [bl3.drkwv@gm] How to capture output of this code to variable to send it to iconv?
+ 327366 [gooigpi@gm i] +----------------------------------------------+
+ 327370 [bbxx789_05ss] require "stringio"
  327488 [gooigpi@gm i] Do this with "stringio" ;)

Encrypting 6-8+ character strings (passwords)
327359 [anildh@gm il] Is there a good ruby library for encrypting strings less than 8

[ANN] amalgalite 0.7.3 Released
327362 [jeremy@hi eg] amalgalite version 0.7.3 has been released.

DBI
327365 [henrik.toft@] I have a problem connecting my application to a database. I think this
+ 327377 [Aldric Giaco] It sounds like the machine on which you are running the code doesn't
+ 327432 [b.candler@po] (1) Try it from the command line, using irb - firstly using native DBI

Failed to build gem native extension
327369 [boucher.bn@g] I want to install juggernaut but when running "gem install juggernaut" I
327395 [alex@de et m] No, not really. Ruby stores information about how it itself was
327450 [boucher.bn@g] Thanks but I still couldn't install juggernaut with mingw (gem install

assignment to $stdout deprecated?
327372 [bbxx789_05ss] In pickaxe2, on p. 335, it says that assigning to $stdout is deprecated
+ 327373 [bbxx789_05ss] require "stringio"
+ 327374 [bbxx789_05ss] Also, what in the world is that example supposed to demonstrate?
+ 327427 [hramrach@ce ] Not reading the docs.
| 327428 [bbxx789_05ss] I posted the docs.  They say no such thing.
| 327440 [hramrach@ce ] Yes, only IO::for_fd mentions the use of fds, IO#reopen does not
+ 327431 [b.candler@po] It depends what you're trying to do. I'll describe this from a Unix
  327439 [bbxx789_05ss] Thanks for the detailed response.
  327442 [b.candler@po] Starting a different child process, such as a shell, involves fork()

How to monitor wget command progress in ruby?
327380 [rubyforum@th] ruby-specyfic question. I have background process launched in starling.
327381 [dandiebolt@y] ...
327385 [rubyforum@th] Thanks, but i still don't know how i can read from wget console?
327386 [dandiebolt@y] ...
327388 [rubyforum@th] f = IO.popen("wget http://www.hostgator.com/testfile.zip 2>&1", "r") {
+ 327391 [kh.wild@wi o] ...
+ 327397 [jg@sa do r. ] * '2>&1' says that standard error stream (whose file desecriptor is 2)

[ANN] heckle 1.4.2 Released
327387 [ryand-ruby@z] heckle version 1.4.2 has been released!
327411 [tomcloyd@co ] Ryan, it's not entirely clear to me that "eval" is evil, but you sure

New to Ruby. Why does the command line pop up an then go awa
327389 [budder8817@y] When ever I run a code file .rb
+ 327390 [dandiebolt@y] ...
+ 327493 [raphael.clan] This is not as correct as the other approaches, but you can also end
  + 327513 [lists@be tr ] no harm meant indeed.
  + 328129 [raphael.clan] Sigh... "getc" is sorta deprecated. Use "gets" or "STDIN.getc" if you

[ANN] amalgalite 0.7.4 Released
327398 [jeremy@hi eg] Issue a new version, find new bugs.  The cycle continues...

Decryption in ruby
327402 [vetrivel.bks] I have a decryption doutes in ruby.

Ruby file  to Executable file -- for all OS
327403 [jazzezravi@g] I have a ruby script. i converted it into exe with the help of
327521 [jazzezravi@g] So there is no way to do that ..?
327525 [ninja@sl ph ] It might be your English... I mean no offense, it's just difficult to
+ 327527 [jazzezravi@g] Thanks David.
| 327551 [default@sp r] also, Shoes would do it for almost all platform (3 big at least)
| 329802 [jarmo.p@gm i] Sorry for bringing up old thread, but how come you didn't notice on
| 329882 [jazzezravi@g] Its great idea from you. I will try and let you know the result.
| 329885 [ian.trudel@g] Wouldn't be crate a good candidate? I haven't tried it yet but it seems
+ 328250 [perrin@ap th] =20
  328365 [ninja@sl ph ] I suppose that is best for brand-new users. However, it is a lot of
  328463 [perrin@ap th] Not just new users -- non-technical users in general.
  328470 [ninja@sl ph ] Non-technical users in general would benefit even more from a good
  328539 [perrin@ap th] nt

Ruby performance tips & tricks
327404 [maran.asteri] Dear folks,
327458 [tim.pease@gm] Here is a collection of links that talk in depth about Ruby 1.9.1
327515 [maran.asteri] thanks, Nice resources...

inspiringly documented projects
327412 [martindemell] I was looking at Rubygame this morning, and I was impressed by the
327499 [tomcloyd@co ] My current nominees for this category (and seriously, there OUGHT to be

Book
327413 [vishwajit.pa] I am new in Ruby. Please suggest me some books to learn Ruby.
+ 327414 [azimuth-ruby] Pragmatic Programmer's Programming Ruby Edition 3 (or whatever the latest
+ 327415 [maran.asteri] some ebooks..
+ 327418 [gregory.t.br] I would strongly recommend David Black's "The Well Grounded Rubyist"
| + 327429 [mutati0n.313] i recommend this free and strong book
| | 327435 [lw299792458@] so many books,,,go to a bookstore,,,and u  will find the one you need
| | 327437 [dblack@ru yp] In a month or two, anyway :-)
| + 327452 [james.britt@] I also recommend Greg's Ruby Best Practices as well, once you've learned
+ 327451 [james.britt@] James Britt

FileUtils.cp_r - works with regex?
327416 [edrd.dantes@] I try to copy files that match a certain pattern to another dir, i write
327425 [bbxx789_05ss] There's nothing in the standard library docs that suggests you can use a
327426 [bbxx789_05ss] I did some more testing and FileUtils seems pretty buggy to me.  For

Which is the best development environment? Windows Vs Linux
327419 [priyankeshu.] I just started learnign Rails and i think it's quite cool! I have just
+ 327421 [rustam8338@g] i have used ROR for one year , same with you i have used the apatana and
| 327453 [james.britt@] See about getting the free VMware player or server and setting up an
| 327462 [micathom@gm ] Sun's VirtualBox is another quite usable option. I think questions
+ 327455 [kristerj@gm ] I started the same as you, learning rails on windows, but eventually
+ 327456 [juan_zanos@t] In any "vs" question you tend to get answers on both sides regardless =20=
+ 327472 [ninja@sl ph ] I'm going to guess you don't have a very extensive knowledge of system
| + 327474 [richard@xa o] Personally, having developed on OS X, Windows and Linux I would say
| | 327482 [ninja@sl ph ] Now I'm confused. What GUI is provided for Rails on Windows, but not
| + 327475 [james.britt@] It seems perfectly fine.   The release notes indicate some issues for
|   + 327477 [devrubygem@g] Yeah I'm a noob, and I tried using linux before and I spent a great deal of
|   + 327481 [ninja@sl ph ] The big one was performance, unless this has been resolved. As Git was
+ 327486 [transfire@gm] Switch to Linux (I recommend Ubuntu 32bit) -- and that's regardless of
+ 327608 [perrin@ap th] My personal preference is actually for FreeBSD -- which is substantially

Not able to access session data in before_filter
327423 [preethi1.s@t] I've a session data that is generated when a user logs in.
327430 [b.candler@po] As a guess, because you didn't actually say so, you're asking about the
327433 [preethi1.s@t] thanks for guiding me to the right path :)

regexp problem
327434 [rubyforum@th] <td>Traffic left:</td><td
+ 327436 [mike@ca ga .] Of course that depends upon how general this needs to be.  If it will
| 327441 [rubyforum@th] I cannot use regexp on this - need regexp on whole this prase
| 327497 [mike@ca ga .] If you're only trying to pull out the single number, this REGEX will
| 327517 [bbxx789_05ss] <td>NOT TRAFFIC LEFT:</td><td
+ 327518 [w_a_x_man@ya] list = DATA.read.scan( %r{<td.*?>\s*(.*?)\s*</td>}im ).flatten
| 327557 [rick.denatal] As 7Stud pointed out, a toolbox with only regular expressions inside is
| 327569 [gooigpi@gm i] Rick, your solution is swell, and it is probably worth while considering
| 327593 [rick.denatal] subjective.
| + 327627 [gooigpi@gm i] and much nicer as well as more elegant, I should add. But more
| + 327642 [w_a_x_man@ya] I didn't need to, and I'm using
|   327695 [rick.denatal] Yes, I guess I should have said Ruby < 1.8.7
|   327699 [pit.capitain] Which problems? As I've written in ruby-core, all (but one) of my
|   327764 [rick.denatal] I'm not alone.  I'll refer you to the thread which Gregory Brown just opened
|   327767 [pit.capitain] So can anyone show me some 1.8.6 code that doesn't work in 1.8.7? In
+ 327702 [mark@th ma z] As long as we're being pedagogical, I prefer XPath to all the previous
  + 327753 [w_a_x_man@ya] What if the cell contains "No Traffic left"?
  | 327759 [mark@th ma z] Then you can use the XPath function starts-with() instead of contains
  + 327789 [w_a_x_man@ya] // is quite cryptic.
    + 327796 [dblack@ru yp] ...
    + 327835 [mark@th ma z] Would you use Ruby string functions instead of the regular expression?

Socket issue in ruby 1.8.6 in freebsd?
327443 [saku@yt i. i] getuid(0x2,0x1,0x6,0xff,0x0,0x0) = 0 (0x0)
328723 [saku@yt i. i] Just short update, FreeBSD packet maintainer has confirmed this
328949 [rogerpack200] I'd repost this to core.
329167 [saku@yt i. i] Yeah I indeed planned, but FreeBSD packet maintainer fixed this.
329173 [rogerpack200] perhaps should submit a patch to core of it.

file.puts define newline
327446 [MrBanabas@go] just would like to know if I can somehow define the newline delimeter
327447 [badboy@he rt] hm...I don't think so.
327448 [MrBanabas@go] Sure I can do that, but I thought it would be "cleaner" if I could to
+ 327449 [badboy@he rt] ugly... newline_delimiter = '/r/n' wouldn't work as you expected =D
+ 327457 [bbxx789_05ss] $OUTPUT_RECORD_SEPARATOR = "apple"
  327459 [bbxx789_05ss] Ok, I found one combination that allows me to define the output
  327460 [bbxx789_05ss] Mac OSX 10.4.11

sort_by different variables?
327454 [taylorstrait] I have a user control panel that generates an event log by merging
327463 [shortcutter@] irb(main):003:0> a = []
327464 [taylorstrait] Thanks a lot, Robert!

Image recognition
327461 [michel.boave] I need to write a software who read an image from a questionary, and
327703 [dominikho@gm] magick.

SOAP WSDLDriverFactory header params
327465 [shingler@gm ] class Swrapper
327526 [dbw@ab r. c.] Best thing to start off is get the newest version of SOAP4R from gem.

How to convert a string of arbitrary size to an array
327466 [ruby.student] Team,
327467 [ben@bl yt in] "abcdefg".split( // )
+ 327468 [robert.dober] In Ruby1.9 I am quite fond of this
| 327469 [ruby.student] Thank you Robert, it is truly appreciated!
+ 327470 [ruby.student] Aha!

Open Source Bridge Call for Proposals: We welcome your ideas (until March 31)
327476 [zznmeb@gm il] We are happy to announce that the Open Source Bridge Call for

[ANN] rubygoo 0.0.8 Released
327478 [shawn42@gm i] rubygoo version 0.0.8 has been released!
327490 [jameskilton@] Woo, grats!

search latest version of file in directory
327479 [mmc_collins@] of each out of the directory. The files look like below. Please tell me
+ 327485 [shortcutter@] dir = "C:/Status2"
+ 327519 [w_a_x_man@ya] rx = /^.*_no\d+/

rice: ERROR: Failed to build gem native extension.
327480 [kungfu-free-] ...

YAML + ASCII Encoded Unicode
327491 [coryw@am ri ] Folks,
327553 [b.candler@po] data = File.read("source.txt")

Got SystemStackError exception: stack level too deep
327492 [bezan99@gm i] I have master Process that is forking 2 child processes in the
327494 [tony@me io .] It means that you have too many calls to functions which are in turn calling
327498 [bezan99@gm i] I see ...
+ 327500 [azimuth-ruby] Notification for Email Sent completion - #{message}"
| 327501 [bezan99@gm i] ahh No ...thats the issue with my cut copy paste .. sorry I pasted that
| 327502 [azimuth-ruby] if this is all in a single file you should paste all of it. it seems it's
| 327507 [bezan99@gm i] Well there are multiple Files and its complicated.. but I think the
| + 327508 [azimuth-ruby] Trace file? If you're sending attachments, I don't thing the mailing list
| | 327511 [azimuth-ruby] Perhaps your error-checking code is causing the program to restart when the
| + 327509 [tony@me io .] Can you provide the complete stack trace associated with the
+ 327552 [b.candler@po] puts e.backtrace.join("\n")
  328307 [bezan99@gm i] Ok .. Well I tested the Code again.
  328311 [b.candler@po] Yes, I have written systems like that. They have been robust enough not
  328315 [bezan99@gm i] Thanks..
  328353 [bezan99@gm i] Since it takes 40 hrs for the Real code to cause the System Stack Error
  328366 [b.candler@po] def run_function

Is anyone using Ruby/Tk on HP-UX 11.11 (PA-RISC)?
327503 [jykim@al ib ] I am developing some tools based on ruby/tk. but, I always met the
327504 [azimuth-ruby] Sounds like you've got a corrupted library, to me, is there a 'magic'

Net-Ssh
327506 [piresg@gm il] I'm trying to develop a script that will use net-ssh to performe some
+ 327970 [piresg@gm il] Net-Ssh
+ 328304 [b.candler@po] I don't think raw Net::SSH waits for a prompt. It works at a lower level

Ruby GUI Survey: Results
327510 [alex@de et m] The results of the survey of Ruby GUI programming carried out at the end
+ 327512 [zznmeb@gm il] And many thanks to you for doing this research!!
+ 327562 [mark@ma kr s] Alex, thanks so much for all the effort you put into this, that is very
| 327588 [alex@de et m] Thank you, I'm glad it's useful.
| 327604 [mark@ma kr s] Thanks for the reply.  I don't disagree at all, but I did want to
| + 327605 [alex@de et m] Thanks for the explanation. To summarise: the ruby standard library
| | + 327670 [mark@ma kr s] Bingo. :-)
| | + 327747 [perrin@ap th] =20
| + 328160 [nagai@ai ky ] Additional Information. :-)
+ 327567 [chauk.mean@g] Alex,
+ 327575 [martindemell] That was an excellent survey and analysis. Kudos.
+ 327609 [robert.dober] Let me join my fellow posters in complimenting you on this job.
+ 327612 [perrin@ap th] =20

[ANN] Gosu 0.7.12 released, with an official website and many  contributions
327514 [julianraschk] Gosu is a free 2D game development library for Ruby and C++, available

Re: New to Ruby. Why does the command line pop up an then go
327516 [bbxx789_05ss] Essentially, your program does what you tell it:  open a console window,

submit_tag problem
327520 [gani_chinta@] Posted via http://www.ruby-forum.com/.
327534 [ryand-ruby@z] ask in the ruby on rails forum/list.

a better way to do this job?
327522 [g.zhen.ning@] topics.each do |f|
+ 327523 [stefano.croc] topics[0..4].each{|f| puts f.title}
+ 327524 [jgabrielygal] topics[0,5].each do |f|
+ 327532 [ryand-ruby@z] topics.first(5).each do |f|
| 327542 [julian@co et] First doesn't take an argument I'm ruby. It does
| + 327544 [dblack@ru yp] $ ruby19 -ve 'puts [1,2,3,4].first(2)'
| + 327554 [james@gr yp ] Would you please stop top posting?  It's just bad manners.
| | 327580 [ryand-ruby@z] agreed!
| | 327692 [julian@co et] What makes it bad manners? I'm simply posting where my cursor appears.
| | + 327698 [micathom@gm ] Many people consider it an annoyance. IIRC the netiquette RFC even has
| | | 327823 [julian@co et] It's not possible to bottom post while maintaining my signatures on
| | | 327838 [lists@be tr ] It's not possible for - drum roll - you! Make a decision what
| | | 327844 [julian@co et] I find your english unintelligible.
| | | 327871 [lists@be tr ] Sorry, I didn't guess how difficult it is for you to accept such a
| | | 327956 [ryand-ruby@z] Please stop feeding the troll.
| | + 327710 [lists@be tr ] That's the point. It's not where the reader's eyes appear. What is
| |   327717 [ninja@sl ph ] Agreed. It also makes it that much more difficult to get context. While
| + 327579 [ryand-ruby@z] % ruby -ve 'puts [1,2,3,4].first(2)'
|   + 327582 [dblack@ru yp] I've clearly got 1.9 on the brain :-)
|   + 327691 [julian@co et] Sorry dude. Imust have been having an odd day. I swear my irb said it
+ 327537 [bbxx789_05ss] In my opinion, it's nicer than the first version because it doesn't have
| + 327543 [julian@co et] Slices and 'sub-arrays' aren't copies of the objects, they simply
| | + 327546 [dblack@ru yp] The same can be said of any array; the objects inside it exist (in
| | | + 327549 [micathom@gm ] That's a little bit unfair though. If you pushed an infinite number of
| | | | 327555 [dblack@ru yp] ...
| | | + 327655 [sepp2k@go gl] Ruby arrays are copy-on-write though. So subarray = my_array[100...1000100]
| | |   327674 [dblack@ru yp] My memory-eating example was probably unrealistic. Maybe I'm too
| | + 327559 [bbxx789_05ss] Is it your opinion that an array of pointers takes up no memory?  Which
| |   327563 [rick.denatal] Well, an array of  Fixnums takes up the same space as an array of 'pointers'
| + 327548 [dblack@ru yp] topics.first(5).each do |t|
| | 327556 [dblack@ru yp] Rewind. As Tom points out, first(x) returns an array. (Which in fact
| + 327581 [ryand-ruby@z] mentarbation.
+ 327541 [julian@co et] Your code also won't work. Your tempvar is not declared and you have
+ 327623 [cmdicely@gm ] Assuming there is a times=0 before this, and what you want to do is
threads.html
top