# Ruby

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

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

---

## [Iterating over directories](https://www.ruby-forum.com/t/iterating-over-directories/165554)

<div class="topic-metadata">

**Author:** [@dafydd](https://www.ruby-forum.com/u/dafydd)\
**Replies:** 5\
**Last updated:** [April 15, 2009, 9:31am UTC](https://www.ruby-forum.com/t/iterating-over-directories/165554 "2009-04-15T09:31:58Z")

</div>

I got this oneliner that isn’t producing the output I was expecting (it printing all of the directories in the linux root directory). irb(main):012:0\> Dir.new("/").each { |name| puts name if File.directory?(name) } … …

---

## [Save image in local machine](https://www.ruby-forum.com/t/save-image-in-local-machine/165553)

<div class="topic-metadata">

**Author:** [@jazzezravi](https://www.ruby-forum.com/u/jazzezravi)\
**Replies:** 3\
**Last updated:** [April 15, 2009, 8:39am UTC](https://www.ruby-forum.com/t/save-image-in-local-machine/165553 "2009-04-15T08:39:08Z")

</div>

Hi All, I want to save this image in my local machine with ruby code Note: I did with Watir gem. But I want to do it another simple way. Thanks in advance, P.Raveendran

---

## [Problem checking out iron ruby source](https://www.ruby-forum.com/t/problem-checking-out-iron-ruby-source/164930)

<div class="topic-metadata">

**Author:** [@Antti\_Karanta](https://www.ruby-forum.com/u/Antti_Karanta)\
**Replies:** 4\
**Last updated:** [April 15, 2009, 7:42am UTC](https://www.ruby-forum.com/t/problem-checking-out-iron-ruby-source/164930 "2009-04-15T07:42:18Z")

</div>

Hi! I tried to check out iron ruby sources following the instructions in IronRuby.net / Get IronRuby but bumped into problems: nak@NW32 /cygdrive/c/programs/dotnet/ironruby $ git clone git://github.com/ironruby/ironr…

---

## [\[BUG:1.9\] Dir.glob should not convert entries on UNIX](https://www.ruby-forum.com/t/bug-1-9-dir-glob-should-not-convert-entries-on-unix/165298)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 4\
**Last updated:** [April 15, 2009, 5:07am UTC](https://www.ruby-forum.com/t/bug-1-9-dir-glob-should-not-convert-entries-on-unix/165298 "2009-04-15T05:07:48Z")

</div>

e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B File.open e$B$NF0:n$H@09g@-$r;}$?$;$k$?$a$K!"e(BDir.glob e$B$Oe(B UNIX e$B\>e$G$O!"e(B e$BM?$($i$l$?J8;zNs$H%U%!%$%k%7%9%F%\`$+$iF@$i$l$?J8;zNs$r!"JQ49$;$:e(B e$B$=$N$^$^%P%$%HNs$…

---

## [Date.parse 1.8 vs 1.9](https://www.ruby-forum.com/t/date-parse-1-8-vs-1-9/165545)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 5\
**Last updated:** [April 15, 2009, 4:46am UTC](https://www.ruby-forum.com/t/date-parse-1-8-vs-1-9/165545 "2009-04-15T04:46:10Z")

</div>

In attempting to make a small library of mine 1.9 compatible I have run across an inconsistency in date parsing. Ruby 1.8: puts Date.parse(“4/12/2009”) 2009-04-12 puts Date.parse(“4/30/2009”) 2009-04-30 Ru…

---

## [Ruby, SQLite, and MAMP](https://www.ruby-forum.com/t/ruby-sqlite-and-mamp/165542)

<div class="topic-metadata">

**Author:** [@nielsen](https://www.ruby-forum.com/u/nielsen)\
**Replies:** 1\
**Last updated:** [April 15, 2009, 2:07am UTC](https://www.ruby-forum.com/t/ruby-sqlite-and-mamp/165542 "2009-04-15T02:07:00Z")

</div>

Hello, I’m running a Ruby development environment on my computer and have MySQL & SQLite through MAMP. I am unable to install the sqlite gem, and get the following error: Building native extensions. This could take…

---

## [JOB Opportunity in San Diego; Ruby on Rails](https://www.ruby-forum.com/t/job-opportunity-in-san-diego-ruby-on-rails/165540)

<div class="topic-metadata">

**Author:** [@kristinekorrsd](https://www.ruby-forum.com/u/kristinekorrsd)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 1:21am UTC](https://www.ruby-forum.com/t/job-opportunity-in-san-diego-ruby-on-rails/165540 "2009-04-15T01:21:36Z")

</div>

Hi All, I have a full time, direct hire Ruby on Rails development position in San Diego where we are looking for a developer with minimum 6 months to 1 year of professional Ruby on Rails experience. This will be worki…

---

## [Headers and page redirecting](https://www.ruby-forum.com/t/headers-and-page-redirecting/165539)

<div class="topic-metadata">

**Author:** [@devo9er](https://www.ruby-forum.com/u/devo9er)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 12:57am UTC](https://www.ruby-forum.com/t/headers-and-page-redirecting/165539 "2009-04-15T00:57:43Z")

</div>

I am creating a simple contact form with field validation to make sure users are entering valid data. I am posting the form data via CGI to the same page so it can run the validation, if there are errors the page is t…

---

## [Namespace Conflict System.Linq](https://www.ruby-forum.com/t/namespace-conflict-system-linq/165454)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 1\
**Last updated:** [April 15, 2009, 12:40am UTC](https://www.ruby-forum.com/t/namespace-conflict-system-linq/165454 "2009-04-15T00:40:27Z")

</div>

Hi, I host an IronRuby engine in my app and get a lot of compiler warnings about duplicate definitions for classes in System.Linq. In the past it wasn’t much of an issue but now that I have started using some Linq fu…

---

## [REXML raw all doesn't seem to work](https://www.ruby-forum.com/t/rexml-raw-all-doesnt-seem-to-work/165536)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 0\
**Last updated:** [April 14, 2009, 11:50pm UTC](https://www.ruby-forum.com/t/rexml-raw-all-doesnt-seem-to-work/165536 "2009-04-14T23:50:41Z")

</div>

Hi, I’m trying to modify the contents of an XML document (read from file, add nodes, write to file) and I have to make sure that I do NOT escape any characters. The REXML documentation says that you should use :raw =\>…

---

## [Git pull](https://www.ruby-forum.com/t/git-pull/165530)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [April 14, 2009, 11:02pm UTC](https://www.ruby-forum.com/t/git-pull/165530 "2009-04-14T23:02:05Z")

</div>

After I get code review on my changes, and Shri’s changes from my code review, I’ll be pulling changes in. Am I missing anyone? JD

---

## [A challenge: generate web colors for tree nodes](https://www.ruby-forum.com/t/a-challenge-generate-web-colors-for-tree-nodes/165476)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [April 14, 2009, 9:36pm UTC](https://www.ruby-forum.com/t/a-challenge-generate-web-colors-for-tree-nodes/165476 "2009-04-14T21:36:19Z")

</div>

hey all here’s a nice little ruby challenge to welcome everyone back after easter: I have a long (about 1100) list of elements (class name Property), arranged into a tree structure. I want each node to have its own …

---

## [Re: Code Review: Fixes for File.dirname](https://www.ruby-forum.com/t/re-code-review-fixes-for-file-dirname/165323)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 1\
**Last updated:** [April 14, 2009, 9:15pm UTC](https://www.ruby-forum.com/t/re-code-review-fixes-for-file-dirname/165323 "2009-04-14T21:15:46Z")

</div>

And now with the actual review link =P http://github.com/jschementi/ironruby/commit/689aeec6046bc8ba76016f6dfa1bd947e8e3ce15 From: Jimmy S. Sent: Sunday, April 12, 2009 12:56 AM To: removed\_email\_address@domain.inval…

---

## [Review: Misc fixes](https://www.ruby-forum.com/t/review-misc-fixes/165464)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [April 14, 2009, 9:13pm UTC](https://www.ruby-forum.com/t/review-misc-fixes/165464 "2009-04-14T21:13:25Z")

</div>

---

## [\[SUMMARY\] Restoring Data From SQL (#199)](https://www.ruby-forum.com/t/summary-restoring-data-from-sql-199/165517)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 1\
**Last updated:** [April 14, 2009, 8:44pm UTC](https://www.ruby-forum.com/t/summary-restoring-data-from-sql-199/165517 "2009-04-14T20:44:01Z")

</div>

No submissions this week (there may have been a glitch causing this not to have even been posted to the mailing list, so that might explain it…) Here’s the solution that I ended up using: file\_names = Dir\['PROD\_\*'\] …

---

## [Argument types](https://www.ruby-forum.com/t/argument-types/165507)

<div class="topic-metadata">

**Author:** [@krasba](https://www.ruby-forum.com/u/krasba)\
**Replies:** 8\
**Last updated:** [April 14, 2009, 7:40pm UTC](https://www.ruby-forum.com/t/argument-types/165507 "2009-04-14T19:40:04Z")

</div>

The documentation of the standard classes/methods never mention of what type/class an argument must be. For example let’s look at the subscript of an Array. There is the form “array\[index\]”. But of what Type must the …

---

## [Deployment Problem](https://www.ruby-forum.com/t/deployment-problem/165491)

<div class="topic-metadata">

**Author:** [@josefslerka](https://www.ruby-forum.com/u/josefslerka)\
**Replies:** 1\
**Last updated:** [April 14, 2009, 7:39pm UTC](https://www.ruby-forum.com/t/deployment-problem/165491 "2009-04-14T19:39:02Z")

</div>

Hi Guys, I am having quite a hard time deploying my app to glassfish v2. I migrated my running app, from rails 2.0.2 to 2.3.0. i am using netbeans, and i am using webrick in development, and everything works fine. I…

---

## [Lone Star Ruby Conference 2009 - Now Accepting Talk & Training Submissions](https://www.ruby-forum.com/t/lone-star-ruby-conference-2009-now-accepting-talk-training-submissions/196939)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 14, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/lone-star-ruby-conference-2009-now-accepting-talk-training-submissions/196939 "2009-04-14T17:15:36Z")

</div>

Lone Star Ruby Conference 2009 (Thu-Sat) August 27-29, 2009 Norris Conference Center Austin, TX Greetings The third annual Lone Star Ruby Conference is getting under way by opening the call for speakers. This year…

---

## [Double underscore nomenclature in Python](https://www.ruby-forum.com/t/double-underscore-nomenclature-in-python/165449)

<div class="topic-metadata">

**Author:** [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Replies:** 2\
**Last updated:** [April 14, 2009, 2:43pm UTC](https://www.ruby-forum.com/t/double-underscore-nomenclature-in-python/165449 "2009-04-14T14:43:20Z")

</div>

So, I’m stuck re-engineering some dreadful Python library code into Ruby (and I mean terrible, a mish-mash of different clashing programming paradigms – inheritance, delegation, etc. severely intertwined all over, ugg…

---

## [JRuby SCM has moved to Git!](https://www.ruby-forum.com/t/jruby-scm-has-moved-to-git/165451)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 1\
**Last updated:** [April 14, 2009, 2:10pm UTC](https://www.ruby-forum.com/t/jruby-scm-has-moved-to-git/165451 "2009-04-14T14:10:26Z")

</div>

We have successfully migrated JRuby development to Git! The main repository is on the JRuby kenai.com project, but most folks will just want to clone the official mirror on Github. Kenai: git://kenai.com/jruby~main G…

---

## [How to remote connect to the SQL server 2005 when th ere is a â€˜\\â€™ in the SQL server name, such a](https://www.ruby-forum.com/t/how-to-remote-connect-to-the-sql-server-2005-when-th-ere-is-a-a-a-in-the-sql-server-name-such-a/164942)

<div class="topic-metadata">

**Author:** [@chenpassion](https://www.ruby-forum.com/u/chenpassion)\
**Replies:** 9\
**Last updated:** [April 14, 2009, 1:36pm UTC](https://www.ruby-forum.com/t/how-to-remote-connect-to-the-sql-server-2005-when-th-ere-is-a-a-a-in-the-sql-server-name-such-a/164942 "2009-04-14T13:36:54Z")

</div>

Hi, Guys, How to remote connect to the SQL server 2005 when there is a â€˜\\â€™ in the SQL server name, such as 192.168.0.11\\active? In fact, when I try to remote connect it by the SQL 2005 client, everything goes w…

---

## [Parameters not passed to/by extconf.rb?](https://www.ruby-forum.com/t/parameters-not-passed-to-by-extconf-rb/165481)

<div class="topic-metadata">

**Author:** [@nocashvalue](https://www.ruby-forum.com/u/nocashvalue)\
**Replies:** 0\
**Last updated:** [April 14, 2009, 12:48pm UTC](https://www.ruby-forum.com/t/parameters-not-passed-to-by-extconf-rb/165481 "2009-04-14T12:48:39Z")

</div>

Hi, I’m trying to install the mysql-2.7 gem on Mac OS X Leopard with the default ruby installation (1.8.6). According to what I googled the following command sudo ruby extconf.rb --with-mysql-dir=/usr/local/mysql sh…

---

## [Is this guy for real?](https://www.ruby-forum.com/t/is-this-guy-for-real/165466)

<div class="topic-metadata">

**Author:** [@zingobingo](https://www.ruby-forum.com/u/zingobingo)\
**Replies:** 0\
**Last updated:** [April 14, 2009, 8:40am UTC](https://www.ruby-forum.com/t/is-this-guy-for-real/165466 "2009-04-14T08:40:50Z")

</div>

i found this website today from an email a co-worker sent me http://www.MAVERICKMONEYMAKERSDAILYSTORE.com I watched his videos on this site, and i am blown away that he ismaking more than 2 million dollars a year. ha…

---

## [Ruby 1.9 still cannot list all files on Vista or XP?](https://www.ruby-forum.com/t/ruby-1-9-still-cannot-list-all-files-on-vista-or-xp/165012)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 17\
**Last updated:** [April 14, 2009, 8:07am UTC](https://www.ruby-forum.com/t/ruby-1-9-still-cannot-list-all-files-on-vista-or-xp/165012 "2009-04-14T08:07:10Z")

</div>

I just tried using Ruby 1.9 and it seemed that it still cannot list all files in a folder on XP or Vista when the filenames contain Chinese characters, Japanese characters, or any foreign characters other than English…

---

## [How do you manage your gems' gemspecs?](https://www.ruby-forum.com/t/how-do-you-manage-your-gems-gemspecs/165204)

<div class="topic-metadata">

**Author:** [@ghorner](https://www.ruby-forum.com/u/ghorner)\
**Replies:** 14\
**Last updated:** [April 14, 2009, 6:45am UTC](https://www.ruby-forum.com/t/how-do-you-manage-your-gems-gemspecs/165204 "2009-04-14T06:45:33Z")

</div>

Hi, I’m curious how people manage creating their gemspecs. I’m not asking for a flame war on gem creators i.e. hoe vs newgem vs jeweler. I’m just wondering if your gem creators encourage creating Rakefiles with some …

---

## [Potential bug in Net::HTTP, and tentative patch](https://www.ruby-forum.com/t/potential-bug-in-net-http-and-tentative-patch/165361)

<div class="topic-metadata">

**Author:** [@Yves-Eric\_Martin](https://www.ruby-forum.com/u/Yves-Eric_Martin)\
**Replies:** 4\
**Last updated:** [April 14, 2009, 6:26am UTC](https://www.ruby-forum.com/t/potential-bug-in-net-http-and-tentative-patch/165361 "2009-04-14T06:26:51Z")

</div>

Hi all, I am building a nice little system using Ruby (on Rails), one part of which uses Net::HTTP to retrieve some data over HTTP. Everything seems to work fine, but on some requests, I get an EOFError. As I found o…

---

## [Error installing sqlite3](https://www.ruby-forum.com/t/error-installing-sqlite3/165457)

<div class="topic-metadata">

**Author:** [@luisfgnr](https://www.ruby-forum.com/u/luisfgnr)\
**Replies:** 2\
**Last updated:** [April 14, 2009, 6:25am UTC](https://www.ruby-forum.com/t/error-installing-sqlite3/165457 "2009-04-14T06:25:36Z")

</div>

Hi, i’m new to Rails and this is my first post. I need help with the installation of sqlite, i got the next error when i typed “gem install sqlite3-ruby”: c:\\ruby\>gem install sqlite3-ruby Building native extensions.…

---

## [Logging not working](https://www.ruby-forum.com/t/logging-not-working/165358)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 5\
**Last updated:** [April 14, 2009, 5:54am UTC](https://www.ruby-forum.com/t/logging-not-working/165358 "2009-04-14T05:54:43Z")

</div>

I think this might have been asked but does anyone have any issues with rails apps (2.2) that stop logging? I am running Rails 2.2 Tomcat 5.5 Jruby 1.2 Java 1.6 Solaris x64\_86 After a few hours i just stop gettin…

---

## [Newbie confusion and dejection](https://www.ruby-forum.com/t/newbie-confusion-and-dejection/165366)

<div class="topic-metadata">

**Author:** [@reg](https://www.ruby-forum.com/u/reg)\
**Replies:** 13\
**Last updated:** [April 14, 2009, 5:15am UTC](https://www.ruby-forum.com/t/newbie-confusion-and-dejection/165366 "2009-04-14T05:15:34Z")

</div>

Over the years I have taught myself to program in C, C++, and VB to build apps to run in WIndows, along with the scripting languages necessary to set up a website I have built websites using PHP, Ajax, and MySql but …

---

## [Code Review: DLR interop and COM](https://www.ruby-forum.com/t/code-review-dlr-interop-and-com/165448)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [April 14, 2009, 5:09am UTC](https://www.ruby-forum.com/t/code-review-dlr-interop-and-com/165448 "2009-04-14T05:09:08Z")

</div>

tfpt review /shelveset:COM2;tomat Outer DLR: Implements TypeLibMetaObject.BindInvokeMember. Fixes CompilerHelpers.CompileToMethod so that it works for anonymous lambdas. Ruby: Implements more DLR interop binders an…

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

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