179340-181617

179101-182742 subjects 179532-186941

^ why would i want to put my mysql password in the yml file?
179340 [trevor idver] i don't understand - the tutorial says to edit the database.yml file and
+ 179341 [james_b neur] You should ask on the Rails mailing list.
+ 179342 [pergesu gmai] Wouldn't you have to store the password SOMEWHERE?  This comes up
+ 179375 [anibalrojas ] Using a DataSource (like in J2EE) you will still need to store the
  179378 [stefan.arent] Most app servers or frameworks like Spring allow you to
  + 179390 [gwtmp01 mac.] This only works if a person is starting the app at a keyboard.
  + 179392 [james graypr] You can do this with Rails too.
  + 179394 [wjl icecaver] charset="iso-8859-1"
  + 179547 [rasputnik gm] Then it will show up in 'ps' output.
    179760 [tony objectf] ... and be in the shell history file. Including passwords on the command

^ Re: why would i want to put my mysql password in the yml fil
179344 [trevor idver] ok, again i'm a bit confused by this.  (sorry if it has been discussed,
+ 179345 [wilsonb gmai] Typically the server component (like MySQL) doesn't store your
| 179352 [pergesu gmai] Exactly.  If you design an authentication system for your app, chances
+ 179348 [billk cts.co] It's kind of a client vs. server issue.  The server (the database in this
  + 179349 [billk cts.co] Sorry for being unclear here.  What I meant was what Wilson Bilkovich
  + 179350 [trevor idver] thanks for the clear-up, i do follow that logic
    179353 [pergesu gmai] You'd probably be way better off just making a quick PHP script.  No
    179549 [rasputnik gm] Be sure to take note of how PHP stores your DB connection
    179560 [pergesu gmai] I was just commenting on the scope of his project.  Collects some

^ test message
179346 [eric.wenbl g] ...
+ 179347 [james graypr] I was, but I'm off to bed now.  Nighty, night.
+ 179461 [david vallne] Of course not.

^ Private methods - only available to oneself?
179351 [minkoo.seo g] I'm a somewhat newbie in ruby realm, and trying to write some codes.
+ 179354 [ksruby gmail] The short answer would be: because Ruby is not Java or C++.
| 179364 [minkoo.seo g] Thanks, Kent.
+ 179367 [pan erikveen] Private methods are only callable from within the same objects.
  179369 [minkoo.seo g] It does in Ruby. However, Java and C++ allows that if the method is
  179373 [gavin refine] The reason of what design decision?
  + 179374 [minkoo.seo g] Thank you Phrongz. Now I understand what Erik said.
  + 179377 [google erikv] f = Foo.new
    179380 [minkoo.seo g] Okay. Now I got totally confused. What's the purpose of instance_eval?
    179381 [google erikv] Instance_eval evaluates the given block within the context of
    + 179382 [minkoo.seo g] I'm sorry Erik. I'm not native English speaker. So, sometimes it's not
    | 179385 [google erikv] I ain't either... :)
    | 179395 [gavin refine] I think the purpose of instance_eval is one of those "sharp knife"
    | + 179399 [gene.tani gm] There's a few loopholes around private and protected, e.g. subclass a
    | | + 179400 [dblack wobbl] I think there's still hope that that will disappear by 2.0 :-)
    | | | 179403 [matz ruby-la] Do you mean you are expecting funcall's vanishment?
    | | | 179405 [dblack wobbl] Yes, kind of.  I'm worried that we'll get a lot of "Which one does
    | | + 179416 [lukfugl gmai] An easier bypass, which I don't think[1] is closing in 1.9/2.0: reopen
    | |   179417 [lukfugl gmai] [1] I don't have a 1.9 version installed to test it on.
    | + 179742 [thorin thesh] The other main thing to be concerned about when accessing private
    |   + 179762 [nugend gmail] 1) When you're using an object in Ruby, the *only* way to interact
    |   | 179780 [thorin thesh] I'm not intending to talk about mixing methods with accessing fields.  I
    |   + 179767 [gwtmp01 mac.] Are you saying that the only visibility attributes should be public
    |     + 179791 [thorin thesh] No, I think the three levels of protection are all useful.  I was just
    |     | + 179813 [gwtmp01 mac.] Well singleton methods are implemented by tucking them away in a
    |     | | 179878 [minkoo.seo g] I believe that the class method is implemented transparently in Ruby,
    |     | | 179882 [gwtmp01 mac.] I wasn't suggesting that private was needed to implement class methods
    |     | + 179915 [david vallne] And I don't see the point of drawing a restriction in Java's private /
    |     |   179950 [minkoo.seo g] Private/protected meaning of Ruby is unique, and I believe some kind of
    |     |   + 179955 [dblack wobbl] This message is in MIME format.  The first part should be readable text,
    |     |   + 179967 [david vallne] I don't see the concept of method access restrictions as anything
    |     |   + 180152 [david vallne] Also, a minor mental exercise just came to mind. Presuming Ruby private would
    |     |   | 180164 [bob.news gmx] It's valid.  And it should be IMHO.
    |     |   + 181617 [jim weirichh] It is good to ask questions to come to a better understanding.  With
    |     + 179837 [minkoo.seo g] I don't think the following statement make sense.
    + 179383 [minkoo.seo g] Thanks, Erik. I'm afraid that I'm not a native English spearker, so
      + 179391 [james_b neur] To let you know when code is being used contrary to its design.  The
      + 179396 [hal9000 hype] 'private' is not like a locked door. It is like a sign saying "Do Not
        181463 [byrnejb hart] I do not understand why within the class definiton the Ruby interpreter
        + 181464 [dblack wobbl] I'm mostly guessing, but I imagine because it would be hard to
        + 181467 [none none.ne] Think of the self.foo call just accessing an object called
        | 181468 [byrnejb hart] Which is why I do not understand the purpose of the distinction between
        | 181471 [none none.ne] Conceptually, self.foo= should not require the 'self' part but it
        + 181470 [jim weirichh] Possibly because it allows you[1] to examine the code and statically

^ Starting Ruby
179355 [vadhavane_an] i m a web-developer(php).I just started learning ruby.
179356 [adamjspooner] Howdy!
179360 [vadhavane_an] Thank you very much.
+ 179425 [david vallne] If you want something along the lines of an IDE, try either FreeRIDE or
| 179446 [mail koffein] If you are using eclipse anyway, you could also give "rubyeclipse"
+ 179806 [jussij zeuse] It offers features like syntax highlighting, code folding,

^ NC Ruby group?
179357 [adamjspooner] I was just wondering if there was a Ruby group in NC (triad area).  If there
179358 [pat.eyler gm] enjoy!
179363 [adamjspooner] Thanks a ton!

^ OpenStruct problem
179366 [minkoo.seo g] OpenStruct class seems to be misbehave when it comes to hashing.
+ 179370 [interfecus g] Hashes don't behave well as keys either so it's no surprise openstructs
| + 179371 [gavin refine] Or rather, if you are going to use objects as keys, think of them as
| + 179376 [minkoo.seo g] What I want to do with OpenStruct is to store bigram in hash table.
| | + 179393 [hal9000 hype] Well, I talked to the author once (on this list -- you could look
| | + 179414 [shortcutter ] Probably not. That being said, an OpenStruct does not fit well as a
| + 179384 [g_ogata optu] Careful!  @table.to_a is ordered arbitrarily, so that hash function
|   179422 [interfecus g] You're right. The order depends on the order keys were added (although
|   179432 [hal9000 hype] Your comments about order lost me, can you clarify?
|   179485 [interfecus g] I meant to say "The .hash (of the hash) depends on the order keys were
|   179491 [g_ogata optu] Hash does not provide a #hash method at all; it falls back to
+ 179379 [google erikv] That's because the hash (I mean the result of #hash) of both

^ Insights into Ruby from Lua
179372 [gavin refine] In my job, I have to use Lua to program some of our software. For
+ 179406 [gene.tani gm] Excellent.  This post deserves to be preserved in rubygarden wiki
+ 179407 [petite.abeil] Bondage?
  179411 [gavin refine] Yup, that chapter in PIL is exactly what I'm talking about. That

^ Graphics in irb
179386 [a.mcguinness] I'm starting to teach my 7-year-old programming in Ruby, but unlike
179409 [gdprasad gma] I think you can look here for a solution

^ Determining system information
179401 [info jayeola] Chaps,
+ 179404 [cyclists nc.] irb is helping you out a bit. In a script, try
+ 179410 [info jayeola] Thanks for that reply. In response to your tip I writen the
+ 179413 [djberg96 gma] require "rbconfig"

^ [ANN] LibIDN Ruby Bindings Release 0.0.2
179402 [erikabele ru] LibIDN Ruby Bindings Release 0.0.2

^ facet gem versions
179420 [briankbuckle] The facet gems currently installed my system are
179424 [david vallne] #require_gem does that, requires a gem by its name. But requiring 'rubygems'
179474 [transfire gm] As of 1.0.3 I've instructed RubyGems to search in two places, namely

^ extending NArray
179421 [cameron.mcbr] I'm trying to make the fast extensions to NArray, yet still preserve
179625 [masa ir.isas] This is probably because a function (SetFuncs) is called
179666 [cameron.mcbr] Thank you for your response, Tanaka-san.

^ Adding variables to a binding
179426 [m-lists bris] I need to run an ERB template (a normal Rails view template) in a Rails
+ 179430 [vikkous gmai] def outerscope
| 179431 [m-lists bris] The problem is that ERB#result(binding) takes a binding so I need the
+ 179457 [david vallne] I -think- instance variables get exported from the ERB template into the

^ Upgrading to Ruby 1.8.4 and strange problems!
179427 [h.dunnil gma] SGkgZm9sa3MsClRoZXJlIGlzIGEgc3RyYW5nZSBwcm9ibGVtIGhlcmUsIEkndmUgaW5zdGFsbGVk

^ The ruby way of interrupting a Kernel::select?
179428 [lerno dragon] As a newbie with too much java-experience, I found it strange that I

^ Quickly before all is lost!
179434 [alex.combas ] ZOMG! Ruby RSS feeds growing exponentially!
179435 [james_b neur] There are a few.  Artima's Ruby Buzz is one.
179439 [alex.combas ] Thanks!
179453 [james_b neur] There are two "Planet Ruby" sites, one in Japanese, one in English.
+ 179459 [david vallne] Right. I'm worried. Now comes the part where you knock on my door with a trout
+ 179490 [dave burt.id] Here? --> http://rubygarden.org/ruby?RssFeeds
  179493 [dblack wobbl] James had already mentioned that URL.  I think his latter point was
  179526 [alex.combas ] But my point was that if you go here http://rubygarden.org/
  179529 [james_b neur] Which was part of the point I was trying to make.
  179533 [alex.combas ] Sorry I didn't mean to come across with any attitude but
  179553 [james_b neur] Oh, of course, and I didn't read any attitude into your post.

^ Getting last character from a string
179440 [thedraco go2] I'm new to Ruby. I've a simple question.
+ 179441 [Nuralanur ao] you can use
+ 179442 [james graypr] Welcome then.
+ 179443 [wilsonb gmai] last_char = x[-1,1]
+ 179444 [cyclists nc.] last_char = x[-1,1]
| 179469 [Gennady.Byst] x[-1].chr
+ 179480 [w_a_x_man ya] "abc"[ -1..-1 ]
  179482 [thedraco go2] Wow :)

^ Rake Friday?
179447 [Bil.Kleb NAS] Is there a Friday,
+ 179448 [james graypr] That is a great idea.  :)
| 179449 [marcel verni] Yes. Please. But don't let that get in the way, Jim, of you writing a Friday
| 179450 [agorilla gma] I'll take one of each.
| 179458 [nugend gmail] How about a double whammy?  A book on DSL design using Rake as the
+ 179611 [joshknowles ] +1, definite buy for me.
+ 179752 [james_b neur] In the interim, any chance of the Rake  wiki being restored from spam hell?
  179761 [jim weirichh] The wiki is a lost cause.  It was way to much work to keep it despammed.
  179764 [james_b neur] Ah.  Sad.
  + 179766 [tom infoethe] Yup, I need to fix that... it's been on my List Of Things To Do for a
  | 179770 [billk cts.co] Sorry for jumping into the middle of the thread, if this has
  | 179772 [tom infoethe] Yup, that's a good idea.  If UseMod (that's the Wiki RubyForge uses)
  + 179769 [jim weirichh] Lacking shell access on rubyforge makes this difficult to do stuff like
    + 179771 [tom infoethe] Yup, priority += 1... and now I've actually written it down!
    + 179776 [james_b neur] Jim, you're the greatest.

^ Itterating through one's path(s)
179454 [info jayeola] I'd like to see if I can itterate through the directories
179463 [bauer.mail g] I'm not exactly sure what your're trying to accomplish.  If you're
179495 [info jayeola] John Maclean

^ February Ruby events in the SF Bay Area
179455 [rdm cfcl.com] Although it's getting late in the month for this announcement,

^ methods and default values
179465 [jarnaud pros] class Text
+ 179467 [manveru weez] Hey jarnaud,
| 179484 [malteNOSPAM ] By the way, I assume that the default "no" should be omitted here, simply
+ 179489 [shortcutter ] I'd represent false by nil or false and not "no". That way you can

^ ruby course confusion
179466 [alex.combas ] Working my way through the "ruby course"
179470 [M.B.Smillie ] A function in this case would be a method.  The two terms are often
179537 [alex.combas ] Thanks Matthew, I appreciate you taking the time
+ 179544 [david vallne] D'oh.
+ 179616 [M.B.Smillie ] Well, it's meant to illustrate a very handy property of blocks, but

^ the problem of install mysql driver using gem for Rails
179471 [gaoxtwarrior] No more words, see the console textíž
179527 [david vallne] The MySQL driver apparently requires compilation of the native bindings. Do

^ Simultaneous text input/output in a command line game
179472 [rubyvic gmai] ____________________________
+ 179473 [Gennady.Byst] t = Thread.new {
+ 179486 [interfecus g] require 'timeout'
  179519 [r.mark.volkm] I thought this was a good example, so I tried running your code. It

^ accessing Class from class symbol
179487 [stephen.hill] I'm trying to work out how to access Class methods when I only have the
179492 [g_ogata optu] Kernel does have `send', but classes aren't methods... :-)

^ immutable and enumerable?
179496 [info jayeola] Every language and profession has it's own language. Ruby is no
179500 [dave burt.id] Immutable is not a Ruby-specific term. Its meaning in this group is pretty
179501 [bob.news gmx] The term "enumerable" is also often used to denote classes that include this

^ SAFE levels
179498 [tallison tac] Is there somewhere I can find some description on the proper care and feeding of
179535 [david vallne] irb(main):001:0> require 'ostruct'
179601 [ssmoot gmail] What's that "_" method/object? Google doesn't search on punctuation
179608 [david vallne] irb automatically populates the _ variable with the result of the last line

^ Framework for storing objects in a relational database
179499 [thomas.gies ] I know, off course, that there is an implementation of the active record
179704 [lukfugl gmai] I don't know a lot, but am willing to investigate with you, I find ORM

^ Cutting a piece of text
179503 [szczupienczy] Helo !
+ 179506 [james graypr] You can do it with a regular expression like the following, but I
| + 179508 [szczupienczy] regular expresion works :). Anyway thank you, you helped me very much.
| | 179513 [james graypr] / <      # find a < character
| | 179514 [szczupienczy] Big thank you too all of you guys for such a response. This helped me
| + 179517 [lopexx autog] p "<lyrics artist=XXX album=XXX title=XXX> Lalalalala
|   179521 [james graypr] Are you sure?
|   179540 [david vallne] The nongreedy match has to "back up" and retry on every character after the
|   179545 [lopexx autog] Ooops.. You are right!
|   179567 [david vallne] Yes, they do backtrack. The point is in using the one that you expect to
+ 179507 [david vallne] The very geeky, and most probably least error-prone way would be whacking the
| 179511 [james graypr] The following is how you do it for valid XML, but the posted example
+ 179512 [samuel.murph] a =  "<lyrics artist=XXX album=XXX title=XXX> Lalalalala </lyrics>"
+ 179669 [w_a_x_man ya] p " <lyrics artist=XXX album=XXX title=XXX> Lalalalala </lyrics>".

^ Ruby's lisp features.
179515 [edward kenwo] I've been programming for more years than I care to remember and am
+ 179516 [james_b neur] Could you explain what you mean by "lisp-like features"?
+ 179522 [david vallne] Well, Ruby is a strongly derivative language, there's not THAT much in terms
| 179583 [edward kenwo] Thanks for all that David :-)
+ 179615 [james graypr] I'm currently reading Higher-Order Perl by Mark Jason Dominus, which
+ 179642 [matz ruby-la] * take a simple lisp language (like one prior to CL).
  + 179647 [james_b neur] Matth
  + 179649 [david vallne] You forgot adding onions to taste.

^ Rescuing blocks?
179520 [nugend gmail] Hey guys,
179523 [david vallne] I'm afraid I don't quite catch your drift. What do you mean by a block not
179524 [nugend gmail] Whoops, shoulda thought of that, a-doy.
+ 179528 [vanek acd.ne] this works,
| 179531 [r.mark.volkm] Sure it works, but Daniel wants to reduce the syntax a bit AND exit
| 179542 [david vallne] It would cause a little inconsistency with the curly brace form of blocks.
| 179552 [nugend gmail] Is
| 179565 [david vallne] How would you parse the difference whether the raise applies to the whole
| + 179570 [dblack wobbl] This message is in MIME format.  The first part should be readable text,
| + 179574 [nugend gmail] Sorry, not sure what the issue is (I assume you mean rescue, not raise there).
|   179586 [david vallne] <dense>D'oh. Didn't know that one... </dense>
|   179695 [phurley gmai] +1
|   + 179726 [nugend gmail] So, maybe this calls for a RCR?
|   + 179925 [david vallne] Die.
+ 179935 [drbrain segm] You're going to get a performance hit setting up an exception trap
  179968 [ruby-talk de] Time for some down-South edumucation. What kind of performance hit are
  179974 [hal9000 hype] Well, my knowledge is limited. Someone else can answer better.
  + 179975 [ruby-talk de] That's kind of along the lines of what I was thinking, just better said.
  | 179976 [hal9000 hype] Well, I think the point is that there is some non-zero amount of "invisible"
  + 179985 [drbrain segm] Yes.  You get a setup/teardown of an exception handler for every
    179994 [phurley gmai] Sure, but couldn't the parser "flag" blocks that have the exception
    179999 [nugend gmail] Though Eric's machine chugs a little more than mine, I'd be interested
    + 180040 [ruby-talk de] On a lark, I did this, and was shocked at the result. Why the massive
    | + 180044 [logancapaldo] charset=US-ASCII;
    | + 180081 [david vallne] Because it's a literal hash constructor, not a nested block?
    + 180041 [ruby-talk de] On my machine, WinXP Home SP2, 512mb RAM, Athlon 1900 (or so). Both
threads.html
top