# Ruby

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

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

---

## [Sqlite3/activer record permissions problem (no ror)](https://www.ruby-forum.com/t/sqlite3-activer-record-permissions-problem-no-ror/159594)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 4\
**Last updated:** [February 8, 2009, 8:44am UTC](https://www.ruby-forum.com/t/sqlite3-activer-record-permissions-problem-no-ror/159594 "2009-02-08T08:44:21Z")

</div>

I’m using Ruby and ActiveRecord in a web environment (no ror). The database is sqlite3. sqlite3-ruby is installed. I can add records to the database from Ruby scripts using ActiveRecord just fine provided that I am …

---

## [Openssl-nonblock 0.1.0](https://www.ruby-forum.com/t/openssl-nonblock-0-1-0/159696)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 3\
**Last updated:** [February 8, 2009, 6:55am UTC](https://www.ruby-forum.com/t/openssl-nonblock-0-1-0/159696 "2009-02-08T06:55:02Z")

</div>

Hi folks, I’ve seen various requests for non-blocking OpenSSL support. As a maintainer of a non-blocking event library this was crucial for the stuff I was doing. I developed a C extension which uses some pretty cr…

---

## [Tagz-4.6.0](https://www.ruby-forum.com/t/tagz-4-6-0/159660)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 1\
**Last updated:** [February 8, 2009, 4:18am UTC](https://www.ruby-forum.com/t/tagz-4-6-0/159660 "2009-02-08T04:18:58Z")

</div>

NAME tagz.rb SYNOPSIS require Tagz include Tagz.globally a\_(:href =\> “/foo”){ “bar” } #=\> bar DESCRIPTION tagz.rb is generates html, xml, or any sgml variant like a small ninja running across the backs of a he…

---

## [Code Review: StackTraces1](https://www.ruby-forum.com/t/code-review-stacktraces1/159689)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [February 8, 2009, 3:28am UTC](https://www.ruby-forum.com/t/code-review-stacktraces1/159689 "2009-02-08T03:28:04Z")

</div>

tfpt review “/shelveset:StackTraces1;REDMOND\\tomat” Removes dependency on stub special method name in Ruby stack traces. Tomas

---

## [Injecting a jirb process into a running java process](https://www.ruby-forum.com/t/injecting-a-jirb-process-into-a-running-java-process/159734)

<div class="topic-metadata">

**Author:** [@rubenfonseca](https://www.ruby-forum.com/u/rubenfonseca)\
**Replies:** 2\
**Last updated:** [February 8, 2009, 1:07am UTC](https://www.ruby-forum.com/t/injecting-a-jirb-process-into-a-running-java-process/159734 "2009-02-08T01:07:10Z")

</div>

hi @all! I was wondering, is it possible to inject a jirb shell into a running Java process, so we could acess the runtime instances and mess around? Thank you Ruben To unsubscribe from this list, please visit: ht…

---

## [Barby and more than 72 ppi](https://www.ruby-forum.com/t/barby-and-more-than-72-ppi/159679)

<div class="topic-metadata">

**Author:** [@lis2](https://www.ruby-forum.com/u/lis2)\
**Replies:** 1\
**Last updated:** [February 8, 2009, 12:45am UTC](https://www.ruby-forum.com/t/barby-and-more-than-72-ppi/159679 "2009-02-08T00:45:32Z")

</div>

Hello. I need your help. I use barby to generate barcods (its great libary). However every png that generate is 72 ppi. On the screen that looks beautiful but if i want to print than i need 150 or 300 ppi. Could you te…

---

## [Hexagonal Grid Game Board (#190)](https://www.ruby-forum.com/t/hexagonal-grid-game-board-190/159037)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 6\
**Last updated:** [February 8, 2009, 12:43am UTC](https://www.ruby-forum.com/t/hexagonal-grid-game-board-190/159037 "2009-02-08T00:43:11Z")

</div>

Summary of quiz #189 coming in a day or two. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz un…

---

## [\[help\] Ruby execution on XP machine: Access is denied](https://www.ruby-forum.com/t/help-ruby-execution-on-xp-machine-access-is-denied/159671)

<div class="topic-metadata">

**Author:** [@mamoo](https://www.ruby-forum.com/u/mamoo)\
**Replies:** 2\
**Last updated:** [February 7, 2009, 10:10pm UTC](https://www.ruby-forum.com/t/help-ruby-execution-on-xp-machine-access-is-denied/159671 "2009-02-07T22:10:16Z")

</div>

Hello everybody, I need some help on a strange error I’m getting when I try to execute ruby from command line. I recently reinstalled everything on my HP laptop (XP sp3), and I’ve also reinstalled ruby (1.8.6 with on…

---

## [~/.gem ambiguity](https://www.ruby-forum.com/t/gem-ambiguity/159730)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 3\
**Last updated:** [February 7, 2009, 8:43pm UTC](https://www.ruby-forum.com/t/gem-ambiguity/159730 "2009-02-07T20:43:31Z")

</div>

Seems to me that defaulting to installing gems in ~/.gem could cause some ambiguity within ~/.gem/bin if you’re using multiple versions of ruby simultaneously. ex: ruby187 puts its ‘mongrel’ executable there ruby19 …

---

## [Special Hash Constructors](https://www.ruby-forum.com/t/special-hash-constructors/159649)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 14\
**Last updated:** [February 7, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/special-hash-constructors/159649 "2009-02-07T19:35:50Z")

</div>

Hi there, we frequently do ha = Hash.new {|h,k| h\[k\] = \[\]} so we can later do ha\[any\_key\] \<\< anything Since the idiom is so common, what does everybody think of putting it into the standard library: def Hash.with\_…

---

## [\[ANN\] Radiant 0.7.0 - Intaglio Release](https://www.ruby-forum.com/t/ann-radiant-0-7-0-intaglio-release/159736)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 7:20pm UTC](https://www.ruby-forum.com/t/ann-radiant-0-7-0-intaglio-release/159736 "2009-02-07T19:20:18Z")

</div>

Looks like it’s time for another release of Radiant: http://radiantcms.org/download/ Radiant 0.7.0 “Intaglio” culminates six months of refactoring and bug- fixing by a dedicated team of contributors. The major milesto…

---

## [Jobs listings, work abroad, study abroad and jobs in your area](https://www.ruby-forum.com/t/jobs-listings-work-abroad-study-abroad-and-jobs-in-your-area/159732)

<div class="topic-metadata">

**Author:** [@nicky\_boy](https://www.ruby-forum.com/u/nicky_boy)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 7:10pm UTC](https://www.ruby-forum.com/t/jobs-listings-work-abroad-study-abroad-and-jobs-in-your-area/159732 "2009-02-07T19:10:34Z")

</div>

Jobs listings, work abroad, study abroad and jobs in your area. download songs, ringtones, watch online worldwide tv channels, fotos, videos and LIVE CRICKET MATCHES FOR FREE. free immigrants visas guide. … http://t…

---

## [How do I get the destination IP of a received UDP packet?](https://www.ruby-forum.com/t/how-do-i-get-the-destination-ip-of-a-received-udp-packet/159719)

<div class="topic-metadata">

**Author:** [@gavinyap](https://www.ruby-forum.com/u/gavinyap)\
**Replies:** 3\
**Last updated:** [February 7, 2009, 6:16pm UTC](https://www.ruby-forum.com/t/how-do-i-get-the-destination-ip-of-a-received-udp-packet/159719 "2009-02-07T18:16:36Z")

</div>

Hi There, I need to write a server which is able to identify client by destinations. My machine is listening to “0.0.0.0”, any IP addrs configured to it. Take for instance, the machine is configured with “192.168.1.1…

---

## [Integration/Antidifferentiation Program](https://www.ruby-forum.com/t/integration-antidifferentiation-program/58997)

<div class="topic-metadata">

**Author:** [@SleepJunkie](https://www.ruby-forum.com/u/SleepJunkie)\
**Replies:** 27\
**Last updated:** [February 7, 2009, 5:07pm UTC](https://www.ruby-forum.com/t/integration-antidifferentiation-program/58997 "2009-02-07T17:07:22Z")

</div>

I’d like to write a program to integrate derivatives to save time on calc homework and get extra credit in the class. I’m not completely sure where to start. I’m just looking for some tips from others who understand w…

---

## [Making object methods available externally](https://www.ruby-forum.com/t/making-object-methods-available-externally/159464)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 13\
**Last updated:** [February 7, 2009, 3:44pm UTC](https://www.ruby-forum.com/t/making-object-methods-available-externally/159464 "2009-02-07T15:44:01Z")

</div>

Hi all, I’m having trouble figuring out a way of creating a method within a class that’s available not only to the other object methods (object instances), but also externally, as if I were to use ‘self.method’. Belo…

---

## [Automating VS](https://www.ruby-forum.com/t/automating-vs/159558)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 5\
**Last updated:** [February 7, 2009, 2:33pm UTC](https://www.ruby-forum.com/t/automating-vs/159558 "2009-02-07T14:33:08Z")

</div>

Hi A while ago I remeber seeing a screencast where John L. shows how to use ironruby to automate visual studio. I can’t find the screencast anymore but I would be interested to know which API was used. Was that jus…

---

## [1.9.1 - some gems not added to LOAD\_PATH?](https://www.ruby-forum.com/t/1-9-1-some-gems-not-added-to-load-path/159716)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 2:22pm UTC](https://www.ruby-forum.com/t/1-9-1-some-gems-not-added-to-load-path/159716 "2009-02-07T14:22:01Z")

</div>

Hello, I’d like to be educated a bit on how rubygems in 1.9-p0 works together with $LOAD\_PATH, because it it seems slightly inconsistent to me, for instance mocha 0.9.5 is installed, but not in my load path: $ gem1…

---

## [Array#to\_h](https://www.ruby-forum.com/t/array-to-h/159117)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 18\
**Last updated:** [February 7, 2009, 1:57pm UTC](https://www.ruby-forum.com/t/array-to-h/159117 "2009-02-07T13:57:57Z")

</div>

Not that I would find it useful at all, but is there is a Hash#to\_a should there not be an Array#to\_h? Thanks! -=r

---

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

<div class="topic-metadata">

**Author:** [@Alper\_KSSSSrSSSSm](https://www.ruby-forum.com/u/Alper_KSSSSrSSSSm)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 1:26pm UTC](https://www.ruby-forum.com/t/no-subject/159709 "2009-02-07T13:26:16Z")

</div>

unsubscribe \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Yahoo! TÃ¼rkiye aÃ§Ä±ldÄ±! http://yahoo.com.tr Ä°nternet Ã¼zerindeki en iyi iÃ§eriÄŸi Yahoo! TÃ¼rkiye sizlere sunuyor!

---

## [Do I need "ruby-libs" as a prerequisite to install/run ruby? what is "ruby-libs" exactly?](https://www.ruby-forum.com/t/do-i-need-ruby-libs-as-a-prerequisite-to-install-run-ruby-what-is-ruby-libs-exactly/159704)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [February 7, 2009, 12:14pm UTC](https://www.ruby-forum.com/t/do-i-need-ruby-libs-as-a-prerequisite-to-install-run-ruby-what-is-ruby-libs-exactly/159704 "2009-02-07T12:14:07Z")

</div>

Hi, If I’m downloading the ruby source to compile on my Redhat linux box, do I need “ruby-libs” as a prerequisite? I’ve seen it referred to but not sure what it is? If it does exist and I need it, where would I do…

---

## [How can an I use nonblocking I/O with openssl?](https://www.ruby-forum.com/t/how-can-an-i-use-nonblocking-i-o-with-openssl/159661)

<div class="topic-metadata">

**Author:** [@yaxm](https://www.ruby-forum.com/u/yaxm)\
**Replies:** 4\
**Last updated:** [February 7, 2009, 7:53am UTC](https://www.ruby-forum.com/t/how-can-an-i-use-nonblocking-i-o-with-openssl/159661 "2009-02-07T07:53:38Z")

</div>

hello, I am using ruby’s imap library to connect to gmail via ssl. But every now and then, my thread goes into sleep and never wakes up. I suspect that the thread is waiting for I/O for reading. how can I make openss…

---

## [Regex \\s == \\n?](https://www.ruby-forum.com/t/regex-s-n/159622)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 12\
**Last updated:** [February 7, 2009, 1:42am UTC](https://www.ruby-forum.com/t/regex-s-n/159622 "2009-02-07T01:42:58Z")

</div>

I’m trying to remove extra spaces from a long string which has some EOLs, using regex. It’s not working. Here’s a simple demo: irb(main):004:0\> a="\\n abc\\n a a a" =\> “\\n abc\\n a a a” irb(main):005:0\> a.gsub(/…

---

## [Is there any other way to learn other than books?](https://www.ruby-forum.com/t/is-there-any-other-way-to-learn-other-than-books/159575)

<div class="topic-metadata">

**Author:** [@jdunneuk](https://www.ruby-forum.com/u/jdunneuk)\
**Replies:** 5\
**Last updated:** [February 7, 2009, 12:49am UTC](https://www.ruby-forum.com/t/is-there-any-other-way-to-learn-other-than-books/159575 "2009-02-07T00:49:42Z")

</div>

Hello, I was wondering if there is any other alternative to learning a programming language in particular Ruby/Ruby on Rails, other than reading books? Like something more interactive, that focuses more on the practi…

---

## [Is this an issue for a Ruby installation process (warning: assignment discards qualifiers from poin](https://www.ruby-forum.com/t/is-this-an-issue-for-a-ruby-installation-process-warning-assignment-discards-qualifiers-from-poin/159670)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [February 6, 2009, 11:39pm UTC](https://www.ruby-forum.com/t/is-this-an-issue-for-a-ruby-installation-process-warning-assignment-discards-qualifiers-from-poin/159670 "2009-02-06T23:39:26Z")

</div>

Hi, I’m on RedHat linux and installing Ruby but do get several warnings (see below). Is this OK? \[root@home ruby-1.8.7-p72\]# make gcc -g -O2 -DRUBY\_EXPORT -D\_GNU\_SOURCE=1 -I. -I. -c array.c gcc -g -O2 -DR…

---

## [RubyGems](https://www.ruby-forum.com/t/rubygems/159673)

<div class="topic-metadata">

**Author:** [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Replies:** 1\
**Last updated:** [February 6, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/rubygems/159673 "2009-02-06T23:35:55Z")

</div>

I recently upgraded to Ruby 1.9.1 and I have noticed quite a few blog posts regarding gems being made compatable with 1.9.1. But when I run either gem outdated or sudo gem update I get nothing. What’s going on here?

---

## [Code Review: ThreadSafetyFix](https://www.ruby-forum.com/t/code-review-threadsafetyfix/159674)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 10:42pm UTC](https://www.ruby-forum.com/t/code-review-threadsafetyfix/159674 "2009-02-06T22:42:36Z")

</div>

tfpt review “/shelveset:ThreadSafetyFix;REDMOND\\tomat” Removes thread-unsafe assertion. Tomas

---

## [Can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError))](https://www.ruby-forum.com/t/can-not-install-rubygems-uninitialized-constant-yaml-defaultloader-nameerror/159672)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [February 6, 2009, 10:12pm UTC](https://www.ruby-forum.com/t/can-not-install-rubygems-uninitialized-constant-yaml-defaultloader-nameerror/159672 "2009-02-06T22:12:43Z")

</div>

Hi, I think I’ve upset my ruby/gems on my Redhat Linux box (I did an apt-get install ruby-libs). So I’ve installed again Ruby from source (did get some warnings - see previous post), and then tried to install RubyGe…

---

## [Eurionize - something PDF::Writer and PostScript libs might like](https://www.ruby-forum.com/t/eurionize-something-pdf-writer-and-postscript-libs-might-like/159668)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/eurionize-something-pdf-writer-and-postscript-libs-might-like/159668 "2009-02-06T20:52:56Z")

</div>

I came across this bit of Perl at: http://wildsparx.com/eurionize/ In short it marks a postscript doc so that it can’t be copied by most color copiers. Thought someone might want to port it for PDF::Writer or whateve…

---

## [Another classpath problem!](https://www.ruby-forum.com/t/another-classpath-problem/159457)

<div class="topic-metadata">

**Author:** [@Arnaud\_G](https://www.ruby-forum.com/u/Arnaud_G)\
**Replies:** 5\
**Last updated:** [February 6, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/another-classpath-problem/159457 "2009-02-06T20:48:49Z")

</div>

Hello list, I don’t know why but I still have a class not found since I do: Dir\[“lib/\*\*/\*.jar”\].each do |jar| require jar end I also try with the full path since in the jruby cookbook it seems that jruby use the wo…

---

## [Unlimited Wii Downloads! Wii Games, Wii Music & Much More! http://wii.bloggerhelp.cn/](https://www.ruby-forum.com/t/unlimited-wii-downloads-wii-games-wii-music-much-more-http-wii-bloggerhelp-cn/159666)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/unlimited-wii-downloads-wii-games-wii-music-much-more-http-wii-bloggerhelp-cn/159666 "2009-02-06T20:45:53Z")

</div>

Unlimited Wii Downloads! Wii Games, Wii Music & Much More! http://wii.bloggerhelp.cn/

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

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