# Ruby

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

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

---

## [Programming Library Poll](https://www.ruby-forum.com/t/programming-library-poll/103166)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 1\
**Last updated:** [May 2, 2007, 5:34pm UTC](https://www.ruby-forum.com/t/programming-library-poll/103166 "2007-05-02T17:34:42Z")

</div>

Hi– Per my discussion on the naming of programming libraries, I figure it would be a good idea to get a more concrete sense of what others think. So I set up a few poll questions. Hope you have a few seconds to answe…

---

## [Multiple render :text, live](https://www.ruby-forum.com/t/multiple-render-text-live/103094)

<div class="topic-metadata">

**Author:** [@knohr](https://www.ruby-forum.com/u/knohr)\
**Replies:** 1\
**Last updated:** [May 2, 2007, 4:33pm UTC](https://www.ruby-forum.com/t/multiple-render-text-live/103094 "2007-05-02T16:33:30Z")

</div>

I’m new to rails and ruby Sorry for the x-post. I am using “activescaffold” and have a model that takes some time to complete, I would like to have it update the page multiple times while ‘foo’ runs. basically i hav…

---

## [Problem in ROR](https://www.ruby-forum.com/t/problem-in-ror/103157)

<div class="topic-metadata">

**Author:** [@geetha](https://www.ruby-forum.com/u/geetha)\
**Replies:** 1\
**Last updated:** [May 2, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/problem-in-ror/103157 "2007-05-02T15:51:17Z")

</div>

hi, while the time of executing ROR application I get the following problem. Because of this problem I am not able to continue with my project. Please any one help me. Application error Change this error message f…

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [May 2, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/163851 "2007-05-02T13:54:08Z")

</div>

Begin forwarded message:

---

## [How to save the record in table using SQL query](https://www.ruby-forum.com/t/how-to-save-the-record-in-table-using-sql-query/103138)

<div class="topic-metadata">

**Author:** [@mitesh](https://www.ruby-forum.com/u/mitesh)\
**Replies:** 2\
**Last updated:** [May 2, 2007, 9:26am UTC](https://www.ruby-forum.com/t/how-to-save-the-record-in-table-using-sql-query/103138 "2007-05-02T09:26:43Z")

</div>

Hello All, how to execute insert into employ values(‘mitesh’,1); how to execute this directly with out using .save function. Thanking you

---

## [Operator redefinition in YARV](https://www.ruby-forum.com/t/operator-redefinition-in-yarv/103120)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 3\
**Last updated:** [May 2, 2007, 8:24am UTC](https://www.ruby-forum.com/t/operator-redefinition-in-yarv/103120 "2007-05-02T08:24:38Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B e$B%a%bBe$o$j$G$9!#e(B YARVe$B$G$O1i;;;R%a%=%C%I$N:FDj5A$K$^$@BP1~$7$F$$$J$$$N$G$9$M!#e(B mathne$B$,F0$-$^$;$s!#e(B e$BD\>$=$&$H;W$C$?$1$I!"$I$3$G1i;;;R$rFCJL07$$$7$F$k$+$o$+$j$^$;e(B …

---

## [ObjectC style keyword argument](https://www.ruby-forum.com/t/objectc-style-keyword-argument/93014)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 5\
**Last updated:** [May 2, 2007, 7:02am UTC](https://www.ruby-forum.com/t/objectc-style-keyword-argument/93014 "2007-05-02T07:02:33Z")

</div>

e$B$J$+$@$G$9!#e(B e$B$\*$H$H$$EE\<V$NCf$GBgBN$G$-$A$c$C$?$N$G$J$s$H$J$/e(B(e$BFfe(B)e$B!#e(B class ObjC def copy:from: p \[copy, from\] end end ObjC.new.copy: “x”, from: “y” #=\> \[“x”, “y”\] e$B$H$$$&46$8$G%a%=%C%IDj5A$…

---

## [Problem with RoR's controller getting too large](https://www.ruby-forum.com/t/problem-with-rors-controller-getting-too-large/102994)

<div class="topic-metadata">

**Author:** [@shurain](https://www.ruby-forum.com/u/shurain)\
**Replies:** 6\
**Last updated:** [May 2, 2007, 7:00am UTC](https://www.ruby-forum.com/t/problem-with-rors-controller-getting-too-large/102994 "2007-05-02T07:00:33Z")

</div>

Let’s assume that there are two models Post and Comment. If we have a controller dealing with both of these models, it wouldn’t take long before the controller grows too big to maintain. As far as I understand, this h…

---

## [Ruby Reports 1.0 RC2 (0.11.0)](https://www.ruby-forum.com/t/ruby-reports-1-0-rc2-0-11-0/103131)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [May 2, 2007, 5:51am UTC](https://www.ruby-forum.com/t/ruby-reports-1-0-rc2-0-11-0/103131 "2007-05-02T05:51:29Z")

</div>

Hi folks, here is another preview of Ruport 1.0 We can really use your feedback, so please let us know what you think! == What is Ruport? == Ruby Reports (Ruport) is an extensible reporting system. It aims to keep th…

---

## [ActiveLdap questions](https://www.ruby-forum.com/t/activeldap-questions/103100)

<div class="topic-metadata">

**Author:** [@reidmefirst](https://www.ruby-forum.com/u/reidmefirst)\
**Replies:** 6\
**Last updated:** [May 2, 2007, 5:16am UTC](https://www.ruby-forum.com/t/activeldap-questions/103100 "2007-05-02T05:16:26Z")

</div>

Hi All - I have some silly questions about ActiveLdap. I’m a pretty new Ruby programmer, so I may be doing foolish things… I am trying to connect to and search for records on my ldap server. I have installed activ…

---

## [Strangeness with string concatenation and function return va](https://www.ruby-forum.com/t/strangeness-with-string-concatenation-and-function-return-va/103130)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 2\
**Last updated:** [May 2, 2007, 5:05am UTC](https://www.ruby-forum.com/t/strangeness-with-string-concatenation-and-function-return-va/103130 "2007-05-02T05:05:25Z")

</div>

I get an error when running code snippet A, but if I change it to B, there’s no error. I’m not familiar enough with Ruby to know why this is. Could someone explain this? ----- A ----- def ReturnString ( ) return “a…

---

## [Math Time!](https://www.ruby-forum.com/t/math-time/103123)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 4\
**Last updated:** [May 2, 2007, 4:29am UTC](https://www.ruby-forum.com/t/math-time/103123 "2007-05-02T04:29:24Z")

</div>

Alright everybody! Math time! So today I tried to write a program which would print out, say, 1000 digits of pi. I figured I’d do this by assigning a… variable… to be a bignum… crap, Ruby is duck typing! I mean, yay? …

---

## [Bad file descriptor](https://www.ruby-forum.com/t/bad-file-descriptor/103028)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 3\
**Last updated:** [May 2, 2007, 4:06am UTC](https://www.ruby-forum.com/t/bad-file-descriptor/103028 "2007-05-02T04:06:21Z")

</div>

Hi, Does anybody here use selenium? If yes have you experienced an error “Bad File Descriptor…”? When i try to run on of the selenium examples for ruby i get the above message. Can anybody offers some help. I’m us…

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [May 2, 2007, 3:15am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/158379 "2007-05-02T03:15:20Z")

</div>

Begin forwarded message:

---

## [\[QUIZ\] Checking Credit Cards (#122)](https://www.ruby-forum.com/t/quiz-checking-credit-cards-122/103116)

<div class="topic-metadata">

**Author:** [@Brian\_Krahmer](https://www.ruby-forum.com/u/Brian_Krahmer)\
**Replies:** 0\
**Last updated:** [May 2, 2007, 12:21am UTC](https://www.ruby-forum.com/t/quiz-checking-credit-cards-122/103116 "2007-05-02T00:21:11Z")

</div>

Here is my submission. My first version was a bit shorter and more concise, where I had embedded the allowed lengths into the regex. I already had it written before the topic of 12 digits starting with 4 came up. S…

---

## [What's a Mutex and how do I use it?](https://www.ruby-forum.com/t/whats-a-mutex-and-how-do-i-use-it/103047)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [May 1, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/whats-a-mutex-and-how-do-i-use-it/103047 "2007-05-01T22:58:57Z")

</div>

Mutex seems very powerful and something I could use eventually as I better my understanding of ruby. Thus far, I haven’t found the documentation verbose enough for me to grasp the concept of it. Could anyone try their…

---

## [Microsoft brings Ruby to the browser?](https://www.ruby-forum.com/t/microsoft-brings-ruby-to-the-browser/103048)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 6\
**Last updated:** [May 1, 2007, 9:34pm UTC](https://www.ruby-forum.com/t/microsoft-brings-ruby-to-the-browser/103048 "2007-05-01T21:34:46Z")

</div>

Via TechCrunch: “Silverlight will now include a mini-CLR (Common Language Runtime) from .NET. As with the usual .NET runtime, with Silverlight you can code in a number of supported programming languages. At this time …

---

## [ICFP Programming Contest 2007](https://www.ruby-forum.com/t/icfp-programming-contest-2007/103099)

<div class="topic-metadata">

**Author:** [@Johan\_Jeuring](https://www.ruby-forum.com/u/Johan_Jeuring)\
**Replies:** 0\
**Last updated:** [May 1, 2007, 9:01pm UTC](https://www.ruby-forum.com/t/icfp-programming-contest-2007/103099 "2007-05-01T21:01:42Z")

</div>

Want to show off your programming skills? Your favorite programming language? Your best programming tools? Join the ICFP Programming Contest 2007! The 10th ICFP Programming Contest celebrates a decade of contests. T…

---

## [Cyclic array](https://www.ruby-forum.com/t/cyclic-array/93163)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 17\
**Last updated:** [May 1, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/cyclic-array/93163 "2007-05-01T18:45:28Z")

</div>

I would like to print n elements from an Array in a cyclic way. I mean : using anArray = \[ “a”, “b”, “c”, “d”, “e”, “f”, “g”\], I should do : anArray.print\_cyclic(4, 0) =\> “a”, “b”, “c”, “d” (first print 4 element…

---

## [Sprintf can not work in ruby c source?](https://www.ruby-forum.com/t/sprintf-can-not-work-in-ruby-c-source/103055)

<div class="topic-metadata">

**Author:** [@haoqi](https://www.ruby-forum.com/u/haoqi)\
**Replies:** 10\
**Last updated:** [May 1, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/sprintf-can-not-work-in-ruby-c-source/103055 "2007-05-01T18:13:24Z")

</div>

here is my simple test: where is my mistake?? #include “ruby.h” #include “stdio.h” static VALUE tests(){ char \*s1=“a “; char \*s2=” b”; char \*buf; sprintf(buf,"%s after %s",s1,s2); printf(buf); return Qnil; } …

---

## [Logic Programming](https://www.ruby-forum.com/t/logic-programming/103076)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [May 1, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/logic-programming/103076 "2007-05-01T17:01:17Z")

</div>

Hello everyone. Following a Ruby Q. posting a while a go, and various prior mentions of Prolog, I ventured off and had an explore on Wikipedia: Logic programming - Wikipedia Opinion piece: My interest here is that I…

---

## [This month's blogging contest is all about JRuby](https://www.ruby-forum.com/t/this-months-blogging-contest-is-all-about-jruby/103080)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [May 1, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/this-months-blogging-contest-is-all-about-jruby/103080 "2007-05-01T16:25:13Z")

</div>

Since the JRuby team is planning on releasing JRuby 1.0 this month, I’m devoting the May blogging contest to JRuby and Ruby/Java integration. If you’re interested in participating (and maybe winning three Apress book…

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 4\
**Last updated:** [May 1, 2007, 3:58pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229125 "2007-05-01T15:58:08Z")

</div>

Begin forwarded message:

---

## [Random ruby moment](https://www.ruby-forum.com/t/random-ruby-moment/103077)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 0\
**Last updated:** [May 1, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/random-ruby-moment/103077 "2007-05-01T15:56:08Z")

</div>

Playing Scrabble, I had AAMNNSW on my rack. Took me a moment to realise why I automatically wanted to play MINASWAN through an I :slight\_smile: martin

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [May 1, 2007, 2:44pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229117 "2007-05-01T14:44:57Z")

</div>

Begin forwarded message:

---

## [Ruby syntax question: instance.method(args) { more\_stuff }](https://www.ruby-forum.com/t/ruby-syntax-question-instance-method-args-more-stuff/103067)

<div class="topic-metadata">

**Author:** [@Nic\_D](https://www.ruby-forum.com/u/Nic_D)\
**Replies:** 3\
**Last updated:** [May 1, 2007, 2:42pm UTC](https://www.ruby-forum.com/t/ruby-syntax-question-instance-method-args-more-stuff/103067 "2007-05-01T14:42:28Z")

</div>

Hi, I’m having difficulty working out the following construct: img.write(“myimage.jpg”) { self.quality = 50 } In this example (source RMagick 1.15.0: Common Tasks), img is a RMagick::Image. The API says “You may als…

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [May 1, 2007, 1:55pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/147052 "2007-05-01T13:55:53Z")

</div>

Begin forwarded message:

---

## [RSpec 0.9.1 released](https://www.ruby-forum.com/t/rspec-0-9-1-released/103070)

<div class="topic-metadata">

**Author:** [@aslak\_hellesoy](https://www.ruby-forum.com/u/aslak_hellesoy)\
**Replies:** 0\
**Last updated:** [May 1, 2007, 1:43pm UTC](https://www.ruby-forum.com/t/rspec-0-9-1-released/103070 "2007-05-01T13:43:53Z")

</div>

The RSpec team is pleased to announce RSpec 0.9.1 (we skipped 0.9.0). RSpec is a framework that provides programmers with a Domain Specific Language to describe the behaviour of Ruby code with readable, executable exa…

---

## [Re: Ruby syntax question: instance.method(args) { more\_stuff](https://www.ruby-forum.com/t/re-ruby-syntax-question-instance-method-args-more-stuff/103069)

<div class="topic-metadata">

**Author:** [@Nic\_D](https://www.ruby-forum.com/u/Nic_D)\
**Replies:** 0\
**Last updated:** [May 1, 2007, 1:38pm UTC](https://www.ruby-forum.com/t/re-ruby-syntax-question-instance-method-args-more-stuff/103069 "2007-05-01T13:38:52Z")

</div>

Thanks a lot for the detailed reply, this is just what I needed!

---

## [Re: Ruby syntax question: instance.method(args) { more\_stuff](https://www.ruby-forum.com/t/re-ruby-syntax-question-instance-method-args-more-stuff/103068)

<div class="topic-metadata">

**Author:** [@Nic\_D](https://www.ruby-forum.com/u/Nic_D)\
**Replies:** 0\
**Last updated:** [May 1, 2007, 12:32pm UTC](https://www.ruby-forum.com/t/re-ruby-syntax-question-instance-method-args-more-stuff/103068 "2007-05-01T12:32:48Z")

</div>

Thanks, yes, I know about iterators and their use of blocks. But this isn’t one. And that doesn’t tell me why it uses self.quality and how I can inject my own value as @my\_object\_quality.

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

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