275539-284407

275317-293324 subjects 275818-283348

^ How to use ri with a new package
275539 [RichardDummy] I just used gem to install the package "sys-admin" from the RubyForge
275547 [bbxx789_05ss] You could create a shortcut on your desktop to  the docs, or you can
275615 [RichardDummy] Great response!  I chose option #1.  Getting something like
275877 [renard nc.rr] On Oct 24, 10:44 am, RichardOnRails

^ [ANN] geoip moved to rubyforge
275542 [no spam.plea] The GeoIP gem, now two years old, has been moved to RubyForge.

^ Subject: [ANN] multi_rails 0.0.2 Released
275544 [rsanheim gma] multi_rails version 0.0.2 has been released!

^ Need advice on Ruby and game dev
275548 [haroon borin] Ok I am new to programming still. I know how to do small basic things
+ 275552 [james.britt ] Still a bit early in development, but well worth looking into.
| 275556 [shevegen lin] Just use what works for you. If you think a concept such as
+ 275571 [julianraschk] I wouldn't spend too much time thinking about this. Once you can write
  275578 [marcsh gmail] ooh.  Gosu looks like its a very nice library.  (Tip: dont name your
  275584 [julianraschk] Thanks!
  + 275609 [dangerwillro] Don't be afraid to try another language to use or learn a game library.
  + 275720 [julianraschk] Thanks, I will look into this! :)

^ [ANN] Rassmalog 7.1.0
275549 [ snk gna.org] Rassmalog

^ flatten, rb_check_array_type and proxy class
275550 [tomawng yaho] class SavingProxy
275873 [matz ruby-la] You have to provide #to_ary method explicitly, since Ruby checks it

^ Unit Testing, how to use assert_equal for last printed line?
275551 [pood.forums ] I've been learning Ruby the last couple weeks and trying to figure how
+ 275555 [gethemant gm] The idea about Unit Testing is, you do not write tests to test
+ 275558 [bbxx789_05ss] Generally, you use assertions to test the return values of methods.
+ 275604 [ryand-ruby z] The easiest way to do it is to store off stdout and replace it with a
  275642 [dale.martens] require 'test/unit'

^ ruby lib version (1.8.6) doesn't match executable version
275581 [vince71 gmai] I did a manual install of Ruby 1.8.6 from source. Now I'm getting an

^ Re: Ruby-Traits 0.2 released (sorry long)
275583 [transfire gm] Whew! Yep, long, but interesting. I'll have to check the ruby-traits
275595 [robert.dober] Well thanks ;)

^ Re: ruby lib version (1.8.6) doesn't match executable versio
275585 [vince71 gmai] Bah,turns out I just needed to reinstall rake and a few other gems.

^ clarification needed regarding define_method
275586 [bagam_venkat] I need to clarify one thing. Does Module#define_method works with
275587 [dblack rubyp] Yes, both.

^ Using ruby to transfer and clean data between databases
275591 [daffy_dowden] I have some data in an access database and I want to move this to my new
275599 [fwmailinglis] charset="us-ascii"
275610 [shortcutter ] I was going to write the same.  Additional info: DTS allows you to do
275616 [daffy_dowden] Ok, I think i'll be looking into doing that then. I believe DTS is

^ TMail 0.11 Released
275613 [raasdnil gma] 0.11 rolls up all the great patches that the Ruby on Rails team made
+ 275618 [james graypr] You are a hero and songs will surely be sung of your deeds.
+ 275622 [lionel-subsc] With the Tmail version Rails is bundling with Rails 1.1.6 and 1.2.3 I
| 275635 [raasdnil gma] Lionel, no, not aware, I am talking with rails-contrib to merge the
| 275659 [lionel-subsc] My main reason for asking was because I didn't had the time to fully
+ 275692 [ari aribrown] Awesome! So is it a library for just handling? Or does it can it also
  275732 [raasdnil gma] Ari, right now it just handles Emails - and it is fairly good at it
  275738 [raasdnil gma] Oops... I mean,

^ Problems with require in eruby
275620 [vasyl.smirno] I've just set up eruby and mod_ruby to handle .rb files in the
275632 [vasyl.smirno] (old reply looks like lost, reposting)

^ Passing methods as parameters - the nice way?
275626 [soren.anders] I'm pretty new to ruby, but have some background in Java, and very little
+ 275629 [vasyl.smirno] t?
| 275640 [soren.anders] Doh, ofc.
+ 275641 [apeiros gmx.] I'd suggest using blocks instead of the above construct. Your code
  276033 [soren.anders] Thanks! I'll try this approach as well!

^ Apache not Interpreting Ruby or Something ...
275631 [nobrow gmail] Still cannot get Ruby/Rails/Apache to play together. Have mod_ruby
+ 275639 [raasdnil gma] I am sure you would get a lot better help at the ruby on rails talk group.
+ 275655 [nobrow gmail] Typically I got it soon after posting. I hadn't configured Apache with

^ [ANN] main-2.2.0
275634 [ara.t.howard] NAME
+ 275703 [benjohn fysh] *snip*
+ 275771 [jgabrielygal] I am using this for every medium to complex command line script I

^ Ruby is simple? NooooT!
275644 [pikselNOSPAM] Hehe whoever said that ruby is not verbose was WRONG!! ;)
+ 275650 [phlip2005 gm] Should we start with Pathname?
+ 275651 [pikselNOSPAM] Well technically that does NOT find subdirectories. Call in the
| 275654 [phlipcpp yah] Allow me to draw your attention to the **
| 275653 [pikselNOSPAM] But supposedly you cant tell whats what now. Its all just a big blur. You
| + 275656 [tmac easystr] charset=US-ASCII;
| | + 275660 [lloyd 2live4] I verified that this returns a fully qualified path.  Ruby wins again!
| | + 275683 [wemagor2 gma] Why doesn't that seem to work for me on Windows?  Is there something
| |   + 275689 [perrin apoth] I don't currently have an MS Windows machine with Ruby installed here, so
| |   | 275694 [shevegen lin] What "bigger picture" exactly? You just want to find the image files, or
| |   + 275698 [phrogz mac.c] irb(main):001:0> Dir.glob( './**/*.rb' ).length
| + 275667 [shortcutter ] Frankly, it's quite unclear to me what you want.  When I run your script
| + 275684 [Rob AgileCon] ...
| | 275690 [perrin apoth] I didn't see any text in your email, Rob.  Was that intentional?
| + 275719 [Rob AgileCon] (Dang signed emails not going through!)
+ 275693 [pikselNOSPAM] Its too late for me!! EaArgv[0]!! Spaghetti! I am fallliiiiiiiiiing!!

^ Token replacement & rake
275647 [robjlucas gm] I need to create some method of automating builds of my rails web app.
+ 275681 [tim.pease gm] Use a combination of rake and ERB.  Write a rake task that uses ERB
+ 275805 [ryand-ruby z] I'm assuming you mean that your rake rules should change based on the

^ string method that takes in a regex
275663 [ghotrapa yah] Is there a string method that takes in a regular expression AND returns
+ 275665 [dblack rubyp] I think the idea is that as long as matching methods return either
+ 275666 [rick.denatal] String#match takes a regexp and returns either nil or a MatchData.
| 275669 [ghotrapa yah] I did not know this; this is very helpful.
+ 275671 [rhkramer gma] Look at the match method (or =~ )--since nil is false and anything else is
+ 275672 [gwtmp01 mac.] str = "abc"
+ 275674 [ruby anthrop] % irb
  275680 [rick.denatal] although

^ windows-api-0.2.0/lib/windows/api.rb:211: [BUG] Segmentation fault
275676 [aidy.lewis g] I am attempting to use ruby 186rc1 one click installer on Windows
275726 [djberg96 gma] That's coming from win32-api. The line is simply API.new(...). By any
275753 [renard nc.rr] This may not help the OP, info provide just in case.

^ Re: [ANN] Rassmalog 7.1.1 - the "error monger" release
275686 [ snk gna.org] I've made some slight improvements -- which, for some reason, always

^ Testing Philosophies [was Re: Struct is slow]
275696 [gwtmp01 mac.] I interpreted the two types of testing as follows.
275710 [shortcutter ] I would probably relax that a bit and say that a method should throw

^ .each do |foo, bar|     what does bar do?
275697 [hawat.thufir] "code_words.each do |real, code|
+ 275699 [dblack rubyp] Hashes yield key,value pairs to #each. So you need two block params to
| 276095 [hawat.thufir] Ok, I went and read <http://en.wikipedia.org/wiki/Associative_array#Ruby>
+ 275714 [bg-rubytalk ] What's happening in the first version of the code is that "real" and
| + 276096 [hawat.thufir] I don't see what's wrong with having foo[0] and foo[1], but, yes, it's
| | + 276097 [dblack rubyp] Yes, that's correct. yield is a keyword that acts like a method call;
| | | + 276141 [bbxx789_05ss] h = {"a"=>1, "b"=>2}
| | | + 276149 [lojicdotcom ] class Hash
| | |   + 276160 [dblack rubyp] Yes -- I don't think each_key uses each but it's definitely out of
| | |   + 276162 [bbxx789_05ss] That suffers the same problem as David Black's example.
| | |     + 276163 [dblack rubyp] What problem did mine suffer from?
| | |     | 276938 [bbxx789_05ss] It doesn't return an array.
| | |     | + 276939 [bbxx789_05ss] After ruby gathers up the block, converts it to a Proc object, and
| | |     | + 276945 [dblack rubyp] Was it supposed to?
| | |     |   + 276965 [lojicdotcom ] I think so, if you want to avoid the "multiple value" warnings shown
| | |     |   | 276967 [dblack rubyp] Do you guys mean what it's yielding, as opposed to what it's
| | |     |   | 276973 [bbxx789_05ss] Yes.  Sorry.
| | |     |   | 276982 [dblack rubyp] I'm still not understanding what the problem was with my example. I'm
| | |     |   | 276994 [bbxx789_05ss] Thanks for the explanation on the &block question.
| | |     |   + 276972 [bbxx789_05ss] So, yes...your example would have to return an array to implement
| | |     |   | 276976 [dblack rubyp] Actually Hash#each returns its receiver, which is a hash. I think my
| | |     |   + 276995 [rick.denatal] I think you meant
| | |     + 276170 [lojicdotcom ] You're a literal type of person, aren't you? :)
| | + 276102 [rhkramer gma] { "key1"=>"value1", "key2"=>"value2",  "cow"=>"bovine", 12=>"dodecine" }
| + 276828 [hawat.thufir] I just found an explanation of hashes which is easier for me to grab
+ 275735 [bbxx789_05ss] Your understanding is incorrect.
  275736 [bbxx789_05ss] As you can see from the output, ruby is perfectly happy to do parallel

^ Help with adding header files for 'mkmf' - new to Swig/mkmf
275702 [james.d.mast] I'm trying to extend a simple function from a large C++ API library

^ More friends more money,get friends while get paid
275717 [jackieburr g] More friends more money,get friends while get paid

^ "Some String \xAE".to_json gives an illegal/malformed error?
275721 [mudsweatande] Call me crazy, but I must be missing some fundamental understanding
275727 [mudsweatande] Never mind. Encoding on the DB is defaulting to latin-1.  What I

^ Racc error recovery
275723 [aaron tender] I'm writing a racc parser, and I need to recover from parse errors.
275951 [aaron tender] Yes there is.  I was hoping I could get an answer without digging up my
276321 [barjunk attg] On Oct 25, 10:29 pm, Aaron Patterson <aa...@tenderlovemaking.com>
276451 [aaron tender] What I was thinking originally was that on_error could eat up tokens

^ Looking for comments on a rails patch, lazy association instantiation
275724 [rick.denatal] Prompted by some discussion on rails-talk last week,  I worked up a
275728 [rick.denatal] Sorry I intended this to go to the rails-talk list but gmail outsmarted me.

^ Ruby and C# Integration
275725 [avoidiam yah] Does anyone know of a way or have any links for how to integrate c# and
+ 275733 [diego.suarga] Search IronRuby in the forums/google.
| 275808 [bplummer zap] Jayson,
+ 275734 [brabuhr gmai] I have used rubyclr and ruby-mono.
+ 275962 [damphyr free] I've been wrestling this problem quite a bit lately.

^ Accessing SQL Server named instance
275739 [greg.kujawa ] I apologize in advance for posting a Rails question in the general
275806 [shortcutter ] Unfortunately no Rails experience here, but: you did make sure the

^ Intervals in Ruby
275742 [steve REMOVE] Howdy,
+ 275745 [hutch recurs] I can only speak for myself.
+ 275746 [justincollin] I nearly always use 0..5
+ 275747 [ymendel pobo] On Oct 24, 8:45 pm, Steven D'Aprano <st...@REMOVE-THIS-
+ 275748 [andreashalle] i think it makes perfect sense to have those two options and with
| 275774 [ihatespam ho] I think of it as the shorter keyword being the one more often used.  As
| 275883 [devi.webmast] Ranges are based upon comparisons of what is less than something else.
+ 275764 [michael.ulm ] If there is only one kind of range to be supported (which I understand
| 275770 [n.o.t for.em] For iterating, I agree.
+ 275765 [shortcutter ] I rarely use #downto, #upto and #step.  I frequently use #times and
| 275804 [james graypr] => ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"]
| 275852 [vjoel path.b] puts ("a".."j").to_a
| 275854 [james graypr] Yeah, that was dumb of me.  That wasn't the point though.  I was
+ 275775 [ihatespam ho] They're obviously not used a lot but they can be useful.
+ 275787 [dblack rubyp] They're both useful. Don't forget that a range is not really a
+ 275791 [steve REMOVE] Are there many (any?) good examples of where you need to iterate over an
| + 275822 [dangerwillro] If there is one thing Ruby gets right over every other language it's
| + 275887 [ara.t.howard] yes.  the most obvious one is needing adjacent entries and/or self-
|   275906 [mortee.lists] What about #each_with_index for this case? Using pixels.size.times and
|   + 275915 [ara.t.howard] well, frankly, that example is made up but i have tons of image
|   | 275932 [mortee.lists] Fair enough. However, the code in question hasn't altered the array of
|   + 275917 [ara.t.howard] { break ObjectSpace.each_object(Array){} }  '
|     275933 [mortee.lists] It's sure to create arrays. Those ones that hold the corresponding
+ 275890 [ara.t.howard] i use both frequently.  '...' is always leads to shorter code when

^ [ANN] rglpk 0.1 Released
275743 [alexg kuicr.] rglpk version 0.1 has been released!

^ Re: Time Window (#144)
275744 [ymendel pobo] On Oct 24, 9:16 am, James Edward Gray II <ja...@grayproductions.net>

^ Re: Ruby Logo Contest
275749 [pinga_c hotm] Just wondering whether anyone had heard more about the contest.  Was a

^ Array of Pairs data structure?
275766 [lists gregwi] In a language called Lasso I am used to a data structure of an array of
+ 275772 [lists gregwi] OK, nevermind, I think I found enough functionality to get me by.
| 275846 [rick.denatal] You might also consider using a hash, for access and produce the array
+ 275830 [ara.t.howard] use arrayfields.

^ How to control another TK application
275768 [goal1860 hot] I want to validate strings displayed in a TK application, how can I
275777 [nagai ai.kyu] Do you mean about validation on TkEntry widgets?
275780 [goal1860 hot] We have a separate tk based application running(can be initialed by Ruby
275876 [nagai ai.kyu] Hmm.....

^ Need help parsing HTML with Hpricot...
275769 [ihatespam ho] I'm having trouble understanding Hpricot (thanks to an abominable lack
+ 275776 [raasdnil gma] You can try each_child.
| 275779 [raasdnil gma] require 'rubygems'
+ 275778 [wieczo.yo go] Try http://code.whytheluckystiff.net/hpricot/wiki/AnHpricotShowcase

^ Smallest peeve ever!
275773 [ihatespam ho] I'm sure there's no chance of this ever changing but I'm disappointed
+ 275782 [botp delmont] # start.step(end, step_size)
+ 275797 [vasyl.smirno] On Oct 25, 10:25 am, "Just Another Victim of the Ambient Morality"
  275800 [vasyl.smirno] third parameter is not necessary, just

^ Any one help me?
275784 [hariharan.sp] Dear friends,
+ 275796 [gethemant gm] If you are using EventMachine library for instance for writing server,
+ 275924 [globyy3000 h] Posted via http://www.ruby-forum.com/.

^ puts from #!, but with data structure chrome
275785 [lists gregwi] When playing with small scripts and using puts to output some results, I
+ 275786 [stefano.croc] Use p instead of puts. puts(obj) calls obj.to_s, while p(obj) calls p.inspe=
| 275789 [lists gregwi] Ahhh. Perfect.  :-)
+ 275788 [botp delmont] ZnJvbTogR3JlZyBXaWxsaXRzIFttYWlsdG86bGlzdHNAZ3JlZ3dpbGxpdHMud3NdIA0KIyBJcyB0

^ TCP Address binding /resolution
275790 [ochomoz gmai] server = TCPServer.new('10.2.77.66', 6060)
275792 [celtic sairy] Try 0.0.0.0.
275793 [ochomoz gmai] Thanks,

^ Time.now
275794 [pikEISPAMMMs] What units does it output - with .to_f or .to_i?
+ 275798 [gethemant gm] Returns the value of _time_ as a floating point number of seconds
| 275799 [gethemant gm] Oops my bad, I pasted the same thing twice. Sincere apologies,
+ 275801 [celtic sairy] That's seconds since the UNIX Epoch -- 1st of January, 1970.

^ WIN32-GUITEST issue
275802 [goal1860 hot] Who used win32:guitest module? When I require it and run, got such an
+ 275828 [globyy3000 h] Just Windows being Windows, send some hate mail to Bill Gates.
+ 275947 [manish gslab] I think the one you download from rubyforge is linked agains cygwin libs.

^ Making ODBC connections without explicitly coding a password
275803 [anne cantsfi] We're developing Ruby programs which read and write from/to DB2 tables
+ 275816 [caduceass gm] You can prompt for a password, but of course that doesn't work for
+ 275851 [diegoslice g] If you are on Windows, you can set up a system DSN with the username and
  284407 [anne cantsfi] Belated but grateful thanks, this worked very nicely.

^ overcoming dynamic block evaluation
275809 [deliverable ] Greetings -- I'm writing a reusable options module for my scripts.
275811 [shortcutter ] Unfortunately I don't have time to go through all of this, but did you
275815 [deliverable ] Well, I need to add textual reporting and report on all options, both

^ Pricess ID
275810 [danperrett07] if I start a process in Ruby using the system("some process")
275814 [hariharan.sp] Dear Fish Man,
275896 [aredridel nb] But not the one launched by system.
threads.html
top