Displaying 20 results from an estimated 100 matches similar to: "More pleasant / concise API"
2007 Dec 17
7
Get "some read error" on calls to worker
I''m running the latest from svn (rev 285). I''ve been having a problem
launching a process repeatedly. What happens is that I get a debug
message "some read error" and then the worker refuses to run again.
I''ve stripped my worker down to just doing a puts and it still happens.
Like the other threads I want to launch my workers as needed, however I
get the
2008 Mar 28
5
Upgrading from older version - how?
Hi there,
We''ve been using previous version of bdrb (drb based one) for a while
and it was running relatively OK. We recently attempted to upgrade to
the new version to keep up / use supported version but we ended up
reverting to the older version.
Here are the things that moved us to revert :
1) With the workers we never manage to pass this error:
''''
You have a nil
2008 Jan 29
5
Authoritative Documentation
I''ve been using backgroundrb for... about an hour now. I must say, I''m
impressed.
But I''m a bit stumped on where to find the "official" documentation.
There''s an API online at backgroundrb.rubyforge.org, but I don''t see
the methods available for MiddleMan, etc.
Right now, I''m trying to figure out how to get a list of all
2008 Jan 03
1
models loading
Hi there,
In the latest releases bdrb attempts to load all models during startup
routine. We have models that depend on the particular RUBY_PLATFORM
but they live in the same models directory. It seems that the
inability to load them stops bdrb. Could the models requiring /
loading be done one demand, the same as Rails does?
thanks,
emil
2007 Nov 16
1
Backgroundrb with Load Balancing Rails engines
Hi there,
We run several (3-4) Rails servers behind the reverse proxy / load
balancing web server serving the single application. All Rails
instances share the same database and use the database as a session
storage. Memcached is also part of the picture.
I''m looking into using Backgroundrb for some large uploads / parsing
task that provide progress status updates (via ajax calls).
2008 Sep 24
1
Clearing cached results
I''m trying to figure out how to clear the for a worker from my
controller.
In my aysnc_xxx process I set cache[key]. However, I don''t see an easy
way to clear the cache from a controller with invoking something on
the worker.
What I was looking for was something like
MiddleMan(:worker_name, :worker_key_name).cache[key]=
Is there something like that and I''m just
2009 Mar 27
1
UTF8 postgres args saving issue
Hi, All
I have an encountered an issue where the args field is not saved correctly
to the database. I encounter an error like this:
ActiveRecord::StatementInvalid (RuntimeError: ERROR C22021 M invalid
byte sequence for encoding "UTF8": 0xcb3a H This error can also happen if
the byte sequence does not match the encoding expected by the server, which
is controlled by
2007 Dec 10
21
BackgrounDRb 1.0 pre-release available now
Hi Folks,
We are glad to announce shiny new release of BackgrounDRb, which will
soon become 1.0.
A quick summary of changes:
- BackgrounDRb is no londer DRb, its based on event driven network
programming library packet ( http://www.packet.googlecode.com ) .
- Since we moved to packet, many nasty thread issues, result hash
corruption issues are totally gone. Lots of work has went in
making
2007 Dec 06
10
Feedback on RC2
I tried to upgrade my existing application to RC2 last night. Like many, I
use this mostly for running scheduled tasks. For the moment, I''ve abandoned
the effort, but am looking forward to being able to use this. Feedback
below:
First, the reason I was looking forward to this upgrade was to use the
threaded scheduler. I have an application with long-running tasks. I found
that
2001 Oct 11
1
A Pleasant Surprise
Since RC2 was released, I've started re-building the music library I
left behind at my previous job (all my stuff from CDs, ripped into
MP3s). Recently I started an aggressive campaign of converting my
CDs to vorbis files... I'm doing about 6 or 7 CDs a day at work =)
Yesterday I was listening to my Talk Talk album, and noticed that
on this one live track, the stereo seemed to have
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
Hi.
I am using BackgrounDRb to process thumbnails and upload to S3 -
things are hunky-dory in development (thumbs are generated, these are
uploaded to S3, the metadata is saved to trhe DB, and I get a nice
status page updated by periodic calls via ask_status), but when I
tried to deploy to our staging server and stop/start BackgrounDRb via
Capistrano, things blew up - well, not exactly,
2007 Sep 06
1
any reason we can''t use the concise stubs on Object
I like the concise version of stubs available on true mocks:
=> #<Mock:0x32f76d4>
>> foo.stubs(:one => ''hi'', :two => ''again'')
=> {:one=>"hi", :two=>"again"}
Why can''t we do it on ''real'' objects?
>> foo = Object.new
>> foo.stubs(:method1 => ''a'',
2006 Feb 24
0
More concise edit methods
def edit
@item = Item.find(params[:id])
redirect_to :action=>:list if (request.post? and
@item.update_attributes(params[:item]))
end
I could probably condense it into one line (something like
...and(@item=Item.update...)), but I''ll probably actually use:
def edit
@item = Item.find(params[:id])
if request.post? and @item.update_attributes(params[:item])
flash[:notice]
2006 Jan 24
3
Is there a concise way?
Hi,
Is there a concise/ruby way to do the following:
[Note: 1 and 2 below are not related.]
(1)
for p in 0...@order.line_items[k].shipment_lines.length
shipline_qty = shipline_qty +
@order.line_items[k].shipment_lines[p].quantity
end
(2)
ts = Array.new
for tk in s.trackings
ts.push(tk)
end
2010 Dec 30
2
remove newlines / perl /concise example
Thanks for the previous tips and suggestions. Here's a more concise
example:
Input file:
<aaaa>
<bbbb>
<cccc>
<dddd>
I want everything on one line, i.e., remove all newlines. Like so:
<aaaa><bbbb><cccc><dddd>
Simple perl code:
#!/usr/bin/env perl
# Remove newlines from a file in two ways:
# (1) Just "chomp" them;
# (2) Replace
2008 Dec 09
1
Voicemail.conf : concise hour prompts
Hi,
In voicemail.conf:
; Supported values:
; 'filename' filename of a soundfile (single ticks around the filename
; required)
; ${VAR} variable substitution
; A or a Day of week (Saturday, Sunday, ...)
; B or b or h Month name (January, February, ...)
; d or e numeric day of month (first, second, ..., thirty-first)
; Y Year
; I or l
2008 Dec 09
0
Voicemail.conf : concise hour prompts [SOLVED]
2008/12/9 Olivier <oza-4h07 at myamail.com>
>
>
> 2008/12/9 Tilghman Lesher <tilghman at mail.jeffandtilghman.com>
>
> On Tuesday 09 December 2008 09:14:11 Olivier wrote:
>> > Hi,
>> >
>> > In voicemail.conf:
>> > ; Supported values:
>> > ; 'filename' filename of a soundfile (single ticks around the
>>
2013 Aug 15
2
meetme list concise
Hello,
Can anyone tell me the format for meetme list concise command, so that I
know what field is what (separated by '!'s)
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130815/eba161be/attachment.htm>
2003 Jun 12
1
I would like a concise doccument on how to setup samba 3.0.0b2 using ldapsam_nua
Is there any doccumentation on using the ldapsam_nua backend?? I would
like to setup my server in that fashion, and have looked all through the
docs tree I downloaded with the cvs sources without sucess. The LDAP
howto in the docs tree is completly useless as it was written for 2.2.3
2009 Sep 26
1
Looking for a textbook that is more concise than Applied Linear Statistical Models (2004 version)
Hi,
I know this is a little bit offtopic on this list. But I can't find a
more appropriate forum that I can ask. If there is a high quality
forum on statistics textbook discussion, please let me know.
I am reading Applied Linear Statistical Models. One drawback that I
feel about this book is that it discuss many examples, which is to
distracting. Numbers are give in those examples. Comments