274498-281353
274291-278282 subjects 274728-276260
^ 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 ongh] I've been tracking this case. It's not the functionality of the forum
^ optionparser
274529 [hariharan.sp] Dear Mohit,
+ 274531 [mo_mail ongh] 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=20
| 274551 [shuaib.zahda] Dear Stefano
| + 274552 [michael.bevi] Arrays in Ruby don't have a static length, you can append to them at will...
| | 274640 [shuaib.zahda] Dear all
| | 274883 [victor.reyes] Sorry guys, I am very slow.
| | 274893 [caduceass gm] It depends on what you want to do. If you just want to represent it
| | 274931 [victor.reyes] I just wanted to play with Magic Squares and other multidimensional arrays.
| + 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 mac.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 gmx.] Dear all,
+ 274553 [alex blackke] Alex
+ 274555 [promos burch] 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 AgileCon] 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 acm.org] rocaml allows you to write Ruby extensions in Objective Caml.
^ Hash#each with nested array as value
274567 [eclubb valco] I have a hash where the values are nested arrays. I'd like to be able to
+ 274570 [phrogz mac.c] irb(main):006:0> h = { :a => [:foo, :bar] }
+ 274574 [gthiesfeld g] Use parentheses.
274593 [eclubb valco] Perfect. Thanks, Gordon.
^ extracting values from consecutive lines
274571 [ba208 exeter] This is a basic question, as I'm very new to Ruby. I have a text file
+ 274577 [phrogz mac.c] # Make an array of arrays of numbers
| + 274583 [ba208 exeter] 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 rubyp] This message is in MIME format. The first part should be readable text,
+ 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 delmont] RnJvbTogN3N0dWQgLS0gW21haWx0bzpiYnh4Nzg5XzA1c3NAeWFob28uY29tXSANCiMgV2lsbGlh
| + 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 bertra] 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 gma] I am trying to code a method that accepts a block... easy. The problem
+ 274589 [jameskilton ] def scan(&block)
+ 274592 [mental rydia] 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 gma] That looks nice and simple.
| 274675 [shortcutter ] #!ruby
| + 274784 [lcrespom gma] On Oct 18, 11:22 am, "Robert Klemme" <shortcut...@googlemail.com>
| + 274852 [dirk.traulse] For Windows it might be nicer to add
+ 274612 [yermej gmail] def scan(&block)
^ Re: rocaml 0.6.0: fast, easy Ruby extensions in Objective Caml
274604 [djberg96 gma] I grabbed the latest and greatest Ocaml tarball and installed it.
+ 274611 [djberg96 gma] I decided to grab camlp5 (http://pauillac.inria.fr/~ddr/camlp5/) and
| 274619 [ mfp acm.org] You didn't
| 274704 [djberg96 gma] Ok, I did make world.opt and reinstalled. Then I rebuilt camlp5 with
| 274724 [ mfp acm.org] I'm sorry for all the issues and appreciate your patience. The basic problem
| 274725 [djberg96 gma] It would seem so. Your one line patch to rocaml_extconf.rb worked
| + 274726 [djberg96 gma] jberge-/export/home/djberge/src/ruby/rocaml-0.6.1-697>ldd foo.so
| + 274732 [ mfp acm.org] It seems we're almost there (we went through the critical non-PIC code
| 274743 [djberg96 gma] Did I mention that I built Ruby with Sun Studio 12, but OCaml with gcc
| 274747 [ mfp acm.org] Congrats, it seems you got it to work :)
| 274749 [djberg96 gma] Oh, heh, whoops. :)
| 274896 [ mfp acm.org] Yes, that seems the most reasonable way.
+ 274614 [ mfp acm.org] I see you solved this by installing camlp5, but I'd still like to fix the
274618 [djberg96 gma] Same for me.
274627 [ mfp acm.org] That's what 2>&1 is meant to prevent, but you're very right, it should be
^ Re: Speed issue on Windows
274606 [rogerpack200] So my question is...why is ruby so slow on win32? I don't think it is
274678 [luislavena g] Ok, I'm jumping too late on this thread.
274691 [rogerpack200] Thank you!
+ 274697 [znmeb cesmai] Speaking of Ruby, Windows and dual-booted machines, I recently decided
+ 274720 [luislavena g] It is!, read to the bottom after the EXPERIMENTAL STUFF WARNING! ;-)
+ 276727 [rogerpack200] I have finally gotten what I perceive as a 'working' version of mingw
^ Re: abstract superclasses
274609 [thomas.adam2] class SomeClassMimickingAbstract
+ 274610 [shortcutter ] Why bother? If your "abstract" class requires a method to be present
+ 274634 [ymendel pobo] How do you suggest to use that class? I understanding keeping the
274636 [dblack rubyp] class C
274642 [rick.denatal] Note that ActiveRecord has a slightly different spin on the notion of
^ Class instance variable idiom
274615 [pedz easesof] class << self
+ 274616 [dblack rubyp] class C
+ 274617 [shortcutter ] class << self
| 274620 [pedz easesof] Thanks!
| + 274622 [dblack rubyp] Yes. The call to attr_accessor will create singleton methods for use
| + 274623 [gwtmp01 mac.] 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 rubyp] 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 mac.] 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 rubyp] 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 rubyp] 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 rubyp] I meant I wasn't sure whether you were saying that you thought the
+ 274832 [dan-ml dan42] 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 dan42] 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 gmai] I just ran the unit tests on some code I haven't touched since
274644 [drbrain segm] 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 pron] require 'facet/enumerable/permutation'
+ 274652 [phrogz mac.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 delmont] RnJvbTogbW9ydGVlIFttYWlsdG86bW9ydGVlLmxpc3RzQGthdmVtYWxuYS5odV0gDQojIEhvd2V2
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 gmail] I run this one gem with the command "foo <options>". I'd like to try
274694 [rogerpack200] maybe first
274760 [sodani gmail] so I installed the gem rdig. You run rdig with "rdig <options>" and
274765 [rogerpack200] gem install ruby-debug
274823 [sodani gmail] I tried that, but it doesn't work.
274825 [rogerpack200] checkout the topmost file line.
274914 [sodani gmail] 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 gmail] That worked! Thanks so much :-)
^ DOC to PDF
274651 [suja qburst.] 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 segm] YAML comes with Ruby. There is no separate gem.
^ Curl/Curb - Adding an on_debug handler causes an exit code of "1"?
274654 [robertfx gma] Using the very handy Curb from <http://curb.rubyforge.org/>...
278481 [robertfx gma] 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 segm] download a ruby tarball, extract it, then cd into the directory it
274692 [brabuhr gmai] 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 kuicr.] If you have full access to your userarea can't you just install Ruby
+ 274681 [d_rems yahoo] 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 rubyp] 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 rubyp] 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.kyu] Please use TkVirtualEvent object.
274701 [toastkid.wil] Great, thanks!
^ 2 - 2.01 ??
274684 [nicpon nicpo] Hey,
+ 274685 [jan.svitok g] ...
+ 274686 [rmagick gmai] Because 0.01 cannot be represented accurately in binary. See
+ 274687 [ruby anthrop] ...
+ 274688 [elof elof.dk] 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 hotm] thank you for reading my message!
274703 [dangerwillro] I know it's a bot spamming via the forum site, but honestly, what
^ Newb in ruby
274710 [spike31589 a] have even tried the one click install version on my mac 10.4.10 and i
+ 274727 [jeremywoerti] There is probably a problem with the one-click installer. Since it wants
+ 274755 [rabbitblue g] I suggest following Hive Logic's guide to installing Rails on OS X.
281349 [spike31589 a] none of these worked are there any other options
281353 [phrogz mac.c] I find that hard to believe. Can you provide a Terminal log showing
^ How exactly does Tryruby work?
274711 [golubovsky g] I have always been curious: how does Tryruby (http://
+ 274713 [jan.svitok g] There's a patched interpreter running behind. Google for
+ 274715 [dangerwillro] Mostly javascript that talks to the server (ajax...)
+ 274759 [znmeb cesmai] There's a 13-year-old kid watching a log file with "tail -f". When a
+ 274762 [vjoel path.b] vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
| 274764 [dangerwillro] Nope. Prison labor. Most do license plates. A few do vi.
| 274798 [martindemell] pound-me-in-the-ascii federal prison
| 274862 [ari aribrown] So has anyone given a legitimate answer yet? i'm actually kind of
+ 274854 [rick.denatal] No, no NO!
274861 [ari aribrown] They're foxes......
274864 [rick.denatal] I guess no chunky bacon for me then! <G>
threads.html
top