# Ruby

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

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

---

## [\[BUG: 1.9\] encoding warning](https://www.ruby-forum.com/t/bug-1-9-encoding-warning/159513)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 3\
**Last updated:** [July 16, 2009, 10:14am UTC](https://www.ruby-forum.com/t/bug-1-9-encoding-warning/159513 "2009-07-16T10:14:48Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!0J2\<$N$h$&$K!$e(B-v e$B$de(B -w e$BIU$-$Ne(B ruby e$B$Ge(B erb e$B$re(B require e$B$9$k$H!$e(B"coding: …" e$B$N\>l=j$,0c$&$h!$$H$$$&7Y9p$,=P$^$9!%e(B $ cat test.rb require ‘erb’ $ /tmp/trun…

---

## [Parse Word/HTML Docs for database inserts](https://www.ruby-forum.com/t/parse-word-html-docs-for-database-inserts/172164)

<div class="topic-metadata">

**Author:** [@msmith362](https://www.ruby-forum.com/u/msmith362)\
**Replies:** 3\
**Last updated:** [July 16, 2009, 8:26am UTC](https://www.ruby-forum.com/t/parse-word-html-docs-for-database-inserts/172164 "2009-07-16T08:26:30Z")

</div>

I am new to Ruby and have perused the forum but I will ask this question as I couldn’t seem to answer my questions with other posts. The documents have no structure except for a unique number that appears first in the…

---

## [Bit-struct gem](https://www.ruby-forum.com/t/bit-struct-gem/172165)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 3\
**Last updated:** [July 16, 2009, 8:25am UTC](https://www.ruby-forum.com/t/bit-struct-gem/172165 "2009-07-16T08:25:31Z")

</div>

Bit-struct is now a gem. It’s for accessing binary data in strings. Thanks to several folks on this list, particularly Markus F., for suggesting features. Examples and docs at: http://bit-struct.rubyforge.org/

---

## [\[1.8.7\]\[1.9.1\]\[tk\] $B\<+A0\<BAu$N3HD%(B widget $B$r;H$$$?$$\>l9g(B](https://www.ruby-forum.com/t/1-8-7-1-9-1-tk-b-a0-bau-n3hd-b-widget-b-r-h-l9g-b/166377)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 21\
**Last updated:** [July 16, 2009, 7:06am UTC](https://www.ruby-forum.com/t/1-8-7-1-9-1-tk-b-a0-bau-n3hd-b-widget-b-r-h-l9g-b/166377 "2009-07-16T07:06:05Z")

</div>

e$B2!ED$G$9!#e(B e$B:G6a$Ne(B(e$B!)e(B) Ruby/Tk e$B$K4X$7$F$465\<(;r$j$?$/%a!\<%k$7$^$7$?!#e(B e$BMQNc$H$7$F$O7k9=%K%C%A$@$m$&$H\<+Ii$7$F$$$^$9e(B(^^; Ruby/Tk e$B$Ne(B famous extention e$B%5%\]!\<%HI8=2=$K$h$j!"e(B e$B%\*%…

---

## [\[Bug:trunk\] Re: \[ruby-cvs:31281\] Ruby:r24063 (trunk): \* ext/tk/extconf.rb: New strategy for searchin](https://www.ruby-forum.com/t/bug-trunk-re-ruby-cvs-31281-ruby-r24063-trunk-ext-tk-extconf-rb-new-strategy-for-searchin/172072)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 14\
**Last updated:** [July 16, 2009, 6:05am UTC](https://www.ruby-forum.com/t/bug-trunk-re-ruby-cvs-31281-ruby-r24063-trunk-ext-tk-extconf-rb-new-strategy-for-searchin/172072 "2009-07-16T06:05:20Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B In message “\[ruby-cvs:31281\] Ruby:r24063 (trunk): \* ext/tk/extconf.rb: New strategy for searching Tcl/Tk libraries.” on Jul.13,2009 08:08:48, removed\_email\_address@doma…

---

## [Iconv emacs trouble](https://www.ruby-forum.com/t/iconv-emacs-trouble/172134)

<div class="topic-metadata">

**Author:** [@Francesco\_Malvezzi](https://www.ruby-forum.com/u/Francesco_Malvezzi)\
**Replies:** 1\
**Last updated:** [July 16, 2009, 5:37am UTC](https://www.ruby-forum.com/t/iconv-emacs-trouble/172134 "2009-07-16T05:37:52Z")

</div>

I’m finding a weird problem with iconv. I would like to convert from UTF-8 West European strings (like ‘pan carrè’) to the ASCII//TRANSLIT -\> ‘pan carre’ my system is: Linux bacedifo 2.6.18-6-xen-686 #1 SMP Fri Dec 12…

---

## [Rye 0.8](https://www.ruby-forum.com/t/rye-0-8/172174)

<div class="topic-metadata">

**Author:** [@Delano\_Mandelbaum](https://www.ruby-forum.com/u/Delano_Mandelbaum)\
**Replies:** 0\
**Last updated:** [July 16, 2009, 4:45am UTC](https://www.ruby-forum.com/t/rye-0-8/172174 "2009-07-16T04:45:53Z")

</div>

Rye 0.8.5 - Safely run shell commands on a bunch of machines in parallel (from Ruby) Rye is a Ruby abstraction for executing shell commands via SSH. By default, Rye errs on the side of caution by running in “safe-mode…

---

## [Genetic Programming (#212)](https://www.ruby-forum.com/t/genetic-programming-212/171515)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 5\
**Last updated:** [July 16, 2009, 4:28am UTC](https://www.ruby-forum.com/t/genetic-programming-212/171515 "2009-07-16T04:28:57Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Nooby stumped on installing ruby-pg gem](https://www.ruby-forum.com/t/nooby-stumped-on-installing-ruby-pg-gem/172160)

<div class="topic-metadata">

**Author:** [@Kenneth\_T](https://www.ruby-forum.com/u/Kenneth_T)\
**Replies:** 3\
**Last updated:** [July 16, 2009, 2:21am UTC](https://www.ruby-forum.com/t/nooby-stumped-on-installing-ruby-pg-gem/172160 "2009-07-16T02:21:00Z")

</div>

Complete Ruby noob, here. I want to go after postgres from Ruby on Windows to support a Ruby team. After a lot of googling trying to figure out how to get the ruby-pg gem loaded I finally noticed the Gem Package Manag…

---

## [Test::Unit advice - blocking method](https://www.ruby-forum.com/t/test-unit-advice-blocking-method/172110)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [July 15, 2009, 9:38pm UTC](https://www.ruby-forum.com/t/test-unit-advice-blocking-method/172110 "2009-07-15T21:38:38Z")

</div>

Hi all, I’ve got a method in the win32-clipboard library, Clipboard.notify\_change, that blocks until something changes in the clipboard. But I’m not sure how to test it. Basically, here’s what I’m trying to accompl…

---

## [Ruby SMTP server?](https://www.ruby-forum.com/t/ruby-smtp-server/172096)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 1\
**Last updated:** [July 15, 2009, 9:37pm UTC](https://www.ruby-forum.com/t/ruby-smtp-server/172096 "2009-07-15T21:37:09Z")

</div>

So, Slashdot linked to an interesting Zed rant today, which linked to this project: http://lamsonproject.org/ It’s actually not a bad idea, and I’d been nursing a similar idea for awhile, but as Zed says, “youâ€™re…

---

## [Println?](https://www.ruby-forum.com/t/println/172020)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 7\
**Last updated:** [July 15, 2009, 8:00pm UTC](https://www.ruby-forum.com/t/println/172020 "2009-07-15T20:00:05Z")

</div>

I’m wondering if someone could point out to me an equivalent of the java System.out.println method in the ruby standard lib. I.e. println 1,2,3 # concatenates, adds “\\n” Thanks much. =r

---

## [NoMethodError](https://www.ruby-forum.com/t/nomethoderror/172158)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [July 15, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/nomethoderror/172158 "2009-07-15T19:55:15Z")

</div>

\#simple ebay example require ‘rubygems’ require ‘scrubyt’ ebay\_data = Scrubyt::Extractor.define do fetch 'http://www.ebay.com/' fill\_textfield 'satitle', 'ipod' submit record "//table\[@class='nol'\]" do name "…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/172147)

<div class="topic-metadata">

**Author:** [@Kamlesh\_Mutha](https://www.ruby-forum.com/u/Kamlesh_Mutha)\
**Replies:** 2\
**Last updated:** [July 15, 2009, 6:57pm UTC](https://www.ruby-forum.com/t/unsubscribe/172147 "2009-07-15T18:57:33Z")

</div>

– Faith waiting in the heart of a seed promises a miracle of life which it can not prove! -Ravindranath Tagore

---

## [Require\_all 1.0.0: A wonderfully simple way to load your code](https://www.ruby-forum.com/t/require-all-1-0-0-a-wonderfully-simple-way-to-load-your-code/169827)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 11\
**Last updated:** [July 15, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/require-all-1-0-0-a-wonderfully-simple-way-to-load-your-code/169827 "2009-07-15T17:58:36Z")

</div>

require\_all A wonderfully simple way to load your code. http://github.com/tarcieri/require\_all/tree/master Tired of futzing around with require statements everywhere, littering your code with require File.dirname(FI…

---

## [Twelve rules of Ruby](https://www.ruby-forum.com/t/twelve-rules-of-ruby/172076)

<div class="topic-metadata">

**Author:** [@thepanu](https://www.ruby-forum.com/u/thepanu)\
**Replies:** 31\
**Last updated:** [July 15, 2009, 5:54pm UTC](https://www.ruby-forum.com/t/twelve-rules-of-ruby/172076 "2009-07-15T17:54:43Z")

</div>

Scott Adams of Dilbert fame talked about learning twelve concepts of something and in the progress become more knowledgeable about given subject than most of the other people. Original blogpost here: http://www.dilber…

---

## [Process.fork weirdness](https://www.ruby-forum.com/t/process-fork-weirdness/171978)

<div class="topic-metadata">

**Author:** [@janus](https://www.ruby-forum.com/u/janus)\
**Replies:** 11\
**Last updated:** [July 15, 2009, 5:36pm UTC](https://www.ruby-forum.com/t/process-fork-weirdness/171978 "2009-07-15T17:36:46Z")

</div>

Hi all, I’ve run into some strange problems when forking child processes and logging it in a file. Here’s a simplified example: test = open(“output.txt”, “w”) 1.upto(10) do |i| test.print(i.to\_s + “,”) Process.fork…

---

## [Problem while installing plugin from github](https://www.ruby-forum.com/t/problem-while-installing-plugin-from-github/172141)

<div class="topic-metadata">

**Author:** [@nishu](https://www.ruby-forum.com/u/nishu)\
**Replies:** 1\
**Last updated:** [July 15, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/problem-while-installing-plugin-from-github/172141 "2009-07-15T16:18:02Z")

</div>

I am trying to install few plugins hosted at github to my jruby on rails application. I am using this command jruby script/plugin install git://github.com/relevance/streamlined it results in – git: ‘init’ is not a g…

---

## [Search in string with regular expression](https://www.ruby-forum.com/t/search-in-string-with-regular-expression/172133)

<div class="topic-metadata">

**Author:** [@mickesommar](https://www.ruby-forum.com/u/mickesommar)\
**Replies:** 6\
**Last updated:** [July 15, 2009, 3:08pm UTC](https://www.ruby-forum.com/t/search-in-string-with-regular-expression/172133 "2009-07-15T15:08:24Z")

</div>

Hi all I’m trying to build a new string from a existing one. The original string is: my frog name is froggy I will pull out only: frog froggy I have tried the following: str1 = ‘my frog name is froggy’ str2 = str1\[/…

---

## [Trying to parse stream.twitter.com, please help](https://www.ruby-forum.com/t/trying-to-parse-stream-twitter-com-please-help/172113)

<div class="topic-metadata">

**Author:** [@caiwangqin](https://www.ruby-forum.com/u/caiwangqin)\
**Replies:** 7\
**Last updated:** [July 15, 2009, 10:13am UTC](https://www.ruby-forum.com/t/trying-to-parse-stream-twitter-com-please-help/172113 "2009-07-15T10:13:19Z")

</div>

I’m having no luck working on this, and it’s my first attempt at such a process. Here is the code as it is now. When I run the file, I’m testing it against my own twitter account, and I see in the ‘% Received’ it ge…

---

## [C# Overloads and IronRuby Classes](https://www.ruby-forum.com/t/c-overloads-and-ironruby-classes/172106)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 2\
**Last updated:** [July 15, 2009, 8:40am UTC](https://www.ruby-forum.com/t/c-overloads-and-ironruby-classes/172106 "2009-07-15T08:40:20Z")

</div>

Hi there, The next scenario worked for me on older versions but now the behavior changed and I’d like to know if the change is a bug or by design. This is my C# code: public class MyClass { public void A() { A(1); } …

---

## [Can we stop internal redirects](https://www.ruby-forum.com/t/can-we-stop-internal-redirects/172120)

<div class="topic-metadata">

**Author:** [@newbie123](https://www.ruby-forum.com/u/newbie123)\
**Replies:** 1\
**Last updated:** [July 15, 2009, 7:48am UTC](https://www.ruby-forum.com/t/can-we-stop-internal-redirects/172120 "2009-07-15T07:48:59Z")

</div>

Hi, I have been trying to write a ruby script using a mechanize library. There is an issue am not able to fix, which is internal re-directs. My script hits a link and that link re-directs to another link. I would lik…

---

## [C ext / threading / callback issue, ruby-1.9.1p129](https://www.ruby-forum.com/t/c-ext-threading-callback-issue-ruby-1-9-1p129/172041)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [July 15, 2009, 5:49am UTC](https://www.ruby-forum.com/t/c-ext-threading-callback-issue-ruby-1-9-1p129/172041 "2009-07-15T05:49:41Z")

</div>

Hi, I’ve never written a C extension for Ruby before, and I’m struggling with some demo code which uses C and/or Ruby pthreads, and a C or Ruby callback (address passed as an arg into the C lib). There’s a watcher …

---

## [Doubts about ruby](https://www.ruby-forum.com/t/doubts-about-ruby/172116)

<div class="topic-metadata">

**Author:** [@malev05](https://www.ruby-forum.com/u/malev05)\
**Replies:** 0\
**Last updated:** [July 15, 2009, 4:24am UTC](https://www.ruby-forum.com/t/doubts-about-ruby/172116 "2009-07-15T04:24:54Z")

</div>

Hi i’ve made an extension for sinatra using datamapper. And I based my code in some examples that I’ve found in github. Now, there are some parts of the code that are not very clear: http://pastie.org/546323 Why do I…

---

## [Using the FIPS compliant openssl libs](https://www.ruby-forum.com/t/using-the-fips-compliant-openssl-libs/172114)

<div class="topic-metadata">

**Author:** [@Tim\_U](https://www.ruby-forum.com/u/Tim_U)\
**Replies:** 0\
**Last updated:** [July 15, 2009, 3:22am UTC](https://www.ruby-forum.com/t/using-the-fips-compliant-openssl-libs/172114 "2009-07-15T03:22:35Z")

</div>

I have built the FIPS compliant openssl libraries on my machine and now would like to use that from ruby. I tried to build the openssl library using the new headers but that doesn’t work. Is there a way I could use t…

---

## [Stdout](https://www.ruby-forum.com/t/stdout/172100)

<div class="topic-metadata">

**Author:** [@arevert](https://www.ruby-forum.com/u/arevert)\
**Replies:** 7\
**Last updated:** [July 14, 2009, 10:35pm UTC](https://www.ruby-forum.com/t/stdout/172100 "2009-07-14T22:35:47Z")

</div>

Hi! I’m developing an application, that needs to execute some ruby files, and log the output in a txt file. The problem that i have is that i can’t take this output. Here is a piece of code: filesToExec.each { |file| …

---

## [IsRubyMethod](https://www.ruby-forum.com/t/isrubymethod/172039)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 2\
**Last updated:** [July 14, 2009, 10:32pm UTC](https://www.ruby-forum.com/t/isrubymethod/172039 "2009-07-14T22:32:47Z")

</div>

Hi, I remember Tomas has posted a code review about IsRubyMethod some time ago. I was looking for it in the code but i couldn’t find it. Is it still there? Thanks, Shay. Shay F. http://www.ironshay.com Follow m…

---

## [Hijack: Connect to an existing process with irb](https://www.ruby-forum.com/t/hijack-connect-to-an-existing-process-with-irb/171845)

<div class="topic-metadata">

**Author:** [@elliterate](https://www.ruby-forum.com/u/elliterate)\
**Replies:** 3\
**Last updated:** [July 14, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/hijack-connect-to-an-existing-process-with-irb/171845 "2009-07-14T22:07:09Z")

</div>

Hi, My new project ‘Hijack’ is pretty much useable now. It lets you connect to an already running ruby process and interact with it using irb as if it were a normal irb session. I’m sure the benefits of this are pr…

---

## [Sysread problems](https://www.ruby-forum.com/t/sysread-problems/172099)

<div class="topic-metadata">

**Author:** [@guraz](https://www.ruby-forum.com/u/guraz)\
**Replies:** 2\
**Last updated:** [July 14, 2009, 9:03pm UTC](https://www.ruby-forum.com/t/sysread-problems/172099 "2009-07-14T21:03:55Z")

</div>

I want to open a file and store its contents in an array. When I read the documentation for sysread, it seemed to be just what I wanted. However, when I actually run my code, it returns only part of the file successf…

---

## [A regex that does not contain comma](https://www.ruby-forum.com/t/a-regex-that-does-not-contain-comma/172074)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 20\
**Last updated:** [July 14, 2009, 8:50pm UTC](https://www.ruby-forum.com/t/a-regex-that-does-not-contain-comma/172074 "2009-07-14T20:50:33Z")

</div>

Hi Could anybody please tell how to write the validates\_format\_of a string(in rails) which is only valid when it does not contain a comma.For example The are valid hi welcome Hello h123 kk hh gg hh The are not v…

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

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