362499-371727

362336-364873 subjects 362720-366914

Need help using Savon gem! (SOAP)
362499 [iamghetto@gm] properly format the request however.  Previously I was using
362509 [b.candler@po] What was the exact error and the line which caused it? I would expect
362574 [iamghetto@ho] Thanks for the advice!
+ 362575 [iamghetto@ho] For whatever its wroth in the IRB I get this
+ 362586 [b.candler@po] Do you have the soap4r gem installed? There's an old and now rather
  362646 [iamghetto@ho] yes. 1.5.8
  362653 [b.candler@po] script/generate controller hello
  362695 [iamghetto@ho] I wish I had such luck.  That doesn't work me.  There must something

Has dl/import change in 1.9?
362508 [salinhans@gm] require 'dl/import'
362543 [rogerpack200] Yep it's changed.  For me this meant I had to update my net/ssh gem to
362658 [salinhans@gm] Quick update after poking around in the dl folder in ruby/lib.

help to run Ruby
362513 [nospam@ne s.] I am on windows XP.
+ 362517 [alex.decaria] 1) Either double-click on the script you want to run, OR
+ 362525 [luislavena@g] On May 11, 6:55=A0am, "balzer" <nos...@news.eternal-september.org>
| + 362554 [nospam@ne s.] On May 11, 6:55 am, "balzer" <nos...@news.eternal-september.org>
| | 362566 [luislavena@g] On May 11, 2:12=A0pm, "balzer" <nos...@news.eternal-september.org>
| + 362639 [  tvw@s4 .d ] set PATH=E:\Ruby\bin;E:\Ruby\myprogram-beta1\sources\scripts\embed;%PATH%
| | 362665 [nospam@ne s.] I use Ruby without installer, ruby-1.8.7-p72-i386-mswin32
| | 362666 [luislavena@g] On May 13, 8:31=A0am, "balzer" <nos...@news.eternal-september.org>
| | 362667 [nospam@ne s.] On May 13, 8:31 am, "balzer" <nos...@news.eternal-september.org>
| | 362696 [luislavena@g] On May 13, 9:05=A0am, "balzer" <nos...@news.eternal-september.org>
| + 371724 [barryjogorma] I am having issues - which I think relate to the PATH.  I have done the
+ 371727 [barryjogorma] Output from PATH - does this imply that I have the Path issue sorted?

How to compair two object values.plz help me i write that co
362516 [sweetzubair@] How to compair two object values.plz help me i write that code but not
362519 [b.candler@po] Change those first two to
362521 [sweetzubair@] ITs show this how to remove \n this plz help
362522 [sweetzubair@] ********** My problem is solved ***********

Differences in Time v1.8.6 and 1.9.1
362523 [firekilroy@g] now try to use it on a machine with v1.8.6, the Time-part is acting up.
362524 [b.candler@po] Write the smallest test program you can which demonstrates the issue. In
362526 [firekilroy@g] Yes, that worked for me too.
362528 [b.candler@po] I'm not saying it is; but you asserted that "the strftime-option gets
362530 [b.candler@po] [1.8.6p114]
362532 [firekilroy@g] Thanks, there was a rewrite of Time between versions after all. Now it's

[ANN] Lone Star Ruby Conference 2010 - Call for Speakers
362529 [jimfreeze@gm] Lone Star Ruby Conference 2010

Perl6(ish) grammar implemented in ruby
362537 [gymbrall@gm ] So a few years ago, I started out writing a ruby implementation of the perl6

I had to completely re-install one of my Ubuntu servers...
362541 [xeno.campano] I am having trouble getting my rails system up.  I used the apt-get install of
362587 [b.candler@po] (1) "Doesn't work" or "failed" are not adequate descriptions of a

interested in writing a commandline option parser for ruby?
362545 [wmorgan-ruby] Don't.
+ 362556 [m.fellinger@] I have no idea what caused this rage of you, but would you kindly tell
| 362573 [wmorgan-ruby] Suboptimal software.
| 362615 [m.fellinger@] The first one on first glance, but I'm using that library for years now.
+ 362561 [ryand-ruby@z] hah! awesome.
+ 362577 [botpena@gm i] would it be nice if you could include arguments(ARGV) and then infer

How to read data in text file and put into the web page
362552 [sweetzubair@] username=abcd
+ 362553 [jgabrielygal] contents =3D File.read("c:/test/test.txt")
| 362555 [sweetzubair@] ******* It's Realy works **************
+ 362567 [b.candler@po] Building a Hash of your input data is one way to make it convenient to

Super simple newbie Q about methods
362557 [oss.hcs@go g] def add(i,j)
362559 [alex.decaria] The 'i' in your method is local to the method.  It is not the same 'i'
362562 [oss.hcs@go g] Thanks for that, but I was looking for a way of passing by address.  In
+ 362563 [alex.decaria] Then you need to use instance variables such as '@i', or class variables
| 362565 [jeanjulien.f] I would say rather on the contrary. Everything is a pointer but you
+ 362564 [aldric@tr vo] Well....
+ 362568 [b.candler@po] The number 1 is an object. The variable i is not an object; it is a

Connect to postgresql on remote host
362558 [jtian@ri re ] I need to connect to the postgresql database on a remote host. The host
362585 [ruby@ur ew l] It seems sshd is listening on port 8022. On which port is postgresql
362603 [jtian@ri re ] Thanks so much Waldemar for the comments. I am complete new to ruby.

Timeout Error in pingecho
362569 [magicc0d3r@g] But I got an error :-s
+ 362570 [sven.schott@] Hmmm, what platform are you running it from? Just ran in from Mac OS 10.5.8
| 362571 [magicc0d3r@g] My Platform Linux and FreeBSD.
+ 362588 [b.candler@po] $ irb --simple-prompt

How to unregister
362576 [Prashant_Sin] ...
+ 362578 [jonathan@jm ] Same place you registered for it.
+ 362581 [  sim@me co ] You can't.
+ 362582 [b.candler@po] If the form at

How to create the log
362579 [sweetzubair@] How to create the log in ruby.
+ 362580 [josh.cheek@g] # http://ruby-doc.org/core/classes/Math.html#M003708
| 362583 [b.candler@po] or one of the gems like log4r. Who knows?
+ 362607 [lyle@ly ej h] Log.new
+ 362610 [tim.pease@gm] toilet = $stdout

New version 2.5.0 of IBM_DB gem now available
362584 [praveendevar] New version 2.5.0 of the IBM_DB gem, the Rails Adapter/Ruby Driver for

gem install icu4r error
362589 [unbewusst.se] when i try to install the gem icu4r (under Mac OS SL)
362593 [b.candler@po] Is this the one you're trying to port?

How to synchronize files, from FTP to computer ?
362608 [kadelfek@ka ] I'm looking for the best way to synchronize files between my computers
362626 [joelvanderwe] Can you use rsync or unison? Or do you really want to reimplement that
362627 [kadelfek@ka ] I didn't know these two projects. Thank you for giving me the names.
362634 [joelvanderwe] Yes, I think there are native win32 ports of rsync. If all else fails,

about ruby -d script/server
362612 [suaq@21 n. o] any ruby and any rails ,when using ruby -d script/server´╝?appear a lot of
362631 [ryand-ruby@z] you can't solve it. rails just sucks that way.
362664 [b.candler@po] $ ruby -d
362669 [jonathan@jm ] Perhaps what you really wanted is 'ruby script/server -d', which runs

[ANN] rest-graph 1.1.0 - super simple facebook open graph api client
362613 [godfat@gm il] = rest-graph 1.1.0

TcpIp, Sockets, Gserver question
362614 [rps@sa as co] I'm writing a simple pair of client and server apps to demonstrate a
362620 [rogerpack200] in general if you were to a recv(1024) it might receive "half" of an

reading file after a particular line in file
362617 [nairvan@gm i] I would like to read a file in ruby. It is a 2G file, but
362640 [  tvw@s4 .d ] File.open("myfile", "r") do |f|
362642 [nairvan@gm i] Thank you very much.
362659 [shortcutter@] File.foreach "myfile" do |line|
362677 [unbewusst.se] File.foreach "myfile" do |line|
+ 362678 [botpena@gm i] yes.
| 362679 [fxn@ha hr f.] Line-oriented solutions assume small lines, and that the pattern has
| 362680 [fxn@ha hr f.] newline (beeline is damn phone autocorrection)
+ 362687 [shortcutter@] Yes, that could be done.  However, I would not use this for languages=20
  362693 [unbewusst.se] Right, however REXML isn't working for badly balanced tags.

reading file after a particular line in file
362618 [nairvan@gm i] I would like to read a file in ruby. It is a 2G file, but
+ 362622 [rick.denatal] Grep is going to have to read the file to find that pattern anyway.
+ 362623 [rogerpack200] If you don't know where it is, then you'll probably have to parse each

Determine if IE has an open modal window win32ole
362621 [arti.p.singh] Does anyone know how to determine if an Internet Explorer window has a
363195 [d-l-brown@ro] What version of ruby and watir are you using?

[ANN] JRuby 1.5.0 Released
362628 [nicksieger@g] The JRuby community is pleased to announce the release of JRuby 1.5.0.

remove_const does not play nice with require
362629 [neerajdotnam] $ ruby -v
362630 [jbarnette@gm] `require` consults $LOADED_FEATURES.

Command Line Arguments problem
362635 [derril.lucci] Greetings,
+ 362636 [jgabrielygal] require 'date'
| 362638 [derril.lucci] Certainly.
| 362663 [b.candler@po] No, but it will help if you can provide a complete, standalone program
| 362752 [derril.lucci] Figured it out.  Turns out, I was checking if ARGV's size was 0, then
+ 362637 [mat@pa ch co] When working with command-line options, you'll have a much better time

Reading Data From Excel File
362647 [sweetzubair@] I write some code for Reading data from excel file and put into the
362648 [ayumu.aizawa] Keyword, Object_Prop_Name ... there are constant values in Ruby.
362649 [sweetzubair@] Posted via http://www.ruby-forum.com/.
362650 [ayumu.aizawa] plz post now virsion of your program.
362651 [sweetzubair@] require 'watir'
362654 [john.allen@e] So are you getting the same warning messages??  Since those were
362656 [ayumu.aizawa] This program may be your want, but also you can use Selenium or Mechanize.

How to read id3 tags from files
362652 [benemue@go g] I want to read (not write, change or other things, just read) id3 Tags
362675 [lparravi@gm ] You should mention which libraries tried to use if you need help on
362686 [benemue@go g] This was it I tried, but it can't read flac tags.
362688 [reid.thompso] using a quick google for  "ruby flac tags"
362689 [benemue@go g] great!

Asynchronous HTTP request
362657 [dan-ml@da 42] Does anyone know how to do the following, but without threads, purely
+ 362662 [b.candler@po] Depends what you mean by "with asynchronous IO". Do you want to keep
| 362670 [dan-ml@da 42] I mean nonblocking. I don't want to keep calling select(), I just want
| + 362671 [matthew@by e] I think you are trying to save the computer time at the expense of your
| + 362672 [b.candler@po] http = Net::HTTP.start(...)
|   362773 [dan-ml@da 42] Thanks for your answer. It was a bit more low-level than I would've
|   362775 [b.candler@po] So you didn't want a Thread, but you'll happily use a Fiber...
|   362777 [dan-ml@da 42] Well, yes, a Fiber is just a coroutine, nothing like a thread.
|   362951 [b.candler@po] Except that the semantics of Threads are well defined. You start them,
|   + 362969 [billk@ct .c ] As an aside, Fibers can behave in that fashion when used within a
|   + 362986 [dan-ml@da 42] Given that I just said a Fiber is nothing like a thread, I'm not sure
|     363003 [b.candler@po] Oh yes, sorry about that. I'd digested one of the method_missing
+ 362867 [rogerpack200] It might fit well. Give it a shot.
+ 362899 [zach.lists@g] You could check out http://github.com/pauldix/typhoeus
+ 362900 [has.sox@gm i] Event machine is perfect for this kind of stuff.  Weather it fits with the
| 362909 [dan-ml@da 42] If you could show me how to use EventMachine in this case I'd be
| 362987 [has.sox@gm i] What context are you trying to do this in?  Is it inside a rack request
| 362995 [dan-ml@da 42] Ok, here's the context. I didn't put this in my OP because I figured
| + 362998 [tony.arcieri] The problem here is inversion of control.  EventMachine inverts control on
| | 363000 [billk@ct .c ] Sorry if I'm being redundant, but I wanted to point out that EventMachine
| | 363001 [tony.arcieri] And I'm pretty sure I was the first person to ever implement a Ruby
| | 363031 [rogerpack200] Yeah I was going to mention revactor as well.
| + 362999 [has.sox@gm i] Ok now we're talking.  So with rack you can't do true async with a callback.
|   363014 [dan-ml@da 42] Ah, but I never really wanted callbacks; that would be evented IO. The
+ 362901 [tony.arcieri] Looks like you want futures, which can be provided by any number of
  362902 [has.sox@gm i] It uses threads and blocks on first access (no callbacks).
  362911 [dan-ml@da 42] Except that's pretty much the same thing as my original example. And
  362914 [tony.arcieri] That's one way of looking at it.  However, Erlang ultimately relies on

[ANN] Mail version 2.2.1
362660 [raasdnil@gm ] I just pushed Mail 2.2.1.  ActionMailer edge now depends on 2.2.1 as =

How to append the time stamp in before file name
362661 [sweetzubair@] i write code for create log file and i want to append the time stamp
362673 [lparravi@gm ] You get string interpolation when using double quotes. See for other

net-ssh....
362681 [alfonso.capo] I've a big problema using the last version net-ssh on my Ubuntu (i386)
362706 [trednu@gm il] you are probably not connected at all.

idiomatic way to pass multiple Procs/lambdas/blocks
362684 [cremes.devli] def send message, timeout = -1, callback, errback
+ 362685 [tony.arcieri] I like using symbols that identify named methods, personally
+ 362694 [ninja@sl ph ] send({

Tempfile broken in Ruby 1.9.1?
362690 [rdpoor@gm il] I've been using Tempfile to create ~ 6 files of plot data.  However,
+ 362760 [rogerpack200] Not sure. Only thing related appears to be
+ 362764 [normalperson] No, the contract is that Tempfiles exist until there are no longer

segmentation fault while using Ruby::DL
362697 [jarmo.p@gm i] I tried to call a simple method on Windows (XP, Win7 - didn't matter)
+ 362716 [jarmo.p@gm i] Just wanted to let you know that segfault doesn't happen with win32-api
+ 362759 [rogerpack200] It's probably a bug.  You can report it at redmine.ruby-lang.org
  362766 [jarmo.p@gm i] Does your recommendation also apply when the library in question is
  362767 [rogerpack200] I'm not actually totally into the subject (I've done a few ffi

[ANN] Citrus ~ Parsing Expressions for Ruby
362698 [mjijackson@g] Just released this gem today, and thought others might get some good
+ 362700 [default@sp r] are you the real Michael Jackson?
| 362701 [mjijackson@g] Yes. I'm real. ;)
+ 362850 [eule@sp ce c] Out of curiosity: What are you using citrus for? What is the
  362862 [mjijackson@g] At this point Citrus is a parser combinator. It is able to take

Re: Mail version 2.2.1
362699 [aldric@tr vo] Excellent. Keep up the good work, and thanks for doing this!

[ANN] RubyGems 1.3.7
362708 [drbrain@se m] rubygems version 1.3.7 has been released!
+ 362729 [matt@ti bi s] This sounds great. It turned out that rdoc_osx_dictionary, with its
+ 362730 [cremes.devli] Thanks for your continued work on this! What a great contribution to the community...
+ 362740 [wayneeseguin] Eric,
  362748 [drbrain@se m] do

How to check the file is available or not.
362710 [sweetzubair@] How to check the file is available or not.
+ 362711 [jgabrielygal] if test ?e, "c:/test/test.txt"
+ 362715 [b.candler@po] begin
+ 362758 [rogerpack200] There is File.readable?(name)

Play audio file (AAC) from ruby program
362712 [sentinel.200] I need to play, pause and resume AAC files from a ruby console program
362724 [default@sp r] if its for the mac, you could use MacRuby with QTKit.
+ 362726 [lparravi@gm ] I'm not saying it's the best solution, but you can use mpg321 to
| 362733 [sentinel.200] Thanks, I just tried it. It gave a malloc error complaining first that
| 362734 [jonathan@jm ] You might also try mplayer in -slave mode.  I know that can handle 48k audio.
| 362776 [sentinel.200] I've come across a Snack Sound Toolkit,
+ 362732 [sentinel.200] I am on a mac, but this is a console program so should be usable on

How to Pump $1,000s in CASH & Checks to your door.
362714 [brighten235@] How to Pump $1,000s in CASH & Checks to your door.

Range on strings.
362718 [nasa42@gm il] If I do -
+ 362719 [robert.dober] I do not know if it is a bug, but the behavior has changed in Ruby1.9,
+ 362771 [josh.cheek@g] I think the problem is that on 1.8 it checks include by seeing if the value
+ 362785 [mrzombie@th ] Mac OS X Snow Leopard running Ruby 1.9.1, same behavior.
| 362805 [josh.cheek@g] $ rvm use 1.9.1
+ 362856 [nasa42@gm il] Probably because the way Strings are compared, "AA" < "Z" #=3D> true
| 362863 [mrzombie@th ] Just for the kicks, I tried with ('a'..'z').include? 'aa'
+ 362858 [dblack@ru yp] As per the other answers, it's because ('A'..'Z').to_a is an array of
| + 362861 [rick.denatal] Not exactly.  Range#include? for Ruby 1.9 has a few special cases.
| | 362865 [dblack@ru yp] Thanks. I was being lazy, so I'm glad for the further info :-)
| + 362864 [shortcutter@] Throwing just my cent in here: I believe the solution in 1.9.* is
|   362868 [dblack@ru yp] $ ruby191 -e "p((1..10).include?(3.4))"
+ 362891 [data@qu nt m] Using ruby 1.9.1 and Windows Vista both examples return false.
threads.html
top