241264-338770 subjects 241690-242949

^ Ruby/erb S5 Helper?
241462 [schapht gmai] I had a thought today about trying to create a ruby DSL for
+ 241464 [jeff.barczew] ...
| 241469 [schapht gmai] Cool, good advice so far.  I'm still not seeing quite what I'm
| 241877 [boss airblad] the preparation of a talk he gave.  You can find it here, mentioned
+ 241466 [cdcarter gma] Chris Carter

^ RubyInline
241477 [mark ociweb.] I'm using RubyInline-3.6.2 and am having trouble getting this simple
+ 241502 [ryand-ruby z] First off, this isn't the right forum for reporting something like
| + 241507 [gregory.t.br] This is starting to be a real problem, in the sense that bug reports
| | + 241515 [vjoel path.b] Is this really a problem?
| | | 241523 [gregory.t.br] I just feel like the best help you can hope to get on projects is from
| | + 241550 [ryand-ruby z] Gregory, I couldn't agree more. I've missed a number of things
| + 241534 [mark ociweb.] I'll admit to why I did this. It's probably the reason you would
|   + 241540 [ara.t.howard] for rubyforge projects you can post bugs anywhere if you have a login.  no
|   + 241549 [ryand-ruby z] Filing a bug != subscribe to mailing list.
|     + 241554 [vjoel path.b] I guess my point is that people file bugs that aren't. Every now and
|     + 241560 [mental rydia] Non-rhetorical question: personally, do you prefer users to file bug reports, or do you prefer them to ask questions when they are in doubt whether an error they are seeing is the consequence of a bug or their own mistake?
|     | + 241563 [drbrain segm] Bugs.  If people file multiple bugs for the same not-a-bug on my
|     | + 241579 [halostatue g] It depends. Certain things are complex enough that I want questions
|     + 241582 [mark ociweb.] I understand that, but I didn't initially think I was reporting a
+ 241936 [B.Candler po] Running exactly what operating system and version, and what version of ruby?
  242030 [mark ociweb.] ...
  242087 [B.Candler po] On my machine, the context is

^ Firewatir and textarea
241481 [aeldaly gmai] Anyone experiencing problems using firewatir and trying to fill a

^ Hash keys don't work as expected
241482 [dankee gmail] keys are immutable, so I was surprised that Ruby's were not.  When I
241483 [rmagick gmai] ri Hash#rehash
241484 [dankee gmail] Ah, thank you.  Why is this necessary?  Isn't the lookup just a matter
241486 [rmagick gmai] Remember that hash values are distributed into buckets based on their
241490 [shortcutter ] More precisely if the hash of the key changes the bucket changes.  And
241494 [robert.dober] which all is necessary in order to have mutable keys, I guess that it
+ 241518 [dankee gmail] I understand now.  I can see how looking up keys by their hash rather
+ 241565 [rick.denatal] Actually it doesn't spring directly from supporting mutable keys, but
  + 241570 [robert.dober] I missed that one too :)
  | 241985 [dankee gmail] I don't know what goes on under the hood.  Because the keys are
  + 241625 [shortcutter ] Btw, there is an optimization going on under the hoods: unfrozen Strings

^ [ANN] RubyOSA 0.3.0
241487 [laurent.sans] I am honored to announce the immediate release of RubyOSA 0.3.0.

^ Gui Builders for Ruby
241496 [kyleaschmitt] This maybe a bit off topic, and is really more of a discussion question but...
+ 241649 [boesemar gmx] Have a look at Glade (ruby-libglade2).
+ 241697 [david vallne] ...
+ 241767 [meinrad.rech] the foxGUIb docs don't suggest that the application logic classes
+ 241805 [alex deletem] With wxRuby you can use any of a number of free and commercial designers and save the results as XRC. It's an XML format describing the layout; you load it in Ruby and hook up the event handling etc logic there. It's a similar idea to Glade, except it gives you native widgets on Windows and OS X.

^ [ADV] Erlang book is in beta...
241499 [dave pragpro] I love Ruby--I've done all my serious (and most of my not-so-serious)
+ 241513 [james.britt ] Sweet.  Any plans for a Haskell book?
| + 241522 [dave pragpro] I'd love to do one.
| | 241527 [robert.feldt] ...
| | 241567 [binary42 gma] I'd say it would be a bit soon for an Io book since I still pull down
| | 241583 [robert.feldt] ...
| | 241609 [dave pragpro] I'd love to see proposals on IO, Haskell, and OCaml.
| | 241618 [perrin apoth] . . . especially if the OCaml book comes with an OCaml compiler that is
| + 241875 [rasputnik gm] That's just what I was going to say. This one looks great though, thanks
+ 241528 [hutch recurs] Oh this is *very* cool!
| 241562 [gethemant gm] Awesome.
+ 241568 [farrel.lifso] Awesome. I've been meaning to learn Erlang for a while now. I'm
+ 241585 [fugalh ziane] Excellent! It just so happens I am gearing up to learn Erlang. What
+ 241602 [foamdino gma] my +1 also - I've worked through the Erlang tutorials but haven't
+ 241919 [Bil.Kleb NAS] Ordered.
  242056 [davekapp gma] ...

^ using 'require'
241510 [pbailey bna.] A simple question . . .
+ 241521 [rajsahae gma] There are a couple ways to solve this problem.  I don't know if there is
| 241535 [pbailey bna.] Raj,
| + 241538 [rajsahae gma] I have no idea why that would happen.  The exact excerpt that I use in
| + 241959 [B.Candler po] $:.unshift("c:/myfolder/")
|   247970 [rogerpack200] you could try
|   247971 [rogerpack200] So it seems that if you require a ruby file that is in your local
+ 241530 [rmagick gmai] Ruby searches for required files in a search path that is defined when
  241537 [pbailey bna.] That worked, Tim. Thanks. I just put my file into ../ruby/lib/1.8. Cool.
  247972 [cohen.jeff g] Matz, if you're out there -- could 1.9 change the default behavior of
  247976 [cdcarter gma] On my machine '.' is in the loadpath.
  247988 [dangerwillro] on my PPC Mac and on the Dreamhost Debian Linux servers,
  248015 [renard nc.rr] On Apr 15, 3:25 am, John Joyce <dangerwillrobinsondan...@gmail.com>

^ shutting irb up
241517 [ara.t.howard] i looked forever, didn't find this, and am posting for posterity
242385 [drosihn gmai] ...
242966 [vjoel path.b] irb(main):027:0> IRB.conf[:PROMPT][ IRB.conf[:PROMPT_MODE] ][:RETURN]
243177 [matt.mower g] ...
+ 243183 [rick.denatal] I put this in my .irbc
+ 243216 [vjoel path.b] Works for me with the same irb version as yours, and ruby-1.8.4 and also

^ [ann] rb-appscript developments (Ruby-AppleScript)
241526 [has.temp3 vi] Just thought I'd mention a couple new items of interest to Mac OS X-

^ Bug Reporting (Was: RubyInline)
241531 [drbrain segm] Yes.  For example, for RubyGems there are many bug reports here (and
241559 [tpo2 sourcep] Maybe I can provide an anecdotical data point. Last time I reported a

^ fxri
241532 [zeeman11 gma] require "c:\myWork\motor.rb"
+ 241539 [halostatue g] 1. You don't generally want to use Windows-style paths at all.
| 241548 [zeeman11 gma] Great, thanks.
+ 241547 [stefano.croc] I assume you're speaking about the irb session embedded in fxri. If I'm wrong,

^ Using openssl
241536 [lukeivers gm] I'm trying to run ruby extconf.rb in ext/openssl, and I get the
241544 [lukeivers gm] Answered my own question, at least

^ myspace api plugin..
241541 [sergio villa] hey, guys ..
241604 [rsanheim gma] Is there actually a myspace API?  I figured all the myspace devs were
241605 [sergio villa] they don't have an api.. but i know there was a perl project to do it

^ Open a URL in a new browser tab?
241553 [no spam.plea] Sounds like the sort of thing that must already exist, but I can't
+ 241749 [no spam.plea] Can it really be that I'm the only person that's ever wanted this?
+ 241756 [sepp2k googl] Does "all major platforms" include Linux/Unix? If so, how do you find out what
  + 241760 [dangerwillro] Code for each browser is most appropriate, but some browsers lie or
  + 241762 [no spam.plea] The browser will often be already running, and I expect that most X11

^ wiki.rubygarden.com down?
241566 [stephan froz] Hey guys,
241589 [chad chadfow] attention.
244191 [mkasick-rt c] Proxy Error

^ Chattr Gem released (new, 0.9.0)
241572 [no spam.plea] Folk,

^ New to Ruby : Can anyone help
241578 [studentfj ya] I am new to Ruby.
241584 [GGarramuno a] What you are asking really has little to do with ruby, but more about
241639 [pit capitain] You could also look at AutoIt (http://www.autoitscript.com/autoit3). I

^ [ANN] Ruby-doc.org search for your browser toolbar
241587 [james.britt ] Thanks to Greg Whiteley, ruby-doc.org has a slick new feature.
+ 241597 [james graypr] Forgive my subject change, but can I ask why the Core documentation
| 241608 [james.britt ] What's there is simply the output of running rdoc over the main source,
+ 241685 [rick.denatal] Any chance that someone with the right mojo might help us poor
+ 241745 [botpena gmai] indeed. ruby-doc is getting better and better. great doc + great

^ String.each
241591 [yannick_gram] I'm fairly new to Ruby, and I'm trying to write a program that looks at
241593 [ara.t.howard] str.each(separator=$/) {|substr| block }        => str
241615 [robert.dober] I'd like to add two remarks
241629 [shortcutter ] Yeah, String's enumeration is a bit weird and inconsistent.  Using a
+ 241630 [robert.dober] Thx Robert,
| 241859 [shortcutter ] Probably never. :-)  Honestly, I don't consider myself an expert in the
+ 241687 [rick.denatal] Ruby 1.9 has added String#each_char

^ help with FXDialogBox
241595 [rajsahae gma] I want a DialogBox where I can click a button, perform some operation,
+ 241596 [rajsahae gma] I fixed a typo in the code
| 241603 [rajsahae gma] FXButton.new(rows[index/CPR], nil , icon, self, ID_ACCEPT,
| 241704 [rajsahae gma] Nobody on this one?
| 241712 [rajsahae gma] Ok I gave up doing it with a DialogBox and now I'm just using another
+ 241849 [lyle.johnson] I don't know what "self" refers to in this context, but for the moment

^ YAML issue with Set?
241599 [piergiuliano] What am I doing wrong?
241686 [stefano.croc] As far as I can tell (I'm not a YAML expert), no. I've made a few trials, and
241722 [piergiuliano] Thanks, this makes a lot of sense. I'll stay away from Hash-based

^ Launch action after auto_complete_for text field has been validated
241600 [nhinze gmail] Dear all,

^ File Question
241607 [yannick_gram] This is a rather strange request, but here goes. I'm writing a program which
241613 [ruby.hardwar] Can you show some code?
241619 [yannick_gram] First, a small explanation. Some of you may have heard of ASCII art. It
+ 241620 [perrin apoth] That's a limitation of Notepad.
| 241623 [yannick_gram] Do you have any suggestions?
| 241626 [perrin apoth] In my personal experience, SciTE is excellent.  Even WordPad doesn't
| 241627 [yannick_gram] I write all my Ruby programs in SciTe: it's the output that's going to
| 241628 [sepp2k googl] I thought the output goes into a textfile. Do you actually call notepad from
+ 241621 [yannick_gram] P.S. Sorry for the double post, but I forgot to mention that in order to
+ 241631 [shortcutter ] ** SPOILER **
  241635 [yannick_gram] Thankyou very much for the helpful hints. A quick question: how long does it

^ Boy I love the Ruby community
241610 [dave pragpro] On any other language list, if I announced a book on a different
+ 241612 [why ruby-lan] You should do one on VBScript.  I'd like to see what that reaction
| + 241614 [robert.dober] Do not fear on *this list* nobody knows what VBScript is.
| + 242097 [eleanor game] A couple of years ago when I was doing real-time VB I'd have been up
|   242100 [shortcutter ] Ouch!  Did you mention "real time" and "VB" in one sentence?  I know
|   + 242130 [avdi avdi.or] Well, writing apps in VB can take a real(ly long) time...
|   + 242251 [eleanor game] To the best of my knowledge I'm the only person who's ever had a pure
|     242257 [robert.dober] You mean you can use it inside an airplane, right. Not to operate an
|     242259 [eleanor game] It was a cockpit navigation/mission planning system, so in theory yes
|     242269 [shortcutter ] What happened to it?  Was it one of the many IT projects that got
|     242277 [eleanor game] Oh no, it made it into production: http://www.skyforceobserver.com/
+ 241624 [pergesu gmai] I agree that the Ruby community rocks, but a big reason for the warm
+ 241655 [ramalho gmai] Comming from the Python community, I don't think pythonistas are more
| + 241656 [robert.dober] Well I did not really notice but it is sad news that you feel like it,
| | 241667 [robert.dober] Nobody's going to tell me ;), boy I had to google all by myself
| | 241669 [avdi avdi.or] No, not *that* Dave Thomas.  Note that that page is about the guy who
| | + 241673 [deanwampler ] Ya gotta love Wikipedia!  ;)
| | | 241680 [robert.dober] Look at my sig :)
| | + 241678 [robert.dober] Oh boy, thanx for putting that right.
| | + 241785 [rick.denatal] You beat me to it.  I knew the OTI Dave Thomas long before I
| + 241663 [james.britt ] Interesting.  My view is that Python questions/comparisons on ruby-talk
|   + 241670 [ramalho gmai] Yes, Matz is very nice, it was wonderful to meet him. So are most
|   + 241727 [TimHunter nc] Matz personally answered my very first post to ruby-talk. That was Feb
|   + 241743 [perrin apoth] Those are some excellent examples of nice people who are community
|     + 241803 [perrin apoth] There still is a thriving Perl community.  Check out PerlMonks, for
|     + 241804 [perrin apoth] He's involved in more than Perl 6.  He also occasionally participates in
|     + 241806 [perrin apoth] I made a very flippant, fairly public prediction that we'd see something
|       + 241814 [rimantas gma] Isn't that the same Setve Yegge who called Perl an ancient language, said
|       | 241818 [perrin apoth] Yeah.  I never said he was always right.
|       + 241850 [perrin apoth] Perl 6 is actually a pretty significant departure from even Perl 5, let
|         + 241865 [perrin apoth] Um, yes.  Thank you for that thoughtful analysis.
|         | 241886 [robert.dober] Of course that is somehow normal between civilized people :)
|         + 241878 [perrin apoth] Hey, if you don't like things with the name Perl on them, or only learn
|           241983 [perrin apoth] Well, that makes sense.  I'm not learning it right now, either.  I'm
+ 241661 [james.britt ] You haven't announced that PHP book yet.  Followed by Agile Web
+ 241737 [greg.kujawa ] I would agree. Out of the various languages I've worked with (or at
| 241944 [sonoflilit g] I agree full-heartedly.
+ 241738 [greg.kujawa ] I would agree. Out of the various languages I've worked with (or at

^ [Mac OS X] Ruby as an alternative to Applescript article
241616 [rf.oodanaw s] There is an article on O'Reilly's MacDevCenter about rb-appscript
241633 [rf.oodanaw s] Sorry, I forgot an essential include (include Appscript). With

^ [ANN] Vim/Ruby Configuration Files, 2007.03.02
241617 [dougkearns g] G'day folks,
241708 [martindemell] dabba ~ # gem install vim-ruby
241714 [martindemell] Was a problem with my rubygems - sorry for the noise

^ Ruby & ODF
241632 [stephane.wir] [Sorry, but I don't find my precedent post on this subject in the

^ Re: Ruby as an alternative to Applescript article
241636 [has.temp3 vi] You're referring to the .dmg at <http://rubyforge.org/frs/?

^ Smart Way Thinking (was: Re: File Question)
241637 [shortcutter ] Um, that's a much more difficult question than the other one. :-)  The
241638 [yannick_gram] Well, I'm not interested in programming seriously. I just do it as a hobby.
241641 [shortcutter ] CHARBLOCK = {
241642 [yannick_gram] Thankyou very much for all your help! You've saved me a lot of copying and

^ Question about attr_accessor
241648 [roland.swing] I came across something unexpected today, and wondered if anyone could
+ 241650 [boesemar gmx] If you use just 'bar' it will think of a local variable which is not defined.
+ 241652 [ruby.hardwar] attr_accessor :bar refers to the instance variable @bar.
+ 241653 [dblack wobbl] For methods that end in = (like bar=), you always need an explicit
| 241659 [roland.swing] Great - thanks for clearing that up.
+ 241654 [shortcutter ] bar += 1 is translated to "bar = bar + 1".  When Ruby sees "bar =" it

^ [ANN] Rack 0.1, a modular Ruby webserver interface
241651 [chneukirchen] Today I'm proud to release Rack 0.1.
241724 [sean.ohalpin] Nice one Christian!

^ Re: Erlang book is in beta...
241662 [GGarramuno a] So, I have to ask.  There's already some good and fast multithreading

^ Making one gem of many
241665 [transfire gm] Any chance of getting RubyGems to support the packages/ dir that's

^ define a function inside a method
241666 [o.renaud lap] class Ga
+ 241674 [shortcutter ] The issue here is (apart from the missing "end" in your piece above)
| 241677 [o.renaud lap] Thanks, this is perfectly clear !
+ 241679 [gavin refine] class Foo
+ 241689 [pit capitain] In addition to the other answers, if you really want method-internal

^ How to download file from web site
241668 [TimHunter nc] Okay, it's easy to download a file from an FTP server with Net::FTP.
+ 241671 [ara.t.howard] require 'open-uri'
| + 241672 [TimHunter nc] Thanks again, Ara!
| | 241676 [ara.t.howard] no way - thank you!  i'm preparing a class right now, here's one of many
| | 241684 [TimHunter nc] You're welcome!
| | 241692 [james graypr] I just spent about a day fixing my RMagick install (on Mac OS X),
| | 241700 [TimHunter nc] Ouch! Sorry you had trouble. Email me when you have a problem, James.
| | + 241707 [james graypr] No worries.  It wasn't your fault.  I broke it.
| | + 241748 [ezmobius gma] rmagick on OSX without using macports. Feel free to use it if you want.
| |   241774 [TimHunter nc] Thanks, Ezra! That's a very nice gift. I'll incorporate all the best
| + 241778 [Bil.Kleb NAS] He asks naively...
|   + 241779 [james graypr] So you don't try to slurp a very large file into Ruby's memory I'm
|   + 241781 [ara.t.howard] well, this will do it too
|   + 241797 [vjoel path.b] It does seem too low-level, doesn't it? Especially in the same snippet
|     241799 [ara.t.howard] io.relay another_io, bufsize
|     241813 [shortcutter ] Yes, although I'm not sure whether "relay" is immediately clear to
+ 241675 [shortcutter ] You might be surprised to learn that there is also Net::HTTP...