I am Win32 Programmer looking for answers on Ruby
- How do you invoke a .rb file from the irb shell?
- If i wish you deploy my ruby code into Production server…whats the
RunTime I have to install 1st?
- If I write Ruby CGI Apps…How do I make it work on IIS 6.0?
- Is there a Ruby IDE?
TIA
On 8/17/06, Dreamn 11 [email protected] wrote:
I am Win32 Programmer looking for answers on Ruby
- How do you invoke a .rb file from the irb shell?
- If i wish you deploy my ruby code into Production server…whats the
RunTime I have to install 1st?
- If I write Ruby CGI Apps…How do I make it work on IIS 6.0?
- Is there a Ruby IDE?
TIA
- require ‘whatever.rb’ -or- load ‘whatever.rb’
- runtime is basicly the ruby distribution - the interpreter and the
libs. on windows it probably means the one-click installer
(http://rubyforge.org/projects/rubyinstaller)
- don’t know IIS, but I’d that by having IIS run them
Or, using
intermediate ruby webserver(s) like mongrel or webrick. Or, if it is
possible, but using FCGI/FastCGI/SCGI (plain old CGI is too slow most
of the time).
On 8/17/06, Dreamn 11 [email protected] wrote:
I am Win32 Programmer looking for answers on Ruby
- How do you invoke a .rb file from the irb shell?
If you want to include it once (a library, perhaps), use require, as in
require ‘somefile’ # will try to load somefile.rb or a .dll, .so, .o
and so on
Or if you want to run a file as many times you wish, use load:
load ‘somefile’
- If i wish you deploy my ruby code into Production server…whats the
RunTime I have to install 1st?
Whats server? There’s mod_ruby for Apache.
- If I write Ruby CGI Apps…How do I make it work on IIS 6.0?
If you’re using Rails, see
http://wiki.rubyonrails.org/rails/pages/HowtoSetupIIS
Um - you forgot www.sapphiresteel.com - Ruby In Steel 
Huw C.
http://www.sapphiresteel.com
Ruby P.ming In Visual Studio 2005
[email protected] wrote in message
news:[email protected]…
Hey!
Can anybody tell me if there’s a way to find what the domain of a url is
?
I was thinking somehow using Net::HTTP?
e.g.
del.icio.us => icio.us
-or-
mrboulder.blogspot.com => blogspot.com
Thanks!
Gustav
If you’d like a personal recommendation to narrow down this list, I like
RadRails better than any other Ruby IDE I’ve tried. The ones I’ve tried
are Komodo, Eclipse + RDT, FreeRIDE, SciTE and Arachno Ruby.
On Sep 5, 2006, at 10:02 AM, Gustav - Railist wrote:
mrboulder.blogspot.com => blogspot.com
Thanks!
Gustav
require ‘uri’
uri = URI.parse( ‘http://del.icio.us’ )
puts uri.host
Unfortunately you can’t get more fine grained than that without
asking DNS. Why? Because ruby can’t know all the top-level domains.
On 9/5/06, Gustav - Railist [email protected] wrote:
Thanks!
Gustav
Look at URI it it does something for you. Anyway, the question is more
complicated than it seems (take 4 level domains for example).
Basically url.split(‘.’)[1…-1] could make it.
Logan C. wrote:
uri = URI.parse( ‘http://del.icio.us’ )
puts uri.host
Unfortunately you can’t get more fine grained than that without asking
DNS. Why? Because ruby can’t know all the top-level domains.
Makes perfect sense,
does anyone know how to ask DNS for a url then?
Thanks
G
On Sep 5, 2006, at 10:16 AM, Jan S. wrote:
Look at URI it it does something for you. Anyway, the question is more
complicated than it seems (take 4 level domains for example).
Basically url.split(‘.’)[1…-1] could make it.
Well, no it couldn’t 
amazon.co.uk for instance.