# Ruby

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

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

---

## [Trying to use regex](https://www.ruby-forum.com/t/trying-to-use-regex/107304)

<div class="topic-metadata">

**Author:** [@merrittr](https://www.ruby-forum.com/u/merrittr)\
**Replies:** 3\
**Last updated:** [June 20, 2007, 4:42pm UTC](https://www.ruby-forum.com/t/trying-to-use-regex/107304 "2007-06-20T16:42:51Z")

</div>

hi i am trying to strip out text between body tags but when run it i get: rob@rob-laptop:~/ruby$ ./html2.rb ./html2.rb:14: unknown regexp options - bdy ./html2.rb:14: unterminated string meets end of file ./html2.r…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/107328)

<div class="topic-metadata">

**Author:** [@lycanthrope](https://www.ruby-forum.com/u/lycanthrope)\
**Replies:** 0\
**Last updated:** [June 20, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/no-subject/107328 "2007-06-20T15:50:44Z")

</div>

\-------- Forwarded Message -------- From: Reid T. removed\_email\_address@domain.invalid Reply-To: removed\_email\_address@domain.invalid Subject: Re: How can i get data from .txt file and .xml file? Date: Wed, 20 Jun 20…

---

## [How can i get data from .txt file and .xml file?](https://www.ruby-forum.com/t/how-can-i-get-data-from-txt-file-and-xml-file/107297)

<div class="topic-metadata">

**Author:** [@coolwong](https://www.ruby-forum.com/u/coolwong)\
**Replies:** 3\
**Last updated:** [June 20, 2007, 3:42pm UTC](https://www.ruby-forum.com/t/how-can-i-get-data-from-txt-file-and-xml-file/107297 "2007-06-20T15:42:40Z")

</div>

I have .txt file that is .xml format. i using require “rexml/document” and include REXML, but i don know how to get data from the .xml file.

---

## [Local vars clobbered by un-run code](https://www.ruby-forum.com/t/local-vars-clobbered-by-un-run-code/107203)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 12\
**Last updated:** [June 20, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/local-vars-clobbered-by-un-run-code/107203 "2007-06-20T15:33:39Z")

</div>

Err… irb(main):001:0\> def x; 1; end =\> nil irb(main):002:0\> p x 1 =\> nil irb(main):003:0\> if false irb(main):004:1\> x = x() + 1 irb(main):005:1\> end =\> nil irb(main):006:0\> x =\> nil Don’t tell me, it’s some…

---

## [Ruby Hoedown (the southeastern regional Ruby conference) upd](https://www.ruby-forum.com/t/ruby-hoedown-the-southeastern-regional-ruby-conference-upd/107326)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 0\
**Last updated:** [June 20, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/ruby-hoedown-the-southeastern-regional-ruby-conference-upd/107326 "2007-06-20T15:30:37Z")

</div>

Hello all, Since registration opened, we’ve been hard at work to get the details nailed down for the Hoedown, and here are some updates: CHARITY WORKSHOP The charity workshop has been (basically) finalized. It will …

---

## [Relative To Absolute Path Convertor](https://www.ruby-forum.com/t/relative-to-absolute-path-convertor/107239)

<div class="topic-metadata">

**Author:** [@ciocan](https://www.ruby-forum.com/u/ciocan)\
**Replies:** 2\
**Last updated:** [June 20, 2007, 3:03pm UTC](https://www.ruby-forum.com/t/relative-to-absolute-path-convertor/107239 "2007-06-20T15:03:32Z")

</div>

Is there a built in function/plugin that converts relative paths from a html page to absolute ones? Example: target url: http://mysite.com/folder/url.html url content: … some link … converted content: … \< a h…

---

## [Search](https://www.ruby-forum.com/t/search/107224)

<div class="topic-metadata">

**Author:** [@geetha](https://www.ruby-forum.com/u/geetha)\
**Replies:** 2\
**Last updated:** [June 20, 2007, 1:58pm UTC](https://www.ruby-forum.com/t/search/107224 "2007-06-20T13:58:25Z")

</div>

Hi, I need to implment the search using Ruby . The search word is more than one means my program getting problem. How can I solve that. For example , I am having one file . In that file more than 100 lines are ther…

---

## [Rails Routing 'short cut' (Addison-Wesley)](https://www.ruby-forum.com/t/rails-routing-short-cut-addison-wesley/107318)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 20, 2007, 1:15pm UTC](https://www.ruby-forum.com/t/rails-routing-short-cut-addison-wesley/107318 "2007-06-20T13:15:12Z")

</div>

Hi – The link I gave in my announcement of my Rails Routing ‘short cut’ from Addison-Wesley was to the Safari subscription page. If you want to buy it as a PDF, you can do so at: http://www.awprofessional.com/title/0…

---

## [Net::Telnet](https://www.ruby-forum.com/t/net-telnet/107311)

<div class="topic-metadata">

**Author:** [@sirtyman](https://www.ruby-forum.com/u/sirtyman)\
**Replies:** 2\
**Last updated:** [June 20, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/net-telnet/107311 "2007-06-20T13:08:33Z")

</div>

I’ve got an issue with following code: t.cmd('String' =\> "iptables -t mangle -L", 'Match' =\> /\\#/, 'Timeout' =\> 15 ) { |c| print c sleep 1 #THIS IS AN ISSUE I CAN'T UNDERSTAND if c =~ p…

---

## [Watir problem](https://www.ruby-forum.com/t/watir-problem/101926)

<div class="topic-metadata">

**Author:** [@kevin.jackson](https://www.ruby-forum.com/u/kevin.jackson)\
**Replies:** 13\
**Last updated:** [June 20, 2007, 11:01am UTC](https://www.ruby-forum.com/t/watir-problem/101926 "2007-06-20T11:01:48Z")

</div>

Hi, I’m just starting out with Watir to evaluate it’s use for testing web application, but I’m stuck with a require problem given the following script: require ‘watir’ include Watir ie = IE.new ie.goto(“http://lo…

---

## [\[BUG\] queue 0x424010 freed with live thread(s) waiting](https://www.ruby-forum.com/t/bug-queue-0x424010-freed-with-live-thread-s-waiting/89444)

<div class="topic-metadata">

**Author:** [@Masatoshi\_SEKI](https://www.ruby-forum.com/u/Masatoshi_SEKI)\
**Replies:** 3\
**Last updated:** [June 20, 2007, 10:05am UTC](https://www.ruby-forum.com/t/bug-queue-0x424010-freed-with-live-thread-s-waiting/89444 "2007-06-20T10:05:45Z")

</div>

e$B31$H$$$$$^$9!#e(B e$B=PCY$l$F$7$^$$$^$7$?$,!"$d$C$He(Bsvne$BHG$r;n$7;O$a$^$7$?!#e(B 1.8e$B7O$N%V%i%s%A$Oe(Bruby\_1\_8e$B$G$h$$$N$G$7$?$C$1e(B? e$B\<!$N%9%/%j%W%H$N$h$&$Je(BQueuee$B$rBT$C$F$k%9%l%C%I$,$"$k\>uBV$Ge(B e$…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/107290)

<div class="topic-metadata">

**Author:** [@Prateek\_Dayal](https://www.ruby-forum.com/u/Prateek_Dayal)\
**Replies:** 0\
**Last updated:** [June 20, 2007, 7:10am UTC](https://www.ruby-forum.com/t/no-subject/107290 "2007-06-20T07:10:29Z")

</div>

unsubscribe

---

## [Practical Ruby Gems review](https://www.ruby-forum.com/t/practical-ruby-gems-review/107195)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 4\
**Last updated:** [June 20, 2007, 1:28am UTC](https://www.ruby-forum.com/t/practical-ruby-gems-review/107195 "2007-06-20T01:28:10Z")

</div>

After waiting in the Slashdot pending queue for over a month (!), my review of David Berube’s Practical\_Ruby\_Gems finally made it to the front page: Practical Ruby Gems - Slashdot.

---

## [Check for text file](https://www.ruby-forum.com/t/check-for-text-file/107211)

<div class="topic-metadata">

**Author:** [@chucky](https://www.ruby-forum.com/u/chucky)\
**Replies:** 14\
**Last updated:** [June 20, 2007, 1:24am UTC](https://www.ruby-forum.com/t/check-for-text-file/107211 "2007-06-20T01:24:10Z")

</div>

Hi guys, After some research I still cannot find a way how to see if a file is plain text or binary. In fact I want to check if a file is plain text no matter what characters are in it. This thing may be possible by …

---

## [Remote\_form\_tag](https://www.ruby-forum.com/t/remote-form-tag/107251)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [June 19, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/remote-form-tag/107251 "2007-06-19T23:12:56Z")

</div>

Been having problems with remote\_form\_tag. It works in IE but does not work at all in any other browser. Has anyone had this problem and does anyone know how to fix it? Thx

---

## [Regular Expresion Needed](https://www.ruby-forum.com/t/regular-expresion-needed/107265)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 3\
**Last updated:** [June 19, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/regular-expresion-needed/107265 "2007-06-19T21:37:43Z")

</div>

Hello, I am fairly new to Ruby. I have some good Perl experience and I need to “translate” a regex in Perl over to Ruby. Here’s what I have: $\_ = ‘abc123def456ghi789jkl’; while(m/(\\d{4})/g) { print “$1\\n”; } Which …

---

## [MiniExifTool date formats](https://www.ruby-forum.com/t/miniexiftool-date-formats/107263)

<div class="topic-metadata">

**Author:** [@mtnbiker](https://www.ruby-forum.com/u/mtnbiker)\
**Replies:** 2\
**Last updated:** [June 19, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/miniexiftool-date-formats/107263 "2007-06-19T21:15:11Z")

</div>

I’m getting Sat Jun 09 23:10:57 -0700 2007 as output from photo.DateTimeOriginal I’d like to avoid parsing it myself and should think I’d be able to get an easier to deal with format. I’m going to change it to 2006.…

---

## [Shell login with IO.popen?](https://www.ruby-forum.com/t/shell-login-with-io-popen/107262)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 0\
**Last updated:** [June 19, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/shell-login-with-io-popen/107262 "2007-06-19T20:46:37Z")

</div>

Hi, Been messing around with IO and shell/system commands. I can’t seem to figure out why the first example works, and the second one doesn’t. Would someone be so kind and explain why this happens? WORKS su = IO.pope…

---

## [Full stack trace on exception](https://www.ruby-forum.com/t/full-stack-trace-on-exception/107048)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [June 19, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/full-stack-trace-on-exception/107048 "2007-06-19T18:47:17Z")

</div>

Ruby e$B$ONc30$,JaB\*$5$l$J$$\>l9g!"%9%?%C%/%H%l!\<%9$rI=\<($7$F$/e(B e$B$l$^$9$,!"$=$N$H$-!"e(B… 6 levels… e$B$J$I$HESCf$r\>JN,$7$F$/$le(B e$B$^$9!#e(B % ./ruby -e ‘def m(n) if n == 0 then raise else m(n-1) end end m(16)…

---

## [Thread#value when thread is killed](https://www.ruby-forum.com/t/thread-value-when-thread-is-killed/107242)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 1\
**Last updated:** [June 19, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/thread-value-when-thread-is-killed/107242 "2007-06-19T16:34:56Z")

</div>

e$B$3$s$P$s$O!"e(Bsheepman e$B$G$9!#e(B e$B%j%U%!%l%s%9%^%K%e%"%k$NJT=8$r$7$F$$$F5$$K$J$C$?$N$G$9$,!"e(B e$B%9%l%C%I$,e(B kill e$B$5$l$?;~$N!"e(BThread#value e$B$NJV$jCM$OITDje(B e$B$H$$$&$3$H$GNI$$$N$G$7$g$&$+!#e(B …

---

## [Browser -\> command line](https://www.ruby-forum.com/t/browser-command-line/107198)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 4\
**Last updated:** [June 19, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/browser-command-line/107198 "2007-06-19T16:24:54Z")

</div>

Hi, I was hoping I could get this done with PHP 5 in a day, but it’s turning out to be a little more complicated than I thought. Maybe Ruby can do this sort of thing easier? What I’d like to do is have a browser/web…

---

## [When file gets closed in a block](https://www.ruby-forum.com/t/when-file-gets-closed-in-a-block/107216)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 3\
**Last updated:** [June 19, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/when-file-gets-closed-in-a-block/107216 "2007-06-19T16:10:53Z")

</div>

I like to use this a lot: File.new(cName,‘wb+’).write(‘aText’) I have understood that file gets automaticly closed. But when? You can not delete file right after above statement. If you want to delete file you must u…

---

## [Help needed in building xruby (for java newbie)](https://www.ruby-forum.com/t/help-needed-in-building-xruby-for-java-newbie/107122)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 2\
**Last updated:** [June 19, 2007, 3:19pm UTC](https://www.ruby-forum.com/t/help-needed-in-building-xruby-for-java-newbie/107122 "2007-06-19T15:19:49Z")

</div>

Dear all, when trying to build xruby for Linux i586, OpenSuSE 10.2, I get the following errors: dhcppc1:/usr/local/xruby # export JAVA\_HOME=/usr dhcppc1:/usr/local/xruby # which javac /usr/bin/javac dhcppc1:/usr/lo…

---

## [An error I can't find](https://www.ruby-forum.com/t/an-error-i-cant-find/107232)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 5\
**Last updated:** [June 19, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/an-error-i-cant-find/107232 "2007-06-19T15:12:47Z")

</div>

Hello, there’s certainly a monstrous error I don’t see in : \<% for i in @news %\> \<% if dern\_cat != i.categorie %\> \<% case i.categorie %\> \<% end %\> \<% end %\> \<% end %\> I’ve removed all the code I could and don’t un…

---

## [A problem in ruby](https://www.ruby-forum.com/t/a-problem-in-ruby/107220)

<div class="topic-metadata">

**Author:** [@nirmala](https://www.ruby-forum.com/u/nirmala)\
**Replies:** 1\
**Last updated:** [June 19, 2007, 1:02pm UTC](https://www.ruby-forum.com/t/a-problem-in-ruby/107220 "2007-06-19T13:02:17Z")

</div>

how to write a program in ruby that maintains key value pairs read out of a file and enables a user to search for any value of a key provided by the users.

---

## [("a".."f").step(2) {|x| p x}](https://www.ruby-forum.com/t/a-f-step-2-x-p-x/106929)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 10\
**Last updated:** [June 19, 2007, 12:43pm UTC](https://www.ruby-forum.com/t/a-f-step-2-x-p-x/106929 "2007-06-19T12:43:14Z")

</div>

string e$B$Ne(B range e$B$Ne(B step e$B$G0z?t$,8z$+$J$$$h$&$K;W$$$^$9!#e(B % ./ruby -ve ‘(“a”…“f”).step(2) {|x| p x}’ ruby 1.9.0 (2007-06-15 patchlevel 0) \[i686-linux\] “a” “b” “c” “d” “e” “f” 1.8 e$B$@$H!"0J2\<$…

---

## [How to generate Eclipse project files under apache ode?](https://www.ruby-forum.com/t/how-to-generate-eclipse-project-files-under-apache-ode/107221)

<div class="topic-metadata">

**Author:** [@van](https://www.ruby-forum.com/u/van)\
**Replies:** 5\
**Last updated:** [June 19, 2007, 12:09pm UTC](https://www.ruby-forum.com/t/how-to-generate-eclipse-project-files-under-apache-ode/107221 "2007-06-19T12:09:08Z")

</div>

When I met apache ode, I found ruby. (url: Apache ODE – Eclipse IDE) I download Ode soucecode from subversion, install Ruby and Buildr in order to use the command “rake” to build ode and generate the Eclipse project …

---

## [Problem with Security information Alert in WATIR](https://www.ruby-forum.com/t/problem-with-security-information-alert-in-watir/107222)

<div class="topic-metadata">

**Author:** [@sureshkumar](https://www.ruby-forum.com/u/sureshkumar)\
**Replies:** 0\
**Last updated:** [June 19, 2007, 11:37am UTC](https://www.ruby-forum.com/t/problem-with-security-information-alert-in-watir/107222 "2007-06-19T11:37:29Z")

</div>

I am automating ssl certified site.(https) whenever i goto the login page it throws me a security alert popup, i am not able to close that popup using watir. how can i control that , can you please help me, right now …

---

## [Paper in The topic of Ruby](https://www.ruby-forum.com/t/paper-in-the-topic-of-ruby/107165)

<div class="topic-metadata">

**Author:** [@Joojle](https://www.ruby-forum.com/u/Joojle)\
**Replies:** 3\
**Last updated:** [June 19, 2007, 10:58am UTC](https://www.ruby-forum.com/t/paper-in-the-topic-of-ruby/107165 "2007-06-19T10:58:57Z")

</div>

I am study in Computer Science and my course in Seminar was assign me to do a research paper in my interest topic about Computer Science. So I design to choose the topic in Ruby P.ing language. In the content, I think…

---

## [Rdoc -x essentially useless](https://www.ruby-forum.com/t/rdoc-x-essentially-useless/107179)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 6\
**Last updated:** [June 19, 2007, 5:48am UTC](https://www.ruby-forum.com/t/rdoc-x-essentially-useless/107179 "2007-06-19T05:48:27Z")

</div>

When I use rdoc like so: rdoc -x InstalledFiles \* It includes InstalledFiles anyway because of the \*. But if I don’t use the \*, it doesn’t include any of my top files like README. So AFAICT, I have no other option bu…

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

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