# Ruby

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

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

---

## [Ruby/Tk](https://www.ruby-forum.com/t/ruby-tk/129917)

<div class="topic-metadata">

**Author:** [@toothyxdip](https://www.ruby-forum.com/u/toothyxdip)\
**Replies:** 9\
**Last updated:** [March 1, 2008, 10:26pm UTC](https://www.ruby-forum.com/t/ruby-tk/129917 "2008-03-01T22:26:37Z")

</div>

Ok i have a question how come when i press the button it adds one but then it doesnt do it again? Does it have to be in some kind of loop? require ‘tk’ number = 1 hello = TkRoot.new do title “Hello World” minsize(4…

---

## [Memory Allocation in low RAM environments](https://www.ruby-forum.com/t/memory-allocation-in-low-ram-environments/130679)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [March 1, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/memory-allocation-in-low-ram-environments/130679 "2008-03-01T20:27:44Z")

</div>

Reading up on garbage collection and memory allocation in Ruby and I’ve just learned of the fact that Ruby allocates a minimum heap of 8000kbytes. Is there anything I need to be wary of if reducing this to something …

---

## [Configuring Linux as a Firewall](https://www.ruby-forum.com/t/configuring-linux-as-a-firewall/130668)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 1, 2008, 8:07pm UTC](https://www.ruby-forum.com/t/configuring-linux-as-a-firewall/130668 "2008-03-01T20:07:44Z")

</div>

Configuring Linux as a Firewall \* Making installation choices \* Introducing iptables \* Using iptables commands \* Simplifying things with firewall GUIs \* Adding proxy functionality As Linux gains increasing acceptance i…

---

## [Webby 0.8.0](https://www.ruby-forum.com/t/webby-0-8-0/130544)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [March 1, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/webby-0-8-0/130544 "2008-03-01T20:05:24Z")

</div>

Webby version 0.8.0 (Apocalypse Cow) by Tim P. http://webby.rubyforge.org/ (the “Apocalypse Cow” release) == DESCRIPTION Webby is a super fantastic little website management system. It would be called a content man…

---

## [How to handle UDT with Win32OLE?](https://www.ruby-forum.com/t/how-to-handle-udt-with-win32ole/130669)

<div class="topic-metadata">

**Author:** [@shinwoo](https://www.ruby-forum.com/u/shinwoo)\
**Replies:** 0\
**Last updated:** [March 1, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/how-to-handle-udt-with-win32ole/130669 "2008-03-01T16:49:17Z")

</div>

I have a function in com dll which return a UDT(user defined type). How do I use win32OLE to receive this data? It seems like it didn’t return the UDT after the function call. I also found that ruby Win32OLE can’t han…

---

## [Float('1\_\_1')](https://www.ruby-forum.com/t/float-1-1/130663)

<div class="topic-metadata">

**Author:** [@Tadayoshi\_F](https://www.ruby-forum.com/u/Tadayoshi_F)\
**Replies:** 1\
**Last updated:** [March 1, 2008, 4:09pm UTC](https://www.ruby-forum.com/t/float-1-1/130663 "2008-03-01T16:09:25Z")

</div>

1.9 e$B$G!"e(BFloat(‘1\_\_1’) e$B$,%(%i!\<$K$J$j$^$;$s!#e(Bruby e$B\<+?H$N;z6g2r\<a$H0c$$e(B e$B$^$9$7!“e(B1.8 e$B$H$b0c$&$N$G!”%P%0$G$O$J$$$G$7$g$&$+!#e(B $ ruby19 -e “Float(‘1\_\_1’)” $ ruby19 -e “Integer(‘1\_\_1’)” -e:1:i…

---

## [Browser handling in ruby](https://www.ruby-forum.com/t/browser-handling-in-ruby/130661)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 1\
**Last updated:** [March 1, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/browser-handling-in-ruby/130661 "2008-03-01T15:31:13Z")

</div>

Hi, Is there anyway in ruby to handle the browser window(like in javascript)? Or is there any way to implement the javascript in ruby? Thanks in advance. Karthik

---

## [Can't use local gem, 1.8.6, IntelliJ](https://www.ruby-forum.com/t/cant-use-local-gem-1-8-6-intellij/130653)

<div class="topic-metadata">

**Author:** [@herasmus](https://www.ruby-forum.com/u/herasmus)\
**Replies:** 2\
**Last updated:** [March 1, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/cant-use-local-gem-1-8-6-intellij/130653 "2008-03-01T15:14:48Z")

</div>

Hi The objective: I am trying to use log4r. What I do: I write: require ‘log4r’ What happens: , but get this message: in \`require’: no such file to load – log4r (LoadError) The setting: I am using 1.8.6 and the Int…

---

## [Ruby 1.9.0-1 build failure: error: \`r15660' undeclared](https://www.ruby-forum.com/t/ruby-1-9-0-1-build-failure-error-r15660-undeclared/130659)

<div class="topic-metadata">

**Author:** [@Hiroshi\_Ichikawa](https://www.ruby-forum.com/u/Hiroshi_Ichikawa)\
**Replies:** 1\
**Last updated:** [March 1, 2008, 2:44pm UTC](https://www.ruby-forum.com/t/ruby-1-9-0-1-build-failure-error-r15660-undeclared/130659 "2008-03-01T14:44:39Z")

</div>

Gimitee$B$H$$$$$^$9!#e(B Ruby 1.9.0-1e$B$Ne(Bmakee$B$,\<:GT$7$^$9!#e(B $ ./configure --program-suffix=19 $ make gcc -g -O2 -I. -I.ext/include/i386-freebsd6.0 -I./include -I. -DRUBY\_EXPORT -o version.o -c version.c …

---

## [Re: Question about split method](https://www.ruby-forum.com/t/re-question-about-split-method/130658)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 0\
**Last updated:** [March 1, 2008, 12:45pm UTC](https://www.ruby-forum.com/t/re-question-about-split-method/130658 "2008-03-01T12:45:05Z")

</div>

Thanks for all of the tips about this question. I actually shortened the suggestion below to: “a.b. c! d?? e.”.scan(/.\*?\[.!?\]+/) This returns all of the sentences as elements of the array and includes the punctuation…

---

## [\[ANN\] Free IronRuby IDE](https://www.ruby-forum.com/t/ann-free-ironruby-ide/130657)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 0\
**Last updated:** [March 1, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/ann-free-ironruby-ide/130657 "2008-03-01T12:11:12Z")

</div>

For the benefit of people who may not frequent the IronRuby newsgroups, I thought you may like to know that SapphireSteel Software has just released the first alpha of the Ruby In Steel IDE For Iron Ruby. Here are the…

---

## [RuPy 2008](https://www.ruby-forum.com/t/rupy-2008/130656)

<div class="topic-metadata">

**Author:** [@bluszcz](https://www.ruby-forum.com/u/bluszcz)\
**Replies:** 0\
**Last updated:** [March 1, 2008, 12:00pm UTC](https://www.ruby-forum.com/t/rupy-2008/130656 "2008-03-01T12:00:51Z")

</div>

Hello. We invite you to take part in RuPy 2008 - Python & Ruby Conference, which will take place on 12th, 13th April 2008 at Adam Mickiewicz University in Poznan, Poland. This international event is organised for the…

---

## [Symbol#inspect should use rb\_str\_inspect](https://www.ruby-forum.com/t/symbol-inspect-should-use-rb-str-inspect/130643)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 0\
**Last updated:** [March 1, 2008, 4:00am UTC](https://www.ruby-forum.com/t/symbol-inspect-should-use-rb-str-inspect/130643 "2008-03-01T04:00:11Z")

</div>

e$B$3$s$K$A$Oe(B sheepman e$B$G$9!#e(B Symbol#inspect e$B$Ke(B force\_encoding e$B$^$G=PNO$5$l$F$$$^$9!#e(B $ ruby-1.9 -ve ‘p “e$B4A;ze(B”.encode(“UTF-16LE”).intern’ ruby 1.9.0 (2008-03-01 revision 15239) \[i686-linux\] …

---

## [Array#find!](https://www.ruby-forum.com/t/array-find/130638)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 5\
**Last updated:** [March 1, 2008, 3:22am UTC](https://www.ruby-forum.com/t/array-find/130638 "2008-03-01T03:22:04Z")

</div>

How to remove the first occurrence of something? a=\[1,2,3,4\] a.find!{ |e| a==2 } #=\> 2 But there is no #find!, how to define it? My solutions seem unduly complex. Thanks, T.

---

## [Outputting a txt file](https://www.ruby-forum.com/t/outputting-a-txt-file/130632)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 3\
**Last updated:** [March 1, 2008, 2:44am UTC](https://www.ruby-forum.com/t/outputting-a-txt-file/130632 "2008-03-01T02:44:40Z")

</div>

Hello, Probably a stupid question, but I can’t seem to get this to work. I can create the file, but when I open it, it is blank… create\_log = File.new(“sync\_log\_#{@date}.txt”, “a”) puts “sync Log for #{Time.now}” cr…

---

## [Rjb load errors, although installed](https://www.ruby-forum.com/t/rjb-load-errors-although-installed/130637)

<div class="topic-metadata">

**Author:** [@scootiepuff](https://www.ruby-forum.com/u/scootiepuff)\
**Replies:** 2\
**Last updated:** [March 1, 2008, 2:32am UTC](https://www.ruby-forum.com/t/rjb-load-errors-although-installed/130637 "2008-03-01T02:32:14Z")

</div>

hallo! i’m unable to use “require ‘rjb’” successfully, although rjb appears to have installed successfully. i am using ruby 1.8.6, irb 0.9.5, java 1.5.0, rjb 1.1.2, and os x 10.5.2. i was able to use the require lin…

---

## [Looking for good Ruby and Rails configuration for vim](https://www.ruby-forum.com/t/looking-for-good-ruby-and-rails-configuration-for-vim/130393)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 4\
**Last updated:** [March 1, 2008, 1:27am UTC](https://www.ruby-forum.com/t/looking-for-good-ruby-and-rails-configuration-for-vim/130393 "2008-03-01T01:27:43Z")

</div>

I am afraid I really like vi, but I would like some syntax highlighting, indentation, and block skeleton stuff like Dave and David recommend on page 27 of their agile book. I wonder if I make a wish here whether some…

---

## [Operator |=](https://www.ruby-forum.com/t/operator/130626)

<div class="topic-metadata">

**Author:** [@chinnakaruppan](https://www.ruby-forum.com/u/chinnakaruppan)\
**Replies:** 4\
**Last updated:** [March 1, 2008, 1:01am UTC](https://www.ruby-forum.com/t/operator/130626 "2008-03-01T01:01:53Z")

</div>

Hi, I am trying to under this operator |=.Has anybody got some documentation / online link to explain this… THnks Chinna

---

## [Proposed Solutions - Was](https://www.ruby-forum.com/t/proposed-solutions-was/130472)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 16\
**Last updated:** [February 29, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/proposed-solutions-was/130472 "2008-02-29T23:30:23Z")

</div>

On Tue, Feb 26, 2008 at 11:55 PM, James B. removed\_email\_address@domain.invalid wrote: That’s ridiculous. “#{@core\_feature} should be locked down!” It’s not that these claims are entirely untrue, it’s just that, i…

---

## [Model Commands](https://www.ruby-forum.com/t/model-commands/130618)

<div class="topic-metadata">

**Author:** [@mariko](https://www.ruby-forum.com/u/mariko)\
**Replies:** 2\
**Last updated:** [February 29, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/model-commands/130618 "2008-02-29T22:30:01Z")

</div>

I’d like to do something like this in my RoR code: name = “james” box = Box.find(1) box\_name = box.name Where “james” is an existing column in table Box. I try to do this but RoR tells me “undefined method \`name’ fo…

---

## [MacRuby](https://www.ruby-forum.com/t/macruby/130421)

<div class="topic-metadata">

**Author:** [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Replies:** 28\
**Last updated:** [February 29, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/macruby/130421 "2008-02-29T22:14:13Z")

</div>

Hi, I am honored to announce the beginning of the MacRuby project! MacRuby is a version of Ruby that runs on top of Objective-C. More precisely, MacRuby is currently a port of the Ruby 1.9 implementation for the Obje…

---

## [What is Exec format error in daemons](https://www.ruby-forum.com/t/what-is-exec-format-error-in-daemons/130619)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/what-is-exec-format-error-in-daemons/130619 "2008-02-29T22:05:53Z")

</div>

Exec format error - E:/TradingTools/Development/app/helpers/ twsMonitor.rb e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/ application.rb:109:in exec' e:/ruby/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons…

---

## [Problem writing inverse to java xor encoding function](https://www.ruby-forum.com/t/problem-writing-inverse-to-java-xor-encoding-function/130590)

<div class="topic-metadata">

**Author:** [@bensinc](https://www.ruby-forum.com/u/bensinc)\
**Replies:** 4\
**Last updated:** [February 29, 2008, 9:36pm UTC](https://www.ruby-forum.com/t/problem-writing-inverse-to-java-xor-encoding-function/130590 "2008-02-29T21:36:40Z")

</div>

Hi, I’m trying to create an inverse to the following Java function in Ruby. public static void encXORPass(byte\[\] raw, final int offset, final int size, int key) { int stop = size-8; int pos = 4 + offset; int edx; …

---

## [Convert characters from hex to string](https://www.ruby-forum.com/t/convert-characters-from-hex-to-string/130606)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 8\
**Last updated:** [February 29, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/convert-characters-from-hex-to-string/130606 "2008-02-29T21:28:24Z")

</div>

I looked around and found some similar postings to my problem but not exactly what I was looking for. I have a string that has some hex characters intermingled in with a normal string. I need to convert those characte…

---

## [Need a regex searching html code](https://www.ruby-forum.com/t/need-a-regex-searching-html-code/130438)

<div class="topic-metadata">

**Author:** [@chirantan](https://www.ruby-forum.com/u/chirantan)\
**Replies:** 17\
**Last updated:** [February 29, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/need-a-regex-searching-html-code/130438 "2008-02-29T20:46:05Z")

</div>

I have an html code into string. I want to retrieve the content (Can be any HTML code with any number of tags) present inside the div after the heading till the end of the div. Example, Tagline: Yippee Ki Yay Mo - J…

---

## [\[ANN\] Autumn 2.0: Easy, fresh, powerful IRC bots](https://www.ruby-forum.com/t/ann-autumn-2-0-easy-fresh-powerful-irc-bots/130612)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 8:17pm UTC](https://www.ruby-forum.com/t/ann-autumn-2-0-easy-fresh-powerful-irc-bots/130612 "2008-02-29T20:17:33Z")

</div>

Autumn 2.0 has arrived! This all-new version of Autumn Leaves, the IRC bot framework for Ruby, is much more powerful, while still being fun and easy to use. Autumn 2.0 includes an entirely new IRC library, written fr…

---

## [Beginner Help with code example from book](https://www.ruby-forum.com/t/beginner-help-with-code-example-from-book/130578)

<div class="topic-metadata">

**Author:** [@Joseph\_LSCasale](https://www.ruby-forum.com/u/Joseph_LSCasale)\
**Replies:** 5\
**Last updated:** [February 29, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/beginner-help-with-code-example-from-book/130578 "2008-02-29T19:41:40Z")

</div>

I am trying to understand how the following code knows not to count a tile that has been previously counted, its an example from Chris P.'s Learn to Program from Pragmatic Bookshelf. I understand how the first size = …

---

## [Math problem](https://www.ruby-forum.com/t/math-problem/130195)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 24\
**Last updated:** [February 29, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/math-problem/130195 "2008-02-29T19:38:51Z")

</div>

I am try to help my daughter: Problem father is 4 times older then his daughter. in 6 years he will be 3 times older what is the answer and how did you reach it. Thanks, a mom in CA

---

## [String interpolation method?](https://www.ruby-forum.com/t/string-interpolation-method/130403)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 11\
**Last updated:** [February 29, 2008, 7:28pm UTC](https://www.ruby-forum.com/t/string-interpolation-method/130403 "2008-02-29T19:28:14Z")

</div>

Ok, I’m being stupid probably… But I can’t spot a method to do string interpolation. I have a string… a = ‘bra#{c}ket’ The variable c isn’t available at the stage of setting that up. Hence the use of ‘’ instead of “…

---

## [WIN32OLE Question](https://www.ruby-forum.com/t/win32ole-question/130588)

<div class="topic-metadata">

**Author:** [@Brian\_Mac](https://www.ruby-forum.com/u/Brian_Mac)\
**Replies:** 2\
**Last updated:** [February 29, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/win32ole-question/130588 "2008-02-29T19:25:53Z")

</div>

newbie question from one not too familiar with windows ole… is there a way to determine if a windows application has win32ole automation capabilities? if i understand what i’ve read correctly, if a component is liste…

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

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