Displaying 20 results from an estimated 2000 matches similar to: "Can I do this, question"
2006 Jul 11
32
Database Concurrency Without a Web Server?
My Rails application requires a very busy worker process running in the
background at all times. I am launching this non-interactive process
using script/runner. This process is very busy and is communicating
with the MySQL server constantly. As I started putting some load on the
system to test, I started running into performance issues.
I have since discovered that Rails is only using 1
2006 Dec 07
2
backgrounDRb problems with results and MiddleMan
Hi there,
I''ve been experimenting with implementing BackgroundDRb in my rails app but
am running into some problems.
The primary problem I''m getting is in cleaning up worker threads, or getting
any kind of response out of worker threads.
If try using the response function/hash in my Worker the worker will not
execute reporting that response is an unknown variable or function.
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
2008 Mar 19
1
Database Triggered Events in Rails.
I''m creating a message queue system, (think JMS message queue)
Basically, I''ll be firing off an http request as soon as a row appears
in a database.
Now in past implementations I''ve done the following.
1. Polled the database every 0.10 seconds.
2. If something was there to work, I''d tag it as complete.
3. Create a separate thread. (no further database hits
2008 Jan 03
1
Trac not for general use?
Hi devs,
I was trying to open a new ticket with a minor doc patch at the
BackgroundDrb Trac (http://backgroundrb.devjavu.com/) and it seems
like only admins have permission to do so. Is this intended?
I read in the readme that patches should be mailed to this list, but I
much prefer to use Trac since there''s already one set up. Any reason
Trac is not open to registered Devjavu users?
2008 May 20
1
Couple questions on BDRb and concurrent processing
My Rails site uses BackgroundDRb and I have a couple of questions:
1. Can someone point me to some sample code/examples for how to use
thread_pool? The website doc says to add a line
======
pool_size 10
======
in my Worker class which seems straightforward.
I wasn''t able to understand this part though:
=========
thread_pool.defer(wiki_scrap_url) { |wiki_url| scrap_wikipedia(wiki_url) }
2010 Jul 09
4
How can I run this in Wine
I am trying to run Soul of the Ultimate Nation on a macbook pro and im not sure how to get it to work. Can anyone help me out? Here are links to the websites. You have to install the reactor for the game and the reactor itself. I was able to install the reactor, but I wasn't able to sign in. Anyone have any hints?
sun.ijji.com (this is the site for the game)
www.ijji.com (those are the
2007 Oct 24
4
Need advice - which version to use?
Greetings!
I could use some advice on which version of BackgrounDrb to use in my current situation. I''ve implemented the initial, single-process multi-threaded version in a previous site, but have no experience with the new version. Current situation is as follows.
The application involves personal health information and so has very stringent session management requirements. My
2010 Aug 04
6
Ijji Reactor
Yo'z, new here and all, and rather weak in the knowledge department of linux/ubuntu and wine.
I'm fairly sure i'm running the latest wine, i installed / updated wine and all that stuff about a month ago so yeah.
I'm basically trying to use Ijji Reactor, but it won't let me sign in at all. I don't know how to get the wine log and all of that @_@;
2006 Sep 25
3
Engine Yard blog
Just received the news from Tom Mornini.
Congrats Ezra for the new Engine Yard site and the blog you will be
collaborating.
Hope to read you there soon.
http://www.engineyard.com/
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060925/3f251fa4/attachment.html
2007 Apr 05
4
backgrounddrb problem..
i''m having some problems getting a simple example going with
backgrounDRB.
after i set my worker to work i try to get back the result like this:
w = MiddleMan.worker(key)
w.items comes back as DRb::DRbUnknown (i have items as attr_reader in
my worker and access it inside there with @items). the result is
actually activerecord results in an array. when i change it so my
worker puts
2008 Jan 18
8
Query All Worker
What does the method query_all_workers() do? There is no documentation
on what this method returns (1.0.1 version).
Orion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080118/9f9b8112/attachment.html
2006 May 23
8
Can Win32 service more than one rails request at a time?
Hi,
I am trying to run Mongrel on win32 to serve an internal rails application.
We are accessing legacy data, and some transactions can take 5 to 10 seconds. This is holding up every other request. The -n does not seem to be supported on Win32.
Am I missing something, or should I look elsewhere to serve my Rails app on win32?
Thanks,
Walt
--
No virus found in this outgoing message.
2007 Sep 11
3
ActiveRecord, blocking or async, logging, syslog/udp
Here''s a gedanken experiment for those w/ far more knowledge than I about
ActiveRecord, etc.:
Let''s say my database is very remote and on a very slow machine. Let''s
further say that my app has an action that leads to a very simple insert
into the "impressions" table of the db, a la "INSERT INTO impressions(docid)
VALUES($docid);" - and
2008 Jun 02
3
Adviced way of tagging music
I change a lot of my CD to Ogg to be able to listen them easily from my
computer (I use foobar, I was used to WMP but it does not support library
for Ogg files and plug-ins I found for this where poor) without the need for
frequent CD changing.
I like my music to be richly tagged. But with classical music CD it is a
real pain to tag those files. Typical problems involve:
- single CD
2006 May 20
3
multithreaded action
I have an action in a controller that generates and returns a custom
png-file, it goes something like this:
def custompng
#1 gather some userdata from params.
#2 make a system call to an advanced java application that renders a
png based on the custom data. stores the png on disk.
#3 read the png into rails
#4 send the png to the browser with method send_data
#5 delete the
2007 Dec 09
38
libevent
Hello,
I have been looking at the Ruby/EventMachine. First let me say it look very
good. Reactor model with no threads makes for fast reliable server, and I
have read about marvelous Twisted framework for Python and am glad to see
something similar for Ruby.
I am writing network app with Ruby threads now and it very slow, and I try
new Ruby 1.9 with native threads that make it much slower.
2005 Mar 08
29
Interrupt levels
I''m tracking performance on the machine I installed yesterday.
mutt running on one Xen instance, accessing via imap to another
instance, accessing via nfs the maildir in another instances, seems
little laggy when moving up and down the message index list.
Network latency seems low < 30ms on average.
So I was tracking vmstat.
On the mutt instances is seems reasonable:
[nic@shell:~]
2006 Oct 04
0
first_run timezone weirdness
If you''re in a timezone with an abbreviation that map to more than one
timezone (eg, CST), first_run may not work as you expect it to.
Witness:
$ irb -r time
irb(main):001:0> Time.now
=> Wed Oct 04 20:37:24 CST 2006
irb(main):002:0> Time.parse(Time.now.to_s)
=> Thu Oct 05 10:37:30 CST 2006
Notice the 14 extra hours... Time.parse converted the time thinking
CST meant -06:00