215301-217604

215173-216059 subjects 215541-217087

^ Using Memcache client
215301 [gethemant gm] Some some simple/[stupid|smart] questions about memcache.
215509 [drbrain segm] Some of the documentation lies, but, see: ri MemCache.new

^ simple code doesnt work
215304 [totalharmoni] Can anyone tell me why this doesnt work?
+ 215306 [vincent.four] You define the price= method, but you don't define the price method.
+ 215307 [el eldiablo.] Hey,
+ 215309 [jan.svitok g] def price
+ 215312 [MonkeeSage g] You have a price= method defined, but not a price method. So when you

^ Memcached Error
215316 [jean.verger ] I'm running memcached in 2 servers. Both servers, are at the same time

^ rubygems local install?
215321 [mferrier gma] permissions on. I've been following
215398 [jim weirichh] Try setting
215412 [mferrier gma] Thanks Jim, that worked.

^ Communication between objects.
215330 [todbramble g] I posted a question on this topic yesterday but used an example

^ Message passing between objects
215331 [todbramble g] I posted a question on this topic yesterday but used an example
+ 215336 [logancapaldo] [snip question]
| 215338 [todbramble g] Operator error. Too many things going on at once.
+ 215347 [gareth.adams] Well, one way to do it would be as follows. You could argue that there are
+ 215376 [nospam nosit] / ...
  215402 [todbramble g] Thank you so much Paul for taking the time to lay that out for me. I
  215452 [nospam nosit] / ...

^ The default array print format
215332 [bart.braem g] I was playing around with some LDAP results in a Rails system and it did not
215339 [shortcutter ] Did you probably miss one of the standard methods available?
215519 [bart.braem g] They sure are, but some projects, in this case Rails, seem to use the to_s
215527 [shortcutter ] I have no insight at which exact point it does this.  But I guess you can
215729 [angus quovad] You can just set $, to the separator you want.

^ Bug in Hash#hash? (Ruby 1.8.4)
215357 [eyal.oren gm] say one = {:a=>:b}
215361 [matz ruby-la] Currently it's an intended behavior.  Hash is not designed to be hash
+ 215471 [rick.denatal] And I think more precisely, it's that hash needs to be implemented so
| 215472 [matz ruby-la] Recently, 1.9 added Hash#compare_by_identity method which makes Hash
| 215474 [rick.denatal] And I showed my age, they say that the memory is the second thing to
+ 215556 [eyal.oren gm] thanks for the clarification.
  215591 [rick.denatal] Not entirely to the point, but...

^ the many definition of duck typing (was Re: Ducktator - A Duck Type Validator)
215359 [eric.mahurin] If you were just moving there error check earlier, by using respond_to?, I

^ soap wsa:To
215363 [jwells serva] When I'm trying to use a webservice provided by a .NET server from a
216103 [nakahiro sar] You need to define a header handler for wsa:To.  A sample header handler
216226 [jwells serva] try to add the whole addressing header bit from the ws specifications on

^ ruby tutor in chicago
215367 [jalotta eart] I'd like to hire a ruby programmer for a few hours of private tutoring.
215375 [reed.adam gm] Hope that helps!

^ [BDRG] boulder-denver ruby group september meeting (tonight)
215369 [ara.t.howard] a few messages landed in my inbox asking about the meeting tonight.  here's

^ super simple serving of ruby pages
215377 [zerohalo gma] searched online I haven't found an answer.
+ 215380 [toalett gmai] Webrick has WEBrick::HTTPServlet::ERBHandler, which (I believe) serves
+ 215385 [nospam nosit] / ...
| 215387 [zerohalo gma] No, the server doesn't need to be Ruby-based. I could use lighttpd or
| + 215389 [jan.svitok g] In a recent thread (eruby?) someone mentioned adding
| + 215406 [jmg3000 gmai] On Debian and Ubuntu, it just works. After you apt-get install
| + 215439 [nospam nosit] Others have offered good advice. The simplest way is to give the server what
+ 215386 [jan.svitok g] Webrick seems to have support for ERB - see httpservlet/erbhandler.rb,
| 215391 [zerohalo gma] Yes, I tried that. Unfortunately there is no documentation on the
| 215394 [jan.svitok g] require 'webrick'
| 215403 [zerohalo gma] Thanks, Jan. That was easy. Now .rhtml files render correctly.
| 215409 [jan.svitok g] + module WEBrick
| 215420 [zerohalo gma] Doesn't work for me. With even the simplest .rb file it gives me the
| 215437 [nospam nosit] This is a classic CGI header error, caused by the absence of a recognizable
| 215448 [zerohalo gma] Got it. That works, thanks, Paul, and Jan, for your patience with my
| 215475 [jonsdenni gm] It seems like I am at the same level as your daughter [although a whole
| 215479 [nospam nosit] It's very simple, really. Apache requires that executable pages (pages that
| 215496 [jonsdenni gm] ahh, well, thats probably my problem. i'm using the cheapest server i
| + 215526 [nospam nosit] I didn't realize this was an offsite, commercial server. Many traditional
| | 215599 [jonsdenni gm] Thanks a lot. I didn't get it working. I put erb.cgi and a .htaccess in
| | 215629 [nospam nosit] Will any CGI script work in the /var/www/cgi-bin directory, for example one
| | 216905 [jonsdenni gm] how do i access the script output?
| | 216908 [jonsdenni gm] nevermind, I was able to try it but i just got an error message
| | 216945 [nospam nosit] What error message? For most typical errors, it's because you put the script
| + 217359 [david vallne] Serve (part) of your website from your PC over which you have control?
+ 215411 [wilsonb gmai] Does this help?
| 215423 [zerohalo gma] Indeed it did. Thanks. That works nicely.
+ 215470 [Bil.Kleb NAS] FWIW, I have the brain of an 8yr old in when it comes
| 215476 [hal9000 hype] Fascinating. I've looked at Camping but haven't really
+ 215486 [james.britt ] I've an example of this that's ~100 lines of code, if you're interested.
| + 215491 [ezmobius gma] I'd be interested in seeing that James.
| | 215611 [james.britt ] Here ya go!
| | 215622 [james graypr] Interesting.  Thanks for sharing.
| + 215626 [khaines enig] I'd like to see it, just because I might find it educational.
+ 215568 [anibalrojas ] It is extremly easy to setup, I have tried this solution in 2 shared

^ Creating a reference to a ruby variable in a C extension.
215388 [chrsan gmail] I'm just making my first C extension and have a question about creating
215418 [vincent.four] How comes this function has no parameters ? Is it being called from

^ Re: Can not find superclass
215390 [gavin.kistne] I believe your problem is that, for each request, rails only loads the

^ const_defined? not quite in sync with const_get ??
215393 [chrisjroos g] Assuming the following snippet, I'd expect Foo::const_defined?(:Bar)
+ 215396 [ara.t.howard] class Bar
| 215401 [chrisjroos g] Thanks for the clarification.  Purely out of interest, do you find
| 215407 [ara.t.howard] so that
| 215447 [chrisjroos g] Ah, of course, that makes sense.  Cheers.
+ 215492 [nobu ruby-la] Reply-To: ruby-talk@ruby-lang.org
+ 215495 [nobu ruby-la] Sorry for mispost.

^ [ANN] ruby-kerberos
215408 [snacktime gm] I just put up a first release of kerberos bindings for ruby on
215410 [snacktime gm] Forgot to mention.  It might be a good idea to look at my code before
215431 [amerine gmai] Thanks!!! I've been looking for somthing like this.

^ SOAP Envelope Error
215414 [markarichman] POST /Wahp.Provisioning/User.asmx HTTP/1.1
+ 215421 [ksruby gmail] You are doing nothing wrong. Both xmls are the same according to SOAP spec.
| 215436 [dsledge appr] Are you sure the problem is with the envelope itself. I had a problem
| + 215438 [ksruby gmail] But from XML point of view these are identical.
| + 215450 [markarichman] I tend to agree...I see the ns1 namespace, but also env vs. soap. Any
|   215453 [ksruby gmail] 'env' and 'soap' are just markers or identifiers of a namespace. Their
|   215459 [dsledge appr] What does the WSDL look like?
+ 215455 [wbohl racsa.] I had the same exact problem with one of our data providers, and found
  215600 [markarichman] I figured out that 90% of my problem was a trailing slash in my
  + 215727 [mattrose fol] try object.inspect to see what methods and variables it contains.
  + 217604 [nakahiro sar] Sorry for late reply.

^ Updaing MySQL in Instant Rails
215416 [bogdar bells] I have installed Instant Rails and wish to upgrade MySQL to 5.0 - 5.1.
+ 215603 [ml.chibbs gm] No, it won't work.
+ 217362 [david vallne] Umm. Why bother in the first place? Rails / ActiveRecord probably

^ ubuntu and Log4r
215422 [henning.jans] Not sure where this issue belongs... but anyhow: My Log4r ain't working
215445 [phlipcpp yah] Ubuntu shares with Mandriva an idiotic "--prefix bug". Not sure if the bug's
215465 [reid.thompso] configure and build and install ruby with --prefix=/usr
215493 [phlipcpp yah] Are you implying one passes the --prefix argument to all three of the

^ Code Block Error
215426 [olsonas gmai] counter = 0;
+ 215427 [olsonas gmai] Well, it seems you can't use ++ as in Java, changed to +=1.
+ 215428 [james graypr] counter += 1
+ 215430 [chris.hulan ] '++' is not a Ruby operator, it doesn't have any of the

^ The RAA needs a makeover
215433 [Daniel.Berge] All,
215598 [jmg3000 gmai] When I first started using Ruby (fairly recently), I quickly got the

^ ruby/watir question
215449 [all itgiant.] i am trying to click a tab on a web page and the source reveals this as
+ 215461 [phlipcpp yah] Did you try my suggestion (Watir::Simple::click_link_with_name()) from the
| + 215513 [all itgiant.] had a play with it, but can't seem to hit it. click_link_with_name
| + 215516 [all itgiant.] had a play with it, but can't seem to hit it. click_link_with_name
+ 216307 [patrick pksp] Assuming the variable referencing the IE controller is $ie...

^ Re: My final say [WAS: Re: Ducktator - A Duck Type Validator]
215454 [halostatue g] What a shameful blog post, Ola. Since you're not interested in
215458 [leslieviljoe] Hmm, and just a few hours back I was saying in my journal how friendly

^ Markaby + Litespeed LSAPI: "warning already initialized constant ENV"
215457 [uberkorp gma] I'm trying to get a basic markaby script to work via litespeeds lsapi, but it

^ Rubyists of Second Life Meeting Tonight at 6 Pacific Time
215460 [polypus yaho] rubyists of second life meeting tonight at 6 P.M. pacific time.

^ RunTimeError from SOAP::WSDLDriverFactory(...).create_rpc_driver
215462 [raperrier lb] I'm trying to build a SOAP client using a wsdl and I get an error
216105 [nakahiro sar] Can you send me the WSDL?  I'll try to fix soap4r to work with the WSDL.

^ testunit message override?
215473 [ronjeffries ] assert_equal(Date.new(2006,4,15), calc.disbursal_date)
+ 215477 [nospam nosit] / ...
+ 215481 [james graypr] Not sure if this answers your question, but you can provide a
+ 215483 [logancapaldo] It's not calling Date#to_s, it's calling Date#inspect. I think you can
  + 215488 [billk cts.co] Alternately,
  | + 215732 [ronjeffries ] I just might. Thanks!
  | + 215738 [twifkak comc] alias inspect to_s # alternately
  + 215733 [ronjeffries ] Ah. #inspect. I did know the trick of the message parm, but it still prints the
    215740 [ryand-ruby z] The message will use to_s, but without it, assert_equal and friends
    216911 [ronjeffries ] Yes. I preferred the date format for my purposes, and wasn't aware that it was

^ Where to find info on Gnome::Canvas...?
215482 [mdurham peop] I can't find anything about it.
215485 [nospam nosit] Paul Lutus
215717 [mdurham peop] Thanks for your help Paul, but if you add the word 'Ruby' to your search
215779 [nospam nosit] / ...

^ [ANN] Ferret 0.10.6 released (and some benchmarks)
215484 [dbalmain.ml ] Hey folks,
+ 215498 [ezmobius gma] Hey Dave-
+ 215522 [ruby muerman] Dave, congratulations on the great work you've done. I've been using
+ 215575 [asbradbury t] <snip awesome ideas for future direction>
  215594 [dbalmain.ml ] Thanks Alex. I did, in fact, announce this on the rails list as you
  215701 [asbradbury t] I hadn't actually noticed your post was also sent to

^ Ruby doesn't convert from String to int
215497 [djhackebeil ] arr = [5, 5, 2002]
+ 215499 [halostatue g] Yes. Try it again.
| 215508 [djhackebeil ] The error message looks like
| 215514 [snacktime gm] Because that's what to_i does?  An integer IS a Fixnum.  Also, the
| 215517 [djhackebeil ] All right, then I'm wondering why the array doesn't accept Fixnum as an
| + 215524 [nospam nosit] [ from an earlier post ]
| + 215577 [james graypr] You are having trouble with your assumptions.  A Fixnum is an
+ 215532 [heron jpl.na] This program works fine for me ...

^ Re: Hoe 1.0 released
215500 [transfire gm] I value simplicity and calrity too. Reap is certainly not perfect but
215504 [transfire gm] test, gem creation, uploading to Rubyforge, etc. Of course there are

^ Mechanize for BIG website scrapping...
215501 [horacio.sans] I am using Mechanize for several projects that require me to download large
215506 [johnl johnla] What if you save the cookies out to a file?
215518 [horacio.sans] Thanks for your answer but I found how to fix this problem.

^ [ANN] plist 3.0.0 released!
215510 [ben bleythin] == Introduction

^ Re: Creating a reference to a ruby variable in a C extension
215511 [chrsan gmail] Thank you for the reply, I'll try to clear things up a bit and explain
215534 [dbalmain.ml ] Instead of saving it as a global variable, you could save it as a
215538 [sillen init.] That would work if the passed in object should be shared among all
+ 215548 [dbalmain.ml ] Right you are. I can't believe I haven't looked at this method before.
| 215553 [sillen init.] Alright...
+ 215870 [vincent.four] [I posted that yesterday lunch time, and it didn't get on the archive
  215887 [sillen init.] Of course, you are totally right!
  215890 [vincent.four] Yes, bison and flex always give great fun. Just out of curiosity, what
  215894 [chrsan gmail] Maybe I'm well deep over my head here, but my goal is to
  215937 [dbalmain.ml ] Hey Christer,
  216088 [chrsan gmail] Well, whatever I may release will be open source. It all depends on how

^ Creating ruby-serialport singleton object breaks
215520 [adam usa.net] I'm trying to create a singleton serial port class with the following
+ 215525 [adam usa.net] ruby 1.8.4 (2005-12-24) [i686-darwin8.7.3]
+ 215528 [pit capitain] Adam, the problem is that SerialPort.new requires at least one argument,
  215592 [adam usa.net] /afb

^ Assistance wanted for integrating existing C-API into Ruby
215529 [noname4me we] I am seeking assistance for writing a ruby wrapper for the c-api of an
+ 215580 [znmeb cesmai] I'm not looking for a paid job, but I've had a little experience with
+ 215584 [ara.t.howard] if the api is simple, or even moderately simple, you may be able to wrap it
| 215587 [max maxidoor] I don't advice to use SWIG because You high level ruby logic will be
| 215601 [znmeb cesmai] Well ... first of all, the original poster said he was open to
| + 215606 [ara.t.howard] indeed.  it's worth pointing out, too, that any method of wrapping c, whether
| + 215637 [max maxidoor] Hm.. It is very interesting. I haven't thought about this pro of
| | 215764 [noname4me we] Thanks a lot for the different answer to my original posting.
| | + 215765 [snacktime gm] Being pretty much a C newbie, I found it much easier to just write an
| | + 215825 [znmeb cesmai] SWIG definitely runs on Linux and Windows. It will undoubtedly run on
| + 215773 [dbalmain.ml ] I'm guilty of doing this myself with Ferret. There is approximately
+ 215769 [max maxidoor] Have you got my mail?
  215891 [noname4me we] I have received your email and will respond to it soon...

^ Request for code review of beginning project
215530 [bhs128 gmail] I have some experience in programming ruby as well as java, (and
+ 215583 [james graypr] "seems to work" is a good sign that you might enjoy learning a little
| 215660 [bhs128 gmail] Thanks for taking the time to look through it- I appreciate the advice.
+ 215694 [johnl johnla] that way... well, I'm not sure what would happen. ;)
  215698 [james graypr] I think you meant "loop do:"
  215699 [johnl johnla] Yes, thanks.  (For some reason, I always type it wrong when I'm

^ [ANN] langhelp-0.9.8
215535 [rubikitch ru] == Abstract

^ [ANN] el4r-1.0.4 - EmacsLisp for Ruby
215536 [rubikitch ru] El4r enables you to write Emacs programs in Ruby as well as in EmacsLisp.

^ access specifiers
215537 [soura.jagat ] I am new to Ruby and after progamming in several other languages, I am
+ 215564 [MonkeeSage g] In ruby they are more like hints. If the programmer wants to make a
+ 215567 [robert.dober] Sorry for being blunt, as a matter of fact I am not, it is just the timing
| 215569 [gaurav.v.bag] Even classes like String,Fixnum......... are open
+ 215585 [gene.tani gm] Object#send (this will change in 1.9), delegate with instance_eval,
  215590 [soura.jagat ] Hmmmm... thnx, I got it. In Ruby it's not that much rigid as C++/Java.

^ How to Traverse a Directory
215540 [none none.co] def traverse(root)
+ 215546 [shevegen lin] Cant really help you but just want to say that
+ 215547 [pletisan.lis] <pre>  def get_entries(path)    dir_entries = nil    begin      Dir.chdir(path) do  # get entries in this directory        dir_entries = Dir.entries(path)      end    rescue SystemCallError      @flash[:notice] = "No such path!"      redirect_to :controller => 'explorer', :action => 'index'    end    dir_entries unless dir_entries == nil  end</pre>
+ 215549 [MonkeeSage g] You can use Dir #[], #glob, or #entries also. If you use a glob or the
| + 215551 [MonkeeSage g] puts file = File.join(root, file) # assignment returns its value
| + 215559 [none none.co] Thanks for all the help!
| + 215634 [none none.co] Good point - perhaps http://www.ruby-doc.org/core/classes/Find.html should be fixed ;-)
+ 215554 [shortcutter ] Like this?
threads.html
top