369704-372814

369495-370950 subjects 369940-370548

^ How to tell Terminal which version of Ruby to use?
369704 [sbriffe gmai] I have two entry level questions that I was hoping someone could help
+ 369706 [sbriffe gmai] Posted via http://www.ruby-forum.com/.
| 369709 [konstantinos] You can try rvm (http://rvm.beginrescueend.com/) to manage your ruby
+ 369707 [mbj seonic.n] I suffered from similar problems in the past. Now I'm a big fan of the
+ 369844 [diego.viraso] bash will look for files in the PATH but in the same order as in PATH.

^ secure ruby scripts for users
369708 [dglnz2 gmail] I am using Linux,

^ Encoding error while installing rails on ruby 1.9.2
369710 [bekis3 gmail] I am making my first steps on Ruby on Rails. I have a very simple
+ 369712 [b.candler po] Please be more specific. Which *exact* version of ruby 1.9.2 did you
| 369715 [bekis3 gmail] I've installed "RubyInstaller 1.9.2-p0" from http://rubyinstaller.org/.
+ 369724 [luislavena g] Why is your terminal IBM737?
  369725 [bekis3 gmail] I changed it to 850 and it worked!!
  369728 [b.candler po] Or to give a different point of view: the problem is the fundamentally
  369731 [eregontp gma] Well, that is rather pessimist.
  369739 [b.candler po] Given that the error messages from ruby are themselves readable, it's a
  369743 [luislavena g] This is what Roger Pack asked on Ruby core about IBM737
  369763 [renard nc.rr] Pardon if this considered to be high-jacking --
  369772 [luislavena g] It fails? if not, then it is thread hijacking :P

^ Getting a unique filename?
369713 [michael schu] I need to build a Zip-Archive with a unique name that is served by
369721 [djberg96 gma] require 'file/temp'
369723 [michael schu] Thanks, that looks good, but unfortunately doesn't work for me. See
369747 [djberg96 gma] 43:in

^ Rfacebook
369722 [avijit.shand] I am using Rfacebook and want to extend permissions so that I can ask

^ Confused about RVM ?
369735 [lakshmanan v] I am really confused by the explanations given in RVM website. The
369754 [rick.denatal] Pretty much.
369758 [lakshmanan v] Thanks .. rvmrc resource was useful ..!

^ Iterate over a cartesian product.
369738 [handigandy-e] I have an array of N arrays A_i: [A_1,A_2,...,A_N].
+ 369740 [wagner.andre] search on "ruby cross_product".
+ 369753 [Ruby GoogleM] ary = [[1, 2], [3, 4, 5], [6, 7, 8, 9]]
  + 369764 [handigandy-e] That looks so cool I wish I knew what it does.
  | 369782 [mentionuse g] ary.first is the first element of ary.
  | 369783 [mentionuse g] Whoops, that should be ary.first.product, of course.
  + 369811 [shortcutter ] This looks nice.  How did you do the formatting?
    369820 [Ruby GoogleM] By hand :-)
    369823 [shortcutter ] Hm...

^ method! and method?
369741 [web.gma gmai] I am trying to find the meaning of ! and ? appended to method names but
+ 369744 [jgabrielygal] From the language functionality point of view, they don't mean
+ 369745 [eveith wwweb] First of all, it's a convention, nothing hard-wired.
+ 369746 [b.candler po] They don't mean anything - they are just part of the name. That is, in
| 369748 [wagner.andre] This blog post<http://dablog.rubypal.com/2007/8/15/bang-methods-or-danger-will-rubyist>has
+ 369752 [Ruby GoogleM] They aren't appended to the method name. They are part of the method

^ How does one get an absolute absolute file path?
369750 [byrnejb hart] I have a situation where I call a ruby script from a directory that is a
369751 [robert.dober] File.expand_path( File.dirname( __FILE__ ))
369756 [byrnejb hart] This construction returns the logical link as part of the path. I want
369765 [glennj ncf.c] By "logical link" I assume you mean symbolic link -- I've never heard of
369769 [byrnejb hart] You are correct, I was writing of symbolic links.

^ beginner's q about eval and/or code blocks
369773 [jeff43023 gm] This ruby program successfully prints all 5-letter words starting with
369774 [b.candler po] str = $stdin.gets.chomp
+ 369780 [jeff43023 gm] Excellent! Thanks. Now I'll spend some time digging into the Why of
+ 369781 [jeff43023 gm] "private method 'chomp' called for nil:NilClass (NoMethodError).
  369786 [b.candler po] No. It's because you're trying to do nil.chomp. Possibly, $stdin.gets is

^ Extend & Declarative relations between object attributes
369777 [ralphs dos32] I give.  What does
369779 [mentionuse g] Extend is include on the eigenclass/metaclass/singleton class. In this

^ Ruby Multi-threading?
369796 [spare frigid] I read a Ruby e-book recently that indicated that although Ruby has
+ 369797 [cremes.devli] Just about any book on this topic will have outdated information. Here's the breakdown.
| + 369798 [botpena gmai] nice. is the java code for this open for perusal?
| | 369799 [tshanky gmai] ...
| + 369803 [ninja slapha] Nice summary, mostly accurate. I'd just like to add that, interestingly...
| | 369806 [shortcutter ] ... using DRb for example which makes IPC a breeze.  Absolutely agree.
| + 369873 [tony.arcieri] FYI, IronRuby has true concurrent multithreading just like JRuby.
+ 369800 [me waltonhoo] This is a rather confusing issue, but I'll try to give you a basic summary.
+ 369824 [wyhaines gma] I'm wrapping up a second installment that covers Ruby 1.9 with it's
| 370444 [jarmo.p gmai] Kirk, i'm really waiting for that post :) The first one was pretty
+ 369853 [joelvanderwe] Maybe this is not relevant to your case, but it's also worth

^ How to send whole file and get response from webservice
369802 [ipec.dinesh ] I have problem doing the following.
369808 [ryand-ruby z] How much are you getting paid for this gig, and how much of a cut are =
369812 [ipec.dinesh ] Its for my work. So neither i am offering anyting nor i am getting paid.
369830 [b.candler po] You don't get paid for your work?!

^ gem mysql on windows problem
369804 [jasonjoo.god] I used to running ruby apps on ubuntu but someone else would running them on
369841 [luislavena g] on
369947 [jasonjoo.god] yeah, it works !
369972 [luislavena g] in

^ Errors while updating gems...
369805 [erafaloff gm] I'm new to Ruby, so please forgive me if this seems a tad bit obvious :)
369809 [ryand-ruby z] /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h=
369879 [erafaloff gm] Good preliminary. I installed Apple's developer tools and problem

^ best ruby web framework?
369810 [mohammedrash] As my subject line says the question is about ruby web framework
+ 369813 [rubyview gma] The most popular is Rails certainly.
| 369814 [mohammedrash] which is the best in terms of performance and speed
| + 369817 [steven.ellio] I think your best bet us to go with rails 3 and ruby 1.9.2.
| + 369832 [b.candler po] mod_ruby does exist but please don't use it - very few people use it and
| + 369833 [phlip2005 gm] and if you become popular, you will need to cache as much generated
+ 369829 [b.candler po] The "best" framework depends on what your requirements are. If there
+ 369835 [martindemell] If you're specifically interested in apache integration, someone
  369836 [mikeowens gm] If you like Apache (and Debian/Ubuntu), you might like rsp. I have spent

^ Nokogiri was built against LibXML version 2.7.7, but has dynamically loaded 2.7.3
369815 [unbewusst.se] Nokogiri was built against LibXML version 2.7.7, but has dynamically

^ regexp property under windows
369816 [ntysdd gmail] though properties of regexp under Linux is OK,ruby under windows doesn't
369842 [luislavena g] That seems a bug.

^ ruby gooeys
369819 [iainspeed gm] I'm looking for recommendations on GUI's. Primarily OSX, I'm not =
+ 369821 [mohammedrash] FXRuby
| + 369834 [iainspeed gm] Thanks, I'm just trying to get it to compile. Once I've worked out what =
| | 369854 [steve stevek] Because we only have three our four contributors, and Shoes is
| + 369838 [josh.cheek g] Last I heard, FXRuby, and FOX Toolkit were no longer being developed
|   369840 [javaalley gm] I use wxRuby for my GUI apps.  I am not sure about Mac but I have great
|   369848 [mohammedrash] That news was wrong. Lyle Johnson has stopped contributing to FXRuby for
+ 369822 [iainspeed gm] Is should say, something that will work with Ruby 1.9.2 if possible, =
| + 369827 [steve stevek] Yep, we'll be targeting 1.9.2 for Shoes 3.1.
| + 369828 [steve stevek] Yep, we'll be targeting 1.9.2 for Shoes 3.1.
+ 369849 [tony.arcieri] There's MonkeyBars for JRuby

^ [RubyConf] More seats on sale today
369825 [dblack rubyp] More tickets for RubyConf will be going on sale today (thanks to some
369945 [ryand-ruby z] I've got to ask... why are tickets on sale before speakers and schedule =
+ 369982 [james grayso] run
| 369984 [Rob AgileCon] * limited seats are opened and call for talks is still open
+ 369986 [matt technor] I'm ok with it, I trust them to put together a good lineup.
+ 369997 [gwtmp01 mac.] run
  370015 [dblack rubyp] We'll start at 9:00 on Thursday, and end around 4:00 on Saturday. As for

^ ruby_init_loadpath() vs Win32
369826 [phlip2005 gm] If I set RUBYLIB to "C:\phlip\tools\ruby-1.9.1-p0\" before running an
369843 [luislavena g] Are you linking to a shared library of ruby or statically linked?

^ property short cut for read-ony instance access, but....
369837 [web.gma gmai] Is there a short cut for creating a property that has read-only access
369839 [shortcutter ] With a little meta programming you can do

^ Re: Serialport script hangs during sp.gets
369845 [tony4l yahoo] Thanks so much for posting the response. You saved my day!

^ OT Japanese for NLP
369846 [transfire gm] Anyone know the Japanese equivalent to "Natural Language
369847 [vishal marks] Can you mail me the exact requirements
369856 [kbloom gmail] He's looking to translate the phrase "Natural Language Processing" into
369857 [mo_mail ongh] My software turned up: 自然言語処理 - searching for this in Google
369941 [transfire gm] =90=86 - searching for this in Google

^ [ANN] require_all 1.2.0
369850 [jarmo.p gmai] I've released a new version of the gem called require_all which was

^ access super from yield block?
369859 [web.gma gmai] Is there a way to access super from a yield block?
+ 369860 [shortcutter ] What exactly are trying to achieve?
| 369863 [web.gma gmai] I have class A that derives from class B
| + 369868 [wishdev gmai] Afternoon,
| + 369869 [joelvanderwe] That should work. Can you isolate the problem in a small piece of code
| + 369871 [b.candler po] There is no such method as A#super. super means "call the same named
| + 369882 [shortcutter ] What should "super argv" do?  Your description is completele technical
+ 369862 [sutniuq gmx.] None I'm aware of. However, with a heavy bit of metaprogramming,

^ Rspec and autotest problems
369866 [hristo.tentc] I am running rails 3. I installed the rails gem. (OS Win7 64bit)
+ 369870 [hristo.tentc] I mean 'I installed the rspec gem.'
+ 369872 [b.candler po] Rails problems belong in a Rails forum.
  369886 [hristo.tentc] I am really sorry. Mods, please, delete this topic.

^ Best method to use TCPSocket
369874 [adambouchard] I'm having an issue getting an expected response via TCPSocket.  My goal
369887 [b.candler po] Don't use recv on a TCP socket.

^ Get the beginning of the hour and the end of the hour
369875 [rfsllc gmail] I would like to Get the beginning of the current hour and the end of the
+ 369876 [jeremy bopp.] Time.at(Time.now.to_i / 3600 * 3600)
+ 369878 [xeno.campano] Time.local instantiation method?
  369881 [rfsllc gmail] awesome...thats what I wanted
  369891 [shortcutter ] Not so fast!  Is this really the end?  Which hour does

^ [ANN] Germany.rb 2010, September 18th and 19th in Leipzig
369880 [daniel boven] Dear Rubyists,

^ using translation variable in link_to
369884 [arunajasmine] In ROR , i m having a line like
+ 369885 [ryand-ruby z] you should ask on the rubyonrails forum instead.
+ 369906 [gwtmp01 mac.] Without the actual error message I'm guessing but you probably want =
  369946 [arunajasmine] Thanks Gary .

^ How best to include paths to ruby 1.8.7?
369888 [dglnz2 gmail] I have a set of scripts working on my development linux PC.

^ Re: ruby-sendfile 0.9.1
369889 [amittomer25 ] will it be useful for large file download ???
369897 [b.candler po] You are re-opening a four-and-a-half year old thread ???

^ HTTP client to post XML RAW_DATA to restful API
369890 [constantin.n] Hey
369894 [b.candler po] restclient can do this. Otherwise, just use Net::HTTP directly.
369948 [constantin.n] Cheers for that
369949 [b.candler po] Which, restclient or Net::HTTP?

^ def swfupload_file=(data)
369892 [abder.rahman] def swfupload_file=(data)
369893 [b.candler po] The method's name is "swfupload_file=", and (data) is the one argument
369895 [abder.rahman] Thanks Brian for your clarification.

^ How the regular expression to match "//"?
369898 [imelody msn.] In C/C++ language, can use "//" to comment,such as "//i++ "
369899 [b.candler po] if line =~ /^\/\//
+ 369901 [shortcutter ] if %r{^\s*//} =3D~ line
+ 369902 [imelody msn.] understand, thanks you very much! :-)

^ Net::PingExternal gives an errror
369900 [w3bwizart.be] I'm having a problem with a tutorial to ping whatever.
+ 369904 [sandor.szuec] # gem i net-ping
+ 369907 [djberg96 gma] Try Net::Ping::External
  369917 [w3bwizart.be] if Net::Ping::TCP.new('loocaalhost')
  369918 [djberg96 gma] You didn't call the ping? method in your example. You just called the
  369919 [w3bwizart.be] thanks Dan

^ REXML advice - output
369903 [stuart.clark] Hey all,
+ 369905 [shortcutter ] Just iterate over all "ItemInfo" elements and print values from sub
| + 369971 [stuart.clark] Thanks for getting back to me. I will look into this and see how I get
| | 370121 [brabuhr gmai] ...
| + 370118 [stuart.clark] info = doc.elements.to_a("//UserData/List/ItemInfo/")
+ 372630 [stuart.clark] Could anybody help me with an issue you I am having with some XML I am
| 372634 [brabuhr gmai] Data
+ 372814 [stuart.clark] My issue was due to the mis matched tags actually, it was a broken XML

^ Running a .rb file under Windows (beginner's question)
369908 [howard braze] I just installed Ruby on a Windows XP machine.   At the start of the
369909 [reachme char] Assuming you installed Ruby using the RubyInstaller package, look in
369910 [howard braze] Thanks.   That worked.   I didn't have to change the 1st line.   I
369912 [reachme char] =C2=A0 I
369924 [howard braze] I opened terminal in that directory (using Path Finder), and tried the
369935 [luislavena g] directly.

^ Traversing a friend graph - the ruby way?
369911 [astahl hi5.c] Recently, I needed to write some code to traverse friend graphs on my
369914 [b.candler po] That's a perfectly good way to traverse a graph. I'd just say: don't use

^ NP-Hard Geolocatoin Problem
369916 [jrgutier gma] I am trying to create a program that maximizes the distances of

^ Re: NP-Hard Geolocation Problem
369920 [mbj seonic.n] In a first step you can classify each person to a "neighbor group", this
369932 [efqdalton uo] I found a heuristic solution that has complexity O(n*log(n)) per
369933 [efqdalton uo] *but continue considering the lack of sleep...

^ converting number to its digits as an array
369921 [ianphorsman ] I'm new to ruby and I was trying to solve a problem where I convert a
+ 369922 [astahl hi5.c] Not terribly difficult to accomplish.  Check out the .split() method of
| 369930 [ianphorsman ] Thank you.
+ 370011 [angel_steel ] irb(main):001:0> "12345".scan(/./)
+ 370028 [Ruby GoogleM] There's a myriad ways to do that. I find this one the simplest,
  370032 [ianphorsman ] If I try one of these methods, I still can't go from element to element
  370034 [josh.cheek g] All of these methods return an Array. Why don't you show us what you're
  370035 [ianphorsman ] It says I can't do the each method, but if I have the array, can't I
  370036 [b.candler po] The value of this expression is an array, but you don't assign it to
  370038 [ianphorsman ] Thank you so much! That really clarifies things. It did the program

^ Ruby IDE for Windows
369923 [tom tomwardr] I've looked at quite a few IDE's (or editors) for Ruby on Windows, but
+ 369925 [astahl hi5.c] That's odd... I'm running NetBeans 6.8 on Ubuntu, and it's got code
+ 369926 [tom tomwardr] I've just found that Netbeans does indeed have code completion, and it
+ 369927 [me waltonhoo] I'm afraid code completion for Ruby is pretty much out. Between dynamic
| 369931 [Ruby GoogleM] Why? Other, much more dynamic languages have had that for more than 30
| 369936 [me waltonhoo] I suppose it depends on what you mean by code completion.  Since the OP
+ 369928 [luislavena g] Netbeans does what you're saying, also RubyMine.
+ 369929 [michel demaz] I have been using NetBeans for three years now. I tried Rubymine, but
+ 369934 [michael.broo] Try JetBrains RubyMine.  It just replaced my previous favorite, Embarcadero

^ undefined local variable or method '_FILE_'
369937 [diogoveras g] Don't know why but when I try to use the _FILE_ variable I'm getting the
369938 [jeremy bopp.] You need to use __FILE__ (note the 2 underscores on each side).
369939 [diogoveras g] It worked. Can't believe, you are right, have no idea how I let this
threads.html
top