# Ruby

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

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

---

## [Encryption (of credit cards)](https://www.ruby-forum.com/t/encryption-of-credit-cards/110825)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 1\
**Last updated:** [July 31, 2007, 12:58pm UTC](https://www.ruby-forum.com/t/encryption-of-credit-cards/110825 "2007-07-31T12:58:22Z")

</div>

http://monkeycharger.googlecode.com/svn/trunk/app/models/credit\_card.rb Ignore the fact that it’s a ActiveRecord model and tell me if the encryption that I’m using for encrypting the credit card numbers is reasonable.…

---

## [CGI: triggering a file download & having a page appear](https://www.ruby-forum.com/t/cgi-triggering-a-file-download-having-a-page-appear/110824)

<div class="topic-metadata">

**Author:** [@frocco](https://www.ruby-forum.com/u/frocco)\
**Replies:** 1\
**Last updated:** [July 31, 2007, 11:44am UTC](https://www.ruby-forum.com/t/cgi-triggering-a-file-download-having-a-page-appear/110824 "2007-07-31T11:44:09Z")

</div>

Hi, I’m fairly new to fast-cgi/CGI programming and I have a particular problem: When people click on a download link, I want the download to start (zip file) AND an installation page to appear that explains how to us…

---

## [Puzzled about Ruby's behaviour re. closed sockets](https://www.ruby-forum.com/t/puzzled-about-rubys-behaviour-re-closed-sockets/110687)

<div class="topic-metadata">

**Author:** [@bizot](https://www.ruby-forum.com/u/bizot)\
**Replies:** 2\
**Last updated:** [July 31, 2007, 11:26am UTC](https://www.ruby-forum.com/t/puzzled-about-rubys-behaviour-re-closed-sockets/110687 "2007-07-31T11:26:08Z")

</div>

Everyone, I’d like to write a test that ensures a Server application correctly handles closed client connections – more specifically: I want to set up a TCPServer, then a client, then close the client, then attempt to …

---

## [Passing variables to a required file](https://www.ruby-forum.com/t/passing-variables-to-a-required-file/110785)

<div class="topic-metadata">

**Author:** [@mtnbiker](https://www.ruby-forum.com/u/mtnbiker)\
**Replies:** 8\
**Last updated:** [July 31, 2007, 10:32am UTC](https://www.ruby-forum.com/t/passing-variables-to-a-required-file/110785 "2007-07-31T10:32:02Z")

</div>

I want to pass about 10 variables to a "require"d file. My understanding is that I need to use global variables. Is this correct? I’m reluctant to change all the variables to global for fear of messing up the methods …

---

## [Confusion with while loop](https://www.ruby-forum.com/t/confusion-with-while-loop/110800)

<div class="topic-metadata">

**Author:** [@Michael\_WSRyder](https://www.ruby-forum.com/u/Michael_WSRyder)\
**Replies:** 4\
**Last updated:** [July 31, 2007, 10:32am UTC](https://www.ruby-forum.com/t/confusion-with-while-loop/110800 "2007-07-31T10:32:01Z")

</div>

I am trying to create a method that would allow one to skip x number of a character then change the next y number of a character. While trying to create a simple routine I ran into two “weird” problems. The code fol…

---

## [Limit file download size](https://www.ruby-forum.com/t/limit-file-download-size/196412)

<div class="topic-metadata">

**Author:** [@andreim](https://www.ruby-forum.com/u/andreim)\
**Replies:** 4\
**Last updated:** [July 31, 2007, 10:05am UTC](https://www.ruby-forum.com/t/limit-file-download-size/196412 "2007-07-31T10:05:25Z")

</div>

Hi, I’m writing a ruby on rails application that allows the user to submit a link of a file which my app will then download. Right now my app blindly downloads the file (which is 1-2mb on average) I’m worried about p…

---

## [Memcache-client 1.4.0 Released](https://www.ruby-forum.com/t/memcache-client-1-4-0-released/110808)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 6:21am UTC](https://www.ruby-forum.com/t/memcache-client-1-4-0-released/110808 "2007-07-31T06:21:32Z")

</div>

memcache-client version 1.4.0 has been released! http://seattlerb.org/memcache-client memcache-client is a client for Danga Interactive’s memcached. Changes: 1.4.0 Fix bug #10371, #set does not check response for…

---

## [Shoes 0.r9 -- an entirely new GUI toolkit](https://www.ruby-forum.com/t/shoes-0-r9-an-entirely-new-gui-toolkit/110798)

<div class="topic-metadata">

**Author:** [@S\_why](https://www.ruby-forum.com/u/S_why)\
**Replies:** 3\
**Last updated:** [July 31, 2007, 6:19am UTC](https://www.ruby-forum.com/t/shoes-0-r9-an-entirely-new-gui-toolkit/110798 "2007-07-31T06:19:31Z")

</div>

Hey, yeah. Today marks the first experimental release of Shoes. http://code.whytheluckystiff.net/shoes/ Shoes is a GUI toolkit, built with Cairo and Pango alone, which takes its cues from the web. Rather than buildi…

---

## [How to update Ruby](https://www.ruby-forum.com/t/how-to-update-ruby/110789)

<div class="topic-metadata">

**Author:** [@desertfox](https://www.ruby-forum.com/u/desertfox)\
**Replies:** 2\
**Last updated:** [July 31, 2007, 5:41am UTC](https://www.ruby-forum.com/t/how-to-update-ruby/110789 "2007-07-31T05:41:58Z")

</div>

Hello, Im on a mac and trying to update ruby. I update rails with the command: sudo gem update rails --include-dependencies and wondering if there is some sort of similar command for ruby. Also, if I update ruby wil…

---

## [Append (\<\<) to Array attributes of DRb objects?](https://www.ruby-forum.com/t/append-to-array-attributes-of-drb-objects/110711)

<div class="topic-metadata">

**Author:** [@Jay\_McGavren](https://www.ruby-forum.com/u/Jay_McGavren)\
**Replies:** 5\
**Last updated:** [July 31, 2007, 1:56am UTC](https://www.ruby-forum.com/t/append-to-array-attributes-of-drb-objects/110711 "2007-07-31T01:56:14Z")

</div>

When working locally with an object whose attribute is meant to store an array, I have no problem making calls like: object.items \<\< new\_item If I try to do the same thing with a DRb object, though, appending has no …

---

## [Array.include?](https://www.ruby-forum.com/t/array-include/110763)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 9\
**Last updated:** [July 31, 2007, 1:26am UTC](https://www.ruby-forum.com/t/array-include/110763 "2007-07-31T01:26:12Z")

</div>

if @status\_array.include? @status\_number else @status\_array \<\< @status\_number end I’m using the above to append an array if it does not include @status\_number. Is there an include?-not function that would eliminat…

---

## [Sphincter 1.0.0 Released](https://www.ruby-forum.com/t/sphincter-1-0-0-released/110791)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 12:21am UTC](https://www.ruby-forum.com/t/sphincter-1-0-0-released/110791 "2007-07-31T00:21:08Z")

</div>

Sphincter version 1.0.0 has been released! http://seattlerb.org/Sphincter Sphincter uses Dmytro Shteflyuk’s sphinx Ruby API and automatic configuration to make totally rad ActiveRecord searching. Well, you still hav…

---

## [Why writing the file is partial](https://www.ruby-forum.com/t/why-writing-the-file-is-partial/106744)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 6\
**Last updated:** [July 30, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/why-writing-the-file-is-partial/106744 "2007-07-30T22:45:57Z")

</div>

Hi all, Thank you for your valuable inputs for my previous post. Right now I encounter another odd situation. I want to search some strings and replace them all in place. ButI can partially update/replace part of the…

---

## [Case sensitivity in glob revisited](https://www.ruby-forum.com/t/case-sensitivity-in-glob-revisited/110780)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 5\
**Last updated:** [July 30, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/case-sensitivity-in-glob-revisited/110780 "2007-07-30T22:05:43Z")

</div>

Dir.glob( pattern, \[flags\] ) =\> array Dir.glob( pattern, \[flags\] ) {| filename | block } =\> nil Returns the filenames found by expanding \_pattern\_ which is an +Array+ of the patterns or the pattern +String+, either a…

---

## [Size change after file writing](https://www.ruby-forum.com/t/size-change-after-file-writing/110775)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 9:59pm UTC](https://www.ruby-forum.com/t/size-change-after-file-writing/110775 "2007-07-30T21:59:47Z")

</div>

Hi all, I write a small script to read old files and write to new files. Either reading line by line or whole file at once then I ask Ruby to write to new files. The new file is much smaller than the old one. I also f…

---

## [Shell-style history for irb... now fixed!](https://www.ruby-forum.com/t/shell-style-history-for-irb-now-fixed/110776)

<div class="topic-metadata">

**Author:** [@brblakley](https://www.ruby-forum.com/u/brblakley)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/shell-style-history-for-irb-now-fixed/110776 "2007-07-30T20:55:31Z")

</div>

Hey all, Last year during RubyConf, I showed a little hack for adding shell-style history manipulation to irb. There was a bug in it where history replays that did assignments were executed in the wrong context, caus…

---

## [Introspection on aliased methods?](https://www.ruby-forum.com/t/introspection-on-aliased-methods/110753)

<div class="topic-metadata">

**Author:** [@clipper](https://www.ruby-forum.com/u/clipper)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 8:49pm UTC](https://www.ruby-forum.com/t/introspection-on-aliased-methods/110753 "2007-07-30T20:49:53Z")

</div>

Is there a way to determine what equivalent methods are, that is, what has been aliased to what on an object or class?

---

## [Libpurple (pidgin, formerly gaim) bindings?](https://www.ruby-forum.com/t/libpurple-pidgin-formerly-gaim-bindings/110713)

<div class="topic-metadata">

**Author:** [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/libpurple-pidgin-formerly-gaim-bindings/110713 "2007-07-30T15:52:49Z")

</div>

I’m interested in doing some AIM stuff with Ruby, and libpurple looks like the most stable and best supported library out there. Does anyone know of Ruby bindings for it, or are there bindings for some other IM libra…

---

## [Gnome::CanvasItem.affine\_absolute](https://www.ruby-forum.com/t/gnome-canvasitem-affine-absolute/110722)

<div class="topic-metadata">

**Author:** [@FireAphis](https://www.ruby-forum.com/u/FireAphis)\
**Replies:** 1\
**Last updated:** [July 30, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/gnome-canvasitem-affine-absolute/110722 "2007-07-30T15:51:49Z")

</div>

Hello I’m trying to assign an affine transformation to CanvasItem in my Ruby/ Gnome2 application. Apparently there is a method called ‘affine\_absolute’ that I should use. The problem is that my ruby doesn’t recognize…

---

## [Connection String to MS SQL Server 2005](https://www.ruby-forum.com/t/connection-string-to-ms-sql-server-2005/110738)

<div class="topic-metadata">

**Author:** [@vanivk](https://www.ruby-forum.com/u/vanivk)\
**Replies:** 4\
**Last updated:** [July 30, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/connection-string-to-ms-sql-server-2005/110738 "2007-07-30T14:58:43Z")

</div>

Hello all, I have been to trying to connect to SQL Server 2005 from ruby code. Following is the code written: require ‘dbi’ driver = ‘ODBC’ server = “PRODSK0322” database = ‘TestDB’ user = ‘sa’ p…

---

## [Text parser (text into sentences) that works with UTF-8 and](https://www.ruby-forum.com/t/text-parser-text-into-sentences-that-works-with-utf-8-and/110726)

<div class="topic-metadata">

**Author:** [@asplake](https://www.ruby-forum.com/u/asplake)\
**Replies:** 3\
**Last updated:** [July 30, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/text-parser-text-into-sentences-that-works-with-utf-8-and/110726 "2007-07-30T14:54:43Z")

</div>

Hi all, I have to parse about 2000 files that are written in multiple languages (some English, some Korean, some Arabic and some Japanese). I have to split these UTF-8 encoded into individual sentences. Has anyone wr…

---

## [Is it a bug of URI lib?](https://www.ruby-forum.com/t/is-it-a-bug-of-uri-lib/110737)

<div class="topic-metadata">

**Author:** [@nan\_wu](https://www.ruby-forum.com/u/nan_wu)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 1:57pm UTC](https://www.ruby-forum.com/t/is-it-a-bug-of-uri-lib/110737 "2007-07-30T13:57:34Z")

</div>

I use the URI.merge method, and I met something incorrect. It is a bug of URI lib? For example: require ‘uri’ site\_url = ‘http://www.try.com/test.aspx’ cur\_url =‘?page=2’ site=URI.parse(site\_url) cur=URI.parse(cu…

---

## [Notice window](https://www.ruby-forum.com/t/notice-window/110734)

<div class="topic-metadata">

**Author:** [@mihai](https://www.ruby-forum.com/u/mihai)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 12:50pm UTC](https://www.ruby-forum.com/t/notice-window/110734 "2007-07-30T12:50:56Z")

</div>

i’m using watir and i want to display a window with OK button and a message if a button on the page is found. how can i do that? -i want something like msgbox() from AutoIt

---

## [Getting Ruby Path at runtime?](https://www.ruby-forum.com/t/getting-ruby-path-at-runtime/110538)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 5\
**Last updated:** [July 30, 2007, 9:21am UTC](https://www.ruby-forum.com/t/getting-ruby-path-at-runtime/110538 "2007-07-30T09:21:45Z")

</div>

Is it possible to find out under Windows, which Ruby has been used to run a program? Example: A program is invoked by C:\\inst\\ruby186\\bin\\ruby.exe appl.rb Is it then possible to find out inside appl.rb the whole path …

---

## [Australia or Canada, which one is the best country for a gee](https://www.ruby-forum.com/t/australia-or-canada-which-one-is-the-best-country-for-a-gee/110720)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 8:48am UTC](https://www.ruby-forum.com/t/australia-or-canada-which-one-is-the-best-country-for-a-gee/110720 "2007-07-30T08:48:35Z")

</div>

cascadia, clearly!

---

## [Is there a way to parse ruby code and generate a word doc?](https://www.ruby-forum.com/t/is-there-a-way-to-parse-ruby-code-and-generate-a-word-doc/110439)

<div class="topic-metadata">

**Author:** [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Replies:** 4\
**Last updated:** [July 30, 2007, 6:43am UTC](https://www.ruby-forum.com/t/is-there-a-way-to-parse-ruby-code-and-generate-a-word-doc/110439 "2007-07-30T06:43:37Z")

</div>

Hi, Is there a way by which we can parse ruby code to generate a word file just the way there is a way to generate PDF, Excel or CSV files. Neha

---

## [User Authentication and permissions](https://www.ruby-forum.com/t/user-authentication-and-permissions/110505)

<div class="topic-metadata">

**Author:** [@Jacko](https://www.ruby-forum.com/u/Jacko)\
**Replies:** 4\
**Last updated:** [July 30, 2007, 5:52am UTC](https://www.ruby-forum.com/t/user-authentication-and-permissions/110505 "2007-07-30T05:52:15Z")

</div>

This may be a bit too open ended but what is the best way to add user authentication and security services to a ruby on rails app. Is there a standard API or Framework to achieve this?

---

## [Australia or Canada, which one is the best country for a gee](https://www.ruby-forum.com/t/australia-or-canada-which-one-is-the-best-country-for-a-gee/110518)

<div class="topic-metadata">

**Author:** [@Houman\_D](https://www.ruby-forum.com/u/Houman_D)\
**Replies:** 43\
**Last updated:** [July 30, 2007, 5:40am UTC](https://www.ruby-forum.com/t/australia-or-canada-which-one-is-the-best-country-for-a-gee/110518 "2007-07-30T05:40:12Z")

</div>

Hello folks, Sorry for this too off topic email, but I think you can help me as I believe you folks in the Ruby community are the smartest geeks I’ve ever seen. I’m planing to immigrate to Australia or Canada, but am…

---

## [RubyConf talk proposals and DNS woes](https://www.ruby-forum.com/t/rubyconf-talk-proposals-and-dns-woes/110716)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 4:51am UTC](https://www.ruby-forum.com/t/rubyconf-talk-proposals-and-dns-woes/110716 "2007-07-30T04:51:05Z")

</div>

Hi – Please be patient if you’re trying to submit a proposal for a RubyConf 2007 talk, as per my earlier announcement. We’re having some DNS problems, and it looks like rubycentral.org isn’t reachable at all right n…

---

## [Monitoring clipboard data in Windows](https://www.ruby-forum.com/t/monitoring-clipboard-data-in-windows/110709)

<div class="topic-metadata">

**Author:** [@Chris\_Worrall](https://www.ruby-forum.com/u/Chris_Worrall)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 1:31am UTC](https://www.ruby-forum.com/t/monitoring-clipboard-data-in-windows/110709 "2007-07-30T01:31:32Z")

</div>

I’m looking for a way to monitor the windows clipboard data for changes, then do something to the freshly copied data. I have the win32-clipboard library, and I could hack together something with a persistent loop, bu…

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

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