# Ruby

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

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

---

## [Ruport](https://www.ruby-forum.com/t/ruport/112304)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 1\
**Last updated:** [August 17, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/ruport/112304 "2007-08-17T15:49:53Z")

</div>

alright im going about this in the blind so ima throw down my whole task here and see what ideas you guys throw at me. I need to take data from a csv file and throw it onto a graph outputting it in various formats. I …

---

## [How to heredoc without interpolation and backslash interpret](https://www.ruby-forum.com/t/how-to-heredoc-without-interpolation-and-backslash-interpret/112323)

<div class="topic-metadata">

**Author:** [@ashishwave](https://www.ruby-forum.com/u/ashishwave)\
**Replies:** 4\
**Last updated:** [August 17, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/how-to-heredoc-without-interpolation-and-backslash-interpret/112323 "2007-08-17T15:41:52Z")

</div>

Hi, how to do heredoc without interpolation and backslashes interpretation with arbitrary delimiter support (not just a single character) let me explain my point: here #{var1} gets interpolated puts \<\<EOL hello #{va…

---

## [Wanted RoR freelancer](https://www.ruby-forum.com/t/wanted-ror-freelancer/112326)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 17, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/wanted-ror-freelancer/112326 "2007-08-17T15:40:51Z")

</div>

Hi there, We are currently looking for an Ruby on Rails developer that can help us with the development of 1 or 2 ruby webapplications. If you have RoR experience and are interested please contact me at my e-mail for…

---

## [Ldap search not succeding in a single attempt](https://www.ruby-forum.com/t/ldap-search-not-succeding-in-a-single-attempt/112314)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 17, 2007, 3:23pm UTC](https://www.ruby-forum.com/t/ldap-search-not-succeding-in-a-single-attempt/112314 "2007-08-17T15:23:48Z")

</div>

Hi, I am writing a code for user authentication from ldapserver in ruby. For that first i am doing an anonymous search on bluepages ldap\_con = Net::LDAP.new ldap\_con.host = ‘X.Y.com’ ldap\_con.port = 389 treebase =…

---

## ["Shoes"](https://www.ruby-forum.com/t/shoes/112322)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 1\
**Last updated:** [August 17, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/shoes/112322 "2007-08-17T15:16:47Z")

</div>

Hey \_why, I found you a theme song :slight\_smile: Shoes the Full Version - YouTube T.

---

## [How to build offline documentation about FileUtils?](https://www.ruby-forum.com/t/how-to-build-offline-documentation-about-fileutils/112313)

<div class="topic-metadata">

**Author:** [@unbewust](https://www.ruby-forum.com/u/unbewust)\
**Replies:** 2\
**Last updated:** [August 17, 2007, 1:13pm UTC](https://www.ruby-forum.com/t/how-to-build-offline-documentation-about-fileutils/112313 "2007-08-17T13:13:38Z")

</div>

for the time being i’m indirectly connected to the net then, i need a way to build ruby documentation about standard libs as FileUtils. gem\_server is ok only for the installed gems. or may be there is some site where …

---

## [Regex quick ? solved, actually, move along](https://www.ruby-forum.com/t/regex-quick-solved-actually-move-along/112280)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 2\
**Last updated:** [August 17, 2007, 1:10pm UTC](https://www.ruby-forum.com/t/regex-quick-solved-actually-move-along/112280 "2007-08-17T13:10:37Z")

</div>

afile = “2007-08-10.152314-0700PDT.txt” some notes about it, is that the first part before the . is date, and subject to change, the second I thought was an arbitrary id for logs of the same day, but it’s a timestamp,…

---

## [Deleting an object in array, based on object.attribute](https://www.ruby-forum.com/t/deleting-an-object-in-array-based-on-object-attribute/112307)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 3\
**Last updated:** [August 17, 2007, 10:53am UTC](https://www.ruby-forum.com/t/deleting-an-object-in-array-based-on-object-attribute/112307 "2007-08-17T10:53:21Z")

</div>

I have an array anArray = \[ object\_1, object\_2, … object\_n\] I would like to delete an object in it, if object.attribute\_x = anInteger what is the dryest way to do it vs a C-style loop on each item of the array…

---

## [Trouble with tk84.dll](https://www.ruby-forum.com/t/trouble-with-tk84-dll/112197)

<div class="topic-metadata">

**Author:** [@exile](https://www.ruby-forum.com/u/exile)\
**Replies:** 1\
**Last updated:** [August 17, 2007, 10:33am UTC](https://www.ruby-forum.com/t/trouble-with-tk84-dll/112197 "2007-08-17T10:33:52Z")

</div>

Hello everybody. Please help to young beginning ruby programmer from Belarus. I had a trouble when using tk library. But using Google, I found how to solve this problem – I should download ActiveTcl 8.4.15.0 from link …

---

## [Problems compiling Ruby 1.8.6 on AIX](https://www.ruby-forum.com/t/problems-compiling-ruby-1-8-6-on-aix/112255)

<div class="topic-metadata">

**Author:** [@Clif\_S](https://www.ruby-forum.com/u/Clif_S)\
**Replies:** 1\
**Last updated:** [August 17, 2007, 8:07am UTC](https://www.ruby-forum.com/t/problems-compiling-ruby-1-8-6-on-aix/112255 "2007-08-17T08:07:01Z")

</div>

I’m trying to get ruby running on AIX 5.3 as I can’t find any precompiled versions… :wink: I’ve installed the following rpms: openssl-0.9.7l-1 libgcc-4.0.0-1 zlib-1.2.3-3 gcc-c+±4.0.0-1 gcc-4.0.0-1 libstdc+±4.0.0-1 l…

---

## [Threads and puts](https://www.ruby-forum.com/t/threads-and-puts/112211)

<div class="topic-metadata">

**Author:** [@emilsverige](https://www.ruby-forum.com/u/emilsverige)\
**Replies:** 3\
**Last updated:** [August 17, 2007, 6:38am UTC](https://www.ruby-forum.com/t/threads-and-puts/112211 "2007-08-17T06:38:56Z")

</div>

Hi, can anyone explain why this script: Thread.new do 3.times{ puts “hello” } end Gives the folllowing output: “hello” I expect it to print “hello” three times, just as it would if I hadn’t put it inside a threa…

---

## [Newbie Question on the Basics](https://www.ruby-forum.com/t/newbie-question-on-the-basics/112293)

<div class="topic-metadata">

**Author:** [@vik\_r](https://www.ruby-forum.com/u/vik_r)\
**Replies:** 1\
**Last updated:** [August 17, 2007, 5:05am UTC](https://www.ruby-forum.com/t/newbie-question-on-the-basics/112293 "2007-08-17T05:05:51Z")

</div>

(I hope I’m in the right forum. This is the site linked to as the forum for Scriptaculous - http://wiki.script.aculo.us/scriptaculous/). I have a total newbie question. I’m studying a sample application that uses Scri…

---

## [Backticks](https://www.ruby-forum.com/t/backticks/112276)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 6\
**Last updated:** [August 17, 2007, 4:46am UTC](https://www.ruby-forum.com/t/backticks/112276 "2007-08-17T04:46:51Z")

</div>

Wow, seems that you can use double-quoted string style substitution for backtick system calls. say we make a list of some files: ls = Dir.glob(’\*.doc’) some\_file = ls\[2\] on OS X there is the really convenient ‘open’…

---

## [Grep a csv?](https://www.ruby-forum.com/t/grep-a-csv/112185)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 26\
**Last updated:** [August 17, 2007, 3:12am UTC](https://www.ruby-forum.com/t/grep-a-csv/112185 "2007-08-17T03:12:41Z")

</div>

If i had a huge CSV file, and i wanted to pull out say all the lines that contained the word “Blah1” and throw it in a temporary file what would be the best approached. My thoughts were to use require ‘rubygems’ requ…

---

## [Character to hex/binary/etc](https://www.ruby-forum.com/t/character-to-hex-binary-etc/112256)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 11\
**Last updated:** [August 17, 2007, 3:05am UTC](https://www.ruby-forum.com/t/character-to-hex-binary-etc/112256 "2007-08-17T03:05:41Z")

</div>

Hmm… I can turn a number into a character with .chr I can convert my numbers with .to\_s(2) ((where 2 is a radix, or base)) But how do I convert numbers to characters??

---

## [File.move command](https://www.ruby-forum.com/t/file-move-command/112283)

<div class="topic-metadata">

**Author:** [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Replies:** 4\
**Last updated:** [August 17, 2007, 3:04am UTC](https://www.ruby-forum.com/t/file-move-command/112283 "2007-08-17T03:04:41Z")

</div>

I thought if I did: File.move(“mydir”,“mynewdir”) it would do a move…but it seems to make a file out of the directory I’m trying to move. The end result I get is a file named mynewdir. What I want is a new director…

---

## [! semantics (was: Re: Does an Array#apply make any sense at](https://www.ruby-forum.com/t/semantics-was-re-does-an-array-apply-make-any-sense-at/112045)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [August 17, 2007, 2:35am UTC](https://www.ruby-forum.com/t/semantics-was-re-does-an-array-apply-make-any-sense-at/112045 "2007-08-17T02:35:39Z")

</div>

Hi – On Tue, 14 Aug 2007, Simon K. wrote: That is true for Array#delete. delete is always destructive, there is no need to flag that. And push, pop, \<\<, concat, replace, clear… There’s definitely no general guide…

---

## [Mysql gem reporting deadlock](https://www.ruby-forum.com/t/mysql-gem-reporting-deadlock/112288)

<div class="topic-metadata">

**Author:** [@chillexistence](https://www.ruby-forum.com/u/chillexistence)\
**Replies:** 0\
**Last updated:** [August 17, 2007, 2:14am UTC](https://www.ruby-forum.com/t/mysql-gem-reporting-deadlock/112288 "2007-08-17T02:14:49Z")

</div>

I posted this message on the mysql forum: http://forums.mysql.com/read.php?97,167771,167771 and the ruby code in question uses the mysql-2.7 gem directly. Not using active record. When the deadlock occurs it takes a…

---

## [Calls between methods of application.rb](https://www.ruby-forum.com/t/calls-between-methods-of-application-rb/112271)

<div class="topic-metadata">

**Author:** [@Nikos\_Kanellopoulos](https://www.ruby-forum.com/u/Nikos_Kanellopoulos)\
**Replies:** 1\
**Last updated:** [August 17, 2007, 1:57am UTC](https://www.ruby-forum.com/t/calls-between-methods-of-application-rb/112271 "2007-08-17T01:57:44Z")

</div>

In a rails application, I have a set\_lang() and a write\_to\_log() method in app/controllers/application.rb set\_lang() calls write\_to\_log(). Nothing happens. I should expect that write\_to\_log is either called or an ex…

---

## [Ruport GraphReport](https://www.ruby-forum.com/t/ruport-graphreport/112196)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 2\
**Last updated:** [August 17, 2007, 1:54am UTC](https://www.ruby-forum.com/t/ruport-graphreport/112196 "2007-08-17T01:54:53Z")

</div>

this is rather a followup from my other post…in the attempt to try and graph a quick sample data i get richeous errors lol. require ‘rubygems’ require ‘ruport’ require ‘ruport/util’ require ‘tempfile’ class GraphRe…

---

## [Visual Studio 6 (VC6) for Extension Development](https://www.ruby-forum.com/t/visual-studio-6-vc6-for-extension-development/112285)

<div class="topic-metadata">

**Author:** [@dazuma](https://www.ruby-forum.com/u/dazuma)\
**Replies:** 0\
**Last updated:** [August 17, 2007, 1:52am UTC](https://www.ruby-forum.com/t/visual-studio-6-vc6-for-extension-development/112285 "2007-08-17T01:52:36Z")

</div>

Does anyone have vc6 so I can develop an extension for windows ?

---

## [Lazy function definition pattern in Ruby?](https://www.ruby-forum.com/t/lazy-function-definition-pattern-in-ruby/112248)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 10\
**Last updated:** [August 17, 2007, 1:38am UTC](https://www.ruby-forum.com/t/lazy-function-definition-pattern-in-ruby/112248 "2007-08-17T01:38:35Z")

</div>

Hi, Yesterday, I read a blog about lazy function definition pattern in JavaScript at http://peter.michaux.ca/article/3556 . It was interesting and insightful. Write a function foo that returns a Date object that hol…

---

## [Droid / pronom](https://www.ruby-forum.com/t/droid-pronom/112274)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [August 17, 2007, 12:12am UTC](https://www.ruby-forum.com/t/droid-pronom/112274 "2007-08-17T00:12:26Z")

</div>

Anyone know of Ruby bindings or API for DROID / PRONOM ?

---

## [Problem installing dependecy log4r for ruby-net-nntp](https://www.ruby-forum.com/t/problem-installing-dependecy-log4r-for-ruby-net-nntp/112252)

<div class="topic-metadata">

**Author:** [@eric](https://www.ruby-forum.com/u/eric)\
**Replies:** 5\
**Last updated:** [August 17, 2007, 12:06am UTC](https://www.ruby-forum.com/t/problem-installing-dependecy-log4r-for-ruby-net-nntp/112252 "2007-08-17T00:06:26Z")

</div>

To be able to interact with a news server (NNTP) I try to install ruby-net-nntp. (Linux) This is what happenned: ~\]# gem install ruby-net-nntp Bulk updating Gem source index for: http://gems.rubyforge.org Install re…

---

## [Termios](https://www.ruby-forum.com/t/termios/112268)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 1\
**Last updated:** [August 16, 2007, 11:58pm UTC](https://www.ruby-forum.com/t/termios/112268 "2007-08-16T23:58:24Z")

</div>

Anyone using termios? I’ve installed it at c:\\ruby\\lib\\ruby\\1.8\\ruby-termios-0.9.5\\ruby-termios-0.9.5\\lib. However I get the old “No such file to load”. Do I have it in the wrong dir? Jeff \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_…

---

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

<div class="topic-metadata">

**Author:** [@h4z3](https://www.ruby-forum.com/u/h4z3)\
**Replies:** 1\
**Last updated:** [August 16, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/gems-problem/112270 "2007-08-16T23:54:22Z")

</div>

Ok sorry if this is in the wrong place, didn’t really know where to ask… I was running ruby 1.8.5 and install rubygems, requiring gems in a script worked fine and the world was a sweet place… Then i decided to upgrad…

---

## [Why is rake really slow?](https://www.ruby-forum.com/t/why-is-rake-really-slow/112006)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 15\
**Last updated:** [August 16, 2007, 11:07pm UTC](https://www.ruby-forum.com/t/why-is-rake-really-slow/112006 "2007-08-16T23:07:18Z")

</div>

Is rake supposed to be really slow? I’m using InstantRails and running rake in a project with one unit test and two functional tests and it takes 33 seconds total. Is that normal? It seems really slow to me. When I t…

---

## [Ruby East Registration is Open](https://www.ruby-forum.com/t/ruby-east-registration-is-open/112267)

<div class="topic-metadata">

**Author:** [@Andrea\_oSkSW](https://www.ruby-forum.com/u/Andrea_oSkSW)\
**Replies:** 0\
**Last updated:** [August 16, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/ruby-east-registration-is-open/112267 "2007-08-16T22:53:16Z")

</div>

Ruby East registration is now open! Register at http://ruby-east.com Chariot Solutions http://chariotsolutions.com/ is proud to be able to bring some of the top speakers in the Ruby and Rails communities to our region…

---

## [LoadError - Mechanize, Hpricot (gems)](https://www.ruby-forum.com/t/loaderror-mechanize-hpricot-gems/112085)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [August 16, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/loaderror-mechanize-hpricot-gems/112085 "2007-08-16T22:50:16Z")

</div>

Hello, I’ve been trying to install and use Mechanize ( http://rubyforge.org/projects/mechanize/ ), and cannot solve the errors that occur. Actually, I’m not sure the error is really linked to this gem, because I rem…

---

## [Re: character to hex/binary/etc](https://www.ruby-forum.com/t/re-character-to-hex-binary-etc/112265)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [August 16, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/re-character-to-hex-binary-etc/112265 "2007-08-16T22:35:10Z")

</div>

Oops, no, that’s not what I need. I can do that. I need to take “I” or “J” or whatever character and convert to hex! or binary irb(main):001:0\> “I”\[0\] =\> 73 irb(main):002:0\> “I”\[0\].to\_s(16) =\> “49”

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

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