289346-332188

289132-289808 subjects 289508-291721

Ruport Book pre-orders shipped
289346 [gregory.t.br] Sorry for the noise if this doesn't apply to you, but I want to make

Gedankenexperiment on method duck type safety
289355 [timocratic@g] *braces for the flames to follow*
+ 289361 [phil@s1 6. e] i'm curious if there is a better (in the means of faster) way to
+ 289372 [eeklund@gm i] See code implementing something similar at
| 289381 [timocratic@g] I like your warning in the readme: http://people.freebsd.org/~eivind/ruby/types/README
| 289568 [eeklund@gm i] Yes, though this may be due to me not having learned when to apply
+ 289384 [shortcutter@] I tend to believe that this approach is at least ill named - if not
| 289396 [wieczo.yo@go] ...
| 289408 [timocratic@g] articles/2007/10/22/chicken-typing...
+ 289461 [dan-ml@da 42] A lot of other people have gone down this road, but patching "static"
  + 289475 [shortcutter@] Right.
  | 289509 [wieczo.yo@go] Though I think that is_a? should be used sparsely. I like the idea of
  | 289570 [stiv.thomas@] The first thing that comes to mind, and this may say more about the
  + 289526 [timocratic@g] Yeah, that was my main point all along; to see what I'd learn about
    289544 [rick.denatal] Yes, and that happens with statically typed languages, actually those

memory considerations when parsing XML file
289356 [tiberiu.moto] I need to quickly parse a large XML file. I didn't want to use DOM
289359 [tiberiu.moto] I'm sorry for rushing with the post. I just read that parse_stream
289380 [shortcutter@] And the idiom should rather read

How can I save the current browser title to a variable?
289362 [dduphorn@re ] I'm new to Ruby, but I cannot find a way to get the browser title.
289404 [greenewm@ya ] This depends on the relationship between your Ruby code and the

GUI for a newbie
289364 [hibridmatthi] I have taken up Ruby over the past year and have finally written 7
+ 289367 [vjoel@pa h. ] Does it affect your decision that Nokia just bought the company that
| + 289376 [hibridmatthi] It doesn't really affect my decision per se...
| | 289463 [dirk.traulse] Qt is a good choice, but did you have a look at WxRuby?
| | 289491 [mark@ma kr s] Despite some evidence and much opinion to the contrary, modern versions
| + 289836 [hibridmatthi] I just wanted to thand everyone with your two cents; it helped me make a
|   + 289858 [rubynando@ya] About QT, you need to take into account that it's free only for Open
|   + 289873 [greg.kujawa@] On Feb 4, 3:38=A0pm, Matthew Borgeson <hibridmatth...@sbcglobal.net>
+ 289368 [stefano.croc] In my opinion Qt is easy to learn (although, I admit I used it in C++ before
+ 289369 [Reid.Thompso] Using GTK, you could build the gui with Glade
| + 289371 [stefano.croc] Qt include a designer, which does (I think) the same things glade does.
| + 289782 [brainychip@g] ...
+ 289403 [danielsson.l] Since nobody seems to have done it yet, let me place a +1 for Tk. I'm
| + 289433 [raffaele_tes] give a look to Shoes, powered by _why (a top guy)
| + 289447 [dominikho@gm] imo, Gtk is very straightforward to program/learn. Don't know about Tk though.
|   289450 [raffaele_tes] "Arcadia is a Integrated Development Environment (IDE) for Ruby language
+ 289514 [williams.jay] I cast my lot for Tk. I spent a great deal of time looking for a GUI
| 289547 [greg.kujawa@] I had similar experiences a few years ago. Tk seemed to work "out of
| + 289585 [dangerwillro] A quicker easier way? Well, that's a good question, initially, I
| | 289592 [znmeb@ce ma ] *  gnustep-libs/rigs
| | 289652 [dangerwillro] Ed you're a saint!
| | 289653 [znmeb@ce ma ] Well ... before you canonize me too quickly, see
| + 289726 [williams.jay] I would agree %100 with your comparison of C# and Ruby. Ruby almost
|   289886 [mo_mail@on h] Actually, WideStudio has drag-and-drop and can als0 do some of the
|   290947 [perrin@ap th] I'm sure part of the reason for that is that it's not in either the
+ 289896 [dan@ep rk ab] I have enjoyed using jRuby with Monkeybars. You can use the NetBeans IDE
+ 307924 [hibridmatthi] Well, I want to first thank you all for your opinions regarding my
  308144 [williams.jay] To be honest, the reasons you probably will never making it to trying

problems trying to "make" it
289370 [a.c.alexandr] ...

Re: ZenTest 3.9.0 Released
289373 [nateclark1@g] Is anyone getting a massive memory leak when running autotest with the
+ 289407 [james.herdma] ...
+ 289416 [ryand-ruby@z] Yeah. that'd be me... I'm a tard.

how do you install a local gem?
289375 [bbxx789_05ss] wxruby-1.9.4-universal-darwin.gem.tar
+ 289378 [stefano.croc] gem install gem_file.gem
| 289386 [bbxx789_05ss] /Users/me/Desktop/wxruby-1.9.4-universal-darwin.gem.tar
| 289388 [stefano.croc] This seems even more strange. The file wxruby-1.9.4.tar.gz is not the gem
| 289398 [bbxx789_05ss] wxruby-1.9.4-universal-darwin.gem
| 289405 [jballanc@gm ] I recall an article on this recently (I believe from the Apple Developer
| + 289414 [bbxx789_05ss] Ok, I renamed the file, but I don't know how to "install as normal"
| | 289425 [bbxx789_05ss] ~/Desktop$ gem install wxruby-1.9.4-universal-darwin.gem
| | + 289516 [jballanc@gm ] try either
| | + 289518 [phrogz@ma .c] To be sure, could you output the listing of your desktop? (You're sure
| + 331950 [bbxx789_05ss] I finally got around to messing with this install again, and this time I
|   332000 [jballanc@gm ] You're welcome!
|   332063 [bbxx789_05ss] Your post was the key to the puzzle.  Thank you.
|   332076 [bbxx789_05ss] Ok.  I decided to go for broke and upgrade from ruby 1.8.2 to ruby
|   + 332077 [bbxx789_05ss] $ gem -v
|   + 332121 [drbrain@se m] Compare the RUBY EXECUTABLE entry from `gem env` to `which ruby`
|     332174 [bbxx789_05ss] $ gem env
|     332175 [bbxx789_05ss] $ find /usr -name 'wxruby*'
|     332188 [bbxx789_05ss] $ gem install -r BlueCloth
+ 326527 [daniel.gona@] on os x rename filename.gem.tar to filename.gem and install gem install

What's need to install RMagick on AIX
289377 [victor.reyes] ...
289389 [TimHunter@nc] RMagick 2: http://rmagick.rubyforge.org/rmagick2.html
289393 [TimHunter@nc] Grrr....http://rmagick.rubyforge.org/install-faq.html.
289469 [victor.reyes] ...

Do I need to Know C++ to use QTRuby
289382 [hibridmatthi] The KDE web site says to learn QT before using QtRuby, but when you go
289387 [stefano.croc] Your knowledge should be enough to use Qt from ruby. The Qt documentation is

[ANN] MiniExiftool 0.5.0 released
289397 [janfri.rubyf] MiniExiftool version 0.5.0 released!

New scripter looking for some buds
289406 [e.ian@ho ma ] I'm new to this ruby thing and was hoping I could find one or two other
+ 289456 [ashleywnj@gm] ...
+ 289470 [raffaele_tes] what type of database work/MUD?

SOAP::RPC::StandaloneServer failed in the thread
289410 [u8526505@gm ] NS = 'http://Test.com/Test';

[ANN] ZenTest 3.9.1 Released
289413 [ryand-ruby@z] ZenTest version 3.9.1 has been released!
+ 289426 [rsanheim@gm ] Out of curiosity, what was the source of the leak?
| 289530 [ryand-ruby@z] stupidity.
+ 289473 [james.herdma] ...

system command is wierd
289415 [junkone1@gm ] irb. when i have a space in the directory name, the irb system command
+ 289418 [ryand-ruby@z] compare what you're doing in both and notice how they're different.
+ 289419 [_mwryder@wo ] Have you tried system('dir e:\\"program files"') ?
  289420 [ruby@gm il c] ...
  289429 [nobu@ru y- a] dir is an internal command, and you can't use forward slashes
  289543 [ruby@gm il c] ...

sprintf bug?
289417 [dan-ml@da 42] machine1$ ruby -ve 'printf("(%*-s)\n", 10,"hello")'
289435 [shortcutter@] irb(main):002:0> sprintf "%*s", 10, "hello"

RubyGems and ENV vars ???
289428 [unbewusst.se] I'm working (on Mac OS X) with two installed ruby (apart from Apple
289457 [james@gr yp ] Your question is about TextMate, not Ruby.  It's covered in TextMate's =20=
289486 [unbewusst.se] Sorry but i disagree )))
289488 [james@gr yp ] Oh, in that case, your Ruby install is broken and I'm out of good =20

ONLINE TRAINING FOR  SAP AND NET WEAVER
289431 [madhu.hallma] Dear sir/madam,

Problem: Array.to_s return [["..."]] in 1.9.0
289432 [rollingwoods] I use Array.to_s convert to string. Ruby 1.9.0 return like [["sample
+ 289466 [thopre@gm il] ...
+ 289472 [gwtmp01@ma .] One option is to switch to Array#join, which also works for nested
+ 289566 [apeiros@gm .] Why do you use scan if you don't really want to scan?

What does $var mean?
289436 [magicloud.ma] I mean what kind of variable is $var? What is its 'domain'?
+ 289437 [stefano.croc] It's a global variable. This means it's visible from everywhere in your
| 289438 [shortcutter@] $ ruby -e '(1..2).map {|i| Thread.new(i) {|a| /\d+/ =~ a.to_s; 2.times
+ 289439 [wieczo.yo@go] Every variable with a $ is a global variable. You can learn more about

gem install problem
289443 [tomcloyd@co ] ...

gem install problem - II
289444 [tomcloyd@co ] ...

Re: how to get the name of parent object inside child object
289445 [raffaele_tes] i don't know exactly what you mean, but...
289460 [bad_good_lio] class Cycle
289468 [raffaele_tes] # something like this?
289554 [bad_good_lio] thank for the quick reply

gem install problem
289448 [tomcloyd@co ] ...

Desktop Application
289452 [hemlata@ri i] Can we make desktop application with ruby? If yes then how? I searched
+ 289453 [wieczo.yo@go] Heya!
+ 289492 [Reid.Thompso] ...
| 289556 [hemlata@ri i] Thanks, I will go further.
+ 289501 [james.britt@] Look into using JRuby with Monkeybars.
| 289532 [reami@ya oo ] Have a look at Ruby/TK (http://ruby.about.com/od/desktop/p/ruby_tk.htm)
+ 289561 [softmindtech] Pl. keep an eye on IronRuby. With IronRuby you can easily create all
| 289562 [hemlata@ri i] Thanks for your support.
| 291448 [ranieri.tx@g] ...
+ 291450 [cmdicely@gm ] A lot of people have suggested each of the major GUI toolkits. If you

Why gem built with hoe depends on hoe?
289454 [pluskid@gm i] I find hoe a cool tool to build and release gems. But I find that
+ 289462 [dangerwillro] Hoe's gotta eat too!
+ 289476 [luislavena@g] The argument behind this is that you can "gem check -t gemname" to run
| + 289478 [luislavena@g] [1] http://rubyforge.org/pipermail/rubygems-developers/2008-January/003522.html
| + 289558 [pluskid@gm i] Yeah! I see. I think apt-get (of Debian) has done a great job
+ 289571 [tim.pease@gm] You should look at Mr Bones. It does the same thing as hoe, but
  + 289678 [pluskid@gm i] Yeah! It looks great! Even with integrate with rspec. Hmm. I'll
  | 289681 [jeremymcanal] I use newgem, which sits on top of hoe (and removes it from the
  + 289979 [nyarly@gm il] On a related note, I wanted to share my own methodology.  I've got a

is this a complex encoding problem?
289455 [hello@ti pe ] Hey chaps,
289464 [bbxx789_05ss] For UNICODE-WIN and UNICODE-MAC, the tagged text file in its entirety
+ 289465 [bbxx789_05ss] If the file is going to be used on windows, you need to write \r\n at
+ 289467 [hello@ti pe ] Hey 7stud - the files indesign is exporting are utf16be, so i'll try and
  289471 [hello@ti pe ] Figured the without BOM thing by using
  289489 [hello@ti pe ] Ive done it :)

[QUIZ] Parsing JSON (#155)
289458 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 289474 [eric.mahurin] ...
| + 289477 [james@gr yp ] Neat idea.
| | 289479 [eric.mahurin] ...
| + 289495 [ara.t.howard] cfp2:~ > cat a.rb
|   289685 [eric.mahurin] ...
+ 289675 [oksteev@ya o] ...
| 289709 [eric.mahurin] ...
| 289712 [no@sp m. le ] Not a packrat parser. If you have memory to memoize each grammar rule
| 289715 [eric.mahurin] ...
| 289718 [no@sp m. le ] You need to pass the string directly, not as a StringIO.
| 289722 [eric.mahurin] ...
| + 289733 [no@sp m. le ] I'm not surprised. Treetop has been designed to be super-clean and pure,
| | 289744 [eric.mahurin] ...
| | 289748 [no@sp m. le ] First up, it sounds like your package is a significant achievement,
| | + 289749 [vjoel@pa h. ] Surely you can sugar that up a bit, something like
| | | 289752 [no@sp m. le ] Well, maybe. I just grabbed the first incomprehensible line from
| | + 289810 [eric.mahurin] ...
| |   289818 [no@sp m. le ] Definitely an improvement!
| |   289827 [eric.mahurin] ...
| |   289991 [no@sp m. le ] Yes, it's a simple concept. I give a little comparison of parsing
| + 289739 [oksteev@ya o] ...
|   289743 [eric.mahurin] ...
+ 289682 [justin.ethie] ...
+ 289687 [eric.mahurin] ...
| 289814 [james@gr yp ] and goes on to describe object and array.  I just didn't interpret it
+ 289714 [eric.mahurin] ...
+ 289720 [eric.mahurin] ...
+ 289723 [no.spam@pl a] Here's mine, done with Treetop.  It also includes a
+ 289742 [oksteev@ya o] ...
+ 289855 [eric.mahurin] ...
  289868 [james@gr yp ] Here's my own recursive descent parser (based on the not-quite-correct
  + 289880 [james@gr yp ] #!/usr/bin/env ruby -wKU
  + 289881 [james@gr yp ] #!/usr/bin/env ruby -wKU
  + 289887 [eric.mahurin] ...

Is there a Windows port of "narray"?
289480 [znmeb@ce ma ] Subject says most of it, except for the "why do I want this?" I want
289490 [ara.t.howard] i've compiled both the gsl and narray (they work really well together)

Re: Parsing JSON (#155)
289481 [transfire@gm] A bit aside, but it seems a good place to plug the thought: JSON is so
+ 289482 [james@gr yp ] Conversion is pretty easy and definitely one way to solve this quiz.
| 289493 [ara.t.howard] not to mention installing one of the three gem json parsers out
| 289494 [james@gr yp ] That's so cheating Ara.  :D
+ 289485 [petite.abeil] Brilliant!
+ 289505 [micathom@gm ] "value"} but unfortunately not.
  289510 [sepp2k@go gl] It's key: value
  289511 [micathom@gm ] I see. Thanks for pointing this out.
  289512 [james@gr yp ] I suspect the number of us using 1.9 exclusively is still pretty
  289517 [ara.t.howard] yeah - obviously cheating.  just to clarify though, for people who
  289525 [transfire@gm] as does blow.
  289539 [robert.dober] I do not know why I have the impression that you want make it easier
  289551 [ara.t.howard] doh - didn't want to give *that* impression!

Why is ruby ignoring allow_nil?
289483 [laredotornad] In my user model, I'm want to validate a field only if the field is
289487 [eeklund@gm i] That's a Rails, not Ruby issue. While you may have some luck here,

Re: [Ruby] [ANN] ZenTest 3.9.1 Released
289484 [znmeb@ce ma ] At least on Linux (and probably MacOS, but I don't have one handy) one

@var = change to accessor method? Why?
289496 [iamday@gm il] In ZenTest 3.9.0's release notes
+ 289499 [sepp2k@go gl] If you ever decide that the setter method should do more than just change t=
+ 289500 [ara.t.howard] imagine that you now want to know everywhere @a is set, perhaps
| 289767 [ryand-ruby@z] I personally don't mind the "self"... I only really use it to be
+ 289736 [phil@s1 6. e] i'm on your side, ben. i don't think that using accessor methods for
  289766 [ryand-ruby@z] How exactly does making/using an accessor method "undermine the
  290899 [phil@s1 6. e] accessors are meant to make the instance variables of an object to be
  + 290902 [jari.william] The data is still encapsulated, although the standard attr_accessor and
  + 290909 [ryand-ruby@z] I'm afraid you're confusing encapsulation with information hiding [0],
    290950 [phil@s1 6. e] i don't think so, but thank for pointing me to that article. without
    291168 [rick.denatal] Rick DeNatale
    291199 [ryand-ruby@z] Nice writeup.
threads.html
top