# Ruby

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

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

---

## [Pernisssion denied when trying to delete or mv file](https://www.ruby-forum.com/t/pernisssion-denied-when-trying-to-delete-or-mv-file/72008)

<div class="topic-metadata">

**Author:** [@cgramona](https://www.ruby-forum.com/u/cgramona)\
**Replies:** 0\
**Last updated:** [October 13, 2006, 4:52pm UTC](https://www.ruby-forum.com/t/pernisssion-denied-when-trying-to-delete-or-mv-file/72008 "2006-10-13T16:52:02Z")

</div>

I have a problem deleting a file (or move a file) that has a UNC path. I am using 1.8.4 on windows and this same thing did work in 1.8.2. Here is the pertinent excerpt of code: puts shp.source; ==\> returns //rm-gra…

---

## [VRuby tabstop question](https://www.ruby-forum.com/t/vruby-tabstop-question/70513)

<div class="topic-metadata">

**Author:** [@domenic](https://www.ruby-forum.com/u/domenic)\
**Replies:** 3\
**Last updated:** [October 12, 2006, 7:24pm UTC](https://www.ruby-forum.com/t/vruby-tabstop-question/70513 "2006-10-12T19:24:59Z")

</div>

Does anyone know how to get tabstops to work while using VRuby? I’m new to ruby but have written a gui and have multiple text and edit boxes I’d like navigate between using the tab key. I am thinking I have to capture …

---

## [Use Perl modules from Ruby?](https://www.ruby-forum.com/t/use-perl-modules-from-ruby/70474)

<div class="topic-metadata">

**Author:** [@mbruby](https://www.ruby-forum.com/u/mbruby)\
**Replies:** 16\
**Last updated:** [October 12, 2006, 4:43pm UTC](https://www.ruby-forum.com/t/use-perl-modules-from-ruby/70474 "2006-10-12T16:43:16Z")

</div>

Hi Ruby-Community :slight\_smile: I was looking for a way to talk to a Perl module from Ruby directly to use its classes, methods or functions. However, it seems there is no up2date/maintained Ruby/Perl binding ? I hav…

---

## [How to obtain the dimensions of a video file?](https://www.ruby-forum.com/t/how-to-obtain-the-dimensions-of-a-video-file/71827)

<div class="topic-metadata">

**Author:** [@Bira](https://www.ruby-forum.com/u/Bira)\
**Replies:** 2\
**Last updated:** [October 12, 2006, 4:40pm UTC](https://www.ruby-forum.com/t/how-to-obtain-the-dimensions-of-a-video-file/71827 "2006-10-12T16:40:52Z")

</div>

Hello, I’ve posted a few messages on this list before, but this is my first real question :). I’ve written a script, using Rake, to automate the conversion of a bunch of AVI video files to a DVD image I can burn and …

---

## [Getting Object#inspect back](https://www.ruby-forum.com/t/getting-object-inspect-back/71939)

<div class="topic-metadata">

**Author:** [@OliverMarchand](https://www.ruby-forum.com/u/OliverMarchand)\
**Replies:** 3\
**Last updated:** [October 12, 2006, 4:38pm UTC](https://www.ruby-forum.com/t/getting-object-inspect-back/71939 "2006-10-12T16:38:43Z")

</div>

Hello everybody, Not that I despreately need it, but I was wondering how to e.g. get the Object#inspect method back for some classes which override it, say just as an example for a Hash? Neither option I considered s…

---

## [Scanning strings, backward?](https://www.ruby-forum.com/t/scanning-strings-backward/71778)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 10\
**Last updated:** [October 12, 2006, 4:21pm UTC](https://www.ruby-forum.com/t/scanning-strings-backward/71778 "2006-10-12T16:21:11Z")

</div>

Hi, I would like to automate a code cleanup task which involves finding warning messages like, Warning: …/…/LibF90/bc\_inviscid.f90, line 1707: DT explicitly imported into BC\_INVISCID\_FLUX but not used detected at BC…

---

## [\[ANN\] newgem - Create gems for your libraries and apps](https://www.ruby-forum.com/t/ann-newgem-create-gems-for-your-libraries-and-apps/71784)

<div class="topic-metadata">

**Author:** [@nicwilliams](https://www.ruby-forum.com/u/nicwilliams)\
**Replies:** 5\
**Last updated:** [October 12, 2006, 1:54pm UTC](https://www.ruby-forum.com/t/ann-newgem-create-gems-for-your-libraries-and-apps/71784 "2006-10-12T13:54:29Z")

</div>

Now you can take any library or Rails plugin or command line application, gemify it, and easily share it with the Ruby world. With gems you get in-built version support (you can specify which version of a gem you want…

---

## [Re: newgem - Create gems for your libraries and apps](https://www.ruby-forum.com/t/re-newgem-create-gems-for-your-libraries-and-apps/71931)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [October 12, 2006, 1:42pm UTC](https://www.ruby-forum.com/t/re-newgem-create-gems-for-your-libraries-and-apps/71931 "2006-10-12T13:42:27Z")

</div>

At least I’m popular… =Þ Gem

---

## [Instiki + RadRails](https://www.ruby-forum.com/t/instiki-radrails/71930)

<div class="topic-metadata">

**Author:** [@rhaus](https://www.ruby-forum.com/u/rhaus)\
**Replies:** 0\
**Last updated:** [October 12, 2006, 1:38pm UTC](https://www.ruby-forum.com/t/instiki-radrails/71930 "2006-10-12T13:38:21Z")

</div>

Hello there, i’ve tried to import Instiki (latest Version 0.11) into RadRails and there were strange problems… It has rails already integrated so i tried to to extract instiki and libs to a RadRails project, but the…

---

## [Does case/when really use ===?](https://www.ruby-forum.com/t/does-case-when-really-use/71607)

<div class="topic-metadata">

**Author:** [@edenli](https://www.ruby-forum.com/u/edenli)\
**Replies:** 5\
**Last updated:** [October 12, 2006, 12:58pm UTC](https://www.ruby-forum.com/t/does-case-when-really-use/71607 "2006-10-12T12:58:14Z")

</div>

Can someone explain why my class’s === method is never called in the following code? irb(main):001:0\> class C; def ===(k); puts “===(#{k.inspect}) called”; true; end; end =\> nil irb(main):002:0\> case C.new; when Str…

---

## [FXRuby problems](https://www.ruby-forum.com/t/fxruby-problems/71898)

<div class="topic-metadata">

**Author:** [@dbstraig](https://www.ruby-forum.com/u/dbstraig)\
**Replies:** 2\
**Last updated:** [October 12, 2006, 12:58pm UTC](https://www.ruby-forum.com/t/fxruby-problems/71898 "2006-10-12T12:58:13Z")

</div>

It seems Fox produces all sorts of problems, but the last post on this particular problem I could find was from 2004. I’m running Ruby on WinXP. I installed with the one-click installer. I’ve tried using Fox right aft…

---

## [Sets in SQL/Ruby](https://www.ruby-forum.com/t/sets-in-sql-ruby/71914)

<div class="topic-metadata">

**Author:** [@surf](https://www.ruby-forum.com/u/surf)\
**Replies:** 1\
**Last updated:** [October 12, 2006, 11:06am UTC](https://www.ruby-forum.com/t/sets-in-sql-ruby/71914 "2006-10-12T11:06:57Z")

</div>

I have been working on building a common library that represents fields as weighted sets. I am more familiar with Rails know than I was when I started this. I decided to post this because I was concerned I may need to…

---

## [Request for newer Ruby version - better error message](https://www.ruby-forum.com/t/request-for-newer-ruby-version-better-error-message/71915)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 0\
**Last updated:** [October 12, 2006, 11:00am UTC](https://www.ruby-forum.com/t/request-for-newer-ruby-version-better-error-message/71915 "2006-10-12T11:00:54Z")

</div>

I have this line in my program: @sigList \<\< {:imei =\> imei, :misdn =\> sim, :date =\> time\[0…9\], :batch =\> batch\[1…3\], :serial =\> serial} I get this error: D:/Work/Ruby/Massage/merge.rb:138:in getSigMDB': undefined met…

---

## [Help with regex](https://www.ruby-forum.com/t/help-with-regex/71795)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 5\
**Last updated:** [October 12, 2006, 10:00am UTC](https://www.ruby-forum.com/t/help-with-regex/71795 "2006-10-12T10:00:47Z")

</div>

regex is not my cup of tea , i’ve been using them few times, only matching, no substitution… I need to check a string before saving it into a decimal (5,2) column in DB and I actually don’t know how to start substitut…

---

## [Ruby and XML Security](https://www.ruby-forum.com/t/ruby-and-xml-security/71682)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 4\
**Last updated:** [October 12, 2006, 9:38am UTC](https://www.ruby-forum.com/t/ruby-and-xml-security/71682 "2006-10-12T09:38:44Z")

</div>

Is it possible with Ruby to go through XML security process. read x509 private key read receiver x509 public key encrypt message with private key encrypt message with public key sign message I guess first 4 steps coul…

---

## [ParseTree 1.6.0 Released](https://www.ruby-forum.com/t/parsetree-1-6-0-released/71903)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [October 12, 2006, 8:16am UTC](https://www.ruby-forum.com/t/parsetree-1-6-0-released/71903 "2006-10-12T08:16:37Z")

</div>

ParseTree version 1.6.0 has been released! zenspider projects | software projects | by ryan davis ParseTree is a C extension (using RubyInline) that extracts the parse tree for an entire class or a specific method and…

---

## [Re: newgem - Create gems for your libraries and apps](https://www.ruby-forum.com/t/re-newgem-create-gems-for-your-libraries-and-apps/71791)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 4\
**Last updated:** [October 12, 2006, 8:14am UTC](https://www.ruby-forum.com/t/re-newgem-create-gems-for-your-libraries-and-apps/71791 "2006-10-12T08:14:11Z")

</div>

Again I love how this mailing list always sounds like it’s talking about me… ( : Gem

---

## [Hoe 1.1.1 Released](https://www.ruby-forum.com/t/hoe-1-1-1-released/71900)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 2\
**Last updated:** [October 12, 2006, 8:13am UTC](https://www.ruby-forum.com/t/hoe-1-1-1-released/71900 "2006-10-12T08:13:22Z")

</div>

hoe version 1.1.1 has been released! http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ removed\_email\_address@domain.invalid Hoe is a simple rake/rubygems helper for project Rakefiles. It g…

---

## [How would \*YOU\* write this?](https://www.ruby-forum.com/t/how-would-you-write-this/71896)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 3\
**Last updated:** [October 12, 2006, 8:12am UTC](https://www.ruby-forum.com/t/how-would-you-write-this/71896 "2006-10-12T08:12:36Z")

</div>

small\_image\_url = XPath.first(item, “SmallImage/URL”).text small\_image\_height = XPath.first(item, “SmallImage/Height Units”).text small\_image\_width = XPath.first(item, “SmallImage/Width Units”).text medium\_image\_url…

---

## [FileUtils.touch not consistent with system('touch')](https://www.ruby-forum.com/t/fileutils-touch-not-consistent-with-system-touch/71757)

<div class="topic-metadata">

**Author:** [@hanholl](https://www.ruby-forum.com/u/hanholl)\
**Replies:** 4\
**Last updated:** [October 12, 2006, 7:38am UTC](https://www.ruby-forum.com/t/fileutils-touch-not-consistent-with-system-touch/71757 "2006-10-12T07:38:32Z")

</div>

Hi, I have a world-writable file, not owned by me, that I try to touch: -rwxrwxrwx 1 root root 0 Oct 11 10:29 /tmp/file ruby -rfileutils -e ‘FileUtils.touch("/tmp/file")’ /usr/lib/ruby/1.8/fileutils.rb:1014:in utime'…

---

## [RubyInline 3.6.1 Released](https://www.ruby-forum.com/t/rubyinline-3-6-1-released/71902)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [October 12, 2006, 6:50am UTC](https://www.ruby-forum.com/t/rubyinline-3-6-1-released/71902 "2006-10-12T06:50:27Z")

</div>

RubyInline version 3.6.1 has been released! rubyinline | software projects | by ryan davis Ruby Inline is an analog to Perl’s Inline::C. Out of the box, it allows you to embed C/++ external module code in your ruby sc…

---

## [Singleton Class Constants](https://www.ruby-forum.com/t/singleton-class-constants/71848)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 11\
**Last updated:** [October 12, 2006, 5:52am UTC](https://www.ruby-forum.com/t/singleton-class-constants/71848 "2006-10-12T05:52:06Z")

</div>

David Black wrote in Ruby For Rails (page 341): (There’s also a subtle difference between these two approaches to defining a singleton method, involving the scope of constants, but that’s an arcane point. For the mos…

---

## [Installing libxml on osx as Gem](https://www.ruby-forum.com/t/installing-libxml-on-osx-as-gem/70317)

<div class="topic-metadata">

**Author:** [@nicholas.henry](https://www.ruby-forum.com/u/nicholas.henry)\
**Replies:** 2\
**Last updated:** [October 12, 2006, 4:22am UTC](https://www.ruby-forum.com/t/installing-libxml-on-osx-as-gem/70317 "2006-10-12T04:22:00Z")

</div>

I’m trying to install libxml on osx as a gem (Ruby 1.8.2). Any ideas on how to resolve these issues? (please see output below) Thank you, Nicholas Attempting local installation of ‘libxml’ Local gem file not found: …

---

## [RubyConf ticket for sale](https://www.ruby-forum.com/t/rubyconf-ticket-for-sale/71869)

<div class="topic-metadata">

**Author:** [@Paul\_Dix](https://www.ruby-forum.com/u/Paul_Dix)\
**Replies:** 1\
**Last updated:** [October 12, 2006, 2:35am UTC](https://www.ruby-forum.com/t/rubyconf-ticket-for-sale/71869 "2006-10-12T02:35:27Z")

</div>

I just found out that I will be unable to attend RubyConf. I’m putting my ticket up for the same price I purchased ($200 for sessions + meals). Please contact me if you’re interested. Thanks. Paul

---

## [Question about callcc](https://www.ruby-forum.com/t/question-about-callcc/71820)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 3\
**Last updated:** [October 12, 2006, 2:07am UTC](https://www.ruby-forum.com/t/question-about-callcc/71820 "2006-10-12T02:07:24Z")

</div>

Hi, I’m trying to understand continuation. There’s some confusion in the following: In top-level, \[1\] callcc { |c| $label = c } #…some other code here $label.call \[2\] $label = callcc { |c| c } #…some other code…

---

## [Quicktime com automation - how do I call it?](https://www.ruby-forum.com/t/quicktime-com-automation-how-do-i-call-it/69979)

<div class="topic-metadata">

**Author:** [@dang](https://www.ruby-forum.com/u/dang)\
**Replies:** 6\
**Last updated:** [October 12, 2006, 1:36am UTC](https://www.ruby-forum.com/t/quicktime-com-automation-how-do-i-call-it/69979 "2006-10-12T01:36:10Z")

</div>

Hi all, I’m playing around with Windows Automation with the aim of processing some quicktime movies via ruby. I’ve played with the WIN32OLE object to open internet explorer (following the chapter in the pick axe) but …

---

## [Silent install of a gem and its dependencies](https://www.ruby-forum.com/t/silent-install-of-a-gem-and-its-dependencies/71802)

<div class="topic-metadata">

**Author:** [@breko](https://www.ruby-forum.com/u/breko)\
**Replies:** 4\
**Last updated:** [October 12, 2006, 1:00am UTC](https://www.ruby-forum.com/t/silent-install-of-a-gem-and-its-dependencies/71802 "2006-10-12T01:00:36Z")

</div>

Hi, I’m wondering whether there is a way to install a gem and its dependecies without rubygems asking anything. I need to deploy on several machines a set of gems. I created special gem for the purpose that depends o…

---

## [Case ... when and arrays (or what was why\_ showing us at rai](https://www.ruby-forum.com/t/case-when-and-arrays-or-what-was-why-showing-us-at-rai/71853)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 8\
**Last updated:** [October 11, 2006, 11:41pm UTC](https://www.ruby-forum.com/t/case-when-and-arrays-or-what-was-why-showing-us-at-rai/71853 "2006-10-11T23:41:49Z")

</div>

Hi, I would like to test a string foo against an array bar in as case… when clause and would like to know the best way to do this. I am sure why\_ did something neat with an \* operator, but can’t find any reference. I…

---

## [Match with string instead of regexp fails](https://www.ruby-forum.com/t/match-with-string-instead-of-regexp-fails/71825)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [October 11, 2006, 10:41pm UTC](https://www.ruby-forum.com/t/match-with-string-instead-of-regexp-fails/71825 "2006-10-11T22:41:26Z")

</div>

According to the 1.8.5 core API: str =~ obj =\> fixnum or nil Match. If obj is a Regexp, use it as a pattern to match against str. If obj is a String, look for it in str (similar to String#index). Returns the position…

---

## [Higher-order messaging in Ruby](https://www.ruby-forum.com/t/higher-order-messaging-in-ruby/71830)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokSS\_Sh](https://www.ruby-forum.com/u/Victor_SZverokSS_Sh)\
**Replies:** 1\
**Last updated:** [October 11, 2006, 10:02pm UTC](https://www.ruby-forum.com/t/higher-order-messaging-in-ruby/71830 "2006-10-11T22:02:13Z")

</div>

Hi all. Jus stumbled upon interesting post here: http://legacyofthemob.se/istari/2006/10/08/higher-order-messaging-in-ruby/ One more trick allowing goodies like \[0,1,2,3,4\].where.nonzero? =\> \[1,2,3,4\] \[0,1,2,3,4\].d…

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

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