267784-272179

267486-268835 subjects 267990-282604

^ Please help unable to install hpricot gem
267784 [jaboza gmail] learning ruby  for a couple of months now, now to the point.
+ 267785 [lyle.johnson] Hope this helps,
| 267788 [jaboza gmail] Probably I will try that, but I've been able to install other gems
| + 267790 [caduceass gm] This gem, like a small handful of others, requires compiling some C extensions.
| + 267791 [lyle.johnson] Yes; the difference is most likely that those other gems didn't
| + 267792 [damnbigman g] The xcode stuff should have the tools you need to compile the gems (any of
|   267794 [damnbigman g] Sorry that was poorly worded, like Lyle said you need to be able to compile
|   267795 [jaboza gmail] Thank you Lyle and Greg I'll install the xcode tools
+ 267786 [damnbigman g] It can't find make.  You need to be sure that make or an equivalent is in

^ Compiling ruby-1.8.6 on CentOS-4.5 with readline and openssl
267789 [byrnejb hart] I am having problems with getting a recent version of ruby properly

^ OpenKomodo
267796 [znmeb cesmai] Speaking of IDEs, ActiveState folks just announced the Open Komodo

^ question on bottleneck of ruby
267797 [rogerpack200] interpreted languages" almost anyone could agree with it (slower
267807 [khaines enig] The dynamic nature of the method dispatch.  The overall implementation --
271288 [rogerpack200] Thanks Kirk.
+ 271298 [garbagecat10] I agree with Kirk. Ruby's inherent performance bottleneck is also its most
| + 271301 [matz ruby-la] Thank you for kind words.  I have been sick of slowness claims based
| | 271389 [znmeb cesmai] Yes indeed!
| + 271372 [charles.nutt] The fact that classes are open doesn't really impact Ruby performance
| | + 271381 [matz ruby-la] Although I have my own opinion, first, can you elaborate your opinion
| | | 271384 [charles.nutt] I think part of the problem, as I understand it, is the "stop the world"
| | + 271386 [no spam.plea] That's true for single-process benchmarks where you don't implement
| |   + 271395 [charles.nutt] Startup time does not general performance make. Just ask Java :)
| |   | 271402 [no spam.plea] True, but lack of memory pressure enables you to keep the whole
| |   | 271471 [perrin apoth] I second the motion.
| |   | 271474 [charles.nutt] I third it. I don't like the slow startup time of JRuby any more than
| |   + 272179 [rick.denatal] Depending on circumstances byte-codes can actually be faster than machine code.
| + 271391 [znmeb cesmai] Which is why they teach data structures in computer science class. It's
|   + 271398 [znmeb cesmai] OK ... so ... is Twitter in trouble?
|   + 271434 [garbagecat10] I meant something different. Ruby has to bind most of the names it uses at
|   | + 271436 [bh izb.knu.a] [...snip...]
|   | | + 271473 [perrin apoth] I rather strongly suspect that you are not a psychologist -- and that,
|   | | + 271480 [garbagecat10] Angry? Well, no, not in particular. I reserve anger for injustice,
|   | + 271478 [garbagecat10] 10-1 is no exaggeration, and may indeed be understating it. For a software
|   + 271476 [perrin apoth] My understanding is that lazy evaluation can actually be of distinct
+ 271309 [richard.conr] I don't think that the developers of the alternatives would consider themselves
  271315 [mbj seonic.n] So why not add a "class freeze method", so that these traditional
  271325 [richard.conr] IIRC you can set how open your classes are at runtime. Though

^ simple get file by filename
267800 [eggie5 gmail] Dir.entries("/")
+ 267802 [gregory.t.br] Dir["/jpg_image.*"]
| + 267803 [whitethunder] A regular expression will do just fine.=0A=0Aentries.each do |entry|=0A  pu=
| + 267805 [eggie5 gmail] Confirmed.
+ 267806 [Bil.Kleb NAS] Dir['1_1.*']

^ Re: Compiling ruby-1.8.6 on CentOS-4.5 with readline and ope
267801 [byrnejb hart] I have discovered that running ./configure with the options
267811 [znmeb cesmai] I basically gave up trying to add open-source packages to RPM-based
267814 [cmdjackryan ] Or you use checkinstall. ;)
268137 [byrnejb hart] That bit of info was worth posting to the list regardless of my other

^ [rubyosx] can't build extensions as universal binaries
267808 [has.temp3 vi] I recently installed Ruby 1.8.6 on my PPC and i386 Macs using the Ruby

^ Missing "end" and My least favourite ruby error message....
267809 [john.carter ] With the line number pointing to the last line of the file.
+ 267810 [znmeb cesmai] I think vim syntax coloring highlights xx-end pairs, and Komodo's
| 267812 [lists bertra] The newest Vim highlights module's `end' underlined and
| 267815 [rick.denatal] I find that the best way to find these in (g)vim is
| 267827 [m.fellinger ] gg=G
+ 267849 [john.carter ] Binary chop was useless. Wherever I put an "end", it would compile!

^ Ruby C extension problems mingw, missing symbols?
267817 [cwoods cfene] I've been working all day on this(I might just be useless today) but I
267829 [nobu ruby-la] You use C++ compiler.  Symbols in C++ object files are mangled
267910 [cwoods cfene] Ah, fantastic.  That solved all my problems.

^ adding items to a list?
267822 [indiehead gm] minutes' code to basically add a new item to a list from within the
267881 [indiehead gm] Hmm, looking around this looks similar,
267882 [indiehead gm] also surely when i try it the first way i should be passing an object
267995 [indiehead gm] doofus!!!!!
267996 [jeremywoerti] Good work. Sometimes the answer is so simple that we need to step back
268260 [indiehead gm] Thanks Jeremy, appreciate the comment ;-)

^ [ANN] VimMate 0.6.4
267823 [guillaume.be] A new version of VimMate is now available: Version 0.6.4
267844 [pierre.barbi] I just downloaded it and it looks promising. However, I get this error
267970 [pierre.barbi] just to say that I found where the error was. Actually, there is a

^ Ruby Threads question
267836 [cdalten gmai] The following code is a slight modification of the code found at the top
+ 267839 [rick.denatal] I'm not sure what you mean "all done at once".
| 267841 [cdalten gmai] Woah. How you drew it and how I mentally pictured it were two different
| 267848 [list.rb gmai] No two things can happen 'at once'. It is only with limited perceptive
+ 267840 [ara.t.howard] what would that look like exactly though?  ;-)
+ 267851 [charles.nutt] Thread 1 goes for Google. Waiting for response is a blocking call, so it

^ Re: [QUIZ] Twisting a Rope (#137)
267842 [jamesbkoppel] I had a little trouble debugging my solution, and thus I'm turning it in late. I'm also being forced to finish up early, so some of the lesser features sufferred. It implements all three parts (including part 3 subpart d), but I commented out part 3 subpart c, as I was having trouble with it in and earlier version, and did not have time to test whether it works now and debug. Additionally, part 3 subpart a is only kinda implemented, as I didn't have time to make the slices other than (start, length) and range return a rope.
267843 [jamesbkoppel] While append modifies the rope in place, normalize returns a new rope.

^ Error during configure DLTK1.0 in eclipse3.3!
267853 [jichen3000 g] I installed DLTK1.0 in eclipse3.3,  errors back when I click

^ Modal dialog is not geting closed second time in RUBY:WATIR
267854 [chetanpatil8] model=$browser.modal_dialog
267878 [kyleaschmitt] Pretty watir specific, so maybe repost to the watir mailing list.
267880 [kyleaschmitt] Did I say mailing list?  Yeah I did.

^ Backing into numbers with Ruby?
267855 [list.rb gmai] Are there any apps out there that can try and arrive at n given x criterion?

^ Re: VimMate 0.6.4
267856 [sgwong513 ho] Do VimMate run on Windows platform?

^ Symbols and frozen strings
267857 [B.Candler po] I just had a thought.
+ 267859 [nobu ruby-la] Rather, Symbol#to_s should return frozen String?
+ 267862 [B.Candler po] Yes, as long as it returns the same frozen string each time.
| + 267873 [transfire gm] I've tried that. There are some places where it blows up Ruby. So
| | 267874 [shortcutter ] SYMS = Hash.new {|h,sy| h[sy]=sy.to_s}
| + 267936 [B.Candler po] Because it could generate unexpected aliasing. The normal, expected
|   267951 [vjoel path.b] irb(main):001:0> a = :foo.to_s
+ 267886 [vjoel path.b] Setting aside the question of freezing, why can't ruby share string data
| + 267887 [vjoel path.b] Sorry... _reduce_ garbage, not avoid it altogether, since there is still
| | 267894 [vjoel path.b] Sorry again... I don't know where T_DATA came from. Should be T_STRING,
| + 268043 [dan-ml dan42] Hmm, we could use that property of strings...
+ 267893 [khaines enig] Absolutely.
+ 268002 [evanwebb gma] Rubinius has a compiler extension that detects code in the form of

^ Named argument passing, and method_args extension
267861 [B.Candler po] Quick question - what are the current thoughts about named argument passing
+ 267914 [ry tinycloud] Method#args has a home now at http://method-args.rubyforge.org/
+ 268153 [rick.denatal] $ irb1.9

^ Hal: [QUIZ] Twisting a Rope (#137)
267866 [setiono_ari ] 't understand what you are talking about. I`m just started to learning prog=
267875 [diego.suarga] Maybe you are behind a firewall? Or could it be a external proxy? Check

^ [SUMMARY] Twisting a Rope (#137)
267870 [james graypr] The discussion for this quiz was very interesting.  It's probably worth your
267969 [eric.mahurin] I'm glad to see that you didn't let requests of the quiz get in the

^ [QUIZ] Count and Say (#138)
267871 [james graypr] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 268283 [ jupp gmx.de] ...
| + 268286 [jamesbkoppel] This week's quiz was fairly easy. The hardest part was finding and choosing a way to turn the numbers into their English equivalents. Initially I used an array that extended to TWENTY, but that was insufficient. I had solved Ruby Quiz #25 and some of the other old ones myself a while ago, but lost it due to a harddrive crash and couldn't find a copy. I then just picked someone else's solution to Ruby Quiz #25 that added a to_en method to Integer.
| | 268289 [brad bradedi] Here's my solution. Coincidentally, it uses the same
| | 268296 [john.baylor ] Here is my solution for both the number puzzle and the letter one.  I didn't
| + 268330 [ jupp gmx.de] Seems as if something got broken 8-|
+ 268360 [rubify softo] I decided not to miss all the fun, and implemented my own spelling not
| 268487 [james graypr] => ["one", "two", "three", "..."]
+ 268508 [adam.shelly ] My solution follows.  I rolled my own integer to word routine.  The

^ Lone Star Rubyconf Ticket
267872 [james graypr] A member of our local users group has a Lone Star Rubyconf ticket for

^ Ramaze version 0.1.4
267876 [m.fellinger ] This time we are proud to announce Version 0.1.4 of the Ramaze framework, alight and modular open source web framework.
267926 [james.britt ] Very cool!   Great work.

^ [ANN] London Ruby User Group - 10th September 2007
267884 [murray.steel] Closest tube: Farringdon

^ Re: returning a pipe ???
267889 [yvon.thorava] Luc Heinriwh gave me yesterday a third solution perfectly working,

^ ruby on rails with mysqladmin
267891 [a.m.a videot] mysqladmin -u root create dummy_development
+ 267919 [dangerwillro] mysql -u username -p
+ 267922 [JeremyWoerti] Have you checked your task manager to see if the mysql service is
  267928 [dangerwillro] Ah, yes, that is the other thing, you need to make sure the mysql

^ minimalistic command line option parsing via -s
267895 [Bil.Kleb NAS] I know, I'm slow, but I finally figured out the minimalistic
+ 267904 [vjoel path.b] It's nice to have that for very short scripts, but for about 50 LOC you
| 267979 [ari aribrown] A really nice tool I stumbled on while e-stalking Ara Howard (hehe
| 267994 [vjoel path.b] Just took a look at it... very powerful. It handles arguments (things
+ 268004 [nobu ruby-la] and mkconfig.rb and win32/{mkexports,resource}.rb too.
+ 268008 [james graypr] James Edward Gray II

^ Where is the definition of File.read()?
267911 [optman gmail] Where is the public class method File.read() defined? Which take a
+ 267912 [jan.svitok g] Look in IO, or in io.c resp.
+ 267913 [gregory.t.br] It actually inherits IO.read, IIRC
| 267920 [dangerwillro] Ruby methods normally return the last thing in the method.
| 268030 [optman gmail] On 9 7 ,   1 24 , John Joyce <dangerwillrobinsondan...@gmail.com>
| 268032 [Christopher.] Then you are in trouble if you use File.read(). From your example I
| 268037 [optman gmail] Method #put is from Capistrano, which upload file to remote server by
| 268040 [Christopher.] ...
| 268051 [optman gmail] Good article!
+ 267932 [w3gat nwlaga] file_in = File.new("input_file","r")

^ Problems with SSL LDAP connection on Windows
267918 [damnbigman g] I'm trying to make an Net::LDAP connection over SSL to Active Directory so
267923 [damnbigman g] ldap = Net::LDAP.new
267943 [damnbigman g] Let's change the focus of my inquiry.

^ in_place_editor
267921 [email2nilez ] I have a problem with using in_place_editor in rails(ajax). I am not

^ [ANN] RubyConf 2007 registration is now open
267925 [dblack rubyp] Enjoy!
+ 267937 [wilsonb gmai] Do you happen to know which fields on the registration form will
+ 267978 [tim.pease gm] Thanks!  Is there a cancellation policy to be aware of?
  + 267980 [phurley gmai] Thanks for the heads up, I might have missed this. All registered,
  + 268067 [dblack wobbl] Whoops, I knew I forgot something :-) Our main concern is not
    268105 [james.britt ] Does that mean that cancellations earlier than 3 weeks before the

^ Invite from Carl Woodward (cjwoodward@gmail.com)
267931 [cjwoodward g] ...
267934 [cmdjackryan ] Attention when perusing that site.
267988 [cjwoodward g] PLEASE DISREGARD THE LAST EMAIL ABOUT QECHEP. IT IS SPAM AND NOT SENT BY ME.

^ Is this a bug or a feature?
267941 [martialis bi] irb(main):002:0> i=1
+ 267944 [whitethunder] That's the behavior I would expect it to have. Why wouldn't you do:=0A=0Air=
+ 267945 [wilsonb gmai] What other behavior would you want, and why?
| + 267947 [mark ociweb.] charset=US-ASCII;
| | 267959 [dblack wobbl] begin
| | + 268172 [bigboss64 ip] irb(main):001:0> i = 0
| | + 268706 [martialis bi] Thats just confusing. Why does that work different then "do_stuff until
| |   268710 [phrogz mac.c] if foo() then
| + 267952 [kazaam oleco] I think I means why the 1 is not printed like in other langues if you do this with repeat...until
+ 267956 [JeremyWoerti] I would say this is a feature to answer you question.
+ 267958 [ezmobius gma] irb(main):006:0> i=1
+ 267974 [shortcutter ] def print_all(arr)
+ 268746 [w_a_x_man ya] 1. "While" exits the loop when the condition is false;
+ 268758 [lloyd 2live4] Here is what I understand based on Pascal.

^ easy question: access module/class outside of current scope
267942 [jtprince gma] I've seen someone do this, but I forget how it is done and I can't
267957 [angus quovad] [bwv549 <jtprince@gmail.com>, 2007-09-06 21.05 CEST]

^ Using telnet to determin which service is running in ruby?
267948 [kazaam oleco] $(sleep 1; exit) | telnet ubuntuforums.org 22

^ OpenSSL
267950 [damnbigman g] Does anyone know of a useful reference for Ruby's OpenSSL libraries?  I'm
267962 [damnbigman g] Okay, after increasing frustration and trying the ssl.connect again I get an

^ Re: Count and Say (#138)
267953 [phrogz mac.c] In case the string gets quite long, what is the canonical English
+ 267955 [aledonne.lis] I was taught in the US that "and" in a spelled out number designates
+ 267961 [martindemell] I'd say "ONE HUNDRED AND ONE", but you could always add it as a parameter
+ 267963 [cmshea gmail] I've always felt that the answer to the question "What is the smallest
+ 268013 [james graypr] This has come up in past quizzes.  Here's a line of thought from and
  268265 [ruby thomasz] Hehe... I used that for Integer#to_english. That made solving this
  268275 [james graypr] Sure can.

^ How to make mutt show [ruby-talk] on the index (was: subject line)
267954 [angus quovad] [Chad Perrin <perrin@apotheon.com>, 2007-09-05 16.10 CEST]
268101 [perrin apoth] I imagine that'd be aesthetically kind of noxious, with the way only one
268129 [angus quovad] [Chad Perrin <perrin@apotheon.com>, 2007-09-07 15.23 CEST]
268132 [perrin apoth] I wasn't aware that would insert it into the same column.  Oops.

^ force output during long process
267960 [jtprince gma] I'm running a long process and need to give some feedback to the user
267965 [cmshea gmail] To flush the buffer, use $stdout.flush

^ Once again: Interest in "Cologne/Bonn Ruby Users"?
267966 [ jupp gmx.de] Once again I wish to ask if there are people interested in such a
268066 [mneumann nte] Yeah, I'd participate! But only if it's within the next three weeks ;-)

^ NArray Gem?
267967 [benjohn fysh] Am I missing the obvious here? Is there not a gem for narray?
+ 267972 [tim.pease gm] Correct. NArray is an old-fashioned regular ruby install into the
+ 267973 [Bil.Kleb NAS] No and no.
  268128 [benjohn fysh] Thanks Bil and Tim. Could it be a gem, or is that not possible?

^ How do I exit my program at any time?
267971 [nitrohelgso ] if answer == 'exit'
+ 267975 [martindemell] def get_input(prompt)
+ 267976 [phrogz mac.c] On Sep 6, 3:15 pm, Helgitomas Gislason <nitrohel...@hotmail.com>
+ 267977 [tim.pease gm] Redefine gets to do what you want ...
  267981 [nitrohelgso ] Thank you very much, people. I really appriciate it.
  267992 [JeremyWoerti] wow, I like their ideas better. I was gonna say, put the whole program

^ Re: Twisting a Rope (#137)
267982 [jfmiller28 y] I'm very sorry that this quiz ended up coming out over the labor day
268038 [rubify softo] At least two implementations did this (James Koppel's and mine). OTOH this
268091 [eric.mahurin] I'd think you'd treat depth as log2(length) and do something similar.
268125 [rubify softo] In reality all in-time short-cut  rebalancings will perform worse than the

^ RE : [ANN] VimMate 0.6.4
267985 [guillaume.be] "Install the Ruby bindings to GTK and GNOME (for the VTE terminal). [...]

^ RE : VimMate 0.6.4
267986 [guillaume.be] As far as I know, it doesn't work under Windows... But, it might be
268185 [bigboss64 ip] If I had to use an IDE, I think that would be it.

^ Reg Ex
267989 [chuckdawit g] I'm querying through the .com's looking for any www name with Cisco in
+ 267991 [diego.suarga] I don't know if you need to check the caps, but your regex could be /cisco/i
+ 267993 [fxn hashref.] /\b((C|c)isco|CISCO)\b/
+ 267998 [arifsaha yah] /\b([Cc]isco|CISCO)\b/
| 268059 [diego.suarga] The boundaries could be a good idea, but if he needs urls like
| 268072 [shortcutter ] I'd probably use a second rx like
| 268122 [koflerjim ma] Maybe also try something like:  print line if line =~
+ 268147 [phrogz mac.c] Instead of modifying the regex, how about simply working on the data
  268703 [chuckdawit g] dnsfile.each { |line| newfile.puts line if line =~
threads.html
top