# Ruby

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

[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:** 1176

---

## [Passing params to Map method](https://www.ruby-forum.com/t/passing-params-to-map-method/132828)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 4\
**Last updated:** [March 26, 2008, 1:13pm UTC](https://www.ruby-forum.com/t/passing-params-to-map-method/132828 "2008-03-26T13:13:40Z")

</div>

Hi and thanks in advance for your help. I have been pounding every Ruby and Rails book I can find, desperately attempting to move beyond newbie status.My latest foray has taken me into the native 2.0.2 Rails::Info mod…

---

## [Class\_eval vs (class \<\< object)](https://www.ruby-forum.com/t/class-eval-vs-class-object/132957)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 3\
**Last updated:** [March 26, 2008, 12:27pm UTC](https://www.ruby-forum.com/t/class-eval-vs-class-object/132957 "2008-03-26T12:27:59Z")

</div>

What is the difference between class\_eval and “class \<\< object”? It seems like they are the same. I am thinking that class\_eval affects the greater class and “class\_object” is used on a singleton class. Are they mutua…

---

## [($B:FAw(B) Cygwin $B$G(B Resolv.getaddress $B$,\<:GT$9$k(B](https://www.ruby-forum.com/t/b-faw-b-cygwin-b-g-b-resolv-getaddress-b-gt-9-k-b/132449)

<div class="topic-metadata">

**Author:** [@Kouhei\_Y](https://www.ruby-forum.com/u/Kouhei_Y)\
**Replies:** 8\
**Last updated:** [March 26, 2008, 10:18am UTC](https://www.ruby-forum.com/t/b-faw-b-cygwin-b-g-b-resolv-getaddress-b-gt-9-k-b/132449 "2008-03-26T10:18:01Z")

</div>

e$B$3$s$K$A$O!#LxED$G$9!#e(B e$B0JA0!“e(B \[ruby-dev:29945\] Cygwin e$B$Ge(B Resolv.getaddress e$B$,\<:GT$9$ke(B e$B$H$$$&$N$rJs9p$7$^$7$?$,!”$=$N8e!“FC$K%j%”%/%7%g%s$,$J$+$C$?$N$G!"e(B e$B$b$&0lEY%a!\<%k$r=P$7$F$\_$^$9!#…

---

## [Create': ERROR (OCIError)](https://www.ruby-forum.com/t/create-error-ocierror/132565)

<div class="topic-metadata">

**Author:** [@maraby](https://www.ruby-forum.com/u/maraby)\
**Replies:** 1\
**Last updated:** [March 26, 2008, 9:24am UTC](https://www.ruby-forum.com/t/create-error-ocierror/132565 "2008-03-26T09:24:35Z")

</div>

I’m attempting to debug a script I’ve inherited. I really know nothing about ruby so if anyone could point me in the right direction I’d appreciate it. When I try to run my script I get the following output. I think…

---

## [Continuous integration on top of rubyforge SVN, your opinion?](https://www.ruby-forum.com/t/continuous-integration-on-top-of-rubyforge-svn-your-opinion/132853)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 2\
**Last updated:** [March 26, 2008, 9:00am UTC](https://www.ruby-forum.com/t/continuous-integration-on-top-of-rubyforge-svn-your-opinion/132853 "2008-03-26T09:00:56Z")

</div>

Hi, What about setting up a basic continuous integration process to ensure we keep the core compiling (if not more) ? I believe internally at Microsoft this process is already in place with TFS. It could be useful …

---

## [Sorting text in a file](https://www.ruby-forum.com/t/sorting-text-in-a-file/132962)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 5\
**Last updated:** [March 26, 2008, 8:29am UTC](https://www.ruby-forum.com/t/sorting-text-in-a-file/132962 "2008-03-26T08:29:37Z")

</div>

Hi Ive been hacking away at this all morning and getting nowhere fast. Im relatively new to ruby and im not so hot at regex. Im trying to grab text data from a website that shows events and then putting each event int…

---

## [Ruby SMB](https://www.ruby-forum.com/t/ruby-smb/132956)

<div class="topic-metadata">

**Author:** [@glacius](https://www.ruby-forum.com/u/glacius)\
**Replies:** 1\
**Last updated:** [March 26, 2008, 6:08am UTC](https://www.ruby-forum.com/t/ruby-smb/132956 "2008-03-26T06:08:38Z")

</div>

Hi I am having some difficulty getting ruby/smb built I am semi new to ruby and I am executing the ruby extconf.rb but below is what I get checking for libsmbclient.h… no checking for smbc\_init() in -lsmbclient… no …

---

## [Regular Expressions](https://www.ruby-forum.com/t/regular-expressions/132948)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 3\
**Last updated:** [March 26, 2008, 6:06am UTC](https://www.ruby-forum.com/t/regular-expressions/132948 "2008-03-26T06:06:42Z")

</div>

Hi, Sorry if this is already discussed somewhere but after a trawl through this forum I couldn’t find what the state of play is with regular expression support in IronRuby. I took a look at the IronRuby.Libraries ass…

---

## [Kirbybase problem](https://www.ruby-forum.com/t/kirbybase-problem/132846)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 5\
**Last updated:** [March 26, 2008, 5:58am UTC](https://www.ruby-forum.com/t/kirbybase-problem/132846 "2008-03-26T05:58:44Z")

</div>

Jamey, After a very long wait, I’m finally diving into the Kirbybase gem. My problem is that I’m trying to create a table, following very carefully the example given in the quite nice documentation (!), and it’s not …

---

## [Thread.rb](https://www.ruby-forum.com/t/thread-rb/132830)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 11\
**Last updated:** [March 26, 2008, 4:51am UTC](https://www.ruby-forum.com/t/thread-rb/132830 "2008-03-26T04:51:20Z")

</div>

I want to modify the Queue class in thread.rb, so I first searched for the file. I found it in /usr/lib/ruby/1.8/thread.rb, both on a Mac and a Linux machine. On the Mac, the file was as expected, but on the Linux m…

---

## [Ruby roadmap](https://www.ruby-forum.com/t/ruby-roadmap/132952)

<div class="topic-metadata">

**Author:** [@zaki](https://www.ruby-forum.com/u/zaki)\
**Replies:** 0\
**Last updated:** [March 26, 2008, 3:36am UTC](https://www.ruby-forum.com/t/ruby-roadmap/132952 "2008-03-26T03:36:32Z")

</div>

Hi I was wondering if there was a tracker for changes/requests for ruby (2.0 maybe), or maybe a list of features that are considered for becoming part of the new versions. This far I have found the official bug track…

---

## [Pros and Cons of Ruby vs JRuby for GUI](https://www.ruby-forum.com/t/pros-and-cons-of-ruby-vs-jruby-for-gui/132874)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 10\
**Last updated:** [March 26, 2008, 2:33am UTC](https://www.ruby-forum.com/t/pros-and-cons-of-ruby-vs-jruby-for-gui/132874 "2008-03-26T02:33:56Z")

</div>

Although I have been using Ruby for awhile, I am really a beginner as I use it very sporadically and depend much on my books and the forum. In the recent past, while trying to learn a GUI tool, I tried writing simple …

---

## [Working with Google Analytics](https://www.ruby-forum.com/t/working-with-google-analytics/132946)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 1\
**Last updated:** [March 26, 2008, 2:15am UTC](https://www.ruby-forum.com/t/working-with-google-analytics/132946 "2008-03-26T02:15:45Z")

</div>

Hi Guys, Thanks for your help earlier. My company, Pilotoutlook.com is close on the heels of launching our first APIs - AirportLookup (shameless plug - it is going to be the largest Airport DB) and I want to track…

---

## [WSDL interface query with soap4r](https://www.ruby-forum.com/t/wsdl-interface-query-with-soap4r/132944)

<div class="topic-metadata">

**Author:** [@Benjohn\_B](https://www.ruby-forum.com/u/Benjohn_B)\
**Replies:** 0\
**Last updated:** [March 26, 2008, 1:11am UTC](https://www.ruby-forum.com/t/wsdl-interface-query-with-soap4r/132944 "2008-03-26T01:11:49Z")

</div>

Does the soap4r gem support reflection / query of the wsdl interface? I’d like to query the methods available in a driver, the arguments they take, and the structures they return. If I can get this information out, I …

---

## [Golf: tabs to bullets](https://www.ruby-forum.com/t/golf-tabs-to-bullets/132933)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 17\
**Last updated:** [March 26, 2008, 12:59am UTC](https://www.ruby-forum.com/t/golf-tabs-to-bullets/132933 "2008-03-26T00:59:29Z")

</div>

Given: an outline list, with each line indented by a series of tabs a list of bullets (assume a circular list, for simplicity) Write a function that replaces every tab with two spaces, except for the last one, which …

---

## [Ruby and Facebook marketing](https://www.ruby-forum.com/t/ruby-and-facebook-marketing/132644)

<div class="topic-metadata">

**Author:** [@SSKyrre\_NygSSSSrdSS](https://www.ruby-forum.com/u/SSKyrre_NygSSSSrdSS)\
**Replies:** 4\
**Last updated:** [March 26, 2008, 12:37am UTC](https://www.ruby-forum.com/t/ruby-and-facebook-marketing/132644 "2008-03-26T00:37:45Z")

</div>

Hey, Has anyone out there used Ruby to gain traffic / market products via Facebook (or MySpace, Bebo, Hi5 etc. for that matter)? Kyrre

---

## [Setting Focus on Console Window](https://www.ruby-forum.com/t/setting-focus-on-console-window/131528)

<div class="topic-metadata">

**Author:** [@hiriumi](https://www.ruby-forum.com/u/hiriumi)\
**Replies:** 2\
**Last updated:** [March 26, 2008, 12:27am UTC](https://www.ruby-forum.com/t/setting-focus-on-console-window/131528 "2008-03-26T00:27:47Z")

</div>

Hello, I’m having an issue with having a focus on the Ruby invoked console window on Windows platform when I start the process from one of the Scheduled Tasks. I have a Ruby script that gets kicked off by Scheduled T…

---

## [Generating unique random numbers](https://www.ruby-forum.com/t/generating-unique-random-numbers/132821)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 14\
**Last updated:** [March 25, 2008, 11:57pm UTC](https://www.ruby-forum.com/t/generating-unique-random-numbers/132821 "2008-03-25T23:57:51Z")

</div>

I’m trying to generate 8 unique random numbers between 1 and 13. for example my first set of results could be: 2, 8, 4, 6, 3, 10, 12, 1 the results need to be between 1 and 13 and they must be unique. The rand(12) + …

---

## [Implementing interface methods](https://www.ruby-forum.com/t/implementing-interface-methods/132942)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 11:50pm UTC](https://www.ruby-forum.com/t/implementing-interface-methods/132942 "2008-03-25T23:50:07Z")

</div>

Hi all! I’m trying to use the java-gstreamer library. They’re using this class with some interface methods. I want to add the methods via jruby in an easy way. How can I do this? I’ve now got this: Parked at Loopia …

---

## [Using the gstreamer jar in jruby](https://www.ruby-forum.com/t/using-the-gstreamer-jar-in-jruby/132412)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 6\
**Last updated:** [March 25, 2008, 10:46pm UTC](https://www.ruby-forum.com/t/using-the-gstreamer-jar-in-jruby/132412 "2008-03-25T22:46:47Z")

</div>

Hi all, I’m trying to use the Gstreamer jar in jruby, but I can’t manage to get it going. This is what I’m doing: leon@polly:~$ jirb irb(main):001:0\> include Java =\> Object irb(main):002:0\> require ‘/home/leon/Des…

---

## [Google words' popularity](https://www.ruby-forum.com/t/google-words-popularity/132807)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 2\
**Last updated:** [March 25, 2008, 9:38pm UTC](https://www.ruby-forum.com/t/google-words-popularity/132807 "2008-03-25T21:38:11Z")

</div>

Can somebody write this for ruby? \<?php echo getscore ("ruby", "lang\_en"); function getscore($wrd, $lng) { $wrd = str\_replace(" ", "+", $wrd); $url = "http://www.google.com/search?q=%22" . $wrd . "%22&num=1&lr=" .…

---

## [Clean a header](https://www.ruby-forum.com/t/clean-a-header/132909)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 2\
**Last updated:** [March 25, 2008, 8:58pm UTC](https://www.ruby-forum.com/t/clean-a-header/132909 "2008-03-25T20:58:34Z")

</div>

Hi, I’ve a string like this: header = “Header : \\r\\n \\t \\r\\n \\t 111 aaa 2222 3333 \\r\\n” I need to clean it and leave as follows: “Header:111 aaa 2222 3333” The best I get is this: header.strip.gsub(/(\\s\*…

---

## [Optionparser to gui automation?](https://www.ruby-forum.com/t/optionparser-to-gui-automation/132782)

<div class="topic-metadata">

**Author:** [@scorintha](https://www.ruby-forum.com/u/scorintha)\
**Replies:** 7\
**Last updated:** [March 25, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/optionparser-to-gui-automation/132782 "2008-03-25T20:35:33Z")

</div>

I’m looking to support functionality like follows: You start a ruby program with commandline arguments (in a standard optionparser kind of way)… If you do not provide any, a GUI pops up, asking you for things that w…

---

## [Remove regex matched line question](https://www.ruby-forum.com/t/remove-regex-matched-line-question/132898)

<div class="topic-metadata">

**Author:** [@ikuta](https://www.ruby-forum.com/u/ikuta)\
**Replies:** 12\
**Last updated:** [March 25, 2008, 6:51pm UTC](https://www.ruby-forum.com/t/remove-regex-matched-line-question/132898 "2008-03-25T18:51:12Z")

</div>

I wrote the code to query a txt file, and tried remove matched line like as below but it not work as well, can someone help? code: src = File.open("./src.txt").readlines puts src.inspect src.collect do |e| if e=~/^…

---

## [Flexible, template-freeable web framework?](https://www.ruby-forum.com/t/flexible-template-freeable-web-framework/132904)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 1\
**Last updated:** [March 25, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/flexible-template-freeable-web-framework/132904 "2008-03-25T18:45:13Z")

</div>

I have this idea of answering the question “What would happen if I added unprecedented amounts of built-in support for exploratory testing to a web app?” For the reasons, see \<Exploration Through Example » Blog Archiv…

---

## [For Comment: Gem Browser](https://www.ruby-forum.com/t/for-comment-gem-browser/132114)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 22\
**Last updated:** [March 25, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/for-comment-gem-browser/132114 "2008-03-25T17:33:22Z")

</div>

It occurred to me that the way I was finding Gems was by making notes of what I saw coming across this list and various other disorganized ways. That didn’t seem too bright and searching RubyForge didn’t always turn t…

---

## [Help parsing and extracting a num](https://www.ruby-forum.com/t/help-parsing-and-extracting-a-num/132883)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 4\
**Last updated:** [March 25, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/help-parsing-and-extracting-a-num/132883 "2008-03-25T17:29:40Z")

</div>

Hi, I’m trying to extract a num from a string. This string is in fact some number of headers separated by \\r\\n or \\n. for now I just need to extract the value of “Content-Length” (case insensitive) header. For example…

---

## [How can I develop a Web Application using ruby without rails](https://www.ruby-forum.com/t/how-can-i-develop-a-web-application-using-ruby-without-rails/132873)

<div class="topic-metadata">

**Author:** [@deepkumarb](https://www.ruby-forum.com/u/deepkumarb)\
**Replies:** 6\
**Last updated:** [March 25, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/how-can-i-develop-a-web-application-using-ruby-without-rails/132873 "2008-03-25T16:32:34Z")

</div>

I have an idea about developing web application using Ruby on Rails. But I don’t know how to develop a web application using only ruby without rails. Is it possible? If possible how can I handle requests, actions, res…

---

## [Rspec Spec::Example::Configuration question](https://www.ruby-forum.com/t/rspec-spec-configuration-question/132120)

<div class="topic-metadata">

**Author:** [@mroths](https://www.ruby-forum.com/u/mroths)\
**Replies:** 1\
**Last updated:** [March 25, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/rspec-spec-configuration-question/132120 "2008-03-25T16:22:28Z")

</div>

Can anyone point me in the direction of the correct way to use rspec’s configuration class to mixin modules into example groups (and add before/after blocks) according to type. http://rspec.info/rdoc/classes/Spec/Exam…

---

## [Remote files?](https://www.ruby-forum.com/t/remote-files/132858)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [March 25, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/remote-files/132858 "2008-03-25T16:06:58Z")

</div>

I need to read the contents of 2 files on a remote webserver, for example: http://www.domain.com/box/text.txt The first file is a plain-text file and the other is a binary file (photo). Text file: I need to read the…

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

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