# Ruby

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

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

---

## [Scan HTML](https://www.ruby-forum.com/t/scan-html/130644)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 15\
**Last updated:** [March 3, 2008, 11:51pm UTC](https://www.ruby-forum.com/t/scan-html/130644 "2008-03-03T23:51:04Z")

</div>

So I am new to Ruby scripting so I am not sure if this is possible or not. I want to make a script that will load a webpage and then search through the HTML of that page until it hits a certain tag. Once it hits that …

---

## [Typecast](https://www.ruby-forum.com/t/typecast/130782)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 3\
**Last updated:** [March 3, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/typecast/130782 "2008-03-03T23:33:45Z")

</div>

Hi I have an ActiveRecord class ServiceDesk and a string “ServiceDesk” .How can I convert the string “ServiceDesk” to create a new object of the class ServiceDesk? Concept is made clear below. model = “ServiceDesk”…

---

## ["Security Managers" in Ruby?](https://www.ruby-forum.com/t/security-managers-in-ruby/130852)

<div class="topic-metadata">

**Author:** [@John\_Pritchard-Will](https://www.ruby-forum.com/u/John_Pritchard-Will)\
**Replies:** 1\
**Last updated:** [March 3, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/security-managers-in-ruby/130852 "2008-03-03T23:03:42Z")

</div>

I’m a newbie: I’m inevitably comparing Ruby with Java (whether this is healthy or wise thing to do I don’t know…) - but I have not seen any documentation on whether or not Ruby (as in the interpreter / platform, not t…

---

## [Scaffold upper case table and underscores](https://www.ruby-forum.com/t/scaffold-upper-case-table-and-underscores/130818)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 1\
**Last updated:** [March 3, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/scaffold-upper-case-table-and-underscores/130818 "2008-03-03T22:48:55Z")

</div>

Hello I am learning how to use ruby on rails. I was able to generate model and controller for lower case tables just doing ./script/generate model Post ./script/generate controller Post and then adding scaffold :pos…

---

## [Understanding ruby classes](https://www.ruby-forum.com/t/understanding-ruby-classes/130776)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 11\
**Last updated:** [March 3, 2008, 10:17pm UTC](https://www.ruby-forum.com/t/understanding-ruby-classes/130776 "2008-03-03T22:17:19Z")

</div>

This question is all about me not understanding how ruby classes work. I have three print classes. myPrint which is abstract class and implements common methods for other two classes which are myPrint2PDF and myPrint2…

---

## [Ruby in windows](https://www.ruby-forum.com/t/ruby-in-windows/130706)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 3, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/ruby-in-windows/130706 "2008-03-03T21:06:04Z")

</div>

i’m trying to script administrative tasks in windows and i’m really not feeling the ruby love, does anyone have some suggestions on a way of running commands and catching STDERR in windows?

---

## [Overwriting (for real) a class](https://www.ruby-forum.com/t/overwriting-for-real-a-class/130840)

<div class="topic-metadata">

**Author:** [@Christopher\_JSBott](https://www.ruby-forum.com/u/Christopher_JSBott)\
**Replies:** 3\
**Last updated:** [March 3, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/overwriting-for-real-a-class/130840 "2008-03-03T20:49:34Z")

</div>

How can completely overwrite a class (not extend it)? For example. fileA.rb: class MyClass def foo end end fileB.rb (executed after fileA.rb): class MyClass def bar end end MyClass.new.foo # I want a no metho…

---

## [Class and inheritance](https://www.ruby-forum.com/t/class-and-inheritance/130809)

<div class="topic-metadata">

**Author:** [@August0866](https://www.ruby-forum.com/u/August0866)\
**Replies:** 1\
**Last updated:** [March 3, 2008, 7:49pm UTC](https://www.ruby-forum.com/t/class-and-inheritance/130809 "2008-03-03T19:49:07Z")

</div>

Hi All, I am not a programmer, yet. I am trying ruby on for size, most things fit ok, but Classes are puzzling me. class Stats

---

## [\[ANN\] BlockChainable 0.0.1 released](https://www.ruby-forum.com/t/ann-blockchainable-0-0-1-released/130726)

<div class="topic-metadata">

**Author:** [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Replies:** 2\
**Last updated:** [March 3, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/ann-blockchainable-0-0-1-released/130726 "2008-03-03T19:09:08Z")

</div>

BlockChainable is a module to aid in the creation of Domain Specific Languages using block structure. By including BlockChainable into your classes, you will be able to instantiate that class using the class name itse…

---

## [CalTerm: ncurses calendaring](https://www.ruby-forum.com/t/calterm-ncurses-calendaring/130830)

<div class="topic-metadata">

**Author:** [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Replies:** 0\
**Last updated:** [March 3, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/calterm-ncurses-calendaring/130830 "2008-03-03T19:08:02Z")

</div>

It’s no iCal-killer, but I needed something to let me at least view my ical calendars from the terminal. At this point, other than bugs that can be traced to vpim (mostly having to do with recurring events that hit th…

---

## [Loading a file in a buffer](https://www.ruby-forum.com/t/loading-a-file-in-a-buffer/130825)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 4\
**Last updated:** [March 3, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/loading-a-file-in-a-buffer/130825 "2008-03-03T18:52:48Z")

</div>

Hello everybody, I would like to load the exact content of a file in a buffer (with the same carriage return). To do so, I had trying this: file = File.open(’/home/my\_file’) To verify if that work normally, I had try…

---

## [Yaml](https://www.ruby-forum.com/t/yaml/130378)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 13\
**Last updated:** [March 3, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/yaml/130378 "2008-03-03T18:31:31Z")

</div>

Hi, All I want it to read this YAML as a ruby hash and place into the below methods. Could someone help? test: tiscali url: http://tiscali3-test.vizumi.com/ register: first\_name: aidy surname: smith email: ‘remo…

---

## [Qtruby4 license](https://www.ruby-forum.com/t/qtruby4-license/130781)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 7\
**Last updated:** [March 3, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/qtruby4-license/130781 "2008-03-03T18:20:55Z")

</div>

Hey! I want to use qtruby4 as binding to QT Framework for a commercial ruby application. I do have a QT commercial license. Qtruby4 is GPL. If i use the bindings, does that mean, i have to release the resulting peace…

---

## [Sleeping threads don't wake up?](https://www.ruby-forum.com/t/sleeping-threads-dont-wake-up/130541)

<div class="topic-metadata">

**Author:** [@Aaron\_T](https://www.ruby-forum.com/u/Aaron_T)\
**Replies:** 5\
**Last updated:** [March 3, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/sleeping-threads-dont-wake-up/130541 "2008-03-03T18:05:33Z")

</div>

I have the following code: class Server def start\_reaper @reaper = Thread.new do loop do sleep 10 self.clean\_workers puts “cleaned up” end end end # other stuff goes here... end server = Server.new DRb.star…

---

## [Need some explnation to\_proc](https://www.ruby-forum.com/t/need-some-explnation-to-proc/130819)

<div class="topic-metadata">

**Author:** [@vishy](https://www.ruby-forum.com/u/vishy)\
**Replies:** 1\
**Last updated:** [March 3, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/need-some-explnation-to-proc/130819 "2008-03-03T17:30:29Z")

</div>

Hi, I am looking for some explanation for this ruby snippet. class Symbol def to\_proc lambda {|x, \*args| x.send(self, \*args)} end end words = %w(Jane, aara, multiko) upcase\_words = words.map(&:upcase) What I und…

---

## [Looking for UK based Ruby On Rails developers](https://www.ruby-forum.com/t/looking-for-uk-based-ruby-on-rails-developers/130808)

<div class="topic-metadata">

**Author:** [@dannyheathcote](https://www.ruby-forum.com/u/dannyheathcote)\
**Replies:** 1\
**Last updated:** [March 3, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/looking-for-uk-based-ruby-on-rails-developers/130808 "2008-03-03T16:45:32Z")

</div>

Hi there, My name is Dan Heathcote, I am working for a UK based Recruitment Company and I specialize in placing Ruby on Rails Developers. If you have background skills and experience in Ruby on Rails I would be very …

---

## [Complete Serialization Options](https://www.ruby-forum.com/t/complete-serialization-options/130773)

<div class="topic-metadata">

**Author:** [@dsoftware](https://www.ruby-forum.com/u/dsoftware)\
**Replies:** 4\
**Last updated:** [March 3, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/complete-serialization-options/130773 "2008-03-03T16:43:43Z")

</div>

Is there a way to completely serialize objects and move them to another machien in Ruby? I would like to be able to serialize an entire object (e.g. all the methods, objects, etc.), then transfer this serialized obje…

---

## [Ruby 1.8.6-p114 / 1.8.5-p115 released (Security Fix)](https://www.ruby-forum.com/t/ruby-1-8-6-p114-1-8-5-p115-released-security-fix/130814)

<div class="topic-metadata">

**Author:** [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Replies:** 1\
**Last updated:** [March 3, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-p114-1-8-5-p115-released-security-fix/130814 "2008-03-03T16:13:13Z")

</div>

Hi all. Vulnerabilities were found on a subsystem of WEBrick which enable attackers to access private files. These are releases to fix those problems. Also note, though no release were made for them, 1.9 series of ru…

---

## [How to send a file from the http client to the server?](https://www.ruby-forum.com/t/how-to-send-a-file-from-the-http-client-to-the-server/118011)

<div class="topic-metadata">

**Author:** [@abir84](https://www.ruby-forum.com/u/abir84)\
**Replies:** 11\
**Last updated:** [March 3, 2008, 4:03pm UTC](https://www.ruby-forum.com/t/how-to-send-a-file-from-the-http-client-to-the-server/118011 "2008-03-03T16:03:43Z")

</div>

Hello I’ve a http server built with ruby based on Mongrel, it must receive a file from the client http (in the request coming from a web browser or in request sent by a httpClient written in ruby) How can I send the …

---

## [Merb and rmagick thumbnails](https://www.ruby-forum.com/t/merb-and-rmagick-thumbnails/130810)

<div class="topic-metadata">

**Author:** [@schaf88](https://www.ruby-forum.com/u/schaf88)\
**Replies:** 0\
**Last updated:** [March 3, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/merb-and-rmagick-thumbnails/130810 "2008-03-03T15:36:34Z")

</div>

Hi I’m playing around with a merb app to upload images. The upload works fine and the images are copied from the temporary directory into an uploads directory in the merb root with the original filename. now i want t…

---

## [Sudo gem update --system Takes Greater Than A Minute](https://www.ruby-forum.com/t/sudo-gem-update-system-takes-greater-than-a-minute/130735)

<div class="topic-metadata">

**Author:** [@Brian\_Puccio](https://www.ruby-forum.com/u/Brian_Puccio)\
**Replies:** 3\
**Last updated:** [March 3, 2008, 2:32pm UTC](https://www.ruby-forum.com/t/sudo-gem-update-system-takes-greater-than-a-minute/130735 "2008-03-03T14:32:07Z")

</div>

Hi everyone, New to ruby (on rails) in general, googled for an answer, but I can’t tell if this is normal behavior. On a new Oct-core Mac Pro, nothing else running, gem update–system takes a while, without any noticea…

---

## [Event Machine - callbacks from different connections](https://www.ruby-forum.com/t/event-machine-callbacks-from-different-connections/130791)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 1\
**Last updated:** [March 3, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/event-machine-callbacks-from-different-connections/130791 "2008-03-03T13:32:51Z")

</div>

In the RDoc for EventMachine, the following statement is made: “You can also call send\_data to write to a connection other than the one whose callback you are calling send\_data from. This is done by recording the valu…

---

## [Dead Slow Progress on IronRuby... No Beta Yet](https://www.ruby-forum.com/t/dead-slow-progress-on-ironruby-no-beta-yet/130296)

<div class="topic-metadata">

**Author:** [@webreservoir](https://www.ruby-forum.com/u/webreservoir)\
**Replies:** 11\
**Last updated:** [March 3, 2008, 1:27pm UTC](https://www.ruby-forum.com/t/dead-slow-progress-on-ironruby-no-beta-yet/130296 "2008-03-03T13:27:07Z")

</div>

Hi, I was expecting a rapid growth on IronRuby keeping following things in my mind which i had preserved so far. (1) Ruby.Net code ( partially ) was licensed by MS to incorporate in to IronRuby (2) IronRuby was anno…

---

## [Dealing with nil](https://www.ruby-forum.com/t/dealing-with-nil/130783)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 5\
**Last updated:** [March 3, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/dealing-with-nil/130783 "2008-03-03T13:11:01Z")

</div>

Hi, we had frequent discussions about how to make code safely deal with possible nil values. I remember having seen various solutions proposed. However, I cannot remember having seen this, which just occurred to me…

---

## [Reducing Code (again)](https://www.ruby-forum.com/t/reducing-code-again/130794)

<div class="topic-metadata">

**Author:** [@cujigar](https://www.ruby-forum.com/u/cujigar)\
**Replies:** 0\
**Last updated:** [March 3, 2008, 12:33pm UTC](https://www.ruby-forum.com/t/reducing-code-again/130794 "2008-03-03T12:33:49Z")

</div>

Following is some code that I came up with, for small db processing. I have a feeling that I could be further reduced to be more concise. Something feels off, I can’t put my finger on it. Or maybe for such a small tas…

---

## [Counting in for .. in](https://www.ruby-forum.com/t/counting-in-for-in/130693)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 8\
**Last updated:** [March 3, 2008, 12:19pm UTC](https://www.ruby-forum.com/t/counting-in-for-in/130693 "2008-03-03T12:19:17Z")

</div>

Hi, i’m doing my first steps in ruby (on rails) and often use things like for thing in @several\_things print thing end Ok so far, looks great :slight\_smile: But i often need a counter inside of the loop, may it be …

---

## [$B$J$\<(B transcode.c $B$N(B transcode\_loop $B$G(B from\_utf8 $B$,FCJL07$$(B](https://www.ruby-forum.com/t/b-j-b-transcode-c-b-n-b-transcode-loop-b-g-b-from-utf8-b-fcjl07-b/130777)

<div class="topic-metadata">

**Author:** [@drenovac](https://www.ruby-forum.com/u/drenovac)\
**Replies:** 1\
**Last updated:** [March 3, 2008, 11:49am UTC](https://www.ruby-forum.com/t/b-j-b-transcode-c-b-n-b-transcode-loop-b-g-b-from-utf8-b-fcjl07-b/130777 "2008-03-03T11:49:48Z")

</div>

e$BCfED$5$s!“3’$5$s!”$3$s$K$A$O!#e(B e$B$3$N4V$N%\_!\<%F%#%s%0$GCfED$5$s$Ke(B e$B!V$J$\<e(B transcode.c e$B$Ne(B transcode\_loop e$B$Ge(B from\_utf8 e$B$,FCJL07$$$5$l$F$$$k$N$+!We(B e$B$HJ9$+$l$^$7$?!#e(B e$B$=$N;~$O$9$0…

---

## [How many ruby framework available in market?](https://www.ruby-forum.com/t/how-many-ruby-framework-available-in-market/130785)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 1\
**Last updated:** [March 3, 2008, 11:08am UTC](https://www.ruby-forum.com/t/how-many-ruby-framework-available-in-market/130785 "2008-03-03T11:08:35Z")

</div>

Hi all, I wanna know how many ruby framework available in the market as of now and using them any company created any website or not. I searched on net but did not find the appropiate answer. Some which i know: RO…

---

## [Possible to optimize this?](https://www.ruby-forum.com/t/possible-to-optimize-this/130584)

<div class="topic-metadata">

**Author:** [@laredotornado](https://www.ruby-forum.com/u/laredotornado)\
**Replies:** 5\
**Last updated:** [March 3, 2008, 10:57am UTC](https://www.ruby-forum.com/t/possible-to-optimize-this/130584 "2008-03-03T10:57:14Z")

</div>

Hi, I am creating a variable “counter” to count the number of iterations. But I get the funny feeling Ruby (I’m using 1.8) may already have some kind of implicit counter in the loop. Does anyone know of a way the be…

---

## [Patterns for error messages](https://www.ruby-forum.com/t/patterns-for-error-messages/130694)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokS\_She](https://www.ruby-forum.com/u/Victor_SZverokS_She)\
**Replies:** 7\
**Last updated:** [March 3, 2008, 10:43am UTC](https://www.ruby-forum.com/t/patterns-for-error-messages/130694 "2008-03-03T10:43:01Z")

</div>

Hello all. It seems that the question relates to interpreter “internals”, but I’m afraid of ask silly questions in ruby-core. The question is: why error messages of interpreter has inconsistent addressing system of f…

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

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