# Ruby

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

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

---

## [Grep a block of code](https://www.ruby-forum.com/t/grep-a-block-of-code/167397)

<div class="topic-metadata">

**Author:** [@beny18241](https://www.ruby-forum.com/u/beny18241)\
**Replies:** 2\
**Last updated:** [May 8, 2009, 11:00am UTC](https://www.ruby-forum.com/t/grep-a-block-of-code/167397 "2009-05-08T11:00:09Z")

</div>

Hi Lately someone gave me a task, to grep from csv file but a block of code. How to do it ? for example 2 3 4 5 How to use grep to give me all form file wich start with and end with I’ve tried that way… puts …

---

## [How to get rdoc documentation with merb\_generator?](https://www.ruby-forum.com/t/how-to-get-rdoc-documentation-with-merb-generator/167484)

<div class="topic-metadata">

**Author:** [@Gernot\_H](https://www.ruby-forum.com/u/Gernot_H)\
**Replies:** 0\
**Last updated:** [May 8, 2009, 9:16am UTC](https://www.ruby-forum.com/t/how-to-get-rdoc-documentation-with-merb-generator/167484 "2009-05-08T09:16:00Z")

</div>

Hi all, Our company spent a year programming with hardly any documentation. I’ve spent the last two weeks adding this in rdoc format to the controller and various library files. So now I need to generate the actual d…

---

## [Problem accessing java with jruby file](https://www.ruby-forum.com/t/problem-accessing-java-with-jruby-file/167482)

<div class="topic-metadata">

**Author:** [@nancys](https://www.ruby-forum.com/u/nancys)\
**Replies:** 0\
**Last updated:** [May 8, 2009, 9:02am UTC](https://www.ruby-forum.com/t/problem-accessing-java-with-jruby-file/167482 "2009-05-08T09:02:55Z")

</div>

Hi, I have a java file and a jruby file in same package(com.nancy) in same project. I am trying to access the java file by doing:- require’java’ include\_class ‘com.nancy.MyExample’ This throws me “cannot load java …

---

## [ActiveRecord and adapter to MSSQL for Ruby](https://www.ruby-forum.com/t/activerecord-and-adapter-to-mssql-for-ruby/167379)

<div class="topic-metadata">

**Author:** [@dedyshka](https://www.ruby-forum.com/u/dedyshka)\
**Replies:** 2\
**Last updated:** [May 8, 2009, 8:59am UTC](https://www.ruby-forum.com/t/activerecord-and-adapter-to-mssql-for-ruby/167379 "2009-05-08T08:59:28Z")

</div>

Hi. Please teach me how to install ActiveRecord and adapter to MSSQL for Ruby. Where can i download the activerecord-sqlserver-adapter gem? Thank you.

---

## [HighLine 1.5.1 - Now with Ruby 1.9 support!](https://www.ruby-forum.com/t/highline-1-5-1-now-with-ruby-1-9-support/167476)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 1\
**Last updated:** [May 8, 2009, 7:09am UTC](https://www.ruby-forum.com/t/highline-1-5-1-now-with-ruby-1-9-support/167476 "2009-05-08T07:09:31Z")

</div>

Hi folks, I’m happy to announce that HighLine should now be Ruby 1.9.1 as of version 1.5.1. compatible. Please let us know if you run into problems! What is HighLine? (from the README) HighLine was designed to ea…

---

## [How to break this down for use in a graph?](https://www.ruby-forum.com/t/how-to-break-this-down-for-use-in-a-graph/167367)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 5\
**Last updated:** [May 8, 2009, 4:59am UTC](https://www.ruby-forum.com/t/how-to-break-this-down-for-use-in-a-graph/167367 "2009-05-08T04:59:20Z")

</div>

Hi, I have been trying for many hours to figure out how to do this, and have yet to come up with a solution. It’s my lack of experience I’m sure and I hope someone can point me in the right direction. I have an Acti…

---

## [Memcache Replication](https://www.ruby-forum.com/t/memcache-replication/167391)

<div class="topic-metadata">

**Author:** [@barakathullah](https://www.ruby-forum.com/u/barakathullah)\
**Replies:** 2\
**Last updated:** [May 8, 2009, 4:03am UTC](https://www.ruby-forum.com/t/memcache-replication/167391 "2009-05-08T04:03:35Z")

</div>

Hi, I want to know that whether there is any possiblity for replicationg the data stored in memcache server among multiple memcache servers. I have 5 memcache servers in different places. I need to replicate the data…

---

## [Activerecord associations like class structure](https://www.ruby-forum.com/t/activerecord-associations-like-class-structure/167405)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 1\
**Last updated:** [May 8, 2009, 1:19am UTC](https://www.ruby-forum.com/t/activerecord-associations-like-class-structure/167405 "2009-05-08T01:19:36Z")

</div>

Hi, This question is based on another thread that helped me realize the initial idea I had about a library format was not good. How is it possible to mimic an ActiveRecord association like class structure? Something…

---

## [Code Review: Encodingsa1](https://www.ruby-forum.com/t/code-review-encodingsa1/167469)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 8, 2009, 1:14am UTC](https://www.ruby-forum.com/t/code-review-encodingsa1/167469 "2009-05-08T01:14:21Z")

</div>

tfpt review “/shelveset:EncodingsA1;REDMOND\\tomat” Comment : Implements IsAscii() on MutableString - the bit is calculated along with hashcode and invalidated each time a mutable operation is performed. Enables com…

---

## [Fwd: org.jruby.rack.RackInitializationException: Fcntl not supported on this platform](https://www.ruby-forum.com/t/fwd-org-jruby-rack-rackinitializationexception-fcntl-not-supported-on-this-platform/167466)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 1\
**Last updated:** [May 8, 2009, 12:26am UTC](https://www.ruby-forum.com/t/fwd-org-jruby-rack-rackinitializationexception-fcntl-not-supported-on-this-platform/167466 "2009-05-08T00:26:57Z")

</div>

FYI – forwarding to user@jruby list. Can anyone clear up this Fcntl issue for Barbara? /Nick ---------- Forwarded message ---------- From: Barbara R. removed\_email\_address@domain.invalid Date: Thu, May 7, 2009 at 12…

---

## [Inochi newbie question - error running WordCount example on windows](https://www.ruby-forum.com/t/inochi-newbie-question-error-running-wordcount-example-on-windows/162199)

<div class="topic-metadata">

**Author:** [@pabloq](https://www.ruby-forum.com/u/pabloq)\
**Replies:** 1\
**Last updated:** [May 8, 2009, 12:11am UTC](https://www.ruby-forum.com/t/inochi-newbie-question-error-running-wordcount-example-on-windows/162199 "2009-05-08T00:11:33Z")

</div>

Hi folks, I tried to run the example of WordCout but I got the following problem: E:\\projects\\word\_count\>rake test --trace (in E:/projects/word\_count) \*\* Invoke test (first\_time) \*\* Execute test c:/ruby/bin/ruby -w…

---

## [N00b: code logic (probably a 1-min-question)](https://www.ruby-forum.com/t/n00b-code-logic-probably-a-1-min-question/167424)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 6\
**Last updated:** [May 7, 2009, 11:56pm UTC](https://www.ruby-forum.com/t/n00b-code-logic-probably-a-1-min-question/167424 "2009-05-07T23:56:31Z")

</div>

Hi there, Why do I get ‘true’ when: I call: @agency.all\_agents\_done? and @gency has at least 3 Agents The Agency model is: class Agency \< ActiveRecord::Base has\_many :agents def all\_agents\_done? # (don't look …

---

## [The PickAxe book for Ruby 1.9 now in print](https://www.ruby-forum.com/t/the-pickaxe-book-for-ruby-1-9-now-in-print/167460)

<div class="topic-metadata">

**Author:** [@pond](https://www.ruby-forum.com/u/pond)\
**Replies:** 0\
**Last updated:** [May 7, 2009, 11:15pm UTC](https://www.ruby-forum.com/t/the-pickaxe-book-for-ruby-1-9-now-in-print/167460 "2009-05-07T23:15:31Z")

</div>

Hi folks! Just in case you missed the announcement elsewhere, I wanted to drop a line and let everyone know that Programming Ruby 1.9 is now in print and shipping, available in paperback and PDF from Pragmatic Booksh…

---

## [Using AutoItX3 object to find value in list - getting error](https://www.ruby-forum.com/t/using-autoitx3-object-to-find-value-in-list-getting-error/167441)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 1\
**Last updated:** [May 7, 2009, 10:32pm UTC](https://www.ruby-forum.com/t/using-autoitx3-object-to-find-value-in-list-getting-error/167441 "2009-05-07T22:32:17Z")

</div>

Hi I am using AutoIt inside my ruby script. The purpose for this is so that I can check if there is a value, specifically 3432432.exe in a list. I can’t figure out why the method ControlListView is not working. Other …

---

## [Re: Review: bugs](https://www.ruby-forum.com/t/re-review-bugs/167454)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [May 7, 2009, 10:08pm UTC](https://www.ruby-forum.com/t/re-review-bugs/167454 "2009-05-07T22:08:35Z")

</div>

---

## [Review: bugs](https://www.ruby-forum.com/t/review-bugs/167455)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 0\
**Last updated:** [May 7, 2009, 10:08pm UTC](https://www.ruby-forum.com/t/review-bugs/167455 "2009-05-07T22:08:35Z")

</div>

http://github.com/shri/ironruby/commit/e83c916a3a0554ce9d0e394d1c97c19e6004afa4 “numeric + someOtherObj” should call someOtherObj.method\_missing(:coerce) backtraces now include file names for builtin methods in IronR…

---

## [How can I trim top of file w/o disrupting other writers?](https://www.ruby-forum.com/t/how-can-i-trim-top-of-file-w-o-disrupting-other-writers/167360)

<div class="topic-metadata">

**Author:** [@bradjpeek](https://www.ruby-forum.com/u/bradjpeek)\
**Replies:** 2\
**Last updated:** [May 7, 2009, 8:40pm UTC](https://www.ruby-forum.com/t/how-can-i-trim-top-of-file-w-o-disrupting-other-writers/167360 "2009-05-07T20:40:52Z")

</div>

As a way to learn ruby, I wrote a method to trim the first “n” lines from a log file. I had planned to use it on a series of log files that are constantly growing. However, some of the programs that are appending …

---

## [Trouble using JRuby in Java](https://www.ruby-forum.com/t/trouble-using-jruby-in-java/167348)

<div class="topic-metadata">

**Author:** [@Saad\_Mahamood](https://www.ruby-forum.com/u/Saad_Mahamood)\
**Replies:** 4\
**Last updated:** [May 7, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/trouble-using-jruby-in-java/167348 "2009-05-07T19:55:06Z")

</div>

Hello, I’ve tried to follow the JRuby’s wiki advice and examples on how to utilise JRuby from Java, but I keep running into an exception that produces an exception which I can’t debug. The code I’m using to initiali…

---

## [Fw: Re: Ruby/DL Documentation](https://www.ruby-forum.com/t/fw-re-ruby-dl-documentation/167425)

<div class="topic-metadata">

**Author:** [@Aston](https://www.ruby-forum.com/u/Aston)\
**Replies:** 0\
**Last updated:** [May 7, 2009, 6:25pm UTC](https://www.ruby-forum.com/t/fw-re-ruby-dl-documentation/167425 "2009-05-07T18:25:24Z")

</div>

i guess this thread is more appropriate in ruby-talk rather than polluting ruby-core ----- Forwarded Message ---- From: Aston removed\_email\_address@domain.invalid To: removed\_email\_address@domain.invalid Sent: Wedne…

---

## [Nokogiri 1.3.0rc1 has been released!](https://www.ruby-forum.com/t/nokogiri-1-3-0rc1-has-been-released/167376)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 2\
**Last updated:** [May 7, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/nokogiri-1-3-0rc1-has-been-released/167376 "2009-05-07T18:18:57Z")

</div>

nokogiri version 1.3.0rc1 has been released! Thanks to herculean efforts by my nokogiri partner in crime, Mike Dalessio, nokogiri now works on JRuby 1.3.0RC1 via FFI. To install this prerelease gem do this: $ jgem i…

---

## [How write a synchronized class](https://www.ruby-forum.com/t/how-write-a-synchronized-class/167403)

<div class="topic-metadata">

**Author:** [@gdo](https://www.ruby-forum.com/u/gdo)\
**Replies:** 3\
**Last updated:** [May 7, 2009, 5:48pm UTC](https://www.ruby-forum.com/t/how-write-a-synchronized-class/167403 "2009-05-07T17:48:27Z")

</div>

Hello How do to write a synchronized class like in java for Ruby I try with a Mutex but if a method call another method of the same instance I obtain a Deadlock. Thanks Guillaume

---

## [Simple local network messaging](https://www.ruby-forum.com/t/simple-local-network-messaging/167362)

<div class="topic-metadata">

**Author:** [@veveve](https://www.ruby-forum.com/u/veveve)\
**Replies:** 1\
**Last updated:** [May 7, 2009, 4:49pm UTC](https://www.ruby-forum.com/t/simple-local-network-messaging/167362 "2009-05-07T16:49:44Z")

</div>

Hi, I’m fairly new to Ruby and programming and I’m working on building a very simple application to send text messages over a local network. I’m fairly confident I can work out the messaging side of things, Ruby’s soc…

---

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

<div class="topic-metadata">

**Author:** [@Sanjay\_Bahl](https://www.ruby-forum.com/u/Sanjay_Bahl)\
**Replies:** 0\
**Last updated:** [May 7, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/unsubscribe/167412 "2009-05-07T16:22:44Z")

</div>

On Thu, May 7, 2009 at 7:39 PM, Rolando A. removed\_email\_address@domain.invalid wrote:

---

## [Storing c pointers in ruby hash](https://www.ruby-forum.com/t/storing-c-pointers-in-ruby-hash/167349)

<div class="topic-metadata">

**Author:** [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Replies:** 5\
**Last updated:** [May 7, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/storing-c-pointers-in-ruby-hash/167349 "2009-05-07T16:09:48Z")

</div>

Hi all, I’m been banging my head on the keyboard the whole day trying to track a bug. I have a embedded ruby (branch 1\_9\_1, checked out today) running on a Objective-C project (if anyone’s interested, it’s this proje…

---

## [Modules and classes question](https://www.ruby-forum.com/t/modules-and-classes-question/167086)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 12\
**Last updated:** [May 7, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/modules-and-classes-question/167086 "2009-05-07T14:41:52Z")

</div>

Hi, This is a serious noob question. I am trying to write a small library and have the following situation: class Main //initializes connection def request(blabla) end end class Resource \< Main //different API c…

---

## [Removing Whitespace using regexp](https://www.ruby-forum.com/t/removing-whitespace-using-regexp/167266)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 6\
**Last updated:** [May 7, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/removing-whitespace-using-regexp/167266 "2009-05-07T14:21:53Z")

</div>

Hi, Previously I posted a topic on how to strip all html tags and getting the remaining text using regexp. Luckily I got one. This is the regexp: /(\[^\>\])(?=\<\[^\>\]?\>)/im In this case I’m able to get all the data betwee…

---

## [Latest Computers,laptops and softwares](https://www.ruby-forum.com/t/latest-computers-laptops-and-softwares/167392)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 7, 2009, 12:36pm UTC](https://www.ruby-forum.com/t/latest-computers-laptops-and-softwares/167392 "2009-05-07T12:36:15Z")

</div>

Get lot of infotmation related about lates computers,laptops and softwares for more info (http://in-computersandlaptops.blogspot.com

---

## [String issue](https://www.ruby-forum.com/t/string-issue/167388)

<div class="topic-metadata">

**Author:** [@pkatare](https://www.ruby-forum.com/u/pkatare)\
**Replies:** 2\
**Last updated:** [May 7, 2009, 11:53am UTC](https://www.ruby-forum.com/t/string-issue/167388 "2009-05-07T11:53:27Z")

</div>

Hello, I am trying to display the time spent in performing an activity in HTML format. The code below does that. If the time is 0 it shouldn’t show anything else it should show the “time” followed by “hours” word. " …

---

## [Webgen 0.5.8 released](https://www.ruby-forum.com/t/webgen-0-5-8-released/167389)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 0\
**Last updated:** [May 7, 2009, 11:43am UTC](https://www.ruby-forum.com/t/webgen-0-5-8-released/167389 "2009-05-07T11:43:58Z")

</div>

Hey everybody! webgen 0.5.8 has just been released! If you don’t know what webgen is, read the “What’s webgen?” section down below. This announcement is also available at http://webgen.rubyforge.org/news/release\_0\_5\_…

---

## [Fw: Re: Ruby/DL Documentation](https://www.ruby-forum.com/t/fw-re-ruby-dl-documentation/167390)

<div class="topic-metadata">

**Author:** [@Aston](https://www.ruby-forum.com/u/Aston)\
**Replies:** 0\
**Last updated:** [May 7, 2009, 11:38am UTC](https://www.ruby-forum.com/t/fw-re-ruby-dl-documentation/167390 "2009-05-07T11:38:05Z")

</div>

I think this thread makes more sense here instead of polluting core ML ----- Forwarded Message ---- From: Aston removed\_email\_address@domain.invalid To: removed\_email\_address@domain.invalid Sent: Wednesday, 6 May, 20…

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

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