215958-217579 subjects 216396-228512
^ Importing from YAML
216120 [ruby tobyrod] I've learned that a very quick and easy way to save a Ruby object to a
+ 216123 [MonkeeSage g] YAML#load (or its synonym #parse) loads object(s) from a YAML string.
| 216126 [ruby tobyrod] Many thanks Jordan. For anyone interested I've just given it a go and
| + 216127 [ruby tobyrod] Oops, that should be 'loadMyObject' of course ...
| | 216132 [james graypr] Actually, the Ruby convention is to methods and variables like_this
| + 216131 [james graypr] No need to assign to a local variable there, since it goes out of
+ 216187 [eero.saynatk] No-one mentioned it but the f.close in the File.open block
^ Adding a new method to a class
216144 [faivrem gmai] What is called the process of adding a new method of an already defined class ?
+ 216148 [MonkeeSage g] I'm not sure of any official technical name but I often see "extend"
+ 216152 [shortcutter ] irb(main):014:0> class A
| 216159 [faivrem gmai] Thank you MonkeeSage for your precisions.
+ 216161 [robert.dober] Actually that is the *only* way to add a method to a class. In Ruby the
^ [ANN] ParseTree 1.5.0 Released
216147 [ryand-ruby z] ParseTree version 1.5.0 has been released!
216178 [dbatml gmx.d] There seems to be a problem with RubyInline's strip_comments(). I'm not
216191 [ryand-ruby z] Please file a bug.
^ Ruby on Rails Relationships
216167 [murdoc_0 hot] I'm not sure if this is an appropriate group to ask for assitance with Ruby on Rails, so let me know if it isn't.
+ 216177 [jeremy bitsw] Please see http://groups.google.com/group/rubyonrails-talk
+ 216643 [butterflyass] I think you're mixing the object model with the DB schema. Yes--in
216973 [murdoc_0 hot] First, it isn't a one-to-many relationship. Each venue can only ever be associated to a single address record. However, that address may be shared amongst multiple entities (each of which can only ever be linked to one address).
216974 [has.sox gmai] Is this correct then?
^ How do I create an attribute accessor to do this...
216171 [james2mccart] I want to be able to do this to merge a hash into attribute bas on
+ 216173 [transfire gm] class Hash
| + 216182 [james2mccart] Thanks Trans, I will have a go tomorrow it is very late here in the UK
| + 216183 [james2mccart] Thanks Trans, I will have a go tomorrow it is very late here in the UK
+ 216174 [dblack wobbl] Here's one way. It involves assigning a hash to @bar, and adding the
216185 [james2mccart] Thank you both for such quick responses. I will give this a go tomorrow
^ Re: [QUIZ][SOLUTION] Code to S-Exp (#95)
216176 [ryand-ruby z] I only spent about 30 minutes on this and it does a minimal job of
216621 [kbloom gmail] And you should have no clue why, since you're not overriding core methods
216188 [jonathanbona] unsubscribe
^ global error handling in rails
216195 [msoulier dig] Hey people,
^ using common layout in Rails
216196 [msoulier dig] I'm looking at building a web management interface that will work via plug-=
216228 [interfecus g] Mongrel can run multiple servlets but only a single Rails app can run
216264 [msoulier dig] Is there a way to specify a common layout for multiple Rails apps? Surely
216405 [interfecus g] Take a look at the API. You can select a base directory for the views
216201 [msoulier dig] I see that there is a Signal class in the core for catching signals. Where
216203 [logancapaldo] % cat alarm.rb
216245 [msoulier dig] But that doesn't tell the OS to send a SIGALRM at a predefined time. I've
216258 [logancapaldo] Oops, sorry misunderstood the question. Is this better?
216272 [msoulier dig] Impressive that you could write this so quickly. Still, shouldn't this be in
^ [OT] duck origins [was: Re: [QUIZ] Code to S-Exp (#95)]
216204 [ryand-ruby z] OT Guys... OT. Instead of polluting the quiz's thread, change the
216205 [ben bleythin] And compose a new message and copy/paste whatever you're quoting, or
^ Problem in new.rhtml file
216210 [rainaple tin] TABLES
216211 [nepentherepr] You've forgotten to close your for loop. The error comes after the
^ How can I fix this?
216213 [Andrej.Gaevs] I`m just install Ruby 1.8.5
216220 [jan.svitok g] Just a blind guess: Aren't you mixing two ruby versions? c ruby and .net ruby?
216221 [Andrej.Gaevs] Please tell me how
216224 [zedshaw zeds] Gaech,
+ 216247 [Andrej.Gaevs] Please write about RubyCLR install in details
+ 216251 [tom popdog.n] For once I think Zed may be wrong. RubyCLR is a bridge between ruby
+ 216259 [zedshaw zeds] Oh yeah, my bad, I thought RubyCLR was the IronPython alternative and ran on the .NET VM natively. But yeah looks like it uses ruby and hooks into it.
+ 216268 [Andrej.Gaevs] I just follow instruction on rubyclr.com
216273 [tom popdog.n] Strange, the winforms code seems to require activerecord. I'm not an
216274 [Andrej.Gaevs] `report_activate_error': Could not find RubyGem activerecord (>= 0.0.0)
216275 [tom popdog.n] gem install activerecord --include-dependencies
216281 [Andrej.Gaevs] I type in command prompt
216283 [Andrej.Gaevs] Need to update 0 gems from http://gems.rubyforge.org
^ New! ObjectiveView Issue 9
216216 [enogrob hotm] Issue #9 of ObjectiveView [pdf], a highly respected on-line journal has
+ 216255 [wccrawford g] I'm not trying to troll, but calling something 'highly respected' while
+ 216261 [thomas.adam2] I won't reiterate the comments posted by William Crawford, but what I
+ 216262 [jan.svitok g] None. It seems to be a bot.
+ 216263 [paul plsys.c] I am wondering - why are people talking to a spambot? (Check the
| + 216270 [james graypr] James Edward Gray II
| + 216271 [znmeb cesmai] And *I* am wondering how a spambot got to be a "member" of our "club".
| | 216284 [robert.dober] Maybe I am in a very bad shape here, but this is not a joke, right?
| + 216279 [wccrawford g] Because... I... Um...
+ 216269 [james graypr] This is very old news. I'm not sure when the issue was released but
^ Make Ruby on Rails easy with RadRails and Eclipse
216217 [enogrob hotm] RadRails is the Eclipse-based IDE for Ruby on Rails. Learn about
^ Sun Takes on
216218 [enogrob hotm] Sun Microsystems announced last week that Charles Nutter and Thomas
216225 [zedshaw zeds] Don't you mean 1.0 Enterprise Edition 2.3 Excelsior status? I think you're missing a few project code names too.
216230 [gilesb gmail] I've read Charles' posts many times. The JRuby project is pretty cool.
216233 [zedshaw zeds] and
+ 216243 [zedshaw zeds] Oh well, either I'm losing my touch at being funny or it's against corporate policy.
+ 216248 [eleanor game] Another very good book on interpreters is http://www.amazon.com/
| 216344 [ryand-ruby z] Seconded. Kamin's is a very good book.
| 216367 [robert.dober] Hey someone my age, brilliant book, but maybe outdated a little bit, well
+ 216276 [tom infoethe] And the 2nd edition is out, w00t!!
^ Yahoo promotes Flash, Ruby mashups
216219 [enogrob hotm] Yahoo announced on Thursday the addition of the Flash Developer Center
^ ruby wizards, help me beautify skanky code
216229 [gilesb gmail] @inducers = 
+ 216234 [jan.svitok g] typo!!! @inducers
+ 216235 [zedshaw zeds] require 'set'
+ 216236 [dblack wobbl] I assume you mean @interactions.push here.
| + 216240 [dblack wobbl] I mean I assume you mean @inducers.push here.
| + 216354 [gilesb gmail] change upcase to capitalize (and pull out the line condition= ) and I
| + 216359 [dblack wobbl] Whoops -- a cut-and-paste accident :-)
| | 216391 [has.sox gmai] I didn't realise you could get the key and value from the each method.
| + 216422 [ezmobius gma] script/plugin install svn://rubyforge.org/var/svn/ez-where
| 216523 [gilesb gmail] OK -- here's what I have at the moment.
| 216535 [Fdavis usban] Is this what they mean when people talk about using wizards to generate
| 216556 [gilesb gmail] *rimshot*
+ 216253 [has.sox gmai] I'm assuming that you're using rails here. Maybe not... I'm trying to get
+ 216254 [has.sox gmai] Sorry... Typo... should be
+ 216260 [zedshaw zeds] Yes! That's what I was talking about. Couldn't think the voodoo up though.
^ How to use iterator for access to multiple elements?
216231 [sven ast.dfs] I want to write a function that calculate the time difference between
216232 [sgentle gmai] Have a look at Enumerator#each_slice and Enumerator#each_cons
216237 [sven ast.dfs] Thanks, each_cons should be the right one for me.
216418 [sgentle gmai] Certainly. I use www.ruby-doc.org - specifically the "core api" and
^ Marshal formats
216238 [manfred gmai] For certain unicode operations I need to store and read a fairly large
216340 [vjoel path.b] Marshal format should be identical across platforms. (Otherwise, drb
216434 [manfred gmai] Oops, yes, I guess you're right. Just remember to open the Marshal file
^ RoR : Linking tables without ID column
216257 [teamdba scot] Folks,
^ Re: Ruby (X)HTML Parser?
216277 [jordan.elver] There's Hpricot. Haven't used it myself though.
+ 216292 [alex blackke] The closest you'll find to a standard is REXML, which is an XML parser
| 216330 [vacindak gma] Well... he probably won't learn much from the FeedTools code, but it is
+ 216294 [MonkeeSage g] Hpricot is *really* nice. Also, there is the standard REXML (built-in
+ 216317 [ruby-talk wh] gem install hpricot --source code.whytheluckystiff.net
^ [SOLUTION] Code to S-Exp (#95)
216282 [dbatml gmx.d] Here is my solution.
+ 216352 [kbloom gmail] Here's my pure ruby code, which I coded up before making the quiz. I
| 216357 [kbloom gmail] Here's my pure ruby code, which I coded up before making the quiz. I
| 216361 [jtregunna bl] Shouldn't 3 be entirely optional? =]
| 216362 [james graypr] Sorry, it's required. ;)
+ 216735 [kbloom gmail] Is there a way to make your code pass this test (even though it's not
+ 216737 [kbloom gmail] Is there a way to make your code pass this test (even though it's not
+ 216738 [kbloom gmail] Is there a way to make your code pass this test (even though it's not
216779 [dbatml gmx.d] Yes that is possible by using eval and the block as binding. I implemented
^ Object initialization problem
216285 [j.vimal gmai] Say I have a Hash, and an instance called wordcount, that maps strings
+ 216286 [dblack wobbl] Not in Ruby you don't :-)
+ 216287 [jameskilton ] class Hash
216288 [dblack wobbl] There's also DRR (Don't Repeat Ruby :-) Hashes are already good at
216290 [jameskilton ] Doh! I'm getting caught up in the cooler features of Ruby and forgetting the
^ Error/exception documentation
216289 [c.donhofer c] browsing through the ruby documentation(http://www.ruby-doc.org/core/),
216302 [c.donhofer c] i just noticed that there are some notes on errors raise, but some
216308 [jan.svitok g] In that particular case, you'll likely encounter Errno::* exceptions.
216313 [c.donhofer c] thx jan, i'll have a look at it.
216315 [gavin.kistne] It definitely should. Ruby's documentation has been a sore spot for a
216328 [c.donhofer c] lol
^ rubygems user install of extensions
216293 [aglarond gma] My problem is that I am trying to run a gems installation as a non-root
217524 [nobu ruby-la] INSTALL should not have -o and -g options by default. Why do
217631 [aglarond gma] This is from the standard ports install on FreeBSD. I've also posted to
217770 [nobu ruby-la] You could override the definition in Makefile by make
217780 [aglarond gma] Thanks for the tip! I ran across this problem when installing gems that
^ asking for a page test (on win* IE+)
216297 [pere.noel la] I'm rewroting a page about RUBY.EXT, this page will be no more than the
^ unused methods
216298 [cheshire137 ] I'm wondering if there is a good, quick way to determine unused methods
+ 216299 [phlipcpp yah] Grab Watir, and write acceptance tests for each feature in your project.
+ 216303 [jan.svitok g] rcov (gem install rcov) will give you coverage info (i.e. what lines
^ Locale depend time output?
216305 [mbj seonic.n] irb(main):005:0> Time.new.strftime('%A')
216309 [gavin refine] ...
^ How to copy a method from one class to another
216310 [sam.s.kong g] Is there a way to copy an instance method from one class to another?
+ 216311 [logancapaldo] You can inherit.
+ 216312 [nospam nosit] Perhaps it would be better for you to describe the problem this idea would
| 216314 [gavin.kistne] Select lines 2-4.
| 216437 [robert.dober] I tend to disagree, I do not know about Lua, but for me Ruby's methods are
| 216465 [logancapaldo] Sometimes people define first class in terms of the additional syntax
| 216466 [transfire gm] They are Functor, but they are not 1st class
| 216469 [robert.dober] Aha, I do not have the faintest idea what 1st class means - now because I
| 216827 [robert.dober] <SNIP>
| 216837 [gwtmp01 mac.] If you are talking about instances of the Method class, then yeah, they
| 216840 [robert.dober] ty Gary you make my point, when we talk about strings, methods objects we
| 216841 [vincent.four] However, there is quite a difference between String/string and
| 216850 [robert.dober] Hmmm that is a point I might have overlooked in the definition
| 216906 [rick.denatal] Well, I for one think that it is. I made that comment on the
| 216936 [robert.dober] See the second comment "Is it or Ain't It"
+ 216324 [sam.s.kong g] OK. I need to describe what I want.
+ 216327 [MonkeeSage g] module C1
| + 216333 [verno mailin] How about using something like "inheritance and super function"?
| | 216338 [sam.s.kong g] But C1 and C2 are in different class hierarchies.
| + 216337 [sam.s.kong g] Unfortunately, C1 is already a class.
| + 216343 [flori nixe.p] class Rubyforge::C1 # for example in some rubyforge library
| 216363 [sam.s.kong g] I think you're understanding my problem very correctly.
| + 216382 [rick.denatal] And even in a language like C++ which supports multiple inheritance,
| + 216393 [matz ruby-la] If you are not allowed to modify existing classes. Most of the cases
+ 216341 [sam.s.kong g] Yes, I think you're entirely right on this.
216345 [flori nixe.p] If this is possible, it is a better solution of course. I think in
216356 [MonkeeSage g] Ah-ha. I'm kind of slow. ;)
^ net/ldap session credential
216318 [rcmn73 gmail] i'm writing a script that will populate data into AD from a DB .I will
+ 216319 [rcmn73 gmail] BTW i had to use this "empty" post because i had "APPLICATION ERROR"
+ 216322 [garbagecat10] I'm not sure what you're trying to do. I don't understand why you need to
216342 [rcmn73 gmail] I will compile it to make it more portable(*.exe).So i don't have to
216374 [garbagecat10] You're planning to write Ruby code, and then compile it (somehow) into an
216568 [rcmn73 gmail] Nothing to do with security.It's to do with teamwork and avoid
^ [ANN] South East Michigan.rb Mtg Tonight
216321 [phurley gmai] The details can be found at http://rubymi.org/ we are going to be
^ [ANN] open4-0.8.0
216323 [ara.t.howard] URIS
216355 [ml synthetic] $ sudo gem install open4
216360 [ara.t.howard] gems sometimes take quite a while to propagate. in the meantime you can grab
^ commit2rss.rb - running on hooking up CVS NT
216334 [paul.s.barri] charset="iso-8859-1"
216387 [nospam nosit] / ...
216459 [paul.s.barri] I've removed that potential problem from the script, but to no avail. From reading through some of the news groups there seems to be some suggestion that Ruby needs to have a real console to read from STDIN. Whether this is specific to Ruby on Windows I do not know.
^ [Solution][QUIZ] Code to S-Exp (#95)
216349 [boris.prinz ] I wouldn't use this code in a production environment, because
^ mod_ruby or FastCGI multiple instances single file
216364 [reiff public] I'm in the process of moving from the J2EE to the Ruby world (+ Apache,
+ 216392 [snacktime gm] No, it's one instance of the ruby interpreter for the whole apache, as
+ 216413 [rubyzbibd ub] Take advantage of your operating system and use File's flock features.
| 216563 [reiff public] Thanks for all the great help.
+ 216414 [garbagecat10] Another possibility: write a single-threaded server on a localhost UDP port
^ Installing glark on a Windows platform: How to?
216365 [RichardDummy] I just discovered glark which offers search facilities I'd like to use.
216447 [hgs dmu.ac.u] Just unpack it anywhere, then copy the glark.rb to ruby's bin directory.
+ 216627 [RichardDummy] ...
+ 216628 [RichardDummy] Worked great!
^ Segmentation fault debugging Ruby 1.8.4 in Eclipse 3.2
216366 [giacecco gma] Fresh Eclipse 3.2 on MacOS X 10.4.7, latest stable Ruby Development
^ How to spawn an idependent child procees on Win32?
216370 [dokondr gmai] 1) after spawning child could continue without blocking and not waiting
+ 216372 [khaines enig] Kirk Haines
+ 216424 [nobu ruby-la] $ ./ruby -v -e 'p pid = spawn(%[./ruby -e "sleep 3"]), Time.now; p
^ Fresh Fish!!
216377 [sdasifiqbal ] Hey guys, yet another ruby-nuby here. And I am totally floored, but
+ 216378 [sigma.kappa ] How about "Learn to Program" by Chris Pine?
| + 216379 [sambient gma] I'd recommend "Between Nothingness and Eternity" Jean Paul Satre!
| + 216381 [sdasifiqbal ] Actually I am learning quite a bit about Ruby from the original Chris
+ 216380 [rcmn73 gmail] I would try online tutorial before investing on any books.Once you're
+ 216383 [rdm cfcl.com] Actually, I wouldn't suggest either one as a tutorial.
+ 216384 [huw DELTHISB] You might want to try my 'Little Book Of Ruby' - 10 chapters, it's free and
+ 216385 [sambient gma] There is another book that just came out and it's available on Lulu ?
+ 216388 [TimHunter nc] Welcome to Ruby!
216394 [james.britt ] David A. Black's, Ruby for Rails.
216395 [has.sox gmai] +1 for Ruby for Rails.