# Ruby

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

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

---

## [.include? for string](https://www.ruby-forum.com/t/include-for-string/142336)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 5\
**Last updated:** [July 7, 2008, 12:13am UTC](https://www.ruby-forum.com/t/include-for-string/142336 "2008-07-07T00:13:00Z")

</div>

Hi, I have an array a =\> \[\[“abc”, “def”, “ghi|ghi|kl”\], \[“jkl”, “mno”, “ghi|pqr”\], \[“stu”, “vwx”, “yz|abc”\]\] Some strings contain the pipe character. I want to delete all the arrows that do NOT contain a certain str…

---

## [Rand() needs a seed?](https://www.ruby-forum.com/t/rand-needs-a-seed/142307)

<div class="topic-metadata">

**Author:** [@Johan\_Danforth](https://www.ruby-forum.com/u/Johan_Danforth)\
**Replies:** 4\
**Last updated:** [July 7, 2008, 12:03am UTC](https://www.ruby-forum.com/t/rand-needs-a-seed/142307 "2008-07-07T00:03:04Z")

</div>

I’m a noob Ruby user, but IronRuby behaves different from other Ruby implementations that I’ve tried, in IronRuby (rev 121) this code: 100.times {p rand(100)} Often returns the same value for (almost) all iterations, …

---

## [Book](https://www.ruby-forum.com/t/book/142300)

<div class="topic-metadata">

**Author:** [@tommy](https://www.ruby-forum.com/u/tommy)\
**Replies:** 11\
**Last updated:** [July 6, 2008, 10:47pm UTC](https://www.ruby-forum.com/t/book/142300 "2008-07-06T22:47:33Z")

</div>

Hello all, I am a C++ and Java developer and I would like to have a look at ruby in my spare time. I prefer reading a book to reading online docs (when possible) and I usually get bored when the book/tutorial is to…

---

## [Slide Show (S9) Gem Now Includes S5 Support (Including Built-In Gradient Themes)](https://www.ruby-forum.com/t/slide-show-s9-gem-now-includes-s5-support-including-built-in-gradient-themes/142074)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 20\
**Last updated:** [July 6, 2008, 10:41pm UTC](https://www.ruby-forum.com/t/slide-show-s9-gem-now-includes-s5-support-including-built-in-gradient-themes/142074 "2008-07-06T22:41:06Z")

</div>

Hello, The Ruby Slide Show (S9) gem that lets you create slide shows and author slides in plain text using a wiki-style markup language that’s easy-to-write and easy-to-read now includes (experimental) support for S5…

---

## [Statistician II (#168)](https://www.ruby-forum.com/t/statistician-ii-168/142224)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 4\
**Last updated:** [July 6, 2008, 9:05pm UTC](https://www.ruby-forum.com/t/statistician-ii-168/142224 "2008-07-06T21:05:23Z")

</div>

Apologies if this appears as a repost, but the mailing list complained it was too large. Posting now in two parts: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q. 2: …

---

## [Mkmf isn't finding my shared object to link with](https://www.ruby-forum.com/t/mkmf-isnt-finding-my-shared-object-to-link-with/142319)

<div class="topic-metadata">

**Author:** [@tristincolby](https://www.ruby-forum.com/u/tristincolby)\
**Replies:** 2\
**Last updated:** [July 6, 2008, 7:30pm UTC](https://www.ruby-forum.com/t/mkmf-isnt-finding-my-shared-object-to-link-with/142319 "2008-07-06T19:30:50Z")

</div>

I have an extension I wrote which is actually just a wrapper for a C api. The directory structure looks like this. . |-- Makefile |-- extconf.rb |-- extconf.rb~ |-- libmdc.so |-- mdc.h |-- metadata-backup.c~ |-…

---

## [Bacon 1.0, a small RSpec clone](https://www.ruby-forum.com/t/bacon-1-0-a-small-rspec-clone/142317)

<div class="topic-metadata">

**Author:** [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Replies:** 1\
**Last updated:** [July 6, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/bacon-1-0-a-small-rspec-clone/142317 "2008-07-06T18:59:47Z")

</div>

Hello, Today I’m proud to release Bacon 1.0. = Bacon – small RSpec clone. “Truth will sooner come out from error than from confusion.” —Francis Bacon Bacon is a small RSpec clone weighing less than 350 LoC but neve…

---

## [File.extname("foo bar") = " bar" .................?](https://www.ruby-forum.com/t/file-extname-foo-bar-bar/142312)

<div class="topic-metadata">

**Author:** [@ThoML](https://www.ruby-forum.com/u/ThoML)\
**Replies:** 1\
**Last updated:** [July 6, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/file-extname-foo-bar-bar/142312 "2008-07-06T18:29:56Z")

</div>

Hi, I just realized that the result of File.extname(“foo bar”) is =\> " bar" I have to admit this comes unexpected. In file.c, I found this #if USE\_NTFS #define istrailinggabage(x) ((x) == ‘.’ || (x) == ’ ') #else …

---

## [Rainbow tables](https://www.ruby-forum.com/t/rainbow-tables/142279)

<div class="topic-metadata">

**Author:** [@0perator](https://www.ruby-forum.com/u/0perator)\
**Replies:** 1\
**Last updated:** [July 6, 2008, 5:09pm UTC](https://www.ruby-forum.com/t/rainbow-tables/142279 "2008-07-06T17:09:40Z")

</div>

hi, here is my script so far to make rainbow tables require ‘digest/md5’ string = “a” File.open(“rainbow.txt”, “a”) do |f| while string != “zzzzzzzz” md5 = Digest::MD5.hexdigest(string) f.puts string + " : " + md5 …

---

## [From ruby/RoR to Java (framework unknown) :(](https://www.ruby-forum.com/t/from-ruby-ror-to-java-framework-unknown/142225)

<div class="topic-metadata">

**Author:** [@S2S2S2](https://www.ruby-forum.com/u/S2S2S2)\
**Replies:** 34\
**Last updated:** [July 6, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/from-ruby-ror-to-java-framework-unknown/142225 "2008-07-06T16:30:48Z")

</div>

My company today decided to ditch ruby development and to develop new web applications only with Java or .net. Current RoR applications will be migrated to Java. Sigh. No more ruby for me (in office hours). But anyw…

---

## [Fiber $B$b$I$-(B for 1.8.x](https://www.ruby-forum.com/t/fiber-b-b-i-b-for-1-8-x/142250)

<div class="topic-metadata">

**Author:** [@IWAMURO\_Motonori](https://www.ruby-forum.com/u/IWAMURO_Motonori)\
**Replies:** 3\
**Last updated:** [July 6, 2008, 2:34pm UTC](https://www.ruby-forum.com/t/fiber-b-b-i-b-for-1-8-x/142250 "2008-07-06T14:34:52Z")

</div>

å²©å®¤ã§ã™ã€‚ 1.9.0-2è¦‹ã‚‹ã¾ã§çŸ¥ã‚‰ãªã‹ã£ãŸã®ã§ã™ãŒã€Generatoræ¶ˆãˆã‚‹ã‚“ã§ã™ã­ã€‚ ã¾ã 1.8ãƒ¦ãƒ¼ã‚¶ã§ã™ãŒã€å˜ã«æ¶ˆãˆã‚‰ã‚Œã‚‹ã¨ã¡ã‚‡ã£ã¨å›°ã‚‹ã®ã§ã€callcc ã‚’ä½¿ã£ã¦1.8ã«Fiberã‚‚ã…

---

## [Amalgalite 0.2.0 Released](https://www.ruby-forum.com/t/amalgalite-0-2-0-released/142239)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 6\
**Last updated:** [July 6, 2008, 11:55am UTC](https://www.ruby-forum.com/t/amalgalite-0-2-0-released/142239 "2008-07-06T11:55:44Z")

</div>

amalgalite version 0.2.0 has been released. http://www.copiousfreetime.org/articles/2008/07/04/amalgalite-0-2-0-released.html http://copiousfreetime.rubyforge.org/amalgalite/ Amalgalite embeds the SQLite database…

---

## [Title avoiding spurious response](https://www.ruby-forum.com/t/title-avoiding-spurious-response/142258)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 5\
**Last updated:** [July 6, 2008, 11:06am UTC](https://www.ruby-forum.com/t/title-avoiding-spurious-response/142258 "2008-07-06T11:06:02Z")

</div>

for each db.execute row, i get a spurious respense like : sql = SELECT DISTINCT \* FROM moz\_bookmarks WHERE title LIKE ‘%\\U%’; block\_given? = true bind\_vars.empty? = true db = #SQLite3::Database:0x4e5b9c, db.type\_tran…

---

## [Arts](https://www.ruby-forum.com/t/arts/142297)

<div class="topic-metadata">

**Author:** [@nice\_women\_here](https://www.ruby-forum.com/u/nice_women_here)\
**Replies:** 0\
**Last updated:** [July 6, 2008, 10:49am UTC](https://www.ruby-forum.com/t/arts/142297 "2008-07-06T10:49:38Z")

</div>

This is a all the news so we have use web many other detials Any way any type of information and images,songs,freedowlonding www.onlinemarketing.co.in

---

## [Ruby C API Question](https://www.ruby-forum.com/t/ruby-c-api-question/142112)

<div class="topic-metadata">

**Author:** [@tristincolby](https://www.ruby-forum.com/u/tristincolby)\
**Replies:** 11\
**Last updated:** [July 6, 2008, 9:26am UTC](https://www.ruby-forum.com/t/ruby-c-api-question/142112 "2008-07-06T09:26:02Z")

</div>

I’ve been going over the Ruby API and I have a couple questions. Why are the variables defined outside the block? What effect does this have on the variables? static VALUE fsdbm\_s\_open(argc, argv, klass) int argc; …

---

## [\[Feature:1.9\] rb\_scan\_args() for keyword arguments](https://www.ruby-forum.com/t/feature-1-9-rb-scan-args-for-keyword-arguments/142294)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [July 6, 2008, 9:21am UTC](https://www.ruby-forum.com/t/feature-1-9-rb-scan-args-for-keyword-arguments/142294 "2008-07-06T09:21:56Z")

</div>

e$B$J$+$@$G$9!#e(B rb\_scan\_args()e$B$G%-!\<%o!\<%I0z?t$KBP1~$9$k%Q%C%A$rH/7!$7$^$7$?!#e(B rb\_scan\_args(argc, argv, “11:foo”, &mandatory, &optional, &foo) e$B$H$+e(B rb\_scan\_args(argc, argv, “11::”, &mandatory, &optiona…

---

## [Re: spec question](https://www.ruby-forum.com/t/re-spec-question/142280)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [July 6, 2008, 8:07am UTC](https://www.ruby-forum.com/t/re-spec-question/142280 "2008-07-06T08:07:41Z")

</div>

You should be fine making a patch. As for the test, it shouldn’t run that test on Windows, but I’m not sure how the old runner works. JD

---

## [Win32 Unicode console output](https://www.ruby-forum.com/t/win32-unicode-console-output/141123)

<div class="topic-metadata">

**Author:** [@Tietew](https://www.ruby-forum.com/u/Tietew)\
**Replies:** 21\
**Last updated:** [July 6, 2008, 7:58am UTC](https://www.ruby-forum.com/t/win32-unicode-console-output/141123 "2008-07-06T07:58:55Z")

</div>

Tietew ã§ã™ã€‚ VS2008 ã§Unicodeæ–‡å­—åˆ—ã®ã‚³ãƒ³ã‚½ãƒ¼ãƒ«å‡ºåŠ›ãŒã§ããŸã®ã§ã¨ã‚Šã‚ãˆãšãªãƒ‘ãƒƒãƒã‚’æŠ• ç¨¿ã—ã¾ã™ã€‚VC++6 ç­‰ã€msvcrt.dll ã®ç’°å¢ƒã§ä½¿ãˆã‚‹ã‹ã©ã†ã‹ä¸æ˜Žã§ã™ã€‚ ã“ã‚“ãªæ„…

---

## [ANN: Sequel 2.2.0 Released](https://www.ruby-forum.com/t/ann-sequel-2-2-0-released/142285)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 0\
**Last updated:** [July 6, 2008, 12:59am UTC](https://www.ruby-forum.com/t/ann-sequel-2-2-0-released/142285 "2008-07-06T00:59:05Z")

</div>

Sequel is a lightweight database access toolkit for Ruby. Sequel provides thread safety, connection pooling and a concise DSL for constructing database queries and table schemas. Sequel also includes a lightweight but…

---

## [Parameter name reflection](https://www.ruby-forum.com/t/parameter-name-reflection/142152)

<div class="topic-metadata">

**Author:** [@ole](https://www.ruby-forum.com/u/ole)\
**Replies:** 4\
**Last updated:** [July 5, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/parameter-name-reflection/142152 "2008-07-05T22:38:59Z")

</div>

If I declare def foo(a, b) end What code should I use to find the names of the parameters? I only see these methods available on a Method object. \["\[\]", “arity”, “call”, “to\_proc”, “unbind”\] For instance in PHP I c…

---

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

<div class="topic-metadata">

**Author:** [@rafael](https://www.ruby-forum.com/u/rafael)\
**Replies:** 7\
**Last updated:** [July 5, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/problem-with-unpack/141937 "2008-07-05T21:54:23Z")

</div>

Hi, I’m trying to read a binary file and would want to find within the file a particular substring. I have done the following file = File.open(“testFile”,“rb”) str = String.new file.read(512, str) puts (str.length)…

---

## [Don't understand NoMethodError](https://www.ruby-forum.com/t/dont-understand-nomethoderror/142275)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 3\
**Last updated:** [July 5, 2008, 7:44pm UTC](https://www.ruby-forum.com/t/dont-understand-nomethoderror/142275 "2008-07-05T19:44:55Z")

</div>

Here is the code so far: require 'rubygems' require 'fastercsv' require 'highline/import' def ukquotes(the\_string) #RTF specific: converting double to single quotes the\_string.gsub! /\\‘d2(.\*)\\‘d3/m, “\\'d4$1\\'d5” the…

---

## [Regexp help please](https://www.ruby-forum.com/t/regexp-help-please/142259)

<div class="topic-metadata">

**Author:** [@PDTCT](https://www.ruby-forum.com/u/PDTCT)\
**Replies:** 3\
**Last updated:** [July 5, 2008, 2:35pm UTC](https://www.ruby-forum.com/t/regexp-help-please/142259 "2008-07-05T14:35:52Z")

</div>

Hi All, I am trying to extract quoted text fromlines in a file. Assume I have read in a line as follows type “this piece of text” into field called “search field” I then want to extract the two pieces of quoted text …

---

## [Open a remote file and edit it](https://www.ruby-forum.com/t/open-a-remote-file-and-edit-it/142262)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 1\
**Last updated:** [July 5, 2008, 1:00pm UTC](https://www.ruby-forum.com/t/open-a-remote-file-and-edit-it/142262 "2008-07-05T13:00:54Z")

</div>

Guys i want to open a file on another machine lets say test.txt, read it find (grep) for example the text “localhost” and replace it with a machine name and then close the file. I can connect to the machine using ssh …

---

## [False || not(true)](https://www.ruby-forum.com/t/false-not-true/142243)

<div class="topic-metadata">

**Author:** [@SHINDO\_Motoaki](https://www.ruby-forum.com/u/SHINDO_Motoaki)\
**Replies:** 2\
**Last updated:** [July 5, 2008, 12:25pm UTC](https://www.ruby-forum.com/t/false-not-true/142243 "2008-07-05T12:25:47Z")

</div>

Hi\>Volks This is my 1st post to this ML, butâ€¦ I read 'bout a problem: (false || not(true)) in a place, and made a little considerations. I give NOW, the source code AsIs, with the ‘comments’ in itâ€¦ ï¼ï¼ï¼ï¼…

---

## [\[ANN\] Autumn 3.0: Easy, fresh, powerful IRC bots](https://www.ruby-forum.com/t/ann-autumn-3-0-easy-fresh-powerful-irc-bots/142257)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 0\
**Last updated:** [July 5, 2008, 11:20am UTC](https://www.ruby-forum.com/t/ann-autumn-3-0-easy-fresh-powerful-irc-bots/142257 "2008-07-05T11:20:46Z")

</div>

Autumn 3.0 has been released and is now on GitHub. Autumn is still one the simplest and most powerful ways of writing IRC bots in Ruby. Autumn 3.0 makes it easier to distribute your bots, and, with ERb view templates…

---

## [Spec question](https://www.ruby-forum.com/t/spec-question/142254)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 0\
**Last updated:** [July 5, 2008, 10:22am UTC](https://www.ruby-forum.com/t/spec-question/142254 "2008-07-05T10:22:55Z")

</div>

When I was testing the File.zero? I noticed File.zero?(‘NUL’) failed. I looked the code and it seems there is no special check there to exclude NUL as a not a valid file. I created a constant Â Â Â Â Â Â Â private re…

---

## [Improvement of lazy sweep patch](https://www.ruby-forum.com/t/improvement-of-lazy-sweep-patch/138092)

<div class="topic-metadata">

**Author:** [@authorNari](https://www.ruby-forum.com/u/authorNari)\
**Replies:** 7\
**Last updated:** [July 5, 2008, 9:58am UTC](https://www.ruby-forum.com/t/improvement-of-lazy-sweep-patch/138092 "2008-07-05T09:58:20Z")

</div>

authorNariã§ã™ã€‚ å‰ã«ä½œæˆã—ã¦ã„ãŸLazySweepã‚’ã€ç¾åœ¨ã®Heapæ§‹é€ ã«åˆã†ã‚ˆã†ã«ä¿®æ­£ã—ã¾ã—ãŸã€‚ ã¨ã„ã£ã¦ã‚‚ã»ã¼æ›¸ãç›´ã—ã¦ã—ã¾ã„ã¾ã—ãŸãŒã€‚ æ€§èƒ½ã¯æ‰‹æŒã¡ã®ãƒ™ãƒ³ãƒãƒžãƒ¼ã‚…

---

## [eRubyCon 2008](https://www.ruby-forum.com/t/erubycon-2008/142242)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 0\
**Last updated:** [July 5, 2008, 5:02am UTC](https://www.ruby-forum.com/t/erubycon-2008/142242 "2008-07-05T05:02:25Z")

</div>

Just wanted to make a quick plug for http://www.erubycon.com/ coming up the middle of August in Columbus, OH. It’s a conference on using Ruby in the Enterprise (which I think IronRuby is well situated to be a major …

---

## [Failed to map segment from shared object: Operation not permitted](https://www.ruby-forum.com/t/failed-to-map-segment-from-shared-object-operation-not-permitted/142176)

<div class="topic-metadata">

**Author:** [@tristincolby](https://www.ruby-forum.com/u/tristincolby)\
**Replies:** 4\
**Last updated:** [July 4, 2008, 8:59pm UTC](https://www.ruby-forum.com/t/failed-to-map-segment-from-shared-object-operation-not-permitted/142176 "2008-07-04T20:59:42Z")

</div>

I’m writing a ruby wrapper for a proprietary api. I compiled it, but when I require it in irb i get the following error. I’m stumped as to why its throwing this error. Anyone help? irb(main):001:0\> require ‘metadat…

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

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