171593-392013

171371-172789 subjects 171759-178464

Very new to Ruby--needs help
171593 [smankan@ue d] Dear Ruby Gurus,
171620 [ruby-forum-r] What is in the .lib file?
171679 [smankan@ue d] Dear Eero,
171690 [smankan@ue d] Dear Eero,
+ 171691 [cyclists@nc ] The "require" statement loads Ruby extensions, either those written in
+ 171694 [phurley@gm i] Is abc.dll the dll associated with power32.lib? Or just an example. I
  171706 [smankan@ue d] Thank you Timothy and Patrick, I got the answer to what I am looking

Blog for Ruby
171594 [shadarach@gm] At the request of a friend of mine, I am doing a blog as I learn to
+ 171697 [snowzone5@ho] you need to open up the comments so people don't have to register :)
| 171705 [shadarach@gm] oh, whoops :)  Im pretty new to the whole blogging thing hehe..
| 171742 [jgbailey@gm ] Not Found
+ 171704 [phurley@gm i] I cannot register as your system is not forwarding a password (not

status of ruby .net compilers
171596 [jgraham@ma i] Who is currently working on creating a ruby compiler for .net
171613 [tanner.burso] ...

Help on Simple Search
171608 [ggbrown@ma .] Hey there,
171621 [ruby-forum-r] P <snip/>

Names (Was: Re: ruby-dev summary 27761-28026)
171616 [drbrain@se m] How does an options hash remove the problem of finding a good name?

conflict between active record and Log4R
171623 [phil.swenson] I recently added some activerecord code to a stand-alone application
171659 [capitain@gm ] I think the activerecord use Ruby's Inner Logger to overwrite the

Singleton class - instance or class variables?
171624 [caleb@ae -t ] When using a singleton class (one that includes Singleton, not an
+ 171627 [ruby-forum-r] I would recommend using class instance variables,
+ 171629 [vjoel@pa h. ] another approach to consider is using a dependency injection framework.
+ 171631 [ara.t.howard] inheritence will break with either.

Posting Forms
171626 [galizur@gm i] Posting forms looks like it should be easy with Ruby 1.8.3 and

Best way to upgrade from 1.8.2 to 1.8.4 on Linux?
171628 [javachalleng] I have installed from source Ruby in the folder /usr/lib/ruby-1.8.2/.
171634 [ruby-forum-r] If you plan on having multiple supported installations,

Re: Puby 1.0 Release!
171632 [hcatlin@gm i] It does have a nice zing to it.

Best way to upgrade from 1.8.2 to 1.8.4 on Linux?
171633 [javachalleng] I have installed from source Ruby in the folder /usr/lib/ruby-1.8.2/.

Fwd: [QUIZ] RRobots (#59)
171636 [james@gr yp ] ...

ADV: Share the (Ruby) love...
171642 [dave@pr gp o] ...

ADV: Share the (Ruby) love (take 2)
171645 [dave@pr gp o] Looking for that last minute Christmas present for someone special?

[SOLUTION] Robot
171646 [ef@al m. it ] Here's my robot.  The coolest part is the predictive tracker, which
171703 [ef@al m. it ] I guess since filenames are significant I should have attached it

Replacing single quotes and backslashes in strings
171649 [phil@pr co .] People,
171655 [logancapaldo] str = %q{du phil'sfile_name}
171661 [phil@pr co .] Logan,
171670 [logancapaldo] Well, since `` invokes your shell you have to sort of "double-escape"

iterate chars in a string
171653 [piccionevola] I'm a ruby newbie, and I'm searching for a way to iterate every char in
+ 171654 [logancapaldo] The usual idiom is str.split(//).each do |character|
| + 171656 [piccionevola] Thank you very much! I did it :)
| | 171658 [botp@de mo t] #I'm a ruby newbie, and I'm searching for a way to iterate
| | 171662 [logancapaldo] Careful, a character isn't necessarily a byte in length. You gotta be
| | 171663 [botp@de mo t] #Careful, a character isn't necessarily a byte in length. You gotta be
| + 171668 [discordantus] String#scan with a block is lighter weight, and less wordy:str.scan(/./) do |character|  # stuffend
|   171674 [logancapaldo] str = "Hello\nWorld"
|   171769 [florgro@gm i] Heh, good point. Thanks for mentioning this. I think this might be quite
|   171770 [hawkman.gelo] ...
|   + 171774 [leavengood@g] 1. Generally in Ruby internal iterators (i.e. each, each_byte, etc.)
|   + 171776 [james@gr yp ] You mean besides the fact that it's not very Rubyish?  <laughs>
+ 171664 [dandiebolt@y] ...
+ 171778 [bob_showalte] puts "Yep!" if str.include?("X")
| 171782 [leavengood@g] In case anyone is curious, the above just uses scan(/./m), and is even
+ 171783 [lyndon.samso] a="123"
  + 171788 [jeff.darklig] ...
  | 171801 [janchrister.] each_char should beat the current leader as b.chr is not needed.
  | 171805 [gwtmp01@ma .] I don't think that is true.  The semantics of each_byte are quite clear
  + 184873 [bob.news@gm ] a.length.times {|i| puts a[i].chr}
    184876 [kevin.jackso] or even
    184878 [bob.news@gm ] We had that already: your version ignores newlines. :-)
    + 184883 [kevin.jackso] So it does!  Well I learnt something anyway :)
    | 184886 [dave@bu t. d] a.scan(/./m) {|c| p c }  # m is for multi-line
    + 184899 [james@gr yp ] => true
      184932 [robert.dober] ...
      + 184979 [noone@no he ] "I am puzzled".each_byte { |b| puts b.chr }
      | 184982 [Daniel.Berge] Modifying String#to_a to return an array of characters has been brought
      | + 185000 [robert.dober] ...
      | | 185053 [jogloran@gm ] ...
      | | + 185059 [bob.news@gm ] That's not true.  It just depends on what you consider to be the parts
      | | | + 185061 [robert.dober] ...
      | | | | 185064 [bob.news@gm ] Please don't top post.
      | | | | 185065 [robert.dober] ...
      | | | | 185068 [rossrt@ro co] Duck typing?
      | | | | 185073 [noone@no he ] Maybe a little off the topic, but I still think it would be pretty nifty if
      | | | | 185079 [dave@bu t. d] I believe Ruby 1.9 (experimental) has this feature.
      | | | + 185063 [ mfp@ac .o g] Besides,
      | | + 185080 [ruby@an hr p] } The thing I don't like about this behaviour is that an algorithm which
      | + 185085 [transfire@gm] <i>Modifying String#to_a to return an array of characters has been
      |   185087 [dblack@wo bl] Another lib might change *anything* on you :-)  We all have to trust
      |   185089 [transfire@gm] Of course, but the behavior of String#each is not a good context to
      |   + 185092 [dblack@wo bl] Well... I'd rather rule out global modification as a response to
      |   | 185124 [transfire@gm] What other kind of features would one be inclined to modify?
      |   + 185093 [robert.dober] ...
      + 185083 [transfire@gm] each_bytes is not a good way to do this, btw. It will not remain

[ANN] Object Database Access v 1.0 released
171657 [hwyss@yw se ] ODBA is an unintrusive Object Cache system. It adresses the crosscutting
+ 171666 [hwyss@yw se ] Oops. Where can you get it?
| 171667 [botp@de mo t] #http://raa.ruby-lang.org/project/odba/
| + 171673 [hwyss@yw se ] One of the major problems of using a relational database when coding in
| + 171875 [hwyss@yw se ] Botp
+ 171687 [vanek@ac .n ] Interesting.
  171695 [hwyss@yw se ] Lou
  171709 [vanek@ac .n ] Thanks.

gem install mysql error
171669 [javachalleng] gem install mysql
+ 171672 [caleb@ae -t ] Do you have the mysql client libraries installed?
| 171676 [javachalleng] I have mysql server installed. Where do I get the "client" libraries?
| 171683 [hcatlin@gm i] Java,
| 171693 [caldridge@gm] you dont need to install the mysql gem for rails... just configure
| 171698 [javachalleng] Thank you guys. I will try once I get home and let you know.
+ 377395 [biegun.m@gm ] # aptitude install libmysqlclient16-dev
| 392013 [westonplatte] This worked for me.
+ 388496 [michael.ensl] Thanks Aleksi. This solved my problem. (I'm using Mac 10.6.8)

Nitro Screencasts
171671 [george.mosch] Dear devs,
+ 171684 [jim@fr ez .o] What exactly am I supposed to see here?
| 171685 [jim@fr ez .o] Ok, Firefox seems to work. Wonder why Safari doesn't.
| 171688 [george.mosch] Haven't tested with Safari, I have no access to a Mac (waiting for the
| + 171702 [logancapaldo] Shiira 1.1 here (WebKit based browser). It did take a little while to
| + 171737 [ezmobius@gm ] Works fine in Safari for me. Nice job George.
+ 171707 [pat.eyler@gm] Very nice.   I'm convinced enough to go and build a toy with Nitro to
| 171712 [george.mosch] Go ahead!
| + 171716 [pat.eyler@gm] I didn't mean to imply that Nitro was a toy.   It's just that I
| | 171718 [george.mosch] thanks :) I would also suggest that you join the mailing list. There
| + 171717 [jeff.darklig] ...
|   171719 [george.mosch] Be assured, there will be more screencasts. However, I plan to
|   171727 [pat.eyler@gm] Make sure you get both the high end and the low end.  I'd love to see
|   171876 [george.mosch] Ok, will do an AJAX demonstration next week. Ajax effects are so easy
|   171879 [jeff.darklig] ...
+ 171857 [m.fellinger@] charset="iso-8859-1"
+ 171953 [jgbailey@gm ] Impressive! I've looked at Nitro before but did not get the sense it
  172086 [george.mosch] Of course it works. Moreover, the underlying scaffolder handles

[ANN] Ferret mailing list mirror on www.ruby-forum.com
171675 [f@an re s- .] Andreas

anti-xss library for ruby?
171678 [csshsh@gm il] Does anybody know a ruby anti-xss library that passes all the cases
171762 [florgro@gm i] I've been an advocate of whitelisting before, but after reading this I

Ruby on Rails
171699 [mjs_ops@gm .] I have installed the ruby and the MVC ruby on rails for developing of
171722 [zoso@fo on e] =20
171725 [steve@wa ts ] Thanks for your message about Ruby on Rails.  I think you'll find

ruby -r profile gives wrong percentage?
171700 [javachalleng] I am using Windows, and I was testing the profiler with the simple
171710 [bob.news@gm ] Yes.  Some figures are cumulative.  This confused me in the beginning,
171745 [ruby-ml@ma i] Specifically it is taking nesting of method calls into account.
171883 [bob.news@gm ] ruby -r profile -e 'def foo() 5000.times { puts "x" } end; foo'

Bruce Eckel wouldn't know why to switch from Python to Ruby
171708 [cyberco@gm i] Bruce Eckel (author of amongst other popular books 'Thinking in Java')
+ 171713 [bob.news@gm ] Thanks for the interesting read!
| 171720 [dbalmain.ml@] I've done some programming in Python. I have to say that it's really
+ 171721 [sigzero@gm i] I don't think he has "doubts" about someone switching. He wants to see
| 171848 [twifkak@co c] me. I choose not to get involved in the conversation. Other people
| 171895 [surrender_it] just to say for..in is delegated to a method in python too, and they
| 171897 [daniel.schie] That's so cool. We need that. Now. Generally, though, I think Python's
+ 171735 [slitt@ea th ] I'm nowhere near a Python expert (nor a Ruby one) but I'll tell you
| 171792 [surrender_it] OTOH encapsulation may be considered better in python since you can be
+ 171744 [rcoder@gm il] Eckel's article is getting pretty long in the tooth at this point -- I
| + 171749 [jamis@37 ig ] Excellent comparison, Lennon. Thanks for taking the time to post this.
| + 171793 [surrender_it] I think you'have been away from python far too long, recent python (3 or
|   + 171802 [doug00@gm il] Properties in python don't work with subclasses, however.
|   | + 171803 [doug00@gm il] That should have been
|   | + 172100 [snowzone5@ho] is it just me or did that ruby code look a lot cleaner?
|   |   172150 [surrender_it] I think everyone can agree :)
|   |   + 172155 [jeff.darklig] ...
|   |   | 172228 [surrender_it] you're absolutely right, but in my defense I can say that I did write
|   |   + 172159 [perrin@ap th] Argh.  It looks unfinished.  It's asymmetrical, and not in a beautiful
|   |     172227 [surrender_it] de gustibus non est disputandum
|   |     172229 [perrin@ap th] Um.  Okay?
|   |     + 172266 [bob.news@gm ] We Germans say "?ber Geschm?cker kann man streiten" - interestingly enough
|   |     + 172298 [phurley@gm i] In matters of taste there can be no dispute.
|   |       172309 [slitt@ea th ] Is de gustibus non est disputandum Italian, Latin or something else?
|   |       + 172314 [jeff.darklig] ...
|   |       + 172326 [phurley@gm i] Oops that was supposed to be four years of high school latin :-)
|   + 171964 [rcoder@gm il] Thanks for reminding me -- I have indeed been away from Python since
+ 171748 [matt@te hn r] I'm not sure that Ruby really is so much better than Python that a Python
| 171752 [perrin@ap th] Keep in mind that I'm an absolute non-expert in both Ruby and Python
+ 172098 [snowzone5@ho] ruby has one thing going for it that python doesn't: ruby's oo doesn't

[Article] Ruby off the Rails
171711 [stonelists@g] ...

RubyPlanet.NET is up and running
171723 [mark.watson@] I would like to thank the people who sent in links to their Ruby
+ 171731 [jonsmirl@gm ] Have you considered using the Planet aggregator?
| 171733 [mark.watson@] Thanks Jon - I had not seen planetplanet.org before. I already have 4
| 171739 [drewmills@gm] ...
| 171740 [mark.watson@] ...
+ 171741 [james_b@ne r] James Britt

Shelve module in Ruby?
171724 [bryanweather] I'm fairly new to Ruby and I was wondering if there was a module that
+ 171728 [james@gr yp ] Ruby comes with Marshal and YAML, which sounds like what you are
| 172007 [vjoel@pa h. ] If you want something like PStore, but with both thread- and
+ 171730 [phurley@gm i] require 'yaml'
+ 171732 [steve@wa ts ] Also check out [Madeleine][1] in addition to the other suggestions.
  171755 [bryanweather] Thank you all for your speedy responses.  YAML appears to be precisely

[ANN] apt-sary-0.1
171726 [rubikitch@ru] == Abstract
172868 [usenet@ru y-] Brilliant idea, thanks!
+ 172873 [perrin@ap th] What exactly does that bit of obfu do?
| + 172947 [nohmad@gm il] Something like obfuscator generator?
| + 172972 [usenet@ru y-] As suggested, it generates obfuscated code that outputs a given string,
+ 172899 [rubikitch@ru] Please try this patch.
  172971 [usenet@ru y-] that's about what I did myself, and it works fine. So as it seems you

Difficulty opening a socket
171729 [mr.ra88it@gm] I write this with some trepidation because it is probably a simple
+ 171738 [caleb@ae -t ] Is there something listening on port 8080 on your local machine.  Sockets are
| 171750 [vanek@ac .n ] telnet localhost 8080
+ 171751 [bob_showalte] OK, that means no process is accepting connections on port 8080. What
  171754 [mr.ra88it@gm] Thanks, everyone.
  171756 [bob_showalte] It's fine. We just couldn't figure out what you're tying to do.
  + 171757 [bob_showalte] Er, I mean go to another window and run the *client*
  + 171763 [mr.ra88it@gm] Thanks again, Bob et al. It works! I appreciate your help...
  + 171775 [bingopajama@] I just started w/ Ruby myself (really digging it so far).

Unix is not an *I*DE (Was: Any TextMate Editor equivelent for Windows ?)
171743 [ jupp@gm .d ] To quote Sting's famous song "Russians": I don's subscribe to this
171746 [perrin@ap th] Since I'm pretty well dedicated to vim as my primary editor, the same
171747 [gregory.t.br] Am i the only one that thinks Linux and IDE should not be in the same sentance?
171753 [perrin@ap th] I guess that depends on how you mean that.
171767 [gregory.t.br] The power of GNU/Linux lies in the very fact that it is NOT an IDE.
+ 171845 [caldridge@gm] ...
+ 172067 [perrin@ap th] That depends on what you mean by "integrated".  I mean "integrated" in
  172080 [gregory.t.br] My only point is that it does not make sense in the terms of what the
  172160 [perrin@ap th] I made an off-hand comment.  You told me how I was wrong, at great

Bruce Eckel and Ruby
171758 [hal9000@hy e] <sigh>
+ 171760 [leavengood@g] I agree with you completely.
| + 171777 [sigzero@gm i] I think that if you think Bruce Eckel is threatened by Ruby then you
| | + 171796 [halostatue@g] No, he's not, actually. I don't think he's threatened, but he's
| | + 171809 [hal9000@hy e] I didn't say he was threatened. But I think "why" is ultimately a
| |   171831 [ptkwt@ar cn ] Right, but Eckel seemed to be suggesting that one must use a much more
| + 171779 [cyclists@nc ] You nailed it, Ryan. This has little (if anything) to do with
|   + 171781 [james@gr yp ] I doubt there are very many professional programmers relying on a
|   | 171785 [jeff.darklig] ...
|   | 172073 [perrin@ap th] What's up with the "hate Perl and static languages" routine?  I like
|   | 172209 [penryu@sa yi] I second.  Obviously Matz liked something about Perl enough for
|   + 171789 [jim@we ri hh] Mr. Eckel has written books and articles on C++, Java and Python.  In
|   | 171798 [cyclists@nc ] With all due respect, Jim, I think it would be a mistake to overlook Mr.
|   | 171812 [jim@we ri hh] It would indeed be a mistake to overlook it, but I don't see the facts
|   | + 171817 [cyclists@nc ] Well, never let it be said that I was foolish enough to argue with Jim
|   | | 171820 [jim@we ri hh] Sigh, now if I could only convince my kids of this.  :)
|   | + 172075 [perrin@ap th] It looks to me like the way Eckel is approaching this, he sees what he
|   + 171800 [hutch@re ur ] Guys, this isn't a good path to follow. Bruce has been an asset to
|   | 171807 [halostatue@g] Mr Eckel is not merely asking the question. He is asking the question
|   | + 171811 [bellarchitec] If you read that article a little carefully, Bruce Eckel is mad about
|   | | 171835 [ptkwt@ar cn ] Indeed that would be awesome.  The more Ruby books the better.  And when
|   | + 171834 [ptkwt@ar cn ] Oh, now that's going a bit over the top don't you think?  I would think that
|   |   + 171836 [hal9000@hy e] Sure. But he's been railing against Ruby for five years now (unless I am
|   |   | 171839 [ptkwt@ar cn ] I'm not expecting him to at this point, however I don't think we should post a
|   |   | + 171840 [hal9000@hy e] I don't think anyone seriously suggested that.
|   |   | + 172097 [Szymon.Dreje] Bruce Eckel is just goodselling-books-maker rather than guru for coders.
|   |   + 171910 [halostatue@g] would use and like Ruby, I'd want him in our camp. But based on reading
|   |     171919 [jim@fr ez .o] Does this get quote of the week?
|   + 172284 [snail@ob me ] <cyclists@nc.rr.com> writes
|     172308 [gwtmp01@ma .] At one level I understand this point of view.  But at the same time, how
|     + 172336 [snail@ob me ] gwtmp01@mac.com writes
|     | + 172337 [igouy@ya oo ] Exactly! His time is more effectively spent elsewhere.
|     | + 172340 [blargity@gm ] And honestly, if the guy doesn't want to learn Ruby, that's fine, I certainly
|     | | 172346 [leavengood@g] Yeah that is the thing: if you are happy with what you have and trying
|     | + 172357 [gwtmp01@ma .] It really scares me to hear that people don't have time to read.
|     |   + 172381 [perrin@ap th] I couldn't agree more.
|     |   + 172386 [igouy@ya oo ] Rather than yet more technical knowledge, the area that frequently
|     + 172565 [csferrell@gm] ...
|       172567 [gwtmp01@ma .] I was responding to the idea that the only reason to read or learn
+ 171764 [james_b@ne r] <muchGoodStuffElided/>
| 171766 [cribbsj@oa w] Ruby kicks Cobol's ass!
| + 171780 [alang@cr no ] require 'inline'
| + 172077 [perrin@ap th] So much for controversy.
+ 171794 [halostatue@g] -austin
+ 171795 [mailing-list] Yes?
| 171799 [surrender_it] actually, I still think bustrofedic, or whatever it is spelled in
| 171920 [chneukirchen] I don't think the idea is as clever as you think, for example, how can
| + 171928 [hgs@dm .a .u] The tactile writing system known as Moon was designed to work like
| | 171936 [Daniel.Berge] Except that I don't believe that he has tried it.  Not really.  I've
| + 172078 [perrin@ap th] . . . and how useless is that, when pretty much all my "writing" is done
|   172166 [mailing-list] [stuff that I haven¡Çt written, and really doesn¡Çt relate to what I
|   172213 [perrin@ap th] I hit "dd" one time too few, and an extra line was left in the email by
+ 171829 [lyndon.samso] An interesting article. I didn't read it as being con ruby. Just
+ 171877 [penryu@sa yi] I'm tried both as well.  In fact, I was directed to ruby by
| + 172083 [perrin@ap th] Glad ya think so.  I find it obnoxious, and it contributes to an
| | 172205 [penryu@sa yi] Ok, to be fair, that "right" above is my opinion.
| + 172283 [snail@ob me ] <penryu@saiyix.ath.cx> writes
|   172483 [penryu@sa yi] That wasn't evangelism. Just my opinion.  That my opinion
+ 172105 [snowzone5@ho] i usually get slammed for pointing out the following (my hatemail, and
+ 172106 [snowzone5@ho] i'll say. when one space too many or too few can mean time spent
  + 172127 [Stephen.L.Mo] Sorry, but I hate it when people attack the arguer instead of the
  | 172207 [penryu@sa yi] I respect your sticking up for Bruce.
  | 172233 [mf@ch bo en ] The problem is that it's too easy to make up your own assumptions about
  | + 172278 [rdrake98@gm ] Agreed. Fervently.
  | + 172482 [penryu@sa yi] I know Bruce not at all, and have read only one book (TiCPP).
  + 172142 [slitt@ea th ] That's why I use tabs and only tabs for indentation, in any
    172149 [bob_showalte] Oh Lord, lets not go there... ;-)
    172153 [jeff.darklig] ...
threads.html
top