231470-232473

231276-232952 subjects 231691-233115

^ [ANN] Ruby/Informix 0.5.0 released
231470 [gerardo.sant] Ruby/Informix is a Ruby extension for connecting to IBM Informix

^ where does song.name come from?
231471 [chen_li3 yah] class Songlist
+ 231485 [m_goldberg a] Very much earlier in the book (p. 26 in the PDF version) the class
+ 231489 [gavin refine] class Song
  231519 [chen_li3 yah] Thanks.
  231538 [gavin.kistne] Perhaps if you start at the beginning of the book and type out the

^ Newer versions of Hpricot issue a warning.
231476 [renard nc.rr] I have written a script that requires 'hpricot'. I use mswin32 versions
231492 [why ruby-lan] Okay, there is a fix in Subversion.  Thankyou!

^ Need help massaging some strings
231484 [taylorstrait] As a Rails developer, I've been learning Ruby on a need-to-know basis.
+ 231487 [taylorstrait] irb(main):009:0> cleanup("alabama")
+ 231488 [drbrain segm] This is your clue.  You didn't define the alabama variable or method.
+ 231495 [w_a_x_man ya] def cleanup(state)
  231510 [paulo.koch g] I think what the original author of this message was trying to say

^ emacs mode for eruby/.rhtml (indent problem with do blocks)
231493 [joe lavajoe.] I've done some searching to find an emacs configuration that will allow

^ Strip is not stripping trailing whitespace
231494 [taylorstrait] Adelanto  <-
+ 231497 [w_a_x_man ya] Perhaps there are some control characters at the lines' ends.
| 231500 [taylorstrait] def trim(state)
| 231501 [taylorstrait] Thanks, Morton.  That was the key.  I just appended two .chomp methods
| 231503 [w_a_x_man ya] It couldn't have.
| 231505 [taylorstrait] This is why I shouldn't code at 3:30am!  I had used chop instead, which
| + 231506 [drbrain segm] String#gsub
| | 231528 [smgspices ao] line.chop will remove one of the "\240"s. line.chop.chop.chop will
| | 231545 [kabigon gmai] line = line.chop.chop.chop would be better. In general, you shouldn't
| + 231507 [taylorstrait] Time for a break.  The answer is: delete(0240.chr)
| + 231508 [angus quovad] [Taylor Strait <taylorstrait@gmail.com>, 2006-12-28 09.31 CET]
| + 231509 [w_a_x_man ya] irb(main):016:0> "foo\240\250 \n".strip.
|   231515 [shortcutter ] irb(main):007:0> s="foo\240\250 \n"
+ 231499 [m_goldberg a] Strip is working as it should. Your input lines don't end is spaces,

^ [ANN] Ruby-VPI 13.0.0
231498 [ snk gna.org] Ruby-VPI is a Ruby interface to Verilog VPI. It lets you create

^ range index
231516 [josselin wan] is there any dry way to get the index of an element in a range
231520 [dblack wobbl] ("A".."Z").each_with_index do |alpha,i|
231525 [josselin wan] thanks a lot.. another part of my book to read before year end ;-)))
231555 [shortcutter ] Here's another one

^ Problems with fcgi/ruby - "incomplete headers"
231517 [tiagocruz ig] I'm newbie on ruby world, and I hope understood this program soon ;)
231523 [david vallne] Hmm. Are you sure this is a problem with FCGI itself? The error looks
231541 [tiagocruz ig] Really. But this application was working hosted on dreamhost now... and

^ Syntax for db count query needed
231522 [kjawaharbabu] can any one tell me the controller syntax for db record count?
231527 [khaines enig] count = ksdbh.count(:Tablename) {|r| r.user_id == 7}
231529 [kjawaharbabu] Thanks kirk Haines!
231530 [khaines enig] That works for you?  What ORM are you using?  That was not AR syntax, but
231636 [kjawaharbabu] NO...i used below method and it works.

^ Thanks!
231531 [Chris.Meliki] Thanks to all who replied, especially for the style conventions!

^ Sorting an NArray
231535 [Chris.Meliki] I have a 2 dimensional array using NArray and wish to sort the values based
231537 [ara.t.howard] [ [ 5, 4, 3 ],

^ SWIG n00b: irb trapping when accessing C array?
231540 [dan.caughert] Hey all --
231647 [logancapaldo] I think it's because you have extern Data* red and static Data red[] ...

^ [ANN] Missoula Ruby/Rails Group, Januray Ruby Tuesday Gathering
231543 [jgarvin.list] The first Ruby Tuesday gathering for 2007 of the Missoula Ruby & Ruby on

^ 'gets' OS commands?
231549 [wood_yee12 h] # Have user enter a directory in Windows (ex., C:\ or C:\Windows, etc)
231579 [gregory.t.br] I usually use fileutils.

^ 'gets' OS commands?
231550 [wood_yee12 h] # Have user enter a directory in Windows (ex., C:\ or C:\Windows, etc)
231560 [wood_yee12 h] YIKES! I double posted! :-)

^ telling gems where to install...
231551 [lister pikkl] gems is great but it kind of hides the code. id like to download
231571 [drbrain segm] The GEM_HOME environment variable is the catch-all way, but there are
231592 [stefan mahli] Can you clarify on this?
231594 [drbrain segm] You are right, I am wrong.

^ Re: Last reminder: MountainWest RubyConf Call For Presenters
231552 [james.britt ] Saturday?
+ 231558 [ara.t.howard] just make sure it snows ok?  i'm brining three pairs of skiis and the whole
| 231561 [matt kettlew] Maybe move it to Denver.  No lack of snow there (double blizzard).  It
+ 231586 [james.britt ] Yep.

^ Developpers on rails
231556 [cypherstrong] developper on ruby are a lot (more specially french developpers)
+ 231562 [khaines enig] If you search the archives of the list, you will find many discussions on
| 231637 [cypherstrong] Ouah ! Performance seems to be great !!!
| 231654 [khaines enig] Keep in mind that the performance that I state is NOT Rails performance.
+ 231708 [aledonne.lis] Il existe des groupes francophones pour discuter ruby et rails...

^ reading .jar files
231557 [r.mark.volkm] How can I read the entries in a Java .jar file from Ruby?
+ 231591 [msoulier dig] Perhaps you should simply call the jar program, or unzip, instead of
+ 231776 [ts_news1 son] rubyzip should be able to read the jar file. Can you send me a .jar file

^ unsafe readline(), anything better?
231563 [rmuhlestein ] Looking for a combination of readpartial() and readline() in order to
+ 231576 [w_a_x_man ya] class File
| 231581 [rmuhlestein ] Thanks for the attempt, this is very close to the reader-flavor of
| 231632 [shortcutter ] I would also consider the alternative of creating a SafeLineReader that
| 231668 [rmuhlestein ] Glad to read your post. Couldn't sleep last night thinking through
| 231709 [rmuhlestein ] Humm, from this last recent ruby CVS commit just today makes me wonder if
| 231745 [matz ruby-la] I am listening.  We still need update for Webrick.  Here's the my
+ 231697 [matz ruby-la] I have added the second optional argument to specify maximum length

^ [OT] Re: Last reminder: MountainWest RubyConf Call For Presenters
231566 [ara.t.howard] i'm already there!  work just got canceled and i'm waxing up now!

^ wrap text with annotate
231580 [ochandler gm] Anyone know how to wrap text using the annotate method?
231588 [drbrain segm] $ ri --system annotate

^ [ANN] London Ruby User Group (LRUG), 8 January 2007 - Pub Quiz
231582 [murray.steel] The next London Ruby User Group (LRUG) meeting is on 8th January, 2007.

^ Ruby extension issue
231583 [wim.vandersc] I am playing around with building ruby extensions in C but I have a problem.
231585 [wim.vandersc] require 'mkmf'
231589 [drbrain segm] $ ruby extconf.rb
231590 [wim.vandersc] Ok thanks :) Could you also explain what these methods do exactly?
231593 [drbrain segm] dunno
231631 [wim.vandersc] Thank you, but my main problem is the pkg_config :-(
231651 [tom infoethe] pkg_config calls the Gnome utility pkg-config to get information about

^ wrap text in rmagick
231584 [ochandler gm] Anyone know how to wrap text with rmagick using the annotate method?  I
231619 [TimHunter nc] If you mean automatically wrap to the image size, annotate can't do

^ What we have here is a retard pretending to be a computer scientist
231595 [atbusbook ao] . this retard thinks Smalltalk and Ruby don't have private public and
+ 231600 [Gennady.Byst] Thanks for the article. Very nice at first glance, nothing retardish
| 231601 [atbusbook ao] On Dec 28, 6:30 pm, "Gennady Bystritsky" <Gennady.Bystrit...@quest.com>
| 231603 [atbusbook ao] Sorry blank post. but saying ruby has no encapsulation of methods is
+ 231607 [james.britt ] There are more civil ways to criticize people than calling them 'retards.'

^ Newbie: Looking for help rounding numbers
231596 [jbornhoft gm] I can't figure out how to round my answer from this short code that I
+ 231611 [slamboy gmai] puts ftemp.to_s + " F is " + ctemp.round.to_s + " C."
+ 231612 [gavin refine] puts <<ENDINTRO
| 231618 [w_a_x_man ya] puts "Fahrenheit to Centigrade Conversion
| 231620 [gavin refine] Cleaner style yet. Nice.
+ 231621 [jbornhoft gm] Thank you very much for the help!

^ Fwd: [Vit-core] Ruby 1.8.5-p2 Stable Version download bug-fix confusion.
231597 [james graypr] The following is a complaint we received about the Ruby home page today.

^ Re: [Vit-core] Ruby 1.8.5-p2 Stable Version download bug-fix confusion.
231598 [james graypr] My apologies to Ruby Talk.  I meant to send this to Ruby Core and

^ rubygems install problems (the old ubygems (LoadError) problem. Sigh).
231599 [Paul.vanDels] I just did a complete re-install of ruby 1.8.5-p12 and rubygems-0.9.0 and I'm getting the
231605 [drbrain segm] This tells ruby to put ubygems.rb under ~/local/rubygems.
+ 231606 [drbrain segm] Actually, from testing, it'll be more like ${HOME}/local/rubygems/lib/
+ 231609 [Paul.vanDels] Well, I eventually figured out that I need
  + 231613 [Paul.vanDels] O.k., I removed my old rubygems install and did it again but without the --prefix-dir and
  | 231624 [drbrain segm] Yes, this is correct.
  + 231625 [drbrain segm] You can't, and you don't really want this.

^ Paper on strong Object Oriented Encapsulation (Was: some subject with needless insults)
231602 [drbrain segm] I shouldn't have to demonstrate how ivars are shared between
231610 [cohen.jeff g] I agree.  And I also agree with James, that the OP's choice of
+ 231615 [matt kettlew] world".  So look out, this might be the beginning of a new revolution :)
| 231633 [shortcutter ] What is the sound of one hand slapping?  Oh well...
+ 231617 [fxn hashref.] That's right, though according to the Ruby Cookbook (footnote on page
+ 231635 [aldursys gma] It's a throwback to the C line of languages.
| + 231642 [hutch recurs] Perfect example, you beat me to it :-)
| + 231661 [shortcutter ] As a side note: in Java, by marking something "private" you effectively
|   + 231770 [aldursys gma] Not if you know my history. I had the very great pleasure of working
|   + 231800 [pergesu gmai] Why do you say yuck?
|     231914 [shortcutter ] Because I had the meaning of "yuck" wrong. :-)  I probably should have
+ 231701 [djberg96 gma] I would say "no".

^ ActionMailer view overwriting ActionController view?
231604 [lgastako gma] I'm having a bizarre problem.  I have a page that let's you share a
231608 [james.britt ] Yes.  Try the Rails mailing list.

^ Re: newbie: what is ruby's var_dump()?
231622 [gavin refine] "Hi, I'm used to language AAA, where there is a var_dump()
+ 231623 [schapht gmai] I didn't see the original post, but I bet you're looking for one of
| + 231626 [why ruby-lan] Or, also `y'.
| + 231652 [johnsyntax y] Thanks.  Will look all those up.  I think #to_yaml will do it,
+ 231650 [johnsyntax y] var_dump() is core...

^ case bug when comparing classes...?
231638 [a2800276 gma] I'm encountering weird behavior I don't understand when creating a
231639 [vincent.four] Yes ;-).
231640 [a2800276 gma] That would explain it :) Thanks!

^ Bug or Feature? (proxying methods)
231641 [yrashk gmail] class ReturnSelfAfter
231644 [rosco roscop] It's a feature - assignment in ruby always returns the assigned value, no

^ Pickaxe book questions: Symbols and [] method
231643 [krekna gmail] In the Pickaxe book 2nd ed. they talk about the attr_reader and
+ 231645 [TimHunter nc] attr_reader and its friends are methods in the Module class. The symbols
+ 231648 [dblack wobbl] See Tim's answer.  I just wanted to add a nuance: symbols do not point
+ 231666 [gavin refine] p my_song_list[ 3 ]

^ Re: How to do Hash#each_pair from C extension?
231646 [rosco roscop] static VALUE hsh_iterfunc(VALUE data_ary, VALUE hsh) {
232302 [rosco roscop] No problem :)

^ Need help with a timing? problem
231653 [lrlebron gma] I am running Ruby 1.8.5 and windows XP. I am working on a program that
+ 231655 [logancapaldo] It's needed.
+ 231669 [gavin refine] You'd better post code to your file_added method, and ensure that the
  231695 [lrlebron gma] The event_handler will pass 10 arrays to the file_added method. One for

^ [ANN] Ruby-GNOME2-0.16.0
231656 [mutoh highwa] Ruby-GNOME2-0.16.0 is out. Enjoy!
232097 [agnewtj nosp] Masao, you rock!!!!!  Many thanks for this release!!!
232152 [zimbatm oree] Hey, nice work :)

^ WEBrick DOS Security Flaw
231657 [rmuhlestein ] Looks like WEBrick isn't ready for production, but then I think most
231704 [rmuhlestein ] First, you are right, that did sound like FUD toward Ruby and you are

^ newbie:  where is File documented?
231659 [johnsyntax y] I'm trying to work some examples (The Poignant Guide),  I can't seem to
+ 231660 [wim.vandersc] Isn't that what you were looking for?
+ 231662 [gethemant gm] ...
+ 231664 [gavin refine] Er, what specifically are you looking for? Not this?
  231746 [johnsyntax y] yeah,  was looking for the read() method,  it's tucked away in IO.

^ Re: What we have here...
231663 [shortcutter ] Where exactly do you read that in the article?
231675 [cohen.jeff g] I think he was referring to this (starts at the bottom of page 1 of the

^ XML - converting from one feed to another (beginner)
231665 [rb email.inv] I'm trying to read an XML feed of products and convert them to a
+ 231685 [james.britt ] You may be better off building the new XML using either direct string
| + 231699 [rb email.inv] can make it work.
| + 232018 [rb email.inv] title = (el/'title').text
|   232027 [james.britt ] Ah, good catch. Bug in my example code.
+ 231700 [bill.walton ] Depending on whether or not you want to make further use of the content
  231707 [rb email.inv] Thanks... I didn't think of that.  I will have to learn XSLT.  For
  231718 [james.britt ] XSLT would be painful overkill for this sort of transformation.
  232104 [spoooq gmail] I'm going to have to disagree here - I've done a reasonable amount of

^ [QUIZ] Word Search (#107)
231671 [james graypr] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 232010 [mariano.kamp] charset=UTF-8;
| 232042 [mariano.kamp] charset=US-ASCII;
+ 232070 [Glen.F.Panko] #! /usr/bin/env ruby
+ 232117 [showaltb gma] Here's my submission. No extra credits.
+ 232243 [chunyun.zhao] Here is my solution. It supports ? and * as wildcard letters.

^ Another Q: find behavior
231672 [krekna gmail] class Array
+ 231673 [rubytalk eac] Because of the "return value if yield(value)", which returns from the method
+ 231676 [m_goldberg a] But the loop does stop when it reaches 7. As soon as 'yield(value)'
| 231678 [krekna gmail] Ah, so the return exits the loop, now I understand.
+ 231680 [shortcutter ] That line should read

^ Rails install question
231674 [sigzero gmai] While generating documentation for activesupport-1.3.1
231677 [schapht gmai] I've seen that before.  It shouldn't cause problems.  I think there
+ 231679 [sigzero gmai] Thanks a bunch.
+ 231681 [rmuhlestein ] Does anyone know of a good way to get a'hold of those guys. Looks like
  231758 [schapht gmai] Looks like rails-owner@lists.rubyonrails.org should do it.
  231762 [matt kettlew] The Rails list is also a group at
  231764 [rsanheim gma] Matts right, they moved the rails list off of mailman and its now only

^ Cleare errors on a given attribute
231682 [ruby-forum f] I've been studying Rails source code to figure out how to clear
231683 [ruby-forum f] My bad. Wrong list. Reposted in "Ruby on Rails"

^ how to properly format data when using TCPSocket.send()
231686 [onebitcipher] It would be greatly appreciated if someone would clue me in to what I am
+ 231690 [garbagecat10] Why are you putting HTML content in the header block? Try putting it after
+ 231692 [shortcutter ] You need "\r\n\r\n" to separate the header from the body.  Your code
| 231696 [onebitcipher] I tried using "\r\n\r\n", but I'm still having some problems due to the
| + 231698 [garbagecat10] I think you would do well to do some basic reading on HTTP. To
| | 231703 [onebitcipher] I mean that a new TCP session is created for every HTTP request/response
| | 231705 [onebitcipher] I guess a good question would be "does ruby's TCPSocket take advantage
| + 232422 [onebitcipher] I just wanted to add some comments about using TCPSocket that might help
|   232473 [snacktime gm] This is so much easier with http-access2.  It handles keep alive
+ 231721 [rob muhleste] Looks like you found your answer, but one tool for sockets programming,
| 231725 [Gennady.Byst] Thanks for mentioning nc, did not know that such a utility exists.
| 231773 [artur_spruce] ...
+ 231739 [drbrain segm] require 'net/http'
  232178 [onebitcipher] Thank you for your example Eric.   I was having problems figuring out

^ Re: Word Search (#107)
231688 [gavin refine] + + + R + + + + + +
231737 [james graypr] Good catch.  I agree that the second match should be shown.

^ Exception naming conventions: rely on module name?
231689 [efine145-nos] I am wondering about design alternatives regarding exception naming in
231719 [drbrain segm] I typically use #2
231755 [efine145-nos] Thank you for your advice. I will follow it.
threads.html
top