# Ruby

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

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

---

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

<div class="topic-metadata">

**Author:** [@sith\_S](https://www.ruby-forum.com/u/sith_S)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/no-subject/74594 "2006-11-07T10:49:23Z")

</div>

unsubscribe

---

## [\*ldflags$b$k$d$$$f(b](https://www.ruby-forum.com/t/ldflags-b-k-d-f-b/73739)

<div class="topic-metadata">

**Author:** [@Yutaka\_K](https://www.ruby-forum.com/u/Yutaka_K)\
**Replies:** 6\
**Last updated:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/ldflags-b-k-d-f-b/73739 "2006-11-07T10:49:14Z")

</div>

é??æ?¬ã¨ã??ã?ã?ã¾ã?ã?? ã?ã?ã?ã«ãªã£ã¦ã?ã¾ã?ã?? ã?ã?ã?å?ã®ä»¥ä¸?ã®ã??ã??ã? lib/mkmf.rb (init\_mkmf): set default $LDFLAGS. Patch by Michal ã??Suchanek . \[ruby-talk:216256\] ã«ã??ã??ã?AIXã§æ?¡å…

---

## [Button\_to style class](https://www.ruby-forum.com/t/button-to-style-class/74590)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/button-to-style-class/74590 "2006-11-07T10:49:10Z")

</div>

Hi all, is this the correct usergroup for ruby on rails? mhhh… I am new to ruby/rails and want to use a normal button - not a submit button - as a link. But I also want to use a css style on that button. My idea was …

---

## [Modes of operation OAEP RSA](https://www.ruby-forum.com/t/modes-of-operation-oaep-rsa/74143)

<div class="topic-metadata">

**Author:** [@floye](https://www.ruby-forum.com/u/floye)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/modes-of-operation-oaep-rsa/74143 "2006-11-07T10:48:55Z")

</div>

Hi everyone, I would really appreciate if someone could help me out with few issues/questions :slight\_smile: I’m writing a thesis and I can not find anything specific related to OEAP (modes of operation) Can OAEP …

---

## [Array of integers](https://www.ruby-forum.com/t/array-of-integers/74156)

<div class="topic-metadata">

**Author:** [@brad7a0](https://www.ruby-forum.com/u/brad7a0)\
**Replies:** 2\
**Last updated:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/array-of-integers/74156 "2006-11-07T10:48:54Z")

</div>

What is the best way to get determine the largest and smallest int in an array of ints? For example: x = \[1,2,3,4\] x.smallest should = 1 x.largest should = 4 How is this done in Ruby? Thank you, Brad

---

## [Duck typing and the Standard Library](https://www.ruby-forum.com/t/duck-typing-and-the-standard-library/74570)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/duck-typing-and-the-standard-library/74570 "2006-11-07T10:48:48Z")

</div>

I’m new to Ruby, so please excuse any ignorance on my part. I read the following article about Ruby and “duck typing”: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/100511 I got the impression that duck…

---

## [Net::SMTP problems](https://www.ruby-forum.com/t/net-smtp-problems/74575)

<div class="topic-metadata">

**Author:** [@nicken](https://www.ruby-forum.com/u/nicken)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/net-smtp-problems/74575 "2006-11-07T10:48:43Z")

</div>

Hi, I’m trying to use Net::SMTP to send an email from a webserver running Apache2. This bit of code is causing an error: 83 Net::SMTP.start(‘10.0.0.15’, 25) do |smtp| 84 smtp.send\_message m…

---

## [String#split: unxepected result](https://www.ruby-forum.com/t/string-split-unxepected-result/74572)

<div class="topic-metadata">

**Author:** [@sheynkman](https://www.ruby-forum.com/u/sheynkman)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/string-split-unxepected-result/74572 "2006-11-07T10:48:38Z")

</div>

irb(main):001:0\> “aabbcc”.split(/bb/) =\> \[“aa”, “cc”\] irb(main):002:0\> “aabbcc”.split(/(bb)/) =\> \[“aa”, “bb”, “cc”\] irb(main):003:0\> “aabbcc”.split(/bb©?/) =\> \[“aa”, “c”, “c”\] The last two result is unexpected for …

---

## [Rock Paper Scissors](https://www.ruby-forum.com/t/rock-paper-scissors/74568)

<div class="topic-metadata">

**Author:** [@femto\_gary](https://www.ruby-forum.com/u/femto_gary)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/rock-paper-scissors/74568 "2006-11-07T10:48:29Z")

</div>

Hello all, I’m doing Rock Paper Scissors from Ruby Q. book. the answer (without cheating) gives example of CNBiasInverter, CNBiasInverter vs. JEGQueuePlayer CNBiasInverter: 653.5 JEGQueuePlayer: 346.5 CNBiasInverter…

---

## [Fast passing data through to the browser (swf)](https://www.ruby-forum.com/t/fast-passing-data-through-to-the-browser-swf/74555)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/fast-passing-data-through-to-the-browser-swf/74555 "2006-11-07T10:48:27Z")

</div>

hi - I need to pass a user a chunk of swf (flash) data: ie a full-flash page. without using a redirect, is there a quick way to read a file and send as a chunk of binary data back to the browser? PHP had some type of …

---

## [Fast text parsing](https://www.ruby-forum.com/t/fast-text-parsing/74560)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/fast-text-parsing/74560 "2006-11-07T10:48:19Z")

</div>

Say I’m parsing stuff like http headers, what is going to give better performance? Strings with regular expressions? StringIO with readline? splitting strings into arrays on a delimiter? Or is it going to be so cl…

---

## [Easiest way to determine OS?](https://www.ruby-forum.com/t/easiest-way-to-determine-os/74120)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/easiest-way-to-determine-os/74120 "2006-11-07T10:48:15Z")

</div>

What’s the easiest way to figure out if you are on a Windows vs. UNIX platform in Ruby from within a Ruby program? Thanks, Wes

---

## [Win32-shortcut 0.2.0](https://www.ruby-forum.com/t/win32-shortcut-0-2-0/74561)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/win32-shortcut-0-2-0/74561 "2006-11-07T10:48:15Z")

</div>

Hi all, The Win32Utils Team is happy to announce the release of win32-shortcut 0.2.0. What is it? An interface for creating shortcuts on MS Windows. Here’s a quick synopsis: require ‘win32/shortcut’ require ‘win3…

---

## [Rubyists of Second Life Meeting - JRuby by Charles O. Nutter](https://www.ruby-forum.com/t/rubyists-of-second-life-meeting-jruby-by-charles-o-nutter/71320)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 4\
**Last updated:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/rubyists-of-second-life-meeting-jruby-by-charles-o-nutter/71320 "2006-11-07T10:48:12Z")

</div>

Join us in the virtual world of Second Life and learn about JRuby! Charles O. Nutter of JRuby fame will tell us what JRuby is all about. JRuby is an 100% pure-Java implementation of the Ruby programming language. The…

---

## [Regex to transform java code to ecma script](https://www.ruby-forum.com/t/regex-to-transform-java-code-to-ecma-script/74460)

<div class="topic-metadata">

**Author:** [@pondus](https://www.ruby-forum.com/u/pondus)\
**Replies:** 2\
**Last updated:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/regex-to-transform-java-code-to-ecma-script/74460 "2006-11-07T10:48:09Z")

</div>

Hi, I was hoping someone could provide me with a better way to accomplish (preferrably in one line) the following simple task: typical method declaration in a java interface code = “public void myFunction(String foo)…

---

## [Managing Hierarchical Tree-Like Data](https://www.ruby-forum.com/t/managing-hierarchical-tree-like-data/74554)

<div class="topic-metadata">

**Author:** [@d0t1q](https://www.ruby-forum.com/u/d0t1q)\
**Replies:** 6\
**Last updated:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/managing-hierarchical-tree-like-data/74554 "2006-11-07T10:48:09Z")

</div>

Team: I’m looking for a pragmatic way of creating a tree from a list of items without knowing the depth of each. For example: max\_depth = 4 #considers each unique item below the depth of 4 to be one item\_tree = {} …

---

## [\_\_FILE\_\_ for requiring file](https://www.ruby-forum.com/t/file-for-requiring-file/74499)

<div class="topic-metadata">

**Author:** [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Replies:** 8\
**Last updated:** [November 7, 2006, 10:48am UTC](https://www.ruby-forum.com/t/file-for-requiring-file/74499 "2006-11-07T10:48:05Z")

</div>

Hello I keep wondering if there is a way to have FILE be delayed in its evaluation. For example, in my tests cases, I usually do the following so that my test cases are imune to where they are run from: class TestMyC…

---

## [Enterprise-Ruby Wish List by Francis Cianfrocca](https://www.ruby-forum.com/t/enterprise-ruby-wish-list-by-francis-cianfrocca/71017)

<div class="topic-metadata">

**Author:** [@zoat](https://www.ruby-forum.com/u/zoat)\
**Replies:** 32\
**Last updated:** [November 7, 2006, 10:47am UTC](https://www.ruby-forum.com/t/enterprise-ruby-wish-list-by-francis-cianfrocca/71017 "2006-11-07T10:47:58Z")

</div>

In all the recent talk (some would say hype) about the Ruby programming language,relatively little has been said about Ruby’s usefulness in enterprise development shops, but that is beginning to change. Francis sidest…

---

## [Ice for Ruby Preview Release](https://www.ruby-forum.com/t/ice-for-ruby-preview-release/73886)

<div class="topic-metadata">

**Author:** [@Marc\_Laukien](https://www.ruby-forum.com/u/Marc_Laukien)\
**Replies:** 6\
**Last updated:** [November 7, 2006, 10:47am UTC](https://www.ruby-forum.com/t/ice-for-ruby-preview-release/73886 "2006-11-07T10:47:46Z")

</div>

The Internet Communications Engine (Ice) is a modern, object-oriented distributed computing platform. We have just released a preview version of Ice for Ruby, which allows Ruby applications to interact seamlessly with…

---

## [Miniunit 1.0.0 Released](https://www.ruby-forum.com/t/miniunit-1-0-0-released/74537)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:47am UTC](https://www.ruby-forum.com/t/miniunit-1-0-0-released/74537 "2006-11-07T10:47:45Z")

</div>

miniunit version 1.0.0 has been released! http://rubyforge.org/projects/bfts miniunit is a completely minimial drop-in replacement for ruby’s test/unit. This is meant for language implementors to have a minimal set o…

---

## [Phoenix Ruby Group Meeting for November](https://www.ruby-forum.com/t/phoenix-ruby-group-meeting-for-november/74533)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:47am UTC](https://www.ruby-forum.com/t/phoenix-ruby-group-meeting-for-november/74533 "2006-11-07T10:47:32Z")

</div>

The Phoenix Ruby U. Group November meeting: Date: Monday, November 13, 2006 Time: 6:15 PM Where: Axway (formerly named Cyclone Commerce) See http://www.rubyaz.org/groups/prug/ for a map and more information abo…

---

## [PP / PrettyPrint annoyances](https://www.ruby-forum.com/t/pp-prettyprint-annoyances/74085)

<div class="topic-metadata">

**Author:** [@mcmire](https://www.ruby-forum.com/u/mcmire)\
**Replies:** 5\
**Last updated:** [November 7, 2006, 10:47am UTC](https://www.ruby-forum.com/t/pp-prettyprint-annoyances/74085 "2006-11-07T10:47:24Z")

</div>

Hello all, PP/PrettyPrint comes in handy when I’m trying to inspect the contents of large arrays, but what if some elements are short length-wise? irb(main):001:0\> require ‘pp’ =\> true irb(main):002:0\> pp (0…20).to\_…

---

## [Re: using ruby with photoshop - p objectroblem using the Sav](https://www.ruby-forum.com/t/re-using-ruby-with-photoshop-p-objectroblem-using-the-sav/74530)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:47am UTC](https://www.ruby-forum.com/t/re-using-ruby-with-photoshop-p-objectroblem-using-the-sav/74530 "2006-11-07T10:47:21Z")

</div>

From: carlos tirado \[mailto:removed\_email\_address@domain.invalid\] WinXP Pro SP2, Photoshop CS (8.0). Works here! :} Have you seen this? http://partners.adobe.com/public/developer/en/photoshop/sdk/Ph otoshopScripting…

---

## [Using ruby with photoshop - p objectroblem using the SaveAs](https://www.ruby-forum.com/t/using-ruby-with-photoshop-p-objectroblem-using-the-saveas/74052)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 10:47am UTC](https://www.ruby-forum.com/t/using-ruby-with-photoshop-p-objectroblem-using-the-saveas/74052 "2006-11-07T10:47:16Z")

</div>

help I have been trying to get a COM connection to work from ruby to photoshop Everything works fine until I try and save my image, I cant get the right syntax for the SaveAs function to work. I’ve tried reference bo…

---

## [Using "not" in compound conditions](https://www.ruby-forum.com/t/using-not-in-compound-conditions/74102)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 5\
**Last updated:** [November 7, 2006, 10:47am UTC](https://www.ruby-forum.com/t/using-not-in-compound-conditions/74102 "2006-11-07T10:47:03Z")

</div>

Hi I am still a beginner at Ruby, and have just arrived at this in my learning curve. I would like to code not(condition1) && not(condition2) This is accepted in irb - not(condition1) && condition2 but this produc…

---

## [Re: Fuzzy Time (#99)](https://www.ruby-forum.com/t/re-fuzzy-time-99/74522)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:47am UTC](https://www.ruby-forum.com/t/re-fuzzy-time-99/74522 "2006-11-07T10:47:00Z")

</div>

From: Robert Conn \[mailto:removed\_email\_address@domain.invalid\] Gavin - I was able to test the code with your test class. I don’t claim to fully understand it yet though. Sorry about that…I wrote it for my own use …

---

## [Re: \<!-- foo --\> in RDoc](https://www.ruby-forum.com/t/re-foo-in-rdoc/74520)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:46am UTC](https://www.ruby-forum.com/t/re-foo-in-rdoc/74520 "2006-11-07T10:46:54Z")

</div>

From: Christoffer S. \[mailto:removed\_email\_address@domain.invalid\] How can I insert verbatim? Here’s one way that works: Test \<!-- foo → def test() end

---

## [XSPF for Ruby 0.4](https://www.ruby-forum.com/t/xspf-for-ruby-0-4/74519)

<div class="topic-metadata">

**Author:** [@Pau\_Garcia\_i\_Quiles](https://www.ruby-forum.com/u/Pau_Garcia_i_Quiles)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:46am UTC](https://www.ruby-forum.com/t/xspf-for-ruby-0-4/74519 "2006-11-07T10:46:51Z")

</div>

URI http://xspf.rubyforge.org/ SYNOPSIS XSPF for Ruby is a pure-Ruby XML Shareable Playlist Format parser and generator. HISTORY Current version is 0.4, which adds XSPF generation. It is even able to eat its own …

---

## [\<!-- foo --\> in RDoc](https://www.ruby-forum.com/t/foo-in-rdoc/74518)

<div class="topic-metadata">

**Author:** [@Christoffer\_S](https://www.ruby-forum.com/u/Christoffer_S)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:46am UTC](https://www.ruby-forum.com/t/foo-in-rdoc/74518 "2006-11-07T10:46:50Z")

</div>

Running \[0\] through RDoc raises the exception \[1\]. Questions: What special meaning does have in RDoc? Is it for inserting (later invisible) comments in the documentation? Where can I read more about it? Why doesn’…

---

## [Active Record speed](https://www.ruby-forum.com/t/active-record-speed/74516)

<div class="topic-metadata">

**Author:** [@bizzz](https://www.ruby-forum.com/u/bizzz)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 10:46am UTC](https://www.ruby-forum.com/t/active-record-speed/74516 "2006-11-07T10:46:47Z")

</div>

Hello, I’m writing some code that loads data into a database on a routine basis (dump from legacy system daily). I’ve got a decent amount of data, and am loading it now using ActiveRecord. I’m finding that it’s taki…

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

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