280565-281424

280299-281123 subjects 280779-282747

What all have you done with Ruby?
280565 [ruby@da an t] Being a new Ruby user, and a brand new programmer (which isn't working
+ 280604 [lavigne.eric] You need some small problems for practice? You could try some Ruby
| 280620 [konrad@ty er] charset="iso-8859-1"
+ 280625 [ihatespam@ho] Most of my Ruby programs are for administering data of some kind.
  280655 [MonkeeSage@g] On Nov 24, 11:50 pm, "Just Another Victim of the Ambient Morality"

[ANN] Aquarium V0.2.0 Released
280569 [deanwampler@] ...

OpenURI::HTTPError: 404 Not Found reading http://gems.rubyforge.org/ ?
280572 [h.wickham@gm] Am I doing something wrong, or is the server down?

RFC - Recursive Array Method call acting on element batches
280576 [rubydeckard@] I work for the Department of Redundancy Department and I'm thinking
+ 280578 [matz@ru y- a] Hmm, how about
+ 280595 [bbxx789_05ss] require 'enumerator'
  280693 [rubydeckard@] Thanks for your input guys.  That put me on the right track.
  280992 [eeklund@gm i] def proc_array(batch_size = 2, &method_obj)

how to read a file and insert it into a mysl blob field
280577 [gissmoh@fi g] How can I read a localy stored file and insert it into a mysal blob
280586 [bbxx789_05ss] require 'mysql'
280614 [bbxx789_05ss] 1) I am assuming 'mysl' and 'mysal' should be 'mysql'.

Re: OpenURI::HTTPError: 404 Not Found reading
280580 [tom@in oe he] We're having a spot of trouble with getting new gems sync'd out to the

[ANN] RubyInject 0.1.0
280582 [laurent.sans] I am glad to announce the first version of the RubyInject project.

Problem starting Merb 0.4.1
280583 [roland.swing] I seem to be having problems getting merb 0.4.1 up and running. My
280589 [ezmobius@gm ] Can you pop into the #merb irc channel on irc.freenode.net ? We would
280673 [roland.swing] Doing a bit more digging has solved the problem - I don't think this

[ANN] ruport-util 0.10.0
280584 [gregory.t.br] == What is ruport-util? ==

rubygems 0.9.5 not finding SSL package
280592 [mberrow1@pa ] I am trying to install rails on xubuntu with the line
+ 280763 [mberrow1@pa ] Has anyone completed a fresh install of ruby/rubygems/rails on ubuntu
+ 281125 [drbrain@se m] ruby -e "require 'openssl'"
  281179 [halostatue@g] Signed gems are done with SSL.
  281249 [drbrain@se m] This appears to be happening regardless of signing of gems.
  281401 [esmithbss@gm] The problem is that the default installation of ruby 1.8.6 from source
  281424 [drbrain@se m] No.

My first rails app
280594 [coreyhaines@] I'm learning rails, and I've started blogging about the site I'm
280696 [dchelimsky@g] Hey Corey - you should join the rspec-users mailing list. There are a

Enumerable#detect_result ?
280597 [ymendel@po o] # This is bunk, but I'm tired and can't think of the right way to
+ 280621 [MonkeeSage@g] Would this work?
+ 280626 [transfire@gm] A little better.
  280627 [ymendel@po o] Well, dang. I would say that's obvious, but if that were actually the
  280636 [MonkeeSage@g] Yossef,
  280661 [ymendel@po o] I didn't bother to try. It looks like it'll work just fine. I like the
  280663 [MonkeeSage@g] It's actually the same thing that detect() does, I just made it return

extract consecutive lines of data
280598 [ba208@ex te ] A basic question: how to extract several consecutive lines of numbers
280654 [MonkeeSage@g] def input_matrix(file)
280656 [ba208@ex te ] Thanks, this didn't work either (the data file contains lines of text =20=
+ 280660 [MonkeeSage@g] Happiness! Another vim user. :)
+ 280662 [ba208@ex te ] Thanks, this is exactly what i was looking for: I just never find my =20

string matching algorithm
280600 [dweldon@gm i] Set A =
+ 280601 [AEtzold@gm .] Dear David,
+ 280602 [AEtzold@gm .] Dear David,
+ 280613 [alex@bl ck e] Bloom filters?  It's the fastest thing I can think of.
  280618 [dweldon@gm i] I think I'm going to end up answering my own question here. I tried a

Ruby lnline question
280603 [AEtzold@gm .] Dear all,
280619 [konrad@ty er] charset="iso-8859-1"

Re: Piping problem
280608 [bbxx789_05ss] When I get that error, it usually means that I am trying to read(e.g.
280609 [bbxx789_05ss] $ cat data.txt
280610 [bbxx789_05ss] $ cat data.txt
280622 [MonkeeSage@g] Well, you've defined reverse.rb to read from stdin, but you're passing
280623 [bbxx789_05ss] Read the documentation for gets.
280630 [MonkeeSage@g] Yeah, I probably should RTFM before I reply, heh.
280633 [codemonkey@n] Interestingly it seems to work perfectly fine here,
280733 [botpena@gm i] On Nov 25, 2007 12:52 AM, Pawel Radecki >

C API question: How to handle an error while freeing object
280611 [TimHunter@nc] This is a C API question.

Re: RubyInject 0.1.0
280624 [phrogz@ma .c] On Nov 24, 12:21 pm, Laurent Sansonetti <laurent.sansone...@gmail.com>

Help Regarding ASP Login Authentication popup
280632 [nandeesh.r@g] I am using ruby to enter the date automatically into web page.

can't install hpricot on cygwin
280635 [pood.forums@] I'm trying to run scRUBYt on winXp, but found out it just doesn't work.
+ 280642 [peter@ru yr ] I think the trick is that in  FlexMock's case, you did not have to
+ 280643 [andrei@an re] ...
  280644 [andrei@an re] ...
  280689 [pood.forums@] that did the trick!
  280691 [pood.forums@] my Aptana was causing this problem! doing this thru command line, I
  280726 [peter@ru yr ] Great! So welcome to scRUBYt!. Please note that there is a #scrubyt

First question in here
280637 [oleber@gm il] Hy all
280638 [TimHunter@nc] If you mean "JSON", did you try Googling "ruby+json"?
280647 [oleber@gm il] trying to install JSON
280650 [markonlinux@] If you're using Gutsy, there's a libjson-ruby in the repositories if
280746 [codemonkey@n] I would follow my nose in search of headers and examine the makefile.

Ruby installation in leopard after upgrade
280640 [dab@fa ma .c] Have a good day and night!
280641 [dab@fa ma .c] But nothing really changed :(

Moving files matching Regex
280645 [markonlinux@] A question relating to the code below.
+ 280646 [stefano.croc] require 'find'
| 280649 [markonlinux@] that's better, thanks
| 280652 [raulparolari] 1) if you just want to find the files in the current directory, then we
| 280669 [shortcutter@] I would not do that because it is not really an Array operation.  Having
| 280716 [raulparolari] You are right; it does not belong in class Array.
| 280758 [shortcutter@] Definitively the right way to go if there is a chance that the code is
+ 280786 [markonlinux@] thanks to all replies. Very informative.
  280798 [shortcutter@] In _2 you do a dir glob in *one* directory only while find recursively
  280855 [raulparolari] Actually, I think that most of the gain in the final solution comes from
  280867 [shortcutter@] What about this one?
  280892 [raulparolari] Robert
  280952 [shortcutter@] We completely forgot about Dir.entries()...  That might be a tad
  + 280961 [raulparolari] def get_file_names5
  | 280970 [markonlinux@] Excellent stuff everyone,
  + 280962 [MonkeeSage@g] Since all the matches are xsl files, the function can be faster using

[ANN] ruby-oci8 1.0.0
280653 [kubo@ji ba .] ruby-oci8 1.0.0 is released. This is a Oracle module using OCI8 API.

[ANN] win32-service 0.6.0
280658 [djberg96@gm ] The Win32Utils Team is very pleased to announce the release of

[Q] specify start postion of Regexp matching
280664 [kwa@ku at -l] Is it possible to specify start position of Regexp matching?
+ 280674 [AEtzold@gm .] Dear Makoto,
+ 280718 [matz@ru y- a] str.index(/ba/, 5) ?

Re: specify start postion of Regexp matching
280665 [rubytraining] m = /^.{5,}(ba)/.match(str)
280671 [shortcutter@] Another alternative is to use String#scan - we would have to know what
280681 [kwa@ku at -l] Thank you, all.
280692 [shortcutter@] But in various situations it is possible to use a unified regexp for
280719 [kwa@ku at -l] You are right. If input string is not modified, creating substring
280724 [kwa@ku at -l] No, String#index returns Fixnum (position), but I want MatchData.
280725 [kwa@ku at -l] I found that it is able to get MatchData by Regexp.last_match()
280750 [MonkeeSage@g] What's the difference between 1.9 Regexp#match(string, start=n) and
280752 [bbxx789_05ss] str = "hello"
+ 280755 [MonkeeSage@g] I'm not sure how to confirm it, other than just looking at the source,
| 280757 [MonkeeSage@g] Well, I did anyhow...
| 280769 [MonkeeSage@g] Here's a test to show that my reading of the source, and Robert's
+ 280936 [george.ogata] A new ruby object is created, but the string buffer that it points to

Creating a rubygem - a story and help request
280670 [phrogz@ma .c] The Story
+ 280686 [Bil.Kleb@NA ] When I went through this process the first time, I used the Pick Axe
| 280735 [phrogz@ma .c] Thanks, hoe/sow certainly do help fill the blank canvas.
+ 280747 [bbxx789_05ss] pickaxe2, Chapter 17 has a section titled: Creating Your Own Gems.  I
  280809 [phrogz@ma .c] So it does. I'll read through that, but I maintain that Rubygems
  + 280823 [jeremymcanal] Welcome to the apparent nature of learning important Ruby libs. :)
  | 281124 [drbrain@se m] I could easily throw a quickref under `gem help` somewhere.
  + 280824 [shevegen@li ] No, you are 100% right on this. And I state this while saying that
  + 280890 [fedzor@gm il] That section is pretty good, but I found that it is easiest with hoe
    280900 [jaimeiniesta] ...
    280982 [Bil.Kleb@NA ] The amount of files it produced was more than my little

active record quetion.
280672 [junkone1@gm ] here is my issue. i want to get the id of of the record extracted
280679 [rich.vazquez] ...
280690 [junkone1@gm ] to

entering nil  string value through gets
280676 [nathanv@ro e] when i enter nil for gets, it is not comparing with another string
+ 280698 [bbxx789_05ss] How did you enter nil for gets?
+ 280701 [bbxx789_05ss] One data point:  using Ctrl-D to enter EOF in interactive input works on
+ 280703 [bbxx789_05ss] By the way, constructs like the above require that ruby evaluate all
  280732 [nathanv@ro e] thanks to Robert and 7stud.

Re: what syntax coloring does ruby-lang.org use?
280687 [grant.nathan] I always thought it was the Ruby Blue theme from Wiseheart Design. [

Supplying multiple procs to initialization
280688 [phrogz@ma .c] # Convert markup to HTML, doing something
280695 [shortcutter@] Why not just
280697 [phrogz@ma .c] I personally lump that in with the other option that happens to create
280759 [shortcutter@] Good point.  I did not know that they would become that complex.  In

ruby on Vista problems
280699 [rt84k-pusht@] I have problems running the latest Ruby 1.8.6 on Windows Vista, and this
+ 280702 [jari.william] Remove the extra space before 'y' and it should work. You're telling
| 280704 [rt84k-pusht@] thanks..
| 280705 [rt84k-pusht@] oops.. it was the same mistake !!! :) works now!
| 280707 [luislavena@g] Yeah, you keep putting a empty (white) space in all your strings...
+ 280709 [james.britt@] Maybe.  I've been using Ruby on Vista Home for about 2 months now.  Poor
| + 280713 [jari.william] Or, if you're used to an IDE, download and try Netbeans. I use NB6-rc2
| | 280781 [rt84k-pusht@] Yes, actually was copy pasting from a book by Chris Pine, it didn't
| | 280787 [jari.william] Although the default setting after installing NB is set to JRuby, it's
| + 280782 [rt84k-pusht@] I am curious.. Windows User Account Control is one of Vista's main
+ 281100 [w3gat@nw ag ] You may have something set up wrong though I can't tell you what exactly.

Has anyone used File.stat to check permissions
280706 [loftuz@gm il] In ruby API there is an example
280714 [yermej@gm il] s.mode.to_s(8)[-3..-1] == "644"
280720 [yermej@gm il] Sorry, those masks will probably work in most cases, but I guess you
280775 [shortcutter@] I don't see why it should be necessary to go through string

[ANN] European Ruby Conference 2008 in Prague, Czech Republic?
280708 [karel.minari] the attendees of the European Ruby Conference 2007 have almost
+ 280712 [james.britt@] I'm sorry to hear that.  I was hoping for another stint in Germany or
+ 280738 [charles.nutt] Prague sounds great, especially since my boss's office is there :) I can
+ 280739 [ko1@at ot ne] RubyKaigi 2008, the Japanese Ruby Conference will be held in 20
  + 280740 [charles.nutt] I believe there's a plan to try to get Ruby implementers to the Kaigi as
  | 280741 [james.britt@] But *please* hold it when the weather in that area (including south
  | 280811 [ jupp@gm .d ] =20
  + 280742 [marcel@ve ni] Prague is a great city and I'm glad you've changed the date so that it is no
    280762 [peter@ru yr ] I am glad to see the discussion has started! From the weather
    280789 [karel.minari] thank you for your responses!! (@James Britt: Yes, Munich is just a
    280794 [peter@ru yr ] Well, after talking to some guys it seems most of the people want April.
    280815 [karel.minari] thanks to Peter for getting the feedback!

Still trying to install ruby/tk
280717 [slimick@ca e] I finally gave up on trying to get the
+ 280727 [AEtzold@gm .] Dear John,
+ 281108 [slimick@ca e] To answer my own problem, I got ruby/tk working

Re: Instant Rails replaced by the BitNami RubyStack
280722 [barjunk@at g] Curt,

hpricot on my Solaris x-86 box. cc bad , gcc good
280723 [hobohoward77] Dear List,
280889 [steven@lu os] It really wants to use the compiler that Ruby was built with.
281137 [hobohoward77] I fixed my hpricot problems on my solaris x-86 box.

[ANN] OWLScribble 0.9.0; TagTreeScanner 0.8.1
280731 [phrogz@ma .c] The TagTreeScanner class provides a generic framework for creating a

ruby cache
280734 [ISAA.Berkele] I am trying to improve the performance of a very simple web
280737 [piyush.pr@gm] ...

Printing variable name and value
280743 [abender@gm i] ...
280744 [yermej@gm il] Check the group archives as this was discussed recently. The example

module_eval is an instance method?
280745 [bbxx789_05ss] num = 10
280748 [ pm@ub t. om] module_eval is a instance method of Module.
+ 280749 [bbxx789_05ss] Thanks.
+ 280751 [bbxx789_05ss] def meth1
  + 280753 [MonkeeSage@g] num is not in the scope of meth1 or of the Object class so resolution
  | + 280754 [MonkeeSage@g] Ps. You could also just use instance_eval...
  | + 280767 [bbxx789_05ss] num = 10
  |   280773 [MonkeeSage@g] According to the method resolution order (MRO), ruby looks for the
  + 280854 [james@gr yp ] Ruby pretty much says exactly what's going here:  num is not a local

(none)
280756 [fxguillois@g] unsubscribe fxguillois@gmail.com

opening filename with a space in it
280765 [giel@de ek t] I???m a Ruby newbie so this is probably not the most challenging question
+ 280766 [bbxx789_05ss] Try some quotes around the file name.
| 280768 [giel@de ek t] Nop, doesn't work either.
| + 280772 [s.korteling@] system('start excel "c:\\temp\\open it.xls"')
| | 280778 [giel@de ek t] This one works!
| + 280774 [botp@de mo t] # Nop, doesn't work either.
+ 280771 [AEtzold@gm .] Dear Giel,

Metaprogramming help
280770 [evilgeenius@] I have created a module as follows which adds an initialize method to
+ 280790 [robert.dober] Sorry for quothing myself but you know Murphy's law :(
+ 280837 [ara.t.howard] module M
| 280894 [ara.t.howard] lol - my own code looks much more like yours.  i go back and forth
+ 280896 [transfire@gm] This is more of an aside then an answer to your question. But it is
  280973 [evilgeenius@] Wow, thanks for all your replies.
  280998 [transfire@gm] Why do you want to thwart super here? You should have very clear

problem about read .txt file
280777 [l3litzer@ho ] I have read text by this code
+ 280780 [alex@bl ck e] That sounds toolkit-specific.  What GUI library are you using?
| 280783 [l3litzer@ho ] I use wxruby :)
| 280785 [alex@bl ck e] I don't know anything specific about WxRuby, but have you looked at
+ 280812 [phrogz@ma .c] message = IO.read( fileDirectory )
threads.html
top