# Ruby

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

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

---

## [Question on curses and ncurses](https://www.ruby-forum.com/t/question-on-curses-and-ncurses/146584)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 1\
**Last updated:** [September 12, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/question-on-curses-and-ncurses/146584 "2008-09-12T13:46:38Z")

</div>

I’m using Ruby on OS X, which comes with ncurses. If I ‘require curses’, will I still have access to all of the additional ncurses functionality? Or do I need to install an ncurses module? Thanks, Ken

---

## [JRuby's use of temp files](https://www.ruby-forum.com/t/jrubys-use-of-temp-files/148149)

<div class="topic-metadata">

**Author:** [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Replies:** 4\
**Last updated:** [September 12, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/jrubys-use-of-temp-files/148149 "2008-09-12T12:15:28Z")

</div>

When we run JRuby in a single JVM, it may be running more than one Web site’s code. We’d like to have control over where the temp files that get created for each of the sites are stored, for security purposes. Setting…

---

## [Using net::ssh shell to sudo to another user and execute commands](https://www.ruby-forum.com/t/using-net-ssh-shell-to-sudo-to-another-user-and-execute-commands/128418)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [September 12, 2008, 12:08pm UTC](https://www.ruby-forum.com/t/using-net-ssh-shell-to-sudo-to-another-user-and-execute-commands/128418 "2008-09-12T12:08:57Z")

</div>

The following program does not get past the part where sudo asks for a password. Any ideas ? This is run from windows onto a linux box, so I can’t use a local ssh command. it outputs connected cd Net::SSH.start(ho…

---

## [Cross compiling Ruby](https://www.ruby-forum.com/t/cross-compiling-ruby/148384)

<div class="topic-metadata">

**Author:** [@estro](https://www.ruby-forum.com/u/estro)\
**Replies:** 1\
**Last updated:** [September 12, 2008, 12:03pm UTC](https://www.ruby-forum.com/t/cross-compiling-ruby/148384 "2008-09-12T12:03:46Z")

</div>

Does anyone experience with Ruby source cross-compiling ? I need to cross-compile Ruby source on my Intel platform to run it on MIPS architecture (a small router based on Broadcom board/processor). Any helps or inform…

---

## [Jetty-rails v0.6 out](https://www.ruby-forum.com/t/jetty-rails-v0-6-out/148362)

<div class="topic-metadata">

**Author:** [@fabiokr](https://www.ruby-forum.com/u/fabiokr)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 5:28am UTC](https://www.ruby-forum.com/t/jetty-rails-v0-6-out/148362 "2008-09-12T05:28:31Z")

</div>

Hi all, JettyRails new version is released! http://jetty-rails.rubyforge.org. Please note that it is only working with JRuby 1.1.3 or JRuby 1.1.4-SNAPSHOT from trunk, due to a regression in JRuby 1.1.4 ( http://jira…

---

## [Supported caching solutions](https://www.ruby-forum.com/t/supported-caching-solutions/147860)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 2\
**Last updated:** [September 12, 2008, 5:23am UTC](https://www.ruby-forum.com/t/supported-caching-solutions/147860 "2008-09-12T05:23:16Z")

</div>

hello, What are the current supported caching APIs in JRuby (specifically rails)? A few posts here seem to indicate memcached will not work well or at all under JRuby so I am wondering what people are using for cach…

---

## [Rubyquiz summary late](https://www.ruby-forum.com/t/rubyquiz-summary-late/148363)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 3:41am UTC](https://www.ruby-forum.com/t/rubyquiz-summary-late/148363 "2008-09-12T03:41:26Z")

</div>

Apologies… paying too much attention to Plato (if that is even possible). I should have the summary for this week’s quiz out sometime tomorrow. – Matthew M. removed\_email\_address@domain.invalid

---

## [Code Review: Protocols4](https://www.ruby-forum.com/t/code-review-protocols4/148361)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 3:14am UTC](https://www.ruby-forum.com/t/code-review-protocols4/148361 "2008-09-12T03:14:28Z")

</div>

tfpt review “/shelveset:Protocols4;REDMOND\\tomat” Reviewed by John. Replaces explicit protocol method calls with \[DefaultProtocol\] attributes. Updates all methods in String and IO classes and some on other classes. …

---

## [RCov update](https://www.ruby-forum.com/t/rcov-update/148359)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 0\
**Last updated:** [September 12, 2008, 2:35am UTC](https://www.ruby-forum.com/t/rcov-update/148359 "2008-09-12T02:35:14Z")

</div>

Hey, A couple of things about RCov and jruby 1.1.4 If you use ruby-debug you also need to update to 0.10.2 of ruby-debug or you will get a failure in loading test\_help when you run rcov on your rails app. The fork …

---

## [Programming By Contract with Ruby](https://www.ruby-forum.com/t/programming-by-contract-with-ruby/148323)

<div class="topic-metadata">

**Author:** [@moredip](https://www.ruby-forum.com/u/moredip)\
**Replies:** 4\
**Last updated:** [September 12, 2008, 1:20am UTC](https://www.ruby-forum.com/t/programming-by-contract-with-ruby/148323 "2008-09-12T01:20:49Z")

</div>

Hi Folks, Does anyone know of a Programming By Contract framework for ruby? It seems like fertile ground, given the dynamic nature of the language. I’m imagining some kind of DSL that allows a developer to annotate a …

---

## [Jruby+Warbler dying start-up in Tomcat6](https://www.ruby-forum.com/t/jruby-warbler-dying-start-up-in-tomcat6/148257)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 6\
**Last updated:** [September 12, 2008, 12:44am UTC](https://www.ruby-forum.com/t/jruby-warbler-dying-start-up-in-tomcat6/148257 "2008-09-12T00:44:34Z")

</div>

I’ve warbled up my Jruby on Rails app and jars, but when I deploy it to my Tomcat6 env, I get this: SEVERE: Warning: error application could not be initialized org.jruby.rack.RackInitializationException: private metho…

---

## [Array#pack and String#unpack query](https://www.ruby-forum.com/t/array-pack-and-string-unpack-query/148334)

<div class="topic-metadata">

**Author:** [@mrillo](https://www.ruby-forum.com/u/mrillo)\
**Replies:** 2\
**Last updated:** [September 12, 2008, 12:27am UTC](https://www.ruby-forum.com/t/array-pack-and-string-unpack-query/148334 "2008-09-12T00:27:35Z")

</div>

Hi, In order to learn a bit of ruby I’m trying to make a module for reading and writing audio files in WAV format. First and foremost I’d like to read and write files with 32-bit float bitdepth. I’m using Array#pack …

---

## [FileUtils.chdir thread safety](https://www.ruby-forum.com/t/fileutils-chdir-thread-safety/148019)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 19\
**Last updated:** [September 11, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/fileutils-chdir-thread-safety/148019 "2008-09-11T22:11:01Z")

</div>

Hi, I’m getting this error: “warning: conflicting chdir during another chdir block” when running the following code: require ‘fileutils’ def blah(d) FileUtils.cd d do puts FileUtils.pwd sleep 2 puts FileUtils.pwd …

---

## [Junebug wiki - status?](https://www.ruby-forum.com/t/junebug-wiki-status/147579)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 2\
**Last updated:** [September 11, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/junebug-wiki-status/147579 "2008-09-11T21:19:21Z")

</div>

I’ve been trying to get a Junebug wiki running. There appears to be no documentation available. The website that is referred to in several places in Google search output has disappeared. I have successfully installed …

---

## [RoR problems with JRuby 1.1.4](https://www.ruby-forum.com/t/ror-problems-with-jruby-1-1-4/148275)

<div class="topic-metadata">

**Author:** [@Anders\_SSSSstergaar](https://www.ruby-forum.com/u/Anders_SSSSstergaar)\
**Replies:** 10\
**Last updated:** [September 11, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/ror-problems-with-jruby-1-1-4/148275 "2008-09-11T21:18:10Z")

</div>

Hi all, I’m trying to run a Ruby on Rails application in a Tomcat Java EE container using the latest JRuby (1.1.4). First of all, my environment is the following: OS: Mac OS X 10.5.4 (Intel) Java: Java™ 2 Runtime En…

---

## [Handle SQLServerException on Connection Failure from Ruby](https://www.ruby-forum.com/t/handle-sqlserverexception-on-connection-failure-from-ruby/148341)

<div class="topic-metadata">

**Author:** [@Nathan\_DSRoe](https://www.ruby-forum.com/u/Nathan_DSRoe)\
**Replies:** 1\
**Last updated:** [September 11, 2008, 9:15pm UTC](https://www.ruby-forum.com/t/handle-sqlserverexception-on-connection-failure-from-ruby/148341 "2008-09-11T21:15:13Z")

</div>

I’d like to handle a exception being thrown by SQL Server when the connection is lost in Ruby code, but the exception appears to kill the process. Here’s the stack trace: Exception in thread “main” com.microsoft.sql…

---

## [802.11a source codes?or any OFDM implementation on GNU Radio](https://www.ruby-forum.com/t/802-11a-source-codes-or-any-ofdm-implementation-on-gnu-radio/148320)

<div class="topic-metadata">

**Author:** [@mohsenb](https://www.ruby-forum.com/u/mohsenb)\
**Replies:** 2\
**Last updated:** [September 11, 2008, 9:02pm UTC](https://www.ruby-forum.com/t/802-11a-source-codes-or-any-ofdm-implementation-on-gnu-radio/148320 "2008-09-11T21:02:45Z")

</div>

Hi everyone, Does anyone know if there is any source code available for OFDM type standards like 802.11a/g/n? I’d appreciate it if anybody knows. Thanks a lot, Mohsen

---

## [How to create a table using ActiveRecord alone](https://www.ruby-forum.com/t/how-to-create-a-table-using-activerecord-alone/148311)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [September 11, 2008, 8:03pm UTC](https://www.ruby-forum.com/t/how-to-create-a-table-using-activerecord-alone/148311 "2008-09-11T20:03:29Z")

</div>

Hi all, I know I can create a table by running MySql first. I search some tutorials on google but they all talk about creating a table using MySql-like database then use ActiveRecord to connect them. I wonder if it…

---

## [Firmware source codes of a wlan chipset ( 802.11a/g/n )](https://www.ruby-forum.com/t/firmware-source-codes-of-a-wlan-chipset-802-11a-g-n/148324)

<div class="topic-metadata">

**Author:** [@mohsenb](https://www.ruby-forum.com/u/mohsenb)\
**Replies:** 0\
**Last updated:** [September 11, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/firmware-source-codes-of-a-wlan-chipset-802-11a-g-n/148324 "2008-09-11T19:02:17Z")

</div>

Hi everyone, Does anyone know a wlan chipset which codes, firmware and driver are free access to the public? for any of (802.11a/g/n) All of the works I’m gonna to do is doing some channel estimation and monitoring t…

---

## [Extract data from email - Tmail, Hpricot](https://www.ruby-forum.com/t/extract-data-from-email-tmail-hpricot/147719)

<div class="topic-metadata">

**Author:** [@geo](https://www.ruby-forum.com/u/geo)\
**Replies:** 4\
**Last updated:** [September 11, 2008, 6:36pm UTC](https://www.ruby-forum.com/t/extract-data-from-email-tmail-hpricot/147719 "2008-09-11T18:36:07Z")

</div>

Hi all, I have an html email that I would like to parse. The problem I’m having is removing all html tags and getting past the header information. Then I want to extract all the information per row to put into a data…

---

## [How to check if a webpage exists](https://www.ruby-forum.com/t/how-to-check-if-a-webpage-exists/148253)

<div class="topic-metadata">

**Author:** [@nutsmuggler](https://www.ruby-forum.com/u/nutsmuggler)\
**Replies:** 21\
**Last updated:** [September 11, 2008, 6:18pm UTC](https://www.ruby-forum.com/t/how-to-check-if-a-webpage-exists/148253 "2008-09-11T18:18:46Z")

</div>

This probably is trivial, but I have been googling for almost 2hs without finding a viable solution. Basically I have this rails app which uses hpricot to parse web pages. There’s this line page = Hpricot( open(url)) …

---

## [How can I set my shell to irb?](https://www.ruby-forum.com/t/how-can-i-set-my-shell-to-irb/148248)

<div class="topic-metadata">

**Author:** [@lpc2148](https://www.ruby-forum.com/u/lpc2148)\
**Replies:** 5\
**Last updated:** [September 11, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/how-can-i-set-my-shell-to-irb/148248 "2008-09-11T17:25:45Z")

</div>

Hi guys ! I’m running opensuse 11.0 . I would like to know 2 things : is it possible to change my shell from bash to irb ? if so,how ? ( I tried chsh , but with no success ) is it possible to add methods to irb , by …

---

## [Import problems with some classes](https://www.ruby-forum.com/t/import-problems-with-some-classes/148284)

<div class="topic-metadata">

**Author:** [@nguyenlinh](https://www.ruby-forum.com/u/nguyenlinh)\
**Replies:** 4\
**Last updated:** [September 11, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/import-problems-with-some-classes/148284 "2008-09-11T16:55:50Z")

</div>

I’m using JRuby 1.1.4 to test my Java code but I have problems importing some classes that I know exist in the required jar file. I have the following code: require ‘java’ require ‘\<my\_path\>/dbunit-2.2.3.jar’ impor…

---

## [Invalid directory](https://www.ruby-forum.com/t/invalid-directory/148305)

<div class="topic-metadata">

**Author:** [@s450r1](https://www.ruby-forum.com/u/s450r1)\
**Replies:** 0\
**Last updated:** [September 11, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/invalid-directory/148305 "2008-09-11T16:43:33Z")

</div>

This seems like the simpliest of questions. But I’m trying to install InstantRails 1.4 to run through a tutorial that is create for this version. And I can’t even pull up cd c:\\InstantRails on my command prompt. I get…

---

## [Getting values from array of arrays](https://www.ruby-forum.com/t/getting-values-from-array-of-arrays/148268)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 5\
**Last updated:** [September 11, 2008, 1:40pm UTC](https://www.ruby-forum.com/t/getting-values-from-array-of-arrays/148268 "2008-09-11T13:40:41Z")

</div>

I have a drop down list in my view. In my model I have the following: ARTICLE\_CATEGORIES = \[ \[“News”, 1\], \[“Article”, 2\], \[“Review”, 3\] \] validates\_inclusion\_of :category, :in =\> ARTICLE\_CATEGORIES.map { |disp, valu…

---

## [IRC logs moved to http://logs.jruby.org/jruby/latest](https://www.ruby-forum.com/t/irc-logs-moved-to-http-logs-jruby-org-jruby-latest/148173)

<div class="topic-metadata">

**Author:** [@munshkr](https://www.ruby-forum.com/u/munshkr)\
**Replies:** 2\
**Last updated:** [September 11, 2008, 12:38pm UTC](https://www.ruby-forum.com/t/irc-logs-moved-to-http-logs-jruby-org-jruby-latest/148173 "2008-09-11T12:38:27Z")

</div>

Thanks to Tom we now have the logs at a sensible location: http://logs.jruby.org/jruby/latest Please update bookmarks etc. Apologies for the inconvenience. Damian To unsubscribe from this list, please visit: http:/…

---

## [Blocks and scoping question](https://www.ruby-forum.com/t/blocks-and-scoping-question/148286)

<div class="topic-metadata">

**Author:** [@mischa](https://www.ruby-forum.com/u/mischa)\
**Replies:** 5\
**Last updated:** [September 11, 2008, 10:39am UTC](https://www.ruby-forum.com/t/blocks-and-scoping-question/148286 "2008-09-11T10:39:18Z")

</div>

Hello, The following makes sense to me: lambda {|x| puts x; \[1,2\].collect{|x| x+1} }.call(“aaa”) aaa =\> \[2, 3\] The following does not so much: lambda {|x| puts x; \[1,2\].collect{|x| x+1}; puts x }.call(“aaa”) aaa …

---

## [How to execute files or commands in ruby?](https://www.ruby-forum.com/t/how-to-execute-files-or-commands-in-ruby/148235)

<div class="topic-metadata">

**Author:** [@F3leR\_F3leR](https://www.ruby-forum.com/u/F3leR_F3leR)\
**Replies:** 8\
**Last updated:** [September 11, 2008, 10:31am UTC](https://www.ruby-forum.com/t/how-to-execute-files-or-commands-in-ruby/148235 "2008-09-11T10:31:41Z")

</div>

Hi! This is mi first message i’m new and i’m spanish if you are spanish please contact me. My question is: How I can execute files or commands in the system? Thanks for reading and have a nice day!

---

## [Equation Graphing (#176)](https://www.ruby-forum.com/t/equation-graphing-176/147804)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 4\
**Last updated:** [September 11, 2008, 9:57am UTC](https://www.ruby-forum.com/t/equation-graphing-176/147804 "2008-09-11T09:57:41Z")

</div>

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

---

## [Not enough storage is available to process this command](https://www.ruby-forum.com/t/not-enough-storage-is-available-to-process-this-command/148270)

<div class="topic-metadata">

**Author:** [@daborg69](https://www.ruby-forum.com/u/daborg69)\
**Replies:** 0\
**Last updated:** [September 11, 2008, 5:33am UTC](https://www.ruby-forum.com/t/not-enough-storage-is-available-to-process-this-command/148270 "2008-09-11T05:33:48Z")

</div>

Hi, I’m trying to open a pretty small file (~70k) and read its contents, but IR is telling me that I don’t have enough memory available to process it. Does anyone have any ideas what might be causing this? Thanks, -…

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

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