353375-359543
353166-353674 subjects 353615-354262
^ [ANN]Invitation to the 2010 Fukuoka Ruby Forum
353375 [nakashima-k8] Invitation to the 2010 Fukuoka Ruby Forum
^ watir:How to click on play player obj embeded in browser.
353376 [ysuman gmail] How to click on play icon in a media player object embeded in web
353387 [jeanjulien.f] Try to use firebug within firefox to see what characteristic of your
353447 [ysuman gmail] I have take the screen shot of the media player object details using the
353451 [jeanjulien.f] I would look at the <PARAM> fields to see if there is something
353591 [ysuman gmail] I am sending you the one of the <PARAM> fields screen shot for your
353596 [jeanjulien.f] If watir_object is the watir object you are using, something like
^ integers and floats
353396 [devguy.ca gm] Can someone explain to me why Ruby treats integers and floating point
+ 353397 [botpena gmai] ri Object#equal?
+ 353398 [paul pollyan] Because they're different :)
| 353403 [devguy.ca gm] thanks, I understand the object_id
| 353406 [paul pollyan] I'm not sure how you would make floating point numbers immediate.
| + 353415 [devguy.ca gm] I don't know how Ruby makes integers immediate or why this is not
| | 353418 [paul pollyan] is
| | + 353421 [flo andersgr] Pretty easy: false and true.
| | | + 353424 [shortcutter ] irb(main):005:0> 10.times {|i| printf "%4d %p\n", i,
| | | | + 353435 [devguy.ca gm] Robert thanks for the code snippet, that is so cool =) ... more stuff to
| | | | + 353445 [flo andersgr] I didn't use oracle turing machine, I only used irb to validate my =
| | | | 353498 [shortcutter ] isting knowledge.
| | | + 353427 [paul pollyan] Hah, of course. Obvious in retrospect, but I was so surprised to see
| | + 353434 [devguy.ca gm] Thanks Paul for the explanation, it's immediately obvious (now) how
| + 353422 [shortcutter ] es
+ 353401 [stefano.croc] equal? returns true if two objects are the same, that is if they have the same
^ newbie: if is not null else...
353402 [alfonso.capo] how can I replace this PHP syntax with Ruby?
+ 353404 [rick.denatal] The approximate Ruby idiom would be
| 353407 [alfonso.capo] x = '-' if x.nil?
| + 353450 ["William Jam] What is Null?
| + 353488 [phrogz mac.c] Null is not a special value in Ruby. I am guessing that perhaps you
| + 353502 [josh.cheek g] x should not be Null at this point. First, Null doesn't exist, in Ruby it is
+ 353408 [stefano.croc] $x ||= '-'
| 353489 [jballanc gma] $x || $x =3D '-'
| + 353500 [stefano.croc] I may be missing something, but according to page 96 of "The Ruby Programming
| | 353501 [shortcutter ] For a simple assignment the difference is negligible but it matters if you do
| + 353713 [b.candler po] If you're using Rails (or more specifically the ActiveSupport library),
+ 353409 [cidza tin.it] ciao
| + 353412 [cidza tin.it] my post was unaware of the preceding replies
| + 353490 [jballanc gma] Not exactly...
+ 353475 [usenet-nospa] It's a bit tricky.
353491 [jballanc gma] strings
^ OpenCL and Ruby
353411 [k5mmx yahoo.] someone tryed to use OpenCL with ruby for speeding up something ( what ?
^ Suggestions for a distributed job queue
353453 [tony medioh.] I'm looking at replacing our homebrew job queue with something better, and
+ 353454 [james grayso] should be checking out?
| + 353455 [jameskilton ] I'll +1 resque. It's a pretty fantastic system.
| + 353461 [tony medioh.] Resque looks very interesting. Thanks for the heads up.
+ 353457 [walton vyper] I don't know off the top of my head if it does _all_ of that, but
| 353462 [tony medioh.] I've looked at RubyQueue in the past and it is rather interesting, however
| + 353493 [ninja slapha] Not that I doubt it, but I'm curious what the limitation is. Is it
| | 353524 [tony medioh.] More like security. This is running partially in our datacenter and
| | 353539 [ninja slapha] Worth mentioning: EC2's internal IPs can be pretty much completely firewalled
| | 353569 [tony medioh.] Then what happens when the VPN goes down and the leaky abstraction that is
| | 353571 [pg thimian.c] Same thing as when you have an EC2 outage: You save state, and resume
| | 353573 [tony medioh.] Oof. Well for one, due to the nature of the synchronous filesystem API,
| | 353609 [pg thimian.c] And implementing some sort of keep-alive/heartbeat system is too much
| + 353548 [b.candler po] (1) AMQP, e.g. rabbitmq. I believe it comes with ruby bindings. Can be
+ 353494 [eule space.c] I am using an AMQP compliant queue for this. With its permanent queuing
^ Get up to $500 bonus on Forex Trading!
353456 [rammanithapa] Deposit above $300, get Bonus up to $500
^ Newbie - Moving Contents From Folder to Another
353460 [wood_yee12 h] downloaded (i.e. folder called "Downloads") to another folder ("Songs").
353463 [stefano.croc] See the documentation for FileUtils.mv
+ 353467 [sfw simeonfo] Stefano,
+ 353470 [shevegen lin] Here the rdoc docu
353471 [shevegen lin] You can omit the self. part in
^ [ANN] Rainbows! 0.90.0 - Thread* fixes and RevFiberSpawn
353464 [normalperson] Rainbows! is an HTTP server for sleepy Rack applications. It is based on
^ Displaying the html from a ruby .cgi script
353465 [shevegen lin] I have a script, foobar.cgi
+ 353468 [ryand-ruby z] % ruby foobar.cgi < /dev/null
| 356143 [shevegen lin] Thanks for the help, works nicely!
+ 353476 [albertschlef] require 'open-uri'
+ 353547 [b.candler po] (1) curl http://localhost/foobar.cgi
^ [ANN] Zbatery - for newer Rainbows!
353466 [normalperson] Zbatery is an HTTP server for Rack applications on systems that either
^ SoLVED Re: rest-client headers or cookies
353473 [ed.howland g] resp =3D RestClient.post(server_url' + '/resource', :args =3D> "")
^ How to pass commandline arguments to a file loaded with "irb -r file" ?
353474 [ibc aliax.ne] ine=20
353505 [shortcutter ] dline
353507 [ibc aliax.ne] It makes lot of sense. Thanks a lot.
^ Trig value errors
353477 [jzakiya mail] The following examples below show what I consider
+ 353478 [pg thimian.c] Floats won't be properly accurate in a mathematical sense, anyway, since
| 353481 [jzakiya mail] The reason I made the distinction between 'mathematical' versus
| + 353485 [wishdev gmai] Good Evening,
| + 353486 [phrogz mac.c] We know that cos( =CF=80/2 ) =3D 0, yes. But Math::PI =E2=89=A0 =CF=80. Mat=
+ 353487 [phrogz mac.c] irb(main):001:0> RUBY_VERSION
353492 [phrogz mac.c] As an interesting and related aside, I wanted to find out what the
+ 353495 [jzakiya mail] /www.wolframalpha.com/input/?i=3Dcos%28+2*pi+%2F+360+%2F+1e3+%29
| + 353497 [jeanjulien.f] Well, what you are looking for is Maple, Mathematica or Octave, some
| + 353506 [shortcutter ] //www.wolframalpha.com/input/?i=3Dcos%28+2*pi+%2F+360+%2F+1e3+%29
| | 353520 [colinb2r goo] Are you *sure* about that? I think there are differing views
| | + 353522 [fxn hashref.] Please could we stop this thread?
| | + 353526 [pg thimian.c] Well, if me and my professors had a choice, we wouldn't bother with
| | | 353529 [xenogenesis ] Now that we're thoroughly off topic :)
| | | 353552 [pg thimian.c] My pleasure. ;)
| | | 353599 [colinb2r goo] As a general comment: "MINASWAN", or to be precise "MINASWA mostly N"
| | | 353601 [paul pollyan] ml
| | + 353528 [jzakiya mail] Dear Matz,
| | + 353530 [xenogenesis ] Perhaps you should look under the hood to see what its doing.
| | + 353534 [xenogenesis ] static VALUE
| | | 353560 [jzakiya mail] Try this (with correct syntax if wrong).
| | | + 353562 [jzakiya mail] if (abs(cos_value) < 1e-10) cos_value =3D 0.0;
| | | + 353563 [usenet-nospa] That'd be exceptionally stupid.
| | | | 353565 [jzakiya mail] ect
| | | | 353567 [usenet-nospa] Are you really this stupid?
| | | | 353570 [xenogenesis ] orrect
| | | | 353575 [usenet-nospa] Yeah, but he seems to want to know why we aren't all rushing to fix a
| | | + 353693 [b.candler po] The answers given by sin() and cos() are already the most accurate which
| | | + 353695 [usenet-nospa] Because our hero is obsessed with the unrounded results of
| | | + 353699 [rick.denatal] Strictly speaking they can be represented much more precisely.
| | | 353706 [shortcutter ] Are you sure you meant "precisely" and not "accurately"? Given the
| | | 353729 [rick.denatal] No I meant what I said, although I might have picked a better source to quo=
| | | 353760 [b.candler po] If the objective is for sin() to be equally inaccurate/imprecise around
| | | 353778 [jzakiya mail] Here's the nature of the problem.
| | | 353781 [wishdev gmai] This also means that 0 = 1 - cos^2 - sin^2
| | | 353783 [jzakiya mail] at
| | | + 353784 [usenet-nospa] This adequately summarizes the difficulty people have had getting you to
| | | | 353789 [jzakiya mail] bs.nethttp://www.seebs.net/log/<-- lawsuits, religion, and funny picturesht=
| | | | + 353790 [walton vyper] Thus, your method is inaccurate for the angle value of 67.
| | | | | + 353791 [pg thimian.c] On the plus side: My killfile-email rules work now. :)
| | | | | + 353793 [jzakiya gmai] to
| | | | | + 353795 [wishdev gmai] You just will never ever get it will you?
| | | | | + 353796 [walton vyper] Really? huh....
| | | | | + 353798 [xenogenesis ] u to
| | | | | 353802 [ryand-ruby z] DING DING DING DING DING DING DING WE HAVE A WINNER!
| | | | | 353803 [pg thimian.c] An, admittedly not indepth, search for jza-somethingorother's email
| | | | | 353808 [devguy.ca gm] LoL I freaking missed the entire pissing contest!
| | | | + 353794 [wishdev gmai] This is getting funnier by the moment. Gotta love someone that just doesn't
| | | | + 353797 [usenet-nospa] I certainly do.
| | | + 353799 [marnen marne] Yup. And you're not on the gods' side here. :)
| | + 353535 [usenet-nospa] Because it's not using IEEE 754 floats.
| | + 353536 [wishdev gmai] Respectifully........
| | + 353551 [pg thimian.c] Bluntly speaking, your happiness is your probem, and not relevant to me,
| + 353508 [pg thimian.c] How many real world (as in, reality, out in the wild, where money and
| | 353509 [paul pollyan] No, it didn't.
| + 353541 [phrogz mac.c] No, it didn't produce a value of 1. Look at the second part of my
| 353544 [eregontp gma] If you want more precision, you could use BigDecimal (and BigMath).
+ 353519 [colinb2r goo] But Ruby PI is not (exactly) the mathematical pi,
^ awk print $4 in ruby
353482 [derekbellner] I had played in Ruby a while and could not get this to work.
+ 353483 [sentinel.200] Is this what you want ?
| 353510 [derekbellner] yes and no. I prefer it in script form no CLI form.
| + 353511 [derekbellner] $; = 'Avail'
| | 353525 [derekbellner] I got it using, but ideally would not like to use a file on the FS.
| | + 353527 [jgabrielygal] You don't need a file, cause df will return a string with each line
| | + 353531 [mark thomasz] How about this?
| | 353532 [mike stok.ca] Have I missed the response mentioning the -n and -a flags to ruby?
| + 353512 [botpena gmai] try this eg,
+ 353484 [w_a_x_man ya] You chose a name that implies the variable is a string.
+ 353554 [albertschlef] You want to split the output of 'df' into lines.
+ 353566 [kbloom gmail] dfstr = %x(df -m)
^ Gems LoadError in Linux
353518 [augustoeae g] I'm new to Ruby and I wanna run a test a simple Gem in the latest
+ 353523 [aaron tender] ruby -v
+ 353537 [rogerpack200] Did you install rubygems into the same ruby that you are using to run
353577 [augustoeae g] 1. $ sudo apt-get install ruby1.9.1-full
353603 [augustoeae g] Got it working. I was using Ubuntu and I had version 1.8 installed
^ [ANN] whichr (windows friendly which written in ruby) 0.3.5
353533 [rogerpack200] I am pleased to announce release 0.3.5 of the "whichr" gem.
353582 [shawn.skrive] I am running Windows XP Pro SP3+, Ruby 1.8.6.
353627 [rogerpack200] yeah this is some odd error with rubygems.
353714 [shawn.skrive] *** REMOTE GEMS ***
353723 [rogerpack200] gotcha.
^ logging, rolling file, permission denied
353545 [gjeudy gmail] I'm trying out the excellent logging 1.3.0 gem inside my rails
+ 353546 [aldric trevo] Are you trying to log .. Concurrently with the Rails log, or are you
| 353568 [gjeudy gmail] I am trying to replace Rails logger with the one from logging gem. There
| 353607 [aldric trevo] Did you write rolling_file.rb ? If not, which part of YOUR code is
| 353701 [gjeudy gmail] rolling_file.rb is part of logging gem, therefore I did not write it. It
+ 359543 [tim.pease gm] Someone pointed out this thread to me just yesterday. Sorry that I =
^ Date.gregorian_leap? code
353550 [colinb2r goo] from date.rb
353579 [phrogz mac.c] 400 =3D=3D 0 end
353597 [colinb2r goo] y % 4 =3D=3D 0 && y % 100 !=3D 0 || y % 400 =3D=3D 0
353613 [rick.denatal] && and || are both short-circuiting, so
^ Puts return
353553 [dudu.rocha.f] (I'm from Brasil)
+ 353556 [dudu.rocha.f] up?
| 353564 [marnen marne] Be patient.
+ 353561 [Gennady.Byst] First of all, method to_s() should *return* a string, not print it. So, rem=
353800 [dudu.rocha.f] Thanks for the help =D
354025 [seyyedsajjad] class x
354076 [dudu.rocha.f] Thanks to u all =D
^ newbie: argh! array of array
353555 [alfonso.capo] I'm fighting with a function like this! :)
+ 353557 [lists bertra] You maybe mean a situation in that the length of the argument list
+ 353604 [shortcutter ] I am having difficulties to figure what you want. Do you want to print
+ 353610 [alfonso.capo] Check it out! :)
^ log4r unpack problems
353558 [yoram carbon] I was just starting to use log4r and everything was going peachy until I
353611 [tim.pease gm] specification
^ How to test an iterator method
353559 [ehames gmail] I have a class that looks like this
353605 [shortcutter ] Depends on what you want to check. If for example you want to make sure
^ Re: Alternate Regular Expressions?
353572 [albertschlef] There's a RegExp library for Common Lisp that, besides a string, accepts
^ why this works not right
353574 [eva54321 sin] def mytest
+ 353576 [steve stevek] 1..10 is a range, while [1..10] is an array with one element, a range from
| 353580 [eva54321 sin] Thanks for the reply. I'm newbie to Ruby,so have another question, I
| 353587 [justincollin] The do...end is actually creating a block, which is passed into your
| 353588 [eva54321 sin] Thanks all!
+ 353651 [marnen marne] 1..10 is a Range. [1..10] is an Array with one element (that happens to
^ FFI Memory Leak
353581 [james grayso] I've found a memory leak in some FFI code. I'll give example code =
353585 [jmettraux op] w, but I can explain the issue easily enough first.
353614 [james grayso] below, but I can explain the issue easily enough first.
353628 [jmettraux op] Great news, I will then release a fresh rufus-tokyo with the fix (I'll
353630 [james grayso] Yeah, there doesn't seem to be any advantage to using tcfree() that I =
^ Storing methods in arrays or hashes
353590 [phil.auriemm] Hey all,
+ 353592 [eva54321 sin] This calls a dispatch.
+ 353593 [billk cts.co] # here's an example, similar to the above, but
+ 353606 [shortcutter ] Just out of curiosity: where is the array in your Lua case? In Ruby you
353616 [phil.auriemm] 2") end
^ My Creation
353595 [diya.sinha00] website designing few days ago so i having many query's regarding
353636 [arun.einstei] This is not the place to ask queries regarding web design. Find suitable
353637 [pg thimian.c] It's spam, not a request for webdesign advice.
^ DBI: number of rows updated?
353608 [aldric trevo] Is there a way with the DBI gem to figure out how many rows were
+ 353612 [yermej gmail] With Ruby 1.8.4 and DBI 0.1.0 this line works as expected for me. Have
| 353829 [aldric trevo] It all looks fine, and works fine when separated from the rest of the
+ 353641 [b.candler po] Have you checked the return value from this lin?
threads.html
top