Displaying 20 results from an estimated 300 matches similar to: "I''m misunderstanding how stubs works"
2006 Sep 20
15
Why Rails + mongrel_cluster + load balancing doesn''t work for us and the beginning of a solution
We have been searching for a Rails deployment architecture which works for
us for some time. We''ve recently moved from Apache 1.3 + FastCGI to Apache
2.2 + mod_proxy_balancer + mongrel_cluster, and it''s a significant
improvement. But it still exhibits serious performance problems.
We have the beginnings of a fix that we would like to share.
To illustrate the problem, imagine a
2006 Sep 01
2
Configuring Mongrel logging
Is there any way to configure Mongrel''s logging? Specifically, I''d like to
get it to output to syslog. Our Rails apps already do this (via
SyslogLogger) - is there any way to persuade Mongrel to do the same?
Thanks!
--
paul.butcher->msgCount++
Snetterton, Castle Combe, Cadwell Park...
Who says I have a one track mind?
MSN: paul at paulbutcher.com
AIM: paulrabutcher
Skype:
2006 Sep 18
11
Finally! Mongrel 0.3.13.4 Official (for Unix)
Hello! Today I''m announcing a "soft but official" release of Mongrel
0.3.13.4 for the Unix fans in the crowd. It''s been running stable for
quite some time now for many people, and should be great for nearly
everyone.
You can read the announce at:
http://mongrel.rubyforge.org/
This release includes new versions of mongrel_upload_progress and
mongrel_cluster.
2007 Oct 15
24
Design flaw? - num_processors, accept/close
Rails instances themselves are almost always single-threaded, whereas
Mongrel, and it''s acceptor, are multithreaded.
In a situation with long-running Rails pages this presents a problem for
mod_proxy_balancer.
If num_processors is greater than 1 ( default: 950 ), then Mongrel will
gladly accept incoming requests and queue them if its rails instance is
currently busy. So even
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
2014 Feb 21
5
[LLVMdev] interesting LLVM code optimization issue regarding timer registers
This problem was reported to me by a friend who has an LLVM port that is
not put back to open source.
Essentially, there is an intrinsic call _lr which is a load register.
so then user code has something like:
start_time = _lr(TIMER_REGISTER)
.....
some_code_to_time
....
end_time = _lr(TIMER_REGISTER)
So what happens is that LLVM moves the code as follows:
start_time = _lr(TIMER_REGISTER)
2019 Jun 07
1
Problem with opusfile & ndk
Hi Xiph.org Team.
We are using opusfile library <https://github.com/xiph/opusfile> for
streaming *.opus* audio in our projects.
But now we have a problem with building opusfile library for android with
*ndk-build*.
In particular, with arm64-v8a platform: Google removed <sys/timeb.h> from
android.
And now building opusfile with nkd-build crashes with error "fatal error:
2017 Sep 13
2
compounding precipitation based on whether falls within a day
Using the small reproducible example below, I'm wondering how best to
complete the following task:
In the small reproducible example below, the 3D array prec has indexes that
correspond to time, x, y (i.e., prec[time, x, y]). In this case, the time
index is hours since some predefined start time. I'd like to add up all
the time indexes in 'prec' based on whether or not the
2010 Jul 19
3
Reshaping data
Dear All,
I have some data in the following shape:
ID begin_t1 end_t1 begin_t2 end_t2
Thomas 11/03/04 13/05/06 04/02/07 16/05/08
... ... ... ... ...
Jens 24/01/02 23/05/03 07/06/03 14/11/05
I would like to reshape this data to have the following form:
ID Begin_Time End_Time
Thomas 11/03/04 13/05/06
Thomas 04/02/07 16/05/08
... ... ...
Jens 24/01/02 23/05/03
Jens
2009 Mar 07
1
Cdr problem
hi,
I'm working with asterisk on a project and I found a problem with cdr_odbc.
As we know, after answering each call a cdr event is raised which is saved
in cdr_csv and cdr_odbc. but here my point is on cdr_odbc. some information,
including start_time and end_time is given by cdr event but the problem is
that these two information(start_time and end_time) is not getting save in
cdr_odbc. I
2017 Sep 13
0
compounding precipitation based on whether falls within a day
Thanks for the reprex. Wouldn't have bothered without it.
The following is I believe **almost** what you want. It seems a bit clumsy
to me, so others may provide you something neater. But anyway...
## Convert POSIXct vector to dates
## There are 22 different days, not 21
date <- as.Date(prec_idx)
## Sum results by date at each i,j of the last 2 array dimensions
z <-
2015 Oct 20
1
[PATCH v3 07/13] v2v: factor out copying of output data
Factor out copying the overlays to final disk images into a separate
function.
Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
---
v2v/v2v.ml | 227 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 114 insertions(+), 113 deletions(-)
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index afffde2..703038c 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -110,121 +110,9 @@ let
2006 Sep 03
18
Recommentation: Sessions and PStore
Morning Folks,
As most of you know there were a few people who had the following three
bugs:
* CLOSE_WAIT: Lots of sockets in CLOSE_WAIT state.
* 99% CPU: Mongrel''s getting "stuck" pegged at 99% CPU.
* LEAK: Memory leak.
I''ve successfully fixed these bugs or attributed them to one main cause:
pstore.
First, the memory leak was because of a bug in how the GC in Ruby
2007 May 01
5
duplicate key violates unique constraint
I''ve run into an interesting issue. When setting up a table with data
from a file (I''m doing this in a block). I find that I can''t create
separate entries manually after the import. It complains about a
duplicate primary key. I''ve tried Schedule.id += 1 but id= either
isn''t defined or accessible in the class
Here is my code:
2013 Mar 10
2
Writing to Spreadsheet issues
I am having trouble with this code:
trOne <- read.csv("*.csv", header=TRUE)
srOne <- read.csv("*/SRdivision1.csv", header=TRUE)
row = 1
for (g in 1:162) {
e = trOne[g, "END_TIME"]
s = trOne[g, "START_TIME"]
q = trOne[g, "OCC_TIME"]
r = trOne[g, "R_TIME"]
gazeSum = 0
n = 0
print(g)
while (s <= e) {
if (srOne[row,
2010 Sep 08
2
Correlation question
Hi everyone,
I'm observing what I believe is weird behaviour when attempting to do
something very simple. I want a correlation matrix, but my matrix seems to
contain correlation values that are not found when executed on pairs:
> test2$P2
[1] 2 2 4 4 1 3 2 4 3 3 2 3 4 1 2 2 4 3 4 1 2 3 2 1 3
> test2$HP_tot
[1] 10 10 10 10 10 10 10 10 136 136 136 136 136 136 136 136 136
2009 Dec 31
1
iterating over a data frame the R way?
Hi,
I have a data frame that was create by issuing a select against my
sqlite database. I want to get each row from the data frame and use
the each of the column values. The data frame looks like this:
start_time end_time
09:30:00 10:00:00
10:00:01 10:30:00
etc
Can a point me to a tutorial/example of doing this? I the other
programming languages I'm familiar with I
2006 Jul 12
1
-Infinity for Doule type column
Hi list.
I''m writing a program that stores a lot of Floats into MySQL database.
Simplified version of the program use the following form of class.
class Val < ActiveRecord::BASE
end
And Vals table contains one column:
num double
One of my data contains -Infinity for num and when I try to
Val.new
Val.num = <- Here goes -Inifinity
Val.save!
Then the program crashes:
2016 Oct 12
2
RFC: General purpose type-safe formatting library
On Wed, Oct 12, 2016 at 10:13 AM James Y Knight <jyknight at google.com> wrote:
>
>
> I wonder what use cases you envision for this? Why does LLVM need a super
> extensible flexible formatting library? I mean -- if you were developing
> this as a standalone project, that seems like maybe a nice feature. But I
> see no rationale as to why LLVM should include it.
>
We
2019 Apr 30
1
[PATCH] v2v: Allow output modes to rewrite disk copying
All the current output modes use the default, It's just that I have a patch that
uses this, so there might be someone in the future who wants to use this and if
not, then at least you can tell me if this is wrong or not.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
---
v2v/types.ml | 15 +++++++++++++++
v2v/types.mli | 8 +++++++-
v2v/v2v.ml | 17 +++--------------
3