Displaying 20 results from an estimated 20000 matches similar to: "Initializing aggregated structures"
2006 Jun 13
4
When saving parent fails, children will still be updated
Hi all,
When submitting a master/detail form I first want to handle the children
before saving the parent.
There are has_many and belongs_to relations between the parent and the
children, so I can edit the children using (psuedo-)code like:
child.destroy for deleting, child.update_attributes for updating and
@parent.children.push(child) for adding child-records.
I update the parent by using:
2011 Dec 06
3
Riak on Camping
Good day, does anyone here have a clue on how to make use of the NoSQL
database "Riak" with Camping?
I am building my website and Riak seems like pretty much the ultimate
database!
This would probably ruin every little feature in ActiveRecord, I don''t
think I''d be able to do any has_many''s or belongs_to
but I''d LOVE to be proven wrong. As far as
2011 Jan 15
3
has_many :through with Single Table inheritance
I have the following model structure setup.
class User < ActiveRecord::Base
end
class Parent < User
has_many :relationships
has_many :children,
:class_name => "Student",
:through => :relationships,
:conditions => "related_as = ''parent''"
end
class Student < User
has_many :relationships
2006 May 19
7
AR transactions and isolation levels
I''m trying to create a sequence with no gaps in my db (contrived
example, but should work out the same as my real one), and believe
db-managed transactions are the way to go about this.
It''s my first real ''go'' at transactions, so I may be mistaken about
how things really work.
Anyway.. Consider this example code:
Class Invoice < ActiveRecord::Base
def
2007 May 15
4
Need help with singleton worker
We have a fairly expensive task that we''d rather not schedule too many
instances of in parallel.
Couldn''t get pool_size to limit the amount of workers, and I figure
that''s hardly optimal anyway, so would like to have the work queued up
for a single named worker instead, running as soon as possible.
Using MiddleMan.schedule_worker() with :job_key does start off a
2009 Nov 18
2
Composing Data from THREE models with Aggregation
Hello! I''m looking for assistance EXTENDING an example from the Agile
Web Development With Rails book: Composing Data with Aggregation (page
324).
I''m trying to map three columns to a single Ruby object. However,
unlike the example in the Agile Web Development book, the three
columns I want to map into one object come from THREE DIFFERENT
models.
I want to map the following
2005 Aug 31
2
R CMD check example problem (PR#8113)
[Automatic forwarding from R-bugs failed. This message has been manually
forwarded.]
Hi all!
I'm trying to add Thomas Lumley's defmacro() function Lumley T.
"Programmer's Niche: Macros in {R}", R News, 2001, Vol 1,
No. 3, pp 11--13, \url{http://CRAN.R-project.org/doc/Rnews/} to the gtools
package (provided that Thomas gives his OK). And I've encountered an error
in
2009 Dec 13
1
Non-linear Weibull model for aggregated parasite data
Hi,
I am trying to fit a non-linear model for a parasite dataset. Initially, I
tried log-transforming the data and conducting a 2-way ANCOVA, and found
that the equal variance of populations and normality assumptions were
violated. Gaba et al. (2005) suggests that the Weibull Distribution is best
for highly aggregated parasite distributions, and performs better (lower
type 1 and 2 error rates)
2009 Jul 15
2
Problems with computing an aggregated score
Hi all,
I have a problem with computing a new variable as an aggregated score of
other variables.
Say, I have 10 variables for 1,000 observations (people). Every variable may
have values between 0 and 8. What I would like to do is computing the mean
of the individual top 3 values for every person.
Exampe: The values for the 10 variables (v1 to v10) for person A, B and C
are as follows:
A 0 1 0
2008 May 09
2
Tabulation of aggregated data.frame
Hi useRs!
I would like to know how to make aggregated data.frame with
aggregate() tabulated.
For example, I run the following command to aggregate re with respect
to group1 and group2.
> (aggr <- with(final, aggregate(re, group1, group2, mean)))
Group.1 Group.2 x
1 1992 15 0.16392
2 1993 15 0.15467
3 1994 15 0.15456
4 1995 15 0.15391
2006 Oct 31
0
6331032 in.routed deletes aggregated passive routes through remote gateways
Author: bw
Repository: /hg/zfs-crypto/gate
Revision: 8256e1e381a84873d93d900e1d0735c57208e91b
Log message:
6331032 in.routed deletes aggregated passive routes through remote gateways
Files:
update: usr/src/cmd/cmd-inet/usr.sbin/in.routed/table.c
2010 Oct 06
0
comparing the fit of two (gamma) distributions for aggregated data
Hi,
I have aggregated data in 5 categories and want to fit a gamma
distribution to it (works fine).
My question is that on theoretical grounds I could claim that the
observation in the first category (the zero count) are certain, i.e. I
know for sure the number. This would then mean in fitting a gamma
distribution to the remaining 4 categories.
My question is now how can I compare the fit
2009 Sep 27
2
zoo: merging aggregated zoo-objects fails
Dear all,
I have several text files looking like this:
9063032 19700201 22:00 174.067
9063032 19700201 23:00 174.076
9063032 19700202 00:00 174.085
9063032 19700202 01:00 174.091
9063032 19700202 02:00 174.094
9063032 19700202 03:00 174.091
9063032 19700202 04:00 174.082
9063032 19700202 05:00 174.079
And I run this loop:
for (j in 1:nr.of.files)
{
#Import:
DF <-
2020 Jan 14
1
Load balancing Icecast - aggregated logs
On Tue, 14 Jan 2020 at 18:38, Alex Hackney <me at alexhackney.com> wrote:
> You could use AWS Route 53 to do the load balancing or a server side
> script to do it. Route 53 could be done in no time and works well for us.
>
Sounds very interesting, Alex. AWS Route 53 is new to mw.
And how do you you aggregate listener stats from your server cluster?
Cheers
Chip Scooter
2020 Jan 13
0
Load balancing Icecast - aggregated logs
Good afternoon,
On Mon, 2020-01-13 at 13:30 +0000, Chip wrote:
> Hi
>
> I have a potential project for which my client requests that we load
> balance the streaming service.
>
> Of course, the Icecast server scales very well.
>
> - http://icecast.org/loadtest/
>
> However, the client requests high-availability and, due to the scale of the
> potential
2020 Jan 14
0
Load balancing Icecast - aggregated logs
You could use AWS Route 53 to do the load balancing or a server side script
to do it. Route 53 could be done in no time and works well for us.
On Tue, Jan 14, 2020, 11:36 Chip <chiapas at aktivix.org> wrote:
> Many thanks for this Philipp.
>
> On Mon, 13 Jan 2020 at 14:01, Philipp Schafft <
> phschafft at de.loewenfelsen.net> wrote:
>
>> I would recommend against
2020 Feb 07
0
prioritizing aggregated DBs
On Fri, Feb 07, 2020 at 09:33:08PM +0000, Eric Wong wrote:
> Hey all, I've been using ->add_database for a few years
> to tie sharded DBs together and it works great.
>
> Now, I want to be able to search across several DBs
> which aren't sharded, say: linux-DB, glibc-DB, freebsd-DB.
>
> I want to search for something across all of them, but
> prioritize results
2020 Feb 09
0
prioritizing aggregated DBs
On Sat, Feb 08, 2020 at 06:04:42PM +0000, Eric Wong wrote:
> Olly Betts <olly at survex.com> wrote:
> > On Fri, Feb 07, 2020 at 09:33:08PM +0000, Eric Wong wrote:
> > > Or would I fiddle with wdf_inc for all ->index_text and ->add_term
> > > calls on a per-DB basis?
> >
> > That would probably work if you don't want to be able to vary the
2020 Feb 19
0
prioritizing aggregated DBs
On Wed, Feb 19, 2020 at 10:23:09AM +0000, Eric Wong wrote:
> Btw, is there a way to quickly figure out which sub-DB a retrieved
> document or mset item belongs to?
Yes: https://trac.xapian.org/wiki/FAQ/MultiDatabaseDocumentID
1.4.12 added a Database::size() method which reports the number of
shards - for older versions you have to keep track of that yourself
(which needs a little care as
2020 Jan 20
0
Load balancing Icecast - aggregated logs
On Mon, 20 Jan 2020 at 13:16, Alex Hackney <me at alexhackney.com> wrote:
> I built a system for handling all the data, songs, listeners, royalties,
> etc. It's all in the docs.
>
Thanks.
Which docs? Icecast docs or Route 53 docs?
Chip
On Tue, Jan 14, 2020, 17:57 Chip <chiapas at aktivix.org> wrote:
>
>> On Tue, 14 Jan 2020 at 19:32, Michel van Dop