267469-268229 subjects 267942-282604

Error during eval()
267778 [lholtkamp@mo] We embedded Ruby 1.3.29 in a Windows XP application, and sometimes we
267799 [jan.svitok@g] Can you check line #3702 of your eval'ed script if there's "write" by
267869 [lholtkamp@mo] Yes, the 1.3.29 is indeed SWIG, sorry for the confusion
+ 267877 [jan.svitok@g] 1. Ruby redefines write/read functions. (#define write(f,x,y)
+ 267997 [nobu@ru y- a] Cygwin runtime and msvcrt don't share file descriptors.
  268501 [lholtkamp@mo] Ok, I build ruby myself, and I installed the windows version of SWIG.
  268616 [nobu@ru y- a] Mingw/VC6 and VC8 are not compatible.  Dont' mix them.
  268635 [jan.svitok@g] I guess that's not a problem - SWIG just generates wrapper source
  268767 [lholtkamp@mo] We have that now.

before, after and around Ruby 1.9
267783 [transfire@gm] Any chance Ruby 1.9 will have before, after and around method
267816 [matz@ru y- a] No.  Wait for 2.0 for built-in method combination.  The vague plan is
+ 267818 [lionel-subsc] Does it mean that we won't be able to call the ancestor's implementation
| 267819 [matz@ru y- a] I am not sure what you mean by monkey-patching.  At least you can call
| 267820 [lionel-subsc] So obvious I didn't saw it :-) Thanks.
+ 267821 [ymendel@po o] Very interesting.  Using 'super' in this way lets you easily have
+ 267825 [vjoel@pa h. ] What if you want to reopen _without_ the "around" semantics? Could we
| + 267828 [matz@ru y- a] I thought we need to remove the previous one first.
| | + 267837 [rick.denatal] super for this new usage just doesn't feel right to me.
| | | 267847 [binary42@gm ] Kind of ugly. I'll stick with my def thanks. I did like some of the
| | + 267909 [transfire@gm] How would you be sure (and why would you want to?) know when a
| |   267938 [robert.dober] Inheritance dependecies, oooouch, danger, hot do not touch!
| |   + 267939 [robert.dober] Ahh the emotion go the better of me ;)
| |   + 267949 [transfire@gm] Well, that was kind of my point. As often as this is useful, so is
| |     268057 [robert.dober] Maybe I read you wrong, there should be a way for metaprogrammers to
| |     268086 [transfire@gm] Yes, that's a common consideration, but there's a subtle reason why
| |     268217 [robert.dober] Hmm maybe yes, the VM could simply recompile the method, OTOH if Ruby2
| + 267852 [dan-ml@da 42] +1
| | 267930 [benjohn@fy h] keen on this approach though I find the simplicity alluring.
| | 268003 [rick.denatal] Yes, I totally agree, this is a real problem. I fear that things will
| + 267905 [transfire@gm] Almost an anonymous cut.
|   268073 [rff_rffREMOV] shouldn't this work as expected in this case?
+ 267846 [m_goldberg@a] Perhaps to avoid overloading 'super', you might use 'previous' or
| 267898 [matz@ru y- a] Interesting idea, especially knowing Common Lisp Object System uses
| 268012 [james@gr yp ] I believe Perl 6 takes a similar approach using the `next` keyword/
+ 267902 [transfire@gm] After my very own heart! I think that's a great approach. And I will
+ 268099 [binary42@gm ] ...
| 268184 [rick.denatal] Just to try to crystalize my own thoughts about this in general. I'm
| 268561 [pit.capitain] Rick, I don't see a way to solve this problem. If you add around
| 268594 [rick.denatal] Yes, my concern is that because there's been so much clever use of
| 268617 [pit.capitain] This is a valid concern. Integrating AOP in the language can be seen
| 268724 [rick.denatal] Here's the sequence dependency I'm concerned about.
| + 268730 [dan-ml@da 42] Actually it will only produce "And now a word from my superclass!" I
| + 268819 [transfire@gm] class B
| + 268835 [binary42@gm ] class B
+ 268259 [chneukirchen] BTW, do you know how Simula uses "inner"?
  268264 [logancapaldo] He might, but I don't and couldn't find it by googling, so I'd love
  268268 [rff_rffREMOV] AFAIK "inner" in simula is similar to "inner" in Beta, and is some kind of
  268270 [rff_rffREMOV] C.new
  268272 [logancapaldo] Interesting, but what if C has more than one subclass?

Please help unable to install hpricot gem
267784 [jaboza@gm il] learning ruby  for a couple of months now, now to the point.
+ 267785 [lyle.johnson] Hope this helps,
| 267788 [jaboza@gm il] 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] ...
|   267794 [damnbigman@g] ...
|   267795 [jaboza@gm il] Thank you Lyle and Greg I'll install the xcode tools
+ 267786 [damnbigman@g] ...

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

267796 [znmeb@ce ma ] 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@en g] The dynamic nature of the method dispatch.  The overall implementation --
271288 [rogerpack200] Thanks Kirk.
+ 271298 [garbagecat10] ...
| + 271301 [matz@ru y- a] Thank you for kind words.  I have been sick of slowness claims based
| | 271389 [znmeb@ce ma ] Yes indeed!
| + 271372 [charles.nutt] The fact that classes are open doesn't really impact Ruby performance
| | + 271381 [matz@ru y- a] 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@sp m. le ] 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@sp m. le ] True, but lack of memory pressure enables you to keep the whole
| |   | 271471 [perrin@ap th] 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@ce ma ] Which is why they teach data structures in computer science class. It's
|   + 271398 [znmeb@ce ma ] OK ... so ... is Twitter in trouble?
|   + 271434 [garbagecat10] ...
|   | + 271436 [bh@iz .k u. ] [...snip...]
|   | | + 271473 [perrin@ap th] I rather strongly suspect that you are not a psychologist -- and that,
|   | | + 271480 [garbagecat10] ...
|   | + 271478 [garbagecat10] ...
|   + 271476 [perrin@ap th] 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@se ni .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@gm il] Dir.entries("/")
+ 267802 [gregory.t.br] Dir["/jpg_image.*"]
| + 267803 [whitethunder] ...
| + 267805 [eggie5@gm il] Confirmed.
+ 267806 [Bil.Kleb@NA ] Dir['1_1.*']

Re: Compiling ruby-1.8.6 on CentOS-4.5 with readline and ope
267801 [byrnejb@ha t] I have discovered that running ./configure with the options
267811 [znmeb@ce ma ] I basically gave up trying to add open-source packages to RPM-based
267814 [cmdjackryan@] Or you use checkinstall. ;)
268137 [byrnejb@ha t] 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@ce ma ] I think vim syntax coloring highlights xx-end pairs, and Komodo's
| 267812 [lists@be tr ] 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@cf ne] I've been working all day on this(I might just be useless today) but I
267829 [nobu@ru y- a] You use C++ compiler.  Symbols in C++ object files are mangled
267910 [cwoods@cf ne] 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@gm i] 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@gm i] Woah. How you drew it and how I mentally pictured it were two different
| 267848 [list.rb@gm i] ...
+ 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@gm i] ...

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@ru y- a] 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@pa h. ] irb(main):001:0> a = :foo.to_s
+ 267886 [vjoel@pa h. ] Setting aside the question of freezing, why can't ruby share string data
| + 267887 [vjoel@pa h. ] Sorry... _reduce_ garbage, not avoid it altogether, since there is still
| | 267894 [vjoel@pa h. ] Sorry again... I don't know where T_DATA came from. Should be T_STRING,
| + 268043 [dan-ml@da 42] Hmm, we could use that property of strings...
+ 267893 [khaines@en g] Absolutely.
+ 268002 [evanwebb@gm ] 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@ti yc ou ] 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@] ...
267875 [diego.suarga] ...

[SUMMARY] Twisting a Rope (#137)
267870 [james@gr yp ] 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@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 268283 [ jupp@gm .d ] ...
| + 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@br de i] Here's my solution. Coincidentally, it uses the same
| | 268296 [john.baylor@] ...
| + 268330 [ jupp@gm .d ] Seems as if something got broken 8-|
+ 268360 [rubify@so to] I decided not to miss all the fun, and implemented my own spelling not
| 268487 [james@gr yp ] => ["one", "two", "three", "..."]
+ 268508 [adam.shelly@] My solution follows.  I rolled my own integer to word routine.  The

Lone Star Rubyconf Ticket
267872 [james@gr yp ] 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] ...

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@vi eo ] 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@NA ] I know, I'm slow, but I finally figured out the minimalistic
+ 267904 [vjoel@pa h. ] It's nice to have that for very short scripts, but for about 50 LOC you
| 267979 [ari@ar br wn] A really nice tool I stumbled on while e-stalking Ara Howard (hehe
| 267994 [vjoel@pa h. ] Just took a look at it... very powerful. It handles arguments (things
+ 268004 [nobu@ru y- a] and mkconfig.rb and win32/{mkexports,resource}.rb too.
+ 268008 [james@gr yp ] James Edward Gray II

Where is the definition of File.read()?
267911 [optman@gm il] 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@gm il] 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@gm il] Method #put is from Capistrano, which upload file to remote server by
| 268040 [Christopher.] ...
| 268051 [optman@gm il] Good article!
+ 267932 [w3gat@nw ag ] file_in = File.new("input_file","r")

Problems with SSL LDAP connection on Windows
267918 [damnbigman@g] ...
267923 [damnbigman@g] ...
267943 [damnbigman@g] ...

267921 [email2nilez@] ...

[ANN] RubyConf 2007 registration is now open
267925 [dblack@ru yp] Enjoy!
+ 267937 [wilsonb@gm i] 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@gm i] Thanks for the heads up, I might have missed this. All registered,
  + 268067 [dblack@wo bl] 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.

Is this a bug or a feature?
267941 [martialis@bi] irb(main):002:0> i=1
+ 267944 [whitethunder] ...
+ 267945 [wilsonb@gm i] What other behavior would you want, and why?
| + 267947 [mark@oc we .] ...
| | 267959 [dblack@wo bl] 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@ma .c] if foo() then
| + 267952 [kazaam@ol co] 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@gm ] 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@2l ve ] Here is what I understand based on Pascal.