# Ruby

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

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

---

## [ASP.NET integration?](https://www.ruby-forum.com/t/asp-net-integration/156957)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 1\
**Last updated:** [January 5, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/asp-net-integration/156957 "2009-01-05T23:52:58Z")

</div>

As my chapter on Rails is coming to an end I’d like to find out how things are going for ASP.NET webforms or asp.net MVC integration. Do you guys have an idea as to when we could expect something like this? Met vrie…

---

## [VERY simple question about "?"](https://www.ruby-forum.com/t/very-simple-question-about/156858)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 24\
**Last updated:** [January 5, 2009, 11:21pm UTC](https://www.ruby-forum.com/t/very-simple-question-about/156858 "2009-01-05T23:21:34Z")

</div>

I absolutely love Ruby, but…I’ve always found the subject of Ruby operators to be a small nightmare. First, it’s hard to find a complete table - the best I’ve found says gleefully at its bottom “and there are even mor…

---

## [What is the difference between this patterns](https://www.ruby-forum.com/t/what-is-the-difference-between-this-patterns/156968)

<div class="topic-metadata">

**Author:** [@hotjuneshen](https://www.ruby-forum.com/u/hotjuneshen)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 10:28pm UTC](https://www.ruby-forum.com/t/what-is-the-difference-between-this-patterns/156968 "2009-01-05T22:28:19Z")

</div>

Hi, What is the difference between decorator, adaptor and wrapper pattern when they are implemented in ruby? Regards Jon

---

## [\[Bug #983\] tool/file2lastrev.rb $B$NJ8;z%3!\<%I$NLdBj(B](https://www.ruby-forum.com/t/bug-983-tool-file2lastrev-rb-b-nj8-z-3-i-nldbj-b/156969)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 10:27pm UTC](https://www.ruby-forum.com/t/bug-983-tool-file2lastrev-rb-b-nj8-z-3-i-nldbj-b/156969 "2009-01-05T22:27:20Z")

</div>

e$B%A%1%C%He(B #983 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) LANG=C e$B$7$F$$$k$N$O!"e(Bsvn info e$B$N=PNO$r1Q8l$G8GDj$9$k$?$a$@$H;W$$$^$9!#e(B e$B4pK\\E\*$K$Oe(B force\_encoding e$B$9$k$N$G$O$J$/!"e(Bsvn info e$B$NJ}$…

---

## [Loading Assemblies](https://www.ruby-forum.com/t/loading-assemblies/155235)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 8\
**Last updated:** [January 5, 2009, 10:23pm UTC](https://www.ruby-forum.com/t/loading-assemblies/155235 "2009-01-05T22:23:14Z")

</div>

Hello, Just been playing around with some interop with our SDK. This is our setup. SDK is installed into C:\\Program Files\\SDK\\ ir is C:\\IronRuby\\ir.exe I then add C:\\IronRuby to my path folder. I attempt to do the…

---

## [Coding a server](https://www.ruby-forum.com/t/coding-a-server/156913)

<div class="topic-metadata">

**Author:** [@vernier](https://www.ruby-forum.com/u/vernier)\
**Replies:** 5\
**Last updated:** [January 5, 2009, 9:46pm UTC](https://www.ruby-forum.com/t/coding-a-server/156913 "2009-01-05T21:46:42Z")

</div>

Hey, I’m porting some old c++ code for a server to ruby, and I can’t figure out what’s the correct way of doing the network packet parsing I’m using eventmachine for the networking code but when a packet is received …

---

## [Noob Question: New to Programming](https://www.ruby-forum.com/t/noob-question-new-to-programming/156955)

<div class="topic-metadata">

**Author:** [@erubin](https://www.ruby-forum.com/u/erubin)\
**Replies:** 1\
**Last updated:** [January 5, 2009, 9:36pm UTC](https://www.ruby-forum.com/t/noob-question-new-to-programming/156955 "2009-01-05T21:36:18Z")

</div>

Hey I am very new to ruby I am trying to learn as much as I can, I was looking at this repository and I am curious what this method actually means. def self.create\_new(params={}) Could someone break it down to me I a…

---

## [Loading an extension on statically linked ruby](https://www.ruby-forum.com/t/loading-an-extension-on-statically-linked-ruby/156956)

<div class="topic-metadata">

**Author:** [@Edgardo\_H](https://www.ruby-forum.com/u/Edgardo_H)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/loading-an-extension-on-statically-linked-ruby/156956 "2009-01-05T20:45:37Z")

</div>

Hi guys, I’ve configured and built the Ruby interpreter with the following options: CFLAGS=-static ./configure --with-static-linked-ext --disable-shared – without-openssl --without-tk --prefix=/opt/ruby I also hav…

---

## [Finding filename from a URL](https://www.ruby-forum.com/t/finding-filename-from-a-url/156869)

<div class="topic-metadata">

**Author:** [@samf](https://www.ruby-forum.com/u/samf)\
**Replies:** 8\
**Last updated:** [January 5, 2009, 6:52pm UTC](https://www.ruby-forum.com/t/finding-filename-from-a-url/156869 "2009-01-05T18:52:48Z")

</div>

Hi all, This is just a basic parsing question, really. I’m trying to work out how I would process a URL such as “http://www.example.com/x/y/z/myfile.txt” and get back the filename “myfile”. Basically the pattern is t…

---

## [January Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/january-phoenix-ruby-user-group-meeting/156949)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 6:06pm UTC](https://www.ruby-forum.com/t/january-phoenix-ruby-user-group-meeting/156949 "2009-01-05T18:06:12Z")

</div>

January '09 Phoenix Ruby U. Group Meeting Date: Monday, January 12, 2008 Time: 6:30 pm - at Happy Camper Studios offices (But come for pizza at 6pm!) Place: Happy Camper Studios 4643 E. Thomas Rd. Suite #3 Phoeni…

---

## [Hash is not merged / recursive function](https://www.ruby-forum.com/t/hash-is-not-merged-recursive-function/156934)

<div class="topic-metadata">

**Author:** [@shihan](https://www.ruby-forum.com/u/shihan)\
**Replies:** 1\
**Last updated:** [January 5, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/hash-is-not-merged-recursive-function/156934 "2009-01-05T17:21:37Z")

</div>

Hi, i’m new to ruby, but i really like it. I’m trying to extend Ruby on Rails FormHelper with a custom function which returns a recursive tree select field for “acts\_as\_tree”-models. My Problem is, that the hash is n…

---

## [I have some challenges with the date](https://www.ruby-forum.com/t/i-have-some-challenges-with-the-date/156943)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [January 5, 2009, 5:18pm UTC](https://www.ruby-forum.com/t/i-have-some-challenges-with-the-date/156943 "2009-01-05T17:18:41Z")

</div>

here i have a string date like this. 02/01/2009 : Format is DD/MM/YY however my date.parse switches the month and the day. how do i fix it. irb(main):011:0\> Date.parse(“02/01/2009”).strftime(’%Y-%m-%d’) =\> “2009-02-0…

---

## [Error retrieving from github](https://www.ruby-forum.com/t/error-retrieving-from-github/156924)

<div class="topic-metadata">

**Author:** [@trptcolin](https://www.ruby-forum.com/u/trptcolin)\
**Replies:** 4\
**Last updated:** [January 5, 2009, 4:56pm UTC](https://www.ruby-forum.com/t/error-retrieving-from-github/156924 "2009-01-05T16:56:06Z")

</div>

Hi, I’ve been trying to get IronRuby from GIT using the steps in Ben’s blog (Downloading IronRuby from GitHub – Ben Hall's Blog) but keep getting this error: github.com\[0: 65.74.177.129\]: errno=Invalid argument fata…

---

## [Standard data-structures](https://www.ruby-forum.com/t/standard-data-structures/156935)

<div class="topic-metadata">

**Author:** [@LAMBEAU\_Bernard](https://www.ruby-forum.com/u/LAMBEAU_Bernard)\
**Replies:** 1\
**Last updated:** [January 5, 2009, 4:05pm UTC](https://www.ruby-forum.com/t/standard-data-structures/156935 "2009-01-05T16:05:45Z")

</div>

Does anyone know a gem with standard data-structures like AVLTree, OrderedHash, … ? Or are they provided in 1.9 branch or Ruby ? I’ve found a basic AVLTree class from www.rubyquiz.com … that I can consolidate otherwis…

---

## [How to control the time while ruby connect to oracle?](https://www.ruby-forum.com/t/how-to-control-the-time-while-ruby-connect-to-oracle/156866)

<div class="topic-metadata">

**Author:** [@zanetsang](https://www.ruby-forum.com/u/zanetsang)\
**Replies:** 1\
**Last updated:** [January 5, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/how-to-control-the-time-while-ruby-connect-to-oracle/156866 "2009-01-05T15:28:10Z")

</div>

Hi,I really need your help.I have a program when I use ruby to conncet oralcle DB.My code is(testdb.rb): require ‘rubygems’ require ‘dbi’ puts “Begin Conn!” dbh=DBI.connect(‘DBI:OCI8:orcl’,‘sgpm’,‘sgpm’) puts “conn…

---

## [First whack at thread safe Containers](https://www.ruby-forum.com/t/first-whack-at-thread-safe-containers/156877)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 3\
**Last updated:** [January 5, 2009, 12:36pm UTC](https://www.ruby-forum.com/t/first-whack-at-thread-safe-containers/156877 "2009-01-05T12:36:42Z")

</div>

Hi all Charly suggested thread safe containers some weeks ago. I finally found some time to try it, very much motivated by Jim W.'s Ruby Conf talk :-P. Please find my first implementation of a RWLock here http://pas…

---

## [Accesing Java superclass atribute from JRuby subclass](https://www.ruby-forum.com/t/accesing-java-superclass-atribute-from-jruby-subclass/156650)

<div class="topic-metadata">

**Author:** [@Luiz\_Fernando\_Signo](https://www.ruby-forum.com/u/Luiz_Fernando_Signo)\
**Replies:** 9\
**Last updated:** [January 5, 2009, 12:24pm UTC](https://www.ruby-forum.com/t/accesing-java-superclass-atribute-from-jruby-subclass/156650 "2009-01-05T12:24:57Z")

</div>

Hi, I’m using JRuby 1.1.6RC1 and I would like to do something like this: ####Java Class#### public Class JavaFrame extends javax.swing.JFrame{ private javax.swing.JButton okButton; .... } ####JRuby Class#### clas…

---

## [The thread problem in ruby imap](https://www.ruby-forum.com/t/the-thread-problem-in-ruby-imap/156863)

<div class="topic-metadata">

**Author:** [@feeling3\_4](https://www.ruby-forum.com/u/feeling3_4)\
**Replies:** 4\
**Last updated:** [January 5, 2009, 11:54am UTC](https://www.ruby-forum.com/t/the-thread-problem-in-ruby-imap/156863 "2009-01-05T11:54:43Z")

</div>

hi, all my application is about ruby imap, it depends on daemons lib and runs as a background job. when it fetches the mails from gmail, it will throw the error below randomly: 2008-12-30 11:37:04 ERROR failed to pro…

---

## [Reimplementation address book program](https://www.ruby-forum.com/t/reimplementation-address-book-program/156784)

<div class="topic-metadata">

**Author:** [@andrea](https://www.ruby-forum.com/u/andrea)\
**Replies:** 7\
**Last updated:** [January 5, 2009, 11:15am UTC](https://www.ruby-forum.com/t/reimplementation-address-book-program/156784 "2009-01-05T11:15:40Z")

</div>

On one of my servers (linux) I have a nice address book over ldap. It is automatically integrated with thunderbird and other programs, but none of them is capable of modifying (or at least easily). Since I want it ver…

---

## [Is there a way to get the paths to all previously required files?](https://www.ruby-forum.com/t/is-there-a-way-to-get-the-paths-to-all-previously-required-files/156904)

<div class="topic-metadata">

**Author:** [@timr](https://www.ruby-forum.com/u/timr)\
**Replies:** 2\
**Last updated:** [January 5, 2009, 6:36am UTC](https://www.ruby-forum.com/t/is-there-a-way-to-get-the-paths-to-all-previously-required-files/156904 "2009-01-05T06:36:01Z")

</div>

Let’s say I am in irb and I execute require 'base64.rb" =\>true and then I want to know the path to the base64.rb file, are the paths to previously required files stored in a global variable? I wan’t to do somet…

---

## [Lost response while transfering large file to FTP server](https://www.ruby-forum.com/t/lost-response-while-transfering-large-file-to-ftp-server/156855)

<div class="topic-metadata">

**Author:** [@clive](https://www.ruby-forum.com/u/clive)\
**Replies:** 4\
**Last updated:** [January 5, 2009, 2:43am UTC](https://www.ruby-forum.com/t/lost-response-while-transfering-large-file-to-ftp-server/156855 "2009-01-05T02:43:56Z")

</div>

When I used Net::FTP to put large files(about 200MB) to FTP server, the program always lost response. The file was actually transferred correctly later on, but the ftp.put method failed to return, preventing the code …

---

## [About searching constant](https://www.ruby-forum.com/t/about-searching-constant/156663)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 5\
**Last updated:** [January 5, 2009, 2:35am UTC](https://www.ruby-forum.com/t/about-searching-constant/156663 "2009-01-05T02:35:49Z")

</div>

class A WHY = “I don’t know why!!” def self.foo instance\_eval(“WHY”) end end puts A.instance\_eval { foo } # =\> I don’t know why!! puts A.instance\_eval(“WHY”) # =\> uninitialized constant Class::WHY (NameError) …

---

## [\[Bug #974\](Closed) Range#max $B$G=\*N;$7$J$$$3$H$,$"$k(B](https://www.ruby-forum.com/t/bug-974-closed-range-max-b-g-n-7-j-3-h-k-b/156891)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 0\
**Last updated:** [January 4, 2009, 11:37pm UTC](https://www.ruby-forum.com/t/bug-974-closed-range-max-b-g-n-7-j-3-h-k-b/156891 "2009-01-04T23:37:45Z")

</div>

e$B%A%1%C%He(B #974 e$B$,99?7$5$l$^$7$?!#e(B (by Yukihiro M.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B Applied in changeset r21327. http://redmine.ruby-lang.org/issues…

---

## [Building Ruby as a framework on OS X](https://www.ruby-forum.com/t/building-ruby-as-a-framework-on-os-x/156612)

<div class="topic-metadata">

**Author:** [@inspire22](https://www.ruby-forum.com/u/inspire22)\
**Replies:** 2\
**Last updated:** [January 4, 2009, 10:33pm UTC](https://www.ruby-forum.com/t/building-ruby-as-a-framework-on-os-x/156612 "2009-01-04T22:33:16Z")

</div>

Hello, Does anyone know how to build Ruby as a framework on OS X? Downloading the source and running configure --help does not yield any “–enable-framework” flags, which is what I was looking for. Python and Tcl have…

---

## [Running autospec from jruby](https://www.ruby-forum.com/t/running-autospec-from-jruby/155593)

<div class="topic-metadata">

**Author:** [@Joseph\_A](https://www.ruby-forum.com/u/Joseph_A)\
**Replies:** 4\
**Last updated:** [January 4, 2009, 9:42pm UTC](https://www.ruby-forum.com/t/running-autospec-from-jruby/155593 "2009-01-04T21:42:22Z")

</div>

I can’t seem to get autospec to run using JRuby. The autospec command doesn’t seem to work like gem or rake do. Here’s what I get: arthman:railpro jjathman$ jruby -S autospec loading autotest/rails\_rspec /opt/local…

---

## [Saw children in the face of tanks](https://www.ruby-forum.com/t/saw-children-in-the-face-of-tanks/156881)

<div class="topic-metadata">

**Author:** [@HEBAbrothers](https://www.ruby-forum.com/u/HEBAbrothers)\
**Replies:** 0\
**Last updated:** [January 4, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/saw-children-in-the-face-of-tanks/156881 "2009-01-04T20:45:34Z")

</div>

Saved their lives even one word Why silence. ? Did you see the neo-Nazis? Saved their lives even one word http://www.aljazeera.net/NR/exeres/67E65341-758D-4BC3-92B0-B539B0C7D793.htm http://www.palestine-info.co.uk/e…

---

## [Simple garbage problem](https://www.ruby-forum.com/t/simple-garbage-problem/156743)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [January 4, 2009, 8:30pm UTC](https://www.ruby-forum.com/t/simple-garbage-problem/156743 "2009-01-04T20:30:52Z")

</div>

When I run the program: STDIN.each\_line { |line| line.split("\\t") } with a big input file, the process size grows rapidly, reaching 1G in less than 1 minute. If I let it go, it continues to grow at this rate until th…

---

## [Are all Ruby built-in objects thread safe?](https://www.ruby-forum.com/t/are-all-ruby-built-in-objects-thread-safe/156243)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 22\
**Last updated:** [January 4, 2009, 8:15pm UTC](https://www.ruby-forum.com/t/are-all-ruby-built-in-objects-thread-safe/156243 "2009-01-04T20:15:02Z")

</div>

Are all built-in objects thread safe? For example, if I have an array and one thread is constant appending to it while another thread is shifting elements off of it and there’s no synchronization going on, can the a…

---

## [IronRuby and VS2010](https://www.ruby-forum.com/t/ironruby-and-vs2010/156865)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 2\
**Last updated:** [January 4, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/ironruby-and-vs2010/156865 "2009-01-04T18:17:32Z")

</div>

Hello, I’ve just been playing around with IronRuby and VS2010. If I understand the situation correctly, Microsoft.Scripting.Core has been integrated into .Net 4.0, leaving Microsoft.Scripting to hold the Ast and the…

---

## [A question about Net-ssh](https://www.ruby-forum.com/t/a-question-about-net-ssh/156860)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 2\
**Last updated:** [January 4, 2009, 3:21pm UTC](https://www.ruby-forum.com/t/a-question-about-net-ssh/156860 "2009-01-04T15:21:46Z")

</div>

I installed net-ssh by running the command: “gem install net-ssh”, but I got load error when using “require net/ssh”. It seems that ruby doesn’t find the library. How can I let ruby find this library? thanks.

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

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