237271-238251

237018-373450 subjects 237432-246391

Re: No Subject
237271 [daniel.schie] I'm sorry Dave, I'm afraid I can't do that.

bug is ruby regexp
237277 [nickblack1@g] $ irb(main):001:0> num = "10"
+ 237280 [james@gr yp ] A character class ([...]) with a range of 9-1 is not valid in a
| + 237283 [Rob@Ag le on] => "10"
| + 237347 [brabuhr@gm i] $ perl -e 'print "foo" if 9 =~ /[9-13]/'
+ 237349 [robert.mccor] ...
+ 237372 [timx@no pa .] Its not a bug. The problem is you are mixing up characters and numbers. Regular

Regular Expression issue
237281 [anon1m0us@ya] looking for users and groups. The users are listed with Employee
237296 [brian.corbin] Instead of capturing each data element one at a time with separate

Re: String Equations (#112)
237285 [dan@fl en ra] cool quiz.
+ 237288 [james@gr yp ] I like it.  ;)
| 237300 [dan@fl en ra] James Gray
| 237310 [james@gr yp ] Yes, see my post about this a little earlier.
+ 237345 [sander.land@] Started
  237398 [dan@fl en ra] Thanks Sander that was useful in finding some bugs! I've added what

Fastri-server problem?
237287 [renard@nc rr] I have downloaded and install fastri from the tarball.
237313 [ mfp@ac .o g] You can also run fastri-server as a win32 service (IIRC the gem is named
237350 [renard@nc rr] I had download the ruby-services gem as a tarball ... fastrictl used
+ 237366 [botp@de mo t] Indexing RI docs for ZenTest version 3.4.3.
| 237395 [ mfp@ac .o g] Don't really know. Do you get a new .fastri-fulltext directory with
| 237506 [renard@nc rr] on my WindowsXP machine
| 238154 [ mfp@ac .o g] If  fri -S test works after that then we can disregard that puzzling message.
+ 237394 [ mfp@ac .o g] I don't really know anything about ruby-services. Dan?

Beginner questions: sorting csv files
237290 [michael.scha] I am a newbie with Ruby and I had a couple of questions while
+ 237343 [w_a_x_man@ya] [ [9,'ash','cube'],
| 237346 [michael.scha] Thank you very much.  I did not realize  it was so simple.  Do you know
| 237353 [w_a_x_man@ya] a =
| 237369 [michael.scha] Thank you very much.  I just had one more question about this then.  How
| 237379 [w_a_x_man@ya] Before writing each record (i.e., each array of fields) to the file,
| 237401 [michael.scha] Thank you very much.
| 237811 [michael.scha] Hey,
| 237814 [olsonas@gm i] require 'rubygems'
| 237818 [michael.scha] Thank you very much.
+ 237820 [olsonas@gm i] Come to think of it, I'd do the whole thing using FasterCSV. When
  237823 [james@gr yp ] mycsv.sort_by { |row| row.values_at(2, 0, 1) }.each do |row|
  237824 [olsonas@gm i] Ahh, neat, good to know.
  237933 [michael.scha] thanks
  237992 [michael.scha] on the daily return, I wanted to define two if statements so that two
  238157 [michael.scha] Also, Does anyone have any recommendations about books that have a large

Calling a class method from an extended object
237291 [francois.bea] class MockControllerBase; end
237293 [dblack@wo bl] You've included the module in the singleton class of @controller,
237295 [francois.bea] 2007/2/2, dblack@wobblini.net <dblack@wobblini.net>:> I would do it differently, because I've never been a fan of the> InstanceMethods/ClassMethods thing.  I prefer just to include or> extend separate modules as needed and where needed.  But I know it's> very popular.

Re: [QUIZ]
237294 [james@gr yp ] Ah good catch.  I should have been more specific.
237297 [ma3oxuct@gm ] So this means that we can eliminate a word altogether?
+ 237301 [technodolt@g] ...
| 237311 [james@gr yp ] Correct.
+ 237309 [james@gr yp ] Yes.  This is what is meant by "zero or more" in the quiz.

What's up with Time.local ?
237299 [pbailey@bn .] I need to check some file dates against the budgetary periods of our
+ 237302 [drbrain@se m] If you put a 0 in front of a number you are specifying an octal
+ 237304 [m_goldberg@a] In Ruby starting an integer with a leading zero designates that it is
+ 237305 [jos@ca no k.] Numeric literals starting with `0' are interpreted as octal numbers. Try
+ 237306 [artur_spruce] The problem is the leading zero. Time.local(2007, 9, 9, 0, 0) works
  237326 [pbailey@bn .] You're all brilliant. Thanks. Yes, when I re-looked into my book that

Beginner Question - Pagination, Each?
237308 [deheacock@ea] Many thanks to anyone willing to assist.
237318 [jgbailey@gm ] ...
237325 [deheacock@ea] <%= link_to 'Go to page >', { :page => @member_pages.each do () end} %>
237336 [deheacock@ea] Well a few more hours of searching the web produced this excellent link.

Silly Code from The Muppet Laboratories
237312 [shortcutter@] ...
237314 [james@gr yp ] James Edward Gray II
+ 237315 [gavin@re in ] On Feb 2, 12:08 pm, James Edward Gray II <j...@grayproductions.net>
+ 237316 [shortcutter@] Umpf!  I better stop posting now in order to prevent more embarrassment...

MySQL database and Ruby
237319 [none@no e. o] I am new to programming ruby and currently as part of university assignment
237328 [GENIE@pr di ] Here's a good tutorial.  Please direct future questions to the Rails
237331 [none@no e. o] Thank you Mike.

Rails Conf Registration Open
237320 [rich@in oe h] Hey all,
237329 [dejan.dimic@] I will gladly come but we have some problems with Visas.

Reading several data entries per line from screen
237321 [alex.decaria] Is there a single, easy method in Ruby that will let me read multiple
237333 [ruby.hardwar] Is this what you are looking for?
237334 [alex.decaria] Yes, Thank You!

Inject error when no default starting value given?
237323 [olsonas@gm i] I have an Event model which has_many :attendees. My Attendee model has a
+ 237324 [olsonas@gm i] Misposted, moving to the rails forum.
+ 237342 [gwtmp01@ma .] You gave a Rails example, but it is really a generic Ruby question.

Redbox question
237332 [cragmor@gm i] This may come acrossed as a really dumb question. I am wanting to
237335 [ruby@ph li .] javascript_include_tag is the name of a method... so what you have above

Bugs in Matrix#rank
237337 [sander.land@] I think I found some bugs in Matrix#rank

net::ldap - add_attribute
237338 [rcmn73@gm il] i'm trying to add a workstation "monnomdemachine" to a group "mygroup"
237358 [garbagecat10] ...
237360 [rcmn73@gm il] are we talking about
237362 [garbagecat10] ...
237459 [rcmn73@gm il] i think i'm using it properly.
237656 [rcmn73@gm il] I finally found my mistake and fixed it that way.
237674 [garbagecat10] ...
237680 [rcmn73@gm il] yes it was.thx.
237684 [rcmn73@gm il] and i forgot my 2nd question.would ldap.modify be faster than
+ 237686 [garbagecat10] ...
+ 237687 [garbagecat10] ...

(none)
237339 [giordano.sca] ...

How do Rakefiles "know" about built-in Rake methods?
237341 [cohen.jeff@g] I'm looking into a way to let business users write functional tests in
+ 237354 [tim.pease@gm] Jim defined the basic rake methods [task, rule, file, directory, ...]
+ 237355 [GENIE@pr di ] The task method is defined by Rake at the top level, i.e. a normal
+ 237361 [daniel.schie] module TestContainer
+ 237364 [nicksieger@g] ...
  237373 [cohen.jeff@g] Wow, thanks everyone for all the help... I've got a lot to investigate

Mixing Rake and Turn
237348 [djberg96@gm ] I've got some test tasks that I've got setup via a Rakefile.  I'd like
237351 [tim.pease@gm] When you run your unit tests from within rake, they are actually run
237356 [djberg96@gm ] Thanks Tim, it does.
237357 [djberg96@gm ] Upon further review, using TestTask#ruby_opts *does* work. The bug was
+ 237399 [frdrch@gm il] But you have now a dependency to turn. If you share your program with
| 237408 [djberg96@gm ] In one project I have way too many files for that to be feasible. A
+ 237615 [frdrch@gm il] /usr/bin/ruby1.8: no such file to load -- turn (LoadError)
  237651 [tim.pease@gm] t.ruby_opts << '-rubygems'
  237652 [james@gr yp ] No, I don't think so.

config.h on Linux for building racc
237352 [jack@ga ss e] I'm trying to build racc, the yacc-like thing for Ruby. I get this
+ 237370 [drbrain@se m] $ ls /usr/local/lib/ruby/1.8/i686-darwin8.8.2/config.h
+ 237374 [george.ogata] I'll assume you mistyped the filename ("/config.h", not ".config.h"),
  237415 [jack@ga ss e] Thanks much... updating ruby did the trick.

pdf writer font not found
237371 [donn@cm cm .] I cannot figure out how to get a font loaded.  I have in c:\windows/
237376 [halostatue@g] There are issues with TrueType fonts at this point. Even if those

Bus error in IRB when trying: require "fox16"
237375 [zcvohland@gm] I have spent a couple of days trying to get the Fox GUI library to
237406 [lyle.johnson] Just curious: Why still running Ruby 1.8.1?

Using fork to conserve memory
237377 [dan-ml@da 42] Lately I've been bothered by the large start-up time and memory consumption of
+ 237382 [jan.svitok@g] I'd say it should be possible to modify mongrel_cluster to do this
+ 237409 [ara.t.howard] you realize that this is __exactly__ what running rails, or any cgi, under
| 237499 [dan-ml@da 42] No, fastcgi creates a bunch of worker processes and loads the full rails
| + 237507 [rsanheim@gm ] Mongrel will use up plenty of memory, generally around 30 megs per
| | + 237509 [dan-ml@da 42] I was talking about processes, not threads. The point is to use the
| | | 237511 [khaines@en g] I experimented with this idea a little bit, with Mongrel, just doing some
| | | + 237513 [ara.t.howard] and you've just touched the tip of the iceberg: file locks are inherited, as
| | | | 237538 [dan-ml@da 42] Really? if I remember correctly, rails caching can work with a memory-store
| | | + 237542 [dan-ml@da 42] It's a LOT faster than loading the full rails environment though, and that's
| | |   237563 [ara.t.howard] it'd be great if you wanted to hack on acgi.  my plans were to
| | + 237514 [ara.t.howard] why?  can you elaborate?
| |   237520 [snacktime@gm] Well there really aren't that many options to start with.   Mongrel
| + 237512 [ara.t.howard] yes, i realize that.  still, the concept is to start the workers before the
| | 237536 [dan-ml@da 42] Interesting. I had though about db connections but hadn't followed the reasoning
| | + 237547 [tomp@ea th i] It seems like you need to figure out how easily a forked child can be
| | + 237562 [ara.t.howard] i don't think it's a show stopper for a roll your own solution for a specifc
| + 237551 [tom.hurst@cl] I've been running simple Ruby FastCGI's using multiple forked processes
+ 237410 [ara.t.howard] you may also be interested in this work i did some time ago
+ 237519 [aldursys@gm ] I would just launch the relevant number of mongrel processes before

Inheriting from Fixnum
237380 [GGarramuno@a] Now... this should be simple, but, alas, it is not.
+ 237388 [wonado@do ne] There is no "new" for "Fixnum"
+ 237389 [shortcutter@] Note that you generally should not use #kind_of? and like methods (->
| 237396 [GGarramuno@a] Thanks, Robert, for the answer, but it still does not fully explain
| + 237412 [kevin.olbric] Part of the problem may be related to the fact that many of the built
| + 237424 [shortcutter@] Duck Typing is all about *not* checking.
| | 237552 [GGarramuno@a] According to the docs of Numeric.coerce, it says it returns the
| | 237587 [shortcutter@] Is it a year of the century or years difference?  How would you
| | 237595 [GGarramuno@a] Robert, I just made an example for you to understand.  I'm not quite
| | + 237597 [GGarramuno@a] Another thing probably worth looking is in how Python handles this
| | | 237600 [GGarramuno@a] Well, I looked at how it is being done in Python2.5.  Somewhat
| | + 237604 [logancapaldo] 1) Fixnum and Bignum are implementation details. If you want to
| | + 237605 [kevin.olbric] You know, there are a number of nice packages out there that can
| | + 237794 [shortcutter@] In my world a frame /is not a/ number but it may /have a/ number.  You
| + 237461 [logancapaldo] a is not a copy
+ 237830 [r.gebauer@wo] As I' have learned from this thread, you can't inherit from Fixnum !

Problem with WEBRick and eruby
237384 [vendemotos@g] I am just starting in both ruby and web development so maybe the
237387 [jan.svitok@g] CGI expects data on stdin (see the message). The problem is that

Help problem SOAP4R with xsd:any
237390 [jima@co wa e] Apologies in advance for cross-posting but I have been trying to resolve

Calling a method whose name I only know at run-time
237391 [chad@zu u. e] I have a handful of methods that perform operations on chunks of data.
237392 [chad@zu u. e] Oops, solved it.  Sorry, I missed Object#method the first time around.
237393 [jan.svitok@g] And there is the Object#send that will do what you want, i.e.
237400 [dblack@wo bl] It doesn't; you can use either.
237440 [chad@zu u. e] It looks like send is actually more appropriate for my needs, thanks,

Net::POP and SLL?
237397 [wim.vandersc] I've been trying to make a web based interface to several mailing lists
237661 [jan.svitok@g] GIYF.

Can Not Get Ruby to Run in Windows CMD Window
237402 [bradaskins@g] As the subject says.."Can Not Get Ruby to Run in Windows CMD Window"
+ 237404 [sunrayson@gm] ...
+ 237411 [kevin.olbric] the ruby executable reads from stdin (and is totally silent) until you
+ 237418 [david.mullet] In addition to what Kevin said, keep in mind that "ruby" runs the Ruby

What is the best GUI toolkit that can be used along with Ruby
237403 [sunrayson@gm] ...
237416 [farrel.lifso] FXRuby (FOX toolkit bindings for Ruby) is probably best supported at
237751 [sunrayson@gm] ...

Fail to install postgres gem
237405 [threeeyedfis] Good day!
+ 237426 [v.konrad@ls ] i usually install this from source (not as a gem) - this way i can
+ 237428 [tom@in oe he] Hm, seems like it's not finding the PostgreSQL header and object files.
  + 237433 [threeeyedfis] Thank you so much!
  | 237495 [tom@in oe he] Super!  The same thing happened to me with the MySQL gem yesterday, so
  + 237438 [george.ogata] You can also achieve the same thing in one step with gem by passing

Two more days for OSCON CFP
237407 [glv@va de bu] ...
237476 [glv@va de bu] That's odd.  The message I sent wasn't empty, but the content was

win32 Ruby woes... pleas help
237413 [peter@ru yr ] I am going to release my first Ruby package in a few hours and I wanted
+ 237434 [dejan.dimic@] You should be a little bit more precise. Like this, I can not give any
+ 237436 [cmshea@gm il] Can you try sending the output to a file?
  237441 [peter@ru yr ] Dejan, Chris,
  + 237448 [cmshea@gm il] I have no idea if this will work, but how about trying running it in a
  + 237453 [jan.svitok@g] J.
    237454 [peter@ru yr ] Vdaka ti, dobra vila! :-)
    237488 [joe.swatosh@] I believe the idea is to pass the %ERRORLEVEL% on to an invoking
    237517 [ml.chibbs@gm] ...

Saving class with array property with YAML
237414 [usenet@ma ti] I'm new to Ruby and unfortuantly I can't find an example anywhere to the
+ 237423 [cdcarter@gm ] this should be spelled initialize, might be why you are getting an
+ 237427 [shortcutter@] First you should correct spelling errors of your initialize methods.
  237629 [usenet@ma ti] Thank you both for your kind help!

reloading .rb files / reparsing?
237419 [lister@pi kl] I'm working on an app which is using webbrick for its mini web-server.
237420 [cdcarter@gm ] (this uses it)

releasing under win32
237421 [peter@ru yr ] I am developing a ruby package under linux. When I packaged it into a
237621 [ryand-ruby@z] I certainly don't package it special. I have to assume that their
237623 [peter@ru yr ] Thanks. This was what I wanted to hear :-)

Expect Module and Bash script
237422 [rblove@ai ma] How do I use ruby expect to feed input to a simple bash script?  Here
237452 [rodrigo.berm] tricky but should work
237487 [rblove@ai ma] Uh, thanks but it doesn't use the expect module at all.  Does it not

Re: rcodetools 0.5.0 (TDD++, automagic assertions, 100% accurate completion, doc/code browsing...)
237425 [fabian.erbac] thanks for the new release, it's great to have real auto-complete.
237474 [ mfp@ac .o g] Yes, that's the way it's meant to work :)
237673 [fabian.erbac] thanks for your reply. The completion works fine for me but I can't
238152 [ mfp@ac .o g] Is FastRI working OK for you otherwise?

Hash#rekey
237430 [transfire@gm] There are a few facets (ie. extensions) I find myself using often. One
+ 237451 [gwtmp01@ma .] I seem to remember that matz backed off from this idea.
| 237456 [transfire@gm] I think he backed off making Symbol a subclass of String, but I think
| 237555 [matz@ru y- a] No.  "foo" and :foo are different keys in a hash.
| 237564 [transfire@gm] And never the twain shall meet? So it's long live
| 237566 [matz@ru y- a] The HashWithIndifferentAccess behavior will not be default even after
| + 237582 [twifkak@co c] I quite like this idea.
| + 237586 [transfire@gm] Okay, well I though the whole reason you considerd making Symbols a
| | 237765 [matz@ru y- a] For me, 'rekey' is meaningless.  Coined word need guessing, which is
| | + 237785 [martindemell] alter_key(s), perhaps
| | | 237788 [B.Candler@po] # existing
| | + 237793 [transfire@gm] The use of re- as a prefix is very normal in English. Consider Merriam-
| |   237969 [matz@ru y- a] Of course I know the prefix pre-, but it is difficult (for me at
| |   238115 [bofh@so tm d] what about reindex ? hash is a dictionary, and the method.. reindexes it
| + 238251 [steven@lu os] How about this?
+ 237455 [transfire@gm] Sheesh I forgot the most basic examples!
threads.html
top