374010-375238 subjects 374411-375226
^ Ruby 1.8 vs 1.9
374232 [peter.pincus] how much longer will Ruby 1.8(.7) be maintained ? Is it advisable to
+ 374241 [cremes.devli] I believe the guys at EngineYard are in charge of backporting fixes to the 1.8.7 branch. I also heard there was a 1.8.8 coming at some point to be the final release in the 1.8 series.
| + 374242 [ryand-ruby z] would say the biggest reason to use it is to get a performance boost. =
| | + 374243 [phil pricom.] Who do I talk to get 1.9 RPMs produced for Fedora?
| | | + 374244 [ryand-ruby z] Beats me.
| | | | 374248 [aaron tender] My uncle Carl is really good at IT.
| | | + 374245 [cmdjackryan ] Just a guess: The Ruby (or Programming/Script language) maintainers of
| | | + 374258 [flebber.crue] wiki is a start for fedora they have ruby packages in the
| | + 374250 [cremes.devli] Definitely true. That's why I was careful to say "My code sees a 2-5x speedup..." because I have seen a few instances where 1.9 is a tad pokier. But clearly 1.9 is the future so sticking with 1.8 seems like a bad long-term bet.
| + 374260 [b.candler po] And just to give some balance: the biggest reason not to use 1.9 is
| + 374263 [spam.entfern] Sounds great. ;-) Can somebody else confirm this?
| | 374267 [m.fellinger ] iota ~ % echo =CA=98 | LC_ALL=3Dja_JP.UTF8 ruby -pe '$_[1,0] =3D "=CA=98"'
| | 374269 [spam.entfern] So working with strings in ruby v1.9 is not supported, right?
| + 374264 [m.fellinger ] And that's why I use and love 1.9.
| | 374274 [b.candler po] Y'know, I wouldn't mind so much if it *always* raised an exception.
| | 374278 [cmdjackryan ] Convert your strings to UTF-8 at all times, and you are done. You have
| | + 374280 [james grayso] easy
| | | 374460 [drosihn gmai] to stay out of it these days. =A0However, his arguments always strike me as=
| | + 374281 [b.candler po] But that basically is my point. In order to make your program
| | + 374284 [cremes.devli] [snipped lots of arguments about string encodings that may or may not be relevant to the OP]
| | + 374285 [ninja slapha] And if you don't like Ruby's strings, there's nothing stopping you from
| | + 374287 [cmdjackryan ] s/apart from preventing Ruby from raising exceptions/but ensures
| | | 374293 [josh.cheek g] Its wrongness is an interpretation (I would also prefer that it just break,
| | | 374294 [cmdjackryan ] It cannot be infinity. It does, quite literally not compute. There's
| | | + 374295 [josh.cheek g] it
| | | | 374308 [ninja slapha] in
| | | + 374297 [yuri.tzara g] It is perfectly reasonable, mathematically, to assign infinity to 1/0.
| | | + 374310 [e148759 bsno] This is not even wrong.
| | | 374335 [cmdjackryan ] For certain values of "definitive", anyway.
| | | 374362 [yuri.tzara g] What psychological anomaly causes creationists keep saying that there
| | | + 374364 [manuel kiess] Dear Yuri,
| | | + 374365 [cmdjackryan ] I'm quite aware that IEEE 754 defines the result of x_0/0 as infinity.
| | | + 374369 [spam.entfern] The point is that you can't guarantee that you has a 0 with floiting
| | | | 374374 [cmdjackryan ] You can. In mathematics. The problem is, as you pointed out, that a 32
| | | + 374373 [yuri.tzara g] Yes, it is. The creationist analogy continues, I see. Even when given
| | | 374376 [cmdjackryan ] "Unlike most mathematical models of the intuitive concept of 'number',
| | | 374383 [yuri.tzara g] Phillip, regarding defining 1/0 you said,
| | | 374385 [cmdjackryan ] Actually, they aren't I said for "x_0/0 the result is undefined", and
| | | + 374386 [jos catnook.] This discussion has little to do with Ruby at this point. Maybe you folks
| | | + 374414 [yuri.tzara g] The big picture is that IEEE floating point is solidly grounded in
| | + 374332 [shortcutter ] This may be true for the western world but I believe I remember one of
| | + 374336 [cmdjackryan ] Since UTF-8 is a subset of UTF-16, which in turn is a subset of
| | | 374341 [shortcutter ] I tried to find more precise statement about this but did not really
| | | + 374347 [cmdjackryan ] Wester languages get the first 8 bits for encoding. Glyphs going
| | | | + 374352 [shortcutter ] What bits are you talking about here, bits of code points or bits in
| | | | + 374354 [james grayso] You are confusing us.
| | | | + 374360 [phil pricom.] James,
| | | | | + 374361 [shortcutter ] ode
| | | | | + 374363 [james grayso] "code points" - is what you have said expressed diagrammatically =
| | | | + 374388 [no spam.plea] To add to this, Unicode 3 uses the codespace from 0 to 0x10FFFF (not 0xFFFFFFFF),
| | | | 374393 [james grayso] string and step forward or back to the nearest character boundary - a =
| | | + 374356 [james grayso] I believe you are referring to the complaints the Asian cultures =
| | | | 374357 [shortcutter ] s raise against Unicode. =A0If so, I'll try to recap the issues, as I under=
| | | + 374366 [spam.entfern] Yes this is correct. Many people don't get the difference between a
| | | 374370 [shortcutter ] Btw, this happens all the time: for example, people often do not grasp
| | | 374389 [no spam.plea] ... on a particular relativistic trajectory ;-) Seriously though,
| | + 374457 [b.candler po] But that's not what Ruby does!.
| + 374292 [ninja slapha] In 1.8, if those strings aren't in the same encoding, it will blindly=20
| 374313 [Ruby GoogleM] Actually, it's not. It's simply mathematically impossible, given that
| + 374320 [james grayso] And even UTF-32 would have the complications of "combining characters."
| | 374372 [Ruby GoogleM] .. and zero-width characters and different representations of the same
| + 374394 [ninja slapha] Whoops, my mistake. I guess now I'm confused as to why they went with UTF-1=
| + 374406 [cmdjackryan ] Because that's how the other applications written on the mainframe the
| | 374425 [ninja slapha] In other words, not _quite_ greenfield, or at least, a somewhat different
| | 374444 [cmdjackryan ] You don't expect anyone to throw their older mainframes away, do you? ;)
| | 374448 [ninja slapha] I suppose I expected people to be developing modern Linux apps that just
| | 374452 [cmdjackryan ] Linux is usually not the OS the vendor supports. Keep in mind, a day
| | 374462 [ninja slapha] In other words, you need someone who will support it, and maybe someone who=
| | 374470 [cmdjackryan ] Both, and the Linux variant you use has to be certified by the
| | 374472 [ninja slapha] Must be some specific legacy systems, because IBM does seem to be supporting,
| | 374475 [cmdjackryan ] Oh, they do. But it's this specific Linux, and you get locked into it.
| | 374488 [ninja slapha] When I hear "mainframe", I think of a combination of hardware and software
| | 374490 [cmdjackryan ] Since it is, technically, a standardized language, with defined
| | 374521 [ninja slapha] Sounds like we don't actually disagree.
| | + 374526 [b.candler po] * Operational. You have a whole workforce trained up to use
| | | 374584 [ninja slapha] This is what I was talking about, mostly. I'm not even talking about stuff
| | | 374629 [b.candler po] But rewriting COBOL in Perl may be a bad idea :-) Even rewriting it in
| | + 374615 [cmdjackryan ] Because C-level execs working for any of the S&P 500 don't deal with
| | 374679 [ninja slapha] To do that effectively would require some understanding of these, however. In
| | 374709 [cmdjackryan ] Ideally, yes. However, I contend that on the C-level with the size of
| | 374755 [ninja slapha] - Be actual generals with actual experience as colonels, majors, captains,
| | 374757 [cmdjackryan ] ins,
| + 374476 [shortcutter ] TF-16
| 374513 [shortcutter ] After reading http://tools.ietf.org/html/rfc2781#section-2.2 I am not
+ 374478 [wlinlin8899 ] I know,I really LIKE THE GERMANY life,anyone is the same?
^ ruby 1.9 open3 documentation/ translation http://www.a-k-r.org/pub/tokyo-rubykaigi-03-akr-2010.pdf
374235 [dsisnero gma] Can anyone help translate this file. It seems to be the best /only
^ Math object in Ruby
374236 [dragriesti c] puts(MATH::PI)
+ 374237 [sduncan weta] Capitalisation issue?
| 374238 [dragriesti c] Doh! Thanks. Can't believe I did that.
+ 374240 [josh.cheek g] You could do something like this.
^ install mechanize
374246 [martin.kaspa] new to Ruby and new to this list.
374247 [hassan.schro] Install rubygems if you haven't already; `sudo gem install mechanize`
374296 [martin.kaspa] thx for answering! GREAT To hear from you!
374298 [hassan.schro] That's the problem, and the solution :-)
374311 [martin.kaspa] i will visit nokogiri and have a closer look - greetings
^ New bies question - design of test scripts
374252 [joshbay84 gm] I am working on modifying existing watir scripts, which are written in
^ Celerity with Watir
374261 [tcblues gmai] I'm trying to use celerity in my Ruby scripts.
374262 [richard.conr] You need to call your Ruby script with JRuby.
^ Configuring LAMP for Ruby created web pages (not Rails). 2010
374270 [e148759 bsno] I've used Rails on my own LAMPs with Phusion Passenger. Phusion really
374272 [b.candler po] Phusion Passenger is basically mod_rack. You can sit on top of it any
374939 [headius head] JRuby's default settings are to allow the memory size to grow up to
^ break from a block
374271 [eva54321 sin] charset=GBK
+ 374276 [josh.cheek g] 2010/11/24 Eva <email@example.com>
+ 374277 [b.candler po] Yes that's right - minus all the 's :-)
^ break from a block [send again]
374273 [eva54321 sin] Zmlyc3RseSBzb3JyeSBmb3IgbXkgYmFkIHdlYm1haWwgdXNlcmFnZW50LCBzbyBJIGhhdmUgdG8g
374275 [tokenshift g] ain.
^ How to write thread safe ruby code?
374279 [raghugada gm] I am using RUBY VERSION: 1.8.6,Rails 2.3.2 and Backgroundrb. I am
374283 [rogerpack200] might help (especially "controlling concurrency")
^ inheriting a ruby class from different file location
374286 [davidreynon ] class ClassOne < ClassOneA
+ 374288 [cmdjackryan ] Yes.
+ 374290 [shortcutter ] You would require the file ClassOneA is defined in - it need not
+ 374291 [davidreynon ] Thanks for the help! This procedure worked!
^ Ruby's "More than one way to do things."
374299 [jason.lillyw] do it."
+ 374300 [matz ruby-la] "There is more than one way to do it" is the slogan we borrowed from
| + 374301 [niklas bruec] from a diversity of fields of expertise, let alone different worlds of
| + 374304 [scott aitrus] I couldn't agree more. There is no island of simplicity. Ruby is a pragmatic=
| + 374377 [droleary.use] As someone who still has much more Perl under their belt than Ruby, mark
+ 374302 [stu rubyprog] There are more than one way to do things because different programmers
+ 374306 [sduncan weta] If I want to walk to my friend's house, why should I have to go in the
+ 374309 [jason.lillyw] Thanks everyone for commenting. I really enjoy using Ruby compared to
| + 374410 [diego.viraso] On Nov 24, 11:35=A0pm, Jason Lillywhite <jason.lillywh...@gmail.com>
| + 374511 [martindemell] This is an interesting blog post and discussion on the topic
+ 374327 [rubfor recit] Ruby is very laid back. Although able to talk passionately at great
+ 374359 [rick.denatal] I think that that word 'obvious' is rather subjective. I've found
+ 374409 [shadowfirebi] Programming languages -- at least, good programming languages -- shouldn't try to make programmers into better programmers, or force them to work in a certain way in order to get results. (Imagine a toolbox that told you off for using the wrong screwdriver!)
| 374504 [timr probo.c] I believe that's almost 100% wrong. A programming language that doesn't
| + 374510 [hramrach cen] you
| + 374524 [shortcutter ] s,
| | 374564 [kannan.deepa] ging
| | 374583 [hramrach cen] The point is that there is no one right way, the right way depends on context.
| | + 374616 [shortcutter ] Ouch.
| | + 374631 [eleanor game] context.
| + 374633 [eleanor game] to
| 374643 [rubfor recit] I don't think that is logically correct. As long as you can use some
+ 374806 [jason.lillyw] Thank you everyone for taking the time to reply to my question. This has
^ Problem getting gems in linux
374303 [leon.san.ema] ground with it. I'm making a simple application and discovered I needed
+ 374305 [leon.san.ema] Whoops, sorry guys. It seems I didn't quite grasp the concept correctly.
| 374323 [ryand-ruby z] correctly.=20
| 374325 [leon.san.ema] Ahh ok. I knew Gems helped with the install, I just wasn't sure if it
+ 376330 [user compgro] Make your own life easier take the <a href="http://bestfinance-blog.com/topics/mortgage-loans">mortgage loans</a> and everything you need.
^ Dynamically creating webpages via Ruby
374307 [henleyphil y] I'm just getting started with Ruby and have very little programming
374314 [josh.cheek g] problems. This should be in a loop, as you said, and a loop will iterate
374328 [henleyphil y] Thanks for the response. The reason I want to approach it this way is
374461 [henleyphil y] I probably should have just started with an example. After typing out a
^ date of 1 year ago
374315 [zuerrong gma] How does ruby get the date of 1 year ago?
+ 374316 [stu rubyprog] nice. never knew you could do that with the shell command date.
| + 374317 [zuerrong gma] does every year have the exact days of 365? no, IMO.
| | 374318 [stu rubyprog] sorry try this one
| | 374322 [zuerrong gma] Well, how do you know every year has exactly 365 days?
| | 374330 [stu rubyprog] I was just trying to get you to closer to the syntax of your gnu date
| | 374351 [Ron.Foster w] Besides overriding the plus and minus operators to deal with days, the
| + 374319 [sakuro 2238c] Remember it is one of GNU date's extension and is not portable.
| 374321 [stu rubyprog] Thank you for the heads up. I'm on FreeBSD which should be the same
+ 374326 [usenet istik] d = Date.today
+ 374392 [reid.thompso] google ruby + chronic
^ Re: Catching Errno::ETIMEDOUT
374339 [raju.10.thot] I am new to Ruby and using selenium automation framework but ended with
^ instance_eval vs attr_reader
374342 [nahpr yahoo.] I would like to know what is faster (uses less memory) to retrieve data?
+ 374345 [stefano.croc] The former wouldn't work, because it would call instance_eval passing the
+ 374346 [shortcutter ] I guess "my_class" is meant to be an instance and not necessarily a
+ 374348 [cmdjackryan ] speed and memory requirements are not related to each other. It's
+ 374404 [nahpr yahoo.] Thanks for everyone who replied. I MADE A MISTAKE IN MY ORIGINAL
+ 374405 [shortcutter ] Most Ruby programs use that approach.
+ 374407 [cmdjackryan ] 124 * 8 bytes << 2 GB of address space total (on a 32 bit system). ;)
^ Selenium API framework errors, need help
374344 [raju.10.thot] I am new to Ruby and using selenium automation framework but ended with
374381 [anton.shchan] require 'selenium-webdriver'
^ VERSION constant issue
374353 [transfire gm] Ruby's VERSION constant is getting in the way of using #const_missing
+ 374355 [shortcutter ] Is this really an issue with ::VERSION? To me this rather looks like
| 375389 [transfire gm] Yes, it would be.
+ 374368 [ara.t.howard] hrm...
+ 374371 [josh.cheek g] Here are my results.
| 375388 [transfire gm] Hmmm... I haven't been able to quite get the rhyme or reason of the
+ 375395 [drbrain segm] What would ::const_data provide that Module#constants, Module#const_get =
375404 [transfire gm] nd Module#const_set and direct constant access don't provide? =A0If it's so=
^ incompatible libruby-static.a using mkmf in bitnami stack
374358 [ben.pellegri] Im trying to install ruby-oci8 on Red hat and having difficulty getting
^ ANN main-4.4.0
374367 [ara.t.howard] NAME
^ last-input entered on command line
374375 [ian.asaff gm] I'm writing a console application to teach myself Ruby. The app displays a
^ Idenyifying hidden elements
374378 [samarul.cs g] I'm new bie to Ruby and watir . I wanna perform a button click
^ Add XSL stylesheet using Nokogiri
374379 [sin3141592 g] I am generating a XML file using Nokogiri. I would like to add a XSL
+ 374380 [niklas bruec] -an-xml-document-with-nokogiri
| 374542 [mike.dalessi] OMG, there is so much fail here, I don't know where to start.
| 374546 [niklas bruec] Great. Thank you. I didn't know that.
| 374551 [mike.dalessi] (see
+ 374382 [sin3141592 g] Thank your very much. For some reason I wasn't able to find any material
^ Should I do functional programming in Ruby?
374384 [raincolee gm] I'm a high school student and beginner of ruby.
374387 [stu rubyprog] Only you can answer that question.
^ How to package model classes for use in Rails and elsewhere
374390 [thebusyant g] I have what is probably a relatively simple question.
^ [ANN] rake-compiler 0.7.5 Released
374391 [luislavena g] rake-compiler version 0.7.5 has been released!
^ "<" method for array
374395 [eva54321 sin] SGksDQoNCkkgaGF0ZSB0aGVyZSBpcyBub3QgYSAiPCIgbWV0aG9kIGZvciBhcnJheSBvYmplY3Qu
+ 374397 [ymendel pobo] runcating then filling up the array?
+ 374398 [botpena gmai] what do you mean? (apology for my english is poor)
+ 374455 [b.candler po] => true
^ ruby and rails
374396 [eva54321 sin] RXZlcnl0aW1lIEkgdGFsayBhYm91dCBydWJ5LCBwZW9wbGUgd2lsbCBtZW50aW9uIHJhaWxzIGFs
+ 374399 [stu rubyprog] I believe it's Turing complete so it's safe to say it can be used for
+ 374400 [rubfor recit] I came across Ruby in the context of WATIR - a framework for testing web
^ Keypress event in ruby
374401 [moog_master ] based, no gui). My ruby knowledge isnt great but i would love to get
+ 374402 [stu rubyprog] look into a library called ncurses
+ 374403 [moog_master ] Uum, that doesn't really answer my question, well it does.. but i would
| + 374426 [sentinel1879] ncurses also allows you to trap keystrokes, function keys, control and
| + 374427 [sentinel1879] I've cut this from a sample that comes with ncurses.
+ 374434 [moog_master ] Ah great, i guess i will stick to ncurses then. Thanks for the help guys