Displaying 20 results from an estimated 20000 matches similar to: "problem installing 'eventmachine' gem"
2011 Sep 26
2
undefined method `options' for #<EventMachine::HttpClien
Hi , I am writing a rake task to consume twitter stream API. The task
contains the following code:
consumer = OAuth::Consumer.new(CONSUMER_KEY, CONSUMER_SECRET, :site =>
''http://twitter.com'')
access_token =
OAuth::AccessToken.new(consumer,ACCESS_TOKEN,ACCESS_TOKEN_SECRET)
oauth_params = {:consumer => consumer, :token => access_token}
EventMachine.run do
# now,
2008 Apr 23
2
Status of EventMachine.fork
Hi All,
I''m currently looking into doing a bit of evented network programming
in ruby and i''m currently looking into packet, eventmachine and rev.
The problem is that I need to be able to fork and start a new reactor
within the forked child (it also should open a socket and write
status information back to the main process). I have not been able to
do this with EventMachine.
2007 Nov 09
1
EventMachine::run - How can I ensure that this
Friends,
I am writing an event system which has an interface on a web site which can create events.
The creation of events opens up EventMachine::run and connects to the event server, and sends messages.
The problem comes if this is run inside of say, event driven mongrel, where it will crash fatally, the same as:
EventMachine::run { EventMachine::run { } }
The only solution that
2008 Aug 22
6
EventMachine website down?
Hi all
Is the EventMachine website (www.rubyeventmachine.com) down? I can''t access
it from South Africa, and have tried using tor as well with no luck.
I''m kinda new to EventMachine, so I first have a lot of examples to work
through and reading to do before I start pestering the mailing list with
questions.
Thanks to everyone who partook in creating the library, so far
2007 Feb 25
6
Crash occurs where EventMachine.connect is
Hi everyone,
If you subclass EventMachine::Connection and call it outside an
EventMachine::run
event loop, EventMachine crashes! Example:
class Put < EventMachine::Connection
include EventMachine::Deferrable
HOST="localhost"
PORT=8080
def self.request(data)
EventMachine.connect(HOST, PORT, self) {|c|
c.instance_eval { @data = data }
}
end
#
2007 Dec 14
21
Some silly benchs (was: 1.9)
Guys,
Just for fun, I tried to see (I know, a silly way to test it) how much
overhead we have calling the C functions of the extensions.
the benchmark script and the results:
http://pastie.caboo.se/128646
The naive C extension:
http://pastie.caboo.se/128647
I compared 1.8.6 (VC6 and mingw builds) against a fresh checkout of ruby trunk.
What I understand from that is 1.9 is slower than 1.8
2007 Nov 07
4
Gracefully stopping EventMachine?
Hello all,
I''ve been learning Ruby and playing with a chat server I built using
GServer. After into an issue I found with GServer, that no one else seemed
to notice (actually, similar to this question, GServer is hard to kill
nicely, especially when you want to.), I found references to EventMachine,
and rebuilt my server using it. I much prefer EventMachine''s model.
The
2008 Jan 14
10
Using EventMachine to listen from non-network
I''ve actually found a way to make EventMachine listen to events from a
serial port, but only by using the pure Ruby version, using Guilliame
Pierronnet''s Ruby/SerialPort library. It turned out to be simpler
than I thought it would be:
require ''serialport''
$eventmachine_library = :pure_ruby
require ''eventmachine''
module EventMachine
class
2011 Sep 08
3
Newbie | Installing mysql2 gem
Hello everyone,
I wanted to learn about Ruby on Rails and its advantages and I decided
to start with some tutorials.
Unfortunately I''m forced to post my problem on the forum after days of
unsuccessful solutions.
I''ve installed Railsinstaller and mysql 5.5.15 64 bit version.
I''m running win 7. I''ve been using the following command:
C:\>gem install mysql2 --
2011 Oct 23
1
Problem using github gem on Windows 7
Hi all,
I''m new to this and trying to set up my dev environment on a
Window 7 x64 machine.
I used the latest version of RailsInstaller to start with.
I''m running into a problem using the github gem. When I try ''gh
create-from-local'', I get:
"You must ''gem install win32-open3'' to use the github command on
Windows"
However, when I
2018 Jul 26
2
Random behavior of mclapply
Hi,
I wondered about the behavior described in the following stackoverflow
question:
https://stackoverflow.com/questions/20674538/mclapply-returns-null-randomly
More specifically, I would like to know if you ever considered the
suggestion made in the comments of the first answer, namely to somehow warn
the user if one of the processes has been killed by the out-of-memory
killer ?
I am always
2007 May 21
13
swifty fly?
I heard about a new mongrel plugin or version that''s single threaded and
uses non-blocking IO with events. It''s called something like "swifty
fly". Anyone have a link for it?
Thanks.
2008 Mar 18
1
Eventmachine utils
I''m working on StrokeDB* right now and put pieces of networking stuff
into a separate repository "Eventmachine utils". There are 3 useful
libs already: protocol chaining, messaging protocol and marshalled
messaging protocol. Check them out :-)
Overview:
http://gitorious.org/projects/eventmachine-utils
Files:
2009 Mar 12
1
Rspec and EventMachine
Hey Guys,
I am trying to create a app that makes use of EventMachine.
As I recently fell in love with Rspec, I was trying to use it with our
EM. However, I have no idea how to do this. Also, I want to remove
network connections from the tests (as I might not be connected when
running them), so I think I should mock them up, but again... I don''t
know how to do this!
Any tips?
Thanks
2010 Sep 23
3
Can't install mysql2 gem on Windows 7
I am new to Ruby and have tried and failed several times installing
mysql2 gem on my windows 7 OS. I checked several forums for solutions
but still couldn''t get that installed. can someone help my out please?
below is the error:
c:\>gem install mysql2
Building native extensions. This could take a while.
ERROR: Error installing mysql2:
ERROR: Failed to build gem native
2019 Sep 29
2
speed up R_IsNA, R_IsNaN for vector input
Dear R developers,
I spotted that R_isNA and R_IsNaN could be improved when applied on a
vector where we could take out small part of their logic, run it once,
and then reuse inside the loop.
I setup tiny plain-C experiment. Taking R_IsNA, R_IsNaN from R's
arithmetic.c, and building R_vIsNA and R_vIsNaN accordingly.
For double input of size 1e9 (having some NA and NaN) I observed
following
2012 Mar 07
6
Can't find the PostgreSQL client library (libpq)
When i try it start my ruby server i get a error that looks like
rails server Could not find pg-0.12.2 in any of the sources
Run `bundle install` to install missing gems.
I dont know what to do
Thanks for all the help
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2018 May 23
1
patch for scan.c for long vector support
I noticed that scan.c does not yet support long vectors. It was causing a
problem in the rstan library (https://github.com/stan-dev/rstan/issues/530)
I was able to patch base R to add long vector support. See the following
gist.
https://gist.github.com/aaronjg/f39e5966687ca004dab5a10e7655c648
I could not make a bugzilla account, so I am sending the patch here.
[[alternative HTML version
2010 Sep 22
12
Mongrel service
Hi all
Environment:
Windows 7 64 bit
Ruby 1.9.2.p0
Rails 3
I am getting the following error when I run the following command
mongrel_rails service::install -N MyTestApp_4001 -p 4001 -e production:
"Msvcrt-ruby18.dll is missing"
Thanks in advance
Gerhard
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2012 Feb 01
10
Very strange problem: Ton's of ruby process just running simple command "rails --version" or "rails
Very strange problem: Ton''s of ruby process just running simple command
"rails --version" or "rails new test1""
I have very strange problem. I try to run this simple command
"rails new test1" --> this suppose to be create a new rails site.
"rails --version" --> even this I got ton''s of ruby process
but I got a lot of ruby