|
I found this error in Ruby console while I am testing a Rails application.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib /mongrel.rb:285: in `run': Ruby threads cannot be used in RubyCocoa without ...
Started by Teerasej on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Gt; Thread.new { puts 'hi' } (irb):3:in `irb_binding': Ruby threads cannot be used in RubyCocoa without patches to the Ruby interpreter hi=> #<Thread:0x103bf76e8 run>
It is probably/Library/Frameworks/RubyCocoa.....
|
|
Hi,
I am looking to understand conceptually what all goes in profiling a ruby or ruby on rails program (e.g. memory usage, speed of request dispatching, speed of connecting with external programs like DB) and what are the best tools (at a conceptual and...
Started by Vaibhav Gumashta on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The idea was to run them on JRuby and use JProfiler or other Java should look at Joe Damato's memory-profiler for Ruby
Also worth looking at is his ltrace patch.
For Ruby on Rails applications.
|
|
I've been wanting to learn Ruby for a long time since there seems to be alot of buzz about it the last couple years. From what I've seen/read there have been a few Ruby'esk things that have been brought over the .NET too.
Should I start with learning ...
Started by Chris Pietschmann on
, 16 posts
by 16 people.
Answer Snippets (Read the full thread at stackoverflow):
If you want to learn ....
It's fine.
Buy beta PDF right now for $24 and be coding late into the night tonight :)
Ruby is extremely fast With Rails book back in the Rails 1.2 days, it's a great book!
edit: I learned Ruby by doing a Rails.
|
Ask your Facebook Friends
|
Hi,
I'm planning to build a website that will be a simple CMS where users submit and view postings with videos, photos and text.
One decision I want to make is choosing between Ruby Enterprise Edition and Ruby 1.9.
Think I care about in order: 1- Performance...
Started by Tam on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
REE from my experience has a tendency to throw mallocs in odd places (Jan 2009 tab-output-caused-by-and-only-by-running-webrat... .
REE is more compatible by far (since it's just Ruby 1.8.6).
REE should generally use less RAM.
Ruby 1.9 is faster.
|
|
Hi,
I'm thinking about learning ruby and python a little bit, and it occurred to me, for what ruby/python is good for? When to use ruby and when python, or for what ruby/python is not for? :)
What should I do in these languages?
thanks
Started by feiroox on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
(OTOH, Ruby has a stronger metaprogramming)
If you want to know what people Ruby and Python are popular especially....
I believe Python is better for this than Ruby, but I could be wrong.
Language (like C) and make a binding for the code .
|
|
Hi.
I'm looking for extensible linux editor(GUI) that may be extended with plugins written in ruby. Editor shouldn't be written in java or ruby.
Any ideas?
Started by Daniel on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Obvious, but, um, how about Emacs?
http://www.google.com/search?q=ruby+emacs
You might find some help in this thread as well.
Not to be Mr.
You could try here for starters.
Vim has a ruby api.
|
|
Hi I am an experienced C/C++ developer but I am a novice in Ruby.
How can I call a C++ function from with in Ruby?
Sorry for the noob question.
Answer Snippets (Read the full thread at stackoverflow):
This is done using what is called-to-create-a-ruby-extension-in-c....
Even if it is a bit tricky, you can decide to write your own loader and bind your C++ library in Ruby.
You have 3 possibilities :
1) Ruby is able to load libraries.
|
|
Hi all, i want to know whether there are libraries like java httpclient in ruby? great thanks.
Started by Yousui on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I recommend using that first.
Have you tried either of these two?
ruby-httpclient
Patron
Ruby comes with the Net/HTTP library out of the box.
REST Client is pretty handy and easy to use library .
|
|
Someone posted something similar here , however I'm curious to which would run faster and save me more memory? I know that Matz as made many enhancements in 1.9 but I also stand behind the decisions the Phusion guys have made as well.
My question is which...
Started by Joseph Silvashy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Yehuda talk://www.oreillynet.com/pub/e/1338
Tiny....
Since Rails 3 will be highly optimized for Ruby 1.9, and Ruby 1.9 has MANY similar optimizations that REE has, Ruby 1.9 will likely be very close in memory usage, and faster than REE.
|
|
Hi,
How can I get the file name from a file path in Ruby?
For example if I have a path of "C:\projects\blah.dll"
and I just want the blah.
Is there a LastIndexOf function in Ruby?
Thanks
Paul
Started by dagda1 on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Ruby.rb") #=> "ruby.rb" File.basename("/home/gumby/work/ruby.rb", ".rb") #=> "ruby"
In your case; require 'pathname'
irb(main):007:0> Pathname.new('/opt/local/bin/ruby').basename
=> #<.
|