274463-278481

274248-313086 subjects 274710-414267

(none)
274463 [shawn.hansen] ...

how to set focus on a popup window?
274469 [einaung@ya o] This question is more to do with Watir. How do I switch focus on a popup

Mind giving a little help?
274470 [nonstickglue] think this  would be the best place to ask my next question. I'm going
+ 274472 [nonstickglue] I'll add to this a little.
+ 274475 [bg-rubytalk@] If I understand correctly the goal is to maintain a list of URLs that
  274479 [nonstickglue] Thanks Ben!
  + 274486 [alexg@ku cr ] Don't take this the wrong way, but you will learn far more
  + 274487 [bg-rubytalk@] require 'uri'
    274625 [nonstickglue] Thanks for adding the comments in there Ben, I just read through them
    + 274633 [bg-rubytalk@] Yes, it's having trouble locating the file.  You need to either move
    + 274637 [martindemell] Post the code in which you tried to use the full path to the file - I
      274639 [nonstickglue] I've actually got it working, I did some moving around of files and such
      274997 [nonstickglue] I've been working on this for a few days now, adding a few of my own
      275016 [nonstickglue] Sorry, it's referring to this  line of code.
      275017 [devi.webmast] ...

what is the use of pop3?
274496 [hariharan.sp] Dear Friends,
274499 [phlip2005@gm] What does El Goog say about POP3, the Post Office Protocol v3?

how can i connet the postgersql with ruby
274497 [hariharan.sp] Dear friends,
274524 [hariharan.sp] Dear Friends,
274538 [wayneeseguin] ...

Re: One-Click Ruby Installer 186-26 Release Candidate 1
274498 [luislavena@g] Did you have a previous One-Click-Installation before?
274545 [gthiesfeld@g] Yes, I did.
274630 [ml.chibbs@gm] Also, how long was your previous path (we've had problems with paths >
274632 [gthiesfeld@g] While I can't be certain, I'd say it's very possible it was longer
274660 [renard@nc rr] In my case, my path was totally wiped out!!!

problem with assert difference
274518 [polawarkiran] Help................

this is for test
274525 [hariharan.sp] hai friends,
274527 [shuaib.zahda] but do trust the functionality of the forum
274528 [mo_mail@on h] I've been tracking this case.  It's not the functionality of the forum

optionparser
274529 [hariharan.sp] Dear Mohit,
+ 274531 [mo_mail@on h] Nope, I haven't used it.  someone else will have to chip in.
+ 274595 [shortcutter@] What exactly are you missing from the documentation?  It's admittedly a

2 dimensional array
274532 [shuaib.zahda] Dear all
+ 274535 [stefano.croc] Ruby doesn't have 2-dimensional arrays, but you can use nested arrays to
| 274551 [shuaib.zahda] Dear Stefano
| + 274552 [michael.bevi] ...
| | 274640 [shuaib.zahda] Dear all
| | 274883 [victor.reyes] ...
| | 274893 [caduceass@gm] It depends on what you want to do.  If you just want to represent it
| | 274931 [victor.reyes] ...
| + 274582 [dangerwillro] Shuaib, If you want a simple database, you might consider SQLite,
| + 274596 [shortcutter@] Well, it depends on what dimension you view as row and column.
+ 274560 [phrogz@ma .c] There is no such thing as a 2-dimensional array in Ruby (not in the

Does the flickr gem still work?
274534 [rick.denatal] But  can't seem to figure out how to get it to authenticate to flickr
274683 [dangerwillro] That's their Circular Support mechanism!

Building Ruby on HPUX + readline support
274548 [stuart.holde] I have successfully managed to build Ruby 1.8.6 on HP-UX, but when using
274580 [stuart.holde] For what it's worth, I found some threads that discussed building Ruby

Small Quicktime *mov movies, snapshots, and pixels
274550 [AEtzold@gm .] Dear all,
+ 274553 [alex@bl ck e] Alex
+ 274555 [promos@bu ch] If you are on a MAC, iMovie will do this.  Import the clips, and then
  274573 [dangerwillro] From that perspective, even Quicktime Pro can do it. And it's
  274624 [has.temp3@vi] On 17 Oct, 17:04, John Joyce <dangerwillrobinsondan...@gmail.com>

sort_by
274557 [pjcarvalho@g] I have a list of rows which I want to order by a column.
+ 274558 [farrel.lifso] values_orderd = @values.sort_by{|value| -value.id_column}
| 274559 [pjcarvalho@g] Thanks for your quick answer.
| + 274572 [Rob@Ag le on] If you don't have a way of giving your sortable value an inverse, you
| | 274578 [dangerwillro] Good Point!
| | 274670 [pjcarvalho@g] Thank you all.
| + 274575 [mortee.lists] You can't negate an Array, so that the order based on it be reversed.
+ 274569 [mortee.lists] what about
  274576 [dangerwillro] Is it Rails?  If so, ActiveRecord has a way to do this with a

[ANN] rocaml 0.6.0: fast, easy Ruby extensions in Objective Caml
274561 [ mfp@ac .o g] rocaml allows you to write Ruby extensions in Objective Caml.

Hash#each with nested array as value
274567 [eclubb@va co] I have a hash where the values are nested arrays. I'd like to be able to
+ 274570 [phrogz@ma .c] irb(main):006:0> h = { :a => [:foo, :bar] }
+ 274574 [gthiesfeld@g] Use parentheses.
  274593 [eclubb@va co] Perfect.  Thanks, Gordon.

extracting values from consecutive lines
274571 [ba208@ex te ] This is a basic question, as I'm very new to Ruby. I have a text file
+ 274577 [phrogz@ma .c] # Make an array of arrays of numbers
| + 274583 [ba208@ex te ] thanks so much!
| + 274586 [bbxx789_05ss] start = '> 163.00'
| | 274745 [w_a_x_man@ya] If you can't guess that "> " isn't actually part of the data,
| + 274719 [dblack@ru yp] ...
+ 274579 [dangerwillro] Many ways to approach it of course.
+ 274594 [w_a_x_man@ya] p IO.readlines( 'input.dat').grep( /^\d/ ).
| + 274602 [bbxx789_05ss] Better.  Still slower.
| | 274643 [botp@de mo t] # > p IO.readlines( 'input.dat').grep( /^\d/ ).
| + 274658 [w_a_x_man@ya] Please pardon my perverse prolixity.  I threw in a "strip" even though
|   274666 [bbxx789_05ss] I took out your superfluous grep() too, but it doesn't help your cause
+ 274601 [lists@be tr ] es=20
+ 274631 [w_a_x_man@ya] p IO.readlines( 'input.dat').grep( /^\d/ ).
+ 274716 [w_a_x_man@ya] #!awk -f
  274750 [bbxx789_05ss] If that wasn't clear enough for you, here's another clue:  look at the

How to combine blocks and recursiveness
274588 [lcrespom@gm ] I am trying to code a method that accepts a block... easy. The problem
+ 274589 [jameskilton@] ...
+ 274592 [mental@ry ia] Another poster mentioned the &block thing, which is probably preferable.
+ 274597 [shortcutter@] The typical (and IIRC most efficient) idiom is to pass on the block
| 274667 [lcrespom@gm ] That looks nice and simple.
| 274675 [shortcutter@] #!ruby
| + 274784 [lcrespom@gm ] On Oct 18, 11:22 am, "Robert Klemme" <shortcut...@googlemail.com>
| + 274852 [dirk.traulse] For Windows it might be nicer to add
+ 274612 [yermej@gm il] def scan(&block)

Re: rocaml 0.6.0: fast, easy Ruby extensions in Objective Caml
274604 [djberg96@gm ] I grabbed the latest and greatest Ocaml tarball and installed it.
+ 274611 [djberg96@gm ] I decided to grab camlp5 (http://pauillac.inria.fr/~ddr/camlp5/) and
| 274619 [ mfp@ac .o g] You didn't
| 274704 [djberg96@gm ] Ok, I did make world.opt and reinstalled. Then I rebuilt camlp5 with
| 274724 [ mfp@ac .o g] I'm sorry for all the issues and appreciate your patience.  The basic problem
| 274725 [djberg96@gm ] It would seem so. Your one line patch to rocaml_extconf.rb worked
| + 274726 [djberg96@gm ] jberge-/export/home/djberge/src/ruby/rocaml-0.6.1-697>ldd foo.so
| + 274732 [ mfp@ac .o g] It seems we're almost there (we went through the critical non-PIC code
|   274743 [djberg96@gm ] Did I mention that I built Ruby with Sun Studio 12, but OCaml with gcc
|   274747 [ mfp@ac .o g] Congrats, it seems you got it to work :)
|   274749 [djberg96@gm ] Oh, heh, whoops. :)
|   274896 [ mfp@ac .o g] Yes, that seems the most reasonable way.
+ 274614 [ mfp@ac .o g] I see you solved this by installing camlp5, but I'd still like to fix the
  274618 [djberg96@gm ] Same for me.
  274627 [ mfp@ac .o g] That's what 2>&1 is meant to prevent, but you're very right, it should be

Re: abstract superclasses
274609 [thomas.adam2] class SomeClassMimickingAbstract
+ 274610 [shortcutter@] Why bother?  If your "abstract" class requires a method to be present
+ 274634 [ymendel@po o] How do you suggest to use that class? I understanding keeping the
  274636 [dblack@ru yp] class C
  274642 [rick.denatal] Note that ActiveRecord has a slightly different spin on the notion of

Class instance variable idiom
274615 [pedz@ea es f] class << self
+ 274616 [dblack@ru yp] class C
+ 274617 [shortcutter@] class << self
| 274620 [pedz@ea es f] Thanks!
| + 274622 [dblack@ru yp] Yes. The call to attr_accessor will create singleton methods for use
| + 274623 [gwtmp01@ma .] yes, and
+ 274650 [lojicdotcom@] Just out of curiosity, why do you want a "class instance variable"
  274661 [shortcutter@] Probably because class variables have @@various issues as has
  274708 [lojicdotcom@] On Oct 18, 2:44 am, "Robert Klemme" <shortcut...@googlemail.com>
  274717 [dblack@ru yp] I'm on record as saying that class variables are the thing I dislike
  + 274735 [rick.denatal] And even that is squirrely.  Visibility depends on sequence of
  + 274748 [gwtmp01@ma .] My gut says that code that utilizes class variables can always be
  | 274763 [dangerwillro] Well, I have to agree there are some odd things about Ruby's class
  + 274770 [ara.t.howard] i honestly don't think they do - inheritance breaks encapsulation.
    + 274795 [dblack@ru yp] I think we're defining encapsulation differently. I don't mean that no
    | 274817 [ara.t.howard] yeah i see that.  i avoid them much of the time for those reasons.
    | 274925 [dblack@ru yp] I consider a class's instances to be part of the world outside the
    | 274978 [ara.t.howard] it's not a vision - it's production code, gem released for several
    | 275013 [dblack@ru yp] I meant I wasn't sure whether you were saying that you thought the
    + 274832 [dan-ml@da 42] But this still works with ruby1.9! And it works in subclasses too. As
    | 274845 [ara.t.howard] yup.  i haven't used that in anger so i really don't know if it'll be
    + 274844 [rick.denatal] The main reason, I've never been completely comfortable with the Ruby
      + 274847 [lojicdotcom@] Ok, you've used a similar example multiple times now, so my curiosity
      | 274855 [rick.denatal] Imagine that this code is not all in one file, but is spread out
      | 274865 [lojicdotcom@] I'm still not buying it. I can't believe there's a scenario in Rails,
      | 274917 [dan-ml@da 42] It happened to me once before. I don't remember the exact circumstances
      + 274851 [ara.t.howard] hey rick - really good stuff.  i learned somethings smalltalk too.

Have Ruby warnings about uninitialized instance variables gotten more verbose in the past year?
274628 [billmcn@gm i] I just ran the unit tests on some code I haven't touched since
274644 [drbrain@se m] No.

combinations listing
274646 [globyy3000@h] Making an form of an anagram solver. My approach would be the code
+ 274648 [shuaib.zahda] use nested loops and counters, you need to do some control to the value
+ 274649 [daniels@pr n] require 'facet/enumerable/permutation'
+ 274652 [phrogz@ma .c] Slim2:~/Code phrogz$ sudo gem install facets
+ 274657 [lojicdotcom@] As others have mentioned, simply generating all permutations may not
| 274712 [lojicdotcom@] I was curious about the code using the facets gem, so I ran a few
+ 274706 [mortee.lists] Others have already shown you how you can generate all permutations of a
  274769 [botp@de mo t] # However, I'd ask why are you using class variables
  274774 [globyy3000@h] Thanks all ----
  274840 [lojicdotcom@] Can your program solve this anagram (a very common word)?
  + 274880 [globyy3000@h] Alright i see your point lol, so are you suggesting that the actual
  | 274900 [lojicdotcom@] There are probably better ways to do this, but the first thing that
  | 274924 [globyy3000@h] Thanks Brian, after testing out one of the 2 methods i get better
  | + 274945 [globyy3000@h] I know this post is getting long so ill try to wrap things up with a
  | + 274955 [lojicdotcom@] You need to pass in a block.
  |   274959 [globyy3000@h] Alright I'd have to say im amazed at the speed....now my question
  |   275014 [jgabrielygal] Line is set to each line in the file, not to the whole file. The while
  |   275050 [dirk.traulse] p %w(a, b, c)      #=3D> ["a,", "b,", "c"]
  |   275054 [jgabrielygal] Yeah, you are right. It was just lazy typing on my part to explain
  + 274920 [lojicdotcom@] Program 1: create the hash and dump to disk for future use

debugging question
274647 [sodani@gm il] I run this one gem with the command "foo <options>". I'd like to try
274694 [rogerpack200] maybe first
274760 [sodani@gm il] so I installed the gem rdig. You run rdig with "rdig <options>" and
274765 [rogerpack200] gem install ruby-debug
274823 [sodani@gm il] I tried that, but it doesn't work.
274825 [rogerpack200] checkout the topmost file line.
274914 [sodani@gm il] Not quite sure what you mean - sorry. I know very little about the
274974 [rogerpack200] go into the rdig file (find it), then add
275022 [sodani@gm il] That worked! Thanks so much :-)

DOC to PDF
274651 [suja@qb rs .] How to convert .doc to pdf in ruby.

YAML gem?
274653 [aidy.lewis@g] could anyone please point me to a gem of YAML?  i am using windows.
274664 [drbrain@se m] YAML comes with Ruby.  There is no separate gem.

Curl/Curb - Adding an on_debug handler causes an exit code of "1"?
274654 [robertfx@gm ] Using the very handy Curb from <http://curb.rubyforge.org/>...
278481 [robertfx@gm ] Follow-up: Upgrading to Ruby 1.8.6p110 seems to fix the problem.

Ruby without installation
274655 [anders.u.per] I today make som scripts in Perl, it have the advantage it is
274665 [drbrain@se m] download a ruby tarball, extract it, then cd into the directory it
274692 [brabuhr@gm i] I sometimes follow this method even for machines that I do have

Ruby without installation
274656 [anders.u.per] I today make som scripts in Perl, it have the advantage it is
+ 274663 [alexg@ku cr ] If you have full access to your userarea can't you just install Ruby
+ 274681 [d_rems@ya oo] In windows, all I do is keep single instalation on one server (shared).

MySQL connection issue...
274669 [harnish_544@] Hey All,
274674 [cmdjackryan@] Is the mysql gem installed?

Naming Conventions
274677 [arcadiorubio] I'm quite new to Ruby. One of the things I try to get when I learn a
+ 274679 [thomas.adam2] On 18/10/2007, arcadiorubiogarcia@gmail.com
| 274690 [dangerwillro] Yes. You can do as you please.
| 274698 [dblack@ru yp] On the other hand... Rails does a lot of things in conformity with
| 274702 [dangerwillro] True True, one must admire the dedication in Rails to consistency!
| 274707 [dblack@ru yp] And of course there's the matter of the term DSL itself, and what it
| 274718 [dangerwillro] Nah, not really.
+ 274737 [rick.denatal] I prefer length over size, because although Array#size and

tk question - how do i bind to multiple events?
274682 [toastkid.wil] I have a text field, and i want to get the value out of it when the user
274700 [nagai@ai ky ] Please use TkVirtualEvent object.
274701 [toastkid.wil] Great, thanks!

2 - 2.01 ??
274684 [nicpon@ni po] Hey,
+ 274685 [jan.svitok@g] ...
+ 274686 [rmagick@gm i] Because 0.01 cannot be represented accurately in binary. See
+ 274687 [ruby@an hr p] ...
+ 274688 [elof@el f. k] Because you are using floating point.
+ 274689 [doodpants@ma] This question comes up a lot. Google "floating point errors" for some

hot sell  nike jordan puma af1 air max nike shox etc
274693 [yfshoe1@ho m] thank you for reading my message!
274703 [dangerwillro] I know it's a bot spamming via the forum site, but honestly, what
threads.html
top