253847-255750 subjects 254372-255562

^ (none)
254085 [roland.mai g] ...

^ Re: [QUIZ] FizzBuzz (#126) [SOLUTION]
254088 [m_goldberg a] Here are my solutions to Quiz 126.  Because it was the one that

^ delete in Array (if exist) and count
254099 [josselin wan] I am trying to delete an element from an array if it exists and count
+ 254102 [TimHunter nc] How about using Array#delete_if?
| 254126 [josselin wan] that's exact?ly what I want... I read the API doc, I look into the
+ 254112 [caduceass gm] Array#delete works also with no need for a block (i.e. you're only
  254125 [josselin wan] I checked
  254179 [caduceass gm] That's because Array#delete returns the deletion, not the Array

^ Process::GID.change_privilege not changing groups properly?
254101 [scott.mcnab ] I am trying to use Process::GID.change_privilege to get a root process
254180 [B.Candler po] Try using Process.initgroups

^ Oniguruma busted on mac?
254103 [Tim.Bray Sun] 695> sudo gem install -r oniguruma
254105 [Tim.Bray Sun] d'oh, never mind, had PATH screwed up.  -Tim

^ [QUIZ] #126 [Solution] The varieties of FizzBuzz experience.
254107 [rick.denatal] class Integer

^ Re: [SOLUTION][QUIZ] FizzBuzz (#126)
254122 [kbloom gmail] =-=-=-=-=
254129 [B.Candler po] My solution: 63 characters without the quotes, or 60 characters with them.

^ Singleton initilized twice
254127 [maikonaraujo] I have a little problem here, I am doing a webserver and I put some
254141 [shortcutter ] Sounds like you are using CGI and thus your singleton is initialized
254196 [maikonaraujo] Tks, I was doing a hello worl only ehehe, and runing "ruby script/
287029 [dteitsort ho] Then it sounds like you still have the problem.  I've noticed the exact

^ [QUIZ] FizzBuzz (#126)
254132 [croese gmail] ...
254277 [blowmage gma] ...
+ 254318 [caifara.subs] 1.upto(100) do |i|
+ 254337 [robert.dober] Wait a second you might be the first to provide a correct solution, I
  + 254338 [robert.dober] Sorry I cannot read code, but the idea stands no newlines at all.
  + 254349 [agorilla gma] That's a bit long for golfing, but it's probably the most readable
  + 254352 [peter peterc] ...

^ Fwd: Please Forward: Ruby Quiz Submission
254145 [james graypr] ...

^ Fwd: Please Forward: Ruby Quiz Submission
254146 [james graypr] ...

^ Fwd: Please Forward: Ruby Quiz Submission
254147 [james graypr] ...

^ Fwd: Please Forward: Ruby Quiz Submission
254148 [james graypr] ...

^ Fwd: Please Forward: Ruby Quiz Submission
254149 [james graypr] ...

^ Fwd: Quiz 126
254150 [james graypr] ...

^ Fwd: Please Forward: Ruby Quiz Submission
254151 [james graypr] ...

^ image upload
254152 [email2nilez ] ...
254162 [fwmailinglis] ...
254293 [email2nilez ] ...

^ [solution] quizz 126
254158 [philip-f rub] c=100

^ [QUIZ] FizzBuzz (#126) [SOLUTION]
254159 [doug.meyer s] This is one of those quizzes that is so easy, you have to find some

^ Re: [SOLUTION+GOLF] [QUIZ] FizzBuzz (#126)
254165 [svolkov comc] ...
254612 [lojicdotcom ] Another 56 byter :)

^ Gem:Module (NoMethodError)
254178 [daniels171 g] I have this problem win Rubygem
254208 [renard nc.rr] Did you use?
254246 [halostatue g] This is incorrect. It is not necessarily the case that the gem name

^ Problem with open-uri
254181 [jnichols alu] I'm trying to use open-uri on yahoo mail's login page.  If I do the
254182 [caduceass gm] You're being redirected.  Try the redirect url (and you can leave the
254191 [jnichols alu] Thanks for the quick response.  Unfortunately, I need to have the
254390 [jnichols alu] I think I figured this out.  The following is the code that generates

^ getting ruby v1.8.6 on Mac OS X - what's the easiest way?
254186 [greg.hauptma] ...
+ 254188 [TimHunter nc] I think the easiest way is to simply download the tarball from
| + 254193 [greg.hauptma] ...
| | 254195 [TimHunter nc] You can install it from your OS X installation disk (look for
| + 254200 [addager gmai] Why do you think there is no allready compiled one-click binady .dmg
+ 254206 [ari aribrown] Ok, I just did this myself. I had some trouble at first, but then I
  254297 [dangerwillro] Well, if you want to install things like Ruby, or PHP and so on, you
  254315 [ari aribrown] TextMate is my homey when comes to ruby.

^ Building C++ with Rake
254190 [magnus.falk ] I'm familiarizing myself with Rake (and learning a spot of Ruby while
254290 [urban betton] Just build your array and then call array.join(' ') to get a string of
254385 [magnus.falk ] The Array.join worked beautifully, thanks for the tip.

^ Re: FizzBuzz (#126) [SOLUTION]
254194 [rubytraining] Here's my solution.  It makes heavy use of the Ruby idiom of using the

^ Fwd: Please Forward: Ruby Quiz Submission
254197 [james graypr] ...

^ [RoR] Path for mongrel broken after moving eclipse workspace
254198 [Pawe Stawick] I'm using eclipse with RadRails. I recently moved my eclipse workspace

^ [SOLUTIONS][QUIZ] FizzBuzz (#126)
254210 [jesse.d.merr] ...

^ Update scaffolding form field
254211 [dafritz gmai] This may be a basic question, but i have an "image" field in a "news"

^ Re: getting ruby v1.8.6 on Mac OS X - what's the easiest way
254214 [olsonas gmai] To my way of thinking, it is far easier to use Macports than to install

^ code problems
254217 [dkarapetyan ] ...
254218 [nobu ruby-la] It is valid.
254219 [dkarapetyan ] ...
254223 [nobu ruby-la] You need ruby 1.9.  Block passing to a block isn't supported in
+ 254291 [frioux gmail] I thought I read somewhere that 1.9 wasn't going to support closures.
| 254294 [vjoel path.b] You are thinking of continuations, not closures, maybe?
| 254306 [vjoel path.b] YARV *does* have closures
| + 254316 [frioux gmail] Isn't YARV supposed to be Ruby 1.9?  Also, can someone explain the
| | 254504 [rick.denatal] Rick DeNatale
| | + 254518 [robert.dober] fact I hoped that they would behave as described above, but they do
| | | 254602 [rick.denatal] Robert, you are right, it loops in ruby, but not in irb.
| | | 254605 [robert.dober] That confirms my limited understanding of it :)
| | | 254629 [rick.denatal] Actually it comes from the puts "After callcc" as this change demonstrates;
| | | 254648 [robert.dober] Stupid typo of mine, sorry
| | + 254575 [frioux gmail] When I first learned about closures I was like, "Weird..."  But then I
| + 254343 [nobu ruby-la] YARV has continuations in the latest versions.
|   254370 [robert.dober] Wow, congratulations, that must have been tough work!
+ 254307 [dkarapetyan ] ...

^ Sequel: Get latest record of multiple
254222 [florian.assm] first of all I'd like to say that Sequel seems very promising, thank
254226 [alin.popa gm] I think that you need a field in that table in which you have to put the
254339 [florian.assm] I defined some methods in my Model that - hopefully - build me up the

^ Ruby problem with conditional ranges
254228 [tjacobs-sndr] I'm running into a problem doing a conditional range in ruby. The sample
+ 254229 [nobu ruby-la] print $_.sub(/^##/, '') if ~/^## two/ .. ~/^## four/
+ 254231 [come.news fr] Implicit match against "$_" is not anymore supported in version 1.8.
  254347 [tjacobs-sndr] Thanks. Your explanation was very helpful. It works better now, but the
  + 254363 [GGarramuno a] On Jun 4, 9:51 pm, "Todd A. Jacobs" <tjacobs-
  + 254366 [GGarramuno a] Sorry.  Buggy code posted.  Here's a correct implementation.
  + 254383 [come.news fr] ".." and "...".

^ Add namespace to the SOAP Body and Header
254232 [david.alphen] ...
254360 [nakahiro sar] Following code samples require soap4r-1.5.6 RC2.  You need to get 1.5.6
254407 [david.alphen] ...

^ How to retry a disrupted Net::HTTP download?
254239 [baleevo yaho] I'm trying to download a file with Ruby from a website. Everything works
254393 [baleevo yaho] Okay I found it out by myself, here's the working code if someone else

^ newcocoa, command not found?
254242 [anne wjh.har] But I can't run newcocoa as per tutorial
254261 [anne wjh.har] It seems it is just a path problem as I can invoke newcocoa directly
254325 [anne wjh.har] I thought /opt/local/bin was the same as /private/opt/local/bin
254331 [laurent.sans] Did you install RubyCocoa before?

^ Using Ruby to get data from an Access Database
254244 [arobbo61 hot] I only have basic experience of creating Intranet applications using ASP
254249 [znmeb cesmai] There are lots of ways to get data to and from an Access database,
254309 [arobbo61 hot] The script would be running from the same machine as the database.  I've
+ 254310 [donald.ball ] DBI.connect("DBI:ODBC:driver=Microsoft Access Driver (*.mdb);
+ 254342 [tirado.carlo] The win32ole library is your friend. This should work (almost direct

^ Numeric locale
254247 [lists bertra] the German decimal separator is ",". So pi will be
254269 [matz ruby-la] I'm sorry but LC_NUMERIC is disabled at the current level of
254286 [lists bertra] Then the Vim behaviour probably is the bug. Thanks anyway;

^ Deleting a file - is there a less clumsy way to do this?
254250 [ronald.fisch] In my application, I often have blocks of code, where during preparation
+ 254251 [dan fluentra] FileUtils.rm_f(filename) ?
| 254386 [ronald.fisch] Thank you - this is indeed a useful solution!
+ 254252 [seebs seebs.] ...
+ 254259 [B.Candler po] There's
| 254276 [ronald.fisch] Interesting (didn't know about this variation), but, as you said,
+ 254262 [jcribbs netp] File.delete(filename) if File.exist?(filename)
  + 254275 [ronald.fisch] Well, I'm not so much concerned about the *lines* of code,
  | 254292 [djberg96 gma] Note that this approach would silently fail on MS Windows if another
  | + 254300 [dangerwillro] so check success by checking File.exists? again...?
  | | 254308 [djberg96 gma] On Jun 4, 11:42 am, John Joyce <dangerwillrobinsondan...@gmail.com>
  | + 254387 [ronald.fisch] (1) Created a file xx
  + 254328 [lloyd 2live4] Very nice, Jamey!

^ How to check if a string is a integer ?
254253 [duzuike gmai] How to check if a string is a integer ?
+ 254254 [apeiros gmx.] You can use Integer(), it raises if the String passed is not an integer.
| 254266 [lists bertra] In many cases it's useful to test for hex representations as
| 254281 [apeiros gmx.] In those cases I'd even more use Integer(). It accepts about all
| 254285 [lists bertra] Aah! I did not know that. Cool. Thanks.
+ 254255 [farrel.lifso] You can use either the String#to_i or Kernel#Integer methods
| 254257 [duzuike gmai] Thank you, it works.
| 254351 [botp delmont] #  I typed "ri Kernel", but I can't find any Kernel's class method.
+ 254258 [farrel.lifso] That won't work
  254270 [david.mullet] Of course not. Duh! My apologies.

^ Range comparisons
254279 [ymendel pobo] Something came up as I was testing some ideas.  I know Range objects
+ 254287 [CHubas7 gmai] Here is an interesting discussion.
+ 254288 [shortcutter ] Similar discussions have come up here before.  The net was, that because
+ 254594 [ymendel pobo] Thanks to both of you (CHubas and Robert).  I didn't see the replies

^ Sleeping between 1e-2 and 1e-6s
254280 [apeiros gmx.] I noticed that ruby uses a different way to sleep with values >1e-6s.
254312 [B.Candler po] You've hit the granularity of the thread scheduler. On my machine, running
254323 [apeiros gmx.] Certainly not. But even with Ruby microsecond sleep should be possible.

^ Fwd: Ruby Quiz #126 Submission
254282 [james graypr] ...

^ [Quiz] Solution to 126
254289 [justin.ethie] ...

^ How to capture the output of system("")?
254298 [yingqitang g] All,
+ 254301 [sepp2k googl] By using backticks or %x{} instead of system.
| 254317 [james.d.mast] On Jun 4, 10:47 am, Sebastian Hungerecker <sep...@googlemail.com>
+ 254302 [damnbigman g] ...
  254303 [damnbigman g] ...

^ Using ADO to connect to an Access database in Ruby
254304 [arobbo61 hot] I'm trying to get Alexa web stats on 1,000 firms websites.  I have the
+ 254364 [dave burt.id] The simple way is to export the list from the database into a text file
+ 254381 [umageller gm] begin
  254389 [arobbo61 hot] Thanks very much for all the imput guys, seems like I inadvertantly
  + 254409 [chris.hulan ] Inside double-quotes, the '\' is the escape character.
  | 254421 [arobbo61 hot] Right , very close to achieving my objective , thanks very much for
  | 254585 [chris.hulan ] I think the simplest way would be to store this XML in an String and
  + 254422 [znmeb cesmai] That should be "C:\\Documents and Settings\\Andy\\Desktop" ... '\' is an

^ [ANN] Missoula Ruby & RoR Meeting
254305 [jgarvin.list] It's a new month, and that means another meeting of the Missoula Ruby

^ Help needed: Dynamically create a Proc from a String and evaluate it
254313 [AEtzold gmx.] Dear all,
+ 254320 [jameskilton ] ...
| 254324 [AEtzold gmx.] Dear Jason,
+ 254321 [B.Candler po] If you're passing in c and k each time, then
  254330 [AEtzold gmx.] Dear Brian,
  254333 [jameskilton ] ...
  254334 [AEtzold gmx.] Dear Jason,

^ [ANN] South East Michigan Ruby Brigade Meeting - TODAY
254314 [winstont umi] (if you are not familiar with campus don't be intimidated, ask on the

^ link_to query mysql for list
254322 [cragmor gmai] I have a web app that I want to make a link. I have a link_to that
254329 [keynan howe.] use the rails forum for ror questions
254336 [rick.denatal] actually

^ [ANN] RubyCocoa 0.11.1
254326 [laurent.sans] I am honored to announce the immediate release of RubyCocoa 0.11.1.

^ Reverse-range alternatives?
254332 [kenneth.m.mc] Since a reverse range (eg. 4...1) is functionally almost the same as an
+ 254335 [frioux gmail] You could do 4.downto(2) { |i| ... }
| 254340 [kenneth.m.mc] Oh, of course. I'm still not entirely used to thinking of numbers as
+ 254345 [shortcutter ] $ ruby -e '4.downto 1 do |i| p i end'
+ 254350 [botp delmont] # Since a reverse range (eg. 4...1) is functionally almost the
+ 254361 [dan-ml dan42] I can't resist this one...
| 254365 [kenneth.m.mc] I'd thought of that, but it's simply too risky. Changing the behavior of
| 254475 [rick.denatal] Actually if you look carefully that's what his code does.  He added a
| 254484 [kenneth.m.mc] Oops, my bad, I saw the class being reopened and jumped to a conclusion
| 254521 [shortcutter ] The real issue here is that there are at least two useful ways to deal
+ 254371 [transfire gm] On Jun 4, 4:51 pm, Kenneth McDonald <kenneth.m.mcdon...@sbcglobal.net>

^ Sequel: Cannot save model or limit varchars
254341 [florian.assm] I experienced Problems when I tried to save a Sequel::Model
254344 [florian.assm] Huh, did some hacking... to fix this problem I changed the sequel/
254356 [ssmoot gmail] Not that I mind, but you mind get a better response on the Sequel

^ Calling Perl Modules from ruby
254346 [barjunk attg] I saw some conversation about this a few months ago, but wanted to
254441 [DPhillips cy] If what you have in perl is working, why go through the hassle to
254576 [barjunk attg] Actually what I would prefer to do is to call the perl modules
254599 [sean ardishe] ...
254611 [barjunk attg] This looks interesting.  Thanks for point it out.  Have you ever used
254902 [sean ardishe] no i haven't. we haven't had the need to yet.

^ [ANN] attributes-3.3.0
254357 [ara.t.howard] NAME

^ [ANN] prototype-2.0.0
254358 [ara.t.howard] NAME
254462 [vshepelev im] "prototype is something knowing how to process messages I don't know")
254468 [ara.t.howard] yes.  if one does
+ 254472 [james graypr] require "ostruct"
| 254478 [ara.t.howard] require 'rubygems'
+ 254473 [vshepelev im] It's understandable. I've meant the case
  + 254479 [ara.t.howard] the first impl did indeed to that.  the latest does not.  i found it
  | 254481 [vshepelev im] OK, that's why I've asked about library usage.
  + 254480 [ara.t.howard] on second thought it's a hybrid.  in prototype.rb's case you merely

^ Newbie... help with permissions
254369 [email micahc] Hey ya'll. I'm brand new to Ruby. Just a few hours into "Programming
+ 254373 [  z wzph.com] Hey.
+ 254380 [email micahc] Okay-- that was my bad. I wasn't filtering out '.' and '..'