# Ruby

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

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

---

## [Go to specific row and column](https://www.ruby-forum.com/t/go-to-specific-row-and-column/64851)

<div class="topic-metadata">

**Author:** [@don](https://www.ruby-forum.com/u/don)\
**Replies:** 9\
**Last updated:** [August 15, 2006, 9:06pm UTC](https://www.ruby-forum.com/t/go-to-specific-row-and-column/64851 "2006-08-15T21:06:34Z")

</div>

Hi, I’m new to Ruby and programming and I know I’m getting a little ahead of myself, but I’m having trouble finding the command that sends you to a specific row and column on a monitor before writing something. Also…

---

## [Problems with dup and clone](https://www.ruby-forum.com/t/problems-with-dup-and-clone/64602)

<div class="topic-metadata">

**Author:** [@russellf](https://www.ruby-forum.com/u/russellf)\
**Replies:** 8\
**Last updated:** [August 15, 2006, 9:06pm UTC](https://www.ruby-forum.com/t/problems-with-dup-and-clone/64602 "2006-08-15T21:06:34Z")

</div>

In the snippet of code below hosts holds a set of class instances for each host in a monitoring program. There are some special host that are default entries for unix, windows and other types of systems. We get the n…

---

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

<div class="topic-metadata">

**Author:** [@braas](https://www.ruby-forum.com/u/braas)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 8:57pm UTC](https://www.ruby-forum.com/t/no-subject/65046 "2006-08-15T20:57:33Z")

</div>

unsubscribe

---

## [Looking for a Fast Persistent Store](https://www.ruby-forum.com/t/looking-for-a-fast-persistent-store/102045)

<div class="topic-metadata">

**Author:** [@bobh](https://www.ruby-forum.com/u/bobh)\
**Replies:** 50\
**Last updated:** [August 15, 2006, 8:51pm UTC](https://www.ruby-forum.com/t/looking-for-a-fast-persistent-store/102045 "2006-08-15T20:51:31Z")

</div>

Hi, I’m looking for a persistent store, where: I can use it from Ruby it is fast it is transactional it can update more than one store in a single transaction simple String → String mappings in the store are sufficien…

---

## [FileTest.exists? over HTTP](https://www.ruby-forum.com/t/filetest-exists-over-http/65040)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 2\
**Last updated:** [August 15, 2006, 8:27pm UTC](https://www.ruby-forum.com/t/filetest-exists-over-http/65040 "2006-08-15T20:27:20Z")

</div>

HI I would like to test for the existence of a file over HTTP. I have tried various combinations of File.stat and FileTest.exists? with no results. For example (image.jpg exists) if FileTest.exists?(“Website Domain N…

---

## [What deployment setup are production Rails sites using? and](https://www.ruby-forum.com/t/what-deployment-setup-are-production-rails-sites-using-and/65038)

<div class="topic-metadata">

**Author:** [@vasudevram](https://www.ruby-forum.com/u/vasudevram)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 7:57pm UTC](https://www.ruby-forum.com/t/what-deployment-setup-are-production-rails-sites-using-and/65038 "2006-08-15T19:57:16Z")

</div>

Hi, Did some Google searching, came across James Duncan Davidson’s blog posts and some other hits on this topic (Rails deployment). But thought of asking here as well. What deployment setup are production Rails sites…

---

## [Webrick, ssl and non-ssl on the same port](https://www.ruby-forum.com/t/webrick-ssl-and-non-ssl-on-the-same-port/64622)

<div class="topic-metadata">

**Author:** [@elgato](https://www.ruby-forum.com/u/elgato)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 7:54pm UTC](https://www.ruby-forum.com/t/webrick-ssl-and-non-ssl-on-the-same-port/64622 "2006-08-15T19:54:14Z")

</div>

Hello all, I have sslized webrick server, but I’d like to have some parts of server accessible even without ssl. I’ve tried to search web and groups, but I haven’t found anything — any suggestions, how to get ssl and …

---

## [\_ in URI subdomain problem](https://www.ruby-forum.com/t/in-uri-subdomain-problem/64604)

<div class="topic-metadata">

**Author:** [@varac](https://www.ruby-forum.com/u/varac)\
**Replies:** 2\
**Last updated:** [August 15, 2006, 7:52pm UTC](https://www.ruby-forum.com/t/in-uri-subdomain-problem/64604 "2006-08-15T19:52:15Z")

</div>

Hi, I am currently working with some code for fetching webpages, and I have run into a problem. The current implementation does not fetch webpages with \_ in the subdomain, for ex http://a\_b.google.com. I have poked …

---

## [Binary extension compatibility on OS X](https://www.ruby-forum.com/t/binary-extension-compatibility-on-os-x/102372)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 7:48pm UTC](https://www.ruby-forum.com/t/binary-extension-compatibility-on-os-x/102372 "2006-08-15T19:48:14Z")

</div>

Hi I’m looking at creating some binary gems for OS X. What I’m wondering is, are extensions compiled with one version of the compiler toolchain (7.5.0, 7.9.0, 8.0.0) compatible with Rubies compiled on the same archit…

---

## [|| and RegEx](https://www.ruby-forum.com/t/and-regex/65018)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 7:21pm UTC](https://www.ruby-forum.com/t/and-regex/65018 "2006-08-15T19:21:09Z")

</div>

Hi, Here is a snippet of a case statement read\_in\_test\_data.each { |x| line = x.chomp case line when /^Provinces:$/ || /^Town:$/ task = :provinces else #whatever end || should evaluate to true if either operand…

---

## [Re: Setting Windows Environment Variables](https://www.ruby-forum.com/t/re-setting-windows-environment-variables/65034)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 7:15pm UTC](https://www.ruby-forum.com/t/re-setting-windows-environment-variables/65034 "2006-08-15T19:15:08Z")

</div>

lead you to finding the answer. Curt It’s HKEY\_LOCAL\_MACHINE/System/CurrentControlSet/Control/Session Manager/Environment. Regards, Dan This communication is the property of Qwest and may contain confidential or …

---

## [Re: Setting Windows Environment Variables](https://www.ruby-forum.com/t/re-setting-windows-environment-variables/64979)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 2\
**Last updated:** [August 15, 2006, 7:12pm UTC](https://www.ruby-forum.com/t/re-setting-windows-environment-variables/64979 "2006-08-15T19:12:08Z")

</div>

Hi Austin, Thanks for all that - but I think you missed the point. I need to set up the env path of the machine permanantly. Say we wanted to bring in a new build machine or the old one died/I spilled coffee on it… :s…

---

## [FSF Award. Guido / Larry won it, why not matz?](https://www.ruby-forum.com/t/fsf-award-guido-larry-won-it-why-not-matz/102343)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/fsf-award-guido-larry-won-it-why-not-matz/102343 "2006-08-15T19:06:08Z")

</div>

I’m sending my nomination in for him, I think we should all :slight\_smile: http://www.fsf.org/news/fs-award-2006.html

---

## [Newsgroup/mailing list/ruby-forum.com disconnect?](https://www.ruby-forum.com/t/newsgroup-mailing-list-ruby-forum-com-disconnect/102243)

<div class="topic-metadata">

**Author:** [@rue](https://www.ruby-forum.com/u/rue)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/newsgroup-mailing-list-ruby-forum-com-disconnect/102243 "2006-08-15T18:56:21Z")

</div>

I am using http://www.ruby-forum.com to view ruby-talk and I only see about 5-10 posts a day which, as far I can recall, would be an extremely slow volume of traffic. And so this would not be such a “hey can you guys …

---

## [Ruby bug or not?](https://www.ruby-forum.com/t/ruby-bug-or-not/65015)

<div class="topic-metadata">

**Author:** [@olbrich](https://www.ruby-forum.com/u/olbrich)\
**Replies:** 4\
**Last updated:** [August 15, 2006, 6:51pm UTC](https://www.ruby-forum.com/t/ruby-bug-or-not/65015 "2006-08-15T18:51:06Z")

</div>

Using 1.8.4 on OSX. class CopyTest attr\_accessor :one end a = CopyTest.new a.one = \[1,2,3,4\] b = a.clone a.freeze b.one.each\_with\_index do |item,index| b.one.delete\_at(index) if item == 2 end this is supposed…

---

## [rSQLiteGUI 0.1](https://www.ruby-forum.com/t/rsqlitegui-0-1/65014)

<div class="topic-metadata">

**Author:** [@mitchell](https://www.ruby-forum.com/u/mitchell)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/rsqlitegui-0-1/65014 "2006-08-15T18:17:59Z")

</div>

Hey all, I sort of forgot I had an unfinished project…so here’s a new release! Version 0.1 of Ruby SQLite GUI features vast UI improvements in key shortcuts. There were also a couple minor bugfixes. Keep sending in c…

---

## [Special characters within \[\] in a regexp](https://www.ruby-forum.com/t/special-characters-within-in-a-regexp/64959)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 2\
**Last updated:** [August 15, 2006, 5:23pm UTC](https://www.ruby-forum.com/t/special-characters-within-in-a-regexp/64959 "2006-08-15T17:23:52Z")

</div>

What characters have to be escaped within a \[\] in a regular expression? I was a bit taken aback by the following: irb(main):001:0\> a = '!#$%^&(()\_GHF$%#$^%&;2~)+|{}|{\\’ =\> "!#$%^&(()\_GHF$%#$^%&;2~)+|{}|{\\" irb(main):…

---

## [Nonce](https://www.ruby-forum.com/t/nonce/64655)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 75\
**Last updated:** [August 15, 2006, 5:17pm UTC](https://www.ruby-forum.com/t/nonce/64655 "2006-08-15T17:17:51Z")

</div>

W00t! Had to share this discovery: Nonce Definition & Meaning | Dictionary.com Nonce word Definition & Meaning | Dictionary.com T.

---

## [Re: ParseDate.parsedate() and Time.now()](https://www.ruby-forum.com/t/re-parsedate-parsedate-and-time-now/64983)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 2\
**Last updated:** [August 15, 2006, 5:11pm UTC](https://www.ruby-forum.com/t/re-parsedate-parsedate-and-time-now/64983 "2006-08-15T17:11:50Z")

</div>

I’m not sure it’ll change. You’re on Windows, and Windows is stupid this way, preferring to spell out “Central Daylight Time” instead of “CDT”; I have yet to figure out how to get the output from a Windows format str…

---

## [Programming Ruby for $27](https://www.ruby-forum.com/t/programming-ruby-for-27/64952)

<div class="topic-metadata">

**Author:** [@maraby](https://www.ruby-forum.com/u/maraby)\
**Replies:** 5\
**Last updated:** [August 15, 2006, 5:05pm UTC](https://www.ruby-forum.com/t/programming-ruby-for-27/64952 "2006-08-15T17:05:50Z")

</div>

http://www.booksamillion.com/ncom/books?id=3556134178641&isbn=0974514055 Not to take away from folks buying from Amazon or direct from the Pragmatic Programmers, but I think this is a pretty good price for newcomers a…

---

## [Question about the threequal operator .===](https://www.ruby-forum.com/t/question-about-the-threequal-operator/64962)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 2\
**Last updated:** [August 15, 2006, 4:47pm UTC](https://www.ruby-forum.com/t/question-about-the-threequal-operator/64962 "2006-08-15T16:47:43Z")

</div>

Hi I’m a newbie on ruby and i have some questions : \*What is special to the threequals operator when it comes to when clause ? object === other\_object \*What is the “.” in front of the operator ? object .=== other\_o…

---

## [Re: Trouble parsing against a hash](https://www.ruby-forum.com/t/re-trouble-parsing-against-a-hash/64999)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 4:44pm UTC](https://www.ruby-forum.com/t/re-trouble-parsing-against-a-hash/64999 "2006-08-15T16:44:42Z")

</div>

What I meant to say in my other message was if it is the only thing in the String, it’s pointless. not pointless - at least it shows up in red in Modrian then! Simple things… Gem This email and any attachments ar…

---

## [Trouble parsing against a hash](https://www.ruby-forum.com/t/trouble-parsing-against-a-hash/102286)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 19\
**Last updated:** [August 15, 2006, 4:44pm UTC](https://www.ruby-forum.com/t/trouble-parsing-against-a-hash/102286 "2006-08-15T16:44:40Z")

</div>

Hello, I get the following error message from RUBY when I try to run the script shown below. Sorry, the hash is huge. I need to match the beginning of file names with the keys in a hash. If there’s a match, then I ne…

---

## [Re: Trouble parsing against a hash](https://www.ruby-forum.com/t/re-trouble-parsing-against-a-hash/64994)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 4:38pm UTC](https://www.ruby-forum.com/t/re-trouble-parsing-against-a-hash/64994 "2006-08-15T16:38:38Z")

</div>

Right. But never use: “#{var}” I thought #{var} was used within quotes to get the value as otherwise you just get var… var = “Hello Ruby T. World” “I just wanted to say #{var}” -\> I just wanted to say Hello Ruby …

---

## [.NET and Java to get better dynamic language support](https://www.ruby-forum.com/t/net-and-java-to-get-better-dynamic-language-support/64982)

<div class="topic-metadata">

**Author:** [@zoat](https://www.ruby-forum.com/u/zoat)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 3:52pm UTC](https://www.ruby-forum.com/t/net-and-java-to-get-better-dynamic-language-support/64982 "2006-08-15T15:52:57Z")

</div>

With highly expressive syntax that is easy to read, write, and maintain, dynamic programming languages like Python and Ruby are extremely conducive to rapid development. Microsoft and Sun Microsystems have observed gr…

---

## [ParseDate.parsedate() and Time.now()](https://www.ruby-forum.com/t/parsedate-parsedate-and-time-now/102148)

<div class="topic-metadata">

**Author:** [@pkspence](https://www.ruby-forum.com/u/pkspence)\
**Replies:** 4\
**Last updated:** [August 15, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/parsedate-parsedate-and-time-now/102148 "2006-08-15T15:13:23Z")

</div>

irb(main):029:0\> timeNow = Time.now().to\_s() =\> “Fri Aug 11 11:03:36 Central Daylight Time 2006” irb(main):030:0\> ParseDate.parsedate(timeNow) =\> \[nil, 8, 11, 11, 3, 36, “Central”, 5\] Seems to me that it should retur…

---

## [Re: Setting Windows Environment Variables](https://www.ruby-forum.com/t/re-setting-windows-environment-variables/64960)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 2\
**Last updated:** [August 15, 2006, 3:04pm UTC](https://www.ruby-forum.com/t/re-setting-windows-environment-variables/64960 "2006-08-15T15:04:22Z")

</div>

Thanks to everyone for your input. I will investigate other routes. ( : Still thinking in Ant you see! Regards Gemma Cameron This email and any attachments are confidential to the intended recipient and may also be…

---

## [Ruby and GUI](https://www.ruby-forum.com/t/ruby-and-gui/64628)

<div class="topic-metadata">

**Author:** [@indianguru](https://www.ruby-forum.com/u/indianguru)\
**Replies:** 5\
**Last updated:** [August 15, 2006, 2:22pm UTC](https://www.ruby-forum.com/t/ruby-and-gui/64628 "2006-08-15T14:22:18Z")

</div>

I am new to Ruby and wanted to explore ways to create a GUI (on Windows) in Ruby. What I have gathered so far is that the following libraries exist to create a GUI: a. Ruby Tk - it’s language-independent, cross-platfo…

---

## [RubyConf in Second Life?](https://www.ruby-forum.com/t/rubyconf-in-second-life/101988)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 28\
**Last updated:** [August 15, 2006, 2:22pm UTC](https://www.ruby-forum.com/t/rubyconf-in-second-life/101988 "2006-08-15T14:22:18Z")

</div>

Since RubyConf this year has sold out so rapidly, I was wondering if there would be interest in setting up a mixed-reality event in Second Life. I think it would be really cool if we could be the first developer conf…

---

## [How to see if a variable matches an array element?](https://www.ruby-forum.com/t/how-to-see-if-a-variable-matches-an-array-element/64522)

<div class="topic-metadata">

**Author:** [@johnf](https://www.ruby-forum.com/u/johnf)\
**Replies:** 8\
**Last updated:** [August 15, 2006, 2:22pm UTC](https://www.ruby-forum.com/t/how-to-see-if-a-variable-matches-an-array-element/64522 "2006-08-15T14:22:11Z")

</div>

Hey folks, I’m knocking together a Rock, Paper, Scissors Ruby script to teach myself more Ruby deliciousness, and I’ve got it working, except I want to compare a variable to an array element (one of \[“R”, “P”, “S”\])…

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

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