376644-387276 subjects 377072-387416

-rprofile output
376832 [thisredoned@] I can't figure out how to redirect -rprofile's command output to a file.
376834 [shortcutter@] %   cumulative   self              self     total

inline error on 1.9.2
376836 [thisredoned@] I'm getting the same error as this guy ->
+ 376839 [flo@an er gr] The Gem for inline C building is called RubyInline.
+ 376841 [thisredoned@] oh man. I feel stupid. Thanks

Hash#select, different than documented?
376848 [rochkind@jh ] Returns a new hash consisting of entries for which the block returns
+ 376849 [wishdev@gm i] Good Morning
+ 376850 [anurag08priy] I remember a mail on the list by James Britt stating that ruby-doc.org

Retrieving and copying element from array
376855 [simon@si on ] ["category: cat1",
+ 376857 [anurag08priy] *j.split(', '))}
+ 376862 [ahegge@gm il] arr.grep(/category:.*/).map{|a| [arr.at(arr.index(a) +1)]}
+ 376864 [simon@si on ] irb(main):001:0> lines = File.readlines('test.txt')
| + 376870 [anurag08priy] My bad; typed in wrong. The 'b' should be 'result' - we want to
| + 376873 [josh.cheek@g] I recommend you don't store your data like this, it is fragile and error
+ 376915 [simon@si on ] is, this data is coming from a text file. An export from an MS Access
| 376942 [josh.cheek@g] category, and a category is denoted by "category: ", and there isn't leading
+ 376950 [simon@si on ] That works great, thanks Josh. A couple of questions if you don't mind.
| 376952 [josh.cheek@g] Yes, but not whatever matches. The call to #sub, with the second arg being
+ 376954 [simon@si on ] You've been very helpful. Thanks again Josh.

Ruby 1.8.7pl330 + DJGPP (was Re: GCC-4.5.2)
376856 [rugxulo@gm i] Cool, thanks. I'll be honest, I wasn't sure 4.5.x would ever arrive on

Ruby without Tcl/Tk.
376858 [gjohnson@va ] Ruby-talk subscribers,
+ 376859 [seanh1313@tx] I figure there is a way to install ruby without Tcl/Tk.  I personally use FxRuby as a front end, but also have a few scripts that don't have any front end as they only pull something in and put out a file, no real need for a front end.
| 376896 [luislavena@g] se FxRuby as a front end, but also have a few scripts that don't have any f=
+ 376874 [jonas@pf nn ] What platform are you on ? Generally, you can disable specific
| 376891 [gjohnson@va ] config.status: creating Makefile
+ 396244 [lists@ru y- ] Ruby 1.9.3-p194, I successfully used

Reading a CSV file with UTF-16LE encoding
376860 [dcordeiro@gm] Hy all,
376863 [james@gr ys ] When
376865 [dcordeiro@gm] Exactly, setting :row_sep manually works.
376866 [james@gr ys ] Yeah, I'll fix that code to be more encoding friendly, but that's what =
376867 [dcordeiro@gm] Excellent.

ANNOUNCE: NHI1-0.11, PLMK-2.0 und libmsgque-5.0
376888 [aotto1968@us] Dear User,

Best practice to require external code dependency ?
376889 [blambeau@gm ] I'm trying to summarize what I've read about requiring external code
376897 [luislavena@g] ng
376899 [blambeau@gm ] Thanks Luis,
376900 [luislavena@g] ere
376901 [blambeau@gm ] I see (I was currently re-reading https://gist.github.com/54177, which is
376905 [luislavena@g] hat
376907 [blambeau@gm ] Thanks a lot Luis, it makes things a lot clearer for me!!

Thread#kill works as a script but not in irb
376890 [kannan.deepa] Thread#kill works as a script but not in irb
377200 [jonas@pf nn ] Yeah it looks like a 1.8 issue. 1.9.2 works fine though.

need assistance in error
376893 [bala81085@gm] First and foremost I must admint that, I am completely new to watir and
+ 376912 [jonas@pf nn ] it is really hard to tell because I don't use windows, but here are
+ 376932 [bala81085@gm] I haven't posted this question to google watir group, I will post the

rendering fonts with ruby
376895 [cullambl@ya ] Hey gang.
+ 376977 [jonas@pf nn ] did you take a look at the pango binding ? I think it does what you
+ 379988 [damn.pepe@gm] same thing and also google was not able to answer my needs.

[poll] What are your ruby rough cuts ?
376898 [jonas@pf nn ] this is a general census to get developer feedback. Please post the
+ 376930 [ninja@sl ph ] In no particular order...
+ 376947 [josh.cheek@g] Can't help but notice that 2/3 of the OP's rules are already violated :P
+ 377017 [shadowfirebi] Very little about Ruby annoys me, to be honest.  By some freak of design it seems that it synergises with the way my brain works.
+ 377119 [echristopher] 1. I know it's a small thing, but I nominate the inability of instance
  + 377129 [shortcutter@] Foo = Struct.new :name, :age do
  + 377139 [tony.arcieri] Reia allows you to use instance variables as parameters to initialize, e.g.

Ruby iterative depth.
376902 [faraohh@gm i] How to make an iterative method of stack?
376921 [abinoam@gm i] For helping me understand your desired outcome I manually turned it
376927 [faraohh@gm i] Thanks for reply, actually the first number is 'id' and second
377001 [abinoam@gm i] Sorry, but I was not able to figure out exactly how this piece of code
377022 [faraohh@gm i] You are true, I'm trying doing like C and hierarchical tree, what

What does class Random require?
376903 [tomzam@gm il] Simple question,
376904 [jose.halesga] ...
376910 [kbloom@gm il] If you can't user Ruby 1.9.2, then maybe the simple-random gem will do

[ANN] sqlite3-ruby is being renamed
376909 [aaron@te de ] This announcement is to let you know that the sqlite3-ruby gem is being

array dynamic intersection and union
376916 [jamal@so ei ] I was wondering If could intersect and union array dynamic in my code.
+ 376918 [Rob@Ag le on] Why don't you try a few examples and find out?  If you still have
+ 376919 [jamal@so ei ] Sorry I did not explain myself first time.
  376924 [Rob@Ag le on] Let me rephrase that because you still aren't giving enough

Thread, locking TcpSocket from each other?
376917 [walle.sthlm@] I got a question regarding threads and the function gets. Lets say I got
376933 [b.candler@po] Don't do this. If there's a lot of data coming in, probably one thread

[ANN] clogger 0.7.0 - configurable request logging for Rack
376925 [normalperson] Clogger is Rack middleware for logging HTTP requests.  The log format

Re: What are your ruby rough cuts ?
376934 [b.candler@po] * Regexp ^ and $ work match more than just start and end of string. For
+ 376937 [jl235@ke t. ] I'm sorry to take this slightly off topic, but I just can't let this
| + 376941 [ryand-ruby@z] re-run=20
| | 376944 [jl235@ke t. ] I already do use a proper editor and indent my code correctly, but there
| | + 376957 [kedar.mhaswa] This is a *great* post. Thank you! And just reading everyone's response
| | + 376974 [ryand-ruby@z] out
| |   377038 [jw@mu tm di ] Found this recently... probably the least intuitive thing I've seen in
| + 376943 [b.candler@po] I understand your pain, I used to do the binary-chop thing too :-)
| + 376966 [no@sp m. le ] Sounds like fun! What are you using for parsing?
+ 377102 [shortcutter@] Most importantly: improve Ruby's usage of native threads, i.e. get rid of GIL.
  377111 [tony.arcieri] This is largely an implementation problem, not a language problem. JRuby,

Re[rough cuts]: regexp
376935 [anurag08priy] Are you aware of the \A, and \Z regexp matchers - matches the start

Re: regexp
376945 [b.candler@po] Actually, the correct answer is \A and \z if you want to match start and

what's the difference between these two snippets of ruby?
376949 [mrbillhaxor@] Sorry I couldn't help the line wrapping. Thanks in advance.
376953 [josh.cheek@g] The second version modifies config['parent']
377035 [mrbillhaxor@] Got it. Thank you much.

Dealing with TimeZones
376955 [tom@mo lt n.] What is the easies to use package for dealing with time zones and DST
+ 376979 [jonas@pf nn ] I would take a look at TZInfo again. Since it's used by rails, it
| 376982 [tom@mo lt n.] Yes, but to get the update my program would need to re-load, not to mention I would have to manually, I would often forget, which defeats the purpose
| 377199 [jonas@pf nn ] Yeah I know what you mean. It's not a problem for most people because
+ 377548 [user@co pg o] Don't you acknowledge that it is the best time to receive the <a href="http://bestfinance-blog.com/topics/home-loans">home loans</a>, which would make your dreams come true.

Find memory leak in 1.9 app
376956 [schmurfy@gm ] I am in charge of a ruby server at my work for nearly 2 years now, it
+ 376970 [rogerpack200] valgrind might help, jruby has some "high powered" profile methods, and
+ 376985 [schmurfy@gm ] Thanks for you answer,
  377005 [headius@he d] If it was simply 1.9 support holding you back with JRuby, you may want
  377019 [schmurfy@gm ] I never said I suspected eventmachine or any mri native library to be
  377117 [headius@he d] Understood. The maintainers of the JRuby EM would probably love to

Library Reference : ri :: Language Reference : ?
376958 [kedar.mhaswa] ri is cool -- library reference at your fingertips (literally ;))
376975 [ryand-ruby@z] ...

Why Quby? (was Re: What are your ruby rough cuts ?)
376959 [ninja@sl ph ] First, why did you feel the need to fork Ruby syntax? I think I saw your post
+ 376960 [tony.arcieri] In Reia, everything (including objects) falls into two fundamental
| 376963 [cmdicely@gm ] That's fairly misleading. There are lots of mutating operations in
| 376972 [tony.arcieri] I don't mean to be condescending, but if that's your reaction, I don't think
| + 376973 [tony.arcieri] you and shit on your corpse.
| + 377079 [shortcutter@] Keeping the bang notation discussion aside I don't think that your
| + 377128 [cmdicely@gm ] Scheme (which, I think, is where Ruby got the specific notational
|   377147 [tony.arcieri] Correct me if I'm wrong, but I believe Scheme uses this notation for
+ 376978 [jl235@ke t. ] Why Quby? (was Re: What are your ruby rough cuts ?)
| 377000 [ninja@sl ph ] This is _exactly_ what I'm talking about. I already know how to write Ruby
+ 377003 [headius@he d] I have to ask...does an applet not give you what you want? JRuby does
  377025 [jl235@ke t. ] That hadn't occurred to me, and would be the best option for getting
  + 377063 [ninja@sl ph ] Aside from this, the browser already has a perfectly good language and runtime
  + 377118 [headius@he d] All valid points. Part of the big push for JavaFX before Sun died

[ANN] Cinch 1.1.0 released
376967 [dominikh@fo ] Cinch 1.1.0 has been released!

Regexp - start and end of line or string
376968 [colinb2r@go ] How often do people use \A and \z (match start and end of a string)
376969 [justincollin] Most of the time I am going through data a line at a time, so this is

Ruby on Rails 1+ exp Resume
376981 [rubyonrails3] Question ---> 1:-
377198 [jonas@pf nn ] It's not different than a standard CV. You need to list your skill,

Current class
376983 [josh.cheek@g] Going through Metaprogramming Ruby, and the author, Paolo Perrotta points
+ 376984 [vderyagin@gm] Concept of current class is well-explained in this article: http://yugui.jp/articles/846
| 376991 [josh.cheek@g] 1. No (implicit in that no other use case was mentioned)
+ 377083 [josh.cheek@g] I found one more situation where this knowledge is relevant.
  377084 [josh.cheek@g] Okay, and this, then, explains, why you can include modules into the general

[Ruby 1.9] New String rules?
376986 [felix.leg@vp] I have just updated my Ruby into 1.9.0, and tried to run one of my
+ 376987 [sutniuq@gm .] #Encoding: UTF-8
+ 376988 [nobuoka@r- e] In Ruby 1.9, every String object knows the encoding of itself. So you
+ 376989 [michael.broo] In Ruby 1.9.x you need to explicitly specify the encoding of your strings to
  377430 [felix.leg@vp] Your proposition will not work, because it first requires a valid

yari with buttons
376993 [pedzsan@gm i] For the few that liked my ri-emacs with buttons, I've shifted over to

[ANN] sqlite3 1.3.3 Released
376994 [aaron@te de ] sqlite3 version 1.3.3 has been released!

Writing on yaml file??
376995 [niezam54@ho ] Is it possible to write on existing yaml file using ruby programming?
376998 [cmdjackryan@] File.open myfile, "a+" do

Problem populating a hash with regex results
376996 [RichardDummy] I've got a text file with 7 fields.  I successfully extract the data
376997 [josh.cheek@g] hash with `:n_shares=>$2`, on line 17, but you pull it out with `puts
377004 [RichardDummy] ur
+ 377006 [RichardDummy] On Jan 16, 11:37=A0pm, RichardOnRails
| 377014 [jgabrielygal] eeds Cost
+ 377131 [shortcutter@] ds Cost
  377192 [RichardDummy] eeds Cost
  377193 [shortcutter@] ceeds Cost

[ANN] amalgalite 1.0.0 Released
376999 [jeremy@hi eg] amalgalite version 1.0.0 has been released.

A tad of meta-programming needed
377007 [RichardDummy] I've got the following hash set up and it works fine.  But this took
+ 377009 [josh.cheek@g] The matchdata object implements the same inteface as a hash. If that is all
| + 377028 [botpena@gm i] ll
| | 377044 [RichardDummy] all
| | 377194 [shortcutter@] Basically you need a mapping from symbols to group indexes to make
| | 377286 [RichardDummy] ractices.com/
| + 377036 [RichardDummy] =3D>$3, =A0:closed_MDY=3D>$4,
+ 377010 [zhangsu@li e] eval('$' + i.to_s)
  377037 [RichardDummy] That failure was annoying me greatly.  Thanks for restoring my sanity.

Why Ruby Does Not Support Method Overloading?
377008 [rubyonrails3] I have taken one class with two overloading methods i.e same method name
+ 377011 [vderyagin@gm] There may be only one method with given name in Ruby class. If several
| 377015 [rubyonrails3] Ok Thank Your
+ 377012 [anurag08priy] You can use default arguments in this case.
+ 377057 [zhangsu@li e] Method overloading is ideally a feature only for statically typed
  + 377059 [josh.cheek@g] I went through a Lisp book over the winter break, and I took it a different
  + 377071 [shortcutter@] ... and method lookup tables will potentially be larger.  Dunno
  + 377075 [shortcutter@] There is also a more fundamental reason to consider disallowing method

Comparing a string word by word
377013 [braj1999@gm ] I am facing a problem where we have to compare two strings. I applied
+ 377016 [abinoam@gm i] Could you send your string and regexp?
+ 377134 [shortcutter@] You could either extract words and compare corresponding arrays or you

Obscure syntax error
377020 [molfie@gm il] Today I came across a very strange scenario that raises a syntax error =
+ 377021 [peterhickman] The format
| + 377023 [alexg@ru ge ] I think Rolf's point is that in *both* of those last two cases there is
| | 377029 [molfie@gm il] is no method called x - the only difference being that in the first case =
| | 377043 [colinb2r@go ] I don't have an explanation for why using the symbol gives a
| + 377024 [jgabrielygal] What I don't understand is the difference between x "y" and x :y
|   377026 [peterhickman] Well, and I have to admit I am guessing here, the source is parsed in
+ 377046 [ryand-ruby@z] (NoMethodError)
  + 377047 [abinoam@gm i] In my humble opinion I think it's even simpler than that.
  | 377058 [ryand-ruby@z] the parser.
  + 377062 [eregontp@gm ] Sorry, I already found it: http://redmine.ruby-lang.org/issues/show/3163

Ruby Hacking Guide Translation
377027 [skra@pa to o] I'd like to continue the translation of the "Ruby Hacking Guide" by
+ 377032 [zuerrong@gm ] Seems good job.
+ 377033 [rogerpack200] Also isn't there a "new" RHG for 1.9 somewhere?

[ANN] wlang 0.10.1 Released
377030 [blambeau@gm ] wlang version 0.10.1 has been released!

[ANN] noe 1.2.0 Released
377031 [blambeau@gm ] noe version 1.2.0 has been released!

[ANN] test-loop 5.0.0
377039 [sunaku@gm il] test-loop - Continuous testing for Ruby with fork/eval

initialize() in a module, is it correct?
377040 [ibc@al ax ne] module, so a class including such module can invoke super() in its
377041 [jgabrielygal] I don't think so. initialize it's just an instance method, just like
377042 [ibc@al ax ne] El da 17 de enero de 2011 19:08, Jess Gabriel y Galn
377077 [shortcutter@] But you should change the signature to make it more compatible with

Add value inside 'Nested Mappings String'
377048 [niezam54@ho ] Im trying to add some data/value into my nested mapping file(strings)
+ 377049 [abinoam@gm i] Perhaps you're not considering that "children" returns an Array!
+ 377053 [josh.cheek@g] I think working with this data will quickly become very difficult to deal
+ 377055 [niezam54@ho ] How do you know the hash inside it is indexed 0? This is because the
| 377056 [abinoam@gm i] Well, Arrays are ordered by nature. (Hashes shouldn't be considered so).
+ 377060 [niezam54@ho ] Actually, those contents will be converted into YAML format for other
+ 377061 [niezam54@ho ] I tried to change the children type from "programme" to "objective" by
  377068 [abinoam@gm i] In your example, there's only one element in the Array, and 4 elements

Calling by Reference - Two Questions
377052 [rubfor@re it] I know I'm not the first person to get stumped by how to get Ruby to
+ 377054 [abinoam@gm i] I think I didn't understand your question correctly, sorry (My english
+ 377065 [rubfor@re it] Well, that is bizarre.
| 377066 [gwtmp01@ma .] They both work.  Remember that myswap!(a) changed the array to [5,2] and =
| 377067 [abinoam@gm i] d so myswap2! changes it back to [2,5].
+ 377069 [rubfor@re it] Interesting.
| 377073 [jgabrielygal] The rule is how Ruby handles variables and objects. A local variable
+ 377081 [josh.cheek@g] You actually can (though I'm not sure what you think is happening when you
  377086 [rubfor@re it] That kind of just moves the question on to how does replace work. But
  377087 [shortcutter@] The last "self" is the method's return value.  It makes perfect sense
  + 377091 [josh.cheek@g] Oh yeah, I should have made that more clear. Inside the method, self is the
  | 377107 [josh.cheek@g] *ary[self] should be ary[index]
  + 377108 [rubfor@re it] Robert, can you expand on that?
    + 377110 [jgabrielygal] = is not a method of object, is the assignment operator. Modifies
    + 377116 [b.candler@po] Array doesn't have an '=' method. When you write