# Ruby

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

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

---

## [Where to post code relevant to a newsgroup question](https://www.ruby-forum.com/t/where-to-post-code-relevant-to-a-newsgroup-question/141656)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 4\
**Last updated:** [July 1, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/where-to-post-code-relevant-to-a-newsgroup-question/141656 "2008-07-01T16:35:34Z")

</div>

Hi, Nobody likes to see a post with a bunch of embedded source code. It’s preferable to post the code somewhere and merely include a link to the code in the post. I used to have a personal web pages for that purpose…

---

## [Multi-threaded access to shared memory space](https://www.ruby-forum.com/t/multi-threaded-access-to-shared-memory-space/141737)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 5\
**Last updated:** [July 1, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/multi-threaded-access-to-shared-memory-space/141737 "2008-07-01T16:26:08Z")

</div>

I have a pure Ruby project (no Rails) where I would like multiple “tasks” (ruby processes more or less) to run in parallel (collectively taking advantage of multiple CPU cores) while accessing a shared memory space of…

---

## [Help with threads](https://www.ruby-forum.com/t/help-with-threads/141806)

<div class="topic-metadata">

**Author:** [@fox](https://www.ruby-forum.com/u/fox)\
**Replies:** 3\
**Last updated:** [July 1, 2008, 3:09pm UTC](https://www.ruby-forum.com/t/help-with-threads/141806 "2008-07-01T15:09:46Z")

</div>

hi all, i’m trying to do some automated tasks with threads. Basically, my app is initialized with an input file, and an output path and some processing is done on that. I’m trying to automatically detect when the thr…

---

## [Hiding a password in code](https://www.ruby-forum.com/t/hiding-a-password-in-code/141812)

<div class="topic-metadata">

**Author:** [@Dana\_M](https://www.ruby-forum.com/u/Dana_M)\
**Replies:** 8\
**Last updated:** [July 1, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/hiding-a-password-in-code/141812 "2008-07-01T13:51:04Z")

</div>

Hello! The other day I wrote a small Ruby app to check my finances on Mint.com. My intentions were to have this script run every once and a while and display the information on my desktop (via a tool like Conky or G…

---

## [How can I run url without using port?](https://www.ruby-forum.com/t/how-can-i-run-url-without-using-port/141772)

<div class="topic-metadata">

**Author:** [@zangsdev](https://www.ruby-forum.com/u/zangsdev)\
**Replies:** 8\
**Last updated:** [July 1, 2008, 1:41pm UTC](https://www.ruby-forum.com/t/how-can-i-run-url-without-using-port/141772 "2008-07-01T13:41:05Z")

</div>

Hello, I have developed 2-3 sample ruby application… and my server name is like http://www.mydomain.com Now when I run one of my the ruby application say “first\_app”, then I have to use http://www.mydomain.com:3000/ …

---

## [Updated (Unofficial) Ruby One-Click Installer](https://www.ruby-forum.com/t/updated-unofficial-ruby-one-click-installer/141889)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 1:20pm UTC](https://www.ruby-forum.com/t/updated-unofficial-ruby-one-click-installer/141889 "2008-07-01T13:20:31Z")

</div>

Hello all Rubists that use Windows, I’ll like to share with you the work done by Mike Hodgson: http://mikehodgson.com/archives/2008/6/30/updated\_unofficial\_ruby\_oneclick\_installer As you can see in the post, the relea…

---

## [Any book on CGI programming in Ruby?](https://www.ruby-forum.com/t/any-book-on-cgi-programming-in-ruby/141707)

<div class="topic-metadata">

**Author:** [@fantomknight10](https://www.ruby-forum.com/u/fantomknight10)\
**Replies:** 3\
**Last updated:** [July 1, 2008, 12:58pm UTC](https://www.ruby-forum.com/t/any-book-on-cgi-programming-in-ruby/141707 "2008-07-01T12:58:48Z")

</div>

Do anyone know of a book about CGI programming with the Ruby language? I’ve been unable to locate one on a Swedish internet bookstore.

---

## [Meaning of %w](https://www.ruby-forum.com/t/meaning-of-w/141879)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 6\
**Last updated:** [July 1, 2008, 12:10pm UTC](https://www.ruby-forum.com/t/meaning-of-w/141879 "2008-07-01T12:10:45Z")

</div>

what is the meaning of %w. atlest in my copy of rubydoc, i could not find the w attribute in sprintf flag characters

---

## [Ruby-oci8 1.0.2](https://www.ruby-forum.com/t/ruby-oci8-1-0-2/141691)

<div class="topic-metadata">

**Author:** [@kubo](https://www.ruby-forum.com/u/kubo)\
**Replies:** 11\
**Last updated:** [July 1, 2008, 11:15am UTC](https://www.ruby-forum.com/t/ruby-oci8-1-0-2/141691 "2008-07-01T11:15:38Z")

</div>

ruby-oci8 1.0.2 is released. This is a Oracle module using OCI8 API. http://rubyforge.org/projects/ruby-oci8/ gem and mswin32 binary gem are also available from this release. What’s new in ruby-oci8 1.0.2. add a ge…

---

## [Re: data structure](https://www.ruby-forum.com/t/re-data-structure/141876)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 10:18am UTC](https://www.ruby-forum.com/t/re-data-structure/141876 "2008-07-01T10:18:50Z")

</div>

I know I have to use AVL principles of rotation, but since text books explain only for binary trees Then you’re not looking in the right text books. See for example the classic Sedgewick “Algorithms” book. The fol…

---

## [Re: Any book on CGI programming in Ruby?](https://www.ruby-forum.com/t/re-any-book-on-cgi-programming-in-ruby/141872)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 10:03am UTC](https://www.ruby-forum.com/t/re-any-book-on-cgi-programming-in-ruby/141872 "2008-07-01T10:03:38Z")

</div>

In case you’ve not seen it, there is a short chapter here: http://www.ruby-doc.org/docs/ProgrammingRuby/html/web.html Then when you find it’s too slow, look at fastcgi/fcgi/scgi - or reorganise your app so that it ru…

---

## [Some insns should be method?](https://www.ruby-forum.com/t/some-insns-should-be-method/141756)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 4\
**Last updated:** [July 1, 2008, 9:53am UTC](https://www.ruby-forum.com/t/some-insns-should-be-method/141756 "2008-07-01T09:53:40Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!e(Balias, undef, definemethod e$B$H$$$C$?!$$"$^$j;H$o$l$J$$L?Na$O%a%=%Ce(B e$B%I8F$S=P$7$K$7$?$$$H;W$&$N$G$9$,!$NI$$$G$7$g$&$+!%e(B e$B!!6qBNE\*$K$O!$e(BRubyVM::FrozenCore e$B$KBP$9$kFC0\[%a%…

---

## [WeakRef#inspect $B$K$D$$$F(B](https://www.ruby-forum.com/t/weakref-inspect-b-k-d-f-b/141868)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 9:33am UTC](https://www.ruby-forum.com/t/weakref-inspect-b-k-d-f-b/141868 "2008-07-01T09:33:10Z")

</div>

e$B$1$$$8$e!w$$$7$D$+$G$9e(B. WeakRef#inspecte$B$G$9$,e(B, e$B:#$Oe(B reference e$B@h$K$=$N$^$^e(B delegate e$B$7$F$$$^$9e(B e$B$,e(B, referencee$B@h$,e(BGCe$B$5$l$F$$$k$HNc30$,H/@8$7$^$9e(B. e$BNc30$r%-%c%C%A$7$Fe(B…

---

## [Using gems](https://www.ruby-forum.com/t/using-gems/141750)

<div class="topic-metadata">

**Author:** [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 8:58am UTC](https://www.ruby-forum.com/t/using-gems/141750 "2008-07-01T08:58:45Z")

</div>

I hope this post is in the appropriate forum. I am wanting to use the rspec gem (in the context of an existing asp.net application so that I can test part of it BDD style). From what I can see there is no way to “requ…

---

## [Exerb4.2.0 don't work with ruby1.8.7 and yaml](https://www.ruby-forum.com/t/exerb4-2-0-dont-work-with-ruby1-8-7-and-yaml/141866)

<div class="topic-metadata">

**Author:** [@phoenix520](https://www.ruby-forum.com/u/phoenix520)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 8:52am UTC](https://www.ruby-forum.com/t/exerb4-2-0-dont-work-with-ruby1-8-7-and-yaml/141866 "2008-07-01T08:52:01Z")

</div>

There is my test.rb: require ‘yaml’ config = YAML::load(File.open(“config.yml”)) and there is my config.yml: topic: forum-39-thread-11173510-1-1 “mkexy test.rb” and “exerb test.exy” can execute all right and generat…

---

## [Watir , access is denied](https://www.ruby-forum.com/t/watir-access-is-denied/141589)

<div class="topic-metadata">

**Author:** [@pradeepta](https://www.ruby-forum.com/u/pradeepta)\
**Replies:** 5\
**Last updated:** [July 1, 2008, 8:48am UTC](https://www.ruby-forum.com/t/watir-access-is-denied/141589 "2008-07-01T08:48:37Z")

</div>

Hi , I am trying to insert data into text field of a frame ,however i am getting the error message : WIN32OLERuntimeError: document OLE error code:80070005 in Access is denied. HRESULT error code:0x80020009 Ex…

---

## [Quick Ruby survey to share with community](https://www.ruby-forum.com/t/quick-ruby-survey-to-share-with-community/139308)

<div class="topic-metadata">

**Author:** [@dkam](https://www.ruby-forum.com/u/dkam)\
**Replies:** 1\
**Last updated:** [July 1, 2008, 8:47am UTC](https://www.ruby-forum.com/t/quick-ruby-survey-to-share-with-community/139308 "2008-07-01T08:47:12Z")

</div>

We are working on some online Ruby development tools, and to get a better idea of the average projects people are working on we set up a quick survey. We were hoping if some Ruby hackers had a minute, they could fill …

---

## [Working around frozen hash](https://www.ruby-forum.com/t/working-around-frozen-hash/141822)

<div class="topic-metadata">

**Author:** [@dany](https://www.ruby-forum.com/u/dany)\
**Replies:** 5\
**Last updated:** [July 1, 2008, 8:43am UTC](https://www.ruby-forum.com/t/working-around-frozen-hash/141822 "2008-07-01T08:43:24Z")

</div>

I need to parse the following date string (part of a file I need to parse) irb(main):001:0\> date=‘Fri Jun 20 02:32:28 GST 2008’ =\> “Fri Jun 20 02:32:28 GST 2008” It seems like the DateTime parsing handles GST as Guam…

---

## [Need help on e-mail authentication](https://www.ruby-forum.com/t/need-help-on-e-mail-authentication/141865)

<div class="topic-metadata">

**Author:** [@Deepak\_G](https://www.ruby-forum.com/u/Deepak_G)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 8:25am UTC](https://www.ruby-forum.com/t/need-help-on-e-mail-authentication/141865 "2008-07-01T08:25:50Z")

</div>

Hello , well I am facing a problem of email masking & spam emails. I need help on how to authenticate email. I would I know that I got e-mail from an authorized sender. Thanks DG

---

## [KirbyBase: DateTime and Memo](https://www.ruby-forum.com/t/kirbybase-datetime-and-memo/141542)

<div class="topic-metadata">

**Author:** [@Dimitri\_A](https://www.ruby-forum.com/u/Dimitri_A)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 7:33am UTC](https://www.ruby-forum.com/t/kirbybase-datetime-and-memo/141542 "2008-07-01T07:33:47Z")

</div>

Hi, I love KirbyBase. I think it’s great that there’s a file-based database engine written in Ruby. I like being able to edit the database files directly and the fact that there’s a Memo datatype. But, I did run in…

---

## [LeeBeLLuL speak now with IronRuby](https://www.ruby-forum.com/t/leebellul-speak-now-with-ironruby/141837)

<div class="topic-metadata">

**Author:** [@Gerard\_Mulot](https://www.ruby-forum.com/u/Gerard_Mulot)\
**Replies:** 1\
**Last updated:** [July 1, 2008, 5:51am UTC](https://www.ruby-forum.com/t/leebellul-speak-now-with-ironruby/141837 "2008-07-01T05:51:22Z")

</div>

A simple demo is available to download at http://www.leebellul.com showing How to use infopath forms in the hosting browser How to use xsl and xml to generate dynamic menus How to interact between Javascript and Iron…

---

## [Hoe 1.7.0 Released](https://www.ruby-forum.com/t/hoe-1-7-0-released/141859)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 4:30am UTC](https://www.ruby-forum.com/t/hoe-1-7-0-released/141859 "2008-07-01T04:30:46Z")

</div>

hoe version 1.7.0 has been released! http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ removed\_email\_address@domain.invalid Hoe is a simple rake/rubygems helper for project Rakefiles. It ge…

---

## [UPnP 1.0.0 Released](https://www.ruby-forum.com/t/upnp-1-0-0-released/141734)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 2:20am UTC](https://www.ruby-forum.com/t/upnp-1-0-0-released/141734 "2008-07-01T02:20:52Z")

</div>

UPnP version 1.0.0 has been released! http://seattlerb.org/UPnP - UPnP documentation http://rubyforge.org/tracker/?atid=5921&group\_id=1513 - UPnP bug reports UPnP-1.0.0 is an implementation of the UPnP protocol. T…

---

## [Using gems without installing them (like jar files)](https://www.ruby-forum.com/t/using-gems-without-installing-them-like-jar-files/141830)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 3\
**Last updated:** [July 1, 2008, 2:19am UTC](https://www.ruby-forum.com/t/using-gems-without-installing-them-like-jar-files/141830 "2008-07-01T02:19:41Z")

</div>

Hello, Is it possible to use gem files without having to install them, like you can with jar files in Java? For instance, I have a gem/ directory containing various gems, and I would like to add gem/ to the load path…

---

## [Ruby good-practice](https://www.ruby-forum.com/t/ruby-good-practice/141846)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 4\
**Last updated:** [July 1, 2008, 12:48am UTC](https://www.ruby-forum.com/t/ruby-good-practice/141846 "2008-07-01T00:48:25Z")

</div>

Hi, I’m fairly new to Ruby (3 weeks) and I always find my code for my little projects to be awefully cluttered and excessive. Also, I’m never sure when to use what. I’m sure a lot of this comes with practice and exper…

---

## [Ruby patch level](https://www.ruby-forum.com/t/ruby-patch-level/141813)

<div class="topic-metadata">

**Author:** [@caliwildman](https://www.ruby-forum.com/u/caliwildman)\
**Replies:** 4\
**Last updated:** [July 1, 2008, 12:47am UTC](https://www.ruby-forum.com/t/ruby-patch-level/141813 "2008-07-01T00:47:17Z")

</div>

I have Ruby 1.8.5 on Windows XP and unable to identify the patch level for that release. I have tried the following commands without success ruby -e ‘puts(RUBY\_PATCHLEVEL)’ gives uninitialized constant ruby -v does no…

---

## [Trouble with strings](https://www.ruby-forum.com/t/trouble-with-strings/141839)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 1\
**Last updated:** [July 1, 2008, 12:17am UTC](https://www.ruby-forum.com/t/trouble-with-strings/141839 "2008-07-01T00:17:49Z")

</div>

Mornin’ folks - I’m trying to get my head around ruby, writing a few scripts. This one is meant to head off to a webpage and grab a big table, which it does. The problem is that I don’t know how to specifically grab t…

---

## [Code Review: StringCenterDeleteEach](https://www.ruby-forum.com/t/code-review-stringcenterdeleteeach/141835)

<div class="topic-metadata">

**Author:** [@Dave\_Remy](https://www.ruby-forum.com/u/Dave_Remy)\
**Replies:** 1\
**Last updated:** [June 30, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/code-review-stringcenterdeleteeach/141835 "2008-06-30T23:47:35Z")

</div>

tfpt review “/shelveset:StringCenterDeleteEach;REDMOND\\dremy” Comment : Changes for string.center (adjustements for code review comments), string.delete, and string.each/each\_line to pass specs. Also, forgot to upda…

---

## [Tables: Unnecessary duplication of id fields](https://www.ruby-forum.com/t/tables-unnecessary-duplication-of-id-fields/141799)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 5\
**Last updated:** [June 30, 2008, 11:13pm UTC](https://www.ruby-forum.com/t/tables-unnecessary-duplication-of-id-fields/141799 "2008-06-30T23:13:39Z")

</div>

=begin Hello, I’m fairly new to Ruby, but I am trying to understand the relationship between database structure and models. My difficulty is that I have five or so tables all linked together and their primary key c…

---

## [MutableString.each](https://www.ruby-forum.com/t/mutablestring-each/141715)

<div class="topic-metadata">

**Author:** [@Dave\_Remy](https://www.ruby-forum.com/u/Dave_Remy)\
**Replies:** 5\
**Last updated:** [June 30, 2008, 10:13pm UTC](https://www.ruby-forum.com/t/mutablestring-each/141715 "2008-06-30T22:13:52Z")

</div>

I am working on one of the specs for string.each which is failing. This is the spec that is failing. it “raises a RuntimeError if the string is modified while substituting” do str = “hello\\nworld” should\_raise(Runti…

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

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