# Ruby

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

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

---

## [\[Bug #935\] child process forked from child thread does not call ruby\_cleanup](https://www.ruby-forum.com/t/bug-935-child-process-forked-from-child-thread-does-not-call-ruby-cleanup/156428)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 2\
**Last updated:** [January 19, 2009, 6:26am UTC](https://www.ruby-forum.com/t/bug-935-child-process-forked-from-child-thread-does-not-call-ruby-cleanup/156428 "2009-01-19T06:26:38Z")

</div>

Bug #935: child process forked from child thread does not call ruby\_cleanup http://redmine.ruby-lang.org/issues/show/935 e$B5/I\<\<Te(B: Yusuke E. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal \[ruby-dev:37624\] e$B$H40A…

---

## [\[BUG:1.9\] irb/xmp with empty input aborts](https://www.ruby-forum.com/t/bug-1-9-irb-xmp-with-empty-input-aborts/157980)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 1\
**Last updated:** [January 19, 2009, 5:48am UTC](https://www.ruby-forum.com/t/bug-1-9-irb-xmp-with-empty-input-aborts/157980 "2009-01-19T05:48:35Z")

</div>

Yuguie$B$G$9!#\<!$N$h$&$K$9$k$He(B\[BUG\]e$B$,=P$^$9!#e(B % ruby-1.9.1 -rirb/xmp \< /dev/null /Users/yugui/local/lib/ruby-1.9.1/1.9.1/irb/extend-command.rb:210: \[BUG\] get\_local\_var\_idx: -1 ruby 1.9.1p0 (2009-01-16 revisi…

---

## [Crate 0.2.1 Released](https://www.ruby-forum.com/t/crate-0-2-1-released/158079)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 5:08am UTC](https://www.ruby-forum.com/t/crate-0-2-1-released/158079 "2009-01-19T05:08:51Z")

</div>

crate version 0.2.1 has been released. gem install crate Home: http://copiousfreetime.rubyforge.org/crate Tutorial: Packaging an Application With Crate Crate is a developer tool to help package up your application …

---

## [Amalgalite 0.7.1 Released](https://www.ruby-forum.com/t/amalgalite-0-7-1-released/158077)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 4:26am UTC](https://www.ruby-forum.com/t/amalgalite-0-7-1-released/158077 "2009-01-19T04:26:46Z")

</div>

amalgalite version 0.7.1 has been released. gem install amalgalite http://copiousfreetime.rubyforge.org/amalgalite/ Amalgalite embeds the SQLite database engine in a ruby extension. There is no need to install SQLi…

---

## [Why eval is not failing in the third case ( c3)](https://www.ruby-forum.com/t/why-eval-is-not-failing-in-the-third-case-c3/158061)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 2\
**Last updated:** [January 19, 2009, 1:42am UTC](https://www.ruby-forum.com/t/why-eval-is-not-failing-in-the-third-case-c3/158061 "2009-01-19T01:42:20Z")

</div>

c1 = ‘hello’ eval c1 NameError: undefined local variable or method \`hello’ for main:Object c2 = ‘hello #{hi}’ =\> “hello #{hi}” eval c2 NameError: undefined local variable or method \`hello’ for main:Object …

---

## [How do i load ActiveSupport::Multibyte](https://www.ruby-forum.com/t/how-do-i-load-activesupport-multibyte/158071)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 0\
**Last updated:** [January 19, 2009, 1:32am UTC](https://www.ruby-forum.com/t/how-do-i-load-activesupport-multibyte/158071 "2009-01-19T01:32:36Z")

</div>

Hi, i’m trying to use this method… require ‘active\_support’ class String def translit ActiveSupport::Multibyte::Handlers::UTF8Handler.normalize(self,:d).split(//u).reject { |e| e.length \> 1 }.join end end and eve…

---

## [Converting multi-byte strings on Windows?](https://www.ruby-forum.com/t/converting-multi-byte-strings-on-windows/157942)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 1\
**Last updated:** [January 19, 2009, 1:30am UTC](https://www.ruby-forum.com/t/converting-multi-byte-strings-on-windows/157942 "2009-01-19T01:30:02Z")

</div>

basically i’m reading in a csv file in Windows and it contains a lot of multi-byte data (squigles, male-female signs etc.), now it’s going to be passed to mysql to insert into the database but because of these weird c…

---

## [What does "@@" mean?](https://www.ruby-forum.com/t/what-does-mean/158042)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 5\
**Last updated:** [January 18, 2009, 8:10pm UTC](https://www.ruby-forum.com/t/what-does-mean/158042 "2009-01-18T20:10:51Z")

</div>

In a ruby class, what does a variable “@@name” mean? Does it mean static variable? Does its subclass have access to this field?

---

## [Capturing the Ruby generated by Erb](https://www.ruby-forum.com/t/capturing-the-ruby-generated-by-erb/158012)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [January 18, 2009, 7:01pm UTC](https://www.ruby-forum.com/t/capturing-the-ruby-generated-by-erb/158012 "2009-01-18T19:01:26Z")

</div>

How can one capture the Ruby source file that gets generated from an Erb template? Thanks, Wes

---

## [Ruby json library trouble](https://www.ruby-forum.com/t/ruby-json-library-trouble/157752)

<div class="topic-metadata">

**Author:** [@lyes](https://www.ruby-forum.com/u/lyes)\
**Replies:** 6\
**Last updated:** [January 18, 2009, 5:40pm UTC](https://www.ruby-forum.com/t/ruby-json-library-trouble/157752 "2009-01-18T17:40:57Z")

</div>

Hi everybody I’m trying to export some data in the Json format using the json\_pure library I’ve well prepared my structure in my program and I used the generate method to get the Jon output. But, during the generati…

---

## [Help getting file names from directorys on windows](https://www.ruby-forum.com/t/help-getting-file-names-from-directorys-on-windows/158049)

<div class="topic-metadata">

**Author:** [@lostbit](https://www.ruby-forum.com/u/lostbit)\
**Replies:** 1\
**Last updated:** [January 18, 2009, 5:34pm UTC](https://www.ruby-forum.com/t/help-getting-file-names-from-directorys-on-windows/158049 "2009-01-18T17:34:12Z")

</div>

I am new to code writting, have to learn Ruby (windows) so I am trying to do some experaments working with files and directories. This code, (I thinks) creates an array called file. I can do some tricks to test that,…

---

## [Scraping off a Word document?](https://www.ruby-forum.com/t/scraping-off-a-word-document/157927)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 8\
**Last updated:** [January 18, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/scraping-off-a-word-document/157927 "2009-01-18T17:27:20Z")

</div>

Here’s a conceptual question. I have a Word mail merge, with a few dozen documents. There’s a certain field, let’s call in the Employee field, on each page. These documents are sorted in order of this field. What I’d …

---

## [Socket::Option](https://www.ruby-forum.com/t/socket-option/158053)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [January 18, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/socket-option/158053 "2009-01-18T17:13:54Z")

</div>

e$BDs0F$J$s$G$9$,!"e(BSocket::Option e$B%/%i%9$r:n$C$F!"e(B BasicSocket#getsockopt e$B$,e(B Socket::Option e$B%$%s%9%?%s%9$rJV$7!"e(B BasicSocket#setsockopt e$B$,e(B Socket::Option e$B%$%s%9%?%s%9$r\<u$1e(B e$BIU$1$k$…

---

## [IFL 2009: Call for Papers](https://www.ruby-forum.com/t/ifl-2009-call-for-papers/157824)

<div class="topic-metadata">

**Author:** [@IFL\_2009](https://www.ruby-forum.com/u/IFL_2009)\
**Replies:** 1\
**Last updated:** [January 18, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/ifl-2009-call-for-papers/157824 "2009-01-18T17:10:56Z")

</div>

Call for Papers IFL 2009 Seton Hall University SOUTH ORANGE, NJ, USA http://tltc.shu.edu/blogs/projects/IFL2009/ The 21st IFL symposium, IFL 2009, will be held for the first time in the USA. The hosting institution…

---

## [Bug in ruby (1.8.7) hash: assignment executes code](https://www.ruby-forum.com/t/bug-in-ruby-1-8-7-hash-assignment-executes-code/158047)

<div class="topic-metadata">

**Author:** [@saboteur](https://www.ruby-forum.com/u/saboteur)\
**Replies:** 1\
**Last updated:** [January 18, 2009, 3:33pm UTC](https://www.ruby-forum.com/t/bug-in-ruby-1-8-7-hash-assignment-executes-code/158047 "2009-01-18T15:33:20Z")

</div>

Tested with: ruby 1.8.7 (2008-08-11 patchlevel 72) \[i686-linux\] #!/usr/bin/env ruby $VERBOSE = true test\_hash=Hash\[“value” =\> exit\] puts “Never get’s executed.” exit is executed and stops the application. Is this a …

---

## [How can I format Time.now output](https://www.ruby-forum.com/t/how-can-i-format-time-now-output/158041)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 1\
**Last updated:** [January 18, 2009, 1:36pm UTC](https://www.ruby-forum.com/t/how-can-i-format-time-now-output/158041 "2009-01-18T13:36:41Z")

</div>

I use Time.now to get the current date and time. How can I format its output?

---

## [Sinatra 0.9.0 released!](https://www.ruby-forum.com/t/sinatra-0-9-0-released/158039)

<div class="topic-metadata">

**Author:** [@ryantate](https://www.ruby-forum.com/u/ryantate)\
**Replies:** 0\
**Last updated:** [January 18, 2009, 11:13am UTC](https://www.ruby-forum.com/t/sinatra-0-9-0-released/158039 "2009-01-18T11:13:33Z")

</div>

Sinatra is a DSL for quickly creating web-applications in Ruby with minimal effort. e.g., require 'rubygems' require 'sinatra' get '/' do 'Hello world!' end Run with \`ruby myapp.rb’ and view at http://localhost:4567…

---

## [String.tr bug?](https://www.ruby-forum.com/t/string-tr-bug/158033)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 18, 2009, 10:54am UTC](https://www.ruby-forum.com/t/string-tr-bug/158033 "2009-01-18T10:54:48Z")

</div>

Greetings, I found strange behaviour of string.tr: p “=+=/=”.tr("+/=", “,-@”) got “.,.-.” expected “@,@-@” Is this bug in ruby?

---

## [Building Ruby with Visual Studio 2005](https://www.ruby-forum.com/t/building-ruby-with-visual-studio-2005/158020)

<div class="topic-metadata">

**Author:** [@Time\_W](https://www.ruby-forum.com/u/Time_W)\
**Replies:** 1\
**Last updated:** [January 18, 2009, 9:53am UTC](https://www.ruby-forum.com/t/building-ruby-with-visual-studio-2005/158020 "2009-01-18T09:53:56Z")

</div>

Hello, I tried to build Ruby on Windows with Visual Studio 2005. I followed instructions in win32/README.win32. I started Visual Studio. I clicked on “Tools” and “Visual Studio 2005 Command Prompt” to get everything…

---

## [Rubytet-0.0.1 released!](https://www.ruby-forum.com/t/rubytet-0-0-1-released/158032)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 18, 2009, 7:01am UTC](https://www.ruby-forum.com/t/rubytet-0-0-1-released/158032 "2009-01-18T07:01:23Z")

</div>

RubyTet is a tetris clone. It is intended to be a reference implementation for my RbGooey library. License is under the GPLv3. Made with 100% fresh Ruby code and guaranteed to be totally libre! If it is not totally li…

---

## [Ruby/tk: Static text on a terminal window?](https://www.ruby-forum.com/t/ruby-tk-static-text-on-a-terminal-window/157972)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 2\
**Last updated:** [January 18, 2009, 4:57am UTC](https://www.ruby-forum.com/t/ruby-tk-static-text-on-a-terminal-window/157972 "2009-01-18T04:57:56Z")

</div>

I haven’t been able to find it, but is there a way to handle static text and screen seperation with TK? On a basic terminal? such as; scrollingtexxt scrollingtext scrollingtext –staticline– place for ‘gets’/user i…

---

## [Higher order ruby](https://www.ruby-forum.com/t/higher-order-ruby/157673)

<div class="topic-metadata">

**Author:** [@zslevi](https://www.ruby-forum.com/u/zslevi)\
**Replies:** 12\
**Last updated:** [January 18, 2009, 4:09am UTC](https://www.ruby-forum.com/t/higher-order-ruby/157673 "2009-01-18T04:09:34Z")

</div>

foo = lambda {|x| lambda {|y| return x+y}} foo.call(3)(4) Why this doesn’t work? I expected lamdas to behave like in SML.

---

## [Son of 10 things! (1.8 to 1.9 transition)](https://www.ruby-forum.com/t/son-of-10-things-1-8-to-1-9-transition/157913)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 9\
**Last updated:** [January 18, 2009, 3:42am UTC](https://www.ruby-forum.com/t/son-of-10-things-1-8-to-1-9-transition/157913 "2009-01-18T03:42:00Z")

</div>

Hi – I’ve posted an update to my recent “10 things to be aware of” post about the Ruby 1.8 to 1.9 transition: http://dablog.rubypal.com/2009/1/16/son-of-10-things-to-be-aware-of-in-ruby-1-9 It includes some new “thin…

---

## [Using Java .class files directly from JRuby](https://www.ruby-forum.com/t/using-java-class-files-directly-from-jruby/157534)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 3\
**Last updated:** [January 18, 2009, 1:37am UTC](https://www.ruby-forum.com/t/using-java-class-files-directly-from-jruby/157534 "2009-01-18T01:37:20Z")

</div>

I’m experimenting to see if I can get a gem that normally uses a jar to use the .class files instead. If this works I could package the gem with .class files instead of the jar and then more easily include it in with …

---

## [\[ADV\] MountainWest RubyConf registration is open](https://www.ruby-forum.com/t/adv-mountainwest-rubyconf-registration-is-open/158011)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [January 17, 2009, 9:46pm UTC](https://www.ruby-forum.com/t/adv-mountainwest-rubyconf-registration-is-open/158011 "2009-01-17T21:46:36Z")

</div>

Registration for MountainWest RubyConf is open. http://mtnwestrubyconf.org/ $100.00 March 13-14, 2009 Salt Lake City Public Library 210 E 400 S Salt Lake City, UT 84111 Speaker list: http://mtnwestrubyconf.org/200…

---

## [TkText widget: state(:disabled)](https://www.ruby-forum.com/t/tktext-widget-state-disabled/158009)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 0\
**Last updated:** [January 17, 2009, 8:26pm UTC](https://www.ruby-forum.com/t/tktext-widget-state-disabled/158009 "2009-01-17T20:26:12Z")

</div>

I have a TkText widget, and an input field. The text widget is disabled so that the user can’t type into it. However, I need to be able to put text into the widget (ouput from a MUD =D). The only way I can find to sto…

---

## [Dual boot system -- share installed gems](https://www.ruby-forum.com/t/dual-boot-system-share-installed-gems/157998)

<div class="topic-metadata">

**Author:** [@dkmd\_nielsen](https://www.ruby-forum.com/u/dkmd_nielsen)\
**Replies:** 1\
**Last updated:** [January 17, 2009, 5:47pm UTC](https://www.ruby-forum.com/t/dual-boot-system-share-installed-gems/157998 "2009-01-17T17:47:04Z")

</div>

I have a dual boot computer – Linux and XP. There is a shared data partition that the two access. Would it be possible to have the ruby gem repository on that shared drive such that my Ruby environment is the same n…

---

## [script\<LoadError\>](https://www.ruby-forum.com/t/script-loaderror/157947)

<div class="topic-metadata">

**Author:** [@basma](https://www.ruby-forum.com/u/basma)\
**Replies:** 1\
**Last updated:** [January 17, 2009, 5:19pm UTC](https://www.ruby-forum.com/t/script-loaderror/157947 "2009-01-17T17:19:50Z")

</div>

I have a problem with this command ,when I wont to generate the controller. Ruby script/generate controller there is a message says ruby Permission denied – script how can I fixed it? Thanx :slight\_smile:

---

## [Describing degerate dna strings](https://www.ruby-forum.com/t/describing-degerate-dna-strings/157878)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 11\
**Last updated:** [January 17, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/describing-degerate-dna-strings/157878 "2009-01-17T16:04:51Z")

</div>

I am working with strings of 4 letter alphabet a,c,t,g that describe biological dna sequences. sometimes a sequence can be described as ac\[ta\]cct meaning that at position 3 you are can have 't 'or an ‘a’ without chan…

---

## [Socket.rb](https://www.ruby-forum.com/t/socket-rb/157385)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [January 17, 2009, 2:06pm UTC](https://www.ruby-forum.com/t/socket-rb/157385 "2009-01-17T14:06:56Z")

</div>

Socket e$B$r;H$C$F$$$k$H!"@8@.$9$k$H$3$m$,e(B TCPSocket e$BEy$KHf$Y$Fe(B e$BITJX$J$N$G!"0J2\<$N$h$&$J%a%=%C%I$r$D$1$F$b$$$$$G$7$g$&$+!#e(B Socket.tcp(host, port, local\_host=nil, local\_port=nil) {|socket| … } Socket.tcp…

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

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