382483-384379

382265-405482 subjects 382664-384680

Ruby 1.8.7 and Ruby 1.9.2-rc2 works on HP-UX
382483 [Philippe.vou] Ruby 1.8.7 and Ruby 1.9.2-rc2 passed all self-tests on HP-UX B.11.31

update variables based on own value - critique please?
382484 [crazedcougar] Hey!
+ 382507 [transfire@gm] Something looks wrong to me. Why aren't you using methods rather than
+ 382516 [josh.cheek@g] TL;DR: Two similar lines isn't enough to warrant all the complexity you've
+ 382523 [crazedcougar] Hey Josh!
| 382527 [josh.cheek@g] Well, Capitalize is part of the Ruby String class (
+ 382530 [shortcutter@] the

rubyWax 0.11.05 audio player
382489 [jakekaiden@y] rubyWax 0.11.05 alpha

again: invalid byte sequence in US-ASCII
382490 [svenk@on in ] again I have problems with the f.ckn german umlauts ;-) This time within
+ 382492 [markus@fi ch] Could you provide a short self-contained example?
+ 382493 [svenk@on in ] Oh my good, I am such an idiot. Forgive me for steeling Your time!

Formatting a long regex: can a character class [] be split over lines?
382497 [muranov@ma h] i am wandering if it is possible to split a character class ([...]) in
+ 382498 [josecalderon] Jose Calderon-Celis
+ 382547 [bbxx789_05ss] 1) Never write a regex with thousands of escapes.  Are you aware that
+ 382549 [bbxx789_05ss] name_format = /\A[A-Za-z\d\
+ 382553 [bbxx789_05ss] You could also use a here doc and avoid having to escape any character

Dependencies
382499 [zulupineappl] about the dependencies.
382502 [jakekaiden@y] this question has come up before, and there are others who can (and

WEBrick httpversion.rb and version.rb IPR copyright
382500 [dturchin@gm ] Ruby-talk community,

Wrap external source file in a module
382503 [muranov@ma h] I have a strange situation which i have not resolved yet where for some
+ 382506 [transfire@gm] On May 1, 1:55=A0pm, Alexey Muranov <mura...@math.univ-toulouse.fr>
+ 382508 [muranov@ma h] Thanks Thomas, this works!
| 382509 [ibc@al ax ne] IMHO not natural is what you are trying to achieve ;)
+ 382512 [joelvanderwe] The basic trick is module_eval. Here's a library that does that for you
+ 382514 [muranov@ma h] Thanks Joel, i'll consider your library.

>> string = "\37" # => "\037"
382513 [geometric.pa] I want to create a string with the backslash character followed by the
382515 [mike@st k. a] What different quoting did you try? There are a couple of ways to start =
382520 [geometric.pa] Thank you, this helps.

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

LoadPath and require confusion, please explain
382528 [lucky.develo] Guys,
+ 382529 [ciur.eugen@g] When you do require/load ruby will use $GEM_PATH also to look for
+ 382532 [lucky.develo] But when i say require "something" , something.rb should be present in
  + 382533 [sakuro@22 8c] The heart is that by implicitly(*1) or explicitly requiring 'rubygems' library
  + 382535 [ciur.eugen@g] Nope. Look, when we require arel (for example), although it is not in
    382587 [lucky.develo] thanks :) got it now .. :)

Question on the best approach for gathering tweets based on time
382538 [ml@co va es ] I want to know what is the best way to gather tweets from a specific=20
382539 [shortcutter@] n't try it out yet)

rdoc and Rake::RDocTask with different outputs?
382541 [shaoran@sa u] I had some issues using Rake for the creation of code documentation.

ANN: Sequel 3.23.0 Released
382542 [code@je em e] Sequel is a lightweight database access toolkit for Ruby.

Writing to a file
382545 [mlc0613@ya o] Hey guys, can anyone explain how to write to a file in Ruby?
+ 382546 [ciur.eugen@g] Have you heard about google ?
+ 382618 [alexandermcm] ...
+ 382624 [vbosch@gm il] Easiest way is to open a file for writing and with a block write the =

Help making a method more concise
382548 [mark@de lo f] I'm looking to improve my skills as a Rubyist and would like to know if the
+ 382550 [shortcutter@] I think it's pretty OK that way.  You could get rid of a bit of
| 382551 [mark@de lo f] def depth
+ 382554 [josh.cheek@g] First test fails, with a value of 3.
| 382556 [mark@de lo f] Hey Josh,
+ 382569 [cmdicely@gm ] def depth
  382573 [shortcutter@] the
  382575 [cmdicely@gm ] Uh, yeah. I messed something up in editing that. I'm not entirely sure

1.8 license change . . . ?
382557 [code@ap th o] Judging by the GitHub mirror, it looks like Ruby 1.8.x got its license
382558 [code@ap th o] I just realized I was looking at 1.9.3, and not 1.8.7 as I had thought.

Object-Oriented Programming
382559 [mchao1@um .e] Hey guys, i'm trying to make a class in Ruby and I was wondering if it's
+ 382560 [steve@st ve ] Hey Mike-
+ 382561 [bbxx789_05ss] Instance methods are private by default.  If you define an accessor
| 382563 [adam@ap es o] I think you meant to say "instance variables", not "methods".
| 382567 [no@sp m. le ] and instance variables are available to all subclasses, also
| 382568 [cmdicely@gm ] The instance variables of an object are not available outside of the
| 382580 [no@sp m. le ] Correct.
| 382585 [cmdicely@gm ] 1.  methods (class [static] or instance) of this class and objects of this class
| + 382634 [no@sp m. le ] Yes, this is where it differs from C++.
| + 382692 [b.candler@po] And of course, Ruby has it's own definition of "protected" methods.
+ 382564 [mchao1@um .e] Awesome guys, thanks for the help.

shoes3 and ubuntu install problem
382562 [jakekaiden@y] i've run into a problem installing shoes3 on ubuntu 10.04 lucid.
+ 382572 [cmdicely@gm ] You may have more luck asking this question on the Shoes list
| 382579 [jakekaiden@y] thanks - hadn't found the shoes list - i'll check that out...
+ 382583 [steve@st ve ] In case Jake doesn't post his answer here, he figured out that it was
+ 382608 [jakekaiden@y] thanks Steve -

imap not reading mail which are already read through a mail client
382570 [totommak@gm ] I am trying to use 'net/imap' to get mail from a gmail account. I am
382600 [me@wa to ho ] imap.uid_search(["NOT", "SEEN"]).each_with_index do |uid,i|

Hello Friends
382571 [eaglebalti@g] What are you lookink for. Just visit to see what you want

rubyw.exe and the "system()" call
382574 [remosewa@gm ] I'm trying to run ruby without the command terminal popping up, so I run
+ 382576 [color.circle] I hope this will help
+ 382604 [pete@pe er i] IIRC, Process.spawn [1] doesn't cause the cmd window to show when using
+ 382623 [rogerpack200] Might help.

@sock.readline no response in ftp.rb
382577 [lifengfeng@h] I'm using ruby 1.8.7 p334 on windows.
382582 [shortcutter@] I would assume it to be unlikely that it is a bug in Ruby's FTP

[ANN] R2CORBA 1.1.1 released. Fixes OBS RPM builds.
382578 [mcorino@re e] Remedy IT is pleased to announce the release of version 1.1.1 of

Auction engine
382581 [chris.langle] does anyone know of a good source for developing an auction engine ?

[ANN] NougakuDo - Ruby 1.9 and Rails installer for Windows x64 with fastest server
382586 [artonx@ya oo] I've released Windows x64 installer package for Rails.

how to get variable text from browser
382588 [pizzazjoe@ya] The browser page I'm working with has a semi-variable text group: "Files
+ 382589 [jgabrielygal] So, you want to fetch the page calling the URL, locate that text and
| 382590 [pizzazjoe@ya] Not necessarily. I want to end up with "Files (7)" or whatever number it
| 382592 [jgabrielygal] OK, you need to give a little bit more context. With the description
| 382593 [pizzazjoe@ya] That's what I needed - the magic of match.
| 382617 [jgabrielygal] I'm glad you got your answer. I think it would be good anyway to read
+ 382591 [code@ap th o] Can you arrange for the text group you want passed to your program to be

Problem installing shoes3 on RHEL 6
382594 [ruby.student] I am trying to install/build shoes3 under Red Hat EL 6 and I am having heck
382595 [steve@st ve ] of course there's a mismatch. ;)
382596 [ruby.student] Well friend, I can hardly put on a shoe. I am sure I can't build one!
382597 [ruby.student] git clone git://github.com/shoes/shoes.git ${SHOES_DIR}
+ 382598 [steve@st ve ] Hm, the last person that got that error said they were using 1.8, but you're
| 382643 [ruby.student] Thank you for your suggestion. I already tried gen install  mechanize. I
| + 382644 [steve@st ve ] This means your ruby didn't get installed with ssl support. I don't know how
| | 382645 [ruby.student] Now I am REALLY lost!
| | 382647 [steve@st ve ] yes, you have openssl installed on your machine, but Ruby was not compiled
| | 382648 [ruby.student] Steve,
| + 382649 [brabuhr@gm i] rpm -qa | fgrep openssl
|   382652 [ruby.student] Brabuhr,
|   382654 [steve@st ve ] You have to then reinstall 1.9.2 after installing openssl-devel for it to
|   382658 [ruby.student] Well gents,
|   + 382662 [brabuhr@gm i] Doing a quick test under rvm 1.9.2...
|   | 382663 [brabuhr@gm i] rvm 1.9.2
|   + 382665 [steve@st ve ] Excellent. I'm sorry this was so much stress, making the build process
|   | 382667 [ruby.student] Great,
|   + 382669 [brabuhr@gm i] tc.
|     382698 [ruby.student] brabuhr,
|     382699 [brabuhr@gm i] I think so.  I copied it over to a different SL6 machine than I did
|     382711 [ruby.student] Brabuhr,
|     382712 [brabuhr@gm i] $ cd /usr/local/shoes
|     382713 [brabuhr@gm i] REALPATH=`readlink -f $0`
|     382715 [ruby.student] */usr/local/shoes]$ ./shoes*
|     382719 [brabuhr@gm i] Hmm... so if I follow you, when you cd first you do not get the
|     382720 [brabuhr@gm i] $ iconv -l | fgrep UTF
|     382722 [ruby.student] Desktop]$* iconv -l | fgrep UTF*
|     382724 [brabuhr@gm i] It's interesting that the only results on Google for "uninitialized
|     + 382725 [brabuhr@gm i] I was hesitant to suggest it, but try editing 'ruby/lib/uri/common.rb'
|     | 382744 [ruby.student] OK,
|     | 382747 [brabuhr@gm i] Awesome!
|     | 382748 [ruby.student] Well then, I am good to go.
|     | 382780 [steve@st ve ] Any time! Please keep me up to date with your thoughts about Shoes, I'm
|     | 383084 [ruby.student] Will do. Thanks a bunch!
|     + 382730 [steve@st ve ] Not that interesting: Hackety Hack is Shoes, after all...
|       382737 [brabuhr@gm i] That's why I found it interesting :-)
+ 382599 [brabuhr@gm i] uname -a
  382606 [jakekaiden@y] i think this may be you're problem - i was having a similar issue, and
  + 382611 [brabuhr@gm i] ./shoes
  + 382646 [ruby.student] Jake,

Iterating over an Array of Hashes
382601 [peter.hicks@] All,
+ 382603 [code@ap th o] Marshal.load(Marshal.dump b).each |b_item|
+ 382605 [jakekaiden@y] well, this is certainly no magic - but you could just make a temp
+ 382607 [bbxx789_05ss] b = [ { :x => "foo" }, { :x => "bar" }, { :x => "baz" } ]
  382609 [johnf@bi sb ] `clone` doesn't cut it, since it's creating shallow copies. An
  382612 [bbxx789_05ss] Really?  Look at my output.  It cuts it just fine.
  382613 [johnf@bi sb ] Your example doesn't contain nested hashes, while mine does. That's
  + 382614 [abinoam@gm i] Any problem with the  marshal dump and load aproach of Chad Perrin?
  + 382616 [cmdicely@gm ] Neither did Peter's example and request.
    382641 [code@ap th o] an array.  It was not hashes nested in hashes, but I do not think that
    + 382651 [kmandpjlynch] I'm running a pc with Windows Vista...
    | 382677 [code@ap th o] Thank you.
    + 382661 [cmdicely@gm ] The #clone based method presented upthread (which wasn't mine, it was
      382666 [code@ap th o] Are you seriously claiming that the person's statements seemed to you to
      + 382668 [cmdicely@gm ] No, I'm claiming that the original requester's statement didn't
      | 382672 [code@ap th o] He didn't specify "only protection from changes resulting from mutations
      | + 382674 [cmdicely@gm ] Yes, which is why I used the word "indicated" rather than "specified";
      | | 382675 [code@ap th o] What he specified was "data".  Read it again if you like.  It was "data",
      | + 382678 [bbxx789_05ss] In my opinion, you need to ask yourself two questions with regards to
      |   382703 [code@ap th o] Is there a way to take a *copy* of the data, rather than a reference
      + 382670 [doug@ds if r] 2 solutions have been presented.  I think the original poster's question was
        + 382673 [code@ap th o] was
        + 384379 [peter.hicks@] All,

Re: NougakuDo - Ruby 1.9 and Rails installer for Windows x64 with fastest server
382602 [luislavena@g] indows
382610 [artonx@ya oo] It's something difficult to explain in English for me, but I try.
382621 [rogerpack200] So this is a full ruby release using VS2010 64 bit?  Do you have any
+ 382640 [artonx@ya oo] The answer is depends on the term 'full ruby'.
+ 382642 [artonx@ya oo] Sorry, accidentaly mailed just after the first question's answer.

Check url address
382619 [dmnc.mobile@] i would like to do something like define two urls, primary and
+ 382620 [jgabrielygal] You can try to open the first URL and if there's any exception, use
+ 382625 [dmnc.mobile@] Great, thank you so much :)

tyrantmanager - undefined method `instances' for nil:NilClass
382626 [anhquankitty] I installed Tyrant Manager 1.6.0 successful and it works at the

Run time programming
382627 [zulupineappl] How can I run ruby code from my ruby program? Let's say I have a program
+ 382628 [rogerpack200] eval(user_given_text, binding)
+ 382629 [shortcutter@] $ ri eval
  + 382709 [b.candler@po] Posted via http://www.ruby-forum.com/.
  + 382710 [b.candler@po] And you might also want to think about who is entering that code and
    382721 [stu@ru yp og] eval though is the root method it might be safer to use one of the
    382723 [josh.cheek@g] It's not clear to me how those are safer, I thought those just change
    382783 [stu@ru yp og] Funny I was just playing with the go language version of tryruby which
    382784 [steve@st ve ] Sorta, yeah: method_missing which then does a class_eval to help with

Encoding nightmare
382630 [granadojose@] I working on an application that is localized in several languages and
+ 382635 [ jupp@gm .d ] There is two parts to this. Firstly you are using Percent-encoding (aka URL encoding) which maps spaces to plus signs and characters to %XY tokens  wiht X and Y being a hexadecimal digit. This works as intended. Secondlyyou are encoding the characters according to utf-8 which maps "'" to %27and "" to %C3%B3. However, for displaying ISO-8859-15, Windows-1252 (aka  CP 1252) is used which interprets %C3 as  and %B3 as .
| 382696 [granadojose@] <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">Thanks again.
+ 382637 [nobuoka@r- e] One way to avoiding this is escaping the apostrophe character (') by using
  + 382638 [nobuoka@r- e] Moreover, you should escape the double quotation characters (") and
  | 382639 [nobuoka@r- e] Sorry, there is a mistake.
  + 382695 [granadojose@] That I've done and it goes ok without disturbing the accents in spanish.

Documentation about ruby-openssl
382631 [ibc@al ax ne] Thanks a lot.
+ 382691 [b.candler@po] Probably best just to look at some code which uses it. Net::HTTPS would be a good start for a TLS client. For TLS server, I did some reverse-engineering to build ruby-ldapserver, and now I use that as my reference implementation :-)
| + 382697 [ibc@al ax ne] Then I'll check it :)
| + 382760 [yermej@gm il] =20
+ 382854 [devcindario@] Best regards

[ANN] flickr_airlift 0.0.7 released.
382632 [beholdthepan] flickr_airlift is a command-line tool for scraping any user's original
382633 [beholdthepan] ...

Creating variables on an OpenStruct with dynamic names
382650 [jolyonruss@g] Hey guys,
+ 382655 [jgabrielygal] Here you are not closing the file handler. As you are reading the
+ 382676 [cmdicely@gm ] I think that (looking at the Day 3 self-study in the book), your best
+ 382681 [bbxx789_05ss] Then I wouldn't worry too much about Jess Gabriel y Galn's code because it contains some advanced stuff.
| 382682 [bbxx789_05ss] On the other hand, if read() only reads one line at a time, you could
+ 382683 [bbxx789_05ss] If you have the name of a method as a string, then you can use send() to
+ 382694 [shortcutter@] Welcome to the wonderful world of Ruby!
+ 382702 [jolyonruss@g] Wow, thanks for the plentiful replies!
  + 382704 [jgabrielygal] You can read about String#split in the documentation and you will see
  | 382705 [jgabrielygal] Sorry, pressed wrong key...
  + 382706 [shortcutter@] Array.  You can try that easily in IRB.  It's really a helpful tool.

Forward delete with irb on a iMac Snow Leopeard machine...
382653 [kmandpjlynch] Good morning,
382656 [stu@ru yp og] ...
382708 [kmandpjlynch] Good morning Stu,

Convert String to Grid
382659 [mattjdupree@] Hey, I am kinda new to ruby... and programing...
+ 382660 [josh.cheek@g] Could you show what your map file looks like, and what you would like it to
+ 382679 [bbxx789_05ss] I'm not new to ruby, nor to programming.  I have no idea what a 'grid'
  382684 [stu@ru yp og] He's referring to a tile map so he can make a tile map
threads.html
top