# Ruby

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

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

---

## [$-variables and regexp](https://www.ruby-forum.com/t/variables-and-regexp/50417)

<div class="topic-metadata">

**Author:** [@akoSS](https://www.ruby-forum.com/u/akoSS)\
**Replies:** 5\
**Last updated:** [December 18, 2005, 11:20pm UTC](https://www.ruby-forum.com/t/variables-and-regexp/50417 "2005-12-18T23:20:26Z")

</div>

hello, if i indeed want to start using MatchData instead of the “warts” such as $-variables in regular expressions, how do i go about writing code blocks for String#sub et al if i want to get a match for a particular …

---

## [Windows - how to control XP control panels: network setting](https://www.ruby-forum.com/t/windows-how-to-control-xp-control-panels-network-setting/50591)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 2\
**Last updated:** [December 18, 2005, 9:38pm UTC](https://www.ruby-forum.com/t/windows-how-to-control-xp-control-panels-network-setting/50591 "2005-12-18T21:38:54Z")

</div>

I want to write a script to toggle my wireless and wired connections ON/OFF. Any pointers on how to go about doing this? Thanks!

---

## [English Ruby Home as a second class citizen](https://www.ruby-forum.com/t/english-ruby-home-as-a-second-class-citizen/50247)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 18\
**Last updated:** [December 18, 2005, 9:23pm UTC](https://www.ruby-forum.com/t/english-ruby-home-as-a-second-class-citizen/50247 "2005-12-18T21:23:48Z")

</div>

Hi Everyone, I just noticed that Japanese Ruby Home オブジェクト指向スクリプト言語 Ruby announces availability of Ruby-1.8.4 preview 2 and in general contains much more news and announcements that English Language Ruby Home Ruby Pr…

---

## [How to grep the shortly matching in a string](https://www.ruby-forum.com/t/how-to-grep-the-shortly-matching-in-a-string/50572)

<div class="topic-metadata">

**Author:** [@arowana](https://www.ruby-forum.com/u/arowana)\
**Replies:** 7\
**Last updated:** [December 18, 2005, 7:53pm UTC](https://www.ruby-forum.com/t/how-to-grep-the-shortly-matching-in-a-string/50572 "2005-12-18T19:53:11Z")

</div>

I used regular expression to grep content from a web page,but it seems ruby always match the longest string,but I need to fetch the shortly matching. How can I do ? Thanks for help!

---

## [Why would Webrick use 0.0.0.0:3000 instead of 127.0.0.1:3000](https://www.ruby-forum.com/t/why-would-webrick-use-0-0-0-0-3000-instead-of-127-0-0-1-3000/71040)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 1\
**Last updated:** [December 18, 2005, 4:52pm UTC](https://www.ruby-forum.com/t/why-would-webrick-use-0-0-0-0-3000-instead-of-127-0-0-1-3000/71040 "2005-12-18T16:52:09Z")

</div>

Someone working through my Rolling with Ruby on Rails tutorial ran into this. Does anyone know what could cause this? I pasted the text of his post below. Curt I am using Instant Rails which comes with Rails 1.0, WE…

---

## [Rrobots submission](https://www.ruby-forum.com/t/rrobots-submission/50569)

<div class="topic-metadata">

**Author:** [@pfharlock](https://www.ruby-forum.com/u/pfharlock)\
**Replies:** 1\
**Last updated:** [December 18, 2005, 4:46pm UTC](https://www.ruby-forum.com/t/rrobots-submission/50569 "2005-12-18T16:46:09Z")

</div>

Hopefully I’m not too late to get in on this. I don’t expect much out of my little program, but for better or worse, here it is.

---

## [Any problems with Ruby on Rails - on Win CE](https://www.ruby-forum.com/t/any-problems-with-ruby-on-rails-on-win-ce/50085)

<div class="topic-metadata">

**Author:** [@scottishguy](https://www.ruby-forum.com/u/scottishguy)\
**Replies:** 3\
**Last updated:** [December 18, 2005, 4:06pm UTC](https://www.ruby-forum.com/t/any-problems-with-ruby-on-rails-on-win-ce/50085 "2005-12-18T16:06:57Z")

</div>

Hi, I think the answer is going to be yes, knowing that Ruby runs on Win CE… but can you please let me know if anyone has had any problems installing and using Ruby on Rails on Windows CE. I am going to use SQLite f…

---

## [ANN: eric 3.8.1 released](https://www.ruby-forum.com/t/ann-eric-3-8-1-released/50580)

<div class="topic-metadata">

**Author:** [@Detlev\_Offenbach](https://www.ruby-forum.com/u/Detlev_Offenbach)\
**Replies:** 0\
**Last updated:** [December 18, 2005, 3:45pm UTC](https://www.ruby-forum.com/t/ann-eric-3-8-1-released/50580 "2005-12-18T15:45:53Z")

</div>

Hi, this is to inform you about the release of eric 3.8.1. This is just a bugfix release. eric (or eric3) is a full featured Python and Ruby IDE. It is available via http://www.die-offenbachs.de/detlev/eric3.html De…

---

## [Spawning](https://www.ruby-forum.com/t/spawning/71482)

<div class="topic-metadata">

**Author:** [@spiz](https://www.ruby-forum.com/u/spiz)\
**Replies:** 6\
**Last updated:** [December 18, 2005, 1:45pm UTC](https://www.ruby-forum.com/t/spawning/71482 "2005-12-18T13:45:39Z")

</div>

Hi all, My umenu program has a utility called ufork.pl, whose job it is to run an X program in the background in such a way that even if the process that ran it is killed, the X program continues to live. I want to t…

---

## [Pdf reader](https://www.ruby-forum.com/t/pdf-reader/70520)

<div class="topic-metadata">

**Author:** [@SSSiso-8859-1SQSPeS](https://www.ruby-forum.com/u/SSSiso-8859-1SQSPeS)\
**Replies:** 2\
**Last updated:** [December 18, 2005, 12:48pm UTC](https://www.ruby-forum.com/t/pdf-reader/70520 "2005-12-18T12:48:35Z")

</div>

Hi All, anyone knows of a pdf reader lib? if not ruby, maybe something in perl/python… (we’d like to read some pdf fields) advance thanks for the info -botp

---

## [PDF::Writer / adding content](https://www.ruby-forum.com/t/pdf-writer-adding-content/50574)

<div class="topic-metadata">

**Author:** [@Holger\_von\_Ameln](https://www.ruby-forum.com/u/Holger_von_Ameln)\
**Replies:** 0\
**Last updated:** [December 18, 2005, 12:18pm UTC](https://www.ruby-forum.com/t/pdf-writer-adding-content/50574 "2005-12-18T12:18:32Z")

</div>

I am using Austin Z.'s PDF::Writer to create invoices, which works pretty well. Now I am facing the need to add some text to the first page of the document later in the creation process, e.g. while I am already writin…

---

## [Ruby on rails training](https://www.ruby-forum.com/t/ruby-on-rails-training/50573)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 0\
**Last updated:** [December 18, 2005, 11:45am UTC](https://www.ruby-forum.com/t/ruby-on-rails-training/50573 "2005-12-18T11:45:20Z")

</div>

http://skillsmatter.com/menu/60/course/114

---

## [Activerecord on cygwin with sqlite3](https://www.ruby-forum.com/t/activerecord-on-cygwin-with-sqlite3/50506)

<div class="topic-metadata">

**Author:** [@braver](https://www.ruby-forum.com/u/braver)\
**Replies:** 2\
**Last updated:** [December 18, 2005, 9:00am UTC](https://www.ruby-forum.com/t/activerecord-on-cygwin-with-sqlite3/50506 "2005-12-18T09:00:11Z")

</div>

I’ve successfully installed sqlite3-ruby on cygwin (can run a simple database fetch), but the activerecord test suite fails. I’m running it as described in the RUNNING\_UNIT\_TESTS doc: $ ~/gems/activerecord-1.13.1 $ …

---

## [Why would Webrick use 0.0.0.0:3000 instead of 127.0.0.1:3000](https://www.ruby-forum.com/t/why-would-webrick-use-0-0-0-0-3000-instead-of-127-0-0-1-3000/70994)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 4\
**Last updated:** [December 18, 2005, 7:42am UTC](https://www.ruby-forum.com/t/why-would-webrick-use-0-0-0-0-3000-instead-of-127-0-0-1-3000/70994 "2005-12-18T07:42:05Z")

</div>

A guy who was working through my Rolling wit Ruby on Rails tutorial had this happen and posted it to the articles comments. I’ve never seen this before… does anyone know what could cause this? I copied his post below…

---

## [Utah Ruby Users Group, December Meeting](https://www.ruby-forum.com/t/utah-ruby-users-group-december-meeting/50566)

<div class="topic-metadata">

**Author:** [@jamis](https://www.ruby-forum.com/u/jamis)\
**Replies:** 0\
**Last updated:** [December 18, 2005, 6:26am UTC](https://www.ruby-forum.com/t/utah-ruby-users-group-december-meeting/50566 "2005-12-18T06:26:34Z")

</div>

The Utah Ruby U. Group covers primarily Salt Lake City and Provo/ Orem (and the area in-between), although anyone willing to make the drive to Sandy is welcome to attend. We will be having our December meeting this We…

---

## [Emacs mode question: backward-sexp & forward-sexp for begin](https://www.ruby-forum.com/t/emacs-mode-question-backward-sexp-forward-sexp-for-begin/50426)

<div class="topic-metadata">

**Author:** [@zdavidlnx](https://www.ruby-forum.com/u/zdavidlnx)\
**Replies:** 2\
**Last updated:** [December 18, 2005, 5:41am UTC](https://www.ruby-forum.com/t/emacs-mode-question-backward-sexp-forward-sexp-for-begin/50426 "2005-12-18T05:41:33Z")

</div>

Hi all, Is there a Ruby Emacs mode where I can do M-C-b (backward-sexp) and M-C-f (forward-sexp) for “begin”…“end” too \[\*\], and not just for “(”…")", “{”…"}", etc? I’d like to use “begin”…“end” more to delimit multil…

---

## [Simply a bug?](https://www.ruby-forum.com/t/simply-a-bug/71254)

<div class="topic-metadata">

**Author:** [@kane](https://www.ruby-forum.com/u/kane)\
**Replies:** 4\
**Last updated:** [December 18, 2005, 4:12am UTC](https://www.ruby-forum.com/t/simply-a-bug/71254 "2005-12-18T04:12:35Z")

</div>

Hello, I’ve a problem under windows xp, someone will told “of course”, but in this case i didn’t think it’s only windows. Bref, on IRB all characters “\[ | {” and also all characters which use the ALTGR key under a fr…

---

## [Questions about ruby cgi](https://www.ruby-forum.com/t/questions-about-ruby-cgi/53971)

<div class="topic-metadata">

**Author:** [@larrywright](https://www.ruby-forum.com/u/larrywright)\
**Replies:** 2\
**Last updated:** [December 18, 2005, 1:35am UTC](https://www.ruby-forum.com/t/questions-about-ruby-cgi/53971 "2005-12-18T01:35:17Z")

</div>

I’m trying to use the cgi library to generate some html that will later get run through erb. The problem i’m having is that if i try to use the cgi.text\_field method it automatically escapes anything passed in as th…

---

## [Rescuing SyntaxError](https://www.ruby-forum.com/t/rescuing-syntaxerror/53989)

<div class="topic-metadata">

**Author:** [@Caleb\_T](https://www.ruby-forum.com/u/Caleb_T)\
**Replies:** 6\
**Last updated:** [December 18, 2005, 1:11am UTC](https://www.ruby-forum.com/t/rescuing-syntaxerror/53989 "2005-12-18T01:11:12Z")

</div>

Is it possible to catch illegal syntax errors? irb(main):001:0\> 550p SyntaxError: compile error … se.rb begin 550p rescue SyntaxError =\> e This never seems to get run puts "Caught a syntax error: " + e end ~\> ru…

---

## [Multiple blocks (unfold)](https://www.ruby-forum.com/t/multiple-blocks-unfold/53946)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [December 17, 2005, 11:34pm UTC](https://www.ruby-forum.com/t/multiple-blocks-unfold/53946 "2005-12-17T23:34:30Z")

</div>

I’ve been pondering how to write an “unfold” in Ruby lately, and I’ve not really found any non-awkward ways to do it yet. For those not familiar, unfold is basically the inverse of foldl (Ruby’s inject); in its native…

---

## [How to update gems package version listed by rubygems?](https://www.ruby-forum.com/t/how-to-update-gems-package-version-listed-by-rubygems/50512)

<div class="topic-metadata">

**Author:** [@kwatch](https://www.ruby-forum.com/u/kwatch)\
**Replies:** 3\
**Last updated:** [December 17, 2005, 11:25pm UTC](https://www.ruby-forum.com/t/how-to-update-gems-package-version-listed-by-rubygems/50512 "2005-12-17T23:25:28Z")

</div>

How to tell rubygems to update gems package version? I had released my software (named ‘kwalify’) version 0.4.1 and have just released 0.5.0. It is uploaded to RubyForge, but rubygems shows old version. example: rub…

---

## [Trap ctrl-c and exit nicely](https://www.ruby-forum.com/t/trap-ctrl-c-and-exit-nicely/50523)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 1\
**Last updated:** [December 17, 2005, 10:19pm UTC](https://www.ruby-forum.com/t/trap-ctrl-c-and-exit-nicely/50523 "2005-12-17T22:19:07Z")

</div>

Hello, I want to trap a ctrl-c, wait for any http request to finish,and then exit the program. I know I can Kernel#trap , but not sure how to wait for the network operation to end. Do I need to perform the network op…

---

## [Dynamic status updates using net-mdns bonjour messaging](https://www.ruby-forum.com/t/dynamic-status-updates-using-net-mdns-bonjour-messaging/50538)

<div class="topic-metadata">

**Author:** [@Doug\_Beaver](https://www.ruby-forum.com/u/Doug_Beaver)\
**Replies:** 0\
**Last updated:** [December 17, 2005, 10:16pm UTC](https://www.ruby-forum.com/t/dynamic-status-updates-using-net-mdns-bonjour-messaging/50538 "2005-12-17T22:16:06Z")

</div>

hello, i’m exploring using net-mdns 0.2 (written by sam roberts) to do some bonjour work. i’m curious if anyone has figured out how to make a bonjour service dynamically update its TXT record. i’m starting to write …

---

## [Why would Webrick use 0.0.0.0:3000 instead of 127.0.0.1:3000](https://www.ruby-forum.com/t/why-would-webrick-use-0-0-0-0-3000-instead-of-127-0-0-1-3000/50527)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 4\
**Last updated:** [December 17, 2005, 7:34pm UTC](https://www.ruby-forum.com/t/why-would-webrick-use-0-0-0-0-3000-instead-of-127-0-0-1-3000/50527 "2005-12-17T19:34:03Z")

</div>

Someone working through my Rolling with Ruby on Rails tutorial is having this problem. Does anyone know what could cause it? I pasted the text of his message below. Thanks, Curt – Original Message – I am using Inst…

---

## [Trap ctrl-c and exit nicely](https://www.ruby-forum.com/t/trap-ctrl-c-and-exit-nicely/70990)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 0\
**Last updated:** [December 17, 2005, 6:06pm UTC](https://www.ruby-forum.com/t/trap-ctrl-c-and-exit-nicely/70990 "2005-12-17T18:06:39Z")

</div>

Hello, Not sure how to trap a ctrl-c, wait for a http request to finish, and then exit nicely?

---

## [Net::Netrc 0.1.0](https://www.ruby-forum.com/t/net-netrc-0-1-0/50359)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 1\
**Last updated:** [December 17, 2005, 2:45pm UTC](https://www.ruby-forum.com/t/net-netrc-0-1-0/50359 "2005-12-17T14:45:13Z")

</div>

Net::Netrc is a pure Ruby module providing ftp(1)-compatible .netrc file parsing. Available as a RubyGem: gem install net-netrc or via the project site at http://net-netrc.rubyforge.org

---

## [String#dump and quotes](https://www.ruby-forum.com/t/string-dump-and-quotes/50511)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 4\
**Last updated:** [December 17, 2005, 1:54pm UTC](https://www.ruby-forum.com/t/string-dump-and-quotes/50511 "2005-12-17T13:54:01Z")

</div>

Just out of curiosity, why are double quotes added to the start and end of the string when doing String#dump? I can see where it’s happening in string.c, but I don’t understand the purpose. Thanks, Dan

---

## [Forthcoming 2nd ed. of \_The Ruby Way\_](https://www.ruby-forum.com/t/forthcoming-2nd-ed-of-the-ruby-way/64764)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 65\
**Last updated:** [December 17, 2005, 1:42pm UTC](https://www.ruby-forum.com/t/forthcoming-2nd-ed-of-the-ruby-way/64764 "2005-12-17T13:42:12Z")

</div>

Hello, all. Thought I might as well announce this “officially” as many people know it already. The ink is dry on the contract, and I am working on a second edition of The Ruby Way. Expect to see it second quarter of …

---

## [Java is so 90s - thought you'd all like this](https://www.ruby-forum.com/t/java-is-so-90s-thought-youd-all-like-this/50194)

<div class="topic-metadata">

**Author:** [@albino\_squirrel](https://www.ruby-forum.com/u/albino_squirrel)\
**Replies:** 17\
**Last updated:** [December 17, 2005, 1:42pm UTC](https://www.ruby-forum.com/t/java-is-so-90s-thought-youd-all-like-this/50194 "2005-12-17T13:42:07Z")

</div>

Doesn’t mention Ruby directly but does talk about whats hip (LAMP which I guess means we can include Ruby). Bloomberg - Are you a robot?. htm Stephen

---

## [Sounds in ruby](https://www.ruby-forum.com/t/sounds-in-ruby/70645)

<div class="topic-metadata">

**Author:** [@soxinbox](https://www.ruby-forum.com/u/soxinbox)\
**Replies:** 2\
**Last updated:** [December 17, 2005, 6:26am UTC](https://www.ruby-forum.com/t/sounds-in-ruby/70645 "2005-12-17T06:26:34Z")

</div>

I’ve done a cursory search, but could find little support for sounds in ruby. Is there some sound generating library that I have somehow missed. Has anyone started work on this? I would like to add the ability to pla…

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

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