# Ruby

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

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

---

## [Get title from URL?](https://www.ruby-forum.com/t/get-title-from-url/166361)

<div class="topic-metadata">

**Author:** [@ciscor](https://www.ruby-forum.com/u/ciscor)\
**Replies:** 6\
**Last updated:** [April 28, 2009, 2:55am UTC](https://www.ruby-forum.com/t/get-title-from-url/166361 "2009-04-28T02:55:39Z")

</div>

Anybody have a code snippet that extracts the title from the tag from a given URL?

---

## [Ruby Use](https://www.ruby-forum.com/t/ruby-use/166509)

<div class="topic-metadata">

**Author:** [@jwkh](https://www.ruby-forum.com/u/jwkh)\
**Replies:** 4\
**Last updated:** [April 28, 2009, 2:00am UTC](https://www.ruby-forum.com/t/ruby-use/166509 "2009-04-28T02:00:41Z")

</div>

I’m JUST beginning my study of Ruby, and I still have a really long way to go. (That’s why my questions are what they are…) I was wondering if anyone uses Ruby “outside” the Web development/ maintenance “environment…

---

## [SOAP and Ruby 1.9](https://www.ruby-forum.com/t/soap-and-ruby-1-9/166635)

<div class="topic-metadata">

**Author:** [@cult\_hero](https://www.ruby-forum.com/u/cult_hero)\
**Replies:** 0\
**Last updated:** [April 28, 2009, 1:50am UTC](https://www.ruby-forum.com/t/soap-and-ruby-1-9/166635 "2009-04-28T01:50:45Z")

</div>

I thought this would be a pretty simple subject but… it appears that is not the case. What should I be using for SOAP in Ruby 1.9? Is there anything? When I first set up 1.9.1 on my machine I read through this: http:…

---

## [\[Bug #1415\] Struct$B$,(Bpp$B$G$-$J$$(B](https://www.ruby-forum.com/t/bug-1415-struct-b-bpp-b-g-j-b/166614)

<div class="topic-metadata">

**Author:** [@rubikitch\_S](https://www.ruby-forum.com/u/rubikitch_S)\
**Replies:** 1\
**Last updated:** [April 28, 2009, 12:18am UTC](https://www.ruby-forum.com/t/bug-1415-struct-b-bpp-b-g-j-b/166614 "2009-04-28T00:18:16Z")

</div>

Bug #1415: Structe$B$,e(Bppe$B$G$-$J$$e(B http://redmine.ruby-lang.org/issues/show/1415 e$B5/I\<\<Te(B: rubikitch . e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib, Target version: 1.9.1 ruby -v: ruby…

---

## [Gem install puzzlet](https://www.ruby-forum.com/t/gem-install-puzzlet/166590)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 5\
**Last updated:** [April 28, 2009, 12:03am UTC](https://www.ruby-forum.com/t/gem-install-puzzlet/166590 "2009-04-28T00:03:38Z")

</div>

$ gem list qtruby4 -r \*\*\* REMOTE GEMS \*\*\* qtruby4 (1.4.9) $ sudo gem install qtruby4 ERROR: could not find gem qtruby4 locally or in a repository This flies in the face of my world model. I list a gem, it appears, …

---

## [Change\_column\_null missing in ar-jdbcpostgresql-adapter-0.9.1?](https://www.ruby-forum.com/t/change-column-null-missing-in-ar-jdbcpostgresql-adapter-0-9-1/166626)

<div class="topic-metadata">

**Author:** [@donv](https://www.ruby-forum.com/u/donv)\
**Replies:** 0\
**Last updated:** [April 28, 2009, 12:03am UTC](https://www.ruby-forum.com/t/change-column-null-missing-in-ar-jdbcpostgresql-adapter-0-9-1/166626 "2009-04-28T00:03:03Z")

</div>

Hi all! I am getting “undefined method \`change\_column\_null’” in a migration step when using ar-jdbcpostgresql-adapter-0.9.1. Is this a known problem?

---

## [Using method missing to create getters and setters](https://www.ruby-forum.com/t/using-method-missing-to-create-getters-and-setters/166515)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 9\
**Last updated:** [April 27, 2009, 11:45pm UTC](https://www.ruby-forum.com/t/using-method-missing-to-create-getters-and-setters/166515 "2009-04-27T23:45:27Z")

</div>

Hi, I am trying to create a model (BatchExternalBooking) which has the following methods: BatchExternalBooking.message\_thread\_1= BatchExternalBooking.message\_thread\_1 BatchExternalBooking.message\_thread\_2= BatchExt…

---

## [Gem tcp port?](https://www.ruby-forum.com/t/gem-tcp-port/166522)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 27, 2009, 10:44pm UTC](https://www.ruby-forum.com/t/gem-tcp-port/166522 "2009-04-27T22:44:28Z")

</div>

Hi, I’m using ruby on a machine behind a severely locked down firewall where all ports are closed by default, and I only open the ones I will need. What port does gem run through please? Steve

---

## [How to parse a "line"?](https://www.ruby-forum.com/t/how-to-parse-a-line/166527)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 24\
**Last updated:** [April 27, 2009, 10:39pm UTC](https://www.ruby-forum.com/t/how-to-parse-a-line/166527 "2009-04-27T22:39:10Z")

</div>

Hi there: I have a line, the format is like this “num\_of\_item item1 item2…item\_n” for example “3 Tokyo Newyork Paris” I want ruby parse this format, extract these keywords and save them in an array. I googled and s…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/166616)

<div class="topic-metadata">

**Author:** [@tjnogueira](https://www.ruby-forum.com/u/tjnogueira)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 10:19pm UTC](https://www.ruby-forum.com/t/unsubscribe/166616 "2009-04-27T22:19:46Z")

</div>

unsubscribe —Registre seu domínio .com ou .net por apenas R$15,00/ano e GANHE hospedagem, blog e e-mail grátis!LocaWeb - Soluções Completas em Serviços de Internet (www.locaweb.com.br)

---

## [RMagick](https://www.ruby-forum.com/t/rmagick/161483)

<div class="topic-metadata">

**Author:** [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Replies:** 3\
**Last updated:** [April 27, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/rmagick/161483 "2009-04-27T21:25:34Z")

</div>

I installed the ImageMagick binary but when I try to install RMagick (gem) I get the foloowing error- /usr/local/bin/ruby extconf.rb install rmagick checking for Ruby version \>= 1.8.2… yes checking for gcc… yes chec…

---

## [Console.Writeline - 2147483647 arguments?](https://www.ruby-forum.com/t/console-writeline-2147483647-arguments/166547)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 3\
**Last updated:** [April 27, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/console-writeline-2147483647-arguments/166547 "2009-04-27T21:02:19Z")

</div>

Hello, Just tried to do the following and got an odd error: system::console::writeline(“Test”) :0: wrong number of arguments (1 for 2147483647) (ArgumentError) I do remember something similar a while ago - what…

---

## [Generating a report from an ugly log file](https://www.ruby-forum.com/t/generating-a-report-from-an-ugly-log-file/166560)

<div class="topic-metadata">

**Author:** [@Srijayanth\_S](https://www.ruby-forum.com/u/Srijayanth_S)\
**Replies:** 2\
**Last updated:** [April 27, 2009, 7:50pm UTC](https://www.ruby-forum.com/t/generating-a-report-from-an-ugly-log-file/166560 "2009-04-27T19:50:07Z")

</div>

Hello, I have the following problem. There exists a really ugly debug log file which has mysql query statements. Looking through the log makes it hard to understand esp while providing reports to bosses/mgrs etc. so…

---

## [Problem with rubygems and rake creating a new gem](https://www.ruby-forum.com/t/problem-with-rubygems-and-rake-creating-a-new-gem/166379)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 6\
**Last updated:** [April 27, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/problem-with-rubygems-and-rake-creating-a-new-gem/166379 "2009-04-27T19:42:27Z")

</div>

HÃ¦, I’ve updated rubygems to the last version since it was necessary for another library and now I cannot create the gem file for my framework. What I have is a rakefile.rb: require ‘rubygems’ Gem::manage\_gems req…

---

## [Legacy encryption function](https://www.ruby-forum.com/t/legacy-encryption-function/166592)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 3\
**Last updated:** [April 27, 2009, 7:07pm UTC](https://www.ruby-forum.com/t/legacy-encryption-function/166592 "2009-04-27T19:07:34Z")

</div>

Hello everyone, I have an old Java authentication web service that I must use in my rails development. The service takes a username and an encrypted password. I’m having trouble reproducing the same encryption algorit…

---

## [Can't read Yaml for domain type](https://www.ruby-forum.com/t/cant-read-yaml-for-domain-type/166551)

<div class="topic-metadata">

**Author:** [@gganesh](https://www.ruby-forum.com/u/gganesh)\
**Replies:** 1\
**Last updated:** [April 27, 2009, 7:06pm UTC](https://www.ruby-forum.com/t/cant-read-yaml-for-domain-type/166551 "2009-04-27T19:06:39Z")

</div>

I have one yaml file “content.yml” which has content, key: !DBClass debug: Y Directory : /var/tmp name: John phone: 487394 As, I am trying to load the file via, obj= YAML.load(File.open(“content.yml”)) But i do…

---

## [Retrieving the testcase name in class inheriting unit testca](https://www.ruby-forum.com/t/retrieving-the-testcase-name-in-class-inheriting-unit-testca/166520)

<div class="topic-metadata">

**Author:** [@anilg](https://www.ruby-forum.com/u/anilg)\
**Replies:** 2\
**Last updated:** [April 27, 2009, 6:20pm UTC](https://www.ruby-forum.com/t/retrieving-the-testcase-name-in-class-inheriting-unit-testca/166520 "2009-04-27T18:20:51Z")

</div>

Hi, How can i retrieve the testcase name, while running the testcases of the class inherited by unit testcase. For example in the below script I would like to access the testcase name in setup function. Testscript …

---

## [IronRuby and RSpec](https://www.ruby-forum.com/t/ironruby-and-rspec/166584)

<div class="topic-metadata">

**Author:** [@devbanana](https://www.ruby-forum.com/u/devbanana)\
**Replies:** 1\
**Last updated:** [April 27, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/ironruby-and-rspec/166584 "2009-04-27T17:45:37Z")

</div>

Hi, I’m having trouble running IronRuby with RSpec. I have a simple file just to test. The last require statement is loading the .NET assembly from my project, but it’s not actually used in this example. require ‘…

---

## [Rice-1.1.0 with Ruby 1.9.0 compatibility!](https://www.ruby-forum.com/t/rice-1-1-0-with-ruby-1-9-0-compatibility/166579)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 3\
**Last updated:** [April 27, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/rice-1-1-0-with-ruby-1-9-0-compatibility/166579 "2009-04-27T17:35:04Z")

</div>

Rice: Ruby Interface for C++ Extensions Change Log: Works on Ruby 1.8.6, 1.8.7 and 1.9.0 with no changes to current extensions Fixed memory leaks Fixed various compilation issues, build uses the system’s ruby librar…

---

## [Execuate command problem](https://www.ruby-forum.com/t/execuate-command-problem/166589)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 4\
**Last updated:** [April 27, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/execuate-command-problem/166589 "2009-04-27T17:32:52Z")

</div>

I want to execute a shell command in ruby, like this: line = “tokyo paris london” par = “23 23 11 43” execute = “./comp #{line} #{par}” puts execute but the command executed is ./comp tokyo paris london 23 23 11 4…

---

## [Unable to handle javascript popup](https://www.ruby-forum.com/t/unable-to-handle-javascript-popup/166542)

<div class="topic-metadata">

**Author:** [@parikshitb](https://www.ruby-forum.com/u/parikshitb)\
**Replies:** 1\
**Last updated:** [April 27, 2009, 4:48pm UTC](https://www.ruby-forum.com/t/unable-to-handle-javascript-popup/166542 "2009-04-27T16:48:39Z")

</div>

HI i am trying to handle javascript popup dialog box, but not being very successful. I traied the method of autoit, winclicker etc… on popup box. but it just dont click. Pls help. Thnx parikshit

---

## [Rake gems:install](https://www.ruby-forum.com/t/rake-gems-install/166585)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/rake-gems-install/166585 "2009-04-27T16:46:36Z")

</div>

Hello everyone Can anyone point me to any documentation on how to use rake gems:install on rails 2.3.2 I think something must have changed in that release as my config/environment.rb is all set up to load up the gems…

---

## [Market Basket Algorithm - Direct Hashing and Pruning](https://www.ruby-forum.com/t/market-basket-algorithm-direct-hashing-and-pruning/166559)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 12:56pm UTC](https://www.ruby-forum.com/t/market-basket-algorithm-direct-hashing-and-pruning/166559 "2009-04-27T12:56:37Z")

</div>

Hi guys, I am going to implement an algorithm for Market Basket Algorithm upon items on my website (grouping different books together to increase their attraction). I am going to use Direct Hashing and Pruning (DHP). …

---

## [Sinatra : size of variable '@data' ? Bug?](https://www.ruby-forum.com/t/sinatra-size-of-variable-data-bug/166382)

<div class="topic-metadata">

**Author:** [@randy](https://www.ruby-forum.com/u/randy)\
**Replies:** 2\
**Last updated:** [April 27, 2009, 12:28pm UTC](https://www.ruby-forum.com/t/sinatra-size-of-variable-data-bug/166382 "2009-04-27T12:28:47Z")

</div>

Hi, I’m working under Windows XP and ruby 1.8.6 patch 227. My application display a ‘SELECT’ HTML to let choose a number. The list of number must be build : extracted from a database. I’ve also other ‘SELECT’ There …

---

## [Join as Remisser of Karvy](https://www.ruby-forum.com/t/join-as-remisser-of-karvy/166557)

<div class="topic-metadata">

**Author:** [@techiee](https://www.ruby-forum.com/u/techiee)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 11:05am UTC](https://www.ruby-forum.com/t/join-as-remisser-of-karvy/166557 "2009-04-27T11:05:51Z")

</div>

Karvy is an established stock broking firm with a strong customer base all over India, Karvy would like to reach out to more investors across the country, building a good distribution channel through Business Partner/…

---

## [Getting "java.io.IOException: error=12, Cannot allocate memory" from exception notification plugin](https://www.ruby-forum.com/t/getting-java-io-ioexception-error-12-cannot-allocate-memory-from-exception-notification-plugin/146414)

<div class="topic-metadata">

**Author:** [@Myron\_M](https://www.ruby-forum.com/u/Myron_M)\
**Replies:** 3\
**Last updated:** [April 27, 2009, 9:19am UTC](https://www.ruby-forum.com/t/getting-java-io-ioexception-error-12-cannot-allocate-memory-from-exception-notification-plugin/146414 "2009-04-27T09:19:16Z")

</div>

Hello, I’ve recently purchased a VPS hosting package to use for the web app I’ve been developing the last several months. I’ve been trying to configure everything properly, but I’m having an issue with the exception …

---

## [\[Bug #1410\] irb shows some messages on boot](https://www.ruby-forum.com/t/bug-1410-irb-shows-some-messages-on-boot/166505)

<div class="topic-metadata">

**Author:** [@Nobuhiro\_IMAI](https://www.ruby-forum.com/u/Nobuhiro_IMAI)\
**Replies:** 5\
**Last updated:** [April 27, 2009, 8:59am UTC](https://www.ruby-forum.com/t/bug-1410-irb-shows-some-messages-on-boot/166505 "2009-04-27T08:59:14Z")

</div>

Bug #1410: irb shows some messages on boot http://redmine.ruby-lang.org/issues/show/1410 e$B5/I\<\<Te(B: Nobuhiro IMAI e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2009-04-26 trunk 23293) \[i686-…

---

## [Append .cvs behind an array value](https://www.ruby-forum.com/t/append-cvs-behind-an-array-value/166541)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 4\
**Last updated:** [April 27, 2009, 7:08am UTC](https://www.ruby-forum.com/t/append-cvs-behind-an-array-value/166541 "2009-04-27T07:08:08Z")

</div>

I want to add “.cvs” at the end of a name,and use the following sentenses: namelist.each do |name| name = name +’.cvs’ end but error message is : test2.rb:43:in +': can't convert String into Array (TypeError) from …

---

## [Creating directory and its files](https://www.ruby-forum.com/t/creating-directory-and-its-files/166538)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 3\
**Last updated:** [April 27, 2009, 6:59am UTC](https://www.ruby-forum.com/t/creating-directory-and-its-files/166538 "2009-04-27T06:59:11Z")

</div>

Hi there: I want to create a directory and create files under it. I can use FileUtils.mkdir\_p ARGV\[0\] to create a directory, however if the directory already exist, program will generate error messages: /System/Li…

---

## [Deleting numbers in array](https://www.ruby-forum.com/t/deleting-numbers-in-array/166537)

<div class="topic-metadata">

**Author:** [@claytonl](https://www.ruby-forum.com/u/claytonl)\
**Replies:** 11\
**Last updated:** [April 27, 2009, 5:39am UTC](https://www.ruby-forum.com/t/deleting-numbers-in-array/166537 "2009-04-27T05:39:36Z")

</div>

I’m new to Ruby and unsure how to delete numbers in an array. I have an array filled with numbers from 1 to 100. If I use nums.delete\_if {|x| x == 9 }, it will delete 9, but I want to remove any number containing 9. F…

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

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