# Ruby

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

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

---

## [Save file in win32 os](https://www.ruby-forum.com/t/save-file-in-win32-os/141037)

<div class="topic-metadata">

**Author:** [@treguidel](https://www.ruby-forum.com/u/treguidel)\
**Replies:** 0\
**Last updated:** [June 21, 2008, 1:14am UTC](https://www.ruby-forum.com/t/save-file-in-win32-os/141037 "2008-06-21T01:14:47Z")

</div>

Hi I would like to save a file with ruby using API32 with “dialog box save” to choose the filename and the directory, I have no idea to code this, someone can help me Thank you

---

## [Ruby vs JRuby Performance](https://www.ruby-forum.com/t/ruby-vs-jruby-performance/139957)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 19\
**Last updated:** [June 21, 2008, 1:14am UTC](https://www.ruby-forum.com/t/ruby-vs-jruby-performance/139957 "2008-06-21T01:14:37Z")

</div>

I knew that there was a penalty to be paid when running JRuby, but I did not know how high. I developed a Sudoku solver, which actually solves simple to medium difficult puzzles. I am still struggling to make it solv…

---

## [Git clones of JRuby and Matz Ruby subversion repositories](https://www.ruby-forum.com/t/git-clones-of-jruby-and-matz-ruby-subversion-repositories/141026)

<div class="topic-metadata">

**Author:** [@vovka](https://www.ruby-forum.com/u/vovka)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/git-clones-of-jruby-and-matz-ruby-subversion-repositories/141026 "2008-06-20T21:39:13Z")

</div>

Folks, For those who’d like to use GIT instead of Subversion to track JRuby and Ruby progress (and the number of such users is constantly growing), we have now FULL git clones of both, JRuby and Ruby subversion repos…

---

## [How to force a decimal](https://www.ruby-forum.com/t/how-to-force-a-decimal/141014)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 2\
**Last updated:** [June 20, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/how-to-force-a-decimal/141014 "2008-06-20T21:19:10Z")

</div>

Hey there all, This should be simple. I need to know how to force a decimal place. say i wanted to do 3.5.to\_s but i need that to be 3.50 as the string, how would i do this? thanks

---

## [Net::SSH Force tty](https://www.ruby-forum.com/t/net-ssh-force-tty/140954)

<div class="topic-metadata">

**Author:** [@shawnjan](https://www.ruby-forum.com/u/shawnjan)\
**Replies:** 3\
**Last updated:** [June 20, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/net-ssh-force-tty/140954 "2008-06-20T20:27:24Z")

</div>

Hey guys, I was wondering if there was a way using the Force pseudo-tty allocation. If I was just to use SSH, I would use the -t flag, but I can’t seem to find a solution for Ruby anywhere. Any help would be apprecia…

---

## [Wierd problems with Win32API and dlls](https://www.ruby-forum.com/t/wierd-problems-with-win32api-and-dlls/141015)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/wierd-problems-with-win32api-and-dlls/141015 "2008-06-20T20:11:03Z")

</div>

i am currently developing a more advanced audio and input system for the ruby / gosu package and ive come across a strange problem with the audio dll im using. (The dll was created by a friend for his game but given t…

---

## [JDBC Sqlite3: undefined method \`recreate\_database'](https://www.ruby-forum.com/t/jdbc-sqlite3-undefined-method-recreate-database/140941)

<div class="topic-metadata">

**Author:** [@Caleb\_L](https://www.ruby-forum.com/u/Caleb_L)\
**Replies:** 4\
**Last updated:** [June 20, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/jdbc-sqlite3-undefined-method-recreate-database/140941 "2008-06-20T19:17:27Z")

</div>

I posted a comment on an issue that looks like the one I’m having at: http://jira.codehaus.org/browse/JRUBY-1584 but I thought I’d ask here in case someone has a solution. I’m running Rails 2.1 with JRuby 1.1.2 and I …

---

## [Rbconfig not indicating correct ruby-dev libaries locations](https://www.ruby-forum.com/t/rbconfig-not-indicating-correct-ruby-dev-libaries-locations/140986)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 1\
**Last updated:** [June 20, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/rbconfig-not-indicating-correct-ruby-dev-libaries-locations/140986 "2008-06-20T17:26:58Z")

</div>

Dear all, when trying to install the newest Shoes on ubuntu 8.04 from source, I got an error shoes build options: CC = cc RUBY = /usr/local OPTIONS = ruby 1.8.6 (2008-03-03 patchlevel 114) \[i686-linux\] …

---

## [Create dynamic variable](https://www.ruby-forum.com/t/create-dynamic-variable/140947)

<div class="topic-metadata">

**Author:** [@itkin](https://www.ruby-forum.com/u/itkin)\
**Replies:** 2\
**Last updated:** [June 20, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/create-dynamic-variable/140947 "2008-06-20T16:41:41Z")

</div>

Hi ! is it possible in ruby to create dynamic variables like in php by doing $b=$$a ?? i’d like to infer an instance variable from a layout view, in order to set up dynamically a precise id to my html object (so i n…

---

## [Ruby and OpenTransport.h:723](https://www.ruby-forum.com/t/ruby-and-opentransport-h-723/140997)

<div class="topic-metadata">

**Author:** [@sandro\_p](https://www.ruby-forum.com/u/sandro_p)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 4:38pm UTC](https://www.ruby-forum.com/t/ruby-and-opentransport-h-723/140997 "2008-06-20T16:38:45Z")

</div>

Hi While trying to run ogre.rb (but the same problem seems to appear also with other gem/apps) i stumbled in this error (I use OS10.4): /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framewo…

---

## [Two Ruby equivalents to Powershell commands](https://www.ruby-forum.com/t/two-ruby-equivalents-to-powershell-commands/140906)

<div class="topic-metadata">

**Author:** [@rorschach](https://www.ruby-forum.com/u/rorschach)\
**Replies:** 5\
**Last updated:** [June 20, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/two-ruby-equivalents-to-powershell-commands/140906 "2008-06-20T16:32:48Z")

</div>

Hi, Iâ€™m in the process of transferring a bunch of script from powershell to ruby to aid interoperability with an existing application and Iâ€™m looking for two ruby equivalents to powershell commands: PSBASE is a v…

---

## [Some quastions about Webby](https://www.ruby-forum.com/t/some-quastions-about-webby/140990)

<div class="topic-metadata">

**Author:** [@antonk](https://www.ruby-forum.com/u/antonk)\
**Replies:** 2\
**Last updated:** [June 20, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/some-quastions-about-webby/140990 "2008-06-20T15:47:21Z")

</div>

Hello. I want to build my oown simple application based on Webby for making prototypes of web-sies. I plan to use my custom CSS Framework and HAML. How I can change settings of this gem that use my css instead Bluepr…

---

## [The new IronRuby wiki](https://www.ruby-forum.com/t/the-new-ironruby-wiki/140951)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 1\
**Last updated:** [June 20, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/the-new-ironruby-wiki/140951 "2008-06-20T15:35:29Z")

</div>

I spent some time today moving content over to a new wiki - hosted on http://wik.is on the awesome DekiWiki engine - which incidentally runs on top of Mono and ASP.NET. I also fixed all of the various busted URLs on o…

---

## [How to load a Texture in Ruby-Opengl](https://www.ruby-forum.com/t/how-to-load-a-texture-in-ruby-opengl/140920)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [June 20, 2008, 1:53pm UTC](https://www.ruby-forum.com/t/how-to-load-a-texture-in-ruby-opengl/140920 "2008-06-20T13:53:48Z")

</div>

Hi, I don’t get it working in Ruby. I try to load a texture which works pretty easy in other languages like c++ and there are plenty of examples in other languages but none for Ruby. The file could be any format but …

---

## [Ruby-community-announcements Mailing List](https://www.ruby-forum.com/t/ruby-community-announcements-mailing-list/140929)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 7\
**Last updated:** [June 20, 2008, 12:39pm UTC](https://www.ruby-forum.com/t/ruby-community-announcements-mailing-list/140929 "2008-06-20T12:39:27Z")

</div>

Hi folks, As an experiment, I created a Google Group dedicated specifically to Ruby Community Announcements: http://groups.google.com/group/ruby-community-announcements What is a Ruby community announcement? In my m…

---

## [Eventmachine parameters to post\_init](https://www.ruby-forum.com/t/eventmachine-parameters-to-post-init/140967)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 1\
**Last updated:** [June 20, 2008, 9:19am UTC](https://www.ruby-forum.com/t/eventmachine-parameters-to-post-init/140967 "2008-06-20T09:19:12Z")

</div>

Hi! I have a module which EventMachine mixes in to implement a UDP server. In this case the module’s post\_init method is called when someone connects and takes the place of a constructor, but how can I pass parameter…

---

## [PATCH for MySQL/Ruby](https://www.ruby-forum.com/t/patch-for-mysql-ruby/140751)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 4\
**Last updated:** [June 20, 2008, 8:46am UTC](https://www.ruby-forum.com/t/patch-for-mysql-ruby/140751 "2008-06-20T08:46:50Z")

</div>

e$B$J$+$@$G$9!#e(B MySQL/Ruby 2.8pre2e$B$r$$F$$?$N$G$9$,!"$d$dLdBj$,$"$k$h$&$G$9!#e(B = e$BJL%G%#%l%/%H%j$G%3%s%Q%$%k$G$-$J$$!#e(B \*.ce$B$r\<+F0$GC5$9$N$O%=!\<%9%G%#%l%/%H%j$G$9!#$3$N\>l9g$O%=!\<%9A4e(B e$BBN$r%3%T!\<$7$J…

---

## [AR-JDBC encoding problem](https://www.ruby-forum.com/t/ar-jdbc-encoding-problem/140963)

<div class="topic-metadata">

**Author:** [@kascote](https://www.ruby-forum.com/u/kascote)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 8:08am UTC](https://www.ruby-forum.com/t/ar-jdbc-encoding-problem/140963 "2008-06-20T08:08:47Z")

</div>

Hi, I’m testing JRuby with MS SQLServer jdbc adapter with a iso-8859-1 setup (webpages, database collation, etc)… I can’t save data with accents (Ã¡Ã©Ã­Ã³ÃºÃ±)… instead they are replaced with the question mark (?) sym…

---

## [.NET delegates, asynchronousness and such](https://www.ruby-forum.com/t/net-delegates-asynchronousness-and-such/140956)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 5:20am UTC](https://www.ruby-forum.com/t/net-delegates-asynchronousness-and-such/140956 "2008-06-20T05:20:56Z")

</div>

Hi I want to execute a delegate asynchronously with something like Action.BeginInvoke that doesn’t seem to work, also using BackgroundWorker I get no result. bw = System::ComponentModel::BackgroundWorker.new bw.do\_…

---

## [How to capture a keypress](https://www.ruby-forum.com/t/how-to-capture-a-keypress/140640)

<div class="topic-metadata">

**Author:** [@saikun](https://www.ruby-forum.com/u/saikun)\
**Replies:** 6\
**Last updated:** [June 20, 2008, 2:05am UTC](https://www.ruby-forum.com/t/how-to-capture-a-keypress/140640 "2008-06-20T02:05:52Z")

</div>

Hi there, I’m making an interface for a console program that should react whenever the user presses the keys a, m, n or s. I tried to look for a method like keydown or keypress, but I couldn’t find anything alike, ne…

---

## [InvalidAuthentictyToken error](https://www.ruby-forum.com/t/invalidauthentictytoken-error/140845)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 7\
**Last updated:** [June 20, 2008, 1:09am UTC](https://www.ruby-forum.com/t/invalidauthentictytoken-error/140845 "2008-06-20T01:09:49Z")

</div>

Is there an issue with protect\_from\_forgery on Jruby 1.1.2 running rails? Environment: Rails 2.1 Tomcat 5.5 OSX Jruby 1.1.2 Warbler I keep getting the following in the tomcat log: ActionController::InvalidAuthen…

---

## [Re: YAML](https://www.ruby-forum.com/t/re-yaml/140949)

<div class="topic-metadata">

**Author:** [@oleg](https://www.ruby-forum.com/u/oleg)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 12:59am UTC](https://www.ruby-forum.com/t/re-yaml/140949 "2008-06-20T00:59:51Z")

</div>

I’m currently working on improving yaml implementation. It will be better in next build. One problem you can see in your test is that current implementation doesn’t support loading symbols. That’s because our implemen…

---

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

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 2\
**Last updated:** [June 20, 2008, 12:49am UTC](https://www.ruby-forum.com/t/yaml/140945 "2008-06-20T00:49:52Z")

</div>

Hi Is yaml supposed to be working atm because when I try it, it definitely does some weird things. When I run the tests there is one test that fails the yamlorg\_refcard.yml. And this is my test. require ‘yaml’ …

---

## [IIS Deployment](https://www.ruby-forum.com/t/iis-deployment/140936)

<div class="topic-metadata">

**Author:** [@jcain](https://www.ruby-forum.com/u/jcain)\
**Replies:** 4\
**Last updated:** [June 20, 2008, 12:38am UTC](https://www.ruby-forum.com/t/iis-deployment/140936 "2008-06-20T00:38:09Z")

</div>

Hello All, I have a Ruby on Rails codebase that is only partially completed. Due to circumstances beyond my control, the production server must be IIS, and there is absolutely no way to change this. Deployment is c…

---

## [New blog](https://www.ruby-forum.com/t/new-blog/140454)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [June 19, 2008, 11:45pm UTC](https://www.ruby-forum.com/t/new-blog/140454 "2008-06-19T23:45:17Z")

</div>

I’ve started up a blog at http://blog.jredville.com. And John, once I set up jredville.com to redirect or mirror that, I own the top result for jredville :wink: JD

---

## [Fwd: Alt.NET Podcast: IronRuby](https://www.ruby-forum.com/t/fwd-alt-net-podcast-ironruby/140934)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 3\
**Last updated:** [June 19, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/fwd-alt-net-podcast-ironruby/140934 "2008-06-19T23:03:26Z")

</div>

\---------- Forwarded message ---------- From: Ivan Porto C. removed\_email\_address@domain.invalid Date: Thu, Jun 19, 2008 at 11:20 PM Subject: Re: Alt.NET Podcast: IronRuby To: Aaron Junod removed\_email\_address@domain…

---

## [How to Have 46 Characters Show up In A Table Cell](https://www.ruby-forum.com/t/how-to-have-46-characters-show-up-in-a-table-cell/140914)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 5\
**Last updated:** [June 19, 2008, 10:52pm UTC](https://www.ruby-forum.com/t/how-to-have-46-characters-show-up-in-a-table-cell/140914 "2008-06-19T22:52:15Z")

</div>

So I have a background primarily in server side + basic front end. I dont know if this is very relevant to rails or if I should ask some design forum (if you know any please share!) My client however has an unusual re…

---

## [Class question](https://www.ruby-forum.com/t/class-question/140935)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 1\
**Last updated:** [June 19, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/class-question/140935 "2008-06-19T22:48:06Z")

</div>

class Box attr\_reader :exceptions def initialize exceptions = Hash.new end def exceptions? if(!exceptions.empty?) puts "error" else puts "No exceptions found." end end end box = Box…

---

## [Add new text to files](https://www.ruby-forum.com/t/add-new-text-to-files/140828)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 5\
**Last updated:** [June 19, 2008, 10:13pm UTC](https://www.ruby-forum.com/t/add-new-text-to-files/140828 "2008-06-19T22:13:52Z")

</div>

Hello, I’m trying to insert new text into the middle of a file with the following: file = File.open(“file.rb”, “r+”) file.each { |line| if line.match(/line text/) file.puts(“hello”) end } This works fine except …

---

## [Using win32api](https://www.ruby-forum.com/t/using-win32api/140924)

<div class="topic-metadata">

**Author:** [@tristincolby](https://www.ruby-forum.com/u/tristincolby)\
**Replies:** 0\
**Last updated:** [June 19, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/using-win32api/140924 "2008-06-19T21:14:18Z")

</div>

Can anyone point me in the right direction for some good, in depth examples of using Win32API. I"m extremely lost when it comes to packing/unpacking the data. After many many searches, I find several places where m…

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

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