382664-384680

382483-384379 subjects 382904-383918

require 'active_support' or 'i18n' first ?
382664 [ciur.eugen@g] I discovered recently a strange behavior. If I require 'i18n' gem then
382680 [cmdicely@gm ] It seems like it might be a side-effect of a bug in the version of

[ANN] rubygems-update 1.8.0
382671 [drbrain@se m] rubygems-update version 1.8.0 has been released!

GeoIP 1.1.0 released
382685 [no@sp m. le ] The GeoIP has been given a serious overhaul, thanks to postmodern,

Lets play a guessing game. (how to code this better?)
382686 [ruby-forum@s] I am a new Rubyist. I told my friend that I was learning Ruby. He asked
+ 382687 [stu@ru yp og] Looks good. You don't need the extra call to_i where it is already an integ=
+ 382688 [josh.cheek@g] Congratulations on your first program! Hope you're enjoying Ruby.
+ 382689 [johnf@bi sb ] ====
| 382736 [johannes.hel] Ah, that's a nice challenge.
| 382739 [spoon@ki le ] That's not functional enough for me ;)
| + 382740 [spoon@ki le ] Actually I left a bug in that due to side effects.  (When will lazy
| + 382741 [johannes.hel] And now, the OP is frightenend of functional programming ? ;-)
|   382742 [spoon@ki le ] Good point.
+ 382693 [jgabrielygal] Apart from the other comments, I would like to point out that the
+ 382707 [boesemar@gm ] Hey, ruby-quiz is back?!
+ 382731 [ruby-forum@s] Thanks everyone for taking the time to reply!
| + 382732 [jgabrielygal] A method is just a block of code with a name that can be invoked from
| | 382752 [code@ap th o] if foo.to_i.to_s =3D=3D foo
| + 382733 [josh.cheek@g] In OOP, classes can inherit functionality from other classes. There are
+ 382823 [ruby-forum@s] Thanks again for everyones input and thanks to Jesus for explaining and
  + 382824 [josh.cheek@g] In the same way you have string literals (the "0"), you also have integer
  + 382826 [stu@ru yp og] You can do it with more methods. In fact you should break as much down
    382828 [stu@ru yp og] I also wanted to add that you can embed methods directly into the
    382856 [ruby-forum@s] changed it because I was getting an error when I tried to add 1
    382859 [stu@ru yp og] def method_name( arg1, arg2, *args)  # and so on

Ruby 1.9.1 and Soap4R NTLM Authentication
382701 [lmayorga1980] Currently I have a Web Service client on ruby using the soap4r gem and

Cross access between instance variables
382716 [mail@ss le s] I am working on a larger Ruby program, where instance variables of one
+ 382717 [josh.cheek@g] Great question! It's especially important when the fish / tank start
+ 382734 [johannes.hel] You can control the fishes within the tank. Every fish is saved in an
  382787 [mail@ss le s] Thank you for your example.
  382796 [hassan.schro] A little late to this, but isn't this a good case for the Observer pattern?
  382797 [johnf@bi sb ] You add fish to a tank, not tanks to a fish. An alternative proposal,
  382801 [hassan.schro] POV - you could as well say you "assign" a tank to a particular fish :-)
  382802 [johnf@bi sb ] Perhaps, but in this model, at least, the fish can't exist without the

native ruby LevenbergMarquardt (or other curve fitting)
382726 [r@al m. it e] Sooner or later, my Rails app will need a good curve fitting algorithm
382727 [joelvanderwe] Heroku does support gems with extensions, so what about ripping out the
382729 [r@al m. it e] In all honesty, I used the FIT function in gnuplot (without using

[ANN] kgio 2.4.0 - kinder, gentler I/O for Ruby
382728 [normalperson] kgio provides non-blocking I/O methods for Ruby without raising

Watir is unable to click Facebook "Login" button after button.click is executed
382735 [chiapon@gm i] I tried to use Watir & ruby & IE9 to automate Facebook login but seems
382738 [ciur.eugen@g] I don't know anything about watir, but I tried with mechanize a while

newbie to using builder(xml)
382743 [snomys@ho ma] I am just trying to understand how builder sorts the content of an xml

[ANN] kramdown 0.13.3
382745 [t_leitner@gm] ## About kramdown

Re: newbie to using builder(for xml markup)
382746 [snomys@ho ma] Answered BY MYSELF!!
382749 [jeremy@bo p.] Actually, be careful using hashes (which is what you're implicitly
382757 [bbxx789_05ss] 1) The ordering of an xml element's attributes is irrelevant.

ruby 1.8.7 from source
382750 [neubyr@gm il] I need to install ruby 1.8.7 on CentOS 5.5 x86_64 system. I am
382751 [jeremy@bo p.] -Jeremy
382756 [brabuhr@gm i] ...

Ruby Gtk, classe inheritance and initialize method problem
382753 [phasme@gm .f] I just want to create a subclass of Gtk::Windows and set parameters for
+ 382754 [jgabrielygal] When you call super without params, it calls the same method you are
+ 382755 [phasme@gm .f] Oh yes this really helps me,

Ruby Gtk2 and signal_connect method
382758 [phasme@gm .f] I am writting a little script for displaying a list of icons and when i
382774 [jakekaiden@y] i use gtk2 quite a bit, and have found that the "Gnome 2" section of

[ANN] ruby-configurable
382762 [rubyforum@ri] I've just released ruby-configurable 1.0.1, a library that gives any
382763 [rubyforum@ri] $ gem install ruby-configurable

[ANN] rubygems-update 1.8.1 Released
382764 [drbrain@se m] rubygems-update version 1.8.1 has been released!
+ 382766 [Stephen.G.Da] Somehow, when running this 1.8.1 update, it broke three websites I have in =
| 382830 [ryand-ruby@z] have in development.  These are Apache sites which previously had =
| 382878 [Stephen.G.Da] Ah!  Much thanks Ryan.  This was the exact pointer needed. I had to run=20
+ 382767 [botpena@gm i] ur
| 382768 [joelvanderwe] I ended up doing `gem pristine --all`. A nice long coffee break ;)
+ 382770 [josh.cheek@g] After Rake and Bundler come on board, I'll join you guys. But in the
+ 382814 [patrick.john] I'm completely new to this stuff.  When should "gem update" alone ever be
  + 382827 [cmdjackryan@] be
  + 382829 [ryand-ruby@z] gem update --help

hiiiiiiiii
382771 [mveni.nirmal] veni.497@rediffmail.com

hiiiiiiiii
382772 [mveni.nirmal] veni.497@rediffmail.com

[ANN] dep_walker 1.0.0 Released
382775 [bosko.ivanis] dep_walker version 1.0.0 has been released!

[ANN] dep_walker 1.0.1 Released
382776 [bosko.ivanis] dep_walker version 1.0.1 has been released!

Ruby Activity
382777 [kajisakka@gm] Is ruby still being developed? The official site has last release in dec
+ 382778 [johnf@bi sb ] It sure is. There are a dozen or so commits so far today, and about
+ 382779 [steve@st ve ] The main site is more about stable releases, so they tend to have some time
+ 382781 [kajisakka@gm] Thank you for the answers, I am happy to hear that. As to gui toolkit it
| 382969 [no@sp m. le ] Now-a-days, they're called "browsers" :P.
+ 382782 [stu@ru yp og] Ruby comes with tk build in. While your investigating which toolkits
| 382907 [kmandpjlynch] I'm using Ruby 1.8.7 and it does not contain TK...
| + 382908 [echristopher] It's actually not built into the RubyInstaller Windows versions. Maybe
| | 382933 [kmandpjlynch] I'm actually using a Mac with Snow Leopard...
| | + 382936 [brabuhr@gm i] $ brew install ruby
| | + 382938 [stu@ru yp og] % port -v install ruby +tk
| + 382912 [stu@ru yp og] It's something you enable when you compile it. It's optional based on
+ 382809 [rubyforum@ri] Python 2.7.1 was released on November 27th, 2010

How to do that god started when the server starts [CentOS]
382785 [devcindario@] god -c /etc/init.d/profile.god -D
+ 382786 [steve@st ve ] This is really more of a CentOS question than a Ruby question, but you want
+ 382804 [devcindario@] Ok, sorry.

Help with while condition OR condition
382788 [sirwillard42] This is my first post, so I hope I don't sound too inexperienced..
+ 382789 [steve@st ve ] Don't do that, just use eql?
+ 382790 [cmdicely@gm ] The || operator returns the operand on the left if it is "true-ish"
+ 382791 [johnf@bi sb ] This says, "check if the downcased input is not equal to the value of
| 382792 [johnf@bi sb ] while command != "exit" || command != "quit" ...
+ 382793 [joelvanderwe] $ irb
+ 382794 [jeremypinat@] `(EXIT || QUIT)` will always return "exit" as EXIT is never `nil` or
+ 382798 [sirwillard42] Wow!  I would say this is the most replies I have ever had on a
+ 382805 [josh.cheek@g] It doesn't get pissed at string literals in comparison, its just that it was
+ 382811 [bbxx789_05ss] A lot of beginners make the same mistake you did.   'Compound
  + 382813 [johnf@bi sb ] It's not a good idea to make a blanket rule like that, imo. The "and"
  + 382840 [b.candler@po] I would advise exactly the opposite: there are many traps for the unwary
    382885 [bbxx789_05ss] lol.
    382886 [cmdjackryan@] irb(main):001:0> val = 10

Threading Loops
382795 [kajisakka@gm] I understood how to thread functions, but I don't understand how to
+ 382799 [roylzuo@gm i] It is very convenient to use Thread in Ruby, but maybe you should first get rid
+ 382800 [kajisakka@gm] Thank you so much that helped allot and now I understand threading
| 382815 [bbxx789_05ss] In ruby 1.9, if you call collect() without supplying a block, you get
| 382833 [shortcutter@] It seems you are confusing #collect with #select here.
+ 382803 [kajisakka@gm] Sorry for double posting just wanted to state I understand it now, used
+ 382806 [kajisakka@gm] The threading made no deference in speed at all not what I expected.
| 382808 [bbxx789_05ss] Ok, that is what I expected.  To truly do two things at once in ruby,
| 382834 [shortcutter@] It's questionable whether that will yield any benefit since it's likely
+ 382807 [bbxx789_05ss] I don't think threading will speed up your execution time in this case.
| 382820 [cmdicely@gm ] Well, if you are using Ruby 1.8 with its green threads, or Ruby 1.9
+ 382810 [rubyforum@ri] I can't imagine that even forking would help you hereˇ˝your OS will still be performing only one I/O call at a time. Unless you've got an OS that's doing some funny optimization like aggregating filesystem metadata changes, you won't see any speedup. And that would be a strange thing to optimize for.
+ 382817 [kajisakka@gm] Yea I just went to irb and started playing with .collect and with_index
+ 382839 [b.candler@po] rename is almost certainly disk limited - doing them in parallel is

Re: rubygems-update 1.8.1 Released
382812 [rubyforum@ri] Doesn't Passenger have an extra step involved to build the

Question regarding interaction between modules and classes
382816 [geometric.pa] In the code below, is there a way to learn @foo from $bar_one
+ 382818 [josh.cheek@g] Hmm. Okay, first a bunch of thoughts, then some potential solutions.
+ 382819 [bbxx789_05ss] Don't EVER use global variables($).
  382832 [cmdjackryan@] ancestry tree of a module or class, this one will be used, instead of

Help needed to start with RoR
382821 [rushabhhathi] I am a new guy to enter the world of RoR.
+ 382822 [josh.cheek@g] You'd probably get better information on a Rails list (this is a Ruby list),
+ 382836 [jeremypinat@] * http://guides.rubyonrails.org/
  382837 [subscription] I've found Beginning Rails 3 to be very valuable.
  382850 [stu@ru yp og] ^^ this is a great book. I have only read the first half but it covers

Capistrano deployment issue ?
382825 [bdurgaprasad] I want to Capistrano   deployment , it is urgent to me . While i cap deply:update it causes the error .   Let me know any one solution for  this problem .
+ 382866 [bdurgaprasad] Let me know please , it is urgent to me.
+ 382867 [ciur.eugen@g] ** [out :: 172.20.1.33] : Operation not permitted
| 382890 [bdurgaprasad] The above things is not a problem , i run "cap deploy:check ",
+ 382894 [ciur.eugen@g] It fails to create symbolic links because link file already exists.

 Re: Question regarding interaction between modules and classes
382831 [uwe@ku os h.] ...

Accessing MS Exchange from Linux host
382835 [trodwell@ie ] Is it possible for a Linux host to access an Exchange server using MAPI
382838 [b.candler@po] It's Java rather than Ruby, but I use "fetchexc" to download mail from
382882 [trodwell@ie ] Interesting, thanks.  I'll certainly go have a look as suggested but as

Problem setting up heroku: "Unable to verify SSL certificate for api.heroku.com"
382841 [toastkid.wil] github account, set up with keys (ie i can do ssh git@github.com ok).
382842 [hassan.schro] prompt% heroku help
382843 [toastkid.wil] Thanks Hassan, but i get the same warning when i try to do any of the
382844 [hassan.schro] mmm. What OS/version of SSL are you using?
382845 [toastkid.wil] OS is Ubuntu 9.10
382846 [hassan.schro] Good that you got past it, but you should open a ticket with Heroku --
382848 [toastkid.wil] Yeah, i'll do that.  Thanks a lot - max

Readline problem in ruby 1.9.2 rvm
382847 [toastkid.wil] "rb-readline (0.4.0)" gem installed.  When i try to start a console for
382849 [justincollin] See here: http://beginrescueend.com/packages/readline/
382851 [toastkid.wil] Thanks Justin.  That worked fine!

Video Tutorials
382852 [kajisakka@gm] I want to help others learn ruby and so I have started working on a
382865 [ciur.eugen@g] Bobby,

Index to coordinates conversion, according the matrix shape
382853 [cyril.staff@] I would like to converte an index (of a flatten array) to a
+ 382855 [jeremypinat@] This is a perfect case for modulo (%). It gives the remainder of a division.
| 382862 [cyril.staff@] Waw, thanks. But... is this okay with matrix of more then 2 dimensions?
+ 382864 [fred@la av .] A small example from a project of mine.  Maybe you'll find things of

How to access ms-word hrough ruby
382860 [aabhaatiwari] I already tried the word examples given here but nothing seems to work
382898 [david.mullet] You'll find a decent amount of material here on automating MS Word with

Re: How to access ms-word through ruby
382861 [aabhaatiwari] I already tried the word examples given here but nothing seems to work
382873 [renard@nc rr] Without knowning "given here", no one can help you.
382875 [oscartheduck] There's 70 topics on ruby-forum that come up for "ms-word". Are you sure you

Crash with ruby1.9 on 64 bit system
382863 [nitin.kastur] This is my first question on this forum.
+ 382884 [bbxx789_05ss] What happens if you add the following line as the first line of your
+ 382895 [nitin.kastur] I tried with above solution but same error shows.
| 382897 [shortcutter@] Did you try to update all installed gems?
+ 382958 [nitin.kastur] I tried what was suggested (gem update -l),I got following result...
  382959 [shortcutter@] Well, what would be the obvious thing to do if a gem is missing? :-)
  382964 [cmdjackryan@] Writing it? ;)

Ruby Regex
382868 [flebber.crue] I am new too using regex on files and I am not quite getting the
+ 382869 [peterhickman] I think you mean file.replace(/\d\d\-/,'') rather than file.replace(/dd\-/,=
+ 382870 [spiralofhope] instead of dd, try \d\d
+ 382871 [shortcutter@] Better uses forward slashes to avoid potential issues with quoting.
+ 382872 [cmdjackryan@] files =3D Dir.glob("C:/Users/RenshawFamily/maven/Music/Foo Fighters/Live
+ 382881 [bbxx789_05ss] File.split() doesn't do what you think it does, namely it does not
  + 382891 [flebber.crue] @all good feedback much appreciated will work on it further and get
  + 382892 [flebber.crue] @Robert
    382893 [shortcutter@] nk

Need some starter help with CouchPotato
382874 [orenshani7@g] I am trying to use CouchPotato with a CouchDB instance on CloudAnt.
+ 382880 [bbxx789_05ss] Posted via http://www.ruby-forum.com/.
+ 382896 [b.candler@po] One trap which might catch you out - if the library itself has a file
+ 383205 [orenshani7@g] Thank you both for your answeres. Specifying the database URL to

Pdf Parsing Project Example
382876 [fespinozacas] I'm looking for an example of parsing pdf. I tried to implement this
+ 382877 [oscartheduck] Regular Expressions are pretty much the standard way of parsing text files,
| 382879 [cmdjackryan@] PDFs aren't "just" text files.
+ 382889 [martin.bossl] I recently spotted
+ 382899 [alex@bl ck e] Whenever I've done this in the past, I've used pdftohtml to produce an

rails guides - getting started - section 10 security
382887 [compusaurusr] The example doesn't work as described for me; not sure if I haven't
382888 [bbxx789_05ss] rails != ruby

Re: rubygems-update 1.8.0
382900 [rogerpack200] As a note, running
+ 382902 [rogerpack200] replacement. It will be removed on or after 2011-10-01.
| 382926 [ryand-ruby@z] loading
+ 382927 [ryand-ruby@z] That's an oversight on my part. Looks like we don't have tests for that =
  382929 [rogerpack200] Done.

Starting Method/Class issues
382901 [tjwilkes@li ] books I have are only using mathematical method/class creations and my
+ 382909 [shortcutter@] Sorry, I can't help you with Watir, but: do you really need to automate
+ 382914 [bbxx789_05ss] How about an example of that?
| + 382924 [tjwilkes@li ] I've attached my working code for a short test, when manually putting
| | 382930 [bbxx789_05ss] Inside that method, there is no variable called 'ie'.  You either need
| + 382954 [b.candler@po] And another step, say if the number 15 is a property which you want to
+ 382997 [tjwilkes@li ] Thanks, that was exactly what I needed.
| 383001 [bbxx789_05ss] You are doing way to much work with all your print's and puts
+ 383011 [tjwilkes@li ] def tverify(str, ie)
  383014 [bbxx789_05ss] Some more tips.  puts() adds a newline to a string *only if it doesn't

Ruby 1.9.3 documentation challenge
382903 [drbrain@se m] With the freeze of Ruby 1.9.3 coming up near the end of the month I =
+ 382940 [steve@st ve ] explaining just how easy it is for you to add the documentation that Eric's
| + 382961 [jeremypinat@] Thanks! I never really contributed to Ruby, but if it's that easy I'll
| + 382962 [t.yao426@gm ] Cool!
+ 382963 [jakekaiden@y] this is certainly a worthwhile effort - thanks for organizing it...
| 382965 [developer@wi] I'm not sure who makes these decisions for ruby-doc.org, but is there any chance that we could get Yardoc-formatted documentation (or at least a fresh stylesheet for standard rdoc output) this time around?
| 382967 [now@bi wi se] I would appreciate this more for the fact that the syntax is better.
| 382968 [developer@wi] That too, but I figured if the goal here was to complete the documentation (instead of revamping it), a complete conversion to Yardoc would be a hard sell. (If that's not the case, I'll be thrilled.)
| 382971 [steve@st ve ] ...
+ 384499 [markus@fi ch] based in your coverage @
  + 384590 [justincollin] I can't speak for Eric, but I think part of documenting is marking the
  | 384605 [markus@fi ch] But rdoc, at least by default,  does not document private methods. I
  | + 384607 [flo@an er gr] It does, actually. It's a bit hidden under "stdlib" => "core". :)
  | | 384608 [markus@fi ch] Thanks :)
  | + 384680 [drbrain@se m] would
  + 384609 [markus@fi ch] ...
  + 384668 [drbrain@se m] addrinfo_initialize()
threads.html
top