# Ruby

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

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

---

## [Camping 2.0 - minature rails for stay-at-home moms](https://www.ruby-forum.com/t/camping-2-0-minature-rails-for-stay-at-home-moms/226063)

<div class="topic-metadata">

**Author:** [@judofyr](https://www.ruby-forum.com/u/judofyr)\
**Replies:** 3\
**Last updated:** [April 9, 2010, 9:39pm UTC](https://www.ruby-forum.com/t/camping-2-0-minature-rails-for-stay-at-home-moms/226063 "2010-04-09T21:39:20Z")

</div>

require “uri”;require “rack”;class Object;def meta\_def m,&b;(class\<\<self;self end).send:define\_method,m,&b end end;module Camping;C=self;S=IO.read(FILE )rescue nil;P=“ Cam\\ping Problem!%s”;U=Rack::Utils;Apps=\[\] cla…

---

## [Initial release of lightning](https://www.ruby-forum.com/t/initial-release-of-lightning/186617)

<div class="topic-metadata">

**Author:** [@ghorner](https://www.ruby-forum.com/u/ghorner)\
**Replies:** 0\
**Last updated:** [April 9, 2010, 8:40pm UTC](https://www.ruby-forum.com/t/initial-release-of-lightning/186617 "2010-04-09T20:40:46Z")

</div>

Hi rubyists, I’m announcing lightning, a gem to speed up your commandline experience. Lightning does this by generating functions which wrap around commands and translate basenames to their full paths. For example: $…

---

## [ThunkGen released!](https://www.ruby-forum.com/t/thunkgen-released/186288)

<div class="topic-metadata">

**Author:** [@ribbed21](https://www.ruby-forum.com/u/ribbed21)\
**Replies:** 95\
**Last updated:** [April 9, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/thunkgen-released/186288 "2010-04-09T20:35:30Z")

</div>

Ahem… I am a little ashamed of the fact that i actually wasted a couple of hours on this but i just couldn’t refrain myself after i read the “suggestion” from Robert. You can find the code here : If you want to go…

---

## [Reading data from MS Exchange](https://www.ruby-forum.com/t/reading-data-from-ms-exchange/186547)

<div class="topic-metadata">

**Author:** [@laguna53](https://www.ruby-forum.com/u/laguna53)\
**Replies:** 7\
**Last updated:** [April 9, 2010, 7:18pm UTC](https://www.ruby-forum.com/t/reading-data-from-ms-exchange/186547 "2010-04-09T19:18:10Z")

</div>

Hi, is there a possibility to read MS Exchange data from an ROR/Ruby application ?, if yes, can it then also be written to an sql db ?. Thanks in advance, Dani

---

## [Ruby CGI sessions - mod ruby](https://www.ruby-forum.com/t/ruby-cgi-sessions-mod-ruby/186603)

<div class="topic-metadata">

**Author:** [@denno](https://www.ruby-forum.com/u/denno)\
**Replies:** 0\
**Last updated:** [April 9, 2010, 2:19pm UTC](https://www.ruby-forum.com/t/ruby-cgi-sessions-mod-ruby/186603 "2010-04-09T14:19:42Z")

</div>

Long time no type. I have a question about CGI sessions in Ruby. I’m adding a web front end to the (crazy) Ruby BBS. I want to be able to track and display the active sessions. In .asp (evil evil) this would be triv…

---

## [Zero-width positive "look-behind"?](https://www.ruby-forum.com/t/zero-width-positive-look-behind/186590)

<div class="topic-metadata">

**Author:** [@nmotter](https://www.ruby-forum.com/u/nmotter)\
**Replies:** 2\
**Last updated:** [April 9, 2010, 2:14pm UTC](https://www.ruby-forum.com/t/zero-width-positive-look-behind/186590 "2010-04-09T14:14:25Z")

</div>

“tttttattttt”.match(/ttt(?=a)/) # Rubular: ttt(?=a) =\> \[“ttt”\] “tttttattttt”.match(/(?=a)ttt/) # Rubular: (?=a)ttt =\> nil Why? And how can I get this effect?

---

## [\[Bug:trunk\] Dir.\[\] returns unmatched path](https://www.ruby-forum.com/t/bug-trunk-dir-returns-unmatched-path/184246)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 8\
**Last updated:** [April 9, 2010, 1:28pm UTC](https://www.ruby-forum.com/t/bug-trunk-dir-returns-unmatched-path/184246 "2010-04-09T13:28:10Z")

</div>

e$B1sF#$G$9!#e(B mingw e$B$Ge(B sample/test.rb e$B$,\<:GT$7$^$9!#D4$Y$F$\_$k$H!"0J2\<$Ne(B Dir.\[\] e$B$Ne(B e$B8F$S=P$77k2L$,$\*$+$7$$$h$&$J5$$,$7$^$9!#e(B $ cat t.rb p Dir\[“C:/Ruby/ruby/{lib,sample,ext,test}/\*\*/\*.rb”\].s…

---

## [Importing config files](https://www.ruby-forum.com/t/importing-config-files/186569)

<div class="topic-metadata">

**Author:** [@dlucci](https://www.ruby-forum.com/u/dlucci)\
**Replies:** 4\
**Last updated:** [April 9, 2010, 12:05pm UTC](https://www.ruby-forum.com/t/importing-config-files/186569 "2010-04-09T12:05:38Z")

</div>

Hi everyone, I am writing a program for my research that uses configuration files. I was curious how to import these files into my ruby program. Any help would be appreciated. If it helps, I am running ruby 1.9. Ch…

---

## [Match at least one element of array to another](https://www.ruby-forum.com/t/match-at-least-one-element-of-array-to-another/186587)

<div class="topic-metadata">

**Author:** [@kentorwow](https://www.ruby-forum.com/u/kentorwow)\
**Replies:** 4\
**Last updated:** [April 9, 2010, 10:41am UTC](https://www.ruby-forum.com/t/match-at-least-one-element-of-array-to-another/186587 "2010-04-09T10:41:20Z")

</div>

Hi is there a simple way to return true if at least one element of an array matches at least one element of another array? For example let’s say I have @groups = ‘4,6’.split(’,’) and @allowed = ‘1,4’.split(’,’) I wan…

---

## [Best practice for saving settings in separate file](https://www.ruby-forum.com/t/best-practice-for-saving-settings-in-separate-file/186506)

<div class="topic-metadata">

**Author:** [@opet](https://www.ruby-forum.com/u/opet)\
**Replies:** 4\
**Last updated:** [April 9, 2010, 7:59am UTC](https://www.ruby-forum.com/t/best-practice-for-saving-settings-in-separate-file/186506 "2010-04-09T07:59:47Z")

</div>

I’m currently building an application that relies on a rather large set of settings and paths that needs to sit in its own file. What are the best way to go about? XML? Simple strings in a text file? The settings file…

---

## [\[Bug #2965\] method \`===' called on hidden T\_STRING object (NotImplementedError)](https://www.ruby-forum.com/t/bug-2965-method-called-on-hidden-t-string-object-notimplementederror/185150)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 11\
**Last updated:** [April 9, 2010, 7:25am UTC](https://www.ruby-forum.com/t/bug-2965-method-called-on-hidden-t-string-object-notimplementederror/185150 "2010-04-09T07:25:15Z")

</div>

Bug #2965: method \`===’ called on hidden T\_STRING object (NotImplementedError) http://redmine.ruby-lang.org/issues/show/2965 e$B5/I\<\<Te(B: Kenta M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Target version: 1.9.2 …

---

## [Warbler war is not working in Tomcat](https://www.ruby-forum.com/t/warbler-war-is-not-working-in-tomcat/186550)

<div class="topic-metadata">

**Author:** [@khanmurtuza](https://www.ruby-forum.com/u/khanmurtuza)\
**Replies:** 4\
**Last updated:** [April 9, 2010, 3:27am UTC](https://www.ruby-forum.com/t/warbler-war-is-not-working-in-tomcat/186550 "2010-04-09T03:27:37Z")

</div>

I am new to Ruby, I just want to get Redmine application running in Tomcat. After deployment I get the bellow error message from tomcat logs. my inviornment. \*\*\* LOCAL GEMS \*\*\* actionmailer (2.3.5) actionpack (2.3.…

---

## [Closing and reloading compiled extensions](https://www.ruby-forum.com/t/closing-and-reloading-compiled-extensions/186575)

<div class="topic-metadata">

**Author:** [@nimai](https://www.ruby-forum.com/u/nimai)\
**Replies:** 0\
**Last updated:** [April 9, 2010, 3:19am UTC](https://www.ruby-forum.com/t/closing-and-reloading-compiled-extensions/186575 "2010-04-09T03:19:27Z")

</div>

I would like to be able to do the following: Write and compile a C extension containing nothing but singleton methods defined on “self”. Load the extension multiple times, attaching these methods to different objects…

---

## [Ruby and networking crashes app on windows](https://www.ruby-forum.com/t/ruby-and-networking-crashes-app-on-windows/186361)

<div class="topic-metadata">

**Author:** [@mortee](https://www.ruby-forum.com/u/mortee)\
**Replies:** 8\
**Last updated:** [April 9, 2010, 3:15am UTC](https://www.ruby-forum.com/t/ruby-and-networking-crashes-app-on-windows/186361 "2010-04-09T03:15:54Z")

</div>

Hi! It’s been quite long since I last posted here, but now I feel I’m stuck. What I’m trying is to embed a ruby interpreter into a (multi-threaded) 3rd party app (using its scripting interface and its ability to load …

---

## [Batched Searching With a JOIN](https://www.ruby-forum.com/t/batched-searching-with-a-join/186557)

<div class="topic-metadata">

**Author:** [@mattmcswain](https://www.ruby-forum.com/u/mattmcswain)\
**Replies:** 0\
**Last updated:** [April 8, 2010, 9:41pm UTC](https://www.ruby-forum.com/t/batched-searching-with-a-join/186557 "2010-04-08T21:41:04Z")

</div>

I have two tables (IdmLdapAccounts and IdmAdAccounts) each with 20000-30000 records in them. What I’m trying to do is join these tables so that I can find out what records from the LDAP table do NOT exist in the AD t…

---

## [Simple text parsing](https://www.ruby-forum.com/t/simple-text-parsing/186541)

<div class="topic-metadata">

**Author:** [@Remington\_Splettsto](https://www.ruby-forum.com/u/Remington_Splettsto)\
**Replies:** 4\
**Last updated:** [April 8, 2010, 6:30pm UTC](https://www.ruby-forum.com/t/simple-text-parsing/186541 "2010-04-08T18:30:48Z")

</div>

Hello Everyone, What is the best way to get this input test.txt David | Hansson | Chicago Obie | Fernandez | Jacksonville to this output: First Name: David Last Name: Hansson City: Chicago First Name: Obie Last N…

---

## [Any way to use RSA1 for ssh in ruby?](https://www.ruby-forum.com/t/any-way-to-use-rsa1-for-ssh-in-ruby/186544)

<div class="topic-metadata">

**Author:** [@terevos](https://www.ruby-forum.com/u/terevos)\
**Replies:** 2\
**Last updated:** [April 8, 2010, 5:45pm UTC](https://www.ruby-forum.com/t/any-way-to-use-rsa1-for-ssh-in-ruby/186544 "2010-04-08T17:45:51Z")

</div>

I saw a number of places say that Net::SSH does not support rsa1. Is there any other gems or ways I can get the functionality of driving an ssh session using an rsa1 key?

---

## [Gems not loading on mac 10.5.6](https://www.ruby-forum.com/t/gems-not-loading-on-mac-10-5-6/186542)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 1\
**Last updated:** [April 8, 2010, 5:12pm UTC](https://www.ruby-forum.com/t/gems-not-loading-on-mac-10-5-6/186542 "2010-04-08T17:12:20Z")

</div>

Hi, It seems like my gems are not being loaded, i.e. when i require a gem i get an error “no such file to load…” I still get this error even if i do: $LOAD\_PATH \<\< “/Library/Ruby/Gems/1.8/gems” require ‘ruby-debug’ …

---

## [Ruby newbie - Trying to understand variables](https://www.ruby-forum.com/t/ruby-newbie-trying-to-understand-variables/186537)

<div class="topic-metadata">

**Author:** [@kayote](https://www.ruby-forum.com/u/kayote)\
**Replies:** 5\
**Last updated:** [April 8, 2010, 5:11pm UTC](https://www.ruby-forum.com/t/ruby-newbie-trying-to-understand-variables/186537 "2010-04-08T17:11:09Z")

</div>

Hey guys, Im new to Ruby and totally new to the concept of Object Oriented Programming. At the moment, am going through Pragmatic Programmerâ€™s Ruby and even though am finding it to awesome, I have a few questions B…

---

## [Populate lat/lon data from street address with dm-geokit](https://www.ruby-forum.com/t/populate-lat-lon-data-from-street-address-with-dm-geokit/186538)

<div class="topic-metadata">

**Author:** [@hasham2](https://www.ruby-forum.com/u/hasham2)\
**Replies:** 0\
**Last updated:** [April 8, 2010, 4:17pm UTC](https://www.ruby-forum.com/t/populate-lat-lon-data-from-street-address-with-dm-geokit/186538 "2010-04-08T16:17:33Z")

</div>

I using dm-geokit (GitHub - mkingme/dm-geokit: Geokit for DataMapper) in a Sinatra application. I want to populate missing fields (lat/lon) from provided information like If I provide full street address I want to Geoc…

---

## [Copying all Files with New Name](https://www.ruby-forum.com/t/copying-all-files-with-new-name/186362)

<div class="topic-metadata">

**Author:** [@hawksury](https://www.ruby-forum.com/u/hawksury)\
**Replies:** 3\
**Last updated:** [April 8, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/copying-all-files-with-new-name/186362 "2010-04-08T14:16:26Z")

</div>

Hi, This forum has already been very helpful , Many Thanks. Problem: I actually want to copy the contents of all files that is in a particular directory into a new directory.The new files should be of a specific size…

---

## [Ru'id ramblings/ravings](https://www.ruby-forum.com/t/ruid-ramblings-ravings/186532)

<div class="topic-metadata">

**Author:** [@thunk](https://www.ruby-forum.com/u/thunk)\
**Replies:** 0\
**Last updated:** [April 8, 2010, 2:05pm UTC](https://www.ruby-forum.com/t/ruid-ramblings-ravings/186532 "2010-04-08T14:05:30Z")

</div>

I have thought of a simple way to communicate about this to demonstrate the fascinating potential role of Mathimatica: The author has demonstration (full) that has these parts SwarmCaster screen1 screenn…

---

## [Complicated output parameter in WIN32OLE](https://www.ruby-forum.com/t/complicated-output-parameter-in-win32ole/186503)

<div class="topic-metadata">

**Author:** [@mitchellh](https://www.ruby-forum.com/u/mitchellh)\
**Replies:** 3\
**Last updated:** [April 8, 2010, 1:30pm UTC](https://www.ruby-forum.com/t/complicated-output-parameter-in-win32ole/186503 "2010-04-08T13:30:22Z")

</div>

Hello, I have a somewhat “complicated” output parameter I need to get via WIN32OLE and I’m having trouble getting it correct. The method signature is as follows: void GetDescription (out VirtualSystemDescriptionType\[…

---

## [Request: JFFI builds for FreeBSD or other unusual platforms](https://www.ruby-forum.com/t/request-jffi-builds-for-freebsd-or-other-unusual-platforms/186521)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 4\
**Last updated:** [April 8, 2010, 10:27am UTC](https://www.ruby-forum.com/t/request-jffi-builds-for-freebsd-or-other-unusual-platforms/186521 "2010-04-08T10:27:42Z")

</div>

Hey, if anyone runs on FreeBSD or another unusual platform, we would like to expand the platforms for which we can support JFFI (which backs all our posixy functions plus Ruby FFI support). It’s not hard to build, so …

---

## [Apply your understanding of Accounts and Statistics](https://www.ruby-forum.com/t/apply-your-understanding-of-accounts-and-statistics/186525)

<div class="topic-metadata">

**Author:** [@Learn\_Business\_Conc](https://www.ruby-forum.com/u/Learn_Business_Conc)\
**Replies:** 0\
**Last updated:** [April 8, 2010, 10:10am UTC](https://www.ruby-forum.com/t/apply-your-understanding-of-accounts-and-statistics/186525 "2010-04-08T10:10:44Z")

</div>

Do you want to learn Accounts and Statistics concepts in just 30 minutes? Knowledge Horizon, has launched a series of innovative short online courses in Accounting and Statistics. The main objective of developing th…

---

## [HTTPClient::ReceiveTimeoutError: execution expired](https://www.ruby-forum.com/t/httpclient-execution-expired/186520)

<div class="topic-metadata">

**Author:** [@kalpesh131](https://www.ruby-forum.com/u/kalpesh131)\
**Replies:** 0\
**Last updated:** [April 8, 2010, 8:39am UTC](https://www.ruby-forum.com/t/httpclient-execution-expired/186520 "2010-04-08T08:39:04Z")

</div>

I am trying to initiate HTTP communication using ::soap::RPC::Driver but getting below error. Its not consistent. Sometimes it fails, sometimes goes through. ================ #\<HTTPClient::ReceiveTimeoutError: execut…

---

## [Dev.bat not quite setup for Dev10?](https://www.ruby-forum.com/t/dev-bat-not-quite-setup-for-dev10/186513)

<div class="topic-metadata">

**Author:** [@Zac\_Brown](https://www.ruby-forum.com/u/Zac_Brown)\
**Replies:** 4\
**Last updated:** [April 8, 2010, 7:43am UTC](https://www.ruby-forum.com/t/dev-bat-not-quite-setup-for-dev10/186513 "2010-04-08T07:43:47Z")

</div>

Hi, I was looking through the Dev.bat script and it seems like its not quite setup for Dev10. It doesn’t check for sdkvars.bat in the Dev10 directory which is the only instance I have of that particular batch script. …

---

## [Hpricot inner\_html](https://www.ruby-forum.com/t/hpricot-inner-html/186509)

<div class="topic-metadata">

**Author:** [@sharnel](https://www.ruby-forum.com/u/sharnel)\
**Replies:** 1\
**Last updated:** [April 8, 2010, 7:11am UTC](https://www.ruby-forum.com/t/hpricot-inner-html/186509 "2010-04-08T07:11:00Z")

</div>

Have the below xml test test1 testdata 21546 i need to get data in MetaString tag to be displayed doc2 = Hpricot(xml2) doc2.search("/metas").each do |meta| meta.search(’/Meta’).each do |metastring| print("…

---

## [Socket programming...lsof?](https://www.ruby-forum.com/t/socket-programming-lsof/186137)

<div class="topic-metadata">

**Author:** [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Replies:** 9\
**Last updated:** [April 8, 2010, 4:00am UTC](https://www.ruby-forum.com/t/socket-programming-lsof/186137 "2010-04-08T04:00:46Z")

</div>

Hi All, Is there a ruby substitute for lsof’s functionality? Meaning I want to listen on certain ports/sockets such as identd’s port 113 to see if any process is using this port. Is this possible in Ruby w/out using…

---

## [Download through redirecting php-page](https://www.ruby-forum.com/t/download-through-redirecting-php-page/186505)

<div class="topic-metadata">

**Author:** [@opet](https://www.ruby-forum.com/u/opet)\
**Replies:** 0\
**Last updated:** [April 8, 2010, 3:17am UTC](https://www.ruby-forum.com/t/download-through-redirecting-php-page/186505 "2010-04-08T03:17:33Z")

</div>

Hey, I’m rather new to Ruby, and I’ve been googling for a couple of hours without being even close to a solution that works. I have a bunch of links that links to a “download.php/xxxxx/xxxxxxxxxx/” address. When clic…

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

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