# Ruby

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

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

---

## [Unique combination of values from arrays](https://www.ruby-forum.com/t/unique-combination-of-values-from-arrays/180333)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 9\
**Last updated:** [December 18, 2009, 5:57pm UTC](https://www.ruby-forum.com/t/unique-combination-of-values-from-arrays/180333 "2009-12-18T17:57:37Z")

</div>

Here’s a problem for which I can’t see an obvious solution, and hope someone might have some suggestions. I have several arrays, each with a variety of text values in them. I need to construct some strings consisting …

---

## [How to unpack an IP packed in little endian byte order](https://www.ruby-forum.com/t/how-to-unpack-an-ip-packed-in-little-endian-byte-order/180326)

<div class="topic-metadata">

**Author:** [@bakaonigiri](https://www.ruby-forum.com/u/bakaonigiri)\
**Replies:** 4\
**Last updated:** [December 18, 2009, 4:11pm UTC](https://www.ruby-forum.com/t/how-to-unpack-an-ip-packed-in-little-endian-byte-order/180326 "2009-12-18T16:11:26Z")

</div>

Hello to forum members, Here’s my issue : I have IPs stored in a database but those are “little endian byte order” encoded and the field type of the BDD is BigInt (similar to Ruby’s BigNum). How could I get back my h…

---

## [Font for ruby ide](https://www.ruby-forum.com/t/font-for-ruby-ide/180367)

<div class="topic-metadata">

**Author:** [@hazal](https://www.ruby-forum.com/u/hazal)\
**Replies:** 1\
**Last updated:** [December 18, 2009, 3:52pm UTC](https://www.ruby-forum.com/t/font-for-ruby-ide/180367 "2009-12-18T15:52:29Z")

</div>

do you know that font of ruby code samples in ruby offical site? it looks very nice and colorfull. of course i need this kind of ide for ruby.

---

## [Moving a file after processing](https://www.ruby-forum.com/t/moving-a-file-after-processing/180365)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 3\
**Last updated:** [December 18, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/moving-a-file-after-processing/180365 "2009-12-18T15:00:21Z")

</div>

I’m working on a script and trying to move the file processed to a subdir after processing. Here’s an cut down extract of my code… example code starts require ‘ftools’ basedir = “#{RAILS\_ROOT}/data\_files/resort\_photos…

---

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

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 3\
**Last updated:** [December 18, 2009, 1:55pm UTC](https://www.ruby-forum.com/t/simple-input-problem/180347 "2009-12-18T13:55:00Z")

</div>

Hello all, Somehow the following always worked for me before, but tonight, it failed, and I don’t understand why: gets a It’s a simple gets command! For some reason when I press Enter, the cursor just stays there, …

---

## [Third Ruby and Rails devroom at Fosdem (Brussels, 6 Feb 2010)](https://www.ruby-forum.com/t/third-ruby-and-rails-devroom-at-fosdem-brussels-6-feb-2010/180358)

<div class="topic-metadata">

**Author:** [@Calamitas](https://www.ruby-forum.com/u/Calamitas)\
**Replies:** 0\
**Last updated:** [December 18, 2009, 12:11pm UTC](https://www.ruby-forum.com/t/third-ruby-and-rails-devroom-at-fosdem-brussels-6-feb-2010/180358 "2009-12-18T12:11:50Z")

</div>

Hi folks, The Belgian Ruby U. Group is happy to announce the third Ruby and Rails devroom at Fosdem 2010. Fosdem is a gathering of Free and Open Source Software developers and the ideal occasion to meet fellow Ruby a…

---

## [Computer States](https://www.ruby-forum.com/t/computer-states/180349)

<div class="topic-metadata">

**Author:** [@xogue](https://www.ruby-forum.com/u/xogue)\
**Replies:** 5\
**Last updated:** [December 18, 2009, 8:07am UTC](https://www.ruby-forum.com/t/computer-states/180349 "2009-12-18T08:07:14Z")

</div>

Hey all, I’m looking for a way to programmatically wake the computer up from sleep state, preferably at a certain time, rather than after certain amount of time, but ill make due with whatever solution there might be. …

---

## [How to alias keywords?](https://www.ruby-forum.com/t/how-to-alias-keywords/180346)

<div class="topic-metadata">

**Author:** [@Sonja\_Elen\_K](https://www.ruby-forum.com/u/Sonja_Elen_K)\
**Replies:** 5\
**Last updated:** [December 18, 2009, 4:38am UTC](https://www.ruby-forum.com/t/how-to-alias-keywords/180346 "2009-12-18T04:38:19Z")

</div>

It’s easy to alias method names. Is there a way I can alias keywords like if or end? I want to localize Ruby code to another human language for learning/educational purposes. Any way I can get ruby or to understand ne…

---

## [Rubyforge?](https://www.ruby-forum.com/t/rubyforge/180323)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 6\
**Last updated:** [December 18, 2009, 12:10am UTC](https://www.ruby-forum.com/t/rubyforge/180323 "2009-12-18T00:10:17Z")

</div>

Hi Guys, I am just wondering how can I get any support from rubyforge administrators. I can’t push into my git repository, don’t know what to do. I followed the instructions, made the public ssh key, registered it. …

---

## [Poll: Significant Indentation](https://www.ruby-forum.com/t/poll-significant-indentation/180166)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 29\
**Last updated:** [December 17, 2009, 10:32pm UTC](https://www.ruby-forum.com/t/poll-significant-indentation/180166 "2009-12-17T22:32:33Z")

</div>

I’ve just re-read the “Beating a Dead Horse” thread. I will bring that up shortly, but first I want some actual numbers. I really like Haml. But I really like Erector (inspired by Markaby). The biggest reason I prefe…

---

## [Problem with arrays](https://www.ruby-forum.com/t/problem-with-arrays/119643)

<div class="topic-metadata">

**Author:** [@vbarre](https://www.ruby-forum.com/u/vbarre)\
**Replies:** 2\
**Last updated:** [December 17, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/problem-with-arrays/119643 "2009-12-17T19:58:38Z")

</div>

Hello, I’m coding a program which implements the levenshtein distance between two strings. It works, but very slowly. I discover that the slowest line in the code is: current\[j\] = m where current is an array of Fix…

---

## [Using threads to show progress](https://www.ruby-forum.com/t/using-threads-to-show-progress/180248)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 21\
**Last updated:** [December 17, 2009, 7:51pm UTC](https://www.ruby-forum.com/t/using-threads-to-show-progress/180248 "2009-12-17T19:51:36Z")

</div>

I want to do this in a Rake task, but the concept is Ruby. I would like to use one thread to do the work, and one thread to periodically tell me “We’re working on element x now”. I’m trying to work from this page: htt…

---

## [Trouble running sample script with Shoooes](https://www.ruby-forum.com/t/trouble-running-sample-script-with-shoooes/180339)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 0\
**Last updated:** [December 17, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/trouble-running-sample-script-with-shoooes/180339 "2009-12-17T18:31:19Z")

</div>

I just downloaded Shoes and put the files in a directory on my windows XP box. When I run the sample scripts, I always get the error: uninitialized constant Shoes (NameError) I tried adding the directory to my Window…

---

## [Setting working dir for glassfish deployed war](https://www.ruby-forum.com/t/setting-working-dir-for-glassfish-deployed-war/180281)

<div class="topic-metadata">

**Author:** [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Replies:** 3\
**Last updated:** [December 17, 2009, 6:26pm UTC](https://www.ruby-forum.com/t/setting-working-dir-for-glassfish-deployed-war/180281 "2009-12-17T18:26:44Z")

</div>

Hi, Not sure if this is a Glassfish, Warbler or JRuby issue, but this seemed the best place to get an answer. I’m trying to setup a very simple webapp with Sinatra, ActiveRecord and SQLite, testing using Webrick and …

---

## [Symbolic math in pure ruby](https://www.ruby-forum.com/t/symbolic-math-in-pure-ruby/180294)

<div class="topic-metadata">

**Author:** [@ral](https://www.ruby-forum.com/u/ral)\
**Replies:** 6\
**Last updated:** [December 17, 2009, 5:41pm UTC](https://www.ruby-forum.com/t/symbolic-math-in-pure-ruby/180294 "2009-12-17T17:41:04Z")

</div>

GitHub - brainopia/symbolic: Symbolic math for ruby - for people interested in symbolic math in pure ruby, i would love contribution from community.

---

## [Excel and FxRuby windows](https://www.ruby-forum.com/t/excel-and-fxruby-windows/180310)

<div class="topic-metadata">

**Author:** [@drlelon](https://www.ruby-forum.com/u/drlelon)\
**Replies:** 2\
**Last updated:** [December 17, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/excel-and-fxruby-windows/180310 "2009-12-17T17:13:12Z")

</div>

I have a ruby app on Windows, with an FxRuby UI that opens up Excel using Win32OLE. The Excel window obscures the UI at one point. How can I programmatically send the Excel window to the back and/or bring the FxRuby…

---

## [BigDecimal and BigMath](https://www.ruby-forum.com/t/bigdecimal-and-bigmath/180292)

<div class="topic-metadata">

**Author:** [@devbanana](https://www.ruby-forum.com/u/devbanana)\
**Replies:** 4\
**Last updated:** [December 17, 2009, 3:18pm UTC](https://www.ruby-forum.com/t/bigdecimal-and-bigmath/180292 "2009-12-17T15:18:16Z")

</div>

Hi, I am developing an application that requires very large numbers, so I am using BigDecimal. I wanted to use atan, and saw that there was a bigdecimal/math, which allows you to use an atan that supports BigDecimal…

---

## [Rmagick4j - resize method algorithm](https://www.ruby-forum.com/t/rmagick4j-resize-method-algorithm/180320)

<div class="topic-metadata">

**Author:** [@PaweSSSSSWielgus](https://www.ruby-forum.com/u/PaweSSSSSWielgus)\
**Replies:** 0\
**Last updated:** [December 17, 2009, 12:29pm UTC](https://www.ruby-forum.com/t/rmagick4j-resize-method-algorithm/180320 "2009-12-17T12:29:08Z")

</div>

Hi All, i’m runing my rails app on jruby (mongrel at the moment) and i’m using rmagick4j in it, it’s working ok but i need to use different algorithm for Magick::Image.resize method then the default, quality of a re…

---

## [How to put timer on ruby](https://www.ruby-forum.com/t/how-to-put-timer-on-ruby/180262)

<div class="topic-metadata">

**Author:** [@kgovinda](https://www.ruby-forum.com/u/kgovinda)\
**Replies:** 1\
**Last updated:** [December 17, 2009, 10:51am UTC](https://www.ruby-forum.com/t/how-to-put-timer-on-ruby/180262 "2009-12-17T10:51:59Z")

</div>

i need a timer for the program i am writing but i don’t know the code so please someone help me to write timer… thanx for your help…

---

## [IO.popen(), Timeout, broken pipe](https://www.ruby-forum.com/t/io-popen-timeout-broken-pipe/180317)

<div class="topic-metadata">

**Author:** [@nexflo](https://www.ruby-forum.com/u/nexflo)\
**Replies:** 0\
**Last updated:** [December 17, 2009, 10:43am UTC](https://www.ruby-forum.com/t/io-popen-timeout-broken-pipe/180317 "2009-12-17T10:43:13Z")

</div>

Hey everybody, I am having some weird problems with the Timeout module and IO.popen. Basically, what I want to do is: Sign some data by gpg. For some reason, gpg hangs sometimes and I want to have a timeout. If gpg d…

---

## [Working with a slow pipe (IO.popen)](https://www.ruby-forum.com/t/working-with-a-slow-pipe-io-popen/180264)

<div class="topic-metadata">

**Author:** [@bwv549](https://www.ruby-forum.com/u/bwv549)\
**Replies:** 6\
**Last updated:** [December 17, 2009, 7:08am UTC](https://www.ruby-forum.com/t/working-with-a-slow-pipe-io-popen/180264 "2009-12-17T07:08:59Z")

</div>

I’m doing some work with pymol and having trouble getting all the pymol output out: I open it in quiet/commandline mode with a pipe: IO.popen(“pymol -cq -p”, ‘w+’) do |pipe| pipe.puts “load file.pdb, mymodel\\n” pipe.…

---

## [How do I access the following?](https://www.ruby-forum.com/t/how-do-i-access-the-following/180299)

<div class="topic-metadata">

**Author:** [@hawken](https://www.ruby-forum.com/u/hawken)\
**Replies:** 2\
**Last updated:** [December 17, 2009, 6:11am UTC](https://www.ruby-forum.com/t/how-do-i-access-the-following/180299 "2009-12-17T06:11:47Z")

</div>

Noob question, if there is a better venue for this sort of question show me. Thanks. How could I access “Seen” displayed below? \[#\<struct Net::IMAP::FetchData seqno=1, attr={“FLAGS”=\>\[:Seen\]}\>\]

---

## [GIT on rubyforge.org](https://www.ruby-forum.com/t/git-on-rubyforge-org/180307)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 0\
**Last updated:** [December 17, 2009, 2:46am UTC](https://www.ruby-forum.com/t/git-on-rubyforge-org/180307 "2009-12-17T02:46:48Z")

</div>

Hi, I have just started a project on rubyforge. I can’t push anything into GIT. Do any of you have a GIT repository on rubyforge? Does it work? Cheers, Robert

---

## [Thanks](https://www.ruby-forum.com/t/thanks/180303)

<div class="topic-metadata">

**Author:** [@Philliam\_A](https://www.ruby-forum.com/u/Philliam_A)\
**Replies:** 0\
**Last updated:** [December 17, 2009, 1:20am UTC](https://www.ruby-forum.com/t/thanks/180303 "2009-12-17T01:20:47Z")

</div>

Thanks Roger for the doc site. I didn’t know the second arg was flags, 0 worked. Thanks again.

---

## [TCPSocket.send is erroring](https://www.ruby-forum.com/t/tcpsocket-send-is-erroring/180301)

<div class="topic-metadata">

**Author:** [@Philliam\_A](https://www.ruby-forum.com/u/Philliam_A)\
**Replies:** 1\
**Last updated:** [December 17, 2009, 12:57am UTC](https://www.ruby-forum.com/t/tcpsocket-send-is-erroring/180301 "2009-12-17T00:57:06Z")

</div>

Hello, I seem to be experiencing a problem. I am a python programmer who is trying ruby, and I am liking it so far. I do need help on an issue I am having though. I am creating a TCP socket and attempting to send data…

---

## [Split Module to multiple Files?](https://www.ruby-forum.com/t/split-module-to-multiple-files/133668)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 8\
**Last updated:** [December 17, 2009, 12:26am UTC](https://www.ruby-forum.com/t/split-module-to-multiple-files/133668 "2009-12-17T00:26:56Z")

</div>

Hey! Is it possible to achieve somthing like this: I want to have multiple classes, each in one file e.g. test.rb -\> class Test test1.rb -\> class Test1 Then i want to combine those classes into a module myModule.r…

---

## [Licence issues](https://www.ruby-forum.com/t/licence-issues/180258)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 5\
**Last updated:** [December 17, 2009, 12:20am UTC](https://www.ruby-forum.com/t/licence-issues/180258 "2009-12-17T00:20:46Z")

</div>

Hi, I am planning to release a new gem. The licence issue is overwhelming though. I would like everyone to be able to use the source code, modify and redistribute it freely. Also, I wouldn’t like to be liable for an…

---

## [Smtp check response 500](https://www.ruby-forum.com/t/smtp-check-response-500/180261)

<div class="topic-metadata">

**Author:** [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Replies:** 6\
**Last updated:** [December 16, 2009, 9:37pm UTC](https://www.ruby-forum.com/t/smtp-check-response-500/180261 "2009-12-16T21:37:12Z")

</div>

Anyone know what resp 500 means in smtp? thank you! CODE: {snip} def send\_mail(from, to, subject, mesg) mesgstr = \<\<ENDMESG From: #{from} To: #{to} Subject: #{subject} #{mesg} ENDMESG require 'net/smtp' Net::S…

---

## [JRuby FFI::Library#callback typo?](https://www.ruby-forum.com/t/jruby-ffi-library-callback-typo/180285)

<div class="topic-metadata">

**Author:** [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Replies:** 5\
**Last updated:** [December 16, 2009, 8:10pm UTC](https://www.ruby-forum.com/t/jruby-ffi-library-callback-typo/180285 "2009-12-16T20:10:00Z")

</div>

Segfault on MRI using stdcall callbacks has been traced to outdated FFI::Library#callback code as worked here http://groups.google.com/group/ruby-ffi/browse\_thread/thread/1712f5507b15b467 …with the updated “callback” …

---

## [The scope of metaprogramming in JRuby](https://www.ruby-forum.com/t/the-scope-of-metaprogramming-in-jruby/180286)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 4\
**Last updated:** [December 16, 2009, 7:13pm UTC](https://www.ruby-forum.com/t/the-scope-of-metaprogramming-in-jruby/180286 "2009-12-16T19:13:13Z")

</div>

All, A couple of days ago a friend asked me what level of Ruby metaprogramming was achievable in JRuby. I wasn’t sure how to answer him. Are there limitations on standard Ruby metaprogramming practices when using J…

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

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