# Ruby

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

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

---

## [(String \* Fixnum) and (Fixnum \* String)](https://www.ruby-forum.com/t/string-fixnum-and-fixnum-string/112596)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 4\
**Last updated:** [August 21, 2007, 9:01am UTC](https://www.ruby-forum.com/t/string-fixnum-and-fixnum-string/112596 "2007-08-21T09:01:24Z")

</div>

Just a small quick question: String \* Fixnum works: "test " \* 4 =\> test test test test while Fixnum \* String doesn’t: 4 \* "test " TypeError: String can’t be coerced into Fixnum from (irb):19:in \`\*’ from (irb):1…

---

## [RubyInline 3.6.4 Released](https://www.ruby-forum.com/t/rubyinline-3-6-4-released/112600)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [August 21, 2007, 8:53am UTC](https://www.ruby-forum.com/t/rubyinline-3-6-4-released/112600 "2007-08-21T08:53:23Z")

</div>

RubyInline version 3.6.4 has been released! http://rubyforge.org/projects/rubyinline/ http://www.zenspider.com/ZSS/Products/RubyInline/ Ruby Inline is an analog to Perl’s Inline::C. Out of the box, it allows you to e…

---

## [.gemrc problem, installing Slave and Daemon on Railsmachine](https://www.ruby-forum.com/t/gemrc-problem-installing-slave-and-daemon-on-railsmachine/112597)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 21, 2007, 8:45am UTC](https://www.ruby-forum.com/t/gemrc-problem-installing-slave-and-daemon-on-railsmachine/112597 "2007-08-21T08:45:21Z")

</div>

While trying to install gems on my Railsmachine (hosted) server. The “sudo gem install” command reported back “Killed” every time I tried to install the Slave or Daemon gems (As part of getting BackgroundRB rails plug…

---

## [Test\_set and test\_hash](https://www.ruby-forum.com/t/test-set-and-test-hash/112594)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [August 21, 2007, 7:40am UTC](https://www.ruby-forum.com/t/test-set-and-test-hash/112594 "2007-08-21T07:40:13Z")

</div>

e$B$$$/$D$+!"e(BHash e$B$^$o$j$N%F%9%H\<:GT$NA}2C$,8+$i$l$^$9!#e(B http://www.rubyist.net/~akr/chkbuild/debian-sarge/ruby-trunk/log/20070821T135702.diff.txt.gz % ./ruby test/test\_set.rb Loaded suite test/test\_set Star…

---

## [Ignore exception message](https://www.ruby-forum.com/t/ignore-exception-message/112586)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 1\
**Last updated:** [August 21, 2007, 5:49am UTC](https://www.ruby-forum.com/t/ignore-exception-message/112586 "2007-08-21T05:49:06Z")

</div>

e$B!!$5$5$@$G$9!#e(B 3.times{ Thread.new{ begin sleep ensure p :foo # (A) raise # (B) end } } e$B!!$3$s$J%W%m%0%i%\`$r\<B9T$9$k$H!"e(B(A) e$B$K$h$j!"e(B:foo e$B$,e(B3e$B2sI=\<($5$l$^$9!#e(B e$B$7$+$7!"e(B(B)…

---

## [Nested fiber invocation](https://www.ruby-forum.com/t/nested-fiber-invocation/112383)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 7\
**Last updated:** [August 21, 2007, 5:21am UTC](https://www.ruby-forum.com/t/nested-fiber-invocation/112383 "2007-08-21T05:21:02Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B e$B1sF#$5$s$+$ie(B 外部イテレータにケチをつける - まめめも e$B$G;XE&$5$l$F$$$k$N$G$9$,!“e(BEnumerator#nexte$B$NFbB&$G$5$i$Ke(B Enumerator#nexte$B$,8F$P$l$k$H!”%(%i!\<$K$J$j$^$9!#%G%P%C%,$GDI$$e(B e$B$…

---

## [How do you post SMS messages on a website?](https://www.ruby-forum.com/t/how-do-you-post-sms-messages-on-a-website/112415)

<div class="topic-metadata">

**Author:** [@lazukars](https://www.ruby-forum.com/u/lazukars)\
**Replies:** 2\
**Last updated:** [August 21, 2007, 4:34am UTC](https://www.ruby-forum.com/t/how-do-you-post-sms-messages-on-a-website/112415 "2007-08-21T04:34:59Z")

</div>

I am developing a website with Ruby that will integrate SMS messaging. Let’s say the site is called http://www.example.com for clarity sake. The primary function of example.com will be accepting incoming sms messages …

---

## [Secrand.rb](https://www.ruby-forum.com/t/secrand-rb/106303)

<div class="topic-metadata">

**Author:** [@NAKAMURAS\_Hiroshi](https://www.ruby-forum.com/u/NAKAMURAS_Hiroshi)\
**Replies:** 50\
**Last updated:** [August 21, 2007, 3:16am UTC](https://www.ruby-forum.com/t/secrand-rb/106303 "2007-08-21T03:16:50Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 trunke$B$Ke(Blib/secrand.rbe$B$,F~$j$^$7$?$,!"$3$l$rF~$l$k$K;j$C$?7P0^$C$F$I$3$+e(B e$B$G8+$i$l$^$9$+e(B? e$B!JFC$KH?BP$H$$$&$o$1$8$c$"$j$^$;$s!Ke(B OpenSSL 0.9.6e$B0JA0e…

---

## [Shared scripts and ruby gems](https://www.ruby-forum.com/t/shared-scripts-and-ruby-gems/112282)

<div class="topic-metadata">

**Author:** [@Michael\_Schidlowsky](https://www.ruby-forum.com/u/Michael_Schidlowsky)\
**Replies:** 3\
**Last updated:** [August 21, 2007, 2:00am UTC](https://www.ruby-forum.com/t/shared-scripts-and-ruby-gems/112282 "2007-08-21T02:00:34Z")

</div>

Hello everyone, If I’m writing a ruby script that uses a certain library (e.g. Chronic) and I want to share that script with other users by making it publicly executable on a linux filesystem, do I need to do anything…

---

## [MS VC++ Toolkit 2003?](https://www.ruby-forum.com/t/ms-vc-toolkit-2003/112481)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 4\
**Last updated:** [August 21, 2007, 1:37am UTC](https://www.ruby-forum.com/t/ms-vc-toolkit-2003/112481 "2007-08-21T01:37:43Z")

</div>

I’ve just purchased a new Intel-based iMac and installed Windows XP using VMware Fusion. Now I’d like to build a new RMagick-win32 gem. The instructions I have say that I must use Microsoft’s VC++ Toolkit 2003. Howeve…

---

## [System() doesn't work but %x does](https://www.ruby-forum.com/t/system-doesnt-work-but-x-does/112567)

<div class="topic-metadata">

**Author:** [@pmak](https://www.ruby-forum.com/u/pmak)\
**Replies:** 3\
**Last updated:** [August 21, 2007, 1:34am UTC](https://www.ruby-forum.com/t/system-doesnt-work-but-x-does/112567 "2007-08-21T01:34:11Z")

</div>

I’m trying to issue an “svn add” command from a script to add everything under the current folder to subversion. Command line works: svn add --force \* %x / backticks work out = %x\[svn add --force \*\] system() does no…

---

## [\[SOLUTION\] Process Rings (#135)](https://www.ruby-forum.com/t/solution-process-rings-135/112561)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 0\
**Last updated:** [August 20, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/solution-process-rings-135/112561 "2007-08-20T23:12:27Z")

</div>

Here’s my solution. Its “processes” are just plain threads. It works pretty well, but it hangs on rings of size 1. $processes = \[\] def kill\_processes $processes.each do |thr| thr.exit! end end thread\_proc = proc …

---

## [Rake question: How to call a task from a different namespace](https://www.ruby-forum.com/t/rake-question-how-to-call-a-task-from-a-different-namespace/112555)

<div class="topic-metadata">

**Author:** [@Wayne\_ESSeguin](https://www.ruby-forum.com/u/Wayne_ESSeguin)\
**Replies:** 2\
**Last updated:** [August 20, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/rake-question-how-to-call-a-task-from-a-different-namespace/112555 "2007-08-20T22:55:24Z")

</div>

How does one call from inside a namespace, a task from another namespace? namespace :foo do task :a do puts “Hello from task a!” end end namespace :bar do task :b do Rake::Task\[:foo\]\[:a\] # How to call foo:a ??? …

---

## [Openssl and windows](https://www.ruby-forum.com/t/openssl-and-windows/112557)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 2\
**Last updated:** [August 20, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/openssl-and-windows/112557 "2007-08-20T22:44:58Z")

</div>

one-click installer, 1.8.6-25, XP. in irb if I require ‘openssl’ I get =\> false even so, openssl seems to work, i.e. I can encrypt and decrypt, list the ciphers, etc. why does the require return false? if I do the …

---

## [Regex not gsubbing for me](https://www.ruby-forum.com/t/regex-not-gsubbing-for-me/112515)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 7\
**Last updated:** [August 20, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/regex-not-gsubbing-for-me/112515 "2007-08-20T21:06:09Z")

</div>

Hi, Can someone please explain to me why this simple regex substitution won’t work? Source data file: Reauthorization of collaborative weather modification research program within Department of Commerce/NOAA Weather…

---

## [Symbol as array index error](https://www.ruby-forum.com/t/symbol-as-array-index-error/225963)

<div class="topic-metadata">

**Author:** [@nick314](https://www.ruby-forum.com/u/nick314)\
**Replies:** 3\
**Last updated:** [August 20, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/symbol-as-array-index-error/225963 "2007-08-20T20:12:00Z")

</div>

I don’t know why this code got Symbol as array index error. Please help me out. nick314 cl/xmlserial is the library of REXML require ‘yaml’ require ‘cl/xmlserial’ class Person include XmlSerialization attr\_acces…

---

## [God 0.3.0 released](https://www.ruby-forum.com/t/god-0-3-0-released/112546)

<div class="topic-metadata">

**Author:** [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Replies:** 0\
**Last updated:** [August 20, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/god-0-3-0-released/112546 "2007-08-20T20:08:59Z")

</div>

Plenty of big changes and improvements in this release of god. Most noticeable is a simplification of the config file. Sadly, we must say goodbye to the much loved God.meddle and promote God.watch to top level. This c…

---

## [Starting another programs from inside](https://www.ruby-forum.com/t/starting-another-programs-from-inside/112528)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 3\
**Last updated:** [August 20, 2007, 7:50pm UTC](https://www.ruby-forum.com/t/starting-another-programs-from-inside/112528 "2007-08-20T19:50:55Z")

</div>

I searched ruby-talk but I could not find the answer. I want to start one program from inside another. test.rb puts ‘hi’ test1.rb test.rb test1.rb results =\> Exec format error - test.rb (Errno::ENOEXEC) Thanks J…

---

## [Output to the screen?](https://www.ruby-forum.com/t/output-to-the-screen/112540)

<div class="topic-metadata">

**Author:** [@dust](https://www.ruby-forum.com/u/dust)\
**Replies:** 0\
**Last updated:** [August 20, 2007, 7:32pm UTC](https://www.ruby-forum.com/t/output-to-the-screen/112540 "2007-08-20T19:32:23Z")

</div>

I was wonder if its possible to print the command to the screen so you see what it thinks it’s supposed to do. By that i mean sort of printing out the variables as they are stepping. For example do puts: : then execut…

---

## [Show defining file for methods?](https://www.ruby-forum.com/t/show-defining-file-for-methods/112484)

<div class="topic-metadata">

**Author:** [@Mario\_TSL](https://www.ruby-forum.com/u/Mario_TSL)\
**Replies:** 2\
**Last updated:** [August 20, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/show-defining-file-for-methods/112484 "2007-08-20T18:43:29Z")

</div>

I don’t think this is built in, but maybe I’m wrong. I was wondering how, if this isn’t built in, we might add the ability when pretty printing a class/modules list of methods we might have the name of the file where…

---

## [Assignment as a reference?](https://www.ruby-forum.com/t/assignment-as-a-reference/112530)

<div class="topic-metadata">

**Author:** [@Morgan\_G](https://www.ruby-forum.com/u/Morgan_G)\
**Replies:** 3\
**Last updated:** [August 20, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/assignment-as-a-reference/112530 "2007-08-20T18:35:46Z")

</div>

Hi, I ran into a simple issue earlier with assignment seeming to make references. I’m new to Ruby so perhaps this is how it’s supposed to be. Here is an abridged version of what happened: foo = ‘bar’ #=\> bar foo2 =…

---

## [Duck typing](https://www.ruby-forum.com/t/duck-typing/112526)

<div class="topic-metadata">

**Author:** [@NAKAMURAS\_Hiroshi](https://www.ruby-forum.com/u/NAKAMURAS_Hiroshi)\
**Replies:** 0\
**Last updated:** [August 20, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/duck-typing/112526 "2007-08-20T17:17:36Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 \[ruby-dev:31515\] Re: Random e$B$h$j!#e(B Tanaka A. wrote: duck typing e$B$NET9g\>e!“F1L\>$G5sF0$,0\[$J$k%a%=%C%I$O$G$-$l$PHre(B e$B$1$?$\[$&$,$$$$$H;W$&$s$G$9$,!”$I$&$G$7$g…

---

## [Ruby performance degraded on custom kernel](https://www.ruby-forum.com/t/ruby-performance-degraded-on-custom-kernel/112512)

<div class="topic-metadata">

**Author:** [@cubiq](https://www.ruby-forum.com/u/cubiq)\
**Replies:** 2\
**Last updated:** [August 20, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/ruby-performance-degraded-on-custom-kernel/112512 "2007-08-20T16:49:01Z")

</div>

Hello list, I have a rather odd question regarding ruby’s performance on a system with a vanilla kernel from kernel.org version 2.6.18.1. I have two identical systems. One system has a minimal debian etch system inst…

---

## [Blogger widgets](https://www.ruby-forum.com/t/blogger-widgets/112520)

<div class="topic-metadata">

**Author:** [@ti-mara](https://www.ruby-forum.com/u/ti-mara)\
**Replies:** 0\
**Last updated:** [August 20, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/blogger-widgets/112520 "2007-08-20T16:46:21Z")

</div>

Hey all, I ws wondering if i could create widget for blogger templates using ruby … because I’m am learning ruby and plan to use a blog to talk about my experiences with ruby …(yet to start , stuck learning java righ…

---

## [Won't WIN32OLE\_EVENT.new leak?](https://www.ruby-forum.com/t/wont-win32ole-event-new-leak/112219)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [August 20, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/wont-win32ole-event-new-leak/112219 "2007-08-20T16:36:20Z")

</div>

Won’t WIN32OLE\_EVENT.new leak? A WIN32OLE object will sooner or later be freed (right?), when garbage collection kicks in. But a WIN32OLE\_EVENT object will never be freed, as it is kept in a global array and is neve…

---

## [Simultaneous exceptions dump core](https://www.ruby-forum.com/t/simultaneous-exceptions-dump-core/111632)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 12\
**Last updated:** [August 20, 2007, 3:20pm UTC](https://www.ruby-forum.com/t/simultaneous-exceptions-dump-core/111632 "2007-08-20T15:20:09Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B 1.9 e$B$G0J2\<$N$h$&$K$9$k$HMn$A$^$9!#e(B $ ./ruby -ve ’ loop do begin Thread.start(Thread.current) {|u| u.raise } raise rescue ensure end end ’ ruby 1.9.0 (2007-08-09 patchlevel 0) \[i68…

---

## [Displaying currency symbols in select](https://www.ruby-forum.com/t/displaying-currency-symbols-in-select/112306)

<div class="topic-metadata">

**Author:** [@jspencer78](https://www.ruby-forum.com/u/jspencer78)\
**Replies:** 7\
**Last updated:** [August 20, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/displaying-currency-symbols-in-select/112306 "2007-08-20T14:56:21Z")

</div>

I can’t seem to get a Â£ symbol to display correctly in a form select element. I have tried: number\_to\_currency(u.price, :unit =\> “&pound”) number\_to\_currency(u.price, :unit =\> “Â£”) h ( number\_to\_currency(u.price, …

---

## [Unmarshal object with PHP](https://www.ruby-forum.com/t/unmarshal-object-with-php/112479)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [August 20, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/unmarshal-object-with-php/112479 "2007-08-20T14:48:06Z")

</div>

Hi, Is there any implamentation of something like Marshal.dump in PHP? Or any implementation that is easily readable, so I could rewrite it into PHP? :slight\_smile: (I can’t figure out what’s going on in C files from …

---

## [How to read a ruby symbol from C?](https://www.ruby-forum.com/t/how-to-read-a-ruby-symbol-from-c/112403)

<div class="topic-metadata">

**Author:** [@unbewusst](https://www.ruby-forum.com/u/unbewusst)\
**Replies:** 4\
**Last updated:** [August 20, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/how-to-read-a-ruby-symbol-from-c/112403 "2007-08-20T13:24:30Z")

</div>

I’m now able to produce a ruby symbol from C I’m also able to read the keys of a hash, i need to know how to transform a key being a T\_SYMBOL into a cstring (the reverse) ??? also using : long size = RHASH( ( VALUE )…

---

## [Ruby on the iPhone](https://www.ruby-forum.com/t/ruby-on-the-iphone/112488)

<div class="topic-metadata">

**Author:** [@Evan\_Light](https://www.ruby-forum.com/u/Evan_Light)\
**Replies:** 3\
**Last updated:** [August 20, 2007, 12:27pm UTC](https://www.ruby-forum.com/t/ruby-on-the-iphone/112488 "2007-08-20T12:27:22Z")

</div>

Anyone else out there realized that Ruby has been compiled for and now runs on the iPhone? If you have an iPhone, go visit this site: http://iphone.nullriver.com/beta/. Installer.app will help you easilly install a …

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

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