# Ruby

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

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

---

## [Id3lib-ruby 0.4.0 (Unicode fixes)](https://www.ruby-forum.com/t/id3lib-ruby-0-4-0-unicode-fixes/96228)

<div class="topic-metadata">

**Author:** [@rschuil](https://www.ruby-forum.com/u/rschuil)\
**Replies:** 0\
**Last updated:** [June 27, 2006, 3:40pm UTC](https://www.ruby-forum.com/t/id3lib-ruby-0-4-0-unicode-fixes/96228 "2006-06-27T15:40:26Z")

</div>

Hi, Release 0.4.0 of id3lib-ruby fixes problems with reading Unicode frames. It is recommended to upgrade to this version. Get it through RubyGems or from: http://id3lib-ruby.rubyforge.org/ == Description id3lib-ru…

---

## [Win32 Extension Issues Wanted!](https://www.ruby-forum.com/t/win32-extension-issues-wanted/96194)

<div class="topic-metadata">

**Author:** [@austin](https://www.ruby-forum.com/u/austin)\
**Replies:** 12\
**Last updated:** [June 27, 2006, 3:12pm UTC](https://www.ruby-forum.com/t/win32-extension-issues-wanted/96194 "2006-06-27T15:12:17Z")

</div>

Everyone. I had a conversation with folks from Microsoft today about trying to move Ruby’s installer to Visual Studio 2005 and WiX (the MSI installer). They’re quite serious about trying to get us shifted to modern co…

---

## [Rubyforge upload](https://www.ruby-forum.com/t/rubyforge-upload/96032)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [June 27, 2006, 3:02pm UTC](https://www.ruby-forum.com/t/rubyforge-upload/96032 "2006-06-27T15:02:26Z")

</div>

RubyForge is currently suffering from a bug. Here’s a link to the ticket: http://rubyforge.org/tracker/index.php?func=detail&aid=4841&group\_id=5&atid=101 In sum, there’s a problem uploading files via scp (and sftp). I…

---

## [SEGV by block.call](https://www.ruby-forum.com/t/segv-by-block-call/96077)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 3\
**Last updated:** [June 27, 2006, 2:40pm UTC](https://www.ruby-forum.com/t/segv-by-block-call/96077 "2006-06-27T14:40:02Z")

</div>

e$B$I$&$be(B boron e$B$G$Ne(B SEGV e$B$,D\>$i$J$$$N$G!“e(B http://www.rubyist.net/~akr/chkbuild/debian-sarge/ruby-trunk/log/20060625T000310.txt.gz e$B$7$g$&$,$J$/e(B drb e$B$r$\_$k$3$H$K$7$F!”$J$s$H$+=L$a$F8+$^$7$?!#e(B …

---

## [Creating graphical application with video](https://www.ruby-forum.com/t/creating-graphical-application-with-video/64483)

<div class="topic-metadata">

**Author:** [@Geert\_F](https://www.ruby-forum.com/u/Geert_F)\
**Replies:** 3\
**Last updated:** [June 27, 2006, 9:30am UTC](https://www.ruby-forum.com/t/creating-graphical-application-with-video/64483 "2006-06-27T09:30:37Z")

</div>

Hello, I have to teach my sister how to create an application that can show pictures and small video files on a windows-based system and get some user input in return. Being able to work fullscreen is optional, but …

---

## [Method to check contents of a window](https://www.ruby-forum.com/t/method-to-check-contents-of-a-window/96202)

<div class="topic-metadata">

**Author:** [@arvindhr](https://www.ruby-forum.com/u/arvindhr)\
**Replies:** 0\
**Last updated:** [June 27, 2006, 7:56am UTC](https://www.ruby-forum.com/t/method-to-check-contents-of-a-window/96202 "2006-06-27T07:56:27Z")

</div>

Hi All, I am using Win32OLE to use sendkeys method in ruby to automate a desktop application. I want to use condition to check the contents of a page. Can anyone please help mew to find a method in ruby to get the con…

---

## [ActiveRecord outside rails](https://www.ruby-forum.com/t/activerecord-outside-rails/96154)

<div class="topic-metadata">

**Author:** [@Darken](https://www.ruby-forum.com/u/Darken)\
**Replies:** 2\
**Last updated:** [June 27, 2006, 6:02am UTC](https://www.ruby-forum.com/t/activerecord-outside-rails/96154 "2006-06-27T06:02:02Z")

</div>

Hi, I am making web application, not based on ROR, but using ActiveRecord library. ActiveRecord automatically manage created\_on and created at columns. I would like to add columns created\_by and changed\_by, to rememb…

---

## [Extenion problems :(](https://www.ruby-forum.com/t/extenion-problems/96151)

<div class="topic-metadata">

**Author:** [@nayr](https://www.ruby-forum.com/u/nayr)\
**Replies:** 2\
**Last updated:** [June 27, 2006, 4:43am UTC](https://www.ruby-forum.com/t/extenion-problems/96151 "2006-06-27T04:43:54Z")

</div>

I started to write a vector extension to ruby, as a way to get familiar with it. #include "ruby.h" #include "Vector.h" #include \<stdlib.h\> static void V3Free(void \*p) { } static VALUE V3Alloc(VALUE klass) { Vector3…

---

## [Diagnosing Ruby seg faults](https://www.ruby-forum.com/t/diagnosing-ruby-seg-faults/96187)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 1\
**Last updated:** [June 27, 2006, 2:39am UTC](https://www.ruby-forum.com/t/diagnosing-ruby-seg-faults/96187 "2006-06-27T02:39:39Z")

</div>

Howdy, I’m using Ruby without any external libraries to read and manipulate about 500MB of hash tables. I have been getting seg faults. Any idea of what kind of debugging flags I can turn on to see why Ruby’s seg f…

---

## [Quick quesiton abt an array of characters](https://www.ruby-forum.com/t/quick-quesiton-abt-an-array-of-characters/96182)

<div class="topic-metadata">

**Author:** [@brez](https://www.ruby-forum.com/u/brez)\
**Replies:** 3\
**Last updated:** [June 27, 2006, 1:58am UTC](https://www.ruby-forum.com/t/quick-quesiton-abt-an-array-of-characters/96182 "2006-06-27T01:58:54Z")

</div>

This seems like it’d be obvious but haven’t had any luck with it… Let’s say I want to build an array of characters in order, i.e. characters = \[‘a’,‘b’,‘c’,‘d’,…\] If they were numbers I could do this: r = \[\] (0…9).e…

---

## [Re: RegEx search/replace over multiple files](https://www.ruby-forum.com/t/re-regex-search-replace-over-multiple-files/96181)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 27, 2006, 1:36am UTC](https://www.ruby-forum.com/t/re-regex-search-replace-over-multiple-files/96181 "2006-06-27T01:36:34Z")

</div>

Dear Wakereh, my attachment somewhat went wrong… what’s attached is a text file saved as ‘a.txt’ to test the code in ‘a.rb’. Sorry about the inconvenience. Best regards, Axel

---

## [Large uid's with Etc.getpwnam](https://www.ruby-forum.com/t/large-uids-with-etc-getpwnam/96124)

<div class="topic-metadata">

**Author:** [@Ryan\_McGovern](https://www.ruby-forum.com/u/Ryan_McGovern)\
**Replies:** 3\
**Last updated:** [June 27, 2006, 1:30am UTC](https://www.ruby-forum.com/t/large-uids-with-etc-getpwnam/96124 "2006-06-27T01:30:11Z")

</div>

I beleve there is a bug in Etc.getpwnam. On our OS X server running 10.4 with ruby 1.8.2 (2004-12-25) \[powerpc-darwin8.0\] we use AD for user management. The two id’s the one that is my real id i got from ls -ln and t…

---

## [Re: RegEx search/replace over multiple files](https://www.ruby-forum.com/t/re-regex-search-replace-over-multiple-files/96180)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 27, 2006, 1:30am UTC](https://www.ruby-forum.com/t/re-regex-search-replace-over-multiple-files/96180 "2006-06-27T01:30:00Z")

</div>

Dear wakereh, here is a script and two sets of files for what you want to do. Best regards, Axel

---

## [Accessing content\_type locally](https://www.ruby-forum.com/t/accessing-content-type-locally/64255)

<div class="topic-metadata">

**Author:** [@Larrytheliquid](https://www.ruby-forum.com/u/Larrytheliquid)\
**Replies:** 2\
**Last updated:** [June 27, 2006, 12:00am UTC](https://www.ruby-forum.com/t/accessing-content-type-locally/64255 "2006-06-27T00:00:28Z")

</div>

Hi, I’m trying to figure out a way to get the same information that you would from the “content\_type” method of the CGI class. The problem is that I want to get this info from a file already in the filesystem locall…

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229061)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [June 26, 2006, 11:48pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229061 "2006-06-26T23:48:03Z")

</div>

Begin forwarded message:

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229090)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [June 26, 2006, 10:24pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229090 "2006-06-26T22:24:53Z")

</div>

Begin forwarded message:

---

## [\[QUIZ\] pp Pascal (#84)](https://www.ruby-forum.com/t/quiz-pp-pascal-84/96152)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 0\
**Last updated:** [June 26, 2006, 9:13pm UTC](https://www.ruby-forum.com/t/quiz-pp-pascal-84/96152 "2006-06-26T21:13:13Z")

</div>

require ‘enumerator’ def pascal(row\_count) result = \[\[1\]\] (row\_count - 1).times do new\_row = \[1\] result.last.each\_cons(2) { |a| new\_row \<\< (a\[0\] + a\[1\]) } result \<\< (new\_row \<\< 1) end result end def pp\_pascal(r…

---

## [RegEx search/replace over multiple files](https://www.ruby-forum.com/t/regex-search-replace-over-multiple-files/96147)

<div class="topic-metadata">

**Author:** [@roguerum](https://www.ruby-forum.com/u/roguerum)\
**Replies:** 0\
**Last updated:** [June 26, 2006, 8:17pm UTC](https://www.ruby-forum.com/t/regex-search-replace-over-multiple-files/96147 "2006-06-26T20:17:32Z")

</div>

Hoping I might be able to get some help on a regular expression search/replace method that I need to write to modify a bunch of files. I’ve got the pseudocode, but need help with syntax. Here’s an example showing the…

---

## [Blocking read after select](https://www.ruby-forum.com/t/blocking-read-after-select/96113)

<div class="topic-metadata">

**Author:** [@gwik](https://www.ruby-forum.com/u/gwik)\
**Replies:** 15\
**Last updated:** [June 26, 2006, 7:23pm UTC](https://www.ruby-forum.com/t/blocking-read-after-select/96113 "2006-06-26T19:23:50Z")

</div>

Hi, I’ve some trouble reading an IO after a select Here is the code. while sock = tunnel.accept Thread.start(sock) do |s| ssl\_sock = get\_ssl\_socket("ssl.gwikzone.org", 443) #set\_non\_blocking ssl\_sock.to\_io #set\_non…

---

## [Question: Counting integers](https://www.ruby-forum.com/t/question-counting-integers/96098)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 5\
**Last updated:** [June 26, 2006, 7:08pm UTC](https://www.ruby-forum.com/t/question-counting-integers/96098 "2006-06-26T19:08:01Z")

</div>

I 've come across this somewhere but right now it’s escapeing me. x = 100 , so I want to find out how many digits are in that number. ?? Tia Stuart

---

## [Re: Ruby and Java equality usage](https://www.ruby-forum.com/t/re-ruby-and-java-equality-usage/96127)

<div class="topic-metadata">

**Author:** [@MolitorS\_Stephen\_L](https://www.ruby-forum.com/u/MolitorS_Stephen_L)\
**Replies:** 1\
**Last updated:** [June 26, 2006, 6:19pm UTC](https://www.ruby-forum.com/t/re-ruby-and-java-equality-usage/96127 "2006-06-26T18:19:45Z")

</div>

On Jun 26, 2006 Matthew S. wrote: Coming from C, I tend to think of Ruby variables as pointers to values, so I tend to think of the difference between eql? and == as akin to the following: Ruby eql? - i.e., are …

---

## [Northern Virginia Ruby user's group meeting 6/28/06](https://www.ruby-forum.com/t/northern-virginia-ruby-users-group-meeting-6-28-06/96130)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 0\
**Last updated:** [June 26, 2006, 6:13pm UTC](https://www.ruby-forum.com/t/northern-virginia-ruby-users-group-meeting-6-28-06/96130 "2006-06-26T18:13:23Z")

</div>

Hi all - For those in the northern Virginia/DC area, there’s a Ruby user’s group meeting on Wednesday. Details are here: http://novarug.org/ See you there! Yours, Tom

---

## [End\_eval](https://www.ruby-forum.com/t/end-eval/96123)

<div class="topic-metadata">

**Author:** [@greenbox](https://www.ruby-forum.com/u/greenbox)\
**Replies:** 2\
**Last updated:** [June 26, 2006, 5:30pm UTC](https://www.ruby-forum.com/t/end-eval/96123 "2006-06-26T17:30:12Z")

</div>

Trying to teach myself some metaprogramming and have been sifting through the rails source. I often see: module\_eval \<\< -end\_eval stuff to add end\_eval I understand what this does, but I’m curious what part of the …

---

## [Re: string =~ string](https://www.ruby-forum.com/t/re-string-string/64462)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 2\
**Last updated:** [June 26, 2006, 5:12pm UTC](https://www.ruby-forum.com/t/re-string-string/64462 "2006-06-26T17:12:43Z")

</div>

fr alex: Logan C. wrote: \> String#=~ used to automagically convert the second arg into a regexp. It \> doesn’t do that anymore. Ah, ok. That makes sense. Why was it changed? it’s a source of confusion: which one is to …

---

## [Which IDE is good?](https://www.ruby-forum.com/t/which-ide-is-good/62998)

<div class="topic-metadata">

**Author:** [@Tanushree\_B](https://www.ruby-forum.com/u/Tanushree_B)\
**Replies:** 13\
**Last updated:** [June 26, 2006, 4:01pm UTC](https://www.ruby-forum.com/t/which-ide-is-good/62998 "2006-06-26T16:01:59Z")

</div>

Hi, For writting ruby which IDE is best and why? When i installed ruby-184-16 on my window machine,it comes with 2 IDE. Freeride and Scite.Which one i should use.

---

## [Ruby and Java equality usage](https://www.ruby-forum.com/t/ruby-and-java-equality-usage/64487)

<div class="topic-metadata">

**Author:** [@Alexandru\_P](https://www.ruby-forum.com/u/Alexandru_P)\
**Replies:** 0\
**Last updated:** [June 26, 2006, 1:41pm UTC](https://www.ruby-forum.com/t/ruby-and-java-equality-usage/64487 "2006-06-26T13:41:10Z")

</div>

Hi! I have posted a quick (reminder like) entry about how equality is handled by Ruby and Java: However, I feel I have missed to explain correctly why eql? and == are both needed (and I’ve been reading through Ruby…

---

## [Some ugly code (again)](https://www.ruby-forum.com/t/some-ugly-code-again/64482)

<div class="topic-metadata">

**Author:** [@arnaud](https://www.ruby-forum.com/u/arnaud)\
**Replies:** 7\
**Last updated:** [June 26, 2006, 1:28pm UTC](https://www.ruby-forum.com/t/some-ugly-code-again/64482 "2006-06-26T13:28:58Z")

</div>

Hello! I have (again) some ruby code to beautifulize :slight\_smile: I have 2 Range {1…x} and {1…y} and a name My goal is to have formatted names like : name + y + x For example: rack11 rack12 rack13 rack21 rack22 r…

---

## [String =~ string](https://www.ruby-forum.com/t/string-string/64361)

<div class="topic-metadata">

**Author:** [@regularfry](https://www.ruby-forum.com/u/regularfry)\
**Replies:** 5\
**Last updated:** [June 26, 2006, 1:07pm UTC](https://www.ruby-forum.com/t/string-string/64361 "2006-06-26T13:07:27Z")

</div>

class String - RDoc Documentation says this: “cat o’ 9 tails” =~ ‘\\d’ #=\> nil I get this: irb(main):001:0\> “cat o’ 9 tails” =~ ‘\\d’ TypeError: type mismatch: String given from (irb):1:in \`=~’ from (irb):1 $ ruby…

---

## [Sudden death of nadoka at 1.8.5](https://www.ruby-forum.com/t/sudden-death-of-nadoka-at-1-8-5/64484)

<div class="topic-metadata">

**Author:** [@URABE\_Shyouhei](https://www.ruby-forum.com/u/URABE_Shyouhei)\
**Replies:** 0\
**Last updated:** [June 26, 2006, 11:30am UTC](https://www.ruby-forum.com/t/sudden-death-of-nadoka-at-1-8-5/64484 "2006-06-26T11:30:35Z")

</div>

å?é?¨ã§ã?ã?? ä»?ã?ã¾ã?ã¾nadokaã?è½ã¡ã?ç?¬é??ã®ã?ã??ã?¯ã??ã?¬ã?¼ã?¹ã?ã²ã?ã?ã?ã®ã§å ±å??ã?ã¾ã?ã?? ç?°å¢?ã¯ruby 1.8.5 (2006-06-25) \[powerpc-darwin8.6.0\]ã§ã?ã??

---

## [Re: Some ugly code (again)](https://www.ruby-forum.com/t/re-some-ugly-code-again/96105)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [June 26, 2006, 11:15am UTC](https://www.ruby-forum.com/t/re-some-ugly-code-again/96105 "2006-06-26T11:15:25Z")

</div>

fr Arnaud: Can I do nicer than: {1…y}.each do |y| {1…x}.each do |x| the\_name = name + y.to\_s + x.to\_s end end your code is already nice. it is readable to me. “nicer” is difficult to measure :slight\_smile: if you do …

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

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