212790-217779

212555-217197 subjects 213033-214478

Watir questions welcome here?
212790 [haggard@tW r] Since Watir is built on Ruby and it appears that Watir is sadly lacking in
212794 [acangiano@gm] Regards,
212799 [haggard@tW r] Wow. That was fast. Thanks for the tip.
212818 [reed.adam@gm] I concur, I get about a million e-mails a day from this list (and

Compiling Ruby-1.8.5 on AIX-5.3
212804 [unixadminm@g] I tried compiling ruby-1.8.5 on AIX5.3 and everytime it fails saying
213040 [kinpoco@gm i] It seems that you have not yet installed bos.adt.libm.
213459 [unixadminm@g] Thanks,  I was able to compile it. If anybody needs teh binaries you

Modifying the first value with #inject
212807 [gavin@re in ] Is there an idiom for doing something to the first value as part of an
+ 212820 [rick.denatal] use
+ 212833 [shortcutter@] Personally I would definitively not include those .to_f's because those

Rails and HTTP Authentication
212808 [hsomob1999@y] htaccess. Requests for /item/list, /item/add etc would prompt the user
+ 212811 [drbrain@se m] You want to ask this question on the Rails mailing list, this list is
+ 212853 [hsomob1999@y] ...

[ANN] Phoenix Ruby Users Group September Meeting
212809 [james.britt@] The Phoenix Ruby Users Group will hold its September meeting on Monday,

Cross-platform standalone Ruby apps ?
212815 [pieter@ku be] I am new here, experience with PHP and looking for a similar language
+ 212822 [jcribbs@ne p] Sure.  I am assuming you are talking about *gui* database apps.  If so,
| + 212825 [znmeb@ce ma ] My personal preference is QTRuby. The widgets are "prettier" and there
| + 213547 [david@va ln ] I'd advise to use distribution-specific packaging for Linuxen. I get
|   213597 [znmeb@ce ma ] Which means you need at least a .deb and .rpm binary package, Debian
|   213643 [david@va ln ] Gems aren't a bad choice either - the problem is that there Are Some
+ 213648 [transfire@gm] ...
  213650 [znmeb@ce ma ] 1. Rails also works with MySQL and SQLite, which in turn work on
  213823 [pieter@ku be] If I read all the comments, I doubt whether Ruby will be the right
  213905 [rick.denatal] I'm curious as to what you saw in the responses which made you think
  + 213906 [rick.denatal] I wasn't conciously trying to imitate King Arthur in Monty Python's Holy Grail.
  + 213921 [pieter@ku be] I got the impression that GUI development was rather weak, and that the
    213939 [joevandyk@gm] Err, you don't need a "web connection" to use a Ruby on Rails
    213983 [shevegen@li ] If you go for a GUI, I'd give it to RubyGtk/Gnome. The bindings are very

[Ruby/Tk example] Calendar [incr Widget]
212816 [m_goldberg@a] Makes a nice little calendar window. It opnens showing November,

[Ruby/Tk example] Feedback [incr Widget]
212819 [m_goldberg@a] Puts up a window containing a progress bar and a button. Clicking on

Fwd: Ruby quiz n.93
212827 [james@gr yp ] ...

representing a span of time
212829 [rtilley@vt e] x = 64299600.0
+ 212835 [ara.t.howard] class Time
| + 212843 [Daniel.Berge] irb(main):002:0> Time.at(1157489583.2798 - 64299600.0)
| | 212846 [rtilley@vt e] They are dates in time from Time.mktime(1972, 1, 15, 0, 0, 0) and
| | 212849 [ara.t.howard] require 'rubygems'
| | 212863 [rtilley@vt e] Posted via http://www.ruby-forum.com/.
| | 212872 [ara.t.howard] basically because it's using 28 days months since it's impossible to tell when
| + 212891 [kbloom@gm il] [SNIP-CODE]
+ 212924 [dan-ml@da 42] This may not be exactly what you had in mind, but it's better than the other

Stubbing Time.now with Mocha
212834 [ news@ja .f ] Mocha seems a great way to stub Time.now for testing expiration dates, etc.
212854 [pete@no ah t] Jay,
212858 [pete@no ah t] Oops...not paying attention to which list I was reading, so my answer
212903 [jamesmead44@] ...

Lost Gem Scripts
212836 [dkmd_nielsen] A variety of inhouse gem scripts have been lost.  The gems are
212837 [ben@bl yt in] If you go to where the gems are installed (for me, it's

[ANN] timeunits-0.0.0
212840 [ara.t.howard] NAME
212844 [devlists-rub] FWIW,
212847 [ara.t.howard] they do this?
212862 [logancapaldo] I'm not exactly sure what delta.days means in this case, but rails
+ 212867 [ara.t.howard] it's the difference (delta) in days.
| 212927 [rimantas@gm ] 'days' and similar methods in Rails are core extensions and return
| 212951 [ara.t.howard] require 'timeunits'
+ 212870 [ara.t.howard] i just realized this might explain it better
  212907 [devlists-rub] Hmm, yeah looks like rails has some issues there, although you can do..

ie.contains_text method
212850 [bhoang@ve an] I am just wondering why the ie.contains_text method works in the IE web

problem with FlexMock::TestCase#flexstub in 0.4.0
212851 [johnwilger@g] Jim,
212856 [johnwilger@g] Bad form replying to myself, I know -- but I think I figured out

Re: [QUIZ SOLUTION] Happy Numbers (#93) -- nondecreasing digits
212861 [kbloom@gm il] Since the order of digits in the number doesn't matter, here's code to

introspection question
212864 [jaydonnell@g] is there a way for an object to tell you where it was created a la
+ 212868 [logancapaldo] Is this close enough?
| 214366 [jaydonnell@g] Thanks :) That's exactly what i was looking for.
+ 212922 [shortcutter@] => nil

Clearest Exposition of A very Important technical subject of interest to us
212865 [thermate@in ] We give you the top links and material on the subject. THIS IS REAL
+ 212866 [porky_pig_jr] from scum of the earth to the 2nd class - that's quite a promotion.
+ 212876 [denniswillia] Duh! Yet another example of someone with too much time on their hands and an
  212889 [jackklein@sp] If you just can't resist responding to cross-posting trolls, at least

How good is RDoc at documenting "raw" C++ code?
212869 [znmeb@ce ma ] Just out of curiosity, if I have some fairly well constructed C++ code,
+ 212898 [yvonthoraval] ...
| 212913 [drbrain@se m] something like
| 212919 [yvonthoraval] ...
+ 212979 [skurapat@uc ] iD8DBQFE/vlZmV9O7RYnKMcRAug2AJ4szOAeYl8de1KPhZGs35Gdb+PJvwCdEXzE
  212987 [yvonthoraval] ...
  212992 [skurapat@uc ] Correct, they are not speaking of documenting Ruby. Instead, they
  213065 [znmeb@ce ma ] Yeah ... I have Doxygen installed. I suspect RDoc will do just fine on

[QUIZ SOLUTION] Happy Numbers (#93)
212874 [Glen.F.Panko] ...
212904 [mike@ru yw z] Here's my quick version of happy? method that uses recursion to count
212923 [SimonKroeger] happy = Hash.new do |h, k|
212947 [james@gr yp ] #!/usr/bin/env ruby -w
212963 [email55555@g] Modified from Simon's solution.

Do not feed the trolls or reply to spam
212877 [hal9000@hy e] It's counterproductive and only wastes more bandwidth.
212911 [james.britt@] Yes.   Thank you.

One line infinite for loop in Ruby?
212880 [anildigital@] ...
212881 [hhausman@gm ] while 1 do puts "OMG" end
+ 212882 [abergeron@gm] puts "OMG" while 1
+ 212883 [bulliver@ba ] charset="iso-8859-1"
  212886 [halostatue@g] nil while true
  + 212890 [bulliver@ba ] charset="iso-8859-1"
  + 212892 [twifkak@co c] while true; end
  | + 212896 [logancapaldo] (a = lambda { a.call }).call
  | + 212900 [anildigital@] ...
  |   212905 [twifkak@co c] raise rescue retry
  |   212906 [mike@ru yw z] Here's an ultimate one, just to make sure :-)
  + 212902 [vjoel@pa h. ] 0while 0

Total newbie, but I think I found a bug in Socket?
212885 [ptoomey3@ma ] Fair warning...I'm extremely new to Ruby so please pardon any
+ 212893 [garbagecat10] Try it with "127.0.0.1" instead of "localhost"
+ 212894 [abergeron@gm] Pretty hard for a first try :)
| 212938 [hramrach@ce ] I would add this is not ruby specific, ssh did this to me on OS X as
+ 212912 [drbrain@se m] require 'socket'
+ 212934 [martin@sn wp] Good analysis of where the problem is.
  212944 [martin@sn wp] Actually, I made a slight error here, according to the documentaion of
  213029 [ptoomey3@ma ] This script ran perfectly.  Thanks for all your help.  When I get

IRB problem in Eclispe
212899 [oshybrid@gm ] Just wonderin if anyone else ran into this problem.
+ 212917 [headius@he d] I assume you're using the Ruby Development Tools for this. It could be
+ 217779 [voipfc@go gl] How can I get IRB to work in Eclipse? I have RDT installed but can't

Where to find the ruby library
212908 [dou_yifan@ya] There are some library scripts accompanies with the ruby installation,
+ 212909 [vjoel@pa h. ] You'll want to install rubygems[1], if you don't have it already. Then,
| 212918 [dou_yifan@ya] Thanks all!
+ 212910 [twifkak@co c] 1. C:\> gem

RDoc XML: How to include methods data?
212915 [checkforreal] I used RDoc to generate XML output for a set of ruby classes, but I can't

[ANN] ActiveRecord-JDBC 0.2
212921 [ola.bini@ki ] The JRuby-extras project is proud to announce the release of version 0.2

Ruby by the pier...
212928 [james2mccart] Matz and David Heinemeier Hansson both talk about making programming a
213050 [james2mccart] Whoops, a little outage on the site. It it back up.

Gem question; error on list -r
212932 [rubyforum@co] ~$ gem list --r
212936 [ola.bini@ki ] Actually, this is a global state, due to my recent release. In some way,

[Ruby/Tk example] Feedback [incr Widget] -- take 2
212939 [m_goldberg@a] This is my second take on the progress indicator example. Perhaps

5 Ruby on Rails Developers - Contract to Hire or Contract - Washington, DC
212940 [jobboardresu] Send resumes to: myitrecruiter@yahoo.com

How to take output of eval into a string?
212941 [anildigital@] ...
212949 [m_goldberg@a] Your code is equivalent to ...
+ 212970 [m_goldberg@a] P.S. Perhaps I should add an example of my own.
+ 212996 [gareth.adams] I would guess that the intention is to capture STDOUT and get b == 'I like Ruby'
  213002 [james@gr yp ] => true
  + 213006 [jan.svitok@g] It helped me at least. I was playing with ERuby (the C version), I
  + 213263 [logancapaldo] As an alternative (not exactly an equivalent one:)

5 Ruby on Rails Developers - Contract to Hire or Contract - Washington, DC
212942 [jobboardresu] Send resumes to: myitrecruiter@yahoo.com

Newbie help, please: cannot execute Tk under Windows XP
212943 [amheiserbush] ## BEGIN FILE ##
212945 [beforewin@gm] The tcltklib.so is not included in the latest oneclick installer.
212948 [amheiserbush] Perhaps you didn't see that I compiled my own Ruby (not using one-click
+ 212954 [wccrawford@g] says
+ 212966 [ml.chibbs@gm] No, the Tk libs are not bundled with Ruby, only the interface to Tk.You must still install he actual Tk libs (such as those fromActiveState).
+ 213107 [amheiserbush] So I guess nobody can help me??  I still can't get Tk to run under
  213122 [wccrawford@g] It may just be the gateway acting up again, but you seem to be ignoring
  213135 [amheiserbush] I'm not sure what you mean.  Only you and one other person are showing
  213140 [jan.svitok@g] On http://www.ruby-forum.com/topic/80285 appears the whole thread. The
  213155 [amheiserbush] OK, thanks - I never saw that message.  I think I'll just migrate to
  213186 [halostatue@g] Or better yet, join the source: ruby-talk (the information is on the

constructing a string from hex value
212946 [srdjan.marin] How do I construct a string out of hex values?
+ 212950 [flori@ni e. ] [ 0x2a, 0x7e, 0x0a, 0x7e ].pack 'C*'
| + 212952 [Daniel.Berge] [0x2a, 0x7e, 0x0a, 0x7e].pack("C*") => "*~\n~"
| + 212964 [srdjan.marin] thanks a lot for you help
+ 212953 [rmagick@gm i] irb(main):001:0> p = "\x2a\x7e\x0a\x7e"
+ 212956 [martin@sn wp] irb(main):001:0> a = [ 0x2a, 0x7e, 0x0a, 0x7e ]
+ 212967 [ara.t.howard] the append operator of String does what you want with Fixnums.  as others have

Strange documentation
212957 [gareth.adams] Has anyone noticed the huge amounts of redundancy at (for example)
212969 [wccrawford@g] It looks like they are in alpha order, but some are also grouped.  So

Ruby Newbie - array/hash help
212958 [wcarpin@au o] Given the following code...
+ 212961 [Daniel.Berge] data_sources.keys.each{ |table_name|
| + 212965 [james@gr yp ] data_sources.each_key { |table_name|
| + 212968 [rimantas@gm ] data_sources.each_key { |table_name|
+ 212971 [wccrawford@g] data_sources.each_key do |table_name|
  212978 [ara.t.howard] puts data_sources.keys
  212998 [wccrawford@g] Heh yeah, but he wanted '...some code...'...  I just put something in

[QUIZ SOLUTION] Happy Numbers (#93) - happy bases
212962 [martin@sn wp] Here's my solution to find happy bases - note that I don't find any
213000 [martin@sn wp] And here's a faster version, and I also corrected the "Error" to
213090 [michael.ulm@] ...

SOAP4R and Perl::SOAP::Lite interoperability
212974 [ rsm@ho e. e] I have set up a SOAP server in Ruby. Implementing a client in Ruby is no

[QUIZ] Happy Numbers #93 How happy can you get? (was Re: [QUIZ SOLUTION] Happy Numbers (#93) -- nondecreasing digits)
212977 [rick.denatal] I've been playing with this since I first saw it last week.  I've got

Basic authentication with WEBrick?
212980 [vasudevram@g] We are using WEBrick on port 80 for development of a Rails app. [We may
+ 213083 [manfred@gm i] Sure, you can just send http basic or digest authentication headers
+ 213167 [drbrain@se m] Eric Hodel - drbrain@segment7.net - http://blog.segment7.net
  213717 [vasudevram@g] Thanks, all. Will check the links given.

Mailing list problems? (was: constructing a string from hex value)
212988 [Daniel.Berge] Posted at 8:26am MDT, arrived in my mailbox at 11am MDT.

multi-def docs?
212993 [goofball@va ] I thought Ruby allows you to define similar functions in parallel by
+ 212995 [Daniel.Berge] I'm afraid I don't understand what you mean.  Can you provide us with
+ 213007 [eero.saynatk] some_method(arg1, arg2[, arg3[, arg4]]) => nil
+ 213020 [shortcutter@] I have never heard of such a feature.  This is certainly not in the core
| 213157 [goofball@va ] Sorry.  Must be another language.
+ 213061 [nospam@no it] What follows is only approximately like what you are describing. Maybe it

NArray shuffle
212997 [phurley@gm i] Has anyone ever needed to "shuffle" an NArray? I can certainly convert
+ 213018 [ara.t.howard] require 'narray'
+ 213022 [martin@sn wp] shuffled = orig[NArray.float(*orig.shape).random!.sort_index]
  213034 [phurley@gm i] Thanks Daniel, that is perfect -- I did not know you could index an NA

What Not to Do (a cautionary tale)
213001 [gavin.kistne] script that reads in an XML file and an ERB template, feeds the XML file
213004 [brabuhr@gm i] [ ] Keep a set of tests and make sure they still pass after a system update

Re: [QUIZ SOLUTION] Happy Numbers (#93) - find the happiest
213009 [martin@sn wp] And here's my narray-based solution to find the happiest number under

mmap causing a bus error
213011 [tim.pease@gm] $ cat mmap-abort.rb
213014 [ara.t.howard] require 'mmap'

[ANN] Ruby/Cares 0.1.0
213013 [andre@di ir ] I've just released Ruby/Cares 0.1.0. This is a C extension wrapping the

[QUIZ SOLUTION] Happy Numbers (#93)
213015 [rick.denatal] Here's my solution.

Re: [QUIZ] Happy Numbers #93 How happy can you get?
213019 [martin@sn wp] That conjecture is false.
213023 [rick.denatal] Right you are.  I never really beleived my conjecture, just wanted to
213057 [martin@sn wp] Sorry; I didn't show all my work.

[ANN] WWW::Mechanize 0.6.0 (Rufus)
213021 [aaron_patter] I would like to announce that my Mechpricot pie is done baking and is
+ 213028 [james.britt@] Currently, I use mechanize to grab nodes based on a watch list.  These
| 213031 [aaron_patter] Yes.  You will get back Hpricot nodes in 0.6.0.  I plan on having a pluggable
| 213045 [james.britt@] Ah, thanks.  My code takes these nodes and uses them to instantiate
+ 213191 [schapht@gm i] I'm noticing some issues with the changed behavior of
  213203 [aaron_patter] This may be a bug in hpricot. That functionality should have remained

Jobs around Ruby and Rails
213024 [sobczak_mich] I was wondering how many people have full time jobs which are around Ruby
+ 213035 [lopx@ga et .] for some (longer) time, apparently... ;)
+ 213080 [phlipcpp@ya ] ~30 for the surveyed period (whatever it is). They seem to be riding the
+ 213096 [kaminski_paw] Lot's of ROR work to do in Uk as well.... but i can't find a rising

Binding for CORBA
213025 [jeff@da k- i] I've seen a number of projects over the years that were trying to hook
213058 [headius@he d] You may also just want to look at running JRuby, which would give you
213130 [jeff@da k- i] I absolutely love the work that people have done making jruby work.

Thousands of words on Ruby
213030 [tbray@te tu ] I just finished a much-too-long series of essays on Ruby from a whole
+ 213118 [james@gr yp ] I found it interesting reading.  It really felt like early
| 213148 [james@gr yp ] *  I like XPath, but some libraries do a neat job of allowing you to
| 213179 [Stephen.L.Mo] James,
| 213190 [james@gr yp ] First, let me admit this is the point I have the least ideal solution
| + 213200 [Stephen.L.Mo] Fantastic, thanks.  One more minor question:  what is 'bit-return' and
| | + 213204 [gavin.kistne] I think that 'bit-return' means
| | + 213208 [james@gr yp ] b-i-t-return and t-e-i-r-return.
| + 213272 [twifkak@co c] Err, oh. I take it that means it'd be too much to ask how you command TM
| | 213336 [james@gr yp ] The "Save" dropdown menu at the top of the Bundle Editor when you are
| | 213364 [Stephen.L.Mo] Doh!  And here I was looking for something more exciting and esoteric.
| + 213556 [alex@bl ck e] Brainstorm just happened, so bear with me - this is straight off the top
|   213561 [james@gr yp ] And what happens if the execution never calls the given method, for
|   213563 [alex@bl ck e] That's why you run your test suite through it.  You do have 100% line
|   213567 [james@gr yp ] Well it's a clever idea.  Show us the prototype.  ;)
|   213594 [alex@bl ck e] $ cat rename_method.rb
+ 213401 [rsanheim@gm ] I would highly recommend autotest, which is part of ZenTest, to take
threads.html
top