283351-336654

283130-288607 subjects 283560-284294

Is there any way to redefine the `new' method?
283351 [pluskid@gm i] class to represent scheme Symbol.
+ 283352 [binary42@gm ] Symbol.all_symbols
+ 283385 [rick.denatal] Well.
  283506 [shortcutter@] Good point.
  283510 [shortcutter@] module Scheme
  283513 [pluskid@gm i] Thank you, Robert! I think that's really what I want! :)
  283536 [chromatophor] module Scheme

Search Array
283354 [rubyror@go g] I am trying to convert the folowing code into a class method.  which

pulling out a specfic feild from a line
283363 [loftuz@gm il] Hey guys
+ 283364 [loftuz@gm il] Sorry about the spelling btw
+ 283368 [sepp2k@go gl] "example 1\texample 2\texample 3".split("\t")[2]
  283377 [loftuz@gm il] ok but lets say im looping through an array full of different lengths
  + 283379 [sepp2k@go gl] arr = File.readlines("example.txt")
  | 283511 [loftuz@gm il] thanks alot!
  | 283514 [loftuz@gm il] I got it
  + 283508 [shortcutter@] You have an assignment here which is not what you want here.

Instant Rails Update Plans
283367 [rbazinet@gm ] ...
283370 [mo_mail@on h] Rob,
283430 [rbazinet@gm ] ...

Refactor into a class method.
283371 [rubyror@go g] objects = [bsn0, bsn1, bsn2, bsn3, bsn4]
283373 [shortcutter@] I suggest you use Enumerable#any? instead of #each here and throw away

Test::Unit messages
283372 [aidy.lewis@g] I would like to add additional comments to the ouput of my unit
283391 [tim.pease@gm] I know most of the assertions support adding a comment after the

How do I convert string/text from column to hash ???
283378 [homebeautypi] I am newb in RoR, i have problem to convert data from database to hash.

[Call for Papers] Workshop on Self-sustaining Systems (S3) 2008
283380 [Schmidtwisse] I know, this is slightly uncommmon in the Ruby community, but there

New developer looking for 101 projects
283384 [earthandalls] I have a background in C++ and VB from a few years back, but I'm
+ 283386 [james@gr yp ] How about Ruby Quiz?
| 283403 [earthandalls] Thanks! That is a great site and I will definitely take a look at it.
+ 283389 [tim.pease@gm] Try the Ruby Quiz page <http://www.rubyquiz.com/>.  These are two
| 283393 [james@gr yp ] Actually, we are seven quizzes short of three years of weekly quizzes.
+ 283399 [phrogz@ma .c] You might want to look through the simpler problems on http://rubyquiz.com

Showing Running Processes in variable
283396 [contact@th r] I want to capture the list of running processes on my computer. I am to
+ 283404 [bulliver@ba ] x.split("\n").each do |line|
| 283413 [contact@th r] Thanks for the help Darren....what you proposed works but it doesn't
| 283418 [adam.shelly@] I'm not a web guy, but... You need a <br> to generate a newline in html, right?
+ 283426 [djberg96@gm ] I recommend sys-proctable instead.
| 283436 [contact@th r] Thanks for the replies but they don't seem to work in Rails.
| + 283443 [joon@ru yh a] def view
| + 283453 [djberg96@gm ] gem install sys-proctable
|   283470 [contact@th r] Thanks for all the help everyone. Someone from the rails forum gave me
|   284406 [dangerwillro] While using <pre> elements to preserve whitespace is simple it also
+ 283428 [joon@ru yh a] def view
+ 283662 [znmeb@ce ma ] You haven't specified what operating system you're using. On *Linux*,
  284413 [djberg96@gm ] On Dec 14, 9:41=A0pm, "M. Edward (Ed) Borasky" <zn...@cesmail.net>

persistent tuplespace
283405 [chromatophor] just trawling google a bit i've found a few references to
283417 [ara.t.howard] i hacked tuplespace to be backed by sqlite and hit a few
283552 [chromatophor] yeah i stumbled upon rq a year or so ago, and forgot all about it.
283575 [ara.t.howard] 99% of the work has been done for you.  check out fsdb.
283596 [vjoel@pa h. ] Also, fsdb[1] does its own mutual exclusion, both for ruby threads and
283631 [chromatophor] will have a close look.

Regexp Matching Not Blank And Not A Specific Word?
283406 [boss@ai bl d] Please could somebody show me how to write a regular expression that
+ 283411 [sepp2k@go gl] It's not you. The ruby 1.8 regexen don't support negative lookahead. You'll
| 283414 [phrogz@ma .c] On Dec 13, 11:47 am, Sebastian Hungerecker <sep...@googlemail.com>
+ 283415 [phrogz@ma .c] irb(main):006:0> tests = [ "", "dog", "cat", "doggone it" ]
  + 283421 [nyarly@gm il] ...
  | 283528 [boss@ai bl d] That looks very useful.  I'm often twiddling regexps (time-
  + 283526 [boss@ai bl d] That's fantastic, thank you!

Using print and puts for output
283416 [info@ja eo a] # just play with an array and see what you can do with it
+ 283419 [sepp2k@go gl] puts adds a newline at the end if there isn't one already. print doesn't.
+ 283424 [rick.denatal] Puts is defined in terms of print, and handles multiple arguments and

Newbie Question: What is a class for?
283432 [hibridmattha] I am a newbie to Ruby and have just recently gotten the hang of using
+ 283442 [kyleaschmitt] This is more than a ruby question, it's a basic OOP (Object Oriented
+ 283445 [mental@ry ia] Very loosely speaking, classes are a way of grouping together
+ 283448 [rick.denatal] Classes do several things.
+ 283479 [m_goldberg@a] Expanding on this analogy, classes are tools for building more tools,
| 283485 [shevegen@li ] They are a way to specifically shape your objects.
+ 283507 [sepp2k@go gl] In your code you use a lot of objects, right? Like 1 is an Integer object,
+ 283523 [lloyd@2l ve ] All the other guys said lots of cool and useful technical stuff.  Let me
| 283535 [rick.denatal] I feel that I have to caution about trying to import concepts from
+ 283991 [fox@ns l. su] One way to think of a class (a restricted definition to get you started)
+ 283996 [jbrains762@g] I think of classes as a way to organize code that wants to share data,

telnet class - proxy option
283435 [heath.novak@] Does anyone know where I could find examples on the use of the proxy

Reinstalling Gems after updating Ruby
283438 [alex.decaria] If I update to a newer version of Ruby using the 1-click installer, do I
283491 [luislavena@g] On Dec 13, 7:12 pm, Alex DeCaria <alex.deca...@millersville.edu>
283718 [renard@nc rr] I make a make a copy of folder ruby\lib\ruby\gems\1.8

declaration for module  methods which need to be implemented
283440 [pdavidow@gm ] module Parenting
283489 [transfire@gm] You general just make a comment in the module docs. Ie.

declaration for module  methods which need to be implemented
283441 [pdavidow@gm ] module Parenting
283515 [eeklund@gm i] There are ways (you can play around with Parenting.inherited and do

Enforce implementation of Module method
283444 [pdavidow@gm ] module Parenting
+ 283467 [kbloom@gm il] It may be the more ruby way to rely on the commenting convention (there's
+ 283468 [phrogz@ma .c] module Parenting
  283537 [gareth.adams] And of course, there's a rather handy NotImplementedError class just sat there
  283541 [Rob@Ag le on] If you simply don't define Parenting#children, you'll get a

[ANN] Third edition of "Programming Ruby" now in beta
283446 [dave@pr gp o] Ruby 1.9 is just around the corner, so it looks like a good time to =20
+ 283447 [ben@be ma ey] and not
| 283452 [dave@pr gp o] Yes.
| 283458 [markonlinux@] The discount only appeared once the item was added to the cart.
| 283465 [satish.talim] ...
+ 283450 [rick.denatal] Ahem.. Is this a Freudian typo?  That URL just redirects to
| 283459 [kbloom@gm il] I think you just fell down a Freudian staircase. That just corrected an
| 283473 [rick.denatal] Probably because I've been re-reading "Goedel, Escher, Bach" lately.
+ 285142 [john@ja eo a] Does this book continue with the jukebox example?
  285190 [rick.denatal] Yes

Unit tests with Authorize.net and ARB
283449 [jake@ja ov t] Hey folks--

[Corrected][ANN] Third edition of "Programming Ruby" now in beta
283451 [dave@pr gp o] Ruby 1.9 is just around the corner, so it looks like a good time to =20
283457 [satish.talim] ...

Some questions about Ruby 1.9
283455 [ihatespam@ho] I fear many of my questions will belong to the "often asked" category
+ 283460 [grabber@gm i] ...
+ 283462 [mental@ry ia] Ruby will no longer have green threads, as such.

Executing Files (without shell)
283456 [fedzor@gm il] Is it possible  (without syscall ) to execute a file without using a
283466 [kbloom@gm il] Calling Kernel#system will sometimes fork a shell if you pass it
283471 [fedzor@gm il] Guarenteed? Are you certain? I just want to be sure....

Re: Gosu 0.7.8, also: Ludum Dare timed gamedev compo this weekend!
283463 [julianraschk] Version 0.7.8.5 just followed. Should be available on gem real soon.

Re: leopard update - any Ruby hassles?
283464 [phrogz@ma .c] Do you have your own home-built ruby install in /usr/local/bin, or
283474 [timocratic@g] Ah, so you were complaining about the install set-up without using it
283480 [dangerwillro] the stock install on Leopard seems pretty darn good.
283482 [rgkaufman@gm] Everything went pretty smooth for me too... with the exception of
283549 [dangerwillro] Main thing I recommend, make sure your Mac is recent or powerful

Re: Third edition of "Programming Ruby" now in beta
283483 [shevegen@li ] Hopefully you guys can add some extra helpful pages especially about the

C extension: can rb_ivar_set be used to set class variable?
283492 [lianliming@g] This is a question on Ruby C extension.
283494 [nobu@ru y- a] No, use rb_cvar_set to set class variables.  rb_ivar_set sets
+ 283498 [lianliming@g] Thanks for your reply!
| 283527 [rick.denatal] rb_ivar_set takes an object as the first parameter.  Classes are
+ 283546 [heath.novak@] unsubscribe

How to set a SOAP object to nil
283495 [stevev@ib gl] we are using SOAP::WSDLDriverFactory and creating an rpc driver based on
336654 [ruby@ev nf o] Did you find a solution to this one? I'm experiencing exactly the same

[ANN] RSpec-1.1.0 is released
283496 [dchelimsky@g] The RSpec Development Team is pleased as glug (that's kind of like
283501 [pergesu@gm i] Congratulations!!  Very cool.
285829 [dante.regis@] ...
285874 [dchelimsky@g] with_steps_for :foo do

unsubscribe
283497 [amaurya@br c] ...

How to pass values to form action
283499 [malugu.satya] ...
283555 [cjsiam@ms .c] I ended up dealing with the same thing...

instance variable of class instance (Re: C extension: can rb_ivar_set be used to set class variable?)
283500 [nobu@ru y- a] No, two different objects's instance variables.

[ANN] Gerbil 0.0.1
283503 [ snk@gn .o g] Gerbil is an extensible document generator based on eRuby

Is the gems-repository down at the moment?
283512 [kazaam@ol co] Bulk updating Gem source index for: http://gems.rubyforge.org
283654 [no@sp m. le ] According to Tom, one of the mirrors was/is failing to replicate.

Hot to access the text file and delete it.
283516 [ankush.r1@gm] How do i access the text file and delete the file. This file gets
+ 283517 [ankush.r1@gm] Posted via http://www.ruby-forum.com/.
+ 283522 [lloyd@2l ve ] Are you looking for something like

Gem Build Flags
283519 [jensthiede@g] I'm trying to build the rubysdl gem on my x86 iMac. Everything seems
283954 [drbrain@se m] a) build libsdl with -arch ppc
283955 [laurent.sans] d) set ARCHFLAGS to "-arch i386" before starting the gem command.

[QUIZ] Programmer Ping-Pong (#150)
283530 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 283532 [rick.denatal] We're doing this in the true tdd spirit of making very small steps right.
| 283539 [bulibuta@fa ] Hmm, when I posted no one answered, but I guess you got there first.
| + 283542 [Rob@Ag le on] I'll settle that.  Since your tests were equivalent, I went with
| | + 283558 [kbloom@gm il] #!/usr/bin/env ruby -wKU
| | | 283562 [bulibuta@fa ] I think that the second assert against 1 was a typo, instead of 2 he
| | | 283613 [james@gr yp ] You are.  Vote with your reply feature.
| | + 283569 [rick.denatal] avl_tree.rb
| |   283583 [adam.shelly@] I'm pinging Rick's last pong. But I am changing one of Ken's tests to
| |   + 283597 [bulibuta@fa ] Then its settled.
| |   | 283626 [donald.ball@] Shoot, I'll give it a whirl, it beats the meta discussion. I added a
| |   | 283635 [adam.shelly@] So I made it a simple tree.
| |   + 283603 [Rob@Ag le on] def test_tree_height_of_one_or_two_nodes_is_N
| |     283653 [james@gr yp ] Yes, I think we should keep testing the concrete features.  A height
| + 283544 [dangerwillro] How do you prevent or at least reign in the splintering/forking of
| | + 283611 [james@gr yp ] I spent a great deal of time considering this issue and discussed the
| | + 283642 [hramrach@ce ] There's nothing difficult about trees. There is a root at the top, and
| + 283612 [james@gr yp ] The official response is that it is settled by anyone who responds.
+ 283538 [bulibuta@fa ] [--snip--]
| 283547 [eeklund@gm i] I ended up responding to Paul because it looked like a later
| 283633 [hramrach@ce ] This one is really a tree for once.
| + 283710 [justin.ethie] ...
| + 283739 [Rob@Ag le on] This was quite close to what I had at the time, so that' why the reply
|   283951 [adam.shelly@] I had a little time, so I've added the other two types of rebalancing, and
|   283962 [Rob@Ag le on] An easy lob, Enumerable is a simple volley since AVLTree#each already
|   283981 [adam.shelly@] I don't know how to test timing with the unit tests either.
|   284024 [james@gr yp ] I don't either, but I think I made each() smarter.
|   284074 [adam.shelly@] I added test_remove_multiple_nodes - there are definitely a few
|   284116 [jamesbkoppel] Seems the only mistake was that remove was expecting AVLTree#each to return the node traversed, but it was instead returning the node's data. I modified each to accept the name of a function to be passed to itself, which defaults to data. I made an "identity" method called node, and the passed it in when each is called within remove.
|   284120 [jamesbkoppel] I just realized that it might be a good idea to change my test to make each accept an options hash rather than ordered arguments, since my change and my new test will cause each to accept two keyword arguments. That is, rather than having calls like
|   284244 [adam.shelly@] Ok, I did the each and the to_a.   I did not add the hash as suggested
|   284289 [james@gr yp ] Maybe it should be a singleton.  As it is, we could switch it to a
+ 283615 [james@gr yp ] (redirecting to Ruby Talk so we can all discuss)

Re: Third edition of "Programming Ruby" now in beta (Tk/Tile chapter)
283531 [Maurice.Diam] And I also hope that the Tk chapter has been updated with new ttk

String splitting problem
283534 [saladin.mund] hey guys
+ 283643 [qbproger@gm ] hey,
| 283646 [qbproger@gm ] I made a small mistake
+ 283663 [phrogz@ma .c] Wow, that was harder than I expected. The big issue was parsing nested
  283880 [saladin.mund] thank you for all of your great code. I'll have a close look on it and

method use ?
283540 [rubyror@go g] I have this class method which takes 2 parameter and how can I use it to
283548 [rubyror@go g] bsn4 = Business.new("Laura", "02078982323", "100 Abbey Road     ")

each with previous?
283543 [jari.william] I'm going through lots of data where the result of the current is
+ 283550 [eeklund@gm i] On Dec 14, 2007 4:28 PM, Jari Williamsson
+ 283551 [ruby@an hr p] 1, 2
| 283576 [shortcutter@] There is a subtlety: with your code there will be no previous for the
| 283640 [jari.william] I'll use different approaches for different situations. Starting inject
+ 283553 [Rob@Ag le on] require 'enumerator'
+ 283559 [phrogz@ma .c] On Dec 14, 8:28 am, Jari Williamsson

Good Ruby IDE for Debian Linux?
283545 [rsteckly@wh ] ...
+ 283554 [ccable99@gm ] ...
+ 283556 [joshua.schai] Ron,
| 283557 [steffen_kory] There is also ActiveState's Komodo
| 283561 [gemblon@ya o] I was using Aptana, an Eclipse flavor, and it is nice.
| + 283594 [MonkeeSage@g] G/VIM is great, if you can learn its "strange" key-mappings and
| + 283595 [dejan.dimic@] I use Aptana on my XP and Ubuntu.
|   283608 [d_rems@ya oo] I use kdevelop on my home KUbuntu system. I have only 512MB of RAM and
|   283705 [dejan.dimic@] Sorry for my typo error.
+ 283706 [MonkeeSage@g] I used to use gedit w/ some home-brewed python (blasphemy!)
  283738 [bjorn.maelan] I use Scribes when developing on Linux, since it was pretty much the
  284293 [dejan.dimic@] After playing with NetBeans for some time developing some rails
  284340 [shevegen@li ] I think you might well survive without any IDE for Ruby. It's not as if
  + 284345 [praveen@pe s] ...
  + 284365 [znmeb@ce ma ] Well ... I like Komodo. In general, I don't think single-person projects
    284368 [mailxiening@] ...
    284369 [beholdthepan] ...
    + 284380 [dejan.dimic@] One thing that is done marvelously in Ruby and Ruby on Rails is that
    + 284447 [jontyjont@bt] I have just started using Netbeans Ide 6.0
threads.html
top