# Ruby

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

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

---

## [Looping](https://www.ruby-forum.com/t/looping/140407)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 4\
**Last updated:** [June 13, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/looping/140407 "2008-06-13T17:35:43Z")

</div>

Can someone explain why my code is stopping after looking at the first file? There are at least 20 files in this directory and it stops after checking just one. require ‘net/ftp’ class Download ftp = Net::FTP.new(‘f…

---

## [How to install gem from differnet location](https://www.ruby-forum.com/t/how-to-install-gem-from-differnet-location/140344)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 4\
**Last updated:** [June 13, 2008, 5:11pm UTC](https://www.ruby-forum.com/t/how-to-install-gem-from-differnet-location/140344 "2008-06-13T17:11:00Z")

</div>

i always try to install gem using the gem tools. for eg gem install how can i download and install a gem other than the gems.rubyforge.org. this is the gem i want to try. http://trypticon.org/software/actionmesseng…

---

## [Browser/os detect (functions and example without JS)](https://www.ruby-forum.com/t/browser-os-detect-functions-and-example-without-js/140400)

<div class="topic-metadata">

**Author:** [@dracula](https://www.ruby-forum.com/u/dracula)\
**Replies:** 0\
**Last updated:** [June 13, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/browser-os-detect-functions-and-example-without-js/140400 "2008-06-13T16:23:27Z")

</div>

Hello people! Many people say - How detecting browser and OS without JavaScript? I create example how detecting browser and os with Ruby CGI! Download detect.zip,Unzip this archive. 2 file - detect.rb and index.rb d…

---

## [How to get a connection with an existent database?](https://www.ruby-forum.com/t/how-to-get-a-connection-with-an-existent-database/140282)

<div class="topic-metadata">

**Author:** [@peyisar](https://www.ruby-forum.com/u/peyisar)\
**Replies:** 3\
**Last updated:** [June 13, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/how-to-get-a-connection-with-an-existent-database/140282 "2008-06-13T16:15:26Z")

</div>

Can somebody say me how to read an existent database with sqlite and ruby? I want to know, how to get the connection and then close it. Thanks :slight\_smile:

---

## [Pdf is not a class or module](https://www.ruby-forum.com/t/pdf-is-not-a-class-or-module/140396)

<div class="topic-metadata">

**Author:** [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Replies:** 0\
**Last updated:** [June 13, 2008, 4:03pm UTC](https://www.ruby-forum.com/t/pdf-is-not-a-class-or-module/140396 "2008-06-13T16:03:24Z")

</div>

Hi, In our application we have used the pdf writer to give us PDF outputs. And we have installed these gems and included them in the environment.rb file. require ‘pdf/writer’ require ‘pdf/simpletable’ But when we t…

---

## [Bug when installing Mongrel on Windows](https://www.ruby-forum.com/t/bug-when-installing-mongrel-on-windows/140376)

<div class="topic-metadata">

**Author:** [@yonben](https://www.ruby-forum.com/u/yonben)\
**Replies:** 1\
**Last updated:** [June 13, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/bug-when-installing-mongrel-on-windows/140376 "2008-06-13T15:45:52Z")

</div>

Hi guys, I want to install Mongrel, for install Redmine after, but when the Mongrel installation, I have this message: D:\\ruby\\Mongrel\\Mongrel\>gem install mongrel-1.1.5.gem Building native extensions. This could tak…

---

## [Using element's text content as keys from xmlsimple](https://www.ruby-forum.com/t/using-elements-text-content-as-keys-from-xmlsimple/140393)

<div class="topic-metadata">

**Author:** [@Srijayanth\_S](https://www.ruby-forum.com/u/Srijayanth_S)\
**Replies:** 0\
**Last updated:** [June 13, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/using-elements-text-content-as-keys-from-xmlsimple/140393 "2008-06-13T15:37:36Z")

</div>

Hello, I have: Dave John I am using xmlsimple to parse something in that format and I want b organized with the content as keys and weight as values. Is there any easy way to do this? I’ve been trying hard with…

---

## [Launch exe from Ruby](https://www.ruby-forum.com/t/launch-exe-from-ruby/140391)

<div class="topic-metadata">

**Author:** [@melmoth](https://www.ruby-forum.com/u/melmoth)\
**Replies:** 2\
**Last updated:** [June 13, 2008, 3:24pm UTC](https://www.ruby-forum.com/t/launch-exe-from-ruby/140391 "2008-06-13T15:24:02Z")

</div>

Hi all, it’s my first post here, so I hope I’m in the right place to ask. I’m using Ruby for implementi a simple script, I have problem when I want to launch an exe with as argument a path with spaces: something like …

---

## [Regular expression problem](https://www.ruby-forum.com/t/regular-expression-problem/140380)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 2\
**Last updated:** [June 13, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/regular-expression-problem/140380 "2008-06-13T13:15:51Z")

</div>

string=“something somethig something” now i want to change /\<a.\*a\>/ to “tag” i want result like this string=“something tag somethig tag something” but when i try string =~ /\<a.\*a\>/ # here $& —\>" somethi…

---

## [Insert large binary file in database (MySQL)](https://www.ruby-forum.com/t/insert-large-binary-file-in-database-mysql/140148)

<div class="topic-metadata">

**Author:** [@axyd80](https://www.ruby-forum.com/u/axyd80)\
**Replies:** 3\
**Last updated:** [June 13, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/insert-large-binary-file-in-database-mysql/140148 "2008-06-13T13:06:54Z")

</div>

Hello! Probably a stupid question … How can i insert large binary file in MySQL using IO stream? For example, ‘Sequel’ can do ‘insert’ as: dataset \<\< {:name =\> 'a name', :value =\> 'some value'} i need something lik…

---

## [Bench 1.0.0 released](https://www.ruby-forum.com/t/bench-1-0-0-released/140101)

<div class="topic-metadata">

**Author:** [@janfoeh](https://www.ruby-forum.com/u/janfoeh)\
**Replies:** 8\
**Last updated:** [June 13, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/bench-1-0-0-released/140101 "2008-06-13T12:16:46Z")

</div>

Bench version 1.0.0 released! http://bench.rubyforge.org == DESCRIPTION Do you remeber how to use the benchmark library from the Ruby standard lib? I don’t. Now you need not to remember, there is Bench: A DSL around…

---

## [Halcyon 0.5.0 Released!](https://www.ruby-forum.com/t/halcyon-0-5-0-released/140123)

<div class="topic-metadata">

**Author:** [@maraby](https://www.ruby-forum.com/u/maraby)\
**Replies:** 2\
**Last updated:** [June 13, 2008, 11:58am UTC](https://www.ruby-forum.com/t/halcyon-0-5-0-released/140123 "2008-06-13T11:58:29Z")

</div>

Halcyon version 0.5.0 has been released! == DESCRIPTION Halcyon is a framework for developing service-oriented applications. == ANNOUNCEMENT Halcyon has gone through a major refactoring: the codebase has been comple…

---

## [Forum for beginners](https://www.ruby-forum.com/t/forum-for-beginners/140262)

<div class="topic-metadata">

**Author:** [@saikun](https://www.ruby-forum.com/u/saikun)\
**Replies:** 4\
**Last updated:** [June 13, 2008, 11:18am UTC](https://www.ruby-forum.com/t/forum-for-beginners/140262 "2008-06-13T11:18:53Z")

</div>

Hi there, I was looking around for some beginners forum for ruby to share little portions of code and help each other with some mistakes on them, or trying to improve it. I’ve been playing around with ruby for the las…

---

## [\[Bug:1.9\] Complex("1i") clear $~](https://www.ruby-forum.com/t/bug-1-9-complex-1i-clear/139852)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [June 13, 2008, 10:27am UTC](https://www.ruby-forum.com/t/bug-1-9-complex-1i-clear/139852 "2008-06-13T10:27:42Z")

</div>

e$BF1MM$K!"e(BComplex(“1i”) e$B$be(B $~ e$B$re(B nil e$B$K$9$k$h$&$G$9!#e(B % ./ruby -e ’ /a/ =~ “a” p $~ p Complex(“1i”) p $~’ #\<MatchData “a”\> Complex(0, 1) nil e$B$A$J$\_$Ke(B Complex(“i”) e$B$Oe(B ArgumentEr…

---

## [\[Bug:1.9\] Rational("355/113") clear $&](https://www.ruby-forum.com/t/bug-1-9-rational-355-113-clear/139851)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 7\
**Last updated:** [June 13, 2008, 10:20am UTC](https://www.ruby-forum.com/t/bug-1-9-rational-355-113-clear/139851 "2008-06-13T10:20:33Z")

</div>

e$B0J2\<$N$h$&$K!"e(BRational(“355/113”) e$B$H$9$k$He(B $& e$B$,e(B nil e$B$K$J$je(B e$B$^$9!#e(B % ./ruby -ve '/a/ =~ “a” p $& Rational(“355/113”) p $& ’ ruby 1.9.0 (2008-06-07 revision 16875) \[i686-linux\] “a” …

---

## [How to throw java's exception in jruby?](https://www.ruby-forum.com/t/how-to-throw-javas-exception-in-jruby/140350)

<div class="topic-metadata">

**Author:** [@dennis\_zhuang](https://www.ruby-forum.com/u/dennis_zhuang)\
**Replies:** 1\
**Last updated:** [June 13, 2008, 9:12am UTC](https://www.ruby-forum.com/t/how-to-throw-javas-exception-in-jruby/140350 "2008-06-13T09:12:33Z")

</div>

I tried require ‘java’ include\_class “java.io.IOException” raise IOException,“test”,caller It dose not work,any suggestion?Thanks a lot.

---

## [SVN r114 is out](https://www.ruby-forum.com/t/svn-r114-is-out/140347)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 6\
**Last updated:** [June 13, 2008, 5:54am UTC](https://www.ruby-forum.com/t/svn-r114-is-out/140347 "2008-06-13T05:54:19Z")

</div>

This update contains the code we demo’d at RailsConf, and a few improvements that we’ve made since then. If you rake compile this build, it will generate an ir.cmd file for you in the build\\debug directory. The rakefi…

---

## [Erubis 2.6.1 released - Rails 2.1 support](https://www.ruby-forum.com/t/erubis-2-6-1-released-rails-2-1-support/139672)

<div class="topic-metadata">

**Author:** [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Replies:** 8\
**Last updated:** [June 13, 2008, 1:43am UTC](https://www.ruby-forum.com/t/erubis-2-6-1-released-rails-2-1-support/139672 "2008-06-13T01:43:49Z")

</div>

I have released Erubis 2.6.1. http://www.kuwata-lab.com/erubis/ http://www.kuwata-lab.com/support/ Erubis is another eRuby implementation which is very fast and extensible than ERB and eruby. Enhancements from 2.6.0…

---

## [Erubis 2.6.2 released - Ruby 1.9 support](https://www.ruby-forum.com/t/erubis-2-6-2-released-ruby-1-9-support/140338)

<div class="topic-metadata">

**Author:** [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Replies:** 1\
**Last updated:** [June 13, 2008, 1:41am UTC](https://www.ruby-forum.com/t/erubis-2-6-2-released-ruby-1-9-support/140338 "2008-06-13T01:41:59Z")

</div>

I have released Erubis 2.6.2. http://www.kuwata-lab.com/erubis/ Erubis is another eRuby implementation which is very fast and extensible than ERB and eruby. Enhancements from 2.6.1: Ruby 1.9 support Bugfixes from …

---

## [Code Review: openblock](https://www.ruby-forum.com/t/code-review-openblock/140335)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [June 13, 2008, 1:11am UTC](https://www.ruby-forum.com/t/code-review-openblock/140335 "2008-06-13T01:11:35Z")

</div>

tfpt review “/shelveset:openblock;REDMOND\\jdeville” Modifies File.open and IO.open to close the stream/file after executing the block if a block is given. JD

---

## [Net::SSH Problems](https://www.ruby-forum.com/t/net-ssh-problems/140330)

<div class="topic-metadata">

**Author:** [@Nicholas\_ESHubbard](https://www.ruby-forum.com/u/Nicholas_ESHubbard)\
**Replies:** 0\
**Last updated:** [June 13, 2008, 12:40am UTC](https://www.ruby-forum.com/t/net-ssh-problems/140330 "2008-06-13T00:40:29Z")

</div>

Ok Guys, I have bet my head against this all day long. I have no clue what is going on at all. Jamis or anyone else, if you have any thoughts/input please share. (Pasted from: http://pastie.org/214070) CODE: def lo…

---

## [PhP Foxware Question? Don't Know Where to Turn](https://www.ruby-forum.com/t/php-foxware-question-dont-know-where-to-turn/140319)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 12, 2008, 10:25pm UTC](https://www.ruby-forum.com/t/php-foxware-question-dont-know-where-to-turn/140319 "2008-06-12T22:25:47Z")

</div>

I am curious if anyone willing to offer advice can tell me a reasonable estimate of building a social networking site using PhP Foxware and SQL. I would appreciate any input and thanking you for your advice?

---

## [Can't require a simple file](https://www.ruby-forum.com/t/cant-require-a-simple-file/140248)

<div class="topic-metadata">

**Author:** [@bado](https://www.ruby-forum.com/u/bado)\
**Replies:** 2\
**Last updated:** [June 12, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/cant-require-a-simple-file/140248 "2008-06-12T21:07:00Z")

</div>

I just got and compiled the latest IronRuby revision. When I try to require a simple file, I got this error: E:\\downloads\\temp\\bak\\trunk\\src\\IronRuby.Libraries\\Builtins\\KernelOps.cs:300:in require': Type 'IronRuby, Ve…

---

## [Resynchronizing my gem list with actual gems installed](https://www.ruby-forum.com/t/resynchronizing-my-gem-list-with-actual-gems-installed/140308)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [June 12, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/resynchronizing-my-gem-list-with-actual-gems-installed/140308 "2008-06-12T20:34:30Z")

</div>

All, OS X 10.5.3 Ruby 1.8.6 When I do “gem list” I see a bunch of gem version references that I have definitely already cleaned off. How does one force the local gem index to rescan the RUBY\_HOME/Gems/1.8/gems dire…

---

## [Instance variables](https://www.ruby-forum.com/t/instance-variables/140291)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 5\
**Last updated:** [June 12, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/instance-variables/140291 "2008-06-12T20:27:57Z")

</div>

class Trie attr\_reader :value, :parent, :child\_node def initialize(value=nil, parent=nil) @value = value @children = {} @parent = parent @child\_node = @children # ??? HERE end end ??? HERE: Does it matter …

---

## [Re: ruby, enum all? bug](https://www.ruby-forum.com/t/re-ruby-enum-all-bug/140305)

<div class="topic-metadata">

**Author:** [@Eric\_I](https://www.ruby-forum.com/u/Eric_I)\
**Replies:** 1\
**Last updated:** [June 12, 2008, 8:13pm UTC](https://www.ruby-forum.com/t/re-ruby-enum-all-bug/140305 "2008-06-12T20:13:18Z")

</div>

Zach D. wrote: Does anyone else think this is weird behavior in ruby 1.8.x ? \[\].all?{ false } # =\> true The implementation of enum.all? defaults the result to true, and then relies on iterating over the elements to …

---

## [Problems using UUID (universally unique identifier)](https://www.ruby-forum.com/t/problems-using-uuid-universally-unique-identifier/140301)

<div class="topic-metadata">

**Author:** [@pabloq](https://www.ruby-forum.com/u/pabloq)\
**Replies:** 2\
**Last updated:** [June 12, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/problems-using-uuid-universally-unique-identifier/140301 "2008-06-12T20:11:32Z")

</div>

Hi all, I need to generate uuid numbers. I try to run this: require\_gem ‘uuid’ 10.times do p UUID.new end But I’m receiving this: 183260c1-1ad1-012b-bfbf-001c23187f94 uuid.rb:1:Warning: require\_gem is obsolete. …

---

## [Problems with net-ssh](https://www.ruby-forum.com/t/problems-with-net-ssh/140297)

<div class="topic-metadata">

**Author:** [@daniel](https://www.ruby-forum.com/u/daniel)\
**Replies:** 0\
**Last updated:** [June 12, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/problems-with-net-ssh/140297 "2008-06-12T19:06:08Z")

</div>

Dear community, I tried the net-ssh gem (net-ssh (2.0.2, 1.1.2)) with this little program from the net-ssh webpage: ------- begin test.rb require ‘rubygems’ require ‘net/ssh’ Net::SSH.start(“terra”, “osm”, :passwor…

---

## [Having difficulties using custom C# dlls with namespaces within IronRuby code](https://www.ruby-forum.com/t/having-difficulties-using-custom-c-dlls-with-namespaces-within-ironruby-code/140273)

<div class="topic-metadata">

**Author:** [@pmouawad](https://www.ruby-forum.com/u/pmouawad)\
**Replies:** 6\
**Last updated:** [June 12, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/having-difficulties-using-custom-c-dlls-with-namespaces-within-ironruby-code/140273 "2008-06-12T18:35:35Z")

</div>

Ironruby-core mailing list removed\_email\_address@domain.invalid http://rubyforge.org/mailman/listinfo/ironruby-core

---

## [Newby Ruby Regular Expression Question](https://www.ruby-forum.com/t/newby-ruby-regular-expression-question/140266)

<div class="topic-metadata">

**Author:** [@Ruchira\_B](https://www.ruby-forum.com/u/Ruchira_B)\
**Replies:** 4\
**Last updated:** [June 12, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/newby-ruby-regular-expression-question/140266 "2008-06-12T17:46:12Z")

</div>

Dear Expert, I have recently started Ruby programming. I have used Perl before and liked it mostly due to the power of regular expressions. But Ruby’s ability scale and modularize is absolutely amazing. I want to f…

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

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