# Ruby

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

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

---

## [Mysql-ruby module errors](https://www.ruby-forum.com/t/mysql-ruby-module-errors/67985)

<div class="topic-metadata">

**Author:** [@merrua](https://www.ruby-forum.com/u/merrua)\
**Replies:** 3\
**Last updated:** [November 2, 2006, 3:58pm UTC](https://www.ruby-forum.com/t/mysql-ruby-module-errors/67985 "2006-11-02T15:58:58Z")

</div>

Im trying to install mysql-ruby on windows 2000. I thought version 2.7.1 installed properly even when I got a failed installation of 2.7.0 the command I used was “gem install mysql”. That seemed to work perfectly so …

---

## [Ruby mysql errors -where am I going wrong here?](https://www.ruby-forum.com/t/ruby-mysql-errors-where-am-i-going-wrong-here/73598)

<div class="topic-metadata">

**Author:** [@merrua](https://www.ruby-forum.com/u/merrua)\
**Replies:** 12\
**Last updated:** [November 2, 2006, 3:50pm UTC](https://www.ruby-forum.com/t/ruby-mysql-errors-where-am-i-going-wrong-here/73598 "2006-11-02T15:50:59Z")

</div>

Here is my test code. I am wondering where I am going wrong. I get no errors but the \[temp\] section in the db is still NULL. @mytext = ‘hi this is a test’ userentry = TkEntry.new(Frameone) userentry.value = @mytext …

---

## [Hooking IE events in Watir](https://www.ruby-forum.com/t/hooking-ie-events-in-watir/74242)

<div class="topic-metadata">

**Author:** [@pkspence](https://www.ruby-forum.com/u/pkspence)\
**Replies:** 1\
**Last updated:** [November 2, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/hooking-ie-events-in-watir/74242 "2006-11-02T15:13:38Z")

</div>

I need to handle the onMouseDown event for the IE controller in Watir. Has anyone done anything like this before. Using watirMaker.rb as a starting point, I’m able to wire-up the event by “talking” directly to the OLE…

---

## [I am noob](https://www.ruby-forum.com/t/i-am-noob/74197)

<div class="topic-metadata">

**Author:** [@fatih4utr](https://www.ruby-forum.com/u/fatih4utr)\
**Replies:** 2\
**Last updated:** [November 1, 2006, 7:05pm UTC](https://www.ruby-forum.com/t/i-am-noob/74197 "2006-11-01T19:05:09Z")

</div>

i need many documents and help, do yo have some advice, i need free pdf books, how can i setup and develop my applications i need helpp plsss pllss poor me thx for reading and helping again i am noob

---

## [Uploading files with eruby & lighttpd?](https://www.ruby-forum.com/t/uploading-files-with-eruby-lighttpd/74106)

<div class="topic-metadata">

**Author:** [@comtux](https://www.ruby-forum.com/u/comtux)\
**Replies:** 0\
**Last updated:** [October 30, 2006, 12:14pm UTC](https://www.ruby-forum.com/t/uploading-files-with-eruby-lighttpd/74106 "2006-10-30T12:14:57Z")

</div>

I am not sure if i should be asking this question here or lighttpd forums so ill do both . I got lighttpd and eruby working nicely but the only thing i can’t seem to figure out is how to upload files to the server i h…

---

## [Passing parameter to WATIR through command line](https://www.ruby-forum.com/t/passing-parameter-to-watir-through-command-line/74049)

<div class="topic-metadata">

**Author:** [@curious](https://www.ruby-forum.com/u/curious)\
**Replies:** 1\
**Last updated:** [October 29, 2006, 8:03pm UTC](https://www.ruby-forum.com/t/passing-parameter-to-watir-through-command-line/74049 "2006-10-29T20:03:38Z")

</div>

I have below code that beautifully calls RUBY, WATIR code through Microsoft Access. Private Sub Command2\_Click() Call Shell(Environ$(“COMSPEC”) & " /c c:\\Watir\\search.rb", vbNormalFocus) End Sub I think it will be…

---

## [Symetrical encryption algo's?](https://www.ruby-forum.com/t/symetrical-encryption-algos/73992)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 14\
**Last updated:** [October 29, 2006, 7:55pm UTC](https://www.ruby-forum.com/t/symetrical-encryption-algos/73992 "2006-10-29T19:55:36Z")

</div>

Hi list. I need to encode some data with a userID and then also be able to decode it with the same key. This is basically a quick approach to obfuscate URLs. Its for an environment where we know the users ID with som…

---

## [Interesting trival example of why open classes are good?](https://www.ruby-forum.com/t/interesting-trival-example-of-why-open-classes-are-good/74031)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 14\
**Last updated:** [October 29, 2006, 7:29pm UTC](https://www.ruby-forum.com/t/interesting-trival-example-of-why-open-classes-are-good/74031 "2006-10-29T19:29:32Z")

</div>

Hi, I am trying to explain why the fact that Ruby’s classes are never closed is advantageous. I can only think of relatively complex examples like Rails plugins. Does anyone have an interesting, standalone example sh…

---

## [Regex blindness](https://www.ruby-forum.com/t/regex-blindness/73949)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 4\
**Last updated:** [October 29, 2006, 7:09pm UTC](https://www.ruby-forum.com/t/regex-blindness/73949 "2006-10-29T19:09:30Z")

</div>

I was blind yesterday … could not find what’s wrong in this regex (and posted that to mac os forum) /^(?k: ( ?k:0\[1-9\]|\[1-8\]\[0-9\]|9\[0-8\] ) (?k: \[0-9\]{3} ) )$/ trying to check zipcodes (french cities : like 78231) g…

---

## [Rubyscript2Exe directory management](https://www.ruby-forum.com/t/rubyscript2exe-directory-management/73752)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 2\
**Last updated:** [October 29, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-directory-management/73752 "2006-10-29T18:17:26Z")

</div>

I’d like to use rubyscript2exe to move over a Ruby application and its environment to a production box that will be run by a sysadmin. As such he needs some control over things like where the app installs itself, and…

---

## [Newbie question](https://www.ruby-forum.com/t/newbie-question/74059)

<div class="topic-metadata">

**Author:** [@Luiz\_Eduardo\_Roncat](https://www.ruby-forum.com/u/Luiz_Eduardo_Roncat)\
**Replies:** 0\
**Last updated:** [October 29, 2006, 5:39pm UTC](https://www.ruby-forum.com/t/newbie-question/74059 "2006-10-29T17:39:19Z")

</div>

Hi, Are there ports of qtruby and kde-ruby for FreeBSD? thanks luiz

---

## [Symetrical encryption algo's?](https://www.ruby-forum.com/t/symetrical-encryption-algos/74050)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 29, 2006, 4:01pm UTC](https://www.ruby-forum.com/t/symetrical-encryption-algos/74050 "2006-10-29T16:01:06Z")

</div>

hi - I have a feeling I’m missing something, but if all you want to do is generate obfuscated URLs, why not just the the SHA1-hash of a string consisting of the “real” url and the user’s name? You can store the gen…

---

## [Upgrade on OS X](https://www.ruby-forum.com/t/upgrade-on-os-x/73920)

<div class="topic-metadata">

**Author:** [@Tim\_McIntyre](https://www.ruby-forum.com/u/Tim_McIntyre)\
**Replies:** 4\
**Last updated:** [October 29, 2006, 3:51pm UTC](https://www.ruby-forum.com/t/upgrade-on-os-x/73920 "2006-10-29T15:51:04Z")

</div>

Hey all, Wasn’t sure if this should go to the ruby or rails list but here we are… I’ve been running OS X (10.8.4) with the packaged ruby (1.8.2) and rails for some time, no problems. I decided to test out mongrel bu…

---

## [Re: Bug segmentation fault](https://www.ruby-forum.com/t/re-bug-segmentation-fault/73873)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [October 29, 2006, 3:29pm UTC](https://www.ruby-forum.com/t/re-bug-segmentation-fault/73873 "2006-10-29T15:29:00Z")

</div>

From: removed\_email\_address@domain.invalid I am trying to display the contents of large array (over 1000 rows) using arrayName.collect {|x| puts x.inspect} However the following occurs: \[Bug\] Segmentation fault rub…

---

## [A regex](https://www.ruby-forum.com/t/a-regex/73848)

<div class="topic-metadata">

**Author:** [@Alexandru\_P](https://www.ruby-forum.com/u/Alexandru_P)\
**Replies:** 17\
**Last updated:** [October 29, 2006, 3:28pm UTC](https://www.ruby-forum.com/t/a-regex/73848 "2006-10-29T15:28:58Z")

</div>

Hi! I have a string in the following form: 2006%2F10%2Fasdfasdf (or more generic: any\_characters+%2Fany\_characters+%2Frest\_of\_it). I am wondering if I can retrieve the groups 2006, 10, asdfasdf thru a regex (I confes…

---

## [How can my boss take rails seriously with bugs like this?](https://www.ruby-forum.com/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/73443)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 12\
**Last updated:** [October 29, 2006, 3:28pm UTC](https://www.ruby-forum.com/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/73443 "2006-10-29T15:28:51Z")

</div>

The Time::next\_week method is supposed to give the time of the start of the next week. But look at this, it cocks up : t=Time.parse “Monday October 16th 2006” =\> Mon Oct 16 00:00:00 BST 2006 t.next\_week =\> Mon…

---

## [Binary file modification](https://www.ruby-forum.com/t/binary-file-modification/73236)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 9\
**Last updated:** [October 29, 2006, 3:28pm UTC](https://www.ruby-forum.com/t/binary-file-modification/73236 "2006-10-29T15:28:44Z")

</div>

Hi I’ve been modifying a binary file that contains various data including some audio. I’m trying to add my own audio (instead of the audio in the file) which I believe I have done but I need to modify the content-le…

---

## [IO.readint?](https://www.ruby-forum.com/t/io-readint/72594)

<div class="topic-metadata">

**Author:** [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Replies:** 15\
**Last updated:** [October 29, 2006, 3:28pm UTC](https://www.ruby-forum.com/t/io-readint/72594 "2006-10-29T15:28:32Z")

</div>

Hi all, I’m parsing a binary file, and need to read an integer, something I would do in C like this: int b; read(f, &b, sizeof(int)); obviously considering endianness. I’m pretty sure there has to be a faster way t…

---

## [Ruby expressions vs. values (like Perl?)](https://www.ruby-forum.com/t/ruby-expressions-vs-values-like-perl/72628)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 6\
**Last updated:** [October 29, 2006, 3:28pm UTC](https://www.ruby-forum.com/t/ruby-expressions-vs-values-like-perl/72628 "2006-10-29T15:28:30Z")

</div>

Does Ruby use the same terminology as Perl with regard to expressions versus values? I read a great MJD comment on PerlMonks a while back ( http://www.perlmonks.org/?node\_id=72263 ). That comment notes how, in Perl, …

---

## [Posix Pangrams (#97)](https://www.ruby-forum.com/t/posix-pangrams-97/71263)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 22\
**Last updated:** [October 29, 2006, 3:28pm UTC](https://www.ruby-forum.com/t/posix-pangrams-97/71263 "2006-10-29T15:28:27Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [What is the best ruby editor?](https://www.ruby-forum.com/t/what-is-the-best-ruby-editor/68988)

<div class="topic-metadata">

**Author:** [@edward](https://www.ruby-forum.com/u/edward)\
**Replies:** 20\
**Last updated:** [October 29, 2006, 3:28pm UTC](https://www.ruby-forum.com/t/what-is-the-best-ruby-editor/68988 "2006-10-29T15:28:01Z")

</div>

I downloaded both the EasyEclipse for Ruby and the EasyEclipse for Python at http://www.easyeclipse.org/site/distributions/index.html and found the one for Python to be excellent (debugging, intellisense, syntax color…

---

## [Tight coupling vs. complete abstraction](https://www.ruby-forum.com/t/tight-coupling-vs-complete-abstraction/74048)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [October 29, 2006, 2:50pm UTC](https://www.ruby-forum.com/t/tight-coupling-vs-complete-abstraction/74048 "2006-10-29T14:50:50Z")

</div>

On n’ off I’ve been thinking about something Ruby allows one to do more so than most other languages --in many usecases it allows one to construct a program that is tightly coupled to the language interpretor itself r…

---

## [Two rails questions](https://www.ruby-forum.com/t/two-rails-questions/74047)

<div class="topic-metadata">

**Author:** [@simplydope](https://www.ruby-forum.com/u/simplydope)\
**Replies:** 0\
**Last updated:** [October 29, 2006, 2:36pm UTC](https://www.ruby-forum.com/t/two-rails-questions/74047 "2006-10-29T14:36:49Z")

</div>

Hi guys, I’ve been trying to work out answers to the following problems for hours but have reached the limit of my ruby knowledge! Any help will be massively appreciated: When deploying a rails app to a web server…

---

## [Keeping a hash' sort order?](https://www.ruby-forum.com/t/keeping-a-hash-sort-order/74042)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [October 29, 2006, 2:34pm UTC](https://www.ruby-forum.com/t/keeping-a-hash-sort-order/74042 "2006-10-29T14:34:49Z")

</div>

hi - sure this is a common question… i have a hash of stuff that i want to load/keep in a particular order. irb(main):005:0\> hsh = { “one” =\> 1, “two” =\> 2, “three” =\> 3, “four”=\>4, “twentythree”=\>23 } gives back: …

---

## [Memory crush somewhere in Socket](https://www.ruby-forum.com/t/memory-crush-somewhere-in-socket/74036)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokSS\_Sh](https://www.ruby-forum.com/u/Victor_SZverokSS_Sh)\
**Replies:** 7\
**Last updated:** [October 29, 2006, 2:32pm UTC](https://www.ruby-forum.com/t/memory-crush-somewhere-in-socket/74036 "2006-10-29T14:32:49Z")

</div>

Hi all. I have a very strange and uncommon problem. I have Ruby version 1.9 from 13 oct 2006 on Windows XP. I use some complex library from Ruby (large .dll + C extension I’ve written to talk to DLL from Ruby). All…

---

## [Bug segmentation fault](https://www.ruby-forum.com/t/bug-segmentation-fault/73863)

<div class="topic-metadata">

**Author:** [@wkc](https://www.ruby-forum.com/u/wkc)\
**Replies:** 2\
**Last updated:** [October 29, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/bug-segmentation-fault/73863 "2006-10-29T14:20:48Z")

</div>

I am trying to display the contents of large array (over 1000 rows) using arrayName.collect {|x| puts x.inspect} However the following occurs: \[Bug\] Segmentation fault ruby 1.8.5 (20006-08-25) \[i386-mswin32\] The sam…

---

## [Rails q: Two-Phase Commit/Updatable View/Roles](https://www.ruby-forum.com/t/rails-q-two-phase-commit-updatable-view-roles/72476)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 6\
**Last updated:** [October 29, 2006, 12:36pm UTC](https://www.ruby-forum.com/t/rails-q-two-phase-commit-updatable-view-roles/72476 "2006-10-29T12:36:42Z")

</div>

I’m exploring learning RoR, then using it for a new start project. Been reading allot of RoR comparisons to Java… I’m not formally educated in enterprise client/server and have some Q’s regarding some of what I’ve r…

---

## [Parse error, unexpected $, expecting kEND instantrails](https://www.ruby-forum.com/t/parse-error-unexpected-expecting-kend-instantrails/74040)

<div class="topic-metadata">

**Author:** [@rajug](https://www.ruby-forum.com/u/rajug)\
**Replies:** 1\
**Last updated:** [October 29, 2006, 12:36pm UTC](https://www.ruby-forum.com/t/parse-error-unexpected-expecting-kend-instantrails/74040 "2006-10-29T12:36:42Z")

</div>

I have come to this “parse error, unexpected $, expecting kEND” error while attempting to implement the Heatmap (ruby and javascript) on one of my project. I did my lots of tried using different versions of ruby/insta…

---

## [Ruby SOAP docs?](https://www.ruby-forum.com/t/ruby-soap-docs/73662)

<div class="topic-metadata">

**Author:** [@vagabond](https://www.ruby-forum.com/u/vagabond)\
**Replies:** 1\
**Last updated:** [October 29, 2006, 11:28am UTC](https://www.ruby-forum.com/t/ruby-soap-docs/73662 "2006-10-29T11:28:39Z")

</div>

Hello, I’m trying to get started with SOAP programming in ruby. I’ve been able to generate some basic working code using WSDL and I have found some smallish tutorials on-line. I’ve also looked at the documentation …

---

## [REXML question](https://www.ruby-forum.com/t/rexml-question/74002)

<div class="topic-metadata">

**Author:** [@Pau\_Garcia\_i\_Quiles](https://www.ruby-forum.com/u/Pau_Garcia_i_Quiles)\
**Replies:** 1\
**Last updated:** [October 29, 2006, 9:20am UTC](https://www.ruby-forum.com/t/rexml-question/74002 "2006-10-29T09:20:35Z")

</div>

Hello, I am using REXML to create XML documents but I am facing a problem: I cannot add XML childs. I want to create a parent element with REXML, then add a bunch of XML as a children (I already have that XML). I w…

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

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