# Ruby

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

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

---

## [Re : RubyInline 3.6.3 Released](https://www.ruby-forum.com/t/re-rubyinline-3-6-3-released/93161)

<div class="topic-metadata">

**Author:** [@kuyarico](https://www.ruby-forum.com/u/kuyarico)\
**Replies:** 0\
**Last updated:** [April 28, 2007, 2:46pm UTC](https://www.ruby-forum.com/t/re-rubyinline-3-6-3-released/93161 "2007-04-28T14:46:16Z")

</div>

Hi, I’ve recently had the same issues trying to recompile the ParseTree library (which uses RubyInline) on windows XP. It looks like the version of VS studio I use is too new compared to the one that’s used to compil…

---

## [Ruby conditional operator ? :](https://www.ruby-forum.com/t/ruby-conditional-operator/93152)

<div class="topic-metadata">

**Author:** [@yaxm](https://www.ruby-forum.com/u/yaxm)\
**Replies:** 3\
**Last updated:** [April 28, 2007, 11:33am UTC](https://www.ruby-forum.com/t/ruby-conditional-operator/93152 "2007-04-28T11:33:00Z")

</div>

Hi, in java, I can use ? : shorthand operators to ensure s is assigned to some value. String s = s == null ? “” : s; Is there similar shorthand operator in Ruby? Thanks. Yaxm

---

## [Using Ruby for line-wrapping](https://www.ruby-forum.com/t/using-ruby-for-line-wrapping/93089)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 6\
**Last updated:** [April 28, 2007, 7:45am UTC](https://www.ruby-forum.com/t/using-ruby-for-line-wrapping/93089 "2007-04-28T07:45:49Z")

</div>

I don’t necessarily need code examples – but if anyone has ideas for a best approach to specifying a line wrap width (breaking between words for lines no longer than a specific column width) for output from a Ruby scr…

---

## [RubyInline 3.6.3 Released](https://www.ruby-forum.com/t/rubyinline-3-6-3-released/93134)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 2\
**Last updated:** [April 28, 2007, 5:36am UTC](https://www.ruby-forum.com/t/rubyinline-3-6-3-released/93134 "2007-04-28T05:36:39Z")

</div>

RubyInline version 3.6.3 has been released! http://rubyforge.org/projects/rubyinline/ rubyinline | software projects | by ryan davis Ruby Inline is an analog to Perl’s Inline::C. Out of the box, it allows you to embe…

---

## [Ruport In 10 Minutes (was Looking for thoughts and opinions](https://www.ruby-forum.com/t/ruport-in-10-minutes-was-looking-for-thoughts-and-opinions/93139)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 2\
**Last updated:** [April 28, 2007, 5:11am UTC](https://www.ruby-forum.com/t/ruport-in-10-minutes-was-looking-for-thoughts-and-opinions/93139 "2007-04-28T05:11:42Z")

</div>

On 4/27/07, Lyle J. removed\_email\_address@domain.invalid wrote: But I guess what I would love to see on that page (or elsewhere) is a really basic, “Ruport in 10 minutes” kind of tutorial, with even a trivial data se…

---

## [Regexp help needed](https://www.ruby-forum.com/t/regexp-help-needed/93128)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 28, 2007, 12:26am UTC](https://www.ruby-forum.com/t/regexp-help-needed/93128 "2007-04-28T00:26:30Z")

</div>

Hey All, I need to parse lines that look like this: 1 'Not qualified' 2 'Overquota' 3 'Qualified'/ 1 'SSI' 2 'Mall Facility'/ 1 'Real Interview' 2 'Practice Interview'/ So I’ve got N sets of \<\>\<\>\<\> on each line. I …

---

## [String substitution?](https://www.ruby-forum.com/t/string-substitution/93129)

<div class="topic-metadata">

**Author:** [@azazel](https://www.ruby-forum.com/u/azazel)\
**Replies:** 2\
**Last updated:** [April 28, 2007, 12:19am UTC](https://www.ruby-forum.com/t/string-substitution/93129 "2007-04-28T00:19:53Z")

</div>

Hello, Im working on a small rails app that uses a text editor component (FCKEdit). In certain cases, the editor will add characters to my string that I need to remove before I show the output. For example, it will a…

---

## [Building one-click installer compatible C extensions on wind](https://www.ruby-forum.com/t/building-one-click-installer-compatible-c-extensions-on-wind/93106)

<div class="topic-metadata">

**Author:** [@Harold\_H](https://www.ruby-forum.com/u/Harold_H)\
**Replies:** 3\
**Last updated:** [April 27, 2007, 11:38pm UTC](https://www.ruby-forum.com/t/building-one-click-installer-compatible-c-extensions-on-wind/93106 "2007-04-27T23:38:26Z")

</div>

Hi. I had an idea for a quick C extension and thought I’d see what it was like to build one. I’m pretty familiar with readme.ext as I’ve done some things embedding Ruby recently that have all gone splendidly. However…

---

## [C++ code into Ruby, I need it fast, no time for RTFM](https://www.ruby-forum.com/t/c-code-into-ruby-i-need-it-fast-no-time-for-rtfm/92883)

<div class="topic-metadata">

**Author:** [@steelheart](https://www.ruby-forum.com/u/steelheart)\
**Replies:** 40\
**Last updated:** [April 27, 2007, 10:43pm UTC](https://www.ruby-forum.com/t/c-code-into-ruby-i-need-it-fast-no-time-for-rtfm/92883 "2007-04-27T22:43:20Z")

</div>

\#include \<iostream.h\> #include \<conio.h\> void r\_string(int n, int v\[\]) { int i; for(i=0;i\<n;i++) { cout\<\<"v\["\<\<i\<\<"\]="; cin\>\>v\[i\]; } } void p\_string(int n, int v\[\]) { int i; cout\<\<"\\nThe string is : "; for(i=0;i\<…

---

## [Decode password](https://www.ruby-forum.com/t/decode-password/93087)

<div class="topic-metadata">

**Author:** [@mitesh](https://www.ruby-forum.com/u/mitesh)\
**Replies:** 6\
**Last updated:** [April 27, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/decode-password/93087 "2007-04-27T22:32:20Z")

</div>

Hi All, i had encoded the password using, Digest::SHA1.hexdigest(“change-me–#{pass}–”) i got the password in the encoded form and i want to decode this string. How can i do this?

---

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

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/no-subject/93123 "2007-04-27T21:55:56Z")

</div>

I’ve looked at Ruport before but as far as I can tell, it doesn’t really try to solve the part of the problem I’m most interested in. Ruport seems to tackle pulling data from a variety of sources in a unified way, and…

---

## [Ruby gotcha? \[\].all? always returns true](https://www.ruby-forum.com/t/ruby-gotcha-all-always-returns-true/93054)

<div class="topic-metadata">

**Author:** [@Dan\_Stevens\_SIAmAI](https://www.ruby-forum.com/u/Dan_Stevens_SIAmAI)\
**Replies:** 4\
**Last updated:** [April 27, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/ruby-gotcha-all-always-returns-true/93054 "2007-04-27T20:39:49Z")

</div>

Something in caught me out today. I wanted to test that the contents of the array where all instances of particular class, and if not, do stuff. The example isn’t exactly what my code did, but it illustrates my point: …

---

## [Ruby DBI transaction support bug?](https://www.ruby-forum.com/t/ruby-dbi-transaction-support-bug/93112)

<div class="topic-metadata">

**Author:** [@Pascal\_Meunier](https://www.ruby-forum.com/u/Pascal_Meunier)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/ruby-dbi-transaction-support-bug/93112 "2007-04-27T17:54:05Z")

</div>

According to http://www.kitebird.com/articles/ruby-dbi.html “Using the Ruby DBI Module”, the following rollback should work but doesn’t: $DBH\[‘AutoCommit’\] = false sth = $DBH.prepare(“SELECT \* FROM add\_user\_list(?)”) …

---

## [File#size and File#size? follow links?](https://www.ruby-forum.com/t/file-size-and-file-size-follow-links/93103)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 2\
**Last updated:** [April 27, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/file-size-and-file-size-follow-links/93103 "2007-04-27T17:11:31Z")

</div>

Do File#size and File#size? follow links? It would certainly appear to be so, but docs don’t say. Don’t symlinks have a size of some sort of their own? Kind of confused by this. (Hard links are a bit more of a mind-be…

---

## [Timer Class](https://www.ruby-forum.com/t/timer-class/93081)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 27, 2007, 3:25pm UTC](https://www.ruby-forum.com/t/timer-class/93081 "2007-04-27T15:25:17Z")

</div>

Hai Dude I want to write one class that class should act as a Timer On that class , i will check the database every second for database field called Diaplay\_time ,if the current system time matched with database Disp…

---

## [Php's chunk\_split alternative in ruby](https://www.ruby-forum.com/t/phps-chunk-split-alternative-in-ruby/93090)

<div class="topic-metadata">

**Author:** [@webdevotion](https://www.ruby-forum.com/u/webdevotion)\
**Replies:** 5\
**Last updated:** [April 27, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/phps-chunk-split-alternative-in-ruby/93090 "2007-04-27T13:07:06Z")

</div>

hello, how could I chunk\_split string mylongstring = “some long long long string” into smaller strings of length 3. In PHP it is chunk\_split(mylongstring,3); What is it in ruby? Thank you in advance!

---

## [Ruby VM Serial Interview](https://www.ruby-forum.com/t/ruby-vm-serial-interview/93071)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 11:17am UTC](https://www.ruby-forum.com/t/ruby-vm-serial-interview/93071 "2007-04-27T11:17:15Z")

</div>

I’ve avoided publicizing this too much in the past, because I wanted some time to generate content. However, I’ve just posted the third episode in a series of interviews with Matz and Koichi and I think it’s becoming…

---

## [Programming Ruby: Improvements, copyright issues](https://www.ruby-forum.com/t/programming-ruby-improvements-copyright-issues/92985)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [April 27, 2007, 10:42am UTC](https://www.ruby-forum.com/t/programming-ruby-improvements-copyright-issues/92985 "2007-04-27T10:42:29Z")

</div>

I’ve been learning Ruby with the help of version 1 of the introductory book Programming Ruby, which has been released by the publisher under the Open Publication License. Of course, there are newer books available, bu…

---

## [Hoq to send a message/mail to particular ip](https://www.ruby-forum.com/t/hoq-to-send-a-message-mail-to-particular-ip/92964)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 6\
**Last updated:** [April 27, 2007, 9:45am UTC](https://www.ruby-forum.com/t/hoq-to-send-a-message-mail-to-particular-ip/92964 "2007-04-27T09:45:21Z")

</div>

Hello everybody ! I’m newbie to ruby. Is there anyway to send a message or mail to particular available ip. Please give some suggestion. Regards, Veeraa.

---

## [Csv next and previous help](https://www.ruby-forum.com/t/csv-next-and-previous-help/92945)

<div class="topic-metadata">

**Author:** [@geoff](https://www.ruby-forum.com/u/geoff)\
**Replies:** 7\
**Last updated:** [April 27, 2007, 9:16am UTC](https://www.ruby-forum.com/t/csv-next-and-previous-help/92945 "2007-04-27T09:16:17Z")

</div>

Hey there, I’m trying to figure out how to work with the sample data below such that I can take each time there is a C in the third column and update the previous D to a P. An ideas? IM,0000001,D,0,@FRIEDEXT01;IMAGE…

---

## [Grabbing banners from other sites](https://www.ruby-forum.com/t/grabbing-banners-from-other-sites/102760)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 7:06am UTC](https://www.ruby-forum.com/t/grabbing-banners-from-other-sites/102760 "2007-04-27T07:06:09Z")

</div>

I want my banner ads to be rotated using ruby. So I try this \<%= link\_to\_remote( image\_tag(“graphics/ select01.gif”, :alt=\>‘Programming’, :size=\>‘100x20’, :border=\>0), :update =\> “select01\_div”, :url =\>{ :action =\> …

---

## [Date Format Change - Help request](https://www.ruby-forum.com/t/date-format-change-help-request/93052)

<div class="topic-metadata">

**Author:** [@snoopy](https://www.ruby-forum.com/u/snoopy)\
**Replies:** 2\
**Last updated:** [April 27, 2007, 5:16am UTC](https://www.ruby-forum.com/t/date-format-change-help-request/93052 "2007-04-27T05:16:50Z")

</div>

Newbie question about changing a date format I have a series of data files in the format: ABC, 7/21/2005, 1825 CNC1, 7/28/2005, 34.21 BPR, 9/3/2006, 34872 I need to output it to a DIFFERENT Directory as ABC, 20050…

---

## [RDoc & Proc constants](https://www.ruby-forum.com/t/rdoc-proc-constants/93072)

<div class="topic-metadata">

**Author:** [@mindtriggerz](https://www.ruby-forum.com/u/mindtriggerz)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 4:18am UTC](https://www.ruby-forum.com/t/rdoc-proc-constants/93072 "2007-04-27T04:18:59Z")

</div>

I’ve been having a problem getting RDoc to recognize some Proc constants, and boiled it down to this: module Foo Bar = lambda do puts end Saw = lambda do puts end Tox = lambda do puts puts end Grom = lambda d…

---

## [SOAP problems](https://www.ruby-forum.com/t/soap-problems/93033)

<div class="topic-metadata">

**Author:** [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Replies:** 4\
**Last updated:** [April 27, 2007, 2:15am UTC](https://www.ruby-forum.com/t/soap-problems/93033 "2007-04-27T02:15:52Z")

</div>

Here is my irb session: irb -r soap/wsdlDriver irb(main):001:0\> end\_point = “http://my.endpoint.com/cgi-bin/ipc- SOAP/” =\> “http://my.endpoint.com/cgi-bin/ipc-SOAP/” irb(main):002:0\> soap = SOAP::WSDLDriverFactory.…

---

## [Net::Http multiple parameters with the same name](https://www.ruby-forum.com/t/net-http-multiple-parameters-with-the-same-name/92948)

<div class="topic-metadata">

**Author:** [@Scott\_Archer](https://www.ruby-forum.com/u/Scott_Archer)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 1:32am UTC](https://www.ruby-forum.com/t/net-http-multiple-parameters-with-the-same-name/92948 "2007-04-27T01:32:50Z")

</div>

I’m trying to use the Net::Http libraries to do a post request to a java servlet. I need to submit multiple parameters with the same name. test=1 test=2 test=3 if I were submitting the form in html it would look so…

---

## [How do i get involved in ruby core?](https://www.ruby-forum.com/t/how-do-i-get-involved-in-ruby-core/93001)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [April 27, 2007, 12:45am UTC](https://www.ruby-forum.com/t/how-do-i-get-involved-in-ruby-core/93001 "2007-04-27T00:45:46Z")

</div>

Hi all, I’d like to get involved in the development of ruby core, especially with ruby 1.9 aka YARV coming out late this year. Could anyone point me in the right direction? I guess I’d be most interested in fixing sm…

---

## [Rails suggestions/examples on Rails view architecture for sp](https://www.ruby-forum.com/t/rails-suggestions-examples-on-rails-view-architecture-for-sp/93038)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 0\
**Last updated:** [April 26, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/rails-suggestions-examples-on-rails-view-architecture-for-sp/93038 "2007-04-26T21:52:28Z")

</div>

I’m building an application where the user is working with something that is a combination of a spreadsheet and an outliner (a statement of corporate finances, actually). This requires the user to work with multiple d…

---

## [Cannot read a page with open-uri](https://www.ruby-forum.com/t/cannot-read-a-page-with-open-uri/93015)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 2\
**Last updated:** [April 26, 2007, 8:44pm UTC](https://www.ruby-forum.com/t/cannot-read-a-page-with-open-uri/93015 "2007-04-26T20:44:03Z")

</div>

open-uri have been working fine, until I used it to open http://www.mov99.com/movie/poster/2002081800574.html, when it returned a empty string. I don’t know what is the problem. Is there any page that can not be open …

---

## [How to integrate video flash player into the rails app](https://www.ruby-forum.com/t/how-to-integrate-video-flash-player-into-the-rails-app/93005)

<div class="topic-metadata">

**Author:** [@arjun\_ghosh](https://www.ruby-forum.com/u/arjun_ghosh)\
**Replies:** 1\
**Last updated:** [April 26, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/how-to-integrate-video-flash-player-into-the-rails-app/93005 "2007-04-26T19:21:13Z")

</div>

Hi, How to integrate video flash player into the rails app. I have to load some video to my site and play them using a flash player . can any point in correct direction. Also can any give me or point me to a free tu…

---

## [Apt-sary-0.2](https://www.ruby-forum.com/t/apt-sary-0-2/93020)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 26, 2007, 5:55pm UTC](https://www.ruby-forum.com/t/apt-sary-0-2/93020 "2007-04-26T17:55:02Z")

</div>

Hi, == Abstract ((\<Sary|URL:http://sary.sourceforge.net/\>)) makes apt-cache search' and apt-file search’ MUCH FASTER. Using apt-sary is very easy! Only replace apt-' with apt-sary-'. But .ary files generated by mks…

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

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