Hi, all. Just wondering if anyone has tried using the Paperclip file upload plugin with Backgroundrb. My current implementation uses attachment_fu - I save the file initially to the file system without generating thumbs, then a bdrb process picks up that file, generates thumbs, and saves to S3. This works fine and dandy, the only hitch is I want to save image metadata in the same table as my model (User, in this case), which is how Paperclip does it. My question is, how would you pass off file uploading/thumbnail generation/S3 upload to a background process using Paperclip?

Bobby


On May 22, 2008, at 9:34 PM, [EMAIL PROTECTED] wrote:

Send Backgroundrb-devel mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://rubyforge.org/mailman/listinfo/backgroundrb-devel
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Backgroundrb-devel digest..."


Today's Topics:

  1. Does backgroundrb support SSL? (Jim Salinas)
  2. Re: Does backgroundrb support SSL? (Jim Salinas)
  3. Re: How to know the environment    (development/test/production)
     inside a worker (Ryan Leavengood)
  4. Re: Does backgroundrb support SSL? (Ryan Leavengood)
  5. Re: Schedule write errors? (Joel Chippindale)
  6. Re: Does backgroundrb support SSL? (Jim Salinas)


----------------------------------------------------------------------

Message: 1
Date: Wed, 21 May 2008 17:18:54 -0500
From: "Jim Salinas" <[EMAIL PROTECTED]>
Subject: [Backgroundrb-devel] Does backgroundrb support SSL?
To: [email protected]
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Does backgroundrb support SSL like drb? I was unable to find any sample configurations including SSL. Any help would be appreciated, thanks. -jim
salinas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080521/9588825a/attachment-0001.html >

------------------------------

Message: 2
Date: Wed, 21 May 2008 17:58:16 -0500
From: "Jim Salinas" <[EMAIL PROTECTED]>
Subject: Re: [Backgroundrb-devel] Does backgroundrb support SSL?
To: "David Masover" <[EMAIL PROTECTED]>, [email protected]
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Thanks for replay David, I just did a search and only found a mention of drb
in a unit test and from digging around backgroundrb seems to have been
rewritten recently without drb. If this incorrect, someone please correct
me. :-)

On Wed, May 21, 2008 at 5:30 PM, David Masover <[EMAIL PROTECTED]> wrote:

I asked this question almost a month ago, and got no answer. backgroundrb
does use drb as a backend, but I see no way to configure SSL, or Unix
sockets, even though drb supports both.

On Wed, May 21, 2008 at 5:18 PM, Jim Salinas <[EMAIL PROTECTED]> wrote:

Does backgroundrb support SSL like drb? I was unable to find any sample configurations including SSL. Any help would be appreciated, thanks. -jim
salinas

_______________________________________________
Backgroundrb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/backgroundrb-devel



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080521/723b3696/attachment-0001.html >

------------------------------

Message: 3
Date: Thu, 22 May 2008 01:05:23 -0400
From: "Ryan Leavengood" <[EMAIL PROTECTED]>
Subject: Re: [Backgroundrb-devel] How to know the environment
        (development/test/production) inside a worker
To: "Sarat Kongara" <[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

On 5/21/08, Sarat Kongara <[EMAIL PROTECTED]> wrote:

I am not sure how to figure out the environment with which the backgroundRb is started from inside a worker task. Any help is appreciated. Thanks for
your time.

ENV["RAILS_ENV"] is defined properly inside the workers.

Ryan


------------------------------

Message: 4
Date: Thu, 22 May 2008 01:14:22 -0400
From: "Ryan Leavengood" <[EMAIL PROTECTED]>
Subject: Re: [Backgroundrb-devel] Does backgroundrb support SSL?
To: "Jim Salinas" <[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

On 5/21/08, Jim Salinas <[EMAIL PROTECTED]> wrote:
Thanks for replay David, I just did a search and only found a mention of drb in a unit test and from digging around backgroundrb seems to have been rewritten recently without drb. If this incorrect, someone please correct
me. :-)

BackgrounDRb has not used DRb for sometime, the name is just a bit
misleading now ;)

It was switched to use a event framework a while ago and more recently
has switched to the pure Ruby 'packet' library.

As far as I can tell packet does not support SSL, but I am far from an
expert on the subject. I assume you have some sensitive data you need
to pass to BackgrounDRb from Rails that you don't want in the clear?

Maybe you could just use the database to pass that information, only
passing database IDs or unique tokens to BackgrounDRb for it to load
the information. Of course depending on your database the information
may still get passed around in the clear...

Ryan


------------------------------

Message: 5
Date: Thu, 22 May 2008 12:08:57 +0100
From: "Joel Chippindale" <[EMAIL PROTECTED]>
Subject: Re: [Backgroundrb-devel] Schedule write errors?
To: hemant <[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="utf-8"

Thanks very much for this, it seems to have resolved the problem very
nicely.
J.
2008/5/21 hemant <[EMAIL PROTECTED]>:

Look in the mail previous mail by Mike also see my response. You can
try out git versions of packet and backgroundrb and see if this fixes
your problem.


http://gnufied.org/2008/05/21/bleeding-edge-version-of-backgroundrb-for-better-memory-usage/


On Wed, May 21, 2008 at 9:19 PM, Joel Chippindale
<[EMAIL PROTECTED]> wrote:
My BackgrounDRb server intermittently bails out with the following
exception
in the middle of a long running task running on a Worker sub classed
from BackgrounDRb::MetaWorker (the point at which it raises this
exception
is different each time it runs)

/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:145:in
`schedule_write': You have a nil object when you didn't expect it!
(NoMethodError)
The error occurred while evaluating nil.instance from

/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_nbio.rb:57:in
`write_and_schedule'
from

/Users/joel/git/deathstar/vendor/rails/activerecord/lib/../../ activesupport/lib/active_support/whiny_nil.rb:35:in
`each_with_index'
from

/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_nbio.rb:51:in
`each'
from

/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_nbio.rb:51:in
`each_with_index'
from

/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_nbio.rb:51:in
`write_and_schedule'
from

/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_nbio.rb:72:in
`dump_object'
from

/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_worker.rb:31:in
`send_data'
from

/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_worker.rb:40:in
`send_request'
... 23 levels...
from

/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_master.rb:20:in
`run'
from

/Users/joel/git/deathstar/vendor/plugins/backgroundrb/server/lib/ master_worker.rb:166:in
`initialize'
from script/backgroundrb:60:in `new'
from script/backgroundrb:60
I am running BackgrounDRb (r 324 from the subversion repository), with
packet v 0.1.5 on OS X.
Any suggestions for resolving this problem are welcomed.
J.
_______________________________________________
Backgroundrb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/backgroundrb-devel




--
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.

http://gnufied.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080522/0de0774c/attachment-0001.html >

------------------------------

Message: 6
Date: Thu, 22 May 2008 08:34:37 -0500
From: "Jim Salinas" <[EMAIL PROTECTED]>
Subject: Re: [Backgroundrb-devel] Does backgroundrb support SSL?
To: "Ryan Leavengood" <[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

I planned on pushing only database record IDs to the server, but maybe I
could encrypt/decrypt those IDs when sending them over the wire. From
looking at the server source, it is utilizing TCPSocket, so there is an opportunity I believe to layer SSL. Given some time, I'll investigate this
further, as this seems to be a better solution in the long run in my
opinion. -Jim


On Thu, May 22, 2008 at 12:14 AM, Ryan Leavengood <[EMAIL PROTECTED] >
wrote:

On 5/21/08, Jim Salinas <[EMAIL PROTECTED]> wrote:
Thanks for replay David, I just did a search and only found a mention of
drb
in a unit test and from digging around backgroundrb seems to have been rewritten recently without drb. If this incorrect, someone please correct
me. :-)

BackgrounDRb has not used DRb for sometime, the name is just a bit
misleading now ;)

It was switched to use a event framework a while ago and more recently
has switched to the pure Ruby 'packet' library.

As far as I can tell packet does not support SSL, but I am far from an
expert on the subject. I assume you have some sensitive data you need
to pass to BackgrounDRb from Rails that you don't want in the clear?

Maybe you could just use the database to pass that information, only
passing database IDs or unique tokens to BackgrounDRb for it to load
the information. Of course depending on your database the information
may still get passed around in the clear...

Ryan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080522/dc11844f/attachment.html >

------------------------------

_______________________________________________
Backgroundrb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/backgroundrb-devel

End of Backgroundrb-devel Digest, Vol 24, Issue 7
*************************************************

_______________________________________________
Backgroundrb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/backgroundrb-devel

Reply via email to