# Ruby

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

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

---

## [Gem buffer error (1.2.0)](https://www.ruby-forum.com/t/gem-buffer-error-1-2-0/146915)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/gem-buffer-error-1-2-0/146915 "2008-08-26T19:29:45Z")

</div>

When I execute some gem commands – “gem outdated” – I get a buffer error. I tried reinstalling gem with the “update\_rubygems” command, which worked, and still get the error. Also ran “gem cleanup”, which worked, and …

---

## [Bug in IRB](https://www.ruby-forum.com/t/bug-in-irb/146838)

<div class="topic-metadata">

**Author:** [@crazyhat](https://www.ruby-forum.com/u/crazyhat)\
**Replies:** 3\
**Last updated:** [August 26, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/bug-in-irb/146838 "2008-08-26T18:40:52Z")

</div>

Running ruby version ruby 1.8.6 (2007-03-13 patchlevel 0) \[i386-mswin32\] with Rails 1.2.3, getting the following error trying to create one of my app objects from the console: Errno::ENOMEM: Not enough space from c:/…

---

## [In\_place\_editor\_field doesn't work with Float column](https://www.ruby-forum.com/t/in-place-editor-field-doesnt-work-with-float-column/146883)

<div class="topic-metadata">

**Author:** [@palani](https://www.ruby-forum.com/u/palani)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/in-place-editor-field-doesnt-work-with-float-column/146883 "2008-08-26T18:26:48Z")

</div>

Hi Anyone please help me to solve in\_place\_editor\_field . Its working for me with Integers and Strings, but I get an error on Float fields. It says Undefined method \`size’ for 0.03:Float It does change the value in …

---

## [In\_place\_editor\_field doesn't work](https://www.ruby-forum.com/t/in-place-editor-field-doesnt-work/146897)

<div class="topic-metadata">

**Author:** [@palani](https://www.ruby-forum.com/u/palani)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 6:25pm UTC](https://www.ruby-forum.com/t/in-place-editor-field-doesnt-work/146897 "2008-08-26T18:25:03Z")

</div>

Hi, Please any one help me to solve in\_place\_editor\_field issue. I try to edit a price column in DB. The value is updated in DB but it throws error while updating page. please any one help me solve this issue.

---

## [Adding string and numbers](https://www.ruby-forum.com/t/adding-string-and-numbers/146833)

<div class="topic-metadata">

**Author:** [@iggysx](https://www.ruby-forum.com/u/iggysx)\
**Replies:** 6\
**Last updated:** [August 26, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/adding-string-and-numbers/146833 "2008-08-26T17:41:42Z")

</div>

i’m new at programing. and i was trying to figure out how you add numbers. or string? here is the coding puts ‘what is your first name?’ name1= gets.chomp puts ‘how about your middle?’ name2= gets.chomp puts ‘and w…

---

## [How to open Text File and then insert line in first position?](https://www.ruby-forum.com/t/how-to-open-text-file-and-then-insert-line-in-first-position/146899)

<div class="topic-metadata">

**Author:** [@pabloq](https://www.ruby-forum.com/u/pabloq)\
**Replies:** 3\
**Last updated:** [August 26, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/how-to-open-text-file-and-then-insert-line-in-first-position/146899 "2008-08-26T17:40:32Z")

</div>

Hi, I need to add a header to files, but I didn’t find how open files in append mode (‘a’) but positioned in first position. Does anyone know how to do that? Thanks

---

## [tinyMce validation problem?](https://www.ruby-forum.com/t/tinymce-validation-problem/146893)

<div class="topic-metadata">

**Author:** [@ravikanth](https://www.ruby-forum.com/u/ravikanth)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/tinymce-validation-problem/146893 "2008-08-26T16:10:47Z")

</div>

Hi, i am using the tinyMce text editor in my rails app.But how to write the java script validation for that textarea? my validation is: In that textarea all numbers are not allowed. I am getting the data from te…

---

## [\[Ruby 1.9 - Bug #282\] (Open) failure of test\_asctime(TestTime) on mswin32](https://www.ruby-forum.com/t/ruby-1-9-bug-282-open-failure-of-test-asctime-testtime-on-mswin32/143283)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 6\
**Last updated:** [August 26, 2008, 3:52pm UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-282-open-failure-of-test-asctime-testtime-on-mswin32/143283 "2008-08-26T15:52:33Z")

</div>

e$B%A%1%C%He(B #282 e$B$,Js9p$5$l$^$7$?!#e(B (by Usaku NAKAMURA) Bug #282: failure of test\_asctime(TestTime) on mswin32 http://redmine.ruby-lang.org/issues/show/282 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Ope…

---

## [$clipboard = Gtk::Clipboard.get('PRIMARY')... under windows](https://www.ruby-forum.com/t/clipboard-gtk-clipboard-get-primary-under-windows/146898)

<div class="topic-metadata">

**Author:** [@bikle](https://www.ruby-forum.com/u/bikle)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/clipboard-gtk-clipboard-get-primary-under-windows/146898 "2008-08-26T15:51:44Z")

</div>

I need to be able to read text that has been selected in another application under windows. Using $clipboard = Gtk::Clipboard.get(‘PRIMARY’) works fantastically well under Linux, but I’d like my application to work on…

---

## [\[Bug #409\] Can't modify frozen ... $B$N7?(B](https://www.ruby-forum.com/t/bug-409-cant-modify-frozen-b-n7-b/146887)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/bug-409-cant-modify-frozen-b-n7-b/146887 "2008-08-26T15:08:30Z")

</div>

e$B%A%1%C%He(B #409 e$B$,99?7$5$l$^$7$?!#e(B (by Shyouhei U.) e$B%+%F%4%je(B coree$B$+$ie(BDOCe$B$KJQ99e(B e$BM%@hEYe(B Normale$B$+$ie(BLowe$B$KJQ99e(B e$B0U?^$5$l$F$$$k$J$i$^$"$$$$$s$8$c$J$$$G$7$g$&$+!#e(B e$B$?$@!…

---

## [Log a stack trace](https://www.ruby-forum.com/t/log-a-stack-trace/146876)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 2\
**Last updated:** [August 26, 2008, 2:23pm UTC](https://www.ruby-forum.com/t/log-a-stack-trace/146876 "2008-08-26T14:23:03Z")

</div>

Hi, Is it possible to log a stack trace to a text file? Thanks Aidy

---

## [Enumerable object from a block](https://www.ruby-forum.com/t/enumerable-object-from-a-block/146478)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 2\
**Last updated:** [August 26, 2008, 12:56pm UTC](https://www.ruby-forum.com/t/enumerable-object-from-a-block/146478 "2008-08-26T12:56:17Z")

</div>

ã€€ãƒ–ãƒ­ãƒƒã‚¯ã§ç°¡å˜ã« Enumerable ãªã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆã‚’ä½œã‚Œã‚‹æ©Ÿèƒ½ã‚’è¿½åŠ ã—ã‚ˆã†ã¨æ€ã„ã¾ã™ãŒã€ã©ã†ã§ã—ã‚‡ã†ã‹ã€‚ ã€€ã„ã¡ã„ã¡ã‚¯ãƒ©ã‚¹ã‚’ä½œã£ãŸã‚Šã€ extend(Enumerable) ã—ã¦ç‰¹ç•°ãƒ…

---

## [\[Bug #437\] test\_strftime(TestTime) fails on Solaris](https://www.ruby-forum.com/t/bug-437-test-strftime-testtime-fails-on-solaris/145748)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 23\
**Last updated:** [August 26, 2008, 11:19am UTC](https://www.ruby-forum.com/t/bug-437-test-strftime-testtime-fails-on-solaris/145748 "2008-08-26T11:19:24Z")

</div>

Bug #437: test\_strftime(TestTime) fails on Solaris http://redmine.ruby-lang.org/issues/show/437 e$B5/I\<\<Te(B: Shugo M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal test\_strftime(TestTime) fails on Solaris. $ ./ruby-…

---

## [Regexp match and nil](https://www.ruby-forum.com/t/regexp-match-and-nil/146861)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 3\
**Last updated:** [August 26, 2008, 10:08am UTC](https://www.ruby-forum.com/t/regexp-match-and-nil/146861 "2008-08-26T10:08:17Z")

</div>

heres my function def remove\_for\_such\_and\_such(a\_string) if (%r{(.+)for.}i =~ a\_string) match = a\_string.match(%r{(.+)for.}i) a\_string = match\[1\].strip end a\_string end i want to know if that could be written bet…

---

## [Chronos - A project needs your help](https://www.ruby-forum.com/t/chronos-a-project-needs-your-help/146747)

<div class="topic-metadata">

**Author:** [@apeiros](https://www.ruby-forum.com/u/apeiros)\
**Replies:** 5\
**Last updated:** [August 26, 2008, 9:52am UTC](https://www.ruby-forum.com/t/chronos-a-project-needs-your-help/146747 "2008-08-26T09:52:27Z")

</div>

Summarized for those who don’t like long texts first :slight\_smile: What is Chronos? A high level library to deal with date, time, duration and intervals. Providing an interface for multiple calendary systems. Where …

---

## [\[Feature #498\] test/cgi/test\_cgi\_tag\_helper.rb$B$K%F%9%H$rDI2C(B](https://www.ruby-forum.com/t/feature-498-test-cgi-test-cgi-tag-helper-rb-b-k-f-9-h-rdi2c-b/146844)

<div class="topic-metadata">

**Author:** [@Takeyuki\_F](https://www.ruby-forum.com/u/Takeyuki_F)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 9:29am UTC](https://www.ruby-forum.com/t/feature-498-test-cgi-test-cgi-tag-helper-rb-b-k-f-9-h-rdi2c-b/146844 "2008-08-26T09:29:34Z")

</div>

Feature #498: test/cgi/test\_cgi\_tag\_helper.rbe$B$K%F%9%H$rDI2Ce(B http://redmine.ruby-lang.org/issues/show/498 e$B5/I\<\<Te(B: Takeyuki F. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal html3e$B$N%F%9%H$KO3$l$,$"$C$?$N$G…

---

## [Need your help orviews for distributed programming with ruby](https://www.ruby-forum.com/t/need-your-help-orviews-for-distributed-programming-with-ruby/196792)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 3\
**Last updated:** [August 26, 2008, 9:18am UTC](https://www.ruby-forum.com/t/need-your-help-orviews-for-distributed-programming-with-ruby/196792 "2008-08-26T09:18:59Z")

</div>

hi all, greetings, I have came across a situation where I want to send sms (Text Messages) and mails at a time to thousand’s/lac’s of users. The text may be a security or traffic alerts so its needed that this should…

---

## [Display day,month,year in combo box](https://www.ruby-forum.com/t/display-day-month-year-in-combo-box/146860)

<div class="topic-metadata">

**Author:** [@ganeshk](https://www.ruby-forum.com/u/ganeshk)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 9:05am UTC](https://www.ruby-forum.com/t/display-day-month-year-in-combo-box/146860 "2008-08-26T09:05:59Z")

</div>

Hi, Anybody know how to display day,year,month in single drop down if anybody know the solution plz reply me…

---

## [How this will look in ruby?](https://www.ruby-forum.com/t/how-this-will-look-in-ruby/146855)

<div class="topic-metadata">

**Author:** [@adm](https://www.ruby-forum.com/u/adm)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 9:00am UTC](https://www.ruby-forum.com/t/how-this-will-look-in-ruby/146855 "2008-08-26T09:00:13Z")

</div>

sorry for asking conversion and not doing it myself(since I’ve little to none knowledge of Ruby). Can somebody translate this code snippent in Ruby? sub formatfld { my $f = shift; join(’’, map(ucfirst, split(’\_’, $f…

---

## [RMagick write fails / to\_blob works](https://www.ruby-forum.com/t/rmagick-write-fails-to-blob-works/146816)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 7\
**Last updated:** [August 26, 2008, 8:28am UTC](https://www.ruby-forum.com/t/rmagick-write-fails-to-blob-works/146816 "2008-08-26T08:28:34Z")

</div>

I am trying to use @img.write(path) but it’s not working (zero bytes written). Using “to\_blob” works. f = Tempfile.new('tmp\_img') FAILING CODE: @img.write(f.path) WORKING CODE: File.open(f.path, ‘wb’) do |f| f.sy…

---

## [Need your help orviews for distributed programming with ruby](https://www.ruby-forum.com/t/need-your-help-orviews-for-distributed-programming-with-ruby/146850)

<div class="topic-metadata">

**Author:** [@saurabh\_purnaye](https://www.ruby-forum.com/u/saurabh_purnaye)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 7:35am UTC](https://www.ruby-forum.com/t/need-your-help-orviews-for-distributed-programming-with-ruby/146850 "2008-08-26T07:35:54Z")

</div>

hi all, greetings, I have came across a situation where I want to send sms (Text Messages) and mails at a time to thousand’s/lac’s of users. The text may be a security or traffic alerts so its needed that this should…

---

## [Webby 0.9.0 (Vegan Velociraptor)](https://www.ruby-forum.com/t/webby-0-9-0-vegan-velociraptor/146846)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 7:23am UTC](https://www.ruby-forum.com/t/webby-0-9-0-vegan-velociraptor/146846 "2008-08-26T07:23:01Z")

</div>

Webby version 0.9.0 by Tim P. http://webby.rubyforge.org/ (the “Vegan Velociraptor” release) == DESCRIPTION Webby is a fantastic little website management system. It would be called a content management system if i…

---

## [Which is faster for repetition: Ruby or SQL?](https://www.ruby-forum.com/t/which-is-faster-for-repetition-ruby-or-sql/146814)

<div class="topic-metadata">

**Author:** [@inari](https://www.ruby-forum.com/u/inari)\
**Replies:** 4\
**Last updated:** [August 26, 2008, 6:50am UTC](https://www.ruby-forum.com/t/which-is-faster-for-repetition-ruby-or-sql/146814 "2008-08-26T06:50:52Z")

</div>

Hey all, I was wondering if there was a general consensus for whether it’s faster to do repetitive queries solely through Ruby (as on an array), or to make multiple calls to a SQL database of some sort. For example, …

---

## [ActiveRecord/Oracle without Rails](https://www.ruby-forum.com/t/activerecord-oracle-without-rails/84758)

<div class="topic-metadata">

**Author:** [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Replies:** 9\
**Last updated:** [August 26, 2008, 5:11am UTC](https://www.ruby-forum.com/t/activerecord-oracle-without-rails/84758 "2008-08-26T05:11:30Z")

</div>

All - I’m attempting to write a data validation program using ActiveRecord and connecting to an Oracle 10g database. I’ve downloaded the ruby-oci8 package, double clicked it to install, and written a simple program (…

---

## [Passing a callback to ScriptObject.Invoke](https://www.ruby-forum.com/t/passing-a-callback-to-scriptobject-invoke/146597)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 5\
**Last updated:** [August 26, 2008, 3:42am UTC](https://www.ruby-forum.com/t/passing-a-callback-to-scriptobject-invoke/146597 "2008-08-26T03:42:37Z")

</div>

Hi everybody, I’m plugging in to an existing javascript library using invoke. I can successfully call my\_js\_object.invoke and get it to call different functions. They implemented a function called Observe that accep…

---

## [FYI Code Review: interpreted sites](https://www.ruby-forum.com/t/fyi-code-review-interpreted-sites/146836)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 3:30am UTC](https://www.ruby-forum.com/t/fyi-code-review-interpreted-sites/146836 "2008-08-26T03:30:52Z")

</div>

tfpt review “/shelveset:InterpretedSites7-PartI;REDMOND\\tomat” The first part of DLR interpreter improvements that has already been reviewed. The rest of the changes are awaiting DLR design review. Ruby changes: Remo…

---

## [ANN: Melbourne (Australia) Ruby user group this Thursday](https://www.ruby-forum.com/t/ann-melbourne-australia-ruby-user-group-this-thursday/146835)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 3:13am UTC](https://www.ruby-forum.com/t/ann-melbourne-australia-ruby-user-group-this-thursday/146835 "2008-08-26T03:13:18Z")

</div>

Hi everyone! It’s the Melbourne Ruby U. Group this Thursday (28th of August @ 6:30PM), and it’s being held at: Thoughtworks: Level 11, 155 Queen Street, Melbourne (SMS Mark on 0414 740 489 if you can’t scale skyscrap…

---

## [Undefined method \`push' for Array:Class](https://www.ruby-forum.com/t/undefined-method-push-for-array-class/146821)

<div class="topic-metadata">

**Author:** [@amanda](https://www.ruby-forum.com/u/amanda)\
**Replies:** 3\
**Last updated:** [August 25, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/undefined-method-push-for-array-class/146821 "2008-08-25T22:06:07Z")

</div>

hi there, I’m trying to add objects onto the end of an array and I’m getting a NoMethodError with the message “undefined method \`push’ for Array:Class”. This makes no sense to me as “push” should be defined for an Arr…

---

## [Code Review: DirFix](https://www.ruby-forum.com/t/code-review-dirfix/146818)

<div class="topic-metadata">

**Author:** [@Srivatsn\_Narayanan](https://www.ruby-forum.com/u/Srivatsn_Narayanan)\
**Replies:** 1\
**Last updated:** [August 25, 2008, 9:55pm UTC](https://www.ruby-forum.com/t/code-review-dirfix/146818 "2008-08-25T21:55:29Z")

</div>

Tfpt review /shelveset:DirFix;srivatsn Fixes RubyForge \[#21126\] Dir.glob \*\*/ returns duplicate entries. The code was enumerating the current folder’s and its subfolders’ files recursively and hence everything got coun…

---

## [Ruby & Robotics?](https://www.ruby-forum.com/t/ruby-robotics/146110)

<div class="topic-metadata">

**Author:** [@Michael\_Craig](https://www.ruby-forum.com/u/Michael_Craig)\
**Replies:** 4\
**Last updated:** [August 25, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/ruby-robotics/146110 "2008-08-25T21:54:54Z")

</div>

Hello all, Does anybody know if there are any good implementations of Ruby in basic robotics? I want to learn some robotics (basic ground-level stuff, i.e. how to control servos from a computer with ruby) and I don’…

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

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