259397-296042

259192-264441 subjects 259656-262663

^ Which Hash methods are thread safe?
259397 [mkasick-rt c] When I've written multithreaded code in Ruby in the past I've been quite
259422 [mental rydia] Have you measured to see whether this is actually the case?
259435 [mkasick-rt c] Not yet.  Chances are that synchronization won't actually have a runtime
+ 259440 [lionel-subsc] Seems you are implementing an MoM (Message oriented Middleware) on your own.
| 259553 [mkasick-rt c] It's creeping into that territory, yes.
+ 259444 [mental rydia] Resist those feelings until they're backed up with real measurements;
  + 259446 [mental rydia] message delivery with synchronized approaches which do not.  The example
  + 259447 [mental rydia] Also, note that this allows the delivery of several messages from
  + 259554 [mkasick-rt c] That's a great idea.

^ Base 26
259417 [blowmage gma] Hey friends!  What is the best way to convert a Numeric to a string encoded
+ 259419 [apeiros gmx.] You're looking too far away.
| + 259420 [apeiros gmx.] OK, I should read before answering :)
| | + 259424 [phrogz mac.c] How about (i+10).to_s(36)
| | | + 259426 [peter peterc] If it ends up in base 36 then it's still going to get numbers in it, just
| | | | 259431 [blowmage gma] Thanks Peter.  I didn't mean to sniff at a single 'tr', I was just hoping
| | | | 259432 [peter peterc] You can do it whichever way you want, of course, but in terms of good coding
| | | + 259427 [warrenb aqui] irb(main):001:0> i = 42
| | | + 259429 [blowmage gma] Unfortunately that doesn't work.  :)
| | | + 259528 [robert.dober] What is this thread, first Stefan now you?
| | + 259425 [blowmage gma] Because it is one extra step to switch to the number keys on the iPhone
| | + 259527 [robert.dober] Honestly no, it was quite funny :)
| + 259532 [shortcutter ] I think your solution is pretty concise already.  You could however do
+ 259536 [lists bertra] Isn't that concise enough? It's one line, it's

^ Nuby: using net/http*s* from behind a proxy server
259418 [rpardee gmai] Hey All,

^ Web Databases and Objects
259463 [cjsiam msn.c] charset="us-ascii"
259474 [dangerwillro] Rails is BIG. Take it slowly. I'm still struggling with it too.
259485 [cjsiam msn.c] John, appreciate your shot at it...
+ 259490 [caduceass gm] Do you have a relational model already designed?
+ 259531 [dangerwillro] After creating your database schema, usually using script/generate
  259548 [cjsiam msn.c] Thanks.

^ weirdness with ruby unit testing on mac
259505 [carlton bact] I have a ruby project that I've written in a Linux environment.  (Ruby
+ 259544 [cdcarter gma] ruby dbcdb/test/all.rb
| 259668 [carlton bact] It does fix it, thanks!  I'm trying to remember why I started doing
| 259670 [gregory.t.br] ruby -I dbcdb dbcdb/test/all.rb if you must work outside the dir.
| 259787 [carlton bact] I guess I'm curious why using require is good in ruby files but bad
| 259830 [gregory.t.br] Oh, it's not really bad in either.  The issue is you're not trying to
| 259838 [carlton bact] Yeah, that's a good point - makes a lot of sense when you put it it
| 259845 [gregory.t.br] Aha.  That makes sense.  Test::Unit uses a special collector to do
+ 259552 [rubyforum we] I have no idea if this would help, but standard recommendation is to go
| 259669 [carlton bact] Thanks for the suggestion and link.  I've gotten lazy about compiling
+ 259565 [ryand-ruby z] 1) GENERALLY: work from the project directory and refer to everything
  259666 [carlton bact] Hmm, interesting.  Wouldn't that make my code dependent on the

^ [OT] tail-recursion
259515 [m_goldberg a] For what it's worth: the function definition is "tail-recursive" and
259542 [logancapaldo] unfortunately this is not a tail recursive call. The recursive call (sum) is
259569 [trevor proto] Hey Logan and Morton,

^ [ANN] PDX.rb presents FOSCON III: Really Radical Ruby
259521 [tlockney gma] Once again the Portland Ruby Brigade will be hosting an evening of

^ [ANN] httpclient/2.1.0
259522 [nakahiro sar] httpclient/2.1.0 is out.  The program/project renamed from

^ [ANN] call for presenters @ FOSCON III
259523 [tlockney gma] As my recent post announced, PDX.rb will be putting on another FOSCON
260571 [tlockney gma] If you're going to be at OSCON or are going to make a special trip to

^ [ANN] Addendum: PDX.rb presents FOSCON III: Really Radical Ruby
259524 [tlockney gma] As I waited until the end of a very long day to post this

^ attr_writer and hash
259535 [aidy.rutter ] class Test
+ 259537 [caduceass gm] class Test
+ 259538 [phillipsds y] It looks like you're mixing two different ways of getting at username

^ (none)
259545 [scottjourand] Unsubscribe

^ (none)
259546 [scottjourand] unsubscribe

^ (none)
259547 [sciguyryan g] unsubscribe

^ Re: [QUIZ] Maximum Sub-Array (#131)
259549 [selecter gma] So, it means I have to dump my written code directly to trash? :(
259551 [selecter gma] I don't know if it's OK to ask questions here before the 48 hours
259556 [james graypr] Well, if I understand right, you want a regex to match an array of
259632 [selecter gma] Yes, you understood me right. Your example is what I needed. But I
+ 259644 [sonoflilit g] Just to make sure you know, this isn't required of your solution.
| 259667 [selecter gma] Thanks! I know it's not required. But still. I ask a question and
+ 259695 [james graypr] (?: ) is the same as ( ), save that it doesn't set a capture

^ Safari front window url - appscript
259555 [rubyforum we] require 'rubygems'
+ 259564 [ryand-ruby z] ruby is case sensitive, so is applescript. You probably also want 0,
+ 259568 [m_goldberg a] The following worked for me.

^ I don't need serious help!
259557 [sy1234 gmail] I've had a very long absence from Ruby.  As with all of my other skills,

^ snippets databases
259558 [sy1234 gmail] This is a longish post.. there were bunches of ideas rattling around in
+ 259560 [ml synthetic] Have you considered just setting up a blog (public or private). The
| 259601 [sy1234 gmail] A blog might not be a bad idea.  Right now I've got some notes dumped
+ 259566 [aurelianocal] I think that is a good idea to start doing learning tests
| 259570 [gregory.t.br] I did this while dabbling with Haskell.  Definitely recommendable.
| 259602 [sy1234 gmail] I can't believe I didn't remember this.  I've even had this mentioned
+ 259571 [cdcarter gma] I usually pastie it with a =begin/=end block at the top explaining it,
  259603 [sy1234 gmail] I'm leaning towards test cases now.. but adding good headers would

^ loop unit test cases?
259561 [aidy.rutter ] Is there any way to loop TEST::UNIT test cases to accommodate
259563 [gethemant gm] Can you explain a bit more?
259572 [aidy.lewis g] I am still thinking about this, but I hope you get the idea

^ graphing/charting application
259574 [perrin apoth] I'm hunting around for a simple application that generates images like
+ 259580 [grzm seespot] Have you taken a look at Gruff? I haven't used it myself, but it
| 259685 [perrin apoth] Is there some kind of rule that states that, when something like RDoc is
| + 259688 [gregory.t.br] I'm sure that Geoffry would appreciate documentation patches.
| | + 259689 [gregory.t.br] s/Geoffry/Geoffrey/
| | + 259690 [perrin apoth] Sure . . . just as soon as I figure out how to use the library.  With the
| |   259693 [gregory.t.br] This might sound rude, but I don't intend it to be offensive.
| |   259736 [perrin apoth] This might sound rude, too, and I honestly don't intend it to be
| |   + 259740 [seebs seebs.] I think many developers underestimate the significance of documentation
| |   | + 259761 [TimHunter nc] +1. I did my time, too, helping document a C compiler/linker on a system
| |   | + 259763 [perrin apoth] True.  It's a shame that there isn't better documentation for some
| |   |   + 259771 [seebs seebs.] Makes sense.
| |   |   + 259809 [list.rb gmai] This may be OT at this point on the conversation but,  I've used XML/
| |   + 259820 [gregory.t.br] You're right.  What I said came off as harsh and rude, and I apologize
| |     259917 [perrin apoth] Fair 'nuff.
| |     259980 [gregory.t.br] What I've found in Ruport, which was the definition of poorly
| |     259981 [gregory.t.br] damn that google.  heres a sanely snipped response below.
| + 260111 [ryand-ruby z] Is there some kind of rule that states that, when something is freely
|   260124 [perrin apoth] Is there some kind of rule that states that everyone who takes note of
|   260134 [ryand-ruby z] The above is a direct quote of yours, so I didn't put words in your
|   260170 [perrin apoth] See above, re: what *you* said about my words -- which, by the way, do
|   260374 [znmeb cesmai] There are non-snide divorce lawyers?
+ 259581 [stefan mahli] gruff has been mentioned already
+ 259620 [h.wickham gm] You should really try to avoid those faux-3D bars - they make the
  259684 [perrin apoth] I'd normally agree, but in this case the purpose is to create a

^ Select last row in Gtk::Treeview?
259575 [rich.midwint] Does anyone know how to select the last row in a Gtk::Treeview? If it
259631 [rich.midwint] Argh, sorry. This wants moving to the Ruby Gnome2 forum I presume.

^ Calling a Perl script from Ruby
259576 [rubyforum we] I'd like to use gpsPhoto.pl in a Ruby script.
+ 259585 [TimHunter nc] Check out the system() method.
| 259587 [dave pezians] looks like system only returns true or false if the system call executes
| + 259589 [rawn027 gmai] backticks my friend :)
| | 261319 [rubyforum we] Thanks, backticks are my friend. The time delay in responding was due to
| | + 261395 [rubyforum we] gpxFiles =  gpxDateFN.join("\" \" ")
| | | 261459 [ snk gna.org] class String
| | | 261463 [rubyforum we] Thank you. Much more Rubyesh.
| | + 261473 [ryand-ruby z] (no, I don't actually recommend this approach--it is just funny)
| |   261877 [ snk gna.org] Wow, is this your Perl handler for RubyInline (which was mentioned by
| |   261881 [znmeb cesmai] You can always use RSpec to leverage Ruby into almost any situation. :)
| |   261888 [ snk gna.org] RSpec is indeed a tasty treat.  However, change is not driven by
| + 259591 [znmeb cesmai] IIRC "system" returns the (implementation-dependent) numerical return
|   259597 [james graypr] system("date")  # => true
|   259598 [ml synthetic] There is also Kernel.`` which will return stdout. If you're looking
|   259611 [rubyforum we] Original poster here.
+ 259588 [matt www.tea] output_string = `perl gpsPhoto.pl [blah, blah, ....]`

^ Newbie with error
259582 [maggie mreid] I am running on OSX 10.4. 10

^ www.OutpatientSurgicare.com/video/
259584 [dvd_km yahoo] www.OutpatientSurgicare.com/video/

^ Re: Ruby 1.8.4 Mac OS X readline problems
259586 [maggie mreid] I am having this problem with Ruby 1.8.6 and OSX 10.4.10.

^ Passing arguments to ruby script
259592 [galecho gmai] I'm using ajax with ruby for my application, and need to send an
259596 [phlipcpp yah] slick interface, so you can spend time on your actual features.
259600 [galecho gmai] Firstly, I dont want to use Rails because I'm not writing a full fledged
259610 [galecho gmai] Nevermind I figured it out.

^ Contents of variable as variable name
259593 [redct openfi] I know that sounds a bit crazy, but is there a way to do that?
+ 259594 [gethemant gm] irb(main):025:0> a = "foo"
+ 259599 [sy1234 gmail] oh oh oh .. I asked this question and did a bit of experimentation a
+ 259649 [ruby anthrop] Don't do it. If you think you need to, it is indicative of bad design.
  259745 [sy1234 gmail] Thanks for the reading.  This helped me avoid learning a Bad habit.

^ Double slash in Hpricot...?
259595 [rabbitblue g] What's the purpose of the double slash in Hpricot?
259609 [phlipcpp yah] Google for an XPath tutorial. // is XPathic for the "any descendant" axis.
284640 [jmilarsky gm] "/" is supposed to be synonymous with Hpricot::Elem#search ... is "//"

^ Test::Unit
259612 [xml_user web] That is first time which I into forum
+ 259613 [dan fluentra] I'm not sure what you are asking. If you want to know why it is failing,
| 259626 [xml_user web] with the double y is specially over indicate permit like the data look
+ 259625 [florian.assm] 1.

^ I offer serious help
259621 [sonoflilit g] I don't have much time now (ditching a physics lecture to write this)
259622 [sonoflilit g] (to make things clear: this is Re: Need serious help!)
+ 259705 [wiltroutja a] Tyvm. I will try this imediately. When (If, but most likely I will) make
| + 259738 [perrin apoth] Nobody told you, in this discussion, to write hello world thousands of
| | 259747 [wiltroutja a] They told me in other discussions. Many of the multiple Re: I need
| | 259766 [perrin apoth] If it's not public, don't post it to a public mailing list.  Thank you
| + 259897 [sonoflilit g] (just because I felt proud of how polite and helpful my message was
|   + 259918 [perrin apoth] Mine came with a manual -- both in Debian a couple years ago and in
|   + 260105 [wiltroutja a] Wicked. If you ever get the time, finish that. It sounds like mad fun.
|     260167 [sonoflilit g] Won't happen in the next nine years (yes, I know what I'll do in the
+ 259706 [wiltroutja a] Dangit. The download isn't working. For some reason it won't paste into
  + 259710 [sam powersou] Joe,
  | + 259713 [wiltroutja a] ? The download link that SonofLilit put in his very nice and helpful
  | | 259715 [sam powersou] Did you look into the Novashell game maker I sent?
  | | 260103 [wiltroutja a] Looks sorta like FF 1. Anyone know what stuff that was written in? That
  | | 260509 [sam powersou] I haven't tried it, but its on my list of things to do.
  | + 259717 [wiltroutja a] Omg. This turtle thing is fun. I was just messing around, and made the
  |   259718 [wiltroutja a] Only problem, I don't know some kind of command that erases what I did
  |   259723 [wiltroutja a] And is there a way to save words you make so that whenever I restart
  |   + 259724 [wiltroutja a] Pilot Gnome. I was messing around, trying to make the circle command.
  |   | 259726 [wiltroutja a] Omg again. I wanted to make a cylender type thing, so I made the word
  |   | 259727 [wiltroutja a] And if you look at it the right way, it looks almost 3-d. With some
  |   | 259739 [perrin apoth] I like UCBLogo quite a bit.  I like Brian Harvey's textbook series that
  |   | 259746 [wiltroutja a] Problem is, all the Logo forums I could find were on Yahoo. I tried to
  |   | + 259760 [seebs seebs.] There's this old joke about someone searching in the street for something,
  |   | | 259777 [wiltroutja a] I know perfectly well how to get on the Logo forums. Problem is, Yahoo
  |   | | 259782 [ari aribrown] <Snip>
  |   | | 259801 [wiltroutja a] If I were to kill the flaming, you would be dead. Along with a great
  |   | | 259803 [wiltroutja a] And stop spamming up Aurs helpful thread.
  |   | | 259835 [gregory.t.br] If you direct your mails to sonoflilit at gmail dot com, no one will
  |   | + 259768 [perrin apoth] No . . . the problem is that you think your problem with Yahoo somehow
  |   + 259732 [seebs seebs.] Try a Logo newsgroup.  There's ways to do it in Ruby.  I wouldn't dream
  |     259735 [wiltroutja a] Good idea. Now I'm going solo trying to create fun commands that make
  + 259711 [wiltroutja a] I found a download. From Brian Harvey's homepage. So Im assuming it

^ xkcd and ugly code
259624 [phillipsds y] I read this xkcd strip the other day (http://www.xkcd.com/c287.html)
+ 259627 [dkarapetyan ] This is basically a backtracking problem and the best way to deal with such
+ 259628 [sonoflilit g] Here's a bit of DRYing up of your code, which isn't a good idea - as
+ 259630 [rff_rffREMOV] not sure about the ruby way, but isn't it a case of the knapsack problem?
+ 259691 [james graypr] Fun problem.  Thanks for sharing.

^ Help installing fxruby on osx
259637 [phillipsds y] A few weeks ago I tried to install fxruby, went grey, ended up
259650 [lyle.johnson] Congratulations!
+ 259652 [phillipsds y] Spot on. I've removed the dir and in the process of trying it again.
+ 295933 [daniel.wilke] I had the same problem with fxscintilla but I solved it by downloading
  + 295964 [alex deletem] Since you're on OS X and mention needing fxscintilla, you could try
  + 296011 [lyle lylejoh] OK, just so I understand it, at this point you've built both FOX and
    296019 [daniel.wilke] Why doesn't Apple just make one way to install things?  Their strength
    296042 [lyle lylejoh] Well, technically, they're only responsible for the Ruby that comes

^ help ruby noob write a hitEnterToContinue() method
259638 [davidkl davi] i = 0
259643 [wayneeseguin] charset=US-ASCII;

^ help ruby noob write a hitEnterToContinue() method
259639 [davidkl davi] its like this... where the follow code in my main prints out large text
259647 [davidkl davi] Oh yeah... and I'm using Hipricot... (if that matters)

^ faster_csv column type
259640 [hugo.mag gma] I'm using faster_csv to import some csv formatted data to a database.
259671 [james graypr] Does this give you any fresh ideas?
261240 [hugo.mag gma] Thanks for the answer.
261382 [james graypr] Sure.

^ (none)
259645 [jamison2000e] unsubscribe

^ [QUIZ-Solution] Maximum Sub-Array (#131)
259648 [aurelianocal] Given that the spoiler time is finished (I think) these are my
+ 259651 [rff_rffREMOV] And here is mine, which I think it's the same of your solution #3.
+ 259653 [alexandru gl] $ ruby sol.rb
| 259655 [aurelianocal] You're right!!!!
| 259658 [aurelianocal] I've forgotten to tell that the corrected solution is at
+ 259698 [james graypr] When I first considered this quiz, I tried to whipped up a quick and
  259701 [eric.mahurin] Here is a O(n) solution.  This simply finds the max accumulation minus
  259839 [jesse.d.merr] irb(main):052:0> arr = [-2,0,0,4,-5,1]
  259861 [eric.mahurin] Thanks for pointing out my mistake.  I didn't handle the case when the
threads.html
top