# Ruby

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

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

---

## [Retreiving column values from a variable column name](https://www.ruby-forum.com/t/retreiving-column-values-from-a-variable-column-name/61676)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 0\
**Last updated:** [May 26, 2006, 1:26am UTC](https://www.ruby-forum.com/t/retreiving-column-values-from-a-variable-column-name/61676 "2006-05-26T01:26:03Z")

</div>

I need to retrieve a value from a column which I reference from a string, I cannot hardcode in the column name. I would like something like this text = shape.colour however I am going to loop through a number of colu…

---

## [Multiple Arrays](https://www.ruby-forum.com/t/multiple-arrays/61550)

<div class="topic-metadata">

**Author:** [@kuyarico](https://www.ruby-forum.com/u/kuyarico)\
**Replies:** 6\
**Last updated:** [May 26, 2006, 1:07am UTC](https://www.ruby-forum.com/t/multiple-arrays/61550 "2006-05-26T01:07:19Z")

</div>

As you can probably tell, I’m a noob. I’m working with a program called Watir written in ruby. I’m trying to use two txt documents to populate two different text fields. I’m able to create the arrays, but having troub…

---

## [Webrick startup error](https://www.ruby-forum.com/t/webrick-startup-error/61568)

<div class="topic-metadata">

**Author:** [@polypus](https://www.ruby-forum.com/u/polypus)\
**Replies:** 5\
**Last updated:** [May 25, 2006, 9:44pm UTC](https://www.ruby-forum.com/t/webrick-startup-error/61568 "2006-05-25T21:44:33Z")

</div>

on: $ sudo webrick\_test.rb where webrick\_test.rb reads: #!/usr/local/bin/ruby require ‘webrick’ PORT = 8809 DOCUMENT\_ROOT = Dir.pwd s = WEBrick::HTTPServer.new :port =\> PORT, :DocumentRoot =\> DOCUMENT\_ROOT trap(…

---

## [Re: (libruby) reading a file line by line](https://www.ruby-forum.com/t/re-libruby-reading-a-file-line-by-line/95256)

<div class="topic-metadata">

**Author:** [@zbrod](https://www.ruby-forum.com/u/zbrod)\
**Replies:** 1\
**Last updated:** [May 25, 2006, 9:41pm UTC](https://www.ruby-forum.com/t/re-libruby-reading-a-file-line-by-line/95256 "2006-05-25T21:41:11Z")

</div>

Prehaps something like this f = File.open(“inventory”) f.each do |hostName| hostName.chomp! end

---

## [Ruby tk grid question](https://www.ruby-forum.com/t/ruby-tk-grid-question/61574)

<div class="topic-metadata">

**Author:** [@jdruse](https://www.ruby-forum.com/u/jdruse)\
**Replies:** 4\
**Last updated:** [May 25, 2006, 9:11pm UTC](https://www.ruby-forum.com/t/ruby-tk-grid-question/61574 "2006-05-25T21:11:22Z")

</div>

I have a frame defined within root and a TkLabel widget inside the frame. I used pack to set the location of the frame within root and am trying to use grid to set the location of the label in the frame. When I set …

---

## [Re: Two problems using foxGUIb](https://www.ruby-forum.com/t/re-two-problems-using-foxguib/95246)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 25, 2006, 8:25pm UTC](https://www.ruby-forum.com/t/re-two-problems-using-foxguib/95246 "2006-05-25T20:25:16Z")

</div>

Dear Henon, Dear Uncutstone, thank you for your posts. I am now working in Linux, for a change :). I encountered the problem that I couldn’t write into the SELCOMMAND field in foxGUIb-0.6.1 version. So, I deleted thi…

---

## [One click installer, fxruby](https://www.ruby-forum.com/t/one-click-installer-fxruby/61615)

<div class="topic-metadata">

**Author:** [@tony\_summerfelt](https://www.ruby-forum.com/u/tony_summerfelt)\
**Replies:** 6\
**Last updated:** [May 25, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/one-click-installer-fxruby/61615 "2006-05-25T20:22:10Z")

</div>

i was using an older version of the one click installer, but i could never get any fxruby programs to run. so i updated with the latest rc version fxruby programs STILL don’t run. now i’m wondering if there’s somethi…

---

## [How I can get name of file?](https://www.ruby-forum.com/t/how-i-can-get-name-of-file/61640)

<div class="topic-metadata">

**Author:** [@ilyas](https://www.ruby-forum.com/u/ilyas)\
**Replies:** 1\
**Last updated:** [May 25, 2006, 8:15pm UTC](https://www.ruby-forum.com/t/how-i-can-get-name-of-file/61640 "2006-05-25T20:15:54Z")

</div>

I have this is string: /adfsd/dfsdf/funny-videos—gay-fight.mpeg and I have this code: @original\_file\_path = file\_path name = @original\_file\_path.match(//\[a-zA-Z0-9\_-\]+./) if name puts name.values\_at(0) end Result…

---

## [Editor can be extended by Ruby](https://www.ruby-forum.com/t/editor-can-be-extended-by-ruby/61621)

<div class="topic-metadata">

**Author:** [@Wang\_Austin-W22255](https://www.ruby-forum.com/u/Wang_Austin-W22255)\
**Replies:** 5\
**Last updated:** [May 25, 2006, 8:06pm UTC](https://www.ruby-forum.com/t/editor-can-be-extended-by-ruby/61621 "2006-05-25T20:06:17Z")

</div>

Hi experts, Does anybody know which editor(s) can be extended by Ruby? I’d like to do: Adding menu/buttons binded to Ruby methods Operate the framebuffer using ruby code… etc. Thanks Austin

---

## [File.stat.mode not same mode as File.stat.inspect?](https://www.ruby-forum.com/t/file-stat-mode-not-same-mode-as-file-stat-inspect/61632)

<div class="topic-metadata">

**Author:** [@zbrod](https://www.ruby-forum.com/u/zbrod)\
**Replies:** 2\
**Last updated:** [May 25, 2006, 7:50pm UTC](https://www.ruby-forum.com/t/file-stat-mode-not-same-mode-as-file-stat-inspect/61632 "2006-05-25T19:50:38Z")

</div>

I am working on a little ruby script to check file stats and I am getting a weird mask when I query the mode directly. I am also looking at stat.2 (man 2 stat) and the bits just are not adding up to give me 8. The pro…

---

## [Language performance could be irrelevant](https://www.ruby-forum.com/t/language-performance-could-be-irrelevant/61637)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 0\
**Last updated:** [May 25, 2006, 7:47pm UTC](https://www.ruby-forum.com/t/language-performance-could-be-irrelevant/61637 "2006-05-25T19:47:13Z")

</div>

Glenn Vanderburg, in the Prag Prog’s “No Fluff Just Stuff: 2006 Anthology”: “For most systems, you get much more performance benefit from good architecture than you do from fast code. That’s a big part of the reason …

---

## [(libruby) reading a file line by line](https://www.ruby-forum.com/t/libruby-reading-a-file-line-by-line/61631)

<div class="topic-metadata">

**Author:** [@splashlin](https://www.ruby-forum.com/u/splashlin)\
**Replies:** 0\
**Last updated:** [May 25, 2006, 7:34pm UTC](https://www.ruby-forum.com/t/libruby-reading-a-file-line-by-line/61631 "2006-05-25T19:34:32Z")

</div>

Hi All, Basically what I would like to do is read a file in line by line chomping the line on the way. It’s easy enough in c but I would like to do it using the functionality from libruby. I’ve go the file object u…

---

## [Stripped down ruby](https://www.ruby-forum.com/t/stripped-down-ruby/61623)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 3\
**Last updated:** [May 25, 2006, 7:09pm UTC](https://www.ruby-forum.com/t/stripped-down-ruby/61623 "2006-05-25T19:09:55Z")

</div>

I want to creat a stripped down ruby, ruby at at’s most basic level and create my own libraries for it to link; additionaly I want to have absolute minimum dependency’s on other libraries. The idea being I wish to emb…

---

## [Re: Editor can be extended by Ruby](https://www.ruby-forum.com/t/re-editor-can-be-extended-by-ruby/95255)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 25, 2006, 6:48pm UTC](https://www.ruby-forum.com/t/re-editor-can-be-extended-by-ruby/95255 "2006-05-25T18:48:15Z")

</div>

There’s a GUI Toolkit, FOX \_http://www.fox-toolkit.org/download.html\_ (Download) , which for which Ruby has bindings (FXRuby). As an example, they give an editor Adie. You can download standalone versions and the so…

---

## [Re: Editor can be extended by Ruby](https://www.ruby-forum.com/t/re-editor-can-be-extended-by-ruby/95253)

<div class="topic-metadata">

**Author:** [@Wang\_Austin-W22255](https://www.ruby-forum.com/u/Wang_Austin-W22255)\
**Replies:** 0\
**Last updated:** [May 25, 2006, 6:35pm UTC](https://www.ruby-forum.com/t/re-editor-can-be-extended-by-ruby/95253 "2006-05-25T18:35:15Z")

</div>

Does anybody know which editor(s) can be extended by Ruby? vim. Thanks for the advice, but I think the UI of vim is a little bit “hard to learn and easy to forget” for me.

---

## [Re: Editor can be extended by Ruby](https://www.ruby-forum.com/t/re-editor-can-be-extended-by-ruby/95252)

<div class="topic-metadata">

**Author:** [@Wang\_Austin-W22255](https://www.ruby-forum.com/u/Wang_Austin-W22255)\
**Replies:** 0\
**Last updated:** [May 25, 2006, 6:31pm UTC](https://www.ruby-forum.com/t/re-editor-can-be-extended-by-ruby/95252 "2006-05-25T18:31:50Z")

</div>

Does anybody know which editor(s) can be extended by Ruby? I’d like to do: Adding menu/buttons binded to Ruby methods Operate the framebuffer using ruby code… etc. I recommend TextMate, if you are on Mac OS X: I…

---

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

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 0\
**Last updated:** [May 25, 2006, 5:35pm UTC](https://www.ruby-forum.com/t/no-subject/95247 "2006-05-25T17:35:23Z")

</div>

\-------- Forwarded Message -------- From: Charlie B. removed\_email\_address@domain.invalid Subject: Re: How does one transform UTF-8 encoded characters to ASCII Date: Thu, 25 May 2006 11:34:30 -0400 Thanks, I didn’t r…

---

## [How does one transform UTF-8 encoded characters to ASCII?](https://www.ruby-forum.com/t/how-does-one-transform-utf-8-encoded-characters-to-ascii/95225)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 13\
**Last updated:** [May 25, 2006, 5:20pm UTC](https://www.ruby-forum.com/t/how-does-one-transform-utf-8-encoded-characters-to-ascii/95225 "2006-05-25T17:20:57Z")

</div>

I’m a little embarrassed about asking this, but here goes… I am using HTMLEntities.decode\_entities on a string of HTML. I don’t understand how to make my text, which now contains UTF-8 characters, display correctly in…

---

## [Two problems using foxGUIb](https://www.ruby-forum.com/t/two-problems-using-foxguib/61604)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [May 25, 2006, 5:00pm UTC](https://www.ruby-forum.com/t/two-problems-using-foxguib/61604 "2006-05-25T17:00:21Z")

</div>

Dear all, I am trying to use foxGUIb for some graphical application. To do this, I first want to write the cm-to-inches conversion program that is given in the user’s guide. So I have installed Fox,FXRuby, libGUIb an…

---

## [What's the main inside the block](https://www.ruby-forum.com/t/whats-the-main-inside-the-block/61598)

<div class="topic-metadata">

**Author:** [@taq](https://www.ruby-forum.com/u/taq)\
**Replies:** 3\
**Last updated:** [May 25, 2006, 3:32pm UTC](https://www.ruby-forum.com/t/whats-the-main-inside-the-block/61598 "2006-05-25T15:32:47Z")

</div>

Hi there. I’m wondering what “main” inside a block means. For example: %w(one).each { puts self } =\> main What is exactly the “main” thing there? Btw, to make the block recognize the object instance context where it…

---

## [Problem with ruby-cvs library](https://www.ruby-forum.com/t/problem-with-ruby-cvs-library/61587)

<div class="topic-metadata">

**Author:** [@iphan](https://www.ruby-forum.com/u/iphan)\
**Replies:** 0\
**Last updated:** [May 25, 2006, 11:30am UTC](https://www.ruby-forum.com/t/problem-with-ruby-cvs-library/61587 "2006-05-25T11:30:11Z")

</div>

Hello connecting to my cvs repository via the ruby-cvs library doesn’t seem to be working. I can connect to the example remote cvs server c = CVS.create(’:pserver:removed\_email\_address@domain.invalid:/cvs/root’) c.di…

---

## [Greatest float smaller than 1.0?](https://www.ruby-forum.com/t/greatest-float-smaller-than-1-0/60847)

<div class="topic-metadata">

**Author:** [@polypus](https://www.ruby-forum.com/u/polypus)\
**Replies:** 19\
**Last updated:** [May 25, 2006, 11:05am UTC](https://www.ruby-forum.com/t/greatest-float-smaller-than-1-0/60847 "2006-05-25T11:05:20Z")

</div>

how do i get the greatest float smaller than 1.0? thanks

---

## [Ruby Garden: Wiki down](https://www.ruby-forum.com/t/ruby-garden-wiki-down/61575)

<div class="topic-metadata">

**Author:** [@xmg-eric](https://www.ruby-forum.com/u/xmg-eric)\
**Replies:** 6\
**Last updated:** [May 25, 2006, 10:51am UTC](https://www.ruby-forum.com/t/ruby-garden-wiki-down/61575 "2006-05-25T10:51:49Z")

</div>

I added an installation page to the Ruby Garden’s wiki pages yesterday. Today, I can’t seem to access the site. From the main page, it’s not clear who to contact to find out if the page still exists. (Anyone know?)

---

## [Ruby-VPI 0.6](https://www.ruby-forum.com/t/ruby-vpi-0-6/95240)

<div class="topic-metadata">

**Author:** [@Suraj\_NSKurapati](https://www.ruby-forum.com/u/Suraj_NSKurapati)\
**Replies:** 0\
**Last updated:** [May 25, 2006, 10:14am UTC](https://www.ruby-forum.com/t/ruby-vpi-0-6/95240 "2006-05-25T10:14:05Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ruby-VPI is a Ruby interface to Verilog VPI. It lets you create complex Verilog test benches easily and wholly in Ruby. http://ruby-vpi.rubyforge.org = Version 0.6 (2006…

---

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

<div class="topic-metadata">

**Author:** [@Damir\_Azhar](https://www.ruby-forum.com/u/Damir_Azhar)\
**Replies:** 2\
**Last updated:** [May 25, 2006, 9:43am UTC](https://www.ruby-forum.com/t/no-subject/95231 "2006-05-25T09:43:44Z")

</div>

Hi, I have been using the Ruby PCAP module to implement a simple network traffic flow meter based on the RTFM architecture. When I run my meter with the Ruby profiler option, I have discovered that the biggest singl…

---

## [Summer of Code Advice For Ruby Central Applications](https://www.ruby-forum.com/t/summer-of-code-advice-for-ruby-central-applications/61573)

<div class="topic-metadata">

**Author:** [@lazukars](https://www.ruby-forum.com/u/lazukars)\
**Replies:** 2\
**Last updated:** [May 25, 2006, 5:59am UTC](https://www.ruby-forum.com/t/summer-of-code-advice-for-ruby-central-applications/61573 "2006-05-25T05:59:37Z")

</div>

If you submitted an application to Ruby Central in the Google Summer of Code and it got rejected, you may be wondering what you can do. For one thing, don’t get too upset: it isn’t personal. We received 84 eligible ap…

---

## [Ruby / DL problem](https://www.ruby-forum.com/t/ruby-dl-problem/61518)

<div class="topic-metadata">

**Author:** [@Bama\_Test](https://www.ruby-forum.com/u/Bama_Test)\
**Replies:** 1\
**Last updated:** [May 25, 2006, 5:03am UTC](https://www.ruby-forum.com/t/ruby-dl-problem/61518 "2006-05-25T05:03:28Z")

</div>

I’ve got a DLL that I’m working on interfacing to - i’ve got everything working except for this one function. int CreateDataFile ( const char\* csUserID, const char\* chOptionalTemplateFilePath, const char\* csPrefix, …

---

## [RegExp Problem](https://www.ruby-forum.com/t/regexp-problem/95204)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 17\
**Last updated:** [May 25, 2006, 4:01am UTC](https://www.ruby-forum.com/t/regexp-problem/95204 "2006-05-25T04:01:05Z")

</div>

Hi, I’m having a little trouble getting Ruby to match quotes correctly. Suppose I wanted to extract any quoted string followed by an exclamation point. I’d like my regular expression match either single or double quo…

---

## [Ruby Client to Microsoft .Net Webservice](https://www.ruby-forum.com/t/ruby-client-to-microsoft-net-webservice/61570)

<div class="topic-metadata">

**Author:** [@Allan](https://www.ruby-forum.com/u/Allan)\
**Replies:** 0\
**Last updated:** [May 25, 2006, 3:36am UTC](https://www.ruby-forum.com/t/ruby-client-to-microsoft-net-webservice/61570 "2006-05-25T03:36:06Z")

</div>

\---------- Forwarded message ---------- From: Allan removed\_email\_address@domain.invalid Date: May 25, 2006 9:31 AM Subject: Ruby Client to Microsoft .Net Webservice To: removed\_email\_address@domain.invalid Hi all, …

---

## [Win32-eventlog 0.4.0](https://www.ruby-forum.com/t/win32-eventlog-0-4-0/61567)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [May 25, 2006, 3:05am UTC](https://www.ruby-forum.com/t/win32-eventlog-0-4-0/61567 "2006-05-25T03:05:59Z")

</div>

Hi all, The Win32 Utils Team is pleased to announce the release of version 0.4.0 of the win32-eventlog package! What’s new? It’s now pure Ruby! It has a gem! Compiler issues, be gone! In addition, there was a major b…

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

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