# Ruby

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

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

---

## [String#\[\]](https://www.ruby-forum.com/t/string/70027)

<div class="topic-metadata">

**Author:** [@newbie](https://www.ruby-forum.com/u/newbie)\
**Replies:** 9\
**Last updated:** [September 27, 2006, 3:46am UTC](https://www.ruby-forum.com/t/string/70027 "2006-09-27T03:46:26Z")

</div>

This must be a common newbie question, but I can’t find the answer. Why does string#\[\] return an ASCII code, rather than a character? “abc”\[1,2\] #-\> “bc” “abc”\[1…2\] #-\> “bc” “abc”\[1\] #-\> 98

---

## [PSD parser (incomplete)](https://www.ruby-forum.com/t/psd-parser-incomplete/70142)

<div class="topic-metadata">

**Author:** [@Ilmari\_H](https://www.ruby-forum.com/u/Ilmari_H)\
**Replies:** 0\
**Last updated:** [September 27, 2006, 12:58am UTC](https://www.ruby-forum.com/t/psd-parser-incomplete/70142 "2006-09-27T00:58:16Z")

</div>

Hi, I’ve written an incomplete PSD parser in ruby, using the Photoshop 6.0 file format docs. It can handle paths, some adjustment layer types (curves work at least, others undertested, sadly), most image descriptors,…

---

## [Re: forking processes and writing to log file](https://www.ruby-forum.com/t/re-forking-processes-and-writing-to-log-file/70124)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 3\
**Last updated:** [September 27, 2006, 12:34am UTC](https://www.ruby-forum.com/t/re-forking-processes-and-writing-to-log-file/70124 "2006-09-27T00:34:12Z")

</div>

Joe Van D. wrote: On 9/26/06, Joe Van D. removed\_email\_address@domain.invalid wrote: Hello, So, on linux, I’m forking a new Ruby process. I redirect stdout and stderr into a file and then I execute another program…

---

## [Re: forking processes and writing to log file](https://www.ruby-forum.com/t/re-forking-processes-and-writing-to-log-file/70125)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 0\
**Last updated:** [September 26, 2006, 11:38pm UTC](https://www.ruby-forum.com/t/re-forking-processes-and-writing-to-log-file/70125 "2006-09-26T23:38:07Z")

</div>

Gennady B. wrote: exec “the\_command\_line\_used\_to\_be\_launched\_by\_system” end Process.waitpid pid Process.setsess should be Process.setsid. Sorry for confusion, clicked on ‘Send’ too soon ;-).

---

## [Forking processes and writing to log file](https://www.ruby-forum.com/t/forking-processes-and-writing-to-log-file/70119)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 1\
**Last updated:** [September 26, 2006, 11:10pm UTC](https://www.ruby-forum.com/t/forking-processes-and-writing-to-log-file/70119 "2006-09-26T23:10:05Z")

</div>

Hello, So, on linux, I’m forking a new Ruby process. I redirect stdout and stderr into a file and then I execute another program via ‘system’. If I background the main Ruby process, the writing to the log file seems…

---

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

<div class="topic-metadata">

**Author:** [@Jonathan\_PSBona](https://www.ruby-forum.com/u/Jonathan_PSBona)\
**Replies:** 6\
**Last updated:** [September 26, 2006, 10:50pm UTC](https://www.ruby-forum.com/t/no-subject/69855 "2006-09-26T22:50:35Z")

</div>

unsubscribe

---

## [Job Posting for Ruby Backend Developer in Mountain View, CA](https://www.ruby-forum.com/t/job-posting-for-ruby-backend-developer-in-mountain-view-ca/70115)

<div class="topic-metadata">

**Author:** [@varac](https://www.ruby-forum.com/u/varac)\
**Replies:** 0\
**Last updated:** [September 26, 2006, 10:26pm UTC](https://www.ruby-forum.com/t/job-posting-for-ruby-backend-developer-in-mountain-view-ca/70115 "2006-09-26T22:26:57Z")

</div>

=== Position === Spokeo, Inc (http://www.spokeo.com) is looking to hire a talented, driven, and performance-minded engineer to do backend development work in Ruby. If interested, please contact removed\_email\_address@…

---

## [Mod\_ruby or FastCGI multiple instances single file](https://www.ruby-forum.com/t/mod-ruby-or-fastcgi-multiple-instances-single-file/69962)

<div class="topic-metadata">

**Author:** [@frocco](https://www.ruby-forum.com/u/frocco)\
**Replies:** 4\
**Last updated:** [September 26, 2006, 10:08pm UTC](https://www.ruby-forum.com/t/mod-ruby-or-fastcgi-multiple-instances-single-file/69962 "2006-09-26T22:08:26Z")

</div>

Hi, I’m in the process of moving from the J2EE to the Ruby world (+ Apache, Linux, MySQL, etc.), so this is likely to be a “stupid newbie” question. I use mod\_ruby and understand that FastCGI operates along similar li…

---

## [Fixnum/String randomly changing type](https://www.ruby-forum.com/t/fixnum-string-randomly-changing-type/70102)

<div class="topic-metadata">

**Author:** [@sweb](https://www.ruby-forum.com/u/sweb)\
**Replies:** 6\
**Last updated:** [September 26, 2006, 9:51pm UTC](https://www.ruby-forum.com/t/fixnum-string-randomly-changing-type/70102 "2006-09-26T21:51:58Z")

</div>

Hi, I am seeing some odd behavior that look to me to like it could be a bug in Ruby. Being new to the language, however, I wanted to see if there was another explanation. I am using Ruby 1.8.4 on an Intel Mac. The …

---

## [Re: ruby wizards, help me beautify skanky code](https://www.ruby-forum.com/t/re-ruby-wizards-help-me-beautify-skanky-code/70094)

<div class="topic-metadata">

**Author:** [@Frank\_Davis](https://www.ruby-forum.com/u/Frank_Davis)\
**Replies:** 1\
**Last updated:** [September 26, 2006, 9:35pm UTC](https://www.ruby-forum.com/t/re-ruby-wizards-help-me-beautify-skanky-code/70094 "2006-09-26T21:35:57Z")

</div>

Subject: Re: ruby wizards, help me beautify skanky code Is this what they mean when people talk about using wizards to generate code?

---

## [CfP: IEEE Software Special Issue on Rapid Application Develo](https://www.ruby-forum.com/t/cfp-ieee-software-special-issue-on-rapid-application-develo/70026)

<div class="topic-metadata">

**Author:** [@Laurence\_Tratt](https://www.ruby-forum.com/u/Laurence_Tratt)\
**Replies:** 1\
**Last updated:** [September 26, 2006, 8:51pm UTC](https://www.ruby-forum.com/t/cfp-ieee-software-special-issue-on-rapid-application-develo/70026 "2006-09-26T20:51:52Z")

</div>

============================================================================ IEEE Software Special Issue Rapid Application Development with Dynamically Typed Languages C…

---

## [MarkaBoo](https://www.ruby-forum.com/t/markaboo/70022)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 4\
**Last updated:** [September 26, 2006, 7:03pm UTC](https://www.ruby-forum.com/t/markaboo/70022 "2006-09-26T19:03:36Z")

</div>

What’s the Love Level over at MarkaBoo.com? (Ie. Level of active development and support?) Thanks, T.

---

## [Block wrapper](https://www.ruby-forum.com/t/block-wrapper/97758)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 43\
**Last updated:** [September 26, 2006, 7:03pm UTC](https://www.ruby-forum.com/t/block-wrapper/97758 "2006-09-26T19:03:35Z")

</div>

e$B0JA0!“e(B\[ruby-dev:28747\] e$B$Ne(B pp.rb e$B$NLdBj$r2r7h$9$k$N$Ke(B http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/lib/pp.rb.diff?r1=1.47;r2=1.48 e$B$H$$$&JQ99$,$”$j$^$7$?$,!"%a%=%C%I$N%i%C%Q$Oe(B o.m {|v| yield …

---

## [Ruby wizards, help me beautify skanky code](https://www.ruby-forum.com/t/ruby-wizards-help-me-beautify-skanky-code/69896)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 14\
**Last updated:** [September 26, 2006, 6:51pm UTC](https://www.ruby-forum.com/t/ruby-wizards-help-me-beautify-skanky-code/69896 "2006-09-26T18:51:33Z")

</div>

here it is: @inducers = \[\] @inhibitors = \[\] @substrates = \[\] Interaction.find\_all\_by\_involvement\_type("Inducer").each do |interaction| @inhibitors.push(Drug.find(interaction.drug\_id).name) end Interaction.find\_all…

---

## [Re: string#\[\]](https://www.ruby-forum.com/t/re-string/70075)

<div class="topic-metadata">

**Author:** [@Frank\_Davis](https://www.ruby-forum.com/u/Frank_Davis)\
**Replies:** 0\
**Last updated:** [September 26, 2006, 6:33pm UTC](https://www.ruby-forum.com/t/re-string/70075 "2006-09-26T18:33:31Z")

</div>

I think Ruby treats Strings as an array of bytes. There are a lot of benefits to it. Ruby is built on top of (and is extensible with) C, in which strings really are an array of bytes. String supports the Pack and Unpa…

---

## [Encrypt ruby source code](https://www.ruby-forum.com/t/encrypt-ruby-source-code/69993)

<div class="topic-metadata">

**Author:** [@joe-black](https://www.ruby-forum.com/u/joe-black)\
**Replies:** 10\
**Last updated:** [September 26, 2006, 5:19pm UTC](https://www.ruby-forum.com/t/encrypt-ruby-source-code/69993 "2006-09-26T17:19:19Z")

</div>

Hi all any one know how to encrypt ruby source code. regards

---

## [You can move a method from one instance to another within th](https://www.ruby-forum.com/t/you-can-move-a-method-from-one-instance-to-another-within-th/70051)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 0\
**Last updated:** [September 26, 2006, 4:25pm UTC](https://www.ruby-forum.com/t/you-can-move-a-method-from-one-instance-to-another-within-th/70051 "2006-09-26T16:25:02Z")

</div>

You can take a method from one instance and move it to another instance with me = cls.method(:mymthd) \<== get hold of the method unbnd = me.unbind \<== unbind it from the class newinst = NewClass.new …

---

## [Instant Rails - phpMyAdmin](https://www.ruby-forum.com/t/instant-rails-phpmyadmin/70047)

<div class="topic-metadata">

**Author:** [@ike](https://www.ruby-forum.com/u/ike)\
**Replies:** 3\
**Last updated:** [September 26, 2006, 4:23pm UTC](https://www.ruby-forum.com/t/instant-rails-phpmyadmin/70047 "2006-09-26T16:23:00Z")

</div>

Can someone please tell me how I can access phpMyAdmin on a box where I have installed instant rails 1.1x ? Directory structure is: \\Instant Rails \\Instant Rails\\apache \\Instant Rails\\apache\\www (this is the web roo…

---

## [Re: GUI programming for WinXP/Linux/OSX?](https://www.ruby-forum.com/t/re-gui-programming-for-winxp-linux-osx/70003)

<div class="topic-metadata">

**Author:** [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Replies:** 1\
**Last updated:** [September 26, 2006, 4:12pm UTC](https://www.ruby-forum.com/t/re-gui-programming-for-winxp-linux-osx/70003 "2006-09-26T16:12:59Z")

</div>

Hello ! it must run on WinXP and Linux, idally also on OSX it must have a GUI preferably with the GUI’s native widget set it must allow scripting access to system resources with a modern and comfortable scripting lan…

---

## ["unknown type of string?"](https://www.ruby-forum.com/t/unknown-type-of-string/70039)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 2\
**Last updated:** [September 26, 2006, 3:40pm UTC](https://www.ruby-forum.com/t/unknown-type-of-string/70039 "2006-09-26T15:40:42Z")

</div>

RUBY’s complaining about a string I want to write to a file. The script line looks like this: file\_contents \<\< “%%Blank page for Asura.\\n%%Page: #{newtotalpages.to\_i}\\nshowpage\\n” and, RUBY’s complaint looks like thi…

---

## [Assert\_false](https://www.ruby-forum.com/t/assert-false/70040)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 0\
**Last updated:** [September 26, 2006, 3:20pm UTC](https://www.ruby-forum.com/t/assert-false/70040 "2006-09-26T15:20:51Z")

</div>

Hi, Does anyone know why assert\_false is not inlcuded in Test:Unit, but for e.g. assertFalse( ) is a method in JUnint? aidy

---

## [UtahValley.rb meeting tonight](https://www.ruby-forum.com/t/utahvalley-rb-meeting-tonight/70029)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [September 26, 2006, 3:12pm UTC](https://www.ruby-forum.com/t/utahvalley-rb-meeting-tonight/70029 "2006-09-26T15:12:49Z")

</div>

Last reminder, the UtahValley.rb is meeting tonight (Sep 26th) at 7PM in room 120 of the Talmage Math and Computer Science Building on BYU’s campus (http://map.byu.edu for directions). We’ll be doing some lightning ta…

---

## [\[ANN\] New release of Cerberus CI tool](https://www.ruby-forum.com/t/ann-new-release-of-cerberus-ci-tool/70017)

<div class="topic-metadata">

**Author:** [@anatol](https://www.ruby-forum.com/u/anatol)\
**Replies:** 0\
**Last updated:** [September 26, 2006, 1:21pm UTC](https://www.ruby-forum.com/t/ann-new-release-of-cerberus-ci-tool/70017 "2006-09-26T13:21:20Z")

</div>

Hello, friends. I am glad to announce 0.2.4 release of Cerberus CI tool. What is Cerberus? Cerberus is a Continuous Builder software. Cerberus could be periodically run from any scheduler and check if application tes…

---

## [Commit2rss.rb - running on hooking up CVS NT](https://www.ruby-forum.com/t/commit2rss-rb-running-on-hooking-up-cvs-nt/69952)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [September 26, 2006, 1:16pm UTC](https://www.ruby-forum.com/t/commit2rss-rb-running-on-hooking-up-cvs-nt/69952 "2006-09-26T13:16:37Z")

</div>

Hi all, I’m trying to get Dave T.’ commit2rss.rb ruby script running on windows XP using CVS NT v2.0.51d. The script is at http://pragmaticprogrammer.com/downloads/commit2rss/commit2rss.rb.txt I’ve removed unix refer…

---

## [OptionParser::getopts](https://www.ruby-forum.com/t/optionparser-getopts/70013)

<div class="topic-metadata">

**Author:** [@WATANABE\_Hirofumi](https://www.ruby-forum.com/u/WATANABE_Hirofumi)\
**Replies:** 0\
**Last updated:** [September 26, 2006, 12:48pm UTC](https://www.ruby-forum.com/t/optionparser-getopts/70013 "2006-09-26T12:48:32Z")

</div>

e$B$o$?$J$Y$G$9!#e(B OptionParser::getoptse$B$NB8:\_$r:#F|=i$a$FCN$C$?$s$G$9$,!"5sF0$,JQ$G$9!#e(B % ruby-1.8.5 -roptparse -e ‘p OptionParser.getopts(ARGV, “ab”)’ – -a -b {“a”=\>false, “b”=\>false, :a=\>true, :b=\>true} e$…

---

## [Rubymel 0.8.1: ruby for maya 3D for mac tiger?](https://www.ruby-forum.com/t/rubymel-0-8-1-ruby-for-maya-3d-for-mac-tiger/70010)

<div class="topic-metadata">

**Author:** [@anne001](https://www.ruby-forum.com/u/anne001)\
**Replies:** 0\
**Last updated:** [September 26, 2006, 12:20pm UTC](https://www.ruby-forum.com/t/rubymel-0-8-1-ruby-for-maya-3d-for-mac-tiger/70010 "2006-09-26T12:20:25Z")

</div>

rubymel 0.8.1 does not have mac as one of the platform icons. Is there a way to use this code with mac tiger notheless? I assume the difference will be in makefile etc. How difficult is it to get such a software to in…

---

## [Clicking web page tab](https://www.ruby-forum.com/t/clicking-web-page-tab/69503)

<div class="topic-metadata">

**Author:** [@newyorkdolluk](https://www.ruby-forum.com/u/newyorkdolluk)\
**Replies:** 2\
**Last updated:** [September 26, 2006, 10:46am UTC](https://www.ruby-forum.com/t/clicking-web-page-tab/69503 "2006-09-26T10:46:14Z")

</div>

i have a tab on a web page that i want watir/ruby to click. the DOM has it down as: ... ... can anyone suggest a ruby/watir command to simulate the click cheers …

---

## [Marshal formats](https://www.ruby-forum.com/t/marshal-formats/69903)

<div class="topic-metadata">

**Author:** [@Manfred\_Stienstra](https://www.ruby-forum.com/u/Manfred_Stienstra)\
**Replies:** 2\
**Last updated:** [September 26, 2006, 10:15am UTC](https://www.ruby-forum.com/t/marshal-formats/69903 "2006-09-26T10:15:54Z")

</div>

For certain unicode operations I need to store and read a fairly large amounts of data. Currently I’m using Marshal.dump to generate the data, but I’ve got the impression that the Marshal format isn’t just different o…

---

## [CVS HEAD Build $B\<:GT(B (mswin32 vc7.1)](https://www.ruby-forum.com/t/cvs-head-build-b-gt-b-mswin32-vc7-1/69991)

<div class="topic-metadata">

**Author:** [@KIMURA\_Koichi](https://www.ruby-forum.com/u/KIMURA_Koichi)\
**Replies:** 2\
**Last updated:** [September 26, 2006, 9:37am UTC](https://www.ruby-forum.com/t/cvs-head-build-b-gt-b-mswin32-vc7-1/69991 "2006-09-26T09:37:46Z")

</div>

e$BLZB\<$G$9!#e(B e$B2q5D$N;~4V$,6a$$$N$G\<h$j5^$.Js9p$@$1$G$9e(B #e$BKhEY$N$3$H$G$9$,!#e(B e$B$5$-$\[$Ie(B CVS-viewe$B$+$ie(BHEADe$B$r\<h$C$F$-$F%S%k%I$r;n$\_$?$H$3$me(B cl -nologo -MD -Zi -O2b2xg- -G6 -DRUBY\_EXPORT…

---

## [Gems error](https://www.ruby-forum.com/t/gems-error/69998)

<div class="topic-metadata">

**Author:** [@Gaech](https://www.ruby-forum.com/u/Gaech)\
**Replies:** 0\
**Last updated:** [September 26, 2006, 9:21am UTC](https://www.ruby-forum.com/t/gems-error/69998 "2006-09-26T09:21:46Z")

</div>

Why error is happen? ruby -e “require ‘rubyclr’” c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/dependencies.rb:123:in alias\_const\_missing': uninitialized constant IDataErrorInfo (NameError) fr…

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

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