352990-369366 subjects 353375-359543

^ loses scope?
353166 [rogerpack200] Anybody know why this fails?
+ 353168 [jgabrielygal] Because both "class" and "def" keywords create a new scope. They are
| 353174 [rogerpack200] That I did not know. Thanks!
| 353195 [phil.auriemm] Ah thanks for posting that, I'm rather new to ruby and that was
+ 353171 [joelvanderwe] You may want to call class_eval and define_method with blocks instead.
  353237 [rogerpack200] Hmm. Perhaps an example using class_eval would help me understand that
  353249 [jgabrielygal] irb(main):001:0> class A
  + 353316 [rogerpack200] Many thanks and merry Christmas.
  + 353589 [rubyforum je] Just curious... is there any difference between using define_method and
    353600 [jgabrielygal] one

^ Error Running Fitnesse Tests on the Fitnesse Server
353167 [arti.p.singh] I created a folder under C:/Data/Ruby called Fitnesse1 and placed my

^ special cased?
353184 [rogerpack200] This confused me a bit
+ 353187 [ibc aliax.ne] class A
| + 353188 [ibc aliax.ne] El S=C3=A1bado, 19 de Diciembre de 2009, I=C3=B1aki Baz Castillo escribi=C3=
| + 353216 [dblack rubyp] This message is in MIME format.  The first part should be readable text,
+ 353211 [b.candler po] Nope - class variables (@@) have nothing to do with instance variables
| 353240 [rogerpack200] Yeah they must be special cased so that beginning users can use them
| + 353323 [b.candler po] I believe it's picking up the value from class A, since that's B's
| + 353394 [dblack rubyp] (3) and lastly, and most importantly, do not use class variables,
+ 353217 [dblack rubyp] I think you mean shouldn't it just look up @a (not @@a) in the parent
  353218 [ibc aliax.ne] class A
  353221 [dblack rubyp] This message is in MIME format.  The first part should be readable text,

^ :D
353190 [phil.auriemm] Wow thank you so much, I thought no one had any precompiled versions

^ very noob question about class variables
353193 [angel21ccs h] use rails...I made a little program but this has a little bug too..for
353194 [phil.auriemm] Class Supah

^ Ruby 1.9 - US-ASCII vs UTF-8
353201 [wallu667 gma] So I have source files that contain unicode chars. Do I really have to
353205 [gregory.t.br] No, you can't override the source encoding.  You can use flags to set
353206 [gregory.t.br] Sorry, while the above statement is generally true, I forgot about the

^ free tour in america just click now
353209 [ramskathirav] ...

^ Re: Question about "spreadsheet"
353212 [tobinj mac.c] Since no one has posted a reply, and you haven't posted back that you
353621 [ruby.student] Wow!

^ Spreadsheet gem -- way to work with a subset of rows?
353213 [tobinj mac.c] The spreadsheet I'm trying to ingest is quite large, so I tried what

^ ruby in twenty minutes not work
353220 [niyaziates77] in ruby offical site two links doesnot work.do you know reasons?
+ 353223 [pg thimian.c] Do you mean this: http://www.ruby-lang.org/en/documentation/quickstart/2/ ?
+ 353234 [james grayso] I don't seem to be able to reach it right now though.
  353235 [sophrinix gm] I was planning on making an official announcement about this.
  + 353236 [sophrinix gm] I should add that once the transfer is done, I will keep
  + 353244 [james grayso] I've switched the sidebar link to this new URL.  Thanks.

^ Rcov::HTMLCoverage how-to?
353224 [transfire gm] Putting Rcov to work in program, the FAQ gives the following as the

^ How to put File lines into postgres query(pg)
353226 [beny18241 gm] I have a script which parsing some xml files(works great :))

^ Re: which project should I work on?
353242 [rogerpack200] All righty got ruby-snarl updated :)

^ Re: Alternate Regular Expressions?
353243 [rogerpack200] Note also that you can do
353245 [marnen marne] I would suggest taking a look at Treetop, both as an easy-to-use parser
353321 [b.candler po] parentheses, i.e.
353328 [shortcutter ] Nowadays DFA's are rare because NFA provide more features and you can

^ =?windows-1252?Q?Stolen_Laptops__=96_JustStolen=2ENet?=
353247 [stolenipods ] Stolen Laptops =96 JustStolen.Net

^ Correcting complex math
353248 [jzakiya gmai] I thought I would extract some of the issues
353266 [colinb2r goo] If this can be made to work, it might be useful.
+ 353267 [paul pollyan] If you're messing around with complex variables and you come across
| 353285 [marnen marne] Agreed.
+ 353268 [shortcutter ] Done.
| 353286 [colinb2r goo] Thanks for that! You've embarrassed me into installing Ruby 1.9 for Windows
| 353292 [jzakiya gmai] Error)
| 353361 [colinb2r goo] Yes. And < and > are also invalid for complex numbers, at least in Python 3=
| 353674 [jzakiya mail] 31.
+ 353282 [jzakiya gmai] From a mathematical/engineering perspective it is
  353341 [jzakiya gmai] Example implementation for class Integer.

^ Regex question
353250 [lolilolicon ] [code]
353251 [w_a_x_man ya] irb(main):001:0> /(lo){2}x/ =~ 'lolox'
353252 [paul pollyan] Seems like a bug.
353253 [lolilolicon ] Same for me. I actually had tried what you tried too. Also, {2,2} won't
353254 [lolilolicon ] Sorry for double posting, post too quick.
353259 [shortcutter ] That's definitively a bug! => http://redmine.ruby-lang.org/

^ how to put unique lines from regexped file
353255 [beny18241 gm] I have such a question, when i open a file doing some grep stuff...
353256 [beny18241 gm] ok i figure it out :)
353260 [shortcutter ] That works only if the input is ordered.  For unordered input here's an
353264 [w_a_x_man ya] That's fine for the plodding proles, but we cossacks always shout the
353265 [shortcutter ] Strong words, but I hope you are aware that this, taken as a general
353284 [marnen marne] @geekdom = {@everything.reject {|e| !e.fell_swoop?}}.good_advice? ?

^ international free call just sign in now
353263 [ramskathirav] ...

^ [ANN] Linux network appliances managed via Sinatra
353272 [guidoderosa ] just to announce the first release or Ruby "OnBoard", a web interface
353274 [pg thimian.c] I like the SSL screen, especially creating a certificate. :)

^ [ANN] kramdown 0.3.0 released
353273 [t_leitner gm] ## About kramdown

^ Re: Linux network appliances managed via Sinatra
353280 [guidoderosa ] Thanks! It was an important requirement to make OpenVPN setup more user
353281 [pg thimian.c] Certainly. I'm setting up a Linux VM soon, to play around with things

^ How capture console error messge for logging?
353287 [lists gregwi] OS X, Ruby 1.8
+ 353288 [lists gregwi] x = $!
+ 353289 [w_a_x_man ya] ruby -e"puts X" 2>errors.log

^ [ANN] Try Ruby is back up and better than ever!
353290 [sophrinix gm] Greetings,
353315 [colinb2r goo] It looks nice.
+ 353317 [sophrinix gm] Please open a ticket on github http://github.com/Sophrinix/TryRuby,
| 353363 [colinb2r goo] Arrow keys: Up=3D>&  Down=3D>)  LeftArrow =3D>%  Right=3D>'
| 353433 [sophrinix gm] s.
+ 353334 [ninja slapha] I'm in Chrome Beta on Linux. Arrow keys work fine, but backspace seems to be

^ [ANN] mms2r 2.4.0 Released
353293 [mikemondrago] mms2r version 2.4.0 has been released!

^ Tk load error
353294 [teodorcarste] diabolator2@book:~$ cd /home/cristi/Desktop
353314 [a99.googlegr] Do you have the Ruby-Tk-binding installed?
353331 [teodorcarste] well, as I know, Tk and Tk binding are different things. I dunno if I
+ 353332 [teodorcarste] Posted via http://www.ruby-forum.com/.
+ 353333 [pg thimian.c] It's probably a package called "ruby-tk", or "libtk-ruby", or similar.
  353578 [teodorcarste] I've installed libtcltk-ruby and everything runs well until I require
  353594 [a99.googlegr] I think, TCL/TK is missing "Tile".

^ DESTROY in ruby
353296 [TechWWW yaho] Does ruby have a DESTROY method in its class? like,
+ 353297 [walton vyper] No, objects in Ruby are simply garbage collected
+ 353298 [cmdicely gma] There isn't a "DESTROY" (or "destroy") method defined by default. They
+ 353299 [emiddleton b] Take a look at finalizers[1]
  353303 [TechWWW yaho] for example, I openned a database handler in a class, and  new an object
  + 353305 [usenet-nospa] You don't.  When you're done, you close it.  More likely, you build your
  + 353313 [shortcutter ] There is keyword "ensure".  You can also use blocks for this like

^ Nokogiri and xpath for changing value on the web
353300 [soujiro0725 ] ruby 1.8.6
353301 [emiddleton b] Your XPATH is wrong try
353302 [soujiro0725 ] It worked!

^ redirecting stderr in irb
353306 [martindemell] Redirecting $stderr in irb doesn't work but redirecting
353307 [ryand-ruby z] "doesn't work" is hardly true. You're certainly redirecting $stderr at =
353308 [martindemell] Yeah, i know that, but irb seems to be printing its errors to $DEFAULT_OUTPUT

^ Value for text_field_tag ?
353309 [tuo_pe yahoo] @text = params[:data][:text]
353312 [ibc aliax.ne] =3D>

^ How to get a file contained in a gem "lib" directory?
353310 [ibc aliax.ne] r=20
353638 [albertschlef] def self.get_xml_pathname

^ Re: How to get a file contained in a gem "lib" directory?  [SOLVED]
353311 [ibc aliax.ne] Gem.required_location(gemname,"")

^ Re: Question about sum of fibonacci sequene
353318 [cidza tin.it] Not efficient but with no explicit loop (while...)

^ Help with gem ruby mysql error
353319 [drikting gma] I downloaded & double clicked 3 files to install mysql 5.1 for MacOS,
353320 [pg thimian.c] Is that verbatim? If so, you need to replace /path/to/mysql_config with
353336 [drikting gma] Yes thanks Philip, about the verbatim.
+ 353337 [pg thimian.c] It's Phillip, but you are still welcome. ;)
+ 353345 [hassan.schro] None of the above --
  353386 [drikting gma] Thanks Phillip and Hassan, path is correct now but below error is still
  353416 [hassan.schro] Sorry, I don't know anything about this "sequel" gem.
  353440 [drikting gma] gem list will show
  353444 [hassan.schro] ? why would you do that before getting your gem situation straightened out?
  353540 [drikting gma] Hmmm,
  353542 [hassan.schro] Yeah, that sounds completely broken. You could try (in irb)

^ Ruby's implementation of Fixnum-assignment
353322 [RichardDummy] I've made the following observations about Ruby's apparent
+ 353324 [gwtmp01 mac.] Generally correct.  You might want to look at =
| 353335 [RichardDummy] wiki/Tagged_pointer> for a discussion of this overall technique. =A0This te=
+ 353325 [ shot hot.pl] =3D> Fixnum
+ 353327 [shortcutter ] All correct.
  353343 [RichardDummy] ractices.com/
  + 353344 [marnen marne] Right.  The *object* has an object_id.  The *variable* that contains it
  | 353349 [RichardDummy] no
  | 353377 [marnen marne] Just to make it perfectly clear: I'm confirming that Robert is right,
  + 353385 [shortcutter ] p.
    353399 [rick.denatal] =A0invokes the =93=3D=94
    353420 [shortcutter ] 2009/12/22 Rick DeNatale <rick.denatale@gmail.com>
    353437 [RichardDummy] t they actually *are* the object
    353441 [shortcutter ] On syntax level it's an operator as many others but underneath it is
    + 353443 [eregontp gma] I believe Matz decided against because a) there is a pretty short
    | 353499 [shortcutter ] Note sure about your "often" - iterating in the majority of cases can
    + 353543 [RichardDummy] _%28computer_science%29
      353602 [shortcutter ] I'll be staying in Europe and keep watching out - your brother can
      353618 [RichardDummy] e."

^ png-file as a HTTP-Response...
353326 [goesele live] Im quite stuck with my little project of writting a File-Controller in
353584 [albertschlef] This "while true; end" is known as a "busy loop" (google for this term)
353642 [b.candler po] server.join

^ Re: Welcome to our (ruby-talk ML)         You are added automatically
353329 [goesele live] # help 		 	   		 =20
353338 [shortcutter ] Please press F1 or read your email header. ;-)

^ [ANN] logging 1.3.0
353330 [tim.pease gm] Logging version 1.3.0

^ promiscuous mode
353339 [bisciasia gm] How can i set my wlan device in a promiscuous mode?
+ 353340 [marnen marne] Welcome.
+ 353342 [pg thimian.c] I'd check the WLAN card's documentation.
+ 353346 [lists bertra] When you ask in a forum that is about your WLAN device or your
+ 353348 [rilindo gmai] Give it beer?
| 353351 [bisciasia gm] i have a wireless card of netgear and i want to make a code in ruby that
| 353352 [synfinatic g] system("<insert shell command to enable promisc mode>")
| 353355 [Rob AgileCon] If you are already running under Ubuntu 9.04, why do you want to write
+ 353388 [b.candler po] One answer is: use the Socket API. You have direct access there to all
| 353389 [bisciasia gm] sudo ifconfig wlan0 down
| + 353390 [paul pollyan] Right.  And which of those commands are ruby commands?
| + 353391 [bisciasia gm] i have made a script that call by ruby code. thank all :)
+ 353410 [alfonso.capo] Maybe you could use Scruby module

^ rest-client headers or cookies
353347 [ed.howland g] I am trying to make a request to a PHP application coded with limonade
353354 [nicholas.wie] I don't think you want the headers of the GET or POST, but of the =
353432 [ed.howland g] e, right ?

^ [ANN] unicorn 0.95.3 - userinfo in absoluteURIs
353350 [normalperson] Unicorn is an HTTP server for Rack applications designed to only serve

^ Strange behavior of unary +@ for Fixnum?
353353 [alexandre_mu] It seems that it's not possible to use the unary +@ operator for Fixnum
+ 353369 [colinb2r goo] I haven't looked at the source code, but I think I'm right in saying that
| 353370 [vikkous gmai] This is correct. + or - at the start of an numeric literal is
| 353392 [colinb2r goo] ral,
| 353459 [alexandre_mu] Thanks for your precise answer. The _integer literal_ "shortcut" makes
| 353469 [shevegen lin] I think it is a quite short topic actually.
| 353503 [alexandre_mu] I mean, when you need to use intensively operators, there are lots of
| 353504 [ryand zenspi] for=20
| + 353583 [vikkous gmai] Ummmmm..... does that second line really make sense to you? Is there
| + 353659 [alexandre_mu] This is exactly the case that was not working! ;) I didn't report any
+ 353479 [tony medioh.] => nil
  353480 [tony medioh.] Err whoops, perhaps I've had a little too much wine...
  353496 [ryand-ruby z] class Fixnum
  353586 [tony medioh.] class Fixnum

^ [ANN] tagged_logger 0.2.1
353356 [fkocherga gm] === WHY? ===

^ Symbols vs. constants?
353357 [sonja kisa.c] How are symbols and constant (capitalized) strings similar or
+ 353358 [dblack rubyp] A constant is an identifier to which you can assign an object. It is
+ 353359 [Gennady.Byst] Constants are variables that can be assigned to any object (only once). Whi=
| + 353360 [armywide gma] It seems to me a constant can be changed during the runtime.
| | + 353364 [Gennady.Byst] You may say so. I just did not want to bring it up for simplicity sake. For=
| | | + 353372 [james grayso] the fix would be to check that constants are assigned only once.
| | | | 353380 [marnen marne] I don't.  There are certain contexts where warnings are generated even
| | | | 353417 [james grayso] case the fix would be to check that constants are assigned only once.
| | | | 353425 [marnen marne] Rick already provided a very good one.  I'll keep an eye out for others.
| | | | 353429 [james grayso] The only example I can find from Rick in this thread that throws a =
| | | + 353382 [gregory.t.br] or me any warning produced by my code must be fixed, and in this case the f=
| | + 353366 [walton vyper] In fact it is greatly discouraged.  There is never, ever
| | | 353373 [james grayso] I'm not sure we should go quite THAT far.  It is used in the wild for =
| | | 353379 [walton vyper] Really? For what purpose?  I can't think of any instance that you'd
| | | 353384 [gwtmp01 mac.] I think Rails uses it to reload class definitions.  That is to say that =
| | | + 353419 [james grayso] for
| | | + 353428 [walton vyper] Ah, that does make sense. Thank you for the clarification.
| | + 353371 [rick.denatal] Yes.
| + 353362 [emr1776 mind] There are some important difference between the two.  While the object
+ 353365 [has.sox gmai] Symbols are like an identifier.  They're not really strings although they're
| 353367 [armywide gma] About symbol I always have the question, is ruby's symbol the same one
| 353378 [marnen marne] I don't think Perl has anything like Ruby's symbols (except perhaps
| 353381 [armywide gma] Thanks.
| 353383 [marnen marne] Yes, but you rarely touch that in actual practice.  Ruby symbols, OTOH,
+ 353393 [lists bertra] X = "hello"
| 353395 [rick.denatal] No you can't freeze variables, you can freeze the objects they reference.
| + 353405 [lists bertra] Yes, of course. I meant 'objects in regular, non-constant
| + 353423 [james grayso] The great thing about warnings, in my opinion, is that they sometimes =
|   353430 [marnen marne] I don't think I've ever had this happen in Ruby, since Ruby warnings are
|   353442 [james grayso] hard=20
|   353446 [marnen marne] Right -- if the tool is useful.  But I think you're trying to tell me
|   + 353448 [pg thimian.c] If your car makes a squaeling noise in certain circumstances, would you
|   + 353452 [james grayso] I was referring to items like seat belts and air bags.  ;)
+ 353413 [sonja kisa.c] Should I only use symbols for hash keys and method names?
  353438 [lists bertra] Today, I almost used floats as hash keys. I was really frightened