# Ruby

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

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

---

## [Yarv-related dependent rules addition for common.mk](https://www.ruby-forum.com/t/yarv-related-dependent-rules-addition-for-common-mk/84230)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 1\
**Last updated:** [February 2, 2007, 3:44pm UTC](https://www.ruby-forum.com/t/yarv-related-dependent-rules-addition-for-common-mk/84230 "2007-02-02T15:44:41Z")

</div>

e$B$3$s$P$s$O!":XF#$H?=$7$^$9!#e(B r11615e$B$Ke(Bsvn upe$B$7$?8e!"$$$D$b$N$h$&$Ke(Bmakee$B$7D\>$7$?$i!"\<:GT$7$F$7$^$$$^$7e(B e$B$?!#e(BYARVe$B\<~$j$N0MB84X78$,e(Bcommon.mke$B$KITB-$7$F$$$k$h$&$G$9!#\<j85$G$O0J2\<$Ne(B e$…

---

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

<div class="topic-metadata">

**Author:** [@Josh\_Bloom](https://www.ruby-forum.com/u/Josh_Bloom)\
**Replies:** 1\
**Last updated:** [February 2, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/no-subject/84132 "2007-02-02T14:56:32Z")

</div>

unsubscribe

---

## [Indexed array](https://www.ruby-forum.com/t/indexed-array/84206)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 2\
**Last updated:** [February 2, 2007, 2:32pm UTC](https://www.ruby-forum.com/t/indexed-array/84206 "2007-02-02T14:32:30Z")

</div>

presently I am using : zl = 13-\[2,5,10,15,25\].index(last\_city\_km) when last\_city\_km is one of these fixed values to get a zoom level, now, there is a change in customer requirement, last\_city\_km is calculated, s…

---

## [Integrating Rdig and acts\_as\_ferret](https://www.ruby-forum.com/t/integrating-rdig-and-acts-as-ferret/84160)

<div class="topic-metadata">

**Author:** [@Bira](https://www.ruby-forum.com/u/Bira)\
**Replies:** 1\
**Last updated:** [February 2, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/integrating-rdig-and-acts-as-ferret/84160 "2007-02-02T12:06:18Z")

</div>

Hello to the nice people of ruby-talk :). I have a question that involves Rails, but I believe it has enough “pure Ruby” in it to be worth asking here. If I’m wrong about that, please say so. Is it possible to use bot…

---

## [Folder layout again](https://www.ruby-forum.com/t/folder-layout-again/84210)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokSS\_Sh](https://www.ruby-forum.com/u/Victor_SZverokSS_Sh)\
**Replies:** 0\
**Last updated:** [February 2, 2007, 10:47am UTC](https://www.ruby-forum.com/t/folder-layout-again/84210 "2007-02-02T10:47:13Z")

</div>

Hi all. The question is: there are several small libraries (libA, libB, libC…) with dependencies of each other. For distributing them, I do something like (if libA depends on libB, the distributions would look): li…

---

## [Skim Array two by two](https://www.ruby-forum.com/t/skim-array-two-by-two/84135)

<div class="topic-metadata">

**Author:** [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Replies:** 3\
**Last updated:** [February 2, 2007, 9:02am UTC](https://www.ruby-forum.com/t/skim-array-two-by-two/84135 "2007-02-02T09:02:59Z")

</div>

Hi, Is it possible to get 2 elements at once ? \[1,2,3,4\].each {|a,b| puts a;puts b;puts ‘x’} produces 1, nil x 2 nil x 3 nil x 4 nil x I’d like to get 1 2 x 3 4 x Thanks !

---

## [Problems with Net:HTTP class](https://www.ruby-forum.com/t/problems-with-net-http-class/102671)

<div class="topic-metadata">

**Author:** [@abon](https://www.ruby-forum.com/u/abon)\
**Replies:** 1\
**Last updated:** [February 2, 2007, 8:53am UTC](https://www.ruby-forum.com/t/problems-with-net-http-class/102671 "2007-02-02T08:53:58Z")

</div>

I’m testing the http module in console. BUt I got the following error. Anyone knows why? Net::HTTP.get\_print ‘www.google.com’, ‘index.html’ SystemStackError: stack level too deep from C:/InstantRails/ruby/lib/ruby…

---

## [Ruby \<\< is ambiguos](https://www.ruby-forum.com/t/ruby-is-ambiguos/83689)

<div class="topic-metadata">

**Author:** [@nevf](https://www.ruby-forum.com/u/nevf)\
**Replies:** 19\
**Last updated:** [February 2, 2007, 8:20am UTC](https://www.ruby-forum.com/t/ruby-is-ambiguos/83689 "2007-02-02T08:20:57Z")

</div>

Hi, I working on syntax highlighting for ED4W and have problem with \<\< because it has three uses. \<\< operator \<\< HERE Doc class \<\< Name - Singleton Class The problem is determining if \<\< starts a Here Doc. It is eas…

---

## [How to Convert an Object into a Hash](https://www.ruby-forum.com/t/how-to-convert-an-object-into-a-hash/84199)

<div class="topic-metadata">

**Author:** [@vinsonizer](https://www.ruby-forum.com/u/vinsonizer)\
**Replies:** 2\
**Last updated:** [February 2, 2007, 8:06am UTC](https://www.ruby-forum.com/t/how-to-convert-an-object-into-a-hash/84199 "2007-02-02T08:06:56Z")

</div>

I have an object (happens to be an ActiveRecord Model), but this is not a Rails question. params = { :contract\_id =\> contract\_payment\[‘contract\_id’\], :amount =\> contract\_payment\[‘amount’\] } params = contract\_payment.…

---

## [Ruby OpenSRS implementation](https://www.ruby-forum.com/t/ruby-opensrs-implementation/84192)

<div class="topic-metadata">

**Author:** [@studlee2](https://www.ruby-forum.com/u/studlee2)\
**Replies:** 0\
**Last updated:** [February 2, 2007, 5:36am UTC](https://www.ruby-forum.com/t/ruby-opensrs-implementation/84192 "2007-02-02T05:36:51Z")

</div>

I’ve been working to put an OpenSRS reseller site on rails and threw together a quick implementation of their XCP client protocol. It isn’t fully-featured, well-documented, … but it’s a start that gets most of the ha…

---

## [Ruby-debug 0.7 - a fast ruby debugger](https://www.ruby-forum.com/t/ruby-debug-0-7-a-fast-ruby-debugger/84188)

<div class="topic-metadata">

**Author:** [@kent](https://www.ruby-forum.com/u/kent)\
**Replies:** 0\
**Last updated:** [February 2, 2007, 5:06am UTC](https://www.ruby-forum.com/t/ruby-debug-0-7-a-fast-ruby-debugger/84188 "2007-02-02T05:06:48Z")

</div>

Hi everyone, ruby-debug 0.7 is now available. Installation: $ gem install ruby-debug This release has many performance improvements and bugfixes. Special thanks to Markus Barchfeld and R. Bernstein for submitted pa…

---

## [Net::HTTP Closes STDIN](https://www.ruby-forum.com/t/net-http-closes-stdin/83633)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 29\
**Last updated:** [February 2, 2007, 2:42am UTC](https://www.ruby-forum.com/t/net-http-closes-stdin/83633 "2007-02-02T02:42:42Z")

</div>

Kenneth K. has brought up a HighLine issue and I’m trying to look into it. Oddly, it seems to happen when interacting with the Net::HTTP library. I’ve narrowed it done to the following example on my box: $ cat stdi…

---

## [Contacting Jim](https://www.ruby-forum.com/t/contacting-jim/84182)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [February 2, 2007, 2:27am UTC](https://www.ruby-forum.com/t/contacting-jim/84182 "2007-02-02T02:27:39Z")

</div>

Jim W., Is there a reason I can’t reach you by the email address published on you blog site? Thanks, T.

---

## [RMagick 1.15.1](https://www.ruby-forum.com/t/rmagick-1-15-1/84178)

<div class="topic-metadata">

**Author:** [@tim-hunter](https://www.ruby-forum.com/u/tim-hunter)\
**Replies:** 0\
**Last updated:** [February 2, 2007, 1:38am UTC](https://www.ruby-forum.com/t/rmagick-1-15-1/84178 "2007-02-02T01:38:37Z")

</div>

I’ve just uploaded RMagick 1.15.1 to RubyForge. This release fixes a problem that broke compatibility with ImageMagick 6.0.6 and ImageMagick 6.0.7, and possibly other very old releases of ImageMagick. If you have alre…

---

## [Ruby In Steel RC2 (Free Edition) - required update](https://www.ruby-forum.com/t/ruby-in-steel-rc2-free-edition-required-update/84173)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 0\
**Last updated:** [February 2, 2007, 1:00am UTC](https://www.ruby-forum.com/t/ruby-in-steel-rc2-free-edition-required-update/84173 "2007-02-02T01:00:35Z")

</div>

The release candidate 1 of the free edition of Ruby In Steel has now expired (this took us by surprise as much as anyone - we had thought the expiry code had been removed!) - anyway, apologies to anyone who was unabl…

---

## [Parsing text files with dynamic contents](https://www.ruby-forum.com/t/parsing-text-files-with-dynamic-contents/84161)

<div class="topic-metadata">

**Author:** [@martignoni-a](https://www.ruby-forum.com/u/martignoni-a)\
**Replies:** 4\
**Last updated:** [February 2, 2007, 12:35am UTC](https://www.ruby-forum.com/t/parsing-text-files-with-dynamic-contents/84161 "2007-02-02T00:35:34Z")

</div>

Let’s guess a simple example: i need to parse a text file, wityh variables inside, and then output again the resulting text to a file or to screen. -------------start example text------------ hello, it is #{now}, you…

---

## [Beginner's question](https://www.ruby-forum.com/t/beginners-question/84169)

<div class="topic-metadata">

**Author:** [@jerryjj](https://www.ruby-forum.com/u/jerryjj)\
**Replies:** 3\
**Last updated:** [February 2, 2007, 12:05am UTC](https://www.ruby-forum.com/t/beginners-question/84169 "2007-02-02T00:05:27Z")

</div>

Is there a place where I should be asking beginner’s questions? I am new to Ruby, and a novice at programming.

---

## [Hash.collect](https://www.ruby-forum.com/t/hash-collect/84146)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 5\
**Last updated:** [February 1, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/hash-collect/84146 "2007-02-01T22:29:16Z")

</div>

Hi, I am pulling my hair out trying to figure out the following problem (my fault not rubys): I have an array of hashes as follows: a = Array.new a \<\< {:name =\> ‘tony’, :age =\> 23} a \<\< {:name =\> ‘mary’, :age =\> 57…

---

## [Getting started with SSL and Ruby](https://www.ruby-forum.com/t/getting-started-with-ssl-and-ruby/84131)

<div class="topic-metadata">

**Author:** [@Jake\_C](https://www.ruby-forum.com/u/Jake_C)\
**Replies:** 5\
**Last updated:** [February 1, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/getting-started-with-ssl-and-ruby/84131 "2007-02-01T22:17:15Z")

</div>

Guys, I’d like to learn more about programming with SSL and Ruby, but the only docs I’ve found so far are the API docs for the openssl lib, and they’re unfortunately not much help. Could anyone offer suggestions or li…

---

## [MiniExiftool 0.1.1 released](https://www.ruby-forum.com/t/miniexiftool-0-1-1-released/84150)

<div class="topic-metadata">

**Author:** [@janfoeh](https://www.ruby-forum.com/u/janfoeh)\
**Replies:** 0\
**Last updated:** [February 1, 2007, 10:04pm UTC](https://www.ruby-forum.com/t/miniexiftool-0-1-1-released/84150 "2007-02-01T22:04:08Z")

</div>

MiniExiftool version 0.1.1 released! http://miniexiftool.rubyforge.org/ MiniExiftool is a wrapper library for the Exiftool command-line application (www.sno.phy.queensu.ca/~phil/exiftool/) written by Phil Harvay. One…

---

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

<div class="topic-metadata">

**Author:** [@rcmn](https://www.ruby-forum.com/u/rcmn)\
**Replies:** 1\
**Last updated:** [February 1, 2007, 9:57pm UTC](https://www.ruby-forum.com/t/ruby-sql-query-good-practice/84143 "2007-02-01T21:57:07Z")

</div>

what is the equivalent in ruby of that PHP code ? \<? $sql = "select \* from mytable"; $result = mssql\_query($sql); while($row = mssql\_fetch\_array($result)){ $array\[\] = $row\[0\]; } ?\> so far…

---

## [My "Hello World" script is not displaying properly](https://www.ruby-forum.com/t/my-hello-world-script-is-not-displaying-properly/84141)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 1, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/my-hello-world-script-is-not-displaying-properly/84141 "2007-02-01T21:32:04Z")

</div>

Hi, I just installed mod\_ruby1.2.5 with Apache 2.2.3 on Fedora Core 5 Linux. Triumphant, I downloaded this test script to my web root (public\_html/test.rbx) #!/usr/local/bin/ruby print “HTTP/1.0 200 OK\\r\\n” print …

---

## [Noob question:traverse directory and populate mysql db](https://www.ruby-forum.com/t/noob-question-traverse-directory-and-populate-mysql-db/84090)

<div class="topic-metadata">

**Author:** [@jay](https://www.ruby-forum.com/u/jay)\
**Replies:** 1\
**Last updated:** [February 1, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/noob-question-traverse-directory-and-populate-mysql-db/84090 "2007-02-01T20:35:55Z")

</div>

Hi, i was hoping for a little bit of direction on a project i’m starting that will look to scan a directory structure full of jpgs, and populate a db table with various meta data (i.e. filename, path, maybe some exif …

---

## [SOAP request malformed (missing n1 element)](https://www.ruby-forum.com/t/soap-request-malformed-missing-n1-element/84138)

<div class="topic-metadata">

**Author:** [@mid](https://www.ruby-forum.com/u/mid)\
**Replies:** 0\
**Last updated:** [February 1, 2007, 8:16pm UTC](https://www.ruby-forum.com/t/soap-request-malformed-missing-n1-element/84138 "2007-02-01T20:16:53Z")

</div>

I’ve been trying to get this working for over a week now and I can’t for the life of me work it out. I can currently generate SOAP requests in Ruby by two methods: Generating classes using wsdl2ruby Using SOAP4r and…

---

## [Everyday scripting with Ruby (the book)](https://www.ruby-forum.com/t/everyday-scripting-with-ruby-the-book/84093)

<div class="topic-metadata">

**Author:** [@croxmeister](https://www.ruby-forum.com/u/croxmeister)\
**Replies:** 8\
**Last updated:** [February 1, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/everyday-scripting-with-ruby-the-book/84093 "2007-02-01T20:08:52Z")

</div>

I am curious, has anyone read this? It looks good, and I like the idea of a tester- friendly ruby primer, but I would like to know what else it covers. Like whether it introduces WATIR, Selenium etc. Learning the lan…

---

## [Firebrigade\_api 1.0.0 Released](https://www.ruby-forum.com/t/firebrigade-api-1-0-0-released/83995)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 7\
**Last updated:** [February 1, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/firebrigade-api-1-0-0-released/83995 "2007-02-01T20:00:51Z")

</div>

firebrigade\_api version 1.0.0 has been released! http://seattlerb.rubyforge.org/firebrigade\_api == DESCRIPTION An API wrapper for http://firebrigade.seattlerb.org == FEATURES/PROBLEMS Changes: == 1.0.0 / 2007-01-30 …

---

## [Ruby and an efficiency](https://www.ruby-forum.com/t/ruby-and-an-efficiency/84013)

<div class="topic-metadata">

**Author:** [@Miroslaw\_M](https://www.ruby-forum.com/u/Miroslaw_M)\
**Replies:** 20\
**Last updated:** [February 1, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/ruby-and-an-efficiency/84013 "2007-02-01T19:33:50Z")

</div>

Hi, Could anyone tell me or send links where I can find some reliable articles about efficiency of ruby. How I should coding to keep ruby efficient? Can I implement c programs in ruby cod? Greets, zirael

---

## [RubyForge down](https://www.ruby-forum.com/t/rubyforge-down/84017)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 3\
**Last updated:** [February 1, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/rubyforge-down/84017 "2007-02-01T18:57:46Z")

</div>

Hello all - RubyForge went down at 0841. Investigating now… Yours, Tom

---

## [MacFUSE with ruby fusefs?](https://www.ruby-forum.com/t/macfuse-with-ruby-fusefs/84130)

<div class="topic-metadata">

**Author:** [@deanhiller](https://www.ruby-forum.com/u/deanhiller)\
**Replies:** 0\
**Last updated:** [February 1, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/macfuse-with-ruby-fusefs/84130 "2007-02-01T18:10:42Z")

</div>

Has anyone tried getting fusefs to work with MacFUSE? Is there any work going on to that end? I’ve just installed MacFUSE and found \_why’s railsfs, and wanted to \[play around with it | use it for serious corporatey th…

---

## [WEBrick::HTTPServer config](https://www.ruby-forum.com/t/webrick-httpserver-config/84023)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 3\
**Last updated:** [February 1, 2007, 4:47pm UTC](https://www.ruby-forum.com/t/webrick-httpserver-config/84023 "2007-02-01T16:47:22Z")

</div>

I’ve copied some basic code for an HTTPS server =============== require ‘webrick’ require ‘webrick/https’ httpserver = WEBrick::HTTPServer.new( :Port =\> 2000, :DocumentRoot =\> Dir::pwd + “/htdocs”, …

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

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