# Ruby

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

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

---

## [Revert after dropping a draggable, only if out of bounds](https://www.ruby-forum.com/t/revert-after-dropping-a-draggable-only-if-out-of-bounds/72230)

<div class="topic-metadata">

**Author:** [@jrun](https://www.ruby-forum.com/u/jrun)\
**Replies:** 2\
**Last updated:** [October 15, 2006, 9:31pm UTC](https://www.ruby-forum.com/t/revert-after-dropping-a-draggable-only-if-out-of-bounds/72230 "2006-10-15T21:31:05Z")

</div>

Hi, I have a div tag as a â??containerâ? for all my draggable objectsâ?¦ My goal is to be able to decide whether to revert these objects based on where they are dropped. If they are â??out of boundsâ?, or not in the …

---

## [Running Ruby on Windows](https://www.ruby-forum.com/t/running-ruby-on-windows/72196)

<div class="topic-metadata">

**Author:** [@vincpa](https://www.ruby-forum.com/u/vincpa)\
**Replies:** 6\
**Last updated:** [October 15, 2006, 9:27pm UTC](https://www.ruby-forum.com/t/running-ruby-on-windows/72196 "2006-10-15T21:27:04Z")

</div>

Hi, If mod\_ruby is only available for \*nix systems, how can I code ruby scripts into HTML files without using rails? Does webrick still work? It also seems that eRuby no longer exists so how would apache be set up to…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/72228)

<div class="topic-metadata">

**Author:** [@Mohammed\_Sabti](https://www.ruby-forum.com/u/Mohammed_Sabti)\
**Replies:** 0\
**Last updated:** [October 15, 2006, 9:09pm UTC](https://www.ruby-forum.com/t/no-subject/72228 "2006-10-15T21:09:02Z")

</div>

unsubscribe

---

## [Interfaceing with the Internet (TCP/IP + UDP) via ruby](https://www.ruby-forum.com/t/interfaceing-with-the-internet-tcp-ip-udp-via-ruby/72199)

<div class="topic-metadata">

**Author:** [@Meino\_Christian\_C](https://www.ruby-forum.com/u/Meino_Christian_C)\
**Replies:** 1\
**Last updated:** [October 15, 2006, 9:03pm UTC](https://www.ruby-forum.com/t/interfaceing-with-the-internet-tcp-ip-udp-via-ruby/72199 "2006-10-15T21:03:01Z")

</div>

Hi, I am looking for a good introduction how to interface with the internet (TCP/IP + UDP) via ruby. Does anyone knows of sources to examine or HowTos ? Thank you very much in advance! mcc

---

## [A\* (#98)](https://www.ruby-forum.com/t/a-98/102550)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 0\
**Last updated:** [October 15, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/a-98/102550 "2006-10-15T20:22:58Z")

</div>

Here’s some test code against which you can test your solutions. Note that if you follow the quiz statement, and pay no heed to my correction to the distance formula, you will fail one of the tests. Adapters can easil…

---

## [Speeding up ri](https://www.ruby-forum.com/t/speeding-up-ri/70782)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 4\
**Last updated:** [October 15, 2006, 7:46pm UTC](https://www.ruby-forum.com/t/speeding-up-ri/70782 "2006-10-15T19:46:54Z")

</div>

On my machine (3GHz P4, 1GB RAM, Windows and other apps running) I just opened up a command prompt and typed “ri ERB”. Then I realized that ri has become heinously slow since I upgraded to 1.8.5. So I opened a browse…

---

## [Boogaloo Simple Cache Server 0.1](https://www.ruby-forum.com/t/boogaloo-simple-cache-server-0-1/72076)

<div class="topic-metadata">

**Author:** [@elliterate](https://www.ruby-forum.com/u/elliterate)\
**Replies:** 6\
**Last updated:** [October 15, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/boogaloo-simple-cache-server-0-1/72076 "2006-10-15T18:46:46Z")

</div>

Hey all, I’ve just made the first release of a new project: Boogaloo. Boogaloo is a very simple cache server that provides persistent and temporary caches. You can also use it to house your own custom services. It’s …

---

## [Comp.lang.ruby.rails?](https://www.ruby-forum.com/t/comp-lang-ruby-rails/72203)

<div class="topic-metadata">

**Author:** [@naPOLeon](https://www.ruby-forum.com/u/naPOLeon)\
**Replies:** 7\
**Last updated:** [October 15, 2006, 6:32pm UTC](https://www.ruby-forum.com/t/comp-lang-ruby-rails/72203 "2006-10-15T18:32:43Z")

</div>

I’m a ruby-only developer (so no Rails) and I wondered why there is no special Rails-Group. One main reason for rubys growing popularity is in fact Rails. But if I want to get an answer for a ruby-only-questions, I do…

---

## [Can ruby comment out a block of code?](https://www.ruby-forum.com/t/can-ruby-comment-out-a-block-of-code/72145)

<div class="topic-metadata">

**Author:** [@roseanne](https://www.ruby-forum.com/u/roseanne)\
**Replies:** 5\
**Last updated:** [October 15, 2006, 6:12pm UTC](https://www.ruby-forum.com/t/can-ruby-comment-out-a-block-of-code/72145 "2006-10-15T18:12:40Z")

</div>

It sounds pretty stupid, but I could not find a way to do it in Ruby yet. Such in C/C++/Java: /\* This is all comments. This forum is connected to a mailing list that is read by thousands of people. Before you post,…

---

## [RDoc vs metaprogramming](https://www.ruby-forum.com/t/rdoc-vs-metaprogramming/72185)

<div class="topic-metadata">

**Author:** [@Pau\_Garcia\_i\_Quiles](https://www.ruby-forum.com/u/Pau_Garcia_i_Quiles)\
**Replies:** 6\
**Last updated:** [October 15, 2006, 4:12pm UTC](https://www.ruby-forum.com/t/rdoc-vs-metaprogramming/72185 "2006-10-15T16:12:28Z")

</div>

Hello, I have developed a library to read and parse XSPF playlists. Most of the methods (90%) are metagenerated using something like this: class XSPFBlah attributes = %w{ attrib1 attrib2 } attributes.each do |attrib…

---

## [OT: Ruby / Glade on Windows](https://www.ruby-forum.com/t/ot-ruby-glade-on-windows/72202)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 0\
**Last updated:** [October 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/ot-ruby-glade-on-windows/72202 "2006-10-15T14:20:08Z")

</div>

I’m looking at the latest release of Windows version of Glade-3. What I don’t see are installation notes. I already installed the runtime and dev files (thought they are not at v.3. The unzipped Glade-3 is just four …

---

## [Initialize a subclass inside a different namespace](https://www.ruby-forum.com/t/initialize-a-subclass-inside-a-different-namespace/72177)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 1\
**Last updated:** [October 15, 2006, 2:16pm UTC](https://www.ruby-forum.com/t/initialize-a-subclass-inside-a-different-namespace/72177 "2006-10-15T14:16:08Z")

</div>

have a namespace Foo and a class Bas and a class Bar. I am adding classes Bas & Bar are both inside the namespace Foo. module Foo class Bas . end class Bar . end end I have some dynamically added classes that a…

---

## [Printf format problem](https://www.ruby-forum.com/t/printf-format-problem/72044)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 2\
**Last updated:** [October 15, 2006, 1:54pm UTC](https://www.ruby-forum.com/t/printf-format-problem/72044 "2006-10-15T13:54:05Z")

</div>

e$B!!e(Bprintf()e$B7O4X?t$N8F$S=P$7$K$\*$$$F!“2?$,F~$C$F$$$k$+J,$+$i$J$$e(B e$BJ8;zNs$r$=$N$^$^=q\<0J8;zNs$H$7$FEO$7$F$$$k$H$3$m$,2?2U=j$b$”$ke(B e$B$h$&$G$9!#e(B e$B!!$?$H$($P!"\<!$N$h$&$K$9$k$He(B core e$B$rEG$-$^$9!#e(…

---

## [Getting PHP/Smarty template functionality from Ruby or Ruby](https://www.ruby-forum.com/t/getting-php-smarty-template-functionality-from-ruby-or-ruby/72184)

<div class="topic-metadata">

**Author:** [@Irving\_Fried](https://www.ruby-forum.com/u/Irving_Fried)\
**Replies:** 2\
**Last updated:** [October 15, 2006, 1:36pm UTC](https://www.ruby-forum.com/t/getting-php-smarty-template-functionality-from-ruby-or-ruby/72184 "2006-10-15T13:36:03Z")

</div>

I’ve read about Canny, but it doesn’t seem to enjoy a lot of versions or users since it’s been released. I’ve read that Ruby natively supplies template functionality. I need to know how easy it will be with Ruby to …

---

## [Initialize a subclass inside a namespace](https://www.ruby-forum.com/t/initialize-a-subclass-inside-a-namespace/72174)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 3\
**Last updated:** [October 15, 2006, 12:15pm UTC](https://www.ruby-forum.com/t/initialize-a-subclass-inside-a-namespace/72174 "2006-10-15T12:15:56Z")

</div>

I have a namespace Foo and a class Bas and a class Bar. I am adding classes Bas & Bar are both inside the namespace Foo. module Foo class Bas . end class Bar . end end I have some dynamically added classes that…

---

## [Copying the file in local hard drive to the text field in th](https://www.ruby-forum.com/t/copying-the-file-in-local-hard-drive-to-the-text-field-in-th/72192)

<div class="topic-metadata">

**Author:** [@michael](https://www.ruby-forum.com/u/michael)\
**Replies:** 1\
**Last updated:** [October 15, 2006, 12:05pm UTC](https://www.ruby-forum.com/t/copying-the-file-in-local-hard-drive-to-the-text-field-in-th/72192 "2006-10-15T12:05:55Z")

</div>

In my previous inquiry, I have received the below suggestion; I was inquiring how I can copy a file in my hard drive to the text field in the web. Yes, below code works!!! but each file I need to upload is quite len…

---

## ["Cannot export Init\_ext: symbol not defined" error when comp](https://www.ruby-forum.com/t/cannot-export-init-ext-symbol-not-defined-error-when-comp/72189)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 2\
**Last updated:** [October 15, 2006, 10:05am UTC](https://www.ruby-forum.com/t/cannot-export-init-ext-symbol-not-defined-error-when-comp/72189 "2006-10-15T10:05:45Z")

</div>

Hello, I’m trying to follow the instructions to compile a ruby extension on Linux for Windows via Mingw. The tutorial is at eigenclass.org So far, I am stuck on the cross-compile.sh step. Here is my error output: r…

---

## [Fast JSON 0.0.1 Released](https://www.ruby-forum.com/t/fast-json-0-0-1-released/72167)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 2\
**Last updated:** [October 15, 2006, 9:33am UTC](https://www.ruby-forum.com/t/fast-json-0-0-1-released/72167 "2006-10-15T09:33:44Z")

</div>

I released the Fast JSON library a few days ago. http://fjson.rubyforge.org http://rubyforge.org/projects/fjson This project is a fork of the JSON library by Florian F. ( http://json.rubyforge.org) with optimizations…

---

## [Rdoc with c extensions](https://www.ruby-forum.com/t/rdoc-with-c-extensions/69675)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 1\
**Last updated:** [October 15, 2006, 7:07am UTC](https://www.ruby-forum.com/t/rdoc-with-c-extensions/69675 "2006-10-15T07:07:39Z")

</div>

I’m trying to figure out the best way to have docs for a c extension generated when a gem is installed. Ideally I’d like to document the methods in modname.rb, but I can’t because if I define the methods in modname.r…

---

## [EBNF for Ruby?](https://www.ruby-forum.com/t/ebnf-for-ruby/72019)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 3\
**Last updated:** [October 15, 2006, 4:29am UTC](https://www.ruby-forum.com/t/ebnf-for-ruby/72019 "2006-10-15T04:29:23Z")

</div>

Hi, I heard from somebody that Ruby cannot be completely expressed in EBNF. And he also said that there are some ad hoc cases. Is it true? Sam

---

## [Speaking of COBOL](https://www.ruby-forum.com/t/speaking-of-cobol/72100)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 8\
**Last updated:** [October 15, 2006, 3:13am UTC](https://www.ruby-forum.com/t/speaking-of-cobol/72100 "2006-10-15T03:13:18Z")

</div>

Interesting article on the future of COBOL … perhaps a COBOL to Ruby translator would ease some pain?

---

## [Preferred way to call a class method?](https://www.ruby-forum.com/t/preferred-way-to-call-a-class-method/72165)

<div class="topic-metadata">

**Author:** [@pachl](https://www.ruby-forum.com/u/pachl)\
**Replies:** 1\
**Last updated:** [October 15, 2006, 3:05am UTC](https://www.ruby-forum.com/t/preferred-way-to-call-a-class-method/72165 "2006-10-15T03:05:18Z")

</div>

class Test def self.class\_meth ‘inside class method’ end def inst\_meth1 self.class.class\_meth end def inst\_meth2 Test.class\_meth end end What is the preferred way of calling a class method from within an inst…

---

## [GPX gem 0.1](https://www.ruby-forum.com/t/gpx-gem-0-1/72161)

<div class="topic-metadata">

**Author:** [@Doug\_Fales](https://www.ruby-forum.com/u/Doug_Fales)\
**Replies:** 1\
**Last updated:** [October 15, 2006, 1:41am UTC](https://www.ruby-forum.com/t/gpx-gem-0-1/72161 "2006-10-15T01:41:11Z")

</div>

Hi all, I’m pleased to announce the first release of my GPX ruby gem: http://gpx.rubyforge.org GPX is an XML format for representing GPS data. This 100% ruby gem supports reading, editing, and writing of GPX files. …

---

## [Win32-mmap 0.2.0](https://www.ruby-forum.com/t/win32-mmap-0-2-0/72101)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 4\
**Last updated:** [October 15, 2006, 1:09am UTC](https://www.ruby-forum.com/t/win32-mmap-0-2-0/72101 "2006-10-15T01:09:09Z")

</div>

Hi all, The Win32Utils team is happy to announce the release 0.2.0 release of win32-mmap. = What is it? A Ruby interface for memory mapped IO on windows. = What’s new? It is now pure Ruby instead of a C extension, …

---

## [Source files for "YART - Yet Another Ruby Tutorial" now avai](https://www.ruby-forum.com/t/source-files-for-yart-yet-another-ruby-tutorial-now-avai/72117)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 6\
**Last updated:** [October 14, 2006, 11:27pm UTC](https://www.ruby-forum.com/t/source-files-for-yart-yet-another-ruby-tutorial-now-avai/72117 "2006-10-14T23:27:25Z")

</div>

Hello. Thanks to everyone who sent me words of encouragement about my Ruby Tutorial. :slight\_smile: Managed to grab an hour this AM to work on putting OpenOffice.org Impress and PowerPoint versions of my Ruby Tutori…

---

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

<div class="topic-metadata">

**Author:** [@acoole](https://www.ruby-forum.com/u/acoole)\
**Replies:** 1\
**Last updated:** [October 14, 2006, 11:16pm UTC](https://www.ruby-forum.com/t/how-to/72154 "2006-10-14T23:16:55Z")

</div>

I Need a script that will make it so the person using the app inputs a word and it flips it back! It needs to work with FreeRide, Thanks,

---

## [Make test-all fails](https://www.ruby-forum.com/t/make-test-all-fails/72139)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 1\
**Last updated:** [October 14, 2006, 7:52pm UTC](https://www.ruby-forum.com/t/make-test-all-fails/72139 "2006-10-14T19:52:34Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B \[ruby-core:09179\]e$B$K$"$kDL$j!“e(Bmake test-alle$B$,F0$+$J$/$J$C$F$ke(B e$B$s$G$9$,!”$3$l$Oe(B \* lib/test/unit/collector/dir.rb (Collector::Dir#collect): prepend base director…

---

## [Active Record Inheritence](https://www.ruby-forum.com/t/active-record-inheritence/72140)

<div class="topic-metadata">

**Author:** [@bizzz](https://www.ruby-forum.com/u/bizzz)\
**Replies:** 3\
**Last updated:** [October 14, 2006, 7:42pm UTC](https://www.ruby-forum.com/t/active-record-inheritence/72140 "2006-10-14T19:42:31Z")

</div>

Greetings, I’m having some troubles getting single table inheritance working. I’m outside of rails, and I think I understand the way this whole thing is supposed to work. I’ve got tables in a PostgreSQL database, (…

---

## [What's wrong with my metaprogramming?](https://www.ruby-forum.com/t/whats-wrong-with-my-metaprogramming/72135)

<div class="topic-metadata">

**Author:** [@John\_Ky](https://www.ruby-forum.com/u/John_Ky)\
**Replies:** 4\
**Last updated:** [October 14, 2006, 5:41pm UTC](https://www.ruby-forum.com/t/whats-wrong-with-my-metaprogramming/72135 "2006-10-14T17:41:47Z")

</div>

def define\_my\_method(method\_name) define\_method method\_name do yield end end class X define\_my\_method :method1 do puts “Method 1” end define\_my\_method :method2 do puts “Method 2” method1 end end X.…

---

## [Unpack block?](https://www.ruby-forum.com/t/unpack-block/72075)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 5\
**Last updated:** [October 14, 2006, 5:35pm UTC](https://www.ruby-forum.com/t/unpack-block/72075 "2006-10-14T17:35:45Z")

</div>

unpack doesn’t seem to take a block. This seems like an obvious thing to want if I’m going to work with a big input string and not burn memory. Am I missing something? -Tim

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

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