# Top

**URL:** https://www.ruby-forum.com/top.md?page=1257

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

---

## [Difficulty loading local class files with "ruby1.9.1" on Ubuntu 11.10](https://www.ruby-forum.com/t/difficulty-loading-local-class-files-with-ruby1-9-1-on-ubuntu-11-10/217173)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 23, 2012, 7:45am UTC](https://www.ruby-forum.com/t/difficulty-loading-local-class-files-with-ruby1-9-1-on-ubuntu-11-10/217173 "2012-02-23T07:45:39Z")

</div>

I’m running 11.10 Oneric, but am having a problem upgrading from default Ruby 1.8 to recommended 1.9. Here’s a local file, Test2.rb: class Test2 puts “hello, from Test2!” end And here’s Test.rb: require ‘Test2’ p…

---

## [Difference between for and someclass.each do |var|](https://www.ruby-forum.com/t/difference-between-for-and-someclass-each-do-var/204814)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 22, 2011, 12:15pm UTC](https://www.ruby-forum.com/t/difference-between-for-and-someclass-each-do-var/204814 "2011-03-22T12:15:26Z")

</div>

Hello everyone, I come from the low level C land and I am really loving ruby but I am trying to understand its behaviour. Can anyone tell me if there is something different going on under the hood between these two l…

---

## [Active Record Relations and Nesting](https://www.ruby-forum.com/t/active-record-relations-and-nesting/200862)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 4\
**Last updated:** [December 25, 2010, 7:00pm UTC](https://www.ruby-forum.com/t/active-record-relations-and-nesting/200862 "2010-12-25T19:00:22Z")

</div>

Hello, I am looking to create a rails app that will model and display related nodes. I am just beginning to dive into active record and I was wondering if the following pesudo code would work? class NodeLink \< Active…

---

## [Append to end of file before 'end' declaration](https://www.ruby-forum.com/t/append-to-end-of-file-before-end-declaration/196153)

<div class="topic-metadata">

**Author:** [@mohammadtypaldos](https://www.ruby-forum.com/u/mohammadtypaldos)\
**Replies:** 4\
**Last updated:** [October 7, 2010, 6:07pm UTC](https://www.ruby-forum.com/t/append-to-end-of-file-before-end-declaration/196153 "2010-10-07T18:07:07Z")

</div>

So I’m building my own updating controller that will allow users to update the version of my app they’re running. I was unable to find a plugin that did this :frowning: So now this looks for the last end in a file (su…

---

## [General question concerning usrp & audio](https://www.ruby-forum.com/t/general-question-concerning-usrp-audio/195284)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 4\
**Last updated:** [September 22, 2010, 3:22pm UTC](https://www.ruby-forum.com/t/general-question-concerning-usrp-audio/195284 "2010-09-22T15:22:52Z")

</div>

hHey! I am just playing around with gnuradio and the usrp stuff and want to achieve the following: file1.py \[…\] self.u = usrp.sink\_c(0, 64) self.src gr.sig\_source\_c(48000, gr.GR\_SIN\_WAVE, 400, 1) self.connect(self…

---

## [\[Ruby-Feature#3852\]\[Open\] test\_prime.rb:62$B$,DL$i$J$$(B](https://www.ruby-forum.com/t/ruby-feature-3852-open-test-prime-rb-62-b-dl-i-j-b/195231)

<div class="topic-metadata">

**Author:** [@Shota\_F](https://www.ruby-forum.com/u/Shota_F)\
**Replies:** 4\
**Last updated:** [September 22, 2010, 10:07am UTC](https://www.ruby-forum.com/t/ruby-feature-3852-open-test-prime-rb-62-b-dl-i-j-b/195231 "2010-09-22T10:07:51Z")

</div>

Feature #3852: test\_prime.rb:62e$B$,DL$i$J$$e(B http://redmine.ruby-lang.org/issues/show/3852 e$B5/I\<\<Te(B: Shota F. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yuki S., e$B%+%F%4%je(B: lib test\_prime…

---

## [Video transcoding and uploading in rails](https://www.ruby-forum.com/t/video-transcoding-and-uploading-in-rails/191583)

<div class="topic-metadata">

**Author:** [@jakx12](https://www.ruby-forum.com/u/jakx12)\
**Replies:** 4\
**Last updated:** [July 15, 2010, 7:56pm UTC](https://www.ruby-forum.com/t/video-transcoding-and-uploading-in-rails/191583 "2010-07-15T19:56:14Z")

</div>

Hey, How do you upload videos with paperclip and transcode them into flash with rails? I also want the app to handle multiple uploads at a time. How do I do this and what plugins should I use. Many thanks.

---

## [Bug? variable changes without assignment](https://www.ruby-forum.com/t/bug-variable-changes-without-assignment/187321)

<div class="topic-metadata">

**Author:** [@efilm66](https://www.ruby-forum.com/u/efilm66)\
**Replies:** 4\
**Last updated:** [April 21, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/bug-variable-changes-without-assignment/187321 "2010-04-21T19:12:07Z")

</div>

I seem to have uncovered a bug. The program below defines a series of variables, named constant, modify, and variable. The constant should remain constant, but instead, it changes - even without an assignment. How doe…

---

## [Easy question about gets](https://www.ruby-forum.com/t/easy-question-about-gets/184344)

<div class="topic-metadata">

**Author:** [@xxreiichixx](https://www.ruby-forum.com/u/xxreiichixx)\
**Replies:** 4\
**Last updated:** [March 1, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/easy-question-about-gets/184344 "2010-03-01T20:26:38Z")

</div>

(sorry my bad english) I am a beginner and in an exercise the one who run the program must insert his birth date and the program must says if today is his birthday or not. In C to do this I can do (I jump a part of co…

---

## [Migrations to load photos with attachment\_fu?](https://www.ruby-forum.com/t/migrations-to-load-photos-with-attachment-fu/119788)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [February 14, 2010, 2:39am UTC](https://www.ruby-forum.com/t/migrations-to-load-photos-with-attachment-fu/119788 "2010-02-14T02:39:11Z")

</div>

I’ve been studying the web this morning and trying to find examples where someone has imported photo ‘test data’ using attachment\_fu? I’ve tried this in many was using a traditional data migration like I’ve done hundr…

---

## [Download Ruby for Win-x64](https://www.ruby-forum.com/t/download-ruby-for-win-x64/178976)

<div class="topic-metadata">

**Author:** [@ricos](https://www.ruby-forum.com/u/ricos)\
**Replies:** 4\
**Last updated:** [November 14, 2009, 7:00pm UTC](https://www.ruby-forum.com/t/download-ruby-for-win-x64/178976 "2009-11-14T19:00:59Z")

</div>

Hi there! In the Web there are a lot of references to the Windows 64bits version of Ruby (a.k.a. x64-mswin64), but I was unable to find the site where I can download it. Help, please! Thanks in advance, Ricardo

---

## [Next steps in Ruby?](https://www.ruby-forum.com/t/next-steps-in-ruby/177508)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 4\
**Last updated:** [October 19, 2009, 7:40pm UTC](https://www.ruby-forum.com/t/next-steps-in-ruby/177508 "2009-10-19T19:40:02Z")

</div>

Hi everyone, I’ve got a “solid” grasp on the basics of Ruby. I can write stuff with it. Everything is an object, so the Ruby way is to go that way. Some objects aren’t Enumerable, but Enumerable makes us happy. Rdoc i…

---

## [JRuby IP Bind](https://www.ruby-forum.com/t/jruby-ip-bind/176830)

<div class="topic-metadata">

**Author:** [@homerlex](https://www.ruby-forum.com/u/homerlex)\
**Replies:** 4\
**Last updated:** [October 7, 2009, 12:37pm UTC](https://www.ruby-forum.com/t/jruby-ip-bind/176830 "2009-10-07T12:37:15Z")

</div>

Trying to run a rails app with JRuby and have it bind to 0.0.0.0. After I run the command: jruby script\\server -p 3305 I see that it binds to 127: TCP 127.0.0.1:3305 0.0.0.0:0 LISTENING When…

---

## [USRP2 Sample 2.4 GHz Channel](https://www.ruby-forum.com/t/usrp2-sample-2-4-ghz-channel/175587)

<div class="topic-metadata">

**Author:** [@Miklos\_Christine](https://www.ruby-forum.com/u/Miklos_Christine)\
**Replies:** 4\
**Last updated:** [September 17, 2009, 7:03am UTC](https://www.ruby-forum.com/t/usrp2-sample-2-4-ghz-channel/175587 "2009-09-17T07:03:17Z")

</div>

Hello, I’m trying to sample the 802.11b wireless channels but the USRP2. I’m currently using revision 10689 of Gnuradio. I’ve added code to bbn\_80211b\_rx.py to connect the gr\_probe\_signal\_f() to the top block. To s…

---

## [Storing a value of an enum in the ActiveRecord model](https://www.ruby-forum.com/t/storing-a-value-of-an-enum-in-the-activerecord-model/173977)

<div class="topic-metadata">

**Author:** [@glex](https://www.ruby-forum.com/u/glex)\
**Replies:** 4\
**Last updated:** [August 19, 2009, 2:59am UTC](https://www.ruby-forum.com/t/storing-a-value-of-an-enum-in-the-activerecord-model/173977 "2009-08-19T02:59:51Z")

</div>

Hi, everyone! What is a good way to store a enum value in the ActiveRecord? For example, I have a User model. The User has a “gender” that can only be :not\_specified, :male, or :female. Gleb

---

## [Pulling values from strings](https://www.ruby-forum.com/t/pulling-values-from-strings/165524)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 4\
**Last updated:** [April 15, 2009, 2:46pm UTC](https://www.ruby-forum.com/t/pulling-values-from-strings/165524 "2009-04-15T14:46:19Z")

</div>

I have a string of data that I am trying to pull values from and have hit a roadblack since I am still getting the hang of Ruby, in Perl this would be easier but it seems that Ruby may be able to do this much simpler. …

---

## [Adding files in git](https://www.ruby-forum.com/t/adding-files-in-git/165013)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [April 8, 2009, 7:21pm UTC](https://www.ruby-forum.com/t/adding-files-in-git/165013 "2009-04-08T19:21:33Z")

</div>

Do I need to add each new file in git that is created after init? Or does it happen when I do “git commit -a -v -m ‘test’”? If so, can I just use “git .” and it will take new files and skip old ones?

---

## [\[ JOBS\] Looking for rockstar rubyists who eat and breathe healthy code](https://www.ruby-forum.com/t/jobs-looking-for-rockstar-rubyists-who-eat-and-breathe-healthy-code/160370)

<div class="topic-metadata">

**Author:** [@garage\_manager](https://www.ruby-forum.com/u/garage_manager)\
**Replies:** 4\
**Last updated:** [February 16, 2009, 9:35pm UTC](https://www.ruby-forum.com/t/jobs-looking-for-rockstar-rubyists-who-eat-and-breathe-healthy-code/160370 "2009-02-16T21:35:52Z")

</div>

Hello, We are http://whol.ly , an ambitious startup based in NewYork with our new development centre in Bangalore. While you are reading this, we are making tiny steps towards innovation in the world of social networ…

---

## [Add randomize method to array?](https://www.ruby-forum.com/t/add-randomize-method-to-array/158941)

<div class="topic-metadata">

**Author:** [@bartb](https://www.ruby-forum.com/u/bartb)\
**Replies:** 4\
**Last updated:** [January 29, 2009, 5:04pm UTC](https://www.ruby-forum.com/t/add-randomize-method-to-array/158941 "2009-01-29T17:04:52Z")

</div>

Perhaps a silly question. What is the best way to add a randomize method to array? I know that this code will properly randomize an array: a.sort\_by{ rand } but I wonder how I can know add this to the array class. I …

---

## [Email verso hotmail](https://www.ruby-forum.com/t/email-verso-hotmail/158565)

<div class="topic-metadata">

**Author:** [@arcoder](https://www.ruby-forum.com/u/arcoder)\
**Replies:** 4\
**Last updated:** [January 25, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/email-verso-hotmail/158565 "2009-01-25T20:46:47Z")

</div>

Ciao, sto facendo uno script che invia una email di convalida dopo la registrazione, ma hotmail sembra non recepire l’email.(con Gmail funziona alla grande) @subject = "Attivazione utente: " + user.nickname …

---

## [How to update table column?](https://www.ruby-forum.com/t/how-to-update-table-column/156634)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 4\
**Last updated:** [January 1, 2009, 2:02pm UTC](https://www.ruby-forum.com/t/how-to-update-table-column/156634 "2009-01-01T14:02:34Z")

</div>

There is a table existed in sqlite3 database. I want to change a column type in this table. I modified the file db/migrate/20081229XXXX\_create\_project.rb and run “rake db:migrate”. But it doesn’t update the table. How…

---

## [OT: Implementation Question](https://www.ruby-forum.com/t/ot-implementation-question/156034)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 4\
**Last updated:** [December 19, 2008, 6:37pm UTC](https://www.ruby-forum.com/t/ot-implementation-question/156034 "2008-12-19T18:37:41Z")

</div>

I have asked about this issue on several different mailing lists and have had no response. If anyone here can offer some advice then I would be much obliged. I have a feature that essentially says: Given I have a use…

---

## [How to spec the existence of specs](https://www.ruby-forum.com/t/how-to-spec-the-existence-of-specs/147187)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 4\
**Last updated:** [August 31, 2008, 9:40pm UTC](https://www.ruby-forum.com/t/how-to-spec-the-existence-of-specs/147187 "2008-08-31T21:40:23Z")

</div>

I’m writing a Rails plugin that generates specs for Rails models. Obviously, I want to use RSpec to spec this plugin. The plugin, called ModelSpeccer, contains a module with three methods. Each method generates specs …

---

## [Punch-0.0.1](https://www.ruby-forum.com/t/punch-0-0-1/122368)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 4\
**Last updated:** [December 7, 2007, 3:18am UTC](https://www.ruby-forum.com/t/punch-0-0-1/122368 "2007-12-07T03:18:29Z")

</div>

NAME punch SYNOPSIS punch (in|out|log|clock|status|list|total|delete|dump) \[options\]+ URIS http://codeforpeople.com/lib/ruby/punch http://rubyforge.org/projects/codeforpeople/ INSTALL gem install punch DESCRIPTI…

---

## [Name of a variable, at runtime](https://www.ruby-forum.com/t/name-of-a-variable-at-runtime/119912)

<div class="topic-metadata">

**Author:** [@banry](https://www.ruby-forum.com/u/banry)\
**Replies:** 4\
**Last updated:** [November 13, 2007, 6:22am UTC](https://www.ruby-forum.com/t/name-of-a-variable-at-runtime/119912 "2007-11-13T06:22:48Z")

</div>

This seems harder than the usual thing I’ve been tripping on (and finding answers in the pickaxe or online). I have an object: human. It has parts: human.hand human.foot. How can I say this: fred = human.new fred.ha…

---

## [Compiling ruby-1.8.6 on CentOS-4.5 with readline and openssl](https://www.ruby-forum.com/t/compiling-ruby-1-8-6-on-centos-4-5-with-readline-and-openssl/113874)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 4\
**Last updated:** [September 7, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/compiling-ruby-1-8-6-on-centos-4-5-with-readline-and-openssl/113874 "2007-09-07T19:41:23Z")

</div>

I am having problems with getting a recent version of ruby properly built and installed on my CentOS-4.5 box. I obtained the source from ruby-lang.org and built it taking all the defaults in ./configure. I see both …

---

## [ProblÃ¨me Ã©trange. Probablement une histo ire de pointeurs](https://www.ruby-forum.com/t/probla-me-a-trange-probablement-une-histo-ire-de-pointeurs/111491)

<div class="topic-metadata">

**Author:** [@Romain\_DurritSSSSag](https://www.ruby-forum.com/u/Romain_DurritSSSSag)\
**Replies:** 4\
**Last updated:** [August 8, 2007, 7:33am UTC](https://www.ruby-forum.com/t/probla-me-a-trange-probablement-une-histo-ire-de-pointeurs/111491 "2007-08-08T07:33:50Z")

</div>

Salut Ã tous, J’ai donc une question pour un problÃ¨me qui m’Ã©nerve depuis quelques jours. J’ai un newsletter\_controller qui contient : def send\_newsletter news = Newsletter.find(params\[:id\]) news.update\_attribut…

---

## [Duda con relaciÃ³n 1-1](https://www.ruby-forum.com/t/duda-con-relacia-n-1-1/107402)

<div class="topic-metadata">

**Author:** [@panto](https://www.ruby-forum.com/u/panto)\
**Replies:** 4\
**Last updated:** [June 21, 2007, 1:46pm UTC](https://www.ruby-forum.com/t/duda-con-relacia-n-1-1/107402 "2007-06-21T13:46:05Z")

</div>

Buenas, tengo una duda a la hora de crear un módelo User y un modelo Profile. El tema es que un usuario siempre tiene un perfil pero un perfil no tiene porque tener un usuario. Quiero guardar en el modelo Profile lo …

---

## [Access session in models](https://www.ruby-forum.com/t/access-session-in-models/105886)

<div class="topic-metadata">

**Author:** [@kwi](https://www.ruby-forum.com/u/kwi)\
**Replies:** 4\
**Last updated:** [June 5, 2007, 2:44am UTC](https://www.ruby-forum.com/t/access-session-in-models/105886 "2007-06-05T02:44:23Z")

</div>

Hi guys, I have a little problem, i want to access the session in a model. I have a variable of that model in session and i want to keep my session update after each modification, and i want to centralize that in the …

---

## [Multiple selection in select box in Rhtml](https://www.ruby-forum.com/t/multiple-selection-in-select-box-in-rhtml/89093)

<div class="topic-metadata">

**Author:** [@murraj](https://www.ruby-forum.com/u/murraj)\
**Replies:** 4\
**Last updated:** [March 20, 2007, 12:03am UTC](https://www.ruby-forum.com/t/multiple-selection-in-select-box-in-rhtml/89093 "2007-03-20T00:03:16Z")

</div>

How to select multiple entries in a select box in rhtml ? In html , it can be done by setting ‘multiple=true’. But in rhtml ‘select-tag’, how to do this ? Pls suggest me !

---

## [Submitting aform using link\_to\_remote](https://www.ruby-forum.com/t/submitting-aform-using-link-to-remote/88536)

<div class="topic-metadata">

**Author:** [@senthil](https://www.ruby-forum.com/u/senthil)\
**Replies:** 4\
**Last updated:** [March 12, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/submitting-aform-using-link-to-remote/88536 "2007-03-12T16:57:01Z")

</div>

Hi all, I want ro submit form using link\_to\_remote , since i wnat to pass all form parameters to back end i dont want to use send each value in :with option.how to submit a form using link\_ro\_remote. Can anyone help …

---

## [Question about closure example on p. 56 of pickaxe book](https://www.ruby-forum.com/t/question-about-closure-example-on-p-56-of-pickaxe-book/84721)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 4\
**Last updated:** [February 7, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/question-about-closure-example-on-p-56-of-pickaxe-book/84721 "2007-02-07T16:56:59Z")

</div>

I’m new to both Ruby and closures, and I’m trying to nail down exactly what’s going on in an example on p. 56 in the 2nd edition of Programming Ruby: songlist = SongList.new class JukeboxButton \< Button def initiali…

---

## [Installation of binding database using Gem or apt-get](https://www.ruby-forum.com/t/installation-of-binding-database-using-gem-or-apt-get/83886)

<div class="topic-metadata">

**Author:** [@GinTon](https://www.ruby-forum.com/u/GinTon)\
**Replies:** 4\
**Last updated:** [January 30, 2007, 2:37pm UTC](https://www.ruby-forum.com/t/installation-of-binding-database-using-gem-or-apt-get/83886 "2007-01-30T14:37:10Z")

</div>

I’m very confused with a thing. To installing a database as postgresql in Ruby from Debian/Ubuntu, does the same to using “apt-get install libpgsql-ruby1.8” than “gem install postgres”? If they are the same, which is …

---

## [Getting all directories in a specified directory](https://www.ruby-forum.com/t/getting-all-directories-in-a-specified-directory/76672)

<div class="topic-metadata">

**Author:** [@al\_schmid](https://www.ruby-forum.com/u/al_schmid)\
**Replies:** 4\
**Last updated:** [December 16, 2006, 12:44am UTC](https://www.ruby-forum.com/t/getting-all-directories-in-a-specified-directory/76672 "2006-12-16T00:44:48Z")

</div>

Hello everyone I’m trying to make a “directory chooser” for a form, so that the user can choose a subdirectory (via dropdown) of a specified root directory (under public/images) on the server. Sooo… how do I get an ar…

---

## [ActionWebService deprecated?](https://www.ruby-forum.com/t/actionwebservice-deprecated/72829)

<div class="topic-metadata">

**Author:** [@fxp](https://www.ruby-forum.com/u/fxp)\
**Replies:** 4\
**Last updated:** [October 19, 2006, 11:10am UTC](https://www.ruby-forum.com/t/actionwebservice-deprecated/72829 "2006-10-19T11:10:45Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hey all, I thought I remembered seeing a comment about ActionWebService being deprecated in favor of something else in the latest Rails Edge. Is that true or did I dream…

---

## [Error in Ruby quickstart tutorial](https://www.ruby-forum.com/t/error-in-ruby-quickstart-tutorial/71048)

<div class="topic-metadata">

**Author:** [@oinkoink](https://www.ruby-forum.com/u/oinkoink)\
**Replies:** 4\
**Last updated:** [October 5, 2006, 1:17am UTC](https://www.ruby-forum.com/t/error-in-ruby-quickstart-tutorial/71048 "2006-10-05T01:17:27Z")

</div>

On the quickstart tutorial on the Ruby homepage, http://www.ruby-lang.org/en/quickstart/3/ , it says, “In Ruby, you can open a class up again and modify it. That doesn’t change any objects that already exist, but it d…

---

## [Convert](https://www.ruby-forum.com/t/convert/95833)

<div class="topic-metadata">

**Author:** [@joakim](https://www.ruby-forum.com/u/joakim)\
**Replies:** 4\
**Last updated:** [June 15, 2006, 1:16pm UTC](https://www.ruby-forum.com/t/convert/95833 "2006-06-15T13:16:13Z")

</div>

Hello I wonder if there is a simple way to convert all keys in a Hash to member variables in a Class without knowing the key names in the Hash beforehand. example MyHash\[“ada”\] = “yes” MyHash\[“beda”\] = “no” MyHash…

---

## [No enter/click app \[barcode reader\]](https://www.ruby-forum.com/t/no-enter-click-app-barcode-reader/61208)

<div class="topic-metadata">

**Author:** [@Jorge\_Mario\_GSMazo](https://www.ruby-forum.com/u/Jorge_Mario_GSMazo)\
**Replies:** 4\
**Last updated:** [May 22, 2006, 10:56pm UTC](https://www.ruby-forum.com/t/no-enter-click-app-barcode-reader/61208 "2006-05-22T22:56:24Z")

</div>

I there We are making an app using barcode readers and it would be great if we did not have to hit enter or click each time an product is scanned, does anuybody has eny idea about how to achive this? Thanks in advanc…

---

## [Vba --\> ruby](https://www.ruby-forum.com/t/vba-ruby/93816)

<div class="topic-metadata">

**Author:** [@chiaroscuro](https://www.ruby-forum.com/u/chiaroscuro)\
**Replies:** 4\
**Last updated:** [April 11, 2006, 2:58pm UTC](https://www.ruby-forum.com/t/vba-ruby/93816 "2006-04-11T14:58:40Z")

</div>

Mi piacerebbe scrivere un tool (sempre che non esista già, io non l’ho trovato) per tradurre un sistema scritto in VBA a Ruby. La via che mi esalterebbe di più sarebbe poter wrappare il codice vb (con un minimo di tex…

---

## [SunPro compiler and rpath](https://www.ruby-forum.com/t/sunpro-compiler-and-rpath/55316)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 4\
**Last updated:** [March 20, 2006, 4:04am UTC](https://www.ruby-forum.com/t/sunpro-compiler-and-rpath/55316 "2006-03-20T04:04:43Z")

</div>

e$B$3$s$P$s$O!#e(B Solarise$B$Ge(BSunProe$B$Ne(Bcompilere$B$r;H$&$H!"3HD%%i%$%V%i%j$,8+$D$+$i$J$$$H$$$&e(B e$BJs9p$rLc$$$^$7$?!#e(BRubye$B$Oe(B1.8.4e$B$G$9!#e(B % ldd /usr/pkg/lib/ruby/1.8/sparc-solaris2/pty.so libru…

---

## [Basic question: Where to initialize a flag?](https://www.ruby-forum.com/t/basic-question-where-to-initialize-a-flag/53967)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 4\
**Last updated:** [February 19, 2006, 3:37pm UTC](https://www.ruby-forum.com/t/basic-question-where-to-initialize-a-flag/53967 "2006-02-19T15:37:59Z")

</div>

I have found that if I initialize a flag in my controller (under def Initialize), it appears everytime I call a controller action, the flag is set to the initialize value (even though I’m not calling the initialized a…

---

## [RoR production app does not refresh](https://www.ruby-forum.com/t/ror-production-app-does-not-refresh/99557)

<div class="topic-metadata">

**Author:** [@mkhumri](https://www.ruby-forum.com/u/mkhumri)\
**Replies:** 4\
**Last updated:** [January 31, 2006, 11:39pm UTC](https://www.ruby-forum.com/t/ror-production-app-does-not-refresh/99557 "2006-01-31T23:39:24Z")

</div>

Hi, We have a RoR app deployed using Apache + fastcgi in production mode. When we make a change to say a controller filie on the server and go back to that page that executes that controller action it takes no effect…

---

## [Validates\_format\_of \> Invalid regular expression with simple](https://www.ruby-forum.com/t/validates-format-of-invalid-regular-expression-with-simple/52938)

<div class="topic-metadata">

**Author:** [@oo00oo](https://www.ruby-forum.com/u/oo00oo)\
**Replies:** 4\
**Last updated:** [January 21, 2006, 11:33am UTC](https://www.ruby-forum.com/t/validates-format-of-invalid-regular-expression-with-simple/52938 "2006-01-21T11:33:08Z")

</div>

Hello, I try this : validates\_format\_of :name , :with =\> /^\[A-z0-9\_.- \]\*$/ , :message =\> “bad characters” for accept any name with chars “A” to “z” , “0” to “9” , with “\_” “.” “-” and " " The pattern is really simp…

---

## [Workshops or groups in Boston?](https://www.ruby-forum.com/t/workshops-or-groups-in-boston/101749)

<div class="topic-metadata">

**Author:** [@Eric\_Czarny](https://www.ruby-forum.com/u/Eric_Czarny)\
**Replies:** 4\
**Last updated:** [January 13, 2006, 9:30pm UTC](https://www.ruby-forum.com/t/workshops-or-groups-in-boston/101749 "2006-01-13T21:30:20Z")

</div>

I have been hearing a lot about workshops and/or groups of Ruby on Rails users meeting up in numerous cities, but I haven’t been too successful finding any such gatherings or events in Boston. On the wiki there is a l…

---

## [Comma used to separate keys and values in hash literals until 1.9](https://www.ruby-forum.com/t/comma-used-to-separate-keys-and-values-in-hash-literals-until-1-9/260289)

<div class="topic-metadata">

**Author:** [@jgomo3](https://www.ruby-forum.com/u/jgomo3)\
**Replies:** 1\
**Last updated:** [September 25, 2020, 7:51am UTC](https://www.ruby-forum.com/t/comma-used-to-separate-keys-and-values-in-hash-literals-until-1-9/260289 "2020-09-25T07:51:10Z")

</div>

I’m reading “Programming Ruby 1.9 & 2.0” and there is a footnote that states: “As of Ruby 1.9, a comma may no longer be used to separate keys and values in hash literals. A comma still appears between each key/value pai…

---

## [Reading all the keys from simple json data and nested json data](https://www.ruby-forum.com/t/reading-all-the-keys-from-simple-json-data-and-nested-json-data/253607)

<div class="topic-metadata">

**Author:** [@sunilkumarnagoore](https://www.ruby-forum.com/u/sunilkumarnagoore)\
**Replies:** 1\
**Last updated:** [January 26, 2020, 6:23pm UTC](https://www.ruby-forum.com/t/reading-all-the-keys-from-simple-json-data-and-nested-json-data/253607 "2020-01-26T18:23:05Z")

</div>

Hi is there any gem is availeble to read all the keys from simple json and nested json

---

## [The sa\_family of accept socket is equal 0](https://www.ruby-forum.com/t/the-sa-family-of-accept-socket-is-equal-0/243910)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [January 25, 2016, 4:44pm UTC](https://www.ruby-forum.com/t/the-sa-family-of-accept-socket-is-equal-0/243910 "2016-01-25T16:44:43Z")

</div>

nginx version: 1.63 OS version: hp-ux B.11.23 Client connect server with telnet, by GDB, I find: ngx\_event\_accept.c, function ngx\_event\_accept, line 279, the value of ‘c-\>addr\_text.len’ is zero, but the server sock…

---

## [Need help to create image in circle shape with the help of paperclip in rails 4](https://www.ruby-forum.com/t/need-help-to-create-image-in-circle-shape-with-the-help-of-paperclip-in-rails-4/242192)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [June 3, 2015, 4:07pm UTC](https://www.ruby-forum.com/t/need-help-to-create-image-in-circle-shape-with-the-help-of-paperclip-in-rails-4/242192 "2015-06-03T16:07:55Z")

</div>

Hi I have found that we can crop image as circle with image magic and carriageways ,but I want to know is it possible with paperclip that we can crop image in circle if you could you guide me please. Thanks

---

## [Nginx-1.7.7](https://www.ruby-forum.com/t/nginx-1-7-7/232792)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 30, 2014, 12:24pm UTC](https://www.ruby-forum.com/t/nginx-1-7-7/232792 "2014-10-30T12:24:46Z")

</div>

Changes with nginx 1.7.7 28 Oct 2014 \*) Change: now nginx takes into account the "Vary" header line in a backend response while caching. \*) Feature: the "proxy\_force\_ranges",…

---

## [Is it possible to yield C# code?](https://www.ruby-forum.com/t/is-it-possible-to-yield-c-code/199834)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [November 30, 2010, 6:47pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-yield-c-code/199834 "2010-11-30T18:47:07Z")

</div>

I’m sorry if this is the wrong list. Please direct me if so. This is not really something I’m losing sleep over but still I’m a fair bit curious to know if it’s possible to yield code that’s not Ruby from IronRuby. Is…

[Previous page](https://www.ruby-forum.com/top.md?page=1256&per_page=50)

[Next page](https://www.ruby-forum.com/top.md?page=1258&per_page=50)
