368119-369851

367905-377064 subjects 368332-370552

Eyewitness account of an 8-year old Girl
368119 [hduyewjhf@gm] Eyewitness account of an 8-year old Girl

function call using reflection
368121 [raj_plays@ya] I get each part of the following command in a string at runtime
+ 368123 [shortcutter@] const_get will only resolve a constant (as the name indicates).  You
+ 368124 [jgabrielygal] irb(main):001:0> module A
  368127 [raj_plays@ya] Thank you, Robert and Jesus,

RINDA Probem
368125 [nandrolone66] I'm sure that i'm making a big mistake but i can't see it.Now i'm trying
+ 368126 [nandrolone66] sorry previously i postetd a wrong Cosumer class here the right ver
+ 368136 [martindemell] missing this code

1.9.2-rc2 -> 1.9.2-p0 breaks Sinatra
368128 [onepoint@st ] My Sinatra apps work with 1.9.2-rc2.  After upgrading to 1.9.2-p0 they
+ 368130 [luislavena@g] Can =A0anyone
| 368135 [onepoint@st ] No, because I never imagined that it might be necessary for an upgrade
| 368137 [chastell@ch ] Yes, I upgraded a (granted, trivial) Sinatra app from Ruby 1.9.1-p378 to
+ 368134 [abhijithoske] Sinatra's behaviour has appeared to change in the 1.9 compatible
  + 368138 [onepoint@st ] Thanks!  That  was it!   But why should  Sinatra change  its behaviour
  + 369851 [rdoggsv@sv o] Thank you very much this solved my problem also, executing sinatra code

Aws S3object exists? method
368129 [brijeshshah8] through S3Obejct , I am trying to check whether file is exists or not on

gems directory not getting installed
368132 [ghotrapa@ya ] I've tried installing different versions of one click installers on a
368151 [luislavena@g] 'gem env'

GEM's on Ubuntu
368142 [gonzalezgjai] ruby1.9.1-full
+ 368145 [rogerpack200] Recommend trying 1.9.2 or trying it in irb like
| 369239 [samweber01@g] Here's what happens on my Ubuntu 10.04 box.  I may be standing on my air
+ 368146 [erniervx@gm ] perhaps, if you try with export GEM_HOME="path_gems" ?

Openssl gem segfault
368144 [clemmece@gm ] I'm seeing an unusual segfault when running unit tests. Google hasn't

Re: Rails and windows
368148 [rogerpack200] Just 'cause it's slow in starting up each time.

Dealing with dates & timezones
368152 [stuart.clark] Hey all,
+ 368155 [sentinel1879] I have once done some time zone conversion in ruby. My apologies, I do
| 368156 [sentinel1879] Please note in the above program, i am always converting incoming time
| 368161 [stuart.clark] Thanks a lot for getting back to me. The first problem I have noticed
+ 368158 [b.candler@po] Just sub out the "o'clock" and you should be fine.
  368165 [stuart.clark] Yeah sorry, got my words tangled up regarding + and - of hours.

require gem problem
368163 [gonzalezgjai] ruby1.9.1-full
368213 [rogerpack200] might help.  Worth a try (has instructions on how to avoid using

[ANN] JRuby 1.5.2 Released
368164 [tom.enebo@gm] The JRuby community is pleased to announce the release of JRuby 1.5.2.

Using Test::Unit and running operations before and after a test suite
368166 [cpasillas@ly] I am a very new Ruby user, trying to automated some tests.
368174 [ryand-ruby@z] the setup of an entire suite of tests and another operation once for the =

It's a Bird, It's a plane, no! umm, it's a Distributed Agent?
368167 [gmkoller@gm ] Some months ago I showed up here after I had just finished a big part

case and class
368168 [ralphs@do 32] ...
368171 [colinb2r@go ] It's because of the definition of "===" which is used in the case statement.
368175 [ralphs@do 32] ...
368183 [colinb2r@go ] and uses
368185 [ralphs@do 32] ...
+ 368239 [b.candler@po] I think of === as meaning 'matches' rather than 'equals'. This is
+ 368246 [dblack@ru yp] case obj
  368251 [ralphs@do 32] ...
  368326 [dblack@ru yp] Every object has a lookup path, consisting of classes and modules in a

stripping whitespace while reading CSV
368169 [r@al m. it e] I'm perplexed over what ought to be a simple CSV question: can you ask
368260 [sentinel1879] I can't recall why I stopped using CSV, so I am not the best person to

"rake test" broken after upgrade to 1.9.2 (NameError)
368170 [eveith@ww eb] I've got a quite deep class and directory hierarchy. It worked perfectly
368173 [martindemell] It's probably the removal of "." from the load path. Try adding
368177 [eveith@ww eb] Martin,

Net SSH Problem?
368172 [astahl@hi .c] Today I get to jump in to the net::ssh gem to start using it to control
368184 [paradisaeida] This works here....

Problem installing some Gems on Linux
368179 [baldio@gm il] I can't install some gems (nokogiri, hpricot, sqlite3-ruby...) on Slitaz
368202 [tn.pablo@gm ] For nokogiri you need all these (I *think*, I can't confirm right
368211 [baldio@gm il] Thanks Pablo,

[ANN] RubyInstaller 1.9.2-p0 released - Newer DevKit and instructions
368186 [luislavena@g] I'm very pleased to announce the release of RubyInstaller packages for
368197 [allenlooplee] great job!

convert  125% into  1.25?
368187 [myocean135@y] irb(main):011:0> format("%.2f",125)
+ 368190 [lists@ke pg ] From a mathematical aspect the % sign means 1/100 so 125 % equals
+ 368196 [eveith@ww eb] Pen,
  368241 [rasputnik@he] You can sort of cheat, thanks to Rubys open classes.
  368252 [ryand-ruby@z] the appropriate place to put that is Integer, not Fixnum.
  368253 [Rob@Ag le on] => [Fixnum, Integer, Numeric, Comparable, Object, Kernel, BasicObject]
  + 368261 [rasputnik@he] Ah, good catch both, thanks.
  + 368266 [ryand-ruby@z] BasicObject]
    368274 [colinb2r@go ] I said Integer because of how the original problem was described. I thought

1.9.2 breaks ncurses (STR2CSTR) - pls help
368188 [sentinel1879] I am on Snow Leopard, installed 1.9.2 using rvm.
368189 [unexist@do f] Actually STR2CSTR was marked as obsolete in 1.8 and removed in 1.9.1.
+ 368192 [sentinel1879] I've tried various combinations. I either get runtime errors relating to
| 368218 [ralf.papenko] Unfortunately replacing STR2CSTR with StringValuePtr is not enough as
| 368225 [sentinel1879] Thanks a lot, Ralf. Working fine :)
+ 368193 [sentinel1879] On a fresh copy I placed the above lines, in the ncurse_wrap.h file.
  368194 [m.fellinger@] Michael Fellinger
  368201 [sentinel1879] Is anything other than ncurses port required to be installed ?
  368208 [m.fellinger@] Not sure if that works on OSX, but I'm hopeful :)

Re: eventmachine 0.12.10
368195 [2006hz13084@] I am struck with this wierd problem in windows when I am trying to use
368215 [rogerpack200] An excellent addition.  And a much more sane default.

Re: Happy Intransition Day! [ _why article link ]
368198 [wruyahoo05@c] Bill

A small problem for arrays
368199 [unc88@ma l. ] I have 2 array. ar_1, ar_2
368200 [jeanjulien.f] =3D> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
368203 [unc88@ma l. ] Can do the subtraction of arrays without using the operator "-"?
+ 368204 [jeanjulien.f] =3D> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
| 368228 [shortcutter@] Just adding to that: if Arrays are large and / or there are frequent set
| 368656 [unc88@ma l. ] set
| 368659 [jgabrielygal] r_array.
| 368721 [shortcutter@] he
| 368724 [jgabrielygal] the
| 368725 [shortcutter@] the
+ 368205 [code@ap th o] The method is `-`, and using it as an infix operator is just syntactic

YAML::dump slow
368206 [ralphs@do 32] ...
+ 368214 [rogerpack200] A couple ideas: do a custom yaml dump by hand, or use Marshal.
+ 368219 [m.fellinger@] iota ~ % time ruby -rpsych -e 'Psych.load(Psych.dump(Dir["/sys/**/*"]))'
  + 368234 [chastell@ch ] What exactly do I need to have Psych on an Ubuntu/rvm install?
  | 368243 [eregontp@gm ] oad -- psych (LoadError)
  | 368310 [chastell@ch ] Unfortunately, both rvm-wrapped and vanilla Ruby 1.9.2-p0=E2=80=99s configu=
  | 368312 [eregontp@gm ] That is a serious problem, you should probably fill a bug report with it.
  | 368339 [chastell@ch ] igure
  + 368236 [ralphs@do 32] ...

I HACK $3500 FROM PAYPAL...
368207 [magguri.hare] I HACK $3500 FROM PAYPAL  At http://quickpaypalmoney.tk

Adding *each*
368209 [ralphs@do 32] ...
+ 368210 [m.fellinger@] class X
+ 368227 [ninja@sl ph ] You can do that anyway, it just doesn't do anything. All methods can accept a

Directory copying using hard links?
368212 [michael@sc u] Is there an "official" way of recursively copying directories so that

Re: RubyInstaller 1.9.2-p0 released - Newer DevKit and instructions
368216 [rogerpack200] Nice. It worked.  Much easier than the old way :)
+ 368217 [michel@de az] Just for the record. In the file 'rubygems.rb' shipped with the
| 368220 [luislavena@g] Indeed is wrong, as it assumes that the system drive is C:. Please
| 368221 [michel@de az] Done : 28494
+ 368222 [luislavena@g] Sometimes I really wish you were less disperse.
  368276 [rogerpack200] Better late than never, I suppose.

RDBI 0.9.0 (release candidate) is out for testing
368223 [erik@ho le s] RDBI is yet-another database access library, currently in release

Ocra chat list?;  Ocra crashes;  Subclassing String
368224 [ralphs@do 32] ...
+ 368235 [ralphs@do 32] ...
+ 368245 [larschbelunk] You can go to http://rubyforge.org/projects/ocra and post to the forum
  + 368247 [ralphs@do 32] ...
  + 368255 [ralphs@do 32] ...

Help me realising my dream
368226 [aamir.coding] I have been featured on My Nokia Moments, check it out now. Help me becomea

CodeSnipr Learning can be simple!!
368229 [ashish.satap] All the group members right at here, we people recently lunched a
368336 [sentinel1879] Interesting. However, it seems you are filling the site not with

Module and protected/private functions
368230 [ajfrenzel@we] Is it possible to declare parts of a module as private or protected to
368244 [robert.dober] as a matter of fact it is,

Mongrel1.1.6 Installation not working with Ruby 1.9.1 in Win
368231 [2006hz13084@] I am facing with this problem where I am trying to install mongrel in my
368238 [luislavena@g] On Aug 22, 10:32=A0am, Anand Srinu <2006hz13...@dlpd.bits-pilani.ac.in>
368299 [2006hz13084@] Thanks verymuch for the lead. I got them installed and things are going
368311 [jzakiya@gm i] On Aug 23, 10:47=A0am, Anand Srinu <2006hz13...@dlpd.bits-pilani.ac.in>
368321 [luislavena@g] Before suggesting something, please read all the details that the
368366 [jzakiya@gm i] Tested OS and platforms
368367 [luislavena@g] I remember back in 0.6 only cygwin support was available.
368380 [2006hz13084@] Going through the NGINX documentation, I learn that
368401 [2006hz13084@] I found the solution for the DNS lookup issue. Finally, as usual, there

Help Support BING
368233 [aamir.coding] Help Support BING by Voting for it..
368250 [vikkous@gm i] That's a microsoft product isn't it? Why would we want to help
368258 [sophrinix@gm] Probably SMS message 45644 to the number 55555?
+ 368259 [synfinatic@g] Funny, when I read "gift hampers" I thought he meant the containers
+ 368285 [code@ap th o] Good call.  I had initially thought it might be vote totals.

Quickbooks gem
368240 [eblumenfeld@] Has anyone have any recent notice about www.behindlogic.com - the author
+ 368308 [eblumenfeld@] Has anyone have a hint?
+ 368309 [cbciv@ya oo ] It looks like his last tweet was in April 2010 and his last update to
+ 368313 [sunaku@gm il] Cheers.
| 368382 [cbciv@ya oo ] Note that the key phrase here is "by Microsoft".  The project is still
| 368403 [eblumenfeld@] Charles, you are right.
| 368410 [cbciv@ya oo ] Out of curiosity, does it come with source?
| 368413 [eblumenfeld@] Charles,
| + 368419 [cbciv@ya oo ] Don't know, actually.  I suppose it depends on whether the purchasing
| + 368439 [code@ap th o] Am I incorrect in my understanding that a binary library written in C can
+ 368320 [codyfauser@g] Unfortunately Daniel Parker, author of the Quickbooks gem, passed away
  368323 [eblumenfeld@] It is sad to hear that, specially being so young (23 years old!!!)

directory listing without . and ..
368262 [raj_plays@ya] How can I get an array of all legitimate sub directories in the current
368267 [ryand-ruby@z] current
+ 368269 [shortcutter@] s. I almost _always_ use Dir.glob (aka Dir[...]). I also almost always use =
| + 368272 [raj_plays@ya] Thank you, Ryan and Robert
| + 368315 [sunaku@gm il] dirs = Dir["#{path}/*/"]
|   368316 [sunaku@gm il] dirs = Dir["#{path}/{*,.[^.]*}/"]
+ 368305 [vikkous@gm i] Omitting all hidden entries may not be what OP wants. This skips not
  368314 [ryand-ruby@z] Yes. I said that.

unsubscribe
368263 [dekirunigen@] unsubscribe
368264 [raj_plays@ya] ??
368291 [code@ap th o] Yeah, I'm pretty sure that unsubscribing isn't going to fix the problem

assert "foo"[3] != "foo"[3,1]...revisited
368268 [timrandg@gm ] consider the following irb session;
368271 [matz@ru y- a] "foo"[3,1] is "" since when index is within the string, the sought
368273 [colinb2r@go ] 2010/8/23 Yukihiro Matsumoto <matz@ruby-lang.org>
368275 [matz@ru y- a] Yep, description proposal is welcome.
368331 [timrandg@gm ] Thanks for responding to my question--it is something akin to getting
368344 [colinb2r@go ] At the end of this post I've put examples of what I had in mind for slice
368347 [colinb2r@go ] Correcting my own post to remove confusion between length as in array.size

=== is not a symmetric operator?
368278 [ralphs@do 32] ...
+ 368280 [shortcutter@] =A0That, in fact,
+ 368281 [matz@ru y- a] No.
| 368289 [ralphs@do 32] ...
| 368294 [shortcutter@] or? =A0That, in fact,
+ 368296 [josh.cheek@g] Typically, you define X#=3D=3D=3D to be whatever is meaningful for you. So =

Class initialization
368279 [abder.rahman] class  Foo
368282 [wagner.andre] #<Foo...> just means "an instance of the class Foo". That crazy hex at the
368283 [abder.rahman] Thanks a lot Andrew. It is becoming more clear now. I'm just still not
+ 368284 [wagner.andre] So somewhere (at least conceptually) there's a definition that goes
| 368287 [abder.rahman] Oh, I see, and I override it when I define to_s in the class.
+ 368318 [cbciv@ya oo ] "inherited to_s method" or "inherited implementation of to_s".
  368319 [abder.rahman] Thanks Charles.

Looking for a file somewhere in a directory recursively
368286 [ralphs@do 32] ...
+ 368288 [wagner.andre] result = %x[dir *.bat]
+ 368295 [shortcutter@] isms rather than than Ruby regular expressions or the functionality of fnma=
  368298 [ralphs@do 32] ...
  + 368306 [Rob@Ag le on] Different Rob(ert), but yes, there is a [] method defined on Dir
  + 368338 [shortcutter@] e brackets?

Your thoughts on #memo ?
368293 [transfire@gm] # Memoize a method.
+ 368297 [shortcutter@] Ruby version 1.9.1
| 368302 [transfire@gm] l }
| 368304 [vikkous@gm i] Your #memo method is no more re-entrant than the instance variable
| 368330 [transfire@gm] Ah, thanks Caleb. So to be on the "safe" side I will have to use a
+ 368300 [wagner.andre] Yikes. There's rarely a good reason to need to call eval. And the rest of
+ 368307 [eregontp@gm ] It looks a bit weird, and eval is really ugly^
  368329 [transfire@gm] I find the approach of extending Method interesting. I will have to

oracle proc : ArgumentError (interning empty string)
368322 [sharnelp@gm ] I am trying to access oracle proc.

Static code analysis in Ruby 1.9
368324 [hubert.lepic] I am wondering if there is any way to perform sort of static code
+ 368325 [sunaku@gm il] Cheers.
| 368327 [ryand-ruby@z] Unfortunately that doesn't really help him much. He's still left hanging =
| 368341 [hubert.lepic] Well, that's a good link, thank you for that. I think for now I'll
| 368350 [hubert.lepic] gives me good enough inteligence where should I look for bad code.
+ 368373 [michel@de az] For quite a long time now, I have been using all the 1.8 tools (flog,

Interacting with other programs
368328 [jeppe88@gm i] Is it possible to make some kind of program hook in ruby, so I can have
368354 [shortcutter@] require 'expect'
threads.html
top