255634-256345 subjects 256023-258901

^ accessing the count/iteration # within an "each" ???
255810 [greg.hauptma] Is there a way to access the count / iteration# within an "each" loop?  i.e.
+ 255812 [donald.ball ] testhash.each_with_index {|d, i| puts i}
+ 255813 [TimHunter nc] ruby$ ri Enumerable#each_with_index
  255827 [greg.hauptma] excellent - thanks guys

^ alias_method for static method
255811 [borjam dagi3] I was wondering if it is possible to create aliases for class methods,
255814 [dblack wobbl] This message is in MIME format.  The first part should be readable text,
255817 [borjam dagi3] Thanks a lot, it worked like a charm.

^ Get Parameter names from methods
255818 [ssmoot gmail] There's holes in this. It's not a full Ruby parser. But it should work
255831 [ssmoot gmail] Now any UnboundMethod (written in Ruby) can be inspected for it's

^ [ANN] Hpricot 0.6 -- the swift, delightful HTML parser
255823 [why ruby-lan] Hpricot 0.6 is up on Rubyforge.  Or get it from the development gem

^ Question on Getting back in the swing of things & Time Management
255824 [rubygeekgirl] It's been a substantial length of time since I've posted here, let alone did
255875 [bulliver bad] Sure it is possible. I am no professional programmer, in fact, I don't even
+ 255887 [rubygeekgirl] Thanks for the feedback, Darren.  It's good to hear the encouragement and
+ 255889 [byronsalty g] Darren is right - as long as you know Ruby and Rails somewhat then you

^ Re: ruby standard library contribution?
255825 [james.britt ] No Trac, but patches may be submitted to the ruby-core list.
256129 [james.britt ] All patches to code/comments that is part of the standard distro.

^ Ferret...
255835 [hal9000 hype] I've just started learning Ferret today... it looks
255844 [jeremy hineg] There's a really great Ferret short cut from O'Reilly, that has an

^ Grade my test?
255842 [ja_bowen yah] I have directory of data files along with a few other types of files.  The
+ 255857 [caduceass gm] data_files = Dir.entries.select { |file| (1...4000).include? file.to_i }
+ 255859 [robert.dober] Does it really work? What about file "0000' ?

^ Solaris door Ruby bindings
255846 [noemail yaho] I'm writing a ruby extension in C to the Solaris door library.  The
255849 [erwin.abbott] From my experience the most Ruby-like way of doing this would be
255951 [noemail yaho] Thank you for your input, Erwin.

^ could anybody help me on this? (require 'libglade2')
255850 [jim.zhang.ch] I just installed ruby-gnome2-all-0.16.0 on my cygwin box with building from

^ replacing OpenSSL
255854 [fxn hashref.] I would like to change OpenSSL for a given 1.8.4 running on a Windows

^ including range error
255856 [josselin wan] myRanges = [(0...2), (2...5), (5...10), (10...15), (15...25)]
255858 [stefano.croc] each_pair is not a method of Array. If you need both the index and the element

^ REXML, XPath  and Namespace
255860 [h.gildhoff w] I want to parse an xml file using REXML::XPath. I can easily navigate
256421 [keith audiob] require 'rexml/document'

^ instead of re.sub
255862 [cihan253 gma] command.
255863 [stefano.croc] Use gsub instead of sub.

^ Adding new value (in array) to existing key in a hash
255864 [gilbertlsk g] Am new to programming am learning to use ruby to code a program. How do
255866 [list.push gm] If I understood you correctly,
255873 [gilbertlsk g] Thanks a lot. Didn't know it can be so easy.
255909 [list.push gm] Yes, it sets up the value as an array and pushes arrays into that array.
255993 [gilbertlsk g] Thanks a lot. Sorry, got another question
255996 [list.push gm] Well, I think this will work.
256022 [dblack wobbl] arr.sort.map {|c| myhash.keys.find {|k| myhash[k].include?(c) } }
256030 [gilbertlsk g] Thanks a million. But still I have another problem. Figure that I can
256088 [caduceass gm] Do you mean that [7,6] is not included becuase there is no [6,5] or
+ 256093 [caduceass gm] ^^^ delete the accidental "end" here
+ 256103 [gilbertlsk g] Yes. I am only interested in coordinates that fit the pattern of [i, j],

^ Error in ancestor?
255871 [robert.dober] I just observed this (and it cost me quite some effort to debug my code :( )
+ 255872 [dangerwillro] What error?
| 255881 [robert.dober] This error
| 255896 [dangerwillro] If you're expecting it to return true, it can't. Everything in the
| 255901 [robert.dober] Getting bitten by my didactic skills ;)
+ 255890 [m_goldberg a] It cost me some effort to figure out what the question really
| 255897 [robert.dober] I know in ruby I would say
| 255904 [m_goldberg a] But isn't 'p <expression>' shorthand for 'puts
| 255905 [robert.dober] Ah you said p, not puts, that's quite clever...
| 255907 [dangerwillro] Actually p is more like a short form for
| 255913 [m_goldberg a] I admit that's more strictly accurate, but I find it very close to a
+ 256036 [sylvain.joye] I launched a discussion about this on Ruby-core. I think there were no
  256193 [robert.dober] Merci Sylvain
  256204 [rick.denatal] As far as I can tell, singleton classes aren't mentioned in the doc.
  + 256220 [robert.dober] I'd surely love to read this but I constantly get a timeout at this link :(
  | 256222 [robert.dober] Cheers
  | 256295 [rick.denatal] Au contraire mon frere.   Le d˝ăaut ˝Ňait le mien
  + 256236 [dblack wobbl] Does that mean that no one who's ever used Smalltalk can ever think
    256486 [rick.denatal] Well David,
    256492 [dblack wobbl] Cool -- I'm glad.  (BTW there's an unclosed emphasis tag or something,
    256594 [rick.denatal] To me it feels like I'm hiding out in the High School boy's room with
    + 256595 [dblack wobbl] It's interesting, though, that Matz's reason for not adding K#s_c is,
    | 256598 [gregory.t.br] Well at this point is anyone still vehemently opposed to singleton_class ?
    | 256700 [rick.denatal] The problem with metaclass is that it's just one of the two(?) uses of
    | 256706 [dblack wobbl] The goal of #singleton_class, though, would be to un-hide the
    | + 256709 [gregory.t.br] +1, I think having #singleton_class removes any ambiguity of what #class is.
    | | 256711 [robert.dober] Kernel#singleton_class really looks fine to me, once we have this, we
    | + 256968 [rick.denatal] I think that the differences between singleton classes of classes and
    |   256971 [dblack wobbl] c = Class.new
    |   257027 [robert.dober] Forgive my ignorance, but are they not the same already?
    |   257029 [dblack wobbl] The thing is, there's one big difference that's not just a matter of
    |   + 257061 [robert.dober] I am definitely lost here, what do you mean by "can be called", their
    |   | 257115 [dblack wobbl] class C
    |   | 257274 [robert.dober] I know David, I know, boy I was really expressing myself badly, or
    |   + 257081 [rick.denatal] And from my viewpoint, that last sentence doesn't seem right, true as
    |     + 257083 [robert.dober] That's what I think too, but there was no feedback whatsoever to my
    |     + 257113 [dblack wobbl] It still feels to me like this is forking too soon in the road, or
    + 256616 [vjoel path.b] Now I know how to pronounce <<: it is the "cigarette" operator!
      256664 [robert.dober] Oh no, cannot use it anymore at work, forbidden by law ;)

^ Ruby arithmetic question.
255874 [sayakyi gmai] Dear all,
+ 255876 [bulliver bad] Because '**' is the exponentiation operator.
+ 255877 [AEtzold gmx.] Salai,

^ Negative lookahead in Regexp question
255878 [AEtzold gmx.] Dear all,
255886 [byronsalty g] Can you provide a few examples of what you're looking for? I'm not
255898 [AEtzold gmx.] Dear Byron,
+ 255899 [aurelianocal] Wouldn't it be better to just use a xml parser?
| 255900 [AEtzold gmx.] Aureliano,
+ 255902 [byronsalty g] /<\w+>(.*?)<\/\w+>/
  255903 [AEtzold gmx.] Dear Byron,

^ Process id
255885 [tettamaa lu.] I need some hint about to catch a id of a certain process
+ 255891 [byronsalty g] print "#{Process.pid}\n"
| 255967 [tettamaa lu.] Thanks a lot for the help to use some unix command like ps.
+ 255894 [james.d.mast] A quick look at Kernel#` in the Ruby documentation (http://www.ruby-

^ Chris Pine Program Challenges
255911 [danielj slee] puts 'Type in as many words as you want'
+ 255914 [yermej gmail] [snip code]
| 255917 [danielj slee] Mmmm... I'm not quite following? Wouldn't I have to use the "sort"
| 255922 [yermej gmail] Don't think about processing the array once you have all the inputs.
+ 255916 [list.push gm] I haven't read that tutorial so I don't know what he is expecting you to try.
| 255918 [danielj slee] Thanks for the hint!
| 255923 [list.push gm] OK, you could select a value from your array.
| 255924 [danielj slee] Ok guys, I'm pretty savvy and I think I have more than enough to go on
| 255932 [znmeb cesmai] IIRC Colinux is some gizmo that lets you run Linux on a Windows
| 255979 [alex blackke] Seconded...  I've never had as clean an experience with Colinux (however
+ 255945 [matt fake.co] I'm also working through this book and having a lot of fun with it.

^ redefining word boundaries?
255920 [jon.budardan] Is it possible to redefine (temporarily) the meaning of \b in RegExp
+ 255929 [list.push gm] Does this give you the proper format?
| 256035 [jon.budardan] Harry --
+ 255931 [byronsalty g] I think the only way to do this would be to redefine all the

^ Trying to start with Ruby, and Rails, seperately
255925 [user superho] I'm looking to start learning Ruby, and Rails, but one at a time.  I am
+ 255926 [user superho] I should mention, as well, that I am familiar with C/C++, HTML/CSS,
| + 255927 [danielj slee] Then go to the PickAxe (google it and you will find it)
| + 256821 [gregory.t.br] Hal's book is excellent but is not for beginners.  (It says so right
|   256825 [gregory.t.br] I should have read upwards.  I think I saw the first post but not the
+ 256694 [felipe.contr] I think you should start with Ruby. It's very simple, just read the

^ [ANN] Ramaze Version 0.1.2
255928 [m.fellinger ] This time we are proud to announce Version 0.1.2 of the Ramaze framework, an
255955 [kashia.buch ] way to go!  Greatly appriciated.  The new SourceReload in this

^ Nervous Nuby Starting Out!
255937 [macrubyist n] Anybody out there who's patient and willing to give a newby help if
+ 255939 [AEtzold gmx.] Dear Macrubyist,
| + 255954 [dangerwillro] Welcome !
| + 255962 [macrubyist n] [very useful hints and bits snipped, will definitely look at this stuff]
|   + 255963 [sonoflilit g] Don't install gems.
|   + 255965 [agorilla gma] That's pretty much the first thing I did with Ruby, it's fairly
|   + 255972 [AEtzold gmx.] Dear MacRubyist,
+ 255956 [TimHunter nc] Welcome to Ruby!
+ 255964 [rubygeekgirl] I can tell you that this list is full of patient people.  I have been
+ 256041 [james graypr] Just skip the instructions for the applications you don't need.
  256048 [lloyd 2live4] It sounds as if you have many things that you want to do.  That is a
  256051 [james graypr] The Ruby executable is compiled, which is what the original post was

^ file name and content not corresponding
255938 [bombadil.tom] The code below almost works perfect. Thus it creates the text files with the
256019 [jan.svitok g] +   thread[:bug_id] = id

^ setuid script - require failing
255941 [GGarramuno a] ruby 1.8.5 and 1.9

^ Modifying an Excel file with Ruby
255942 [chris.hulber] I have an Excel XLS file that is full of pre-existing charts, formulas,
+ 255943 [AEtzold gmx.] Dear Chris,
| 256268 [chris.hulber] Thanks, but i can't use OLE because this won't be hosted on windows.
| 256319 [chris.hulber] Cheers buddy, I must have switched off the moment i saw 'ole' in the
+ 256011 [come.news fr] I never tried this binding on POI Java library, but it could be useful

^ Need Help in Aol Login with mechanize
255946 [shuvo.razi g] I am tring to develop an aotometed login script for http://www.aol.com

^ Re: mechanize 0.6.6 Released
255947 [shuvo.razi g] Can you please exaplain me the mechanize's follow redirect

^ Syntax error with blocks
255950 [oliver.saund] OK guys, wtf am I doing wrong here?
+ 255953 [noemail yaho] A code block is not a valid statement.  If you want to create a Proc
+ 255974 [rubytraining] The other thing to keep in mind is that blocks are parameters passed
  256015 [oliver.saund] 1.times { puts 'foo' }
  256127 [CHubas7 gmai] If you want a more block like behavior, use begin/end
  256158 [oliver.saund] Ahhh very nice. Thanks

^ How to generate local API documentation?
255957 [ruby-forum m] I'm fairly new to Ruby and I'm trying to generate a local copy of the
256016 [ruby-forum m] Well I've found out why I can't generate core API docs using rdoc -
256017 [jan.svitok g] Download source package (either one for your distribution or the
256020 [ruby-forum m] Thank you Jano, that worked a treat!

^ can not Rake :), please help.
255958 [oguz ce.yild] #====================================
256081 [leslieviljoe] task :default => checkfile

^ [QUIZ][SOLUTION] Verbal Arithmetic (#128)
255960 [jesse.d.merr] charset="utf-8"
255961 [jesse.d.merr] [QUIZ][SOLUTION] Verbal Arithmetic (#128)

^ [ANN] ObjectGraph 0.2.0 Released
255966 [aaron tender] ObjectGraph version 0.2.0 has been released!

^ Re: [SOLUTION] Verbal Arithmetic (#128)
255970 [rubytraining] This program solves addition problems with any number of terms.  It

^ [QUIZ] Mexican Blanket (#127) Problem
255975 [ari aribrown] Hey all,
255987 [list.push gm] It looks like "25" is a String. You need to change it to an Integer.

^ Problems with SOAP: duplicate XML declarations
255976 [ruby orangej] I'm trying to implement a SOAP client using the native Ruby SOAP
256038 [nakahiro sar] What version of soap4r are you using?  The versions from
256126 [ruby orangej] Yay!  I updated all my gems ("gem update") including soap4r, restarted

^ Help on making a simple program.
255977 [trevorrife g] I'm learning my way through Ruby-Gnome2 right now and am working on a

^ Q: TextMate support for JRuby?
255978 [mark.watson ] I have been having fun with JRuby (a few days ago I got a simple Rails
256074 [nicksieger g] Do you mean being able to launch JRuby on your Ruby files from within
256079 [james graypr] The Advanced section of the Preferences has an interface for setting

^ Parsing strings
255980 [germans88 ya] Quick question, is there a method for deleting substrings from within a
+ 255981 [daniels pron] "monkey pants".gsub(/ey/,'')
| 255983 [germans88 ya] haha, thanks, i'll give that a try
+ 255982 [germans88 ya] ... I know the substring, its location, and length
| 255986 [dblack wobbl] You can use slice!.
| 255988 [germans88 ya] thanks, that works
| 256005 [shortcutter ] irb(main):001:0> string = "This is a string"
+ 255984 [has.sox gmai] the gsub or gsub! methods will do this.  They take a pattern (string or
  255985 [germans88 ya] One problem, the substring contains a ?, and is left in the resultant
  255989 [TimHunter nc] It would help if you'd show an actual string you have and what you'd
  255998 [germans88 ya] It's actually a youtube url: ex.
  + 256000 [noemail yaho] gsub(/\?.*$/,'') will delete the first question mark until the end of
  + 256010 [come.news fr] url='http://www.youtube.com/watch?v=OY8AIhbqPHo'
    256014 [germans88 ya] I didn't realize this before but I also need to remove the equal sign
    256032 [Rob AgileCon] url.sub(/watch\?v=/, 'v/')

^ how to make .exe file?
255990 [coolwong85 y] I using RUBYSCRIPT2EXE to built an .exe file for my project. After i
256009 [coolwong85 y] i can do it already, thank u so much.

^ healp reading / writing binary strings.
255991 [beingthexemp] Hey, I'm looking for some help with reading / writing binary string.
+ 256007 [shortcutter ] Um, how can we know what format this is?  I mean, you came up with that
| 256049 [beingthexemp] Thanks that helps.. Couple more questions..
| 256060 [caduceass gm] It's just the number 9, but yes you can look at it that way.
+ 256008 [dejan.dimic ] The string that you can't understand contains the unprintable

^ sorting hash keys and values (was RE: Adding new value (in array) to existing key in a hash)
255995 [botp delmont] # myhash = {"a" => [[0,0],[3,4]], "b" => [[1,1],[9,8]], "c" => [[7,6]]}

^ rb2exe info
255999 [mikejaystein] I heard there's a program that compiles Ruby scripts to exe's, but the only
256001 [list.push gm] Are you talking about Exerb?
256285 [mikejaystein] It was called rb2exe, if I remember correctly.
256289 [AEtzold gmx.] Dear Mike,

^ mock object standard?
256003 [byronsalty g] I see a lot of discussion from a few years ago about Mock objects but
256006 [ pm ubit.com] Have you looked at Flex Mock?
256013 [jamesmead44 ] Or Mocha (http://mocha.rubyforge.org) & RSpec (http://rspec.rubyforge.org).

^ [ANN] raop-client 0.1.1 Released
256004 [aaron tender] raop-client version 0.1.1 has been released!

^ Probable bug: net/ftp and mysql thread problem
256018 [ronald.fisch] I found a bug, which seems to appear in Ruby 1.8.5 and 1.8.6

^ Which comparator to override
256021 [mark.gargan ] Hey folks,
+ 256026 [mark.gargan ] Hey folks,
+ 256027 [shortcutter ] If your map is a Hash then you need to override #eql? and #hash.  So in