# Ruby

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

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

---

## [RDF Support in Ruby](https://www.ruby-forum.com/t/rdf-support-in-ruby/119512)

<div class="topic-metadata">

**Author:** [@azgar](https://www.ruby-forum.com/u/azgar)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/rdf-support-in-ruby/119512 "2007-11-07T17:11:53Z")

</div>

Hi all, I’ve been doing some thinking and writing on the subject of RDF support in Ruby. I did a quick overview of RDF support in Ruby (http:// The State of RDF Support in Ruby (2007) - paul.stadig.name) and then a co…

---

## [Lightweight atom server](https://www.ruby-forum.com/t/lightweight-atom-server/119480)

<div class="topic-metadata">

**Author:** [@song](https://www.ruby-forum.com/u/song)\
**Replies:** 5\
**Last updated:** [November 7, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/lightweight-atom-server/119480 "2007-11-07T16:11:29Z")

</div>

Hi! I’m searching for a lightweight atom server written in Ruby, which can be used for development and is easy to install (if possible, without database). I’ve read one statement of the coder of the gem atom-tools, t…

---

## [Send file from CGI](https://www.ruby-forum.com/t/send-file-from-cgi/119185)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [November 7, 2007, 1:35pm UTC](https://www.ruby-forum.com/t/send-file-from-cgi/119185 "2007-11-07T13:35:02Z")

</div>

Hi, in a webapplication, a user can select from some options. Depending on the selection some files are packed together in a zip file and get send to the user. So far it works perfect, but the zip file is not recogniz…

---

## [Newbie question - how to write out specific bytes to an IO stream?](https://www.ruby-forum.com/t/newbie-question-how-to-write-out-specific-bytes-to-an-io-stream/119445)

<div class="topic-metadata">

**Author:** [@Collin\_VanDyck](https://www.ruby-forum.com/u/Collin_VanDyck)\
**Replies:** 6\
**Last updated:** [November 7, 2007, 11:30am UTC](https://www.ruby-forum.com/t/newbie-question-how-to-write-out-specific-bytes-to-an-io-stream/119445 "2007-11-07T11:30:18Z")

</div>

Hello – I’m trying to write out specific byte sequences over the wire / to a file / etc. Let’s say for example that I wanted to write out 99 111 108 108 105 110 as a simple, six byte sequence to a file. In Java, I …

---

## [Read out processor load](https://www.ruby-forum.com/t/read-out-processor-load/119380)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 4\
**Last updated:** [November 7, 2007, 11:08am UTC](https://www.ruby-forum.com/t/read-out-processor-load/119380 "2007-11-07T11:08:01Z")

</div>

How can I read out the processor load with a rubyapp? thanks for help…

---

## [Assigne command ouput to a variable](https://www.ruby-forum.com/t/assigne-command-ouput-to-a-variable/119478)

<div class="topic-metadata">

**Author:** [@Dragoescu\_Daniel](https://www.ruby-forum.com/u/Dragoescu_Daniel)\
**Replies:** 4\
**Last updated:** [November 7, 2007, 10:52am UTC](https://www.ruby-forum.com/t/assigne-command-ouput-to-a-variable/119478 "2007-11-07T10:52:15Z")

</div>

Hello guys! I am a newbie in ruby and i have a question. I run a system command and i want that the ouput of that command to be assigne to a variable, something like this: var1 = system(“du -s /mnt/hdd/ | cut -f1”)…

---

## [Sort and a multiline block](https://www.ruby-forum.com/t/sort-and-a-multiline-block/119424)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 9\
**Last updated:** [November 7, 2007, 10:43am UTC](https://www.ruby-forum.com/t/sort-and-a-multiline-block/119424 "2007-11-07T10:43:19Z")

</div>

Using sort with a multiline block doesn’t seem to work as expected. Single line blocks work fine: \[3, 7, 4, 1, 8, 2, 8, 9\].sort { |a, b| a \<=\> b } #returns \[1, 2, 3, 4, 7, 8, 8, 9\] \[3, 7, 4, 1, 8, 2, 8, 9\].sort { |a,…

---

## [GUI Combobox](https://www.ruby-forum.com/t/gui-combobox/119363)

<div class="topic-metadata">

**Author:** [@lote](https://www.ruby-forum.com/u/lote)\
**Replies:** 2\
**Last updated:** [November 7, 2007, 10:35am UTC](https://www.ruby-forum.com/t/gui-combobox/119363 "2007-11-07T10:35:53Z")

</div>

Hi everbody, i am newest at the Ruby/tk and i want to do something…i want to use ComboBox but default tk does not contain combobox control. How can i use it ? and What is the difference between TCL and TK ?? thanks…

---

## [Beta testers for faster win32 distro wanted](https://www.ruby-forum.com/t/beta-testers-for-faster-win32-distro-wanted/119387)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 3\
**Last updated:** [November 7, 2007, 9:18am UTC](https://www.ruby-forum.com/t/beta-testers-for-faster-win32-distro-wanted/119387 "2007-11-07T09:18:42Z")

</div>

After using the latest mingw for windows compilation, it seems reasonably stable, and yes faster. If anybody would like to try it out instructions are at http://www.doachristianturndaily.info/ruby\_distro Cheers! -Ro…

---

## [Write webpages in Ruby without Rails? - Newb Question](https://www.ruby-forum.com/t/write-webpages-in-ruby-without-rails-newb-question/119449)

<div class="topic-metadata">

**Author:** [@rgossen](https://www.ruby-forum.com/u/rgossen)\
**Replies:** 7\
**Last updated:** [November 7, 2007, 9:05am UTC](https://www.ruby-forum.com/t/write-webpages-in-ruby-without-rails-newb-question/119449 "2007-11-07T09:05:47Z")

</div>

I am a programming newb and I just bought the book “Software Engineering for Internet Applications,” and I need a server to go through the labs. Unfortunately, the extent of my server experience is using script/serve…

---

## [Create image form selection database](https://www.ruby-forum.com/t/create-image-form-selection-database/119180)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 1\
**Last updated:** [November 7, 2007, 8:45am UTC](https://www.ruby-forum.com/t/create-image-form-selection-database/119180 "2007-11-07T08:45:52Z")

</div>

Hi, I have a table degree wich is related through a join table with the user table. The degree has 6 options Level 1 Level 2 Level 3 ect. Now i want to show the levels in a imagebar…so for example if the user ha…

---

## [Change ip and mac](https://www.ruby-forum.com/t/change-ip-and-mac/119421)

<div class="topic-metadata">

**Author:** [@mihai](https://www.ruby-forum.com/u/mihai)\
**Replies:** 6\
**Last updated:** [November 7, 2007, 8:29am UTC](https://www.ruby-forum.com/t/change-ip-and-mac/119421 "2007-11-07T08:29:29Z")

</div>

how can i change my ip and mac address? tnx

---

## [New instance (uninitialized constant)](https://www.ruby-forum.com/t/new-instance-uninitialized-constant/119109)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 3\
**Last updated:** [November 7, 2007, 6:05am UTC](https://www.ruby-forum.com/t/new-instance-uninitialized-constant/119109 "2007-11-07T06:05:39Z")

</div>

I need to indicate where to find the Song class. With a module? I’m looking for the simplest technique (hint pls): C:\\Documents and Settings\\nsaunders\\Desktop\> C:\\Documents and Settings\\nsaunders\\Desktop\> C:\\Docume…

---

## [Array iterate grammar rules](https://www.ruby-forum.com/t/array-iterate-grammar-rules/119459)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 1\
**Last updated:** [November 7, 2007, 6:03am UTC](https://www.ruby-forum.com/t/array-iterate-grammar-rules/119459 "2007-11-07T06:03:54Z")

</div>

If i had an array containing a lot of words, and i wanted to add grammar rules to those words, ie make words plural how would i duplicate the original element and then modify that element with the grammar rule, and id…

---

## [IronRuby example codes for image processing](https://www.ruby-forum.com/t/ironruby-example-codes-for-image-processing/119457)

<div class="topic-metadata">

**Author:** [@Sanghyeon\_S](https://www.ruby-forum.com/u/Sanghyeon_S)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 3:31am UTC](https://www.ruby-forum.com/t/ironruby-example-codes-for-image-processing/119457 "2007-11-07T03:31:20Z")

</div>

I found these interesting example codes in IronRuby for image processing. http://d.hatena.ne.jp/arikui/20070918/1190050541 http://d.hatena.ne.jp/arikui/20071107/1194367856 Unfortunately, codes won’t run out of the bo…

---

## [November Phoenix Ruby User Group Meeting (PLEASE NOTE NEW LOCATION!)](https://www.ruby-forum.com/t/november-phoenix-ruby-user-group-meeting-please-note-new-location/119454)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 2:24am UTC](https://www.ruby-forum.com/t/november-phoenix-ruby-user-group-meeting-please-note-new-location/119454 "2007-11-07T02:24:43Z")

</div>

November Phoenix Ruby U. Group Meeting Date: Monday, November 12, 2007 Time: 7:00pm Place: Rising Tide Software 4643 E. Thomas Rd, Suite #3 Phoenix, AZ 85018 \*\*\*\*\*\*\*\* IMPORTANT \*\*\*\*\*\*\*\*\*\*\*\* Note the new meeting …

---

## [Test - please ignore](https://www.ruby-forum.com/t/test-please-ignore/119448)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 2:11am UTC](https://www.ruby-forum.com/t/test-please-ignore/119448 "2007-11-07T02:11:51Z")

</div>

Testing the list server.

---

## [RubyConf videos?](https://www.ruby-forum.com/t/rubyconf-videos/119385)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 7\
**Last updated:** [November 7, 2007, 1:53am UTC](https://www.ruby-forum.com/t/rubyconf-videos/119385 "2007-11-07T01:53:42Z")

</div>

Guys, I had a truly wonderful time at RubyConf. It was a very enlightening three days, and worth far more than the paltry $250 it put me out. My only regret is that I could not attend every session. I know the Confre…

---

## [Superclass of a module](https://www.ruby-forum.com/t/superclass-of-a-module/119310)

<div class="topic-metadata">

**Author:** [@toddlc](https://www.ruby-forum.com/u/toddlc)\
**Replies:** 4\
**Last updated:** [November 7, 2007, 1:49am UTC](https://www.ruby-forum.com/t/superclass-of-a-module/119310 "2007-11-07T01:49:20Z")

</div>

In Ruby 1.8, a Module does not have a superclass according to the superclass and ancestors methods. E.g., module Foo end Foo.ancestors # =\> \[Foo\] Foo.superclass # =\> NoMethodError Yet, module Foo self.append\_fea…

---

## [Ruby-serialport dropped bytes](https://www.ruby-forum.com/t/ruby-serialport-dropped-bytes/119437)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 12:34am UTC](https://www.ruby-forum.com/t/ruby-serialport-dropped-bytes/119437 "2007-11-07T00:34:14Z")

</div>

I am using ruby-serial port version 0.6 with cygwin on Windows XP. The version of ruby is 1.8.5. With the test script miniterm.rb supplied with ruby serial port the first 10 or so bytes are lost when they are receive…

---

## [Long running SQL query via ActiveRecord blocking the entire Ruby process?](https://www.ruby-forum.com/t/long-running-sql-query-via-activerecord-blocking-the-entire-ruby-process/119419)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [November 7, 2007, 12:30am UTC](https://www.ruby-forum.com/t/long-running-sql-query-via-activerecord-blocking-the-entire-ruby-process/119419 "2007-11-07T00:30:09Z")

</div>

To my surprise, a long running SQL query via ActiveRecord blocks an entire Ruby process (all the other threads are blocked while the thread that runs the SQL query is waiting for the result set) Has anyone else found …

---

## [Jaguar TckTkLib](https://www.ruby-forum.com/t/jaguar-tcktklib/119428)

<div class="topic-metadata">

**Author:** [@Neal\_Reid](https://www.ruby-forum.com/u/Neal_Reid)\
**Replies:** 0\
**Last updated:** [November 6, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/jaguar-tcktklib/119428 "2007-11-06T23:05:43Z")

</div>

For reasons beyond the scope of this post, I desire to do some Ruby GUI work on a Mac OS 10.2.8. No problem with Ruby (1.8.2), Rails, or TclTk (8.4.6). But I cannot find a compiled version of tcltklib - needed for "re…

---

## [Ruvi, Vim, Ruby](https://www.ruby-forum.com/t/ruvi-vim-ruby/119169)

<div class="topic-metadata">

**Author:** [@redroofgreentree](https://www.ruby-forum.com/u/redroofgreentree)\
**Replies:** 3\
**Last updated:** [November 6, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/ruvi-vim-ruby/119169 "2007-11-06T23:03:58Z")

</div>

Hi! Is Ruvi (http://ruvi.rubyforge.org/) still active? If not, is there any interest in re-implementing a subset of VIM in ruby? Advantages of this would be: (1) Make VIM more hackable. (A) I do not have the talent…

---

## [Re: Editing Text (#145)](https://www.ruby-forum.com/t/re-editing-text-145/119420)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 0\
**Last updated:** [November 6, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/re-editing-text-145/119420 "2007-11-06T21:40:43Z")

</div>

Eric M. wrote The cursor should be thought to lie between two characters rather than on a character. Because of this, inserting before and after is the same. The cursor is \>\>represented by the node containing the li…

---

## [Threaded and forked select with timeout is impacted by syste](https://www.ruby-forum.com/t/threaded-and-forked-select-with-timeout-is-impacted-by-syste/119376)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 1\
**Last updated:** [November 6, 2007, 9:24pm UTC](https://www.ruby-forum.com/t/threaded-and-forked-select-with-timeout-is-impacted-by-syste/119376 "2007-11-06T21:24:21Z")

</div>

I am using ruby 1.8.6 on Fedora Core 6 and 7 I have encountered a problem with the timeout for a select statement inside a thread or fork. If the timeout is set for a duration of time and the system time is moved bac…

---

## [Re: Editing Text (#145)](https://www.ruby-forum.com/t/re-editing-text-145/229124)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 1\
**Last updated:** [November 6, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/re-editing-text-145/229124 "2007-11-06T21:15:32Z")

</div>

(I thought I had sent in my solution yesterday, but it didn’t send, since I didn’t realize that Yahoo now sometimes demands a CAPTCHA.) I’ve been busy these past few weeks, and thus didn’t get around to this quiz unti…

---

## [CGI cookie return](https://www.ruby-forum.com/t/cgi-cookie-return/119411)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 0\
**Last updated:** [November 6, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/cgi-cookie-return/119411 "2007-11-06T20:21:41Z")

</div>

I’m working on a program that hops on a site and automates a process for me, however this site requires me to be authed. Using CGI::Cookie i’d like to be able to use my login cookie to get brief access to my account t…

---

## [Ruby thread newbie problem](https://www.ruby-forum.com/t/ruby-thread-newbie-problem/119388)

<div class="topic-metadata">

**Author:** [@Bram\_Kuijper](https://www.ruby-forum.com/u/Bram_Kuijper)\
**Replies:** 2\
**Last updated:** [November 6, 2007, 7:48pm UTC](https://www.ruby-forum.com/t/ruby-thread-newbie-problem/119388 "2007-11-06T19:48:15Z")

</div>

Hi all, As a ruby newbie, I am trying to have two Threads process the contents of one Queue. However, in my code only one Thread is processing the contents of Queue, instead of both Threads. How can I make sure that b…

---

## [The victory is within us](https://www.ruby-forum.com/t/the-victory-is-within-us/119397)

<div class="topic-metadata">

**Author:** [@azstar](https://www.ruby-forum.com/u/azstar)\
**Replies:** 1\
**Last updated:** [November 6, 2007, 7:18pm UTC](https://www.ruby-forum.com/t/the-victory-is-within-us/119397 "2007-11-06T19:18:57Z")

</div>

The victory is within us For evil, false, ugly, in brief the Worse: forgot his heart by fear of failure, suffering, death To the good, true, the beautiful, in brief the Best listening, say and do with courage and he…

---

## [Sieve.rb sample](https://www.ruby-forum.com/t/sieve-rb-sample/119362)

<div class="topic-metadata">

**Author:** [@steenslag](https://www.ruby-forum.com/u/steenslag)\
**Replies:** 2\
**Last updated:** [November 6, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/sieve-rb-sample/119362 "2007-11-06T17:56:25Z")

</div>

the sieve of Erathotenes sample (sieve.rb) in Ruby 1.9 looks like this: max = Integer(ARGV.shift || 100) sieve = \[\] for i in 2 … max sieve\[i\] = i end for i in 2 … Math.sqrt(max) next unless sieve\[i\] (i\*i).step(ma…

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

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