# Ruby

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

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

---

## [DB connection setup for Unit Testing](https://www.ruby-forum.com/t/db-connection-setup-for-unit-testing/113478)

<div class="topic-metadata">

**Author:** [@shinji](https://www.ruby-forum.com/u/shinji)\
**Replies:** 3\
**Last updated:** [September 8, 2007, 8:47am UTC](https://www.ruby-forum.com/t/db-connection-setup-for-unit-testing/113478 "2007-09-08T08:47:29Z")

</div>

I am trying to take a test-driven approach to a script I am writing. The script needs to connect to SQLServer using DBI. Currently it looks like this: class BurndownTests \< Test::Unit::TestCase def setup db = DBI.co…

---

## [Onsite Training](https://www.ruby-forum.com/t/onsite-training/114099)

<div class="topic-metadata">

**Author:** [@gawk007](https://www.ruby-forum.com/u/gawk007)\
**Replies:** 8\
**Last updated:** [September 8, 2007, 7:33am UTC](https://www.ruby-forum.com/t/onsite-training/114099 "2007-09-08T07:33:26Z")

</div>

We’re beginning to move to RoR and our company is offering to provide training (we have several years experience with mod\_perl and we’re doing new projects in RoR)…I know of Pragmatic’s courses. Are there any recommen…

---

## [September Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/september-phoenix-ruby-user-group-meeting/114125)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [September 8, 2007, 7:14am UTC](https://www.ruby-forum.com/t/september-phoenix-ruby-user-group-meeting/114125 "2007-09-08T07:14:25Z")

</div>

September Phoenix Ruby U. Group Meeting Date: Monday, September 10, 2007 Time: ~6:30pm Place: MWA Intelligence See http://www.rubyaz.org/groups/prug/ for details, including maps and directions Likely talk: Web …

---

## [Array handling advice](https://www.ruby-forum.com/t/array-handling-advice/114088)

<div class="topic-metadata">

**Author:** [@Chris\_McMahon](https://www.ruby-forum.com/u/Chris_McMahon)\
**Replies:** 10\
**Last updated:** [September 8, 2007, 5:27am UTC](https://www.ruby-forum.com/t/array-handling-advice/114088 "2007-09-08T05:27:21Z")

</div>

There is probably a simple way to do this, but I’m drawing a blank: I have an arbitrarily large input array, like input = \[‘a’,‘b’,‘c’,‘d’,‘e’,‘f’,‘g’\] and three target arrays like targ\_one = \[\] targ\_two = \[\] targ\_…

---

## [Programming Ruby For Newbies](https://www.ruby-forum.com/t/programming-ruby-for-newbies/113697)

<div class="topic-metadata">

**Author:** [@jinpanchi](https://www.ruby-forum.com/u/jinpanchi)\
**Replies:** 24\
**Last updated:** [September 8, 2007, 5:00am UTC](https://www.ruby-forum.com/t/programming-ruby-for-newbies/113697 "2007-09-08T05:00:37Z")

</div>

Howdy there, I have always been interested in programming. I looked for books, but it treated me like a pro. Please let me state now: I have not done any programming before. I looked around, and Ruby seems most appea…

---

## [Mysql DBD and DBI -- affected\_rows](https://www.ruby-forum.com/t/mysql-dbd-and-dbi-affected-rows/114113)

<div class="topic-metadata">

**Author:** [@venkatp](https://www.ruby-forum.com/u/venkatp)\
**Replies:** 0\
**Last updated:** [September 8, 2007, 1:33am UTC](https://www.ruby-forum.com/t/mysql-dbd-and-dbi-affected-rows/114113 "2007-09-08T01:33:12Z")

</div>

I posted this on c.l.ruby a few hours back, but don’t see it here. I registered and and posting here. So, bear with me if this has been discussed before. I have been writing a few classes in ruby based on DBI (version…

---

## [SEGV by modifying \_\_members\_\_](https://www.ruby-forum.com/t/segv-by-modifying-members/114111)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [September 8, 2007, 1:02am UTC](https://www.ruby-forum.com/t/segv-by-modifying-members/114111 "2007-09-08T01:02:59Z")

</div>

e$B0J2\<$N$h$&$K$9$k$He(B \[BUG\] Segmentation fault e$B$K$J$j$^$9!#e(B % ./ruby -e ’ S = Struct.new(:a) Marshal.load("\\004\\bIc\\006S\\006:\\020\_\_members\_\_"\\bfoo") p S.members ’ -e:4: – control frame ---------- c:0004 p…

---

## [VimMate 0.6.4](https://www.ruby-forum.com/t/vimmate-0-6-4/113912)

<div class="topic-metadata">

**Author:** [@Guillaume\_Benny](https://www.ruby-forum.com/u/Guillaume_Benny)\
**Replies:** 6\
**Last updated:** [September 8, 2007, 12:19am UTC](https://www.ruby-forum.com/t/vimmate-0-6-4/113912 "2007-09-08T00:19:55Z")

</div>

Hi, A new version of VimMate is now available: Version 0.6.4 VimMate is a graphical add-on to Vim with IDE-like features: it does more than the plain Vim while still being lightweight. Even with the additional feat…

---

## [Re: enforce mutual exclusivity](https://www.ruby-forum.com/t/re-enforce-mutual-exclusivity/114112)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 0\
**Last updated:** [September 8, 2007, 12:14am UTC](https://www.ruby-forum.com/t/re-enforce-mutual-exclusivity/114112 "2007-09-08T00:14:55Z")

</div>

Toby, Seeing as ActiveRecord is part of Rails, you ought to post this question to the “Ruby on Rails: Talk” group. ----- Original Message ---- From: Toby O’Rourke removed\_email\_address@domain.invalid To: ruby-talk M…

---

## [Hiki users?](https://www.ruby-forum.com/t/hiki-users/114109)

<div class="topic-metadata">

**Author:** [@S\_p\_arif\_sahari\_W](https://www.ruby-forum.com/u/S_p_arif_sahari_W)\
**Replies:** 0\
**Last updated:** [September 8, 2007, 12:06am UTC](https://www.ruby-forum.com/t/hiki-users/114109 "2007-09-08T00:06:54Z")

</div>

Hi all, Anybody here Hiki http://www.hikiwiki.org/ users? Thanks!

---

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

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 0\
**Last updated:** [September 7, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/re-unsubscribe/114107 "2007-09-07T23:52:53Z")

</div>

Austin, Unbelievable. I assume you are right but when I go to use the unsubscribe form, all it does is send me an e-mail telling me to send an e-mail to removed\_email\_address@domain.invalid with nothing but unsubscrib…

---

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

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 11:44pm UTC](https://www.ruby-forum.com/t/re-unsubscribe/114105 "2007-09-07T23:44:53Z")

</div>

To removed\_email\_address@domain.invalid, I tried each of the following in the body (one at a time): unsubscribe unsubscribe off off Alas, the e-mails do not cease. ----- Original Message ---- From: darren kirby r…

---

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

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/unsubscribe/114101 "2007-09-07T23:12:50Z")

</div>

As much as I love you all, I’d prefer to not receive e-mails from the mailing list and just read messages on Google. However, # off to ruby-talk-ctl and # unsubscribe have not done the trick. I’ve also e-mailed ruby-t…

---

## [ANN: Sequel 0.2.0.2 Released](https://www.ruby-forum.com/t/ann-sequel-0-2-0-2-released/114079)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 2\
**Last updated:** [September 7, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/ann-sequel-0-2-0-2-released/114079 "2007-09-07T22:35:48Z")

</div>

Sequel version 0.2.0.2 has just been released. This release includes a number of minor bug fixes and improvements. Inserting from subqueries You can now use datasets as subqueries in insert statements, if your databa…

---

## [Nil.to\_s](https://www.ruby-forum.com/t/nil-to-s/114096)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 6\
**Last updated:** [September 7, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/nil-to-s/114096 "2007-09-07T22:33:46Z")

</div>

IMHO nil.to\_s =\> “”, nil.to\_i =\> 0 and nil.to\_a =\> \[\] are potential sources of confusion and bugs. If anywhere in your code you have statement like x = y.to\_s then you will have to be careful to replace it with x = …

---

## [Chaining external commands using pipes](https://www.ruby-forum.com/t/chaining-external-commands-using-pipes/114039)

<div class="topic-metadata">

**Author:** [@bpauly](https://www.ruby-forum.com/u/bpauly)\
**Replies:** 2\
**Last updated:** [September 7, 2007, 9:16pm UTC](https://www.ruby-forum.com/t/chaining-external-commands-using-pipes/114039 "2007-09-07T21:16:37Z")

</div>

I have come up with a little script that works well in IRB for issuing shell commands and piping them together. For example require ‘./shell.rb’ io = Sh.ls(“/bin”).grep(“grep”) puts io generates bzegrep bzfgrep b…

---

## [How to type { \[ in irb?](https://www.ruby-forum.com/t/how-to-type-in-irb/114035)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 7\
**Last updated:** [September 7, 2007, 8:43pm UTC](https://www.ruby-forum.com/t/how-to-type-in-irb/114035 "2007-09-07T20:43:59Z")

</div>

Hello, I have danish keyboard, and I cannot figure out how to type { \[ in the ruby irb ? Any help out there :slight\_smile: Thanks /Jamal

---

## [Ruby stupidities](https://www.ruby-forum.com/t/ruby-stupidities/113447)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 15\
**Last updated:** [September 7, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/ruby-stupidities/113447 "2007-09-07T20:35:33Z")

</div>

The title is intentionally (but semiseriously) contentious, but I’m not trying to say that Ruby is a bad language–I’m using it, right :slight\_smile: ? However, any language has its unfortunate share of bad APIs, design …

---

## [Singleton aliases](https://www.ruby-forum.com/t/singleton-aliases/114090)

<div class="topic-metadata">

**Author:** [@Nikolay\_P](https://www.ruby-forum.com/u/Nikolay_P)\
**Replies:** 4\
**Last updated:** [September 7, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/singleton-aliases/114090 "2007-09-07T20:30:33Z")

</div>

Hello all. I have a class with instance method “each” and i want to add variable aliases for it based on some preferences of the generated objects. Did some one know how i can achieve this?

---

## [Trapped signals killing my subprocesses](https://www.ruby-forum.com/t/trapped-signals-killing-my-subprocesses/114050)

<div class="topic-metadata">

**Author:** [@elliterate](https://www.ruby-forum.com/u/elliterate)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 8:20pm UTC](https://www.ruby-forum.com/t/trapped-signals-killing-my-subprocesses/114050 "2007-09-07T20:20:26Z")

</div>

Hey list, I have a problem with trapping signals in the main thread whilst a subprocess is running in another thread. The signal is properly trapped, however it doesn’t seem to stop the signal from being sent to the …

---

## [Compiling ruby-1.8.6 on CentOS-4.5 with readline and openssl](https://www.ruby-forum.com/t/compiling-ruby-1-8-6-on-centos-4-5-with-readline-and-openssl/113874)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 4\
**Last updated:** [September 7, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/compiling-ruby-1-8-6-on-centos-4-5-with-readline-and-openssl/113874 "2007-09-07T19:41:23Z")

</div>

I am having problems with getting a recent version of ruby properly built and installed on my CentOS-4.5 box. I obtained the source from ruby-lang.org and built it taking all the defaults in ./configure. I see both …

---

## [Deprecating RUBY\_VERSION\_CODE](https://www.ruby-forum.com/t/deprecating-ruby-version-code/113921)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/deprecating-ruby-version-code/113921 "2007-09-07T18:44:20Z")

</div>

e$B$J$+$@$G$9!#e(B \[ruby-core:12068\]e$B$G;W$$=P$7$?$N$G$9$,!"$a$s$I$/$5$$$N$Ge(Bdeve$B$K?6$je(B e$B$^$9!#e(B At Tue, 3 Apr 2007 15:30:16 +0900, Yukihiro M. wrote in \[ruby-core:10847\]: |Furthermore, I’d rather want …

---

## [Twisting a Rope (#137)](https://www.ruby-forum.com/t/twisting-a-rope-137/113480)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 31\
**Last updated:** [September 7, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/twisting-a-rope-137/113480 "2007-09-07T18:36:16Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Cannot run test-all](https://www.ruby-forum.com/t/cannot-run-test-all/113536)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 8\
**Last updated:** [September 7, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/cannot-run-test-all/113536 "2007-09-07T18:06:14Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B test-alle$B$r\<B9T$7$h$&$H$9$k$H!"$=$l$J$j$NIQEY$G!"%F%9%H\<+BN$,e(B e$BF0$-;O$a$kA0$K%(%i!\<$,=P$F%F%9%H$r\<B9T$G$-$J$$!"$H$$$&8=\>\]$,e(B e$B\<j85$G=P$^$9!#e(B e$B%(%i!\<$r8…

---

## [The Ruby East Conference is Now 3 Weeks Away (Reminder)](https://www.ruby-forum.com/t/the-ruby-east-conference-is-now-3-weeks-away-reminder/114077)

<div class="topic-metadata">

**Author:** [@Andrea\_oSkSW](https://www.ruby-forum.com/u/Andrea_oSkSW)\
**Replies:** 0\
**Last updated:** [September 7, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/the-ruby-east-conference-is-now-3-weeks-away-reminder/114077 "2007-09-07T17:24:08Z")

</div>

The Ruby East conference is now just 3 weeks away! Register at Chariot Solutions is proud to be able to bring some of the top speakers in the Ruby and Rails communities to our region. Location: Penn State Great Vall…

---

## [RubyConf 2007 registration is now open](https://www.ruby-forum.com/t/rubyconf-2007-registration-is-now-open/113973)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 5\
**Last updated:** [September 7, 2007, 4:17pm UTC](https://www.ruby-forum.com/t/rubyconf-2007-registration-is-now-open/113973 "2007-09-07T16:17:58Z")

</div>

Hi – Registration is now open for RubyConf 2007, at: http://www.regonline.com/rubyconf2007 Enjoy! David Black for Ruby Central, Inc. and RubyConf 2007

---

## [Assigning to hash keys when there is a default value?](https://www.ruby-forum.com/t/assigning-to-hash-keys-when-there-is-a-default-value/113628)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 40\
**Last updated:** [September 7, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/assigning-to-hash-keys-when-there-is-a-default-value/113628 "2007-09-07T15:53:54Z")

</div>

Can someone explain why there is a difference in the second line of output for the two hashes: h = Hash.new(5) puts h\[2\] h\[2\] ||= 10 p h #---------- puts #---------- h = Hash.new puts h\[2\] h\[2\] ||= 10 p h —o…

---

## [Building an extension gem and including a library source](https://www.ruby-forum.com/t/building-an-extension-gem-and-including-a-library-source/114034)

<div class="topic-metadata">

**Author:** [@emmanueloga](https://www.ruby-forum.com/u/emmanueloga)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/building-an-extension-gem-and-including-a-library-source/114034 "2007-09-07T15:40:52Z")

</div>

I’m building an extension gem for http://libharu.sourceforge.net/ My intent is to help the spread of the library by uploading it to rubyforge (it is already uploaded and working for the windows version, check: gem ins…

---

## [Is out of the office](https://www.ruby-forum.com/t/is-out-of-the-office/114042)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 3:18pm UTC](https://www.ruby-forum.com/t/is-out-of-the-office/114042 "2007-09-07T15:18:49Z")

</div>

I will be out of the office starting 09/07/2007 and will not return until 09/10/2007. NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged informat…

---

## [Ultraviolet 0.9.0 Released](https://www.ruby-forum.com/t/ultraviolet-0-9-0-released/103990)

<div class="topic-metadata">

**Author:** [@Dizan\_V](https://www.ruby-forum.com/u/Dizan_V)\
**Replies:** 7\
**Last updated:** [September 7, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/ultraviolet-0-9-0-released/103990 "2007-09-07T15:06:12Z")

</div>

I have the pleasure to announce the first public release of ultraviolet. http://ultraviolet.rubyforge.org Ultraviolet is a syntax highlighting library and engine. It uses TextMate\[http://macromates.com/\] syntax files …

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

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