# Ruby

**URL:** https://www.ruby-forum.com/c/ruby/7.md?page=1446

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 1447

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229098)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 12:09am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229098 "2007-06-07T00:09:05Z")

</div>

Begin forwarded message:

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/148907)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 12:07am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/148907 "2007-06-07T00:07:03Z")

</div>

Begin forwarded message:

---

## [Ruby2ruby 1.1.6 Released](https://www.ruby-forum.com/t/ruby2ruby-1-1-6-released/106068)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/ruby2ruby-1-1-6-released/106068 "2007-06-06T23:53:58Z")

</div>

ruby2ruby version 1.1.6 has been released! http://seattlerb.rubyforge.org/ http://rubyforge.org/projects/seattlerb ruby2ruby provides a means of generating pure ruby code easily from ParseTree’s Sexps. This makes mak…

---

## [Newbie question: deleting all of a string's contents BEFORE](https://www.ruby-forum.com/t/newbie-question-deleting-all-of-a-strings-contents-before/106158)

<div class="topic-metadata">

**Author:** [@superwick](https://www.ruby-forum.com/u/superwick)\
**Replies:** 8\
**Last updated:** [June 6, 2007, 11:32pm UTC](https://www.ruby-forum.com/t/newbie-question-deleting-all-of-a-strings-contents-before/106158 "2007-06-06T23:32:53Z")

</div>

Hi, I was trying to figure out how to take a string like this: “http:// - YouTube” and removing everything before (and including) the “=”, creating a new string with just “QMuClxuWdH8”. At first I thought I would ha…

---

## [Range comparisons](https://www.ruby-forum.com/t/range-comparisons/105922)

<div class="topic-metadata">

**Author:** [@Yossef\_M](https://www.ruby-forum.com/u/Yossef_M)\
**Replies:** 3\
**Last updated:** [June 6, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/range-comparisons/105922 "2007-06-06T21:49:37Z")

</div>

Something came up as I was testing some ideas. I know Range objects can indicate whether a specific object is an included element, but something I thought might work didn’t: irb(main):001:0\> (1…10).include?(2…6) =\> …

---

## [Changing timezones](https://www.ruby-forum.com/t/changing-timezones/106146)

<div class="topic-metadata">

**Author:** [@samj](https://www.ruby-forum.com/u/samj)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 9:42pm UTC](https://www.ruby-forum.com/t/changing-timezones/106146 "2007-06-06T21:42:37Z")

</div>

Hi, Does anyone know how I can manipulate the timezone in ruby? I know that I get a date from unix seconds like Time.at(secs), but how can I get something like Time.at(secs, time\_zone)? At the moment Time.at appears …

---

## [Efficient regex scanning](https://www.ruby-forum.com/t/efficient-regex-scanning/106100)

<div class="topic-metadata">

**Author:** [@Trochalakis\_C](https://www.ruby-forum.com/u/Trochalakis_C)\
**Replies:** 7\
**Last updated:** [June 6, 2007, 7:52pm UTC](https://www.ruby-forum.com/t/efficient-regex-scanning/106100 "2007-06-06T19:52:20Z")

</div>

Hello there, I wan’t to extract all the words from a file and so i wrote the following code: file = ARGV\[0\] File.open(‘output’,‘w’) {|f| IO.read(file).scan(/\\w+/).each{|w| f.print w} } The problem with this code i…

---

## [Not sure what is wrong here](https://www.ruby-forum.com/t/not-sure-what-is-wrong-here/106110)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 7:28pm UTC](https://www.ruby-forum.com/t/not-sure-what-is-wrong-here/106110 "2007-06-06T19:28:16Z")

</div>

i am not sure what is wrong here tablearr is of type FASTERCSV::TABLE eachrow is of type FASTERCSV::ROW as per the fastercsv doc, the table.values\_at returns a array. the array has method .include? def checkduplicat…

---

## [RubyIDE field test](https://www.ruby-forum.com/t/rubyide-field-test/106123)

<div class="topic-metadata">

**Author:** [@llinklater](https://www.ruby-forum.com/u/llinklater)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/rubyide-field-test/106123 "2007-06-06T19:21:13Z")

</div>

Code gear is having open applications to the RubyIDE (RoR) field testing. http://www.codegear.com/article/36513

---

## [Web Services problem: OpenSSL::X509::StoreError](https://www.ruby-forum.com/t/web-services-problem-openssl-storeerror/106019)

<div class="topic-metadata">

**Author:** [@David\_Alphen](https://www.ruby-forum.com/u/David_Alphen)\
**Replies:** 8\
**Last updated:** [June 6, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/web-services-problem-openssl-storeerror/106019 "2007-06-06T17:44:56Z")

</div>

Hi, I have a Ruby script that invokes web services using SSL. It works. In order to make my web service work over https (SSL) i had to : \_create a directory called “soap” in my working directory. \_create a file in th…

---

## [\[$BDs0F(B\] Kernel#p $B$r$b$C$HJXMx$K(B](https://www.ruby-forum.com/t/bds0f-b-kernel-p-b-r-b-c-hjxmx-k-b/74677)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 18\
**Last updated:** [June 6, 2007, 5:32pm UTC](https://www.ruby-forum.com/t/bds0f-b-kernel-p-b-r-b-c-hjxmx-k-b/74677 "2007-06-06T17:32:55Z")

</div>

e$B1sF#PR2p$H?=$7$^$9!#e(B e$BF|:"$+$i;W$C$F$$$?$3$H$rDs0F$7$F$\_$^$9!#e(B p e$B$Oe(B nil e$B$G$O$J$/0z?t$rJV$7$F$/$l$k$H4r$7$$$H;W$$$^$9!#Nc$($Pe(B: def foo … str.gsub(…) end e$B$H$$$&%3!\<%I$r%G%P%C%0$7$F$$$F!"JV…

---

## [Http-access2 and https. How to? (OpenSSL::X509::StoreError)](https://www.ruby-forum.com/t/http-access2-and-https-how-to-openssl-storeerror/82846)

<div class="topic-metadata">

**Author:** [@Peter\_SSSgjfc](https://www.ruby-forum.com/u/Peter_SSSgjfc)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/http-access2-and-https-how-to-openssl-storeerror/82846 "2007-06-06T17:13:52Z")

</div>

Hi, The Gregory Houston blog has an entry about using http-access2 to talk with https websites: Here is the 4-line-demo he offers: require ‘http-access2’ client = HTTPAccess2::Client.new() client.ssl\_config.set\_t…

---

## [File.utime returns Invalid argument on Windows (winXP, ruby](https://www.ruby-forum.com/t/file-utime-returns-invalid-argument-on-windows-winxp-ruby/106028)

<div class="topic-metadata">

**Author:** [@Matt\_Scilipoti](https://www.ruby-forum.com/u/Matt_Scilipoti)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 4:59pm UTC](https://www.ruby-forum.com/t/file-utime-returns-invalid-argument-on-windows-winxp-ruby/106028 "2007-06-06T16:59:48Z")

</div>

I am receiving an “Invalid argument” error from File.utime. irb\> testfile = ‘d:/temp/2007/06/test.txt’ =\> “d:/temp/2007/06/test.txt” irb\> File.utime(0, Time.now, testfile) Errno::EINVAL: Invalid argument - d:/temp/20…

---

## [SOAP responses](https://www.ruby-forum.com/t/soap-responses/86062)

<div class="topic-metadata">

**Author:** [@nicken](https://www.ruby-forum.com/u/nicken)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/soap-responses/86062 "2007-06-06T16:16:34Z")

</div>

Hello, I’m making a query to a soap server, and I cant figure out how to get at the XML response. Using: soap.wiredump\_dev = STDOUT Prints the XML to STDOUT. I need to figure out how to get this XML into either a f…

---

## [SOAP Request Problem](https://www.ruby-forum.com/t/soap-request-problem/86580)

<div class="topic-metadata">

**Author:** [@mid](https://www.ruby-forum.com/u/mid)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/soap-request-problem/86580 "2007-06-06T16:11:28Z")

</div>

I’ve posted about this before but so far I’ve had no response. Since then I’ve also been to Ruby and #rubyonrails on Freenode but still nothing so I thought I’d post one last time. =================== I’m trying to…

---

## [SOAP performance and unmarshalling/parsing speed](https://www.ruby-forum.com/t/soap-performance-and-unmarshalling-parsing-speed/89349)

<div class="topic-metadata">

**Author:** [@micah](https://www.ruby-forum.com/u/micah)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/soap-performance-and-unmarshalling-parsing-speed/89349 "2007-06-06T15:51:22Z")

</div>

I have been playing around with SOAP a little (as a client), and I really like soap4r. I was able to get my SOAP client running without too much trouble at all. Unfortunately, the performance is fairly slow. We have…

---

## [Mysql transactions via ruby](https://www.ruby-forum.com/t/mysql-transactions-via-ruby/106111)

<div class="topic-metadata">

**Author:** [@paolo](https://www.ruby-forum.com/u/paolo)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/mysql-transactions-via-ruby/106111 "2007-06-06T15:32:20Z")

</div>

Hi, I’m trying to use transactions via “ruby mysql module” but there is no effect, just like the autocommit mode on. for example: mSql.query("set autocommit=0") mSql.query("start transaction") mSql.query("insert into…

---

## [Deploying an application](https://www.ruby-forum.com/t/deploying-an-application/105994)

<div class="topic-metadata">

**Author:** [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Replies:** 4\
**Last updated:** [June 6, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/deploying-an-application/105994 "2007-06-06T15:11:18Z")

</div>

Hi all, I wonder if you could some give some advice to a newbie? I am writing an application in ruby at work. I am wondering how do I make this available to everyone? Am I correct in thinking I have to install ruby o…

---

## [Ruby In Steel 1.1 Now Available!](https://www.ruby-forum.com/t/ruby-in-steel-1-1-now-available/106108)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/ruby-in-steel-1-1-now-available/106108 "2007-06-06T15:06:17Z")

</div>

June 6th, 2007 SapphireSteel Software has just released version 1.1 of Ruby In Steel Developer - the professional Ruby and Rails IDE for Visual Studio 2005. Version 1.1 of Ruby In Steel Developer consolidates the feat…

---

## [Ruby operator precedence](https://www.ruby-forum.com/t/ruby-operator-precedence/106107)

<div class="topic-metadata">

**Author:** [@daduke](https://www.ruby-forum.com/u/daduke)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 2:30pm UTC](https://www.ruby-forum.com/t/ruby-operator-precedence/106107 "2007-06-06T14:30:06Z")

</div>

Hi I’ve been toying a bit with Ruby based DSL in which I use some standard Ruby operators for my own evil purposes. I have some problems with operator precedence though. I can’t find any information about the pre…

---

## [Write COM clients in Ruby](https://www.ruby-forum.com/t/write-com-clients-in-ruby/106101)

<div class="topic-metadata">

**Author:** [@mshah](https://www.ruby-forum.com/u/mshah)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 1:49pm UTC](https://www.ruby-forum.com/t/write-com-clients-in-ruby/106101 "2007-06-06T13:49:58Z")

</div>

Hi, I searched the list and did not find anything rubyCOM. However I did not find good sample which concentrates on COM and not OLE. I want to write a MSAA (MS Active Accessiblity) Cliet to drive query various desk…

---

## [Reverse-range alternatives?](https://www.ruby-forum.com/t/reverse-range-alternatives/105955)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 10\
**Last updated:** [June 6, 2007, 10:51am UTC](https://www.ruby-forum.com/t/reverse-range-alternatives/105955 "2007-06-06T10:51:28Z")

</div>

Since a reverse range (eg. 4…1) is functionally almost the same as an empty range, is there an alternative in the standard library, where .each would actually iterate over the elements from first to last, in this case…

---

## [Web Services problem: URI library / address location](https://www.ruby-forum.com/t/web-services-problem-uri-library-address-location/106018)

<div class="topic-metadata">

**Author:** [@David\_Alphen](https://www.ruby-forum.com/u/David_Alphen)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 10:51am UTC](https://www.ruby-forum.com/t/web-services-problem-uri-library-address-location/106018 "2007-06-06T10:51:28Z")

</div>

Hi, When I use address location in my wsdl without http:// and with a port like : my.location:7800 in \<wsdl:service name=“WebServices”\> \<wsdl:port name=“WebServicesPort” binding=“aws:WebServicesBinding”\> \<soap:ad…

---

## [Help repost to Ruby Dev -- 2 improvements to Ruby Magic](https://www.ruby-forum.com/t/help-repost-to-ruby-dev-2-improvements-to-ruby-magic/106072)

<div class="topic-metadata">

**Author:** [@thesunny](https://www.ruby-forum.com/u/thesunny)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 9:55am UTC](https://www.ruby-forum.com/t/help-repost-to-ruby-dev-2-improvements-to-ruby-magic/106072 "2007-06-06T09:55:20Z")

</div>

This is a proposed solution to simplify magic in Ruby. I’d appreciate it if somebody who has post access to ‘Ruby-core’ or ‘Ruby-dev’ could post this message there. Thank you in advance. If you get to read this Matz, …

---

## [Asking for style critics: Collecting the result of a query](https://www.ruby-forum.com/t/asking-for-style-critics-collecting-the-result-of-a-query/106004)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 4\
**Last updated:** [June 6, 2007, 9:45am UTC](https://www.ruby-forum.com/t/asking-for-style-critics-collecting-the-result-of-a-query/106004 "2007-06-06T09:45:19Z")

</div>

May I ask some kind soul to criticize the following piece of code? I don’t have that much experience with Ruby yet, but I feel I could do it simpler than that. Problem: Fetch result of a query (it happens to be a SQL …

---

## [Example on rpdf2text?](https://www.ruby-forum.com/t/example-on-rpdf2text/106079)

<div class="topic-metadata">

**Author:** [@coelho](https://www.ruby-forum.com/u/coelho)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 9:36am UTC](https://www.ruby-forum.com/t/example-on-rpdf2text/106079 "2007-06-06T09:36:18Z")

</div>

Hello, I am trying to use the rpdf2text library, does anyone have any example on how to use properly? http://raa.ruby-lang.org/project/rpdf2txt/ thank you

---

## [Re: \[QUIZ\] FizzBuzz (#126)](https://www.ruby-forum.com/t/re-quiz-fizzbuzz-126/106082)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 7:11am UTC](https://www.ruby-forum.com/t/re-quiz-fizzbuzz-126/106082 "2007-06-06T07:11:04Z")

</div>

If I wanted to show them how eXtreme I was, I would start by writing some tests: fizzbuzz\_test.rb require ‘spec’ require ‘fizzbuzz’ describe :fizzbuzz do This is just so we can read the results of all those ‘puts’ b…

---

## [Question about getc](https://www.ruby-forum.com/t/question-about-getc/105993)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [June 6, 2007, 5:35am UTC](https://www.ruby-forum.com/t/question-about-getc/105993 "2007-06-06T05:35:57Z")

</div>

Hi. If we call gets(), the returned string is copied to a special variable $\_ Do we have such things for getc(), too?

---

## [\[QUIZ\] FizzBuzz (#126) \[solution #1\]](https://www.ruby-forum.com/t/quiz-fizzbuzz-126-solution-1/106029)

<div class="topic-metadata">

**Author:** [@MenTaLguY](https://www.ruby-forum.com/u/MenTaLguY)\
**Replies:** 4\
**Last updated:** [June 6, 2007, 5:27am UTC](https://www.ruby-forum.com/t/quiz-fizzbuzz-126-solution-1/106029 "2007-06-06T05:27:56Z")

</div>

I’ve got two solutions this go-round. First, the solution I would present were I asked to do this in an actual job interview: for n in 1…100 mult\_3 = ( n % 3 ).zero? mult\_5 = ( n % 5 ).zero? if mult\_3 or mult\_5 pr…

---

## [Heckle 1.4.1 Released](https://www.ruby-forum.com/t/heckle-1-4-1-released/106071)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 4:53am UTC](https://www.ruby-forum.com/t/heckle-1-4-1-released/106071 "2007-06-06T04:53:55Z")

</div>

heckle version 1.4.1 has been released! http://www.rubyforge.org/projects/seattlerb Heckle is a mutation tester. It modifies your code and runs your tests to make sure they fail. The idea is that if code can be ch…

[Previous page](https://www.ruby-forum.com/c/ruby/7.md?page=1445)

[Next page](https://www.ruby-forum.com/c/ruby/7.md?page=1447)
