# Ruby

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

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

---

## [Exhaustive tests for struct.c, sprintf.c and math.c](https://www.ruby-forum.com/t/exhaustive-tests-for-struct-c-sprintf-c-and-math-c/126826)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [January 23, 2008, 5:01am UTC](https://www.ruby-forum.com/t/exhaustive-tests-for-struct-c-sprintf-c-and-math-c/126826 "2008-01-23T05:01:39Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B test\_struct.rb e$B$He(B test\_sprintf.rb e$B$He(B test\_math.rb e$B$K$b%F%9%H$rDI2Ce(B e$B$7$^$7$?!#e(Bgcov e$B$G$N%+%P%l%C%8$,0J2\<$N$h$&$K\>e$,$j$^$9!#e(B struct.c : 55.87% -\> 94.60% sprintf.c …

---

## [Comment about sprintf %u](https://www.ruby-forum.com/t/comment-about-sprintf-u/126816)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [January 23, 2008, 4:50am UTC](https://www.ruby-forum.com/t/comment-about-sprintf-u/126816 "2008-01-23T04:50:33Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B r12809 e$B$+$ie(B sprintf e$B$Ne(B %u e$B$,e(B %d e$B$HF1$80UL#$K$J$C$?$h$&$G$9$,!"e(B e$B%3%a%s%H$,$=$l$KDI=\>$7$F$$$J$$$h$&$G$9!#e(B Index: sprintf.c — sprintf.c (revision 15174) +++ sprintf…

---

## [Fronzen string cannot unpack("p")](https://www.ruby-forum.com/t/fronzen-string-cannot-unpack-p/126840)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [January 23, 2008, 4:35am UTC](https://www.ruby-forum.com/t/fronzen-string-cannot-unpack-p/126840 "2008-01-23T04:35:20Z")

</div>

e$B$J$+$@$G$9!#e(B 1.9e$B$G!"e(Bpack(“p”)e$B$7$F$G$-$?e(BStringe$B$re(Bfreezee$B$9$k$H!"e(Bunpacke$B$G$-$J$/$Je(B e$B$j$^$9!#e(B1.8e$B$G$O$G$-$^$9!#e(B $ ruby19 -v -e ‘\[""\].pack(“p”).freeze.unpack(“p”)’ ruby 1.9.0 (2…

---

## [ActiveRecord help](https://www.ruby-forum.com/t/activerecord-help/126889)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 0\
**Last updated:** [January 23, 2008, 3:48am UTC](https://www.ruby-forum.com/t/activerecord-help/126889 "2008-01-23T03:48:18Z")

</div>

Im a ruby newb trying to learn how pull snmp data from devices and put into database. I am testing with two paticular snmp entities: ifindex and ifdescr and put the values from the poll into thier respective colums/r…

---

## [Startup delayer](https://www.ruby-forum.com/t/startup-delayer/126876)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [January 23, 2008, 2:25am UTC](https://www.ruby-forum.com/t/startup-delayer/126876 "2008-01-23T02:25:52Z")

</div>

hello I run few ruby programs from windows startup. sometimes, it looks very slow becoz xp is trying to startup a few programs. is there a way i can delay the startup so that these ruby prog start after xp is fully …

---

## [Alternative to WebUnit](https://www.ruby-forum.com/t/alternative-to-webunit/126593)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 3\
**Last updated:** [January 23, 2008, 1:25am UTC](https://www.ruby-forum.com/t/alternative-to-webunit/126593 "2008-01-23T01:25:51Z")

</div>

I’m writing a screen scraping application and looking for Ruby equivalents of HttpUnit or HttpClient; something that simulates a web browser and maintains cookies. I’ve taken a look at WebUnit, but it seems to be po…

---

## [Hey, how do you make a regular expression visible?](https://www.ruby-forum.com/t/hey-how-do-you-make-a-regular-expression-visible/126873)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 2\
**Last updated:** [January 23, 2008, 1:14am UTC](https://www.ruby-forum.com/t/hey-how-do-you-make-a-regular-expression-visible/126873 "2008-01-23T01:14:44Z")

</div>

I’ve got all these strings in this object holding regular expressions, and I want to report on them accurately, but all my backslashes are disappearing. Any suggestions?

---

## [Linq etc](https://www.ruby-forum.com/t/linq-etc/126584)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 7\
**Last updated:** [January 22, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/linq-etc/126584 "2008-01-22T22:55:51Z")

</div>

Hi What are the plans regarding Linq support for IronRuby. In the presentations I’ve seen you were using vbx to perform linq stuff in Silverlight. Is that only applicable to the from … where … select syntax and we c…

---

## [Question about hsh.each\_pair](https://www.ruby-forum.com/t/question-about-hsh-each-pair/126863)

<div class="topic-metadata">

**Author:** [@silvertab](https://www.ruby-forum.com/u/silvertab)\
**Replies:** 4\
**Last updated:** [January 22, 2008, 10:21pm UTC](https://www.ruby-forum.com/t/question-about-hsh-each-pair/126863 "2008-01-22T22:21:42Z")

</div>

I was wondering if the hash.each\_pair function messes with the order of my hash? I am using it to parse some text and replace html entities and apparently it changes the order of my hash before iterating each pairs… …

---

## [Reminder: Workshop on Self-sustaining Systems (S3) 2008](https://www.ruby-forum.com/t/reminder-workshop-on-self-sustaining-systems-s3-2008/126854)

<div class="topic-metadata">

**Author:** [@Gregor\_Schmidt](https://www.ruby-forum.com/u/Gregor_Schmidt)\
**Replies:** 0\
**Last updated:** [January 22, 2008, 8:30pm UTC](https://www.ruby-forum.com/t/reminder-workshop-on-self-sustaining-systems-s3-2008/126854 "2008-01-22T20:30:25Z")

</div>

Hello, This is just a short reminder. The deadline ends in a few weeks. I know, this is slightly uncommmon in the Ruby community, but there are so many Ruby implementations out there and I am sure, somebody is intere…

---

## [SVN Revision 73](https://www.ruby-forum.com/t/svn-revision-73/126784)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 2\
**Last updated:** [January 22, 2008, 6:21pm UTC](https://www.ruby-forum.com/t/svn-revision-73/126784 "2008-01-22T18:21:02Z")

</div>

I updated SVN to include Peter’s numeric and Terence’s socket patches. Please let me know if I missed any of your changes. Changes include: Many improvements to numeric classes (Bignum, Fixnum, Float, Integer, Preci…

---

## [Gem server start via launchd](https://www.ruby-forum.com/t/gem-server-start-via-launchd/126841)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [January 22, 2008, 6:10pm UTC](https://www.ruby-forum.com/t/gem-server-start-via-launchd/126841 "2008-01-22T18:10:54Z")

</div>

I put this in /Library/LaunchDaemons It will start the Ruby Gem documentation server at boot. I don’t know how to get it to start when the first request comes in. The gems that ships with 10.5 is too old. So, update…

---

## [\[ANN\] Rassmalog 10.1.0](https://www.ruby-forum.com/t/ann-rassmalog-10-1-0/126777)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 1\
**Last updated:** [January 22, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/ann-rassmalog-10-1-0/126777 "2008-01-22T17:50:57Z")

</div>

Rassmalog A static blog engine based on YAML, eRuby, and Rake. It transforms blog entries written in Textile or other formatting systems into valid XHTML files that you can view on your computer or …

---

## [Isatty() and IO.tty?](https://www.ruby-forum.com/t/isatty-and-io-tty/126838)

<div class="topic-metadata">

**Author:** [@backz](https://www.ruby-forum.com/u/backz)\
**Replies:** 0\
**Last updated:** [January 22, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/isatty-and-io-tty/126838 "2008-01-22T17:50:57Z")

</div>

In Ruby or via a C extension, how do I call a C program so that isatty(stdout) returns true? I don’t want to route it through another shell. Daniel Brumbaugh K.

---

## [Swig: how to convert char\* to Array?](https://www.ruby-forum.com/t/swig-how-to-convert-char-to-array/126735)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 1\
**Last updated:** [January 22, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/swig-how-to-convert-char-to-array/126735 "2008-01-22T17:24:53Z")

</div>

I have a C++ library that I’m trying to access in Ruby. One of the C++ functions returns a char\* and I would like this to be converted to an Array (since the char\* may have 0x00 in it, which terminate a Ruby string …

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229168)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [January 22, 2008, 5:16pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229168 "2008-01-22T17:16:39Z")

</div>

Begin forwarded message:

---

## [Thin 0.5.3 Purple Yogurt release](https://www.ruby-forum.com/t/thin-0-5-3-purple-yogurt-release/126492)

<div class="topic-metadata">

**Author:** [@macournoyer](https://www.ruby-forum.com/u/macournoyer)\
**Replies:** 14\
**Last updated:** [January 22, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/thin-0-5-3-purple-yogurt-release/126492 "2008-01-22T15:44:17Z")

</div>

Hey all, Version 0.5.3 (codename Purple Yogurt) of the fastest Ruby server is out! Thin is a Ruby web server that glues together 3 of the best Ruby libraries in web history: the Mongrel parser: the root of Mongrel …

---

## [Hash two dimensions](https://www.ruby-forum.com/t/hash-two-dimensions/126807)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 4\
**Last updated:** [January 22, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/hash-two-dimensions/126807 "2008-01-22T15:28:54Z")

</div>

Hi Everybody! I’m doing this: $Config=Hash.new(Hash.new()) $Config\[“UNO”\]\[“urlX”\]=“beep/UNO/playdoit.do” $Config\[“UNO”\]\[“urlY”\]=“beep/UNO/dontplayPP.do” $Config\[“UNO”\]\[“urlZ”\]=“beep/UNO/dontplay34jo.do” $Config\[“DO…

---

## [Exhaustive test for bignum.c](https://www.ruby-forum.com/t/exhaustive-test-for-bignum-c/126703)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 3\
**Last updated:** [January 22, 2008, 2:36pm UTC](https://www.ruby-forum.com/t/exhaustive-test-for-bignum-c/126703 "2008-01-22T14:36:59Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B test\_bignum.rb e$B$K%F%9%H$rDI2C$7$FLVMe@-$r\>e$2$F$\_$^$7$?!#e(B gcov e$B$G$Ne(B bignum.c e$B$N%+%P%l%C%8$,e(B 50% e$B$+$ie(B 90% e$B$K$J$j$^$9!#e(B e$B$I$&$G$7$g$&$+!#e(B $ ./ruby test/ruby/te…

---

## [How to get userid using Net::LDAP](https://www.ruby-forum.com/t/how-to-get-userid-using-net-ldap/126701)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 3\
**Last updated:** [January 22, 2008, 2:22pm UTC](https://www.ruby-forum.com/t/how-to-get-userid-using-net-ldap/126701 "2008-01-22T14:22:52Z")

</div>

Hi all, I am able to connect to ldap server through my ror application and now i wanna fetch more information about user using LDAP. Actually in my application i am authenticating through username and password now i …

---

## [NASA summer students -- app due Feb 1st](https://www.ruby-forum.com/t/nasa-summer-students-app-due-feb-1st/126806)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 0\
**Last updated:** [January 22, 2008, 1:41pm UTC](https://www.ruby-forum.com/t/nasa-summer-students-app-due-feb-1st/126806 "2008-01-22T13:41:06Z")

</div>

Hi, I’m looking for some rising college juniors, seniors, and/or graduate students to help me glue some of our simulation codes together with RESTful interfaces this summer and/or fall. If all goes well, you’ll be wo…

---

## [Smart client was not launching from client machine](https://www.ruby-forum.com/t/smart-client-was-not-launching-from-client-machine/126805)

<div class="topic-metadata">

**Author:** [@Kanth](https://www.ruby-forum.com/u/Kanth)\
**Replies:** 0\
**Last updated:** [January 22, 2008, 1:00pm UTC](https://www.ruby-forum.com/t/smart-client-was-not-launching-from-client-machine/126805 "2008-01-22T13:00:47Z")

</div>

Hi all, When I try to launch the smart client from web page on client machine, It was not getting launched and not showing any exception. But It was downloaded on client machine. When I double click on .exe of smart …

---

## [Re: Welcome to our (ruby-talk ML) You are added automatically](https://www.ruby-forum.com/t/re-welcome-to-our-ruby-talk-ml-you-are-added-automatically/126800)

<div class="topic-metadata">

**Author:** [@dhanukanaveen](https://www.ruby-forum.com/u/dhanukanaveen)\
**Replies:** 0\
**Last updated:** [January 22, 2008, 11:57am UTC](https://www.ruby-forum.com/t/re-welcome-to-our-ruby-talk-ml-you-are-added-automatically/126800 "2008-01-22T11:57:48Z")

</div>

Please remove me from this mailing list. Thanks & Regards Naveen Prakash

---

## [Configuring Ruby with Apache](https://www.ruby-forum.com/t/configuring-ruby-with-apache/126797)

<div class="topic-metadata">

**Author:** [@dhanukanaveen](https://www.ruby-forum.com/u/dhanukanaveen)\
**Replies:** 1\
**Last updated:** [January 22, 2008, 11:00am UTC](https://www.ruby-forum.com/t/configuring-ruby-with-apache/126797 "2008-01-22T11:00:44Z")

</div>

Hi I dont know how to configure Ruby(while installing) with Apache server. In PHP while we install we will give the Apache configuration path and we keep our .php source files in htdocs folder so that we can access …

---

## [Sleep not adding up](https://www.ruby-forum.com/t/sleep-not-adding-up/126779)

<div class="topic-metadata">

**Author:** [@jbell38](https://www.ruby-forum.com/u/jbell38)\
**Replies:** 4\
**Last updated:** [January 22, 2008, 5:58am UTC](https://www.ruby-forum.com/t/sleep-not-adding-up/126779 "2008-01-22T05:58:06Z")

</div>

I was hoping that the following code would print out hi with one second gaps. However it waits 5 seconds and then prints out hi 5 times. def test\_puts puts ‘hi’ end def test\_sleep sleep 1 test\_puts end 5.downto…

---

## [Vancouver RubyCamp2008 (Jan/26) - Last Call for Speakers - Upcoming Talk Highlights](https://www.ruby-forum.com/t/vancouver-rubycamp2008-jan-26-last-call-for-speakers-upcoming-talk-highlights/126780)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [January 22, 2008, 5:39am UTC](https://www.ruby-forum.com/t/vancouver-rubycamp2008-jan-26-last-call-for-speakers-upcoming-talk-highlights/126780 "2008-01-22T05:39:24Z")

</div>

Hello, Just a reminder that we still accept talks for Vancouver’s 1st RubyCamp 20008 - a one-day (Un)conference from 9 to 5 - this Saturday, January 26th in British Columbia in Canada. Let us know as soon as possible…

---

## [Default encoding for Marshal.load](https://www.ruby-forum.com/t/default-encoding-for-marshal-load/126420)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 8\
**Last updated:** [January 22, 2008, 5:10am UTC](https://www.ruby-forum.com/t/default-encoding-for-marshal-load/126420 "2008-01-22T05:10:11Z")

</div>

e$BA0ED$G$9!#e(B String#dumpe$B$NOC$r8+$F$U$H5$$K$J$C$?$N$G$9$,!"e(B1.8e$B$Ge(BMarshal.dumpe$B$7$?%G!\<%?$re(B 1.9e$B$Ge(BMarshal.loade$B$9$k$He(Bencodinge$B$,e(BASCII-8BITe$B$K$J$k$N$O0U?^E\*$G$7$g$&$+e(B? $ ruby1.8 -e…

---

## [Start a program, get it's output, then kill it. while "multithreading"](https://www.ruby-forum.com/t/start-a-program-get-its-output-then-kill-it-while-multithreading/126456)

<div class="topic-metadata">

**Author:** [@Deadolus](https://www.ruby-forum.com/u/Deadolus)\
**Replies:** 6\
**Last updated:** [January 22, 2008, 4:36am UTC](https://www.ruby-forum.com/t/start-a-program-get-its-output-then-kill-it-while-multithreading/126456 "2008-01-22T04:36:53Z")

</div>

Hi everybody, i’d like to program a gui for iperf (Best Open Source Mac Software 2023 iperf), it should run under windows And \*NIX and I’m using fox as my gui toolkit, I’ll use some extra calculations to get the param…

---

## [Rss-client-2.0.9](https://www.ruby-forum.com/t/rss-client-2-0-9/126682)

<div class="topic-metadata">

**Author:** [@Stoyan\_Z](https://www.ruby-forum.com/u/Stoyan_Z)\
**Replies:** 2\
**Last updated:** [January 22, 2008, 4:21am UTC](https://www.ruby-forum.com/t/rss-client-2-0-9/126682 "2008-01-22T04:21:03Z")

</div>

ABOUT Fetching and parsing RSS feeds with easy. Ruby library (mixin) for adding RSS feeds download and parsing functionality. The RSS fetch command line utility, using the library is also included. DEPENDS feed-nor…

---

## [Php under fastcgi](https://www.ruby-forum.com/t/php-under-fastcgi/126684)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [January 22, 2008, 1:13am UTC](https://www.ruby-forum.com/t/php-under-fastcgi/126684 "2008-01-22T01:13:20Z")

</div>

Problem: I need to run regular php scripts under FastCGI, saving on the overhead of fopen’ing and reading in the contents before executing each time. Therefore, in theory I guess you’d put a FastCgiServer directive in…

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

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