297513-328159

297358-298230 subjects 297791-299153

XML signatures, anyone?
297513 [funkaster@gm] Has anyone been doing any xml signatures with ruby lately?

Generating HTML in a console application
297514 [villas82@gm ] I'd like to generate HTML in a console application and I found
+ 297517 [cmdjackryan@] RedCloth (gem install RedCloth) comes to mind.
+ 297530 [transfire@gm] What are you trying to do?
  + 297567 [shevegen@li ] This may be obvious, but since you can view a html page just as a
  + 297600 [villas82@gm ] It's to generate a report which is basically an HTML table. I know I
    + 297602 [cmdjackryan@] Did you take a look at Ruby Reports?
    + 297683 [julian@co et] How about HAML?

Building ruby
297519 [rtalk@gm il ] The linux systems I admin @ work have an old version of ruby (1.8.2).
+ 297568 [shevegen@li ] You should be careful from 1.8 to 1.9
+ 297580 [vidar.hoksta] It may be a path issue. "strace" in a shell is your friend. Run
  297670 [rtalk@gm il ] Glorious. Thanks for the tip/reminder. (slapping forehead)

[ANN] Sequel 1.4.0
297546 [code@je em e] Sequel is a database access toolkit for Ruby. Sequel provides thread

Include module and class inheritance? which one to choose?
297550 [sgwong513@ho] What is the different between the including a module and inherit a
297556 [julian@co et] A module is simply a place where you can store methods.
297558 [sgwong513@ho] Yes, but we can achieve the same thing by inherit a class which will get
+ 297560 [julian@co et] It depends what you want to do - do you need to use the superclass
+ 297561 [cmdjackryan@] Yes. :P
+ 297564 [shortcutter@] If you need to instantiate it make it a class.  Everything that could be
+ 297577 [tsela.cg@gm ] You need to approach this issue in terms of semantics rather than

Re: Ruby?EURO(tm)s not ready - an indepth essay
297553 [igouy2@ya oo] It was fixed at the end of October 2005, your mailing list complaints
297594 [pbrannan@at ] Sounds like a case of the pot calling the kettle black.
297601 [halostatue@g] Whatever. If people are willing to treat this thing with any
297607 [igouy2@ya oo] "3 a (1): a physical or mental competition conducted according to rules

Unable to  open the script in anouther script
297566 [pranjal.jain] I ma trying to call the function written in one script in other script.
+ 297584 [perfectly.no] I've never used Watir myself, but looking at the API docs it
+ 297610 [chris.hulan@] Remember that ruby is interpreted, and code is evaluated line by line
+ 297661 [julian@co et] ...

Ruby Extensions, Threads and stack to0 deep
297572 [barjunk@at g] I have a library (milter) that calls back into ruby, but on a

[ANN] ratom 0.3.2 Released
297573 [seangeo@gm i] * Add support for atom:category.

Exceptions in file copying
297574 [clement.ow@a] All,
297578 [botp@de mo t] # I have a folder in C:\movtest\testing\ and i want to leave
297680 [clement.ow@a] Exactly what i wanted! :)

How to  find the hwnd
297581 [pranjal.jain] I am trying to  get the hwnd of the code. this code is of the pop up
297781 [celtic@sa ry] ...

Testcase order
297603 [mario@be wa ] require 'testcases/dopTest'
297605 [gthiesfeld@g] Name them in alphabetical order.
297606 [mario@be wa ] So it's impossible to run the testcases in the 'require' order
297608 [thopre@gm il] ...
297609 [mario@be wa ] Because I'm running testcases that need the result of another one so
+ 297675 [ryand-ruby@z] Don't do that. You don't want your testcases coupled to each other.
+ 297677 [ pm@ub t. om] Testcases should run in issolation.  One testcase should not be

[ANN] FXRuby Book is Now in Print!
297611 [lyle@ly ej h] All,
297622 [tom@in oe he] Lyle's interview on the pragmatic podcast is well worth a listen if

About Ruby
297612 [jakob@dr s. ] I'm new to Ruby and apart from wanting to learn ruby (and rails), I
+ 297613 [cmdjackryan@] Welcome and have fun. :)
| 297619 [jakob@dr s. ] Thanks :)
| 297631 [cmdjackryan@] No problem. I have yet to get my hands on a copy, myself.
| 297818 [jakob@dr s. ] That's correct.
| 297820 [cmdjackryan@] And I actually meant "chance" and not "change". :P
+ 297615 [jeremymcanal] There is no language spec for Ruby.  You can look at the spec suite
  297618 [jakob@dr s. ] Mh, I can't seem to find it. Is it on this page?

delete first line of a text file
297621 [uncle.mike@e] how can i delete first line of a file?
+ 297624 [adam.shelly@] Assuming it's an ASCII file, this should work:  (Although it might be
| 297627 [uncle.mike@e] it's a very small file :)
+ 297625 [rodrigo.berm] File.readlines("file.txt")[0..-2]

http://tryruby.hobix.com/ not working
297626 [rodrigo.berm] Do you know guys what's going on with why_'s tryruby page /?
297743 [perrin@ap th] Hmm.  I am too.  That's disappointing.

[Q] dependency injection with Needle gem
297628 [cremes.devli] I am puzzling through a few things with needle and dependency
297647 [shawn42@gm i] ...

RMagick and Collision Mask
297629 [di3go.bernar] Im trying to make a perfect pixel collision in a game and im gonna use a
297632 [rmagick@gm i] black = Magick::Pixel.from_color("black")

My error or bug in "attr_reader" ?
297633 [me@he re .n ] The code posted below actually modifies the array in the object.
+ 297634 [stefano.croc] It works correctly, once you understand exactly what's going on. attr_reader
| 297635 [me@he re .n ] Yup, what you say makes sense, thanks :)
| + 297640 [nefigah@gm i] Well, it's true; the instance variable isn't writable. Doing
| + 297644 [rick.denatal] This is a typical newbie confusion over instance variable vs. the
| + 297649 [dblack@ru yp] A writable attribute is different from a mutable object. You can't set
|   297666 [me@he re .n ] And that doesnt sound strange to you ?
|   + 297667 [me@he re .n ] That somehow sounds harsher than I intended. No offense meant, its only
|   + 297668 [julian@co et] ...
|   | 297777 [overlord@gm ] Well, I just learned that the initialize method is private. But there is
|   + 297674 [perfectly.no] And it doesn't.
|   + 297687 [dblack@ru yp] No, not at all. That's the way objects work. The question of what you
+ 297954 [cbciv@ya oo ] This is a common misunderstanding of references.  I don't know ruby that

Re: Guardian of Middle-earth (#159)
297636 [alex.shulgin] Pardon me if I appear to be speaking for the others, but to me this is
+ 297665 [matthew.moss] "Average damage per attack type" and "average damage inflicted per
| + 297692 [alex.shulgin] Well, not really. :-)
| + 297735 [micathom@gm ] It's probably more difficult than it looks like at first sight to find
+ 297694 [elof@el f. k] On top of that I would like to add that it is crucial for my participation
  + 297717 [caduceass@gm] I'm not so sure.  I think maybe just the way it was worded turned me
  | 297746 [matthew.moss] Initially, my thought was that there wasn't really any good
  + 297745 [matthew.moss] I had a basic solution working in 10 minutes.

Once again I'm wasting my time with CentOS:  gem install won't work...
297637 [xcampanoli@g] [root@free rubygems-1.1.0]# vi README
297641 [xcampanoli@g] Never mind, I've got it...
297713 [davividal@si] Could you share your solution?
297750 [xcampanoli@g] yum install ruby-rdoc, as the other person also replied.  I hope this
297754 [kyleaschmitt] Honestly, when I need a reasonably modern ruby on a redhat/centos

FXRuby versus Tk
297638 [alex.decaria] I've done some GUI program with Ruby/Tk, and am able to use it fairly
297643 [lyle@ly ej h] Claims about which GUI toolkit (or programming language, or text
297651 [alex.decaria] Lyle,
+ 297654 [shevegen@li ] Personally I am using ruby-gtk (because of the wiki back then), and on
| 297657 [lyle@ly ej h] This may be the most important piece of advice to take away from this thread. ;)
+ 297656 [lyle@ly ej h] Yes, there is actual documentation for using FXRuby with Ruby. ;)
| 297685 [matt.mower@g] Seeing the announcement of the book I thought I'd take another look at
| 297716 [lyle@ly ej h] <boom>
| + 297790 [greg.kujawa@] fxruby
| | 297793 [znmeb@ce ma ] In the Linux world, there's KDevelop/Korundum/Kommander, all built on
| | + 297795 [cmdjackryan@] KDE apps aren't portable to "pute" Qt, as I understand it.
| | + 297796 [vjoel@pa h. ] I think Qt is on windows now, and with the Trolltech/Nokia merger Qt
| + 297826 [matt.mower@g] Thanks for the advice. I confess I wasn't entirely surprised when the
|   297867 [lyle@ly ej h] <snip output>
+ 297658 [tom@in oe he] would do the trick.  Does it also gather up all the native dependencies?
  297663 [adam.shelly@] Yes, this works well (although the executable can get large).

Re: dependency injection with Needle gem
297646 [djberg96@gm ] "I've since learned my lesson and have come to understand that
297660 [avdi@av i. r] There's a difference between dependency injection the pattern, and

Question of self
297648 [rabbitblue@g] module FunFunModule
+ 297650 [rabbitblue@g] Oops. Forgot to add that I logged the output of...
| 297653 [dblack@ru yp] There is. I'm not sure what you mean by the instance. You haven't
| 297659 [rabbitblue@g] Thanks for the quick reply!
+ 297652 [dblack@ru yp] No; it's the singleton class of AR::Base.

Problem with text_field_with_auto_complete Part 2
297662 [pimea.mark@g] Ok so I got the text field to populate a list of what I needed but I
297684 [fxn@ha hr f.] please?
297721 [pimea.mark@g] oh hm i thought it was. Dunno how it got in here. sorry!

Question about backquotes and linux echo
297671 [Brian.Hartin] I can't figure out why the following works from the command line but not
297672 [Brian.Hartin] Nevermind...it was a Cygwin problem.  Works fine on RedHat.

to  select random number from select list
297688 [pranjal.jain] I am having a list. I want to  select a number in random from that list?
+ 297689 [phasis@gm il] list = ["a","b","c"]
+ 297690 [julian@co et] To get a random element from an array
  297742 [saras@it h. ] wow you love thouse videos

Executing class methods
297691 [clement.ow@a] class MainLogic
+ 297693 [phasis@gm il] archive must be Singleton method.
+ 297695 [fox@ns l. su] As defined, archive is an instance method.
  298092 [clement.ow@a] Yeah, it works. Thanks guys! But actually out of curiosity( i think it's
  298093 [jeremymcanal] x = String.new

Get oldest File from Directory?
297697 [christian.ke] Hey!
297699 [perfectly.no] def oldest_file(dir)
297701 [christian.ke] Perfect, Thx!

Re: RubyEURO(tm)s not ready - an indepth essay
297698 [shevegen@li ] Chris,

Re: Ruby?s not ready - an indepth essay
297700 [ruby@an hr p] I'm pretty sure I remember Matz having good things to say about them at
+ 297731 [znmeb@ce ma ] There are de facto test suites for 1.9.
+ 297736 [cremes.devli] Greg,

[ANN] First public release of RubyJS (0.7.0)
297702 [mneumann@nt ] I'm pleased to announce the first public release of RubyJS (a Ruby to

Problem in exiting from a file and continue with next file
297703 [karthikeyan7] I am writing automated test scripts using ruby. I have written two
+ 297718 [s.korteling@] system 'system start test_two.rb'
+ 297720 [framefritti@] I'm in a rush, so I am not able to check my suggestion.  Using "try/

global array of hashes
297704 [mario@be wa ] $globvar=Array.new()
297705 [caduceass@gm] This seems to work...
297706 [mario@be wa ] $globvar=Array.new()
+ 297707 [dblack@ru yp] irb(main):001:0> a = []
+ 297708 [caduceass@gm] In this case, you create a new array that holds the same Hash object.
  297710 [mario@be wa ] Ok.

problem ActiveRecord+ActionWebService
297709 [varun.rajesh] I am creating one webservice in ror.I have one function called

Time needed to append an array element
297719 [wruyahoo05@c] How does the time to append an element to an array depend on the size of
297739 [avdi@av i. r] Avdi

OT: "Unix" in Japanese
297724 [perrin@ap th] Since I figure there are probably a few Japanese Unix hackers on this
+ 297726 [tek.katu@gm ] ユニックス
+ 297728 [matz@ru y- a] We spell UNIX as UNIX for most of the case.  We pronounce UNIX as
| + 297729 [james@gr yp ] Not Lu-Bee, matz?  ;)
| | 297733 [matz@ru y- a] Strictly speaking we don't have either R sound or L sound in
| + 297730 [tek.katu@gm ] And most importanly, "Matz" is マッツ。
| + 297747 [perrin@ap th] perhaps), or is there Kanji for it,
|   297797 [dangerwillro] Linguistically speaking, Japanese generally do make distinct R and L
|   + 297799 [moolao@gm il] visit a rubyonrails web site :http://www.rorchina.net
|   + 297803 [celtic@sa ry] ...
|     + 297808 [caduceass@gm] I thought it was more of a soft 'd' with the mouth formed for the
|     + 297810 [julian@co et] It's neither R nor L.
+ 297875 [list.push@gm] Look at some Japanese book covers.

Ruby HTTP GET Headers
297732 [benaroia@gm ] I've looked here: http://snippets.dzone.com/posts/show/788 and I'm not
+ 297760 [chiology@gm ] I'm not sure if your code would work like you expect it to, but I've
+ 297830 [bbxx789_05ss] 1) In net/http, the request_get() method allows you to specify headers

C rand() in Ruby
297744 [perrin@ap th] Is there some simple way to make use of C's rand() from within Ruby?
297755 [ara.t.howard] you mean other than just using
+ 297756 [vjoel@pa h. ] That would call ruby's mersenne twister, AFAIK.
| + 297758 [perrin@ap th] Indeed -- which is why I was asking about C's rand() function.
| + 297762 [ara.t.howard] yeah - i just wasn't clear on what was being asked - ruby/dl is the
+ 297759 [perrin@ap th] Yes, other than that -- since that uses Ruby's PRNG, and not C's.

[ANN] TMail 1.2.3 - Security Update
297763 [raasdnil@gm ] [ANN] TMail 1.2.3 - Security Update - 11 Apr 2008

performance tips
297764 [forgetta@gm ] ...
+ 297765 [vjoel@pa h. ] lines = File.readlines('sometextfile').each {|l| l.chomp!}
| + 328027 [maran.asteri] require 'benchmark'
| + 328035 [shortcutter@] ???  I could have understood if you argued that your solution avoids
|   328101 [vjoel@pa h. ] lines = File.read('sometextfile').map {|l| l.chomp!}
+ 297788 [znmeb@ce ma ] Well, there's actually a book on the subject ...
| 297794 [forgetta@gm ] ...
| 297800 [moolao@gm il] up
+ 297804 [Gennady.Byst] [Sorry for the top-posting, freaking web-mail interface does not do quoting=
| 297805 [cmdjackryan@] quoting properly]
| 297897 [Gennady.Byst] Thanks a lot, Phillip!!! I will check it out today.
+ 328142 [s.korteling@] Don't use Date objects if you can get by with Time. (As a bonus, if you
  328155 [jontyjont@bt] Thanks!!!
  328159 [jontyjont@bt] I did it! 1234567890! Am I sad or what!

Random name generator!
297767 [tehz0r@gm il] I'm testing out different ways to output randomly generated names. I've
+ 297779 [kbloom@gm il] The solutions are for word markov chains, but you could easily adapt any
+ 297828 [mehonoshen@n] I would suggest using combinations of phonemes rather than letters. It
  297934 [kbloom@gm il] <hat role="computational linguistics">

Stack Level Too Deep?
297771 [c00lryguy@gm] I have a User class that handles users as structs and adds them to a
+ 297772 [sepp2k@go gl] What do you think happens when this method is called?
| 297774 [c00lryguy@gm] Yeah, but I've been trying to run the remove under self<<, but you made
+ 297778 [kbloom@gm il] The remove() method just keeps calling itself. I think you wanted
  + 297780 [julian@co et] Or maybe super()?
  | 297785 [kbloom@gm il] You'll get a NoMethodError if you call super(), because you're not
  + 297782 [c00lryguy@gm] Ahh thanks alot! That's exactly what I was looking for.
    297783 [c00lryguy@gm] Here's another question, how would I go about setting the User class to

Binding of caller in Ruby 1.9
297775 [kbloom@gm il] Does anybody know of a way to get access in Ruby 1.9 to the binding of
297873 [pbrannan@at ] foo(arg1, arg2, binding)

dog pile!
297784 [Bil.Kleb@NA ] Bil Kleb
297787 [cmdjackryan@] You don't have to add a comment. The vote still counts. No need to spam

[ANN] rdoc 2.0.0 Released
297786 [drbrain@se m] rdoc version 2.0.0 has been released!
+ 297825 [jftucker@gm ] Yesssss...
| 297858 [rsanheim@gm ] awesome, thanks eric.
+ 297880 [gthiesfeld@g] Eric,
  297895 [jeremymcanal] To other classes, files, methods, etc.  For example, if you use the
  297909 [gthiesfeld@g] Got it.  Thanks!
threads.html
top