search for: observers

Displaying 20 results from an estimated 14472 matches for "observers".

Did you mean: observer
2010 Sep 09
0
Plotting dates and grid lines on the X-Axis of xyplot
I have a plotting function that is plots a multi-panel plot, with the x-axis as a date and various y-axes. I would like to control the frequency of the X-axis labels, ticks and grid lines. However with the following code I get no annotation on the X-axis at all. Here is a minimal data.frame Case Days Well Stream Value 1 Observed 0 P-1 Oil 1000.807785 2 Observed 31
2001 Apr 15
2
data manipulation in R
Dear List: I have a data manipulation problem that I was unable to solve in R. I did it in SQL, and it may be that the solution in R is to do it in SQL, but I wondered if people could imagine a vector-based solution. Imagine a list A[i] of observers who observe some set of events B[j]. Each observer i may observe one or more events, and each event j may have been observed by one or more observers. Thus the data are a lower-triangular array AxB where each cell [i,j] has a zero or one indicating whether observer i saw event j. I am interest...
2006 Mar 10
9
Observers?
Hello all! I''m having an issue with Observers, and I''m hoping someone knows the answer. Here is the definition: app/models/vehicle_observer.rb > class VehicleObserver < ActiveRecord::Observer > def after_save(vehicle) > breakpoint > if vehicle.has_new_mil_indication? > UserMailer.deliver_mil_noti...
2006 Jul 18
7
Observer not working
...minMailer.deliver_simple_monitor_alert(''Se ha creado un nuevusuario'', "Nombre: #{user.name} \nCorreo: #{user.email} \nDetalle: #{user.detail} ") end end end UserObserver.instance config/enviroment.rb: config.active_record.observers = :user_observer Thanks everybody
2007 Sep 07
5
SQL like function?
Hi RUsers, I am wonder if I can search observations whose IDs matches any of the values in another vector, such as in MySQL. While I am learing MySQL for future database management, I appreciate if anyone could give me a hint. Suppose I have one 5*1 vector containing observation IDs and frequencies, and one 3*1 vector containing observation IDs. observation<-c(1,2,3,4,5) ID<-c(1,3,4)
2012 Jul 30
2
Alternating between "for loops"
Dear All, I would like to apply two different "for loops" to each set of four columns of a matrix (the loops here are simplifications of the actual loops I will be running which involve multiple if/else statements). I don't know how to "alternate" between the loops depending on which column is "running through the loop" at the time. ## Set up matrix J <- 10 N
2006 Mar 04
2
Declaring ActiveRecord observers
...rking just fine and the world is a better place to live in. The plugin creates a ActiveRecord observer in order to send the newly registered user a confirmation e-mail. Per the API docs [1], one should declare the observer in the config/environment.rb file under the ''config.active_record.observers = :comment_observer, :signup_observer''. But reading the generated source code, the plugin author recommends declaring the observer in my ApplicationController with a ''observer :user_observer'' clause. The observer gets triggered in both cases, but I am curious about this...
2003 Dec 29
1
transfer with MGCP
Hello, I`m try to make the attended transfer work Dlink DG-104S via FLASH, when somebody calls my phone I pickup and press flash to get a second line to call another extension. When I press flash I hear no dialtone, and only a long and then small beep. When I try to dial digits I hear again those long+short beeps, but the extension dialed is not ringing. If I pres flash again I get back to
2011 Aug 17
3
questions about "metafor" package
Hello,   I would like to do a meta-analysis with the package « metafor ». Ideally I would like to use a mixed model because I’m interested to see the effect of some moderators. But the data set I managed to collect from literature presents two limits.   -         Firstly, for each observation, I have means for a treatment and for a control, but I don’t always have corresponding standard
2005 Dec 07
3
ActiveRecord::Observer problem
Hi all, I have a problem with an observer. I have a simple observer... class ActivityObserver < ActiveRecord::Observer observe Customer def after_create(model) bind_params(model) @al.action = "create" @al.save logger "#{model.id} : created" end private def bind_params(model) @al = ActivityLog.new @al.user_id = User.current.id
2009 Jul 31
1
Tests for Two Independent Samples
Dear R users, I have got two samples: sample A with observation of 223: sample A has five categories: 1,2,3,4,5 (I use the numer 1,2,3,4,5 to define the five differen categories) there are 5 observations in category 1; 81 observations in category 2;110 observations in category 3; 27 observations in category 4; 0 observations in category 5; To present the sample in R: a<-rep(1:5,
2006 Feb 22
2
Removing form observers
Hi, I''m developing a Rails app which uses dynamic forms. To implement these, I''ve used AJAX and Rails''s built-in form observers. Unfortunately, I''m having a problem. This is how the form starts: * Country select box [OBSERVED] (Republic of Ireland selected) * County select box [OBSERVED] (none selected, list of Republic of Irish counties in the drop down) when a user selects a county, the browser requests the r...
2009 Sep 22
3
Function similar to cumsum/cumprod
Hello, everyone I wonder if there is in R somewhere a function similar to cumsum(). The function calculates a statistic (say mean or standard deviation) buy adding consequtively one more data point. So, say I have a timeseries of 100 observations. I start by calculating mean of first 30 observations Then I add one observation and calculate mean of 31 observations Then I add one more observation
2003 Oct 20
1
mgcp transfer takeback with ata186 (logs with comments - long post)
Hi, in following of a recent discussion I got to work on MGCP with the Cisco ATA186 again, and got it to work very nicely. However, there is a little thing with transfers I would like to get comments on: Call comes in from PSTN and goes to an ATA186 (MGCP) Call is answered and then, using flash, transferred to another extension If the extension is available, there can be an announcement and
2012 Jul 06
2
Anova Type II and Contrasts
the study design of the data I have to analyse is simple. There is 1 control group (CTRL) and 2 different treatment groups (TREAT_1 and TREAT_2). The data also includes 2 covariates COV1 and COV2. I have been asked to check if there is a linear or quadratic treatment effect in the data. I created a dummy data set to explain my situation: df1 <- data.frame( Observation =
2006 Apr 26
1
Observer best practices
I''ve seen two ways of connecting observers: 1) In the observer class put observe MyModel 2) In the controller class put observer :my_observer What is the difference between these two? Also, is it necessary to put in the observer class the following? MyObserver.instance Jose -- Posted via http://www.ruby-forum.co...
2017 Aug 03
1
test for proportion or concordance
Hello group, my question is deciding what test would be appropriate for following question. An experiment 'A' yielded 3200 observations of which 431 are significant. Similarly, using same method, another experiment 'B' on a different population yielded 2541 observations of which 260 are significant. There are 180 observations that are common between significant observations of A
2006 Jul 30
2
Question about data used to fit the mixed model
Hi everyone, I would like to ask a question regarding to the data used to fit the mixed model. I wonder that, for the response variable data used to fit the mixed model (either via "spm" or "lme"), we must have several observations per subject (i.e. Yij, i = 1,..,M, j = 1,.., ni) or it can be just one observation per subject (i.e. Yi, i = 1,...,M). Since we have to
2009 Nov 26
15
bad move? - complex form with *many* observe_field's
...catch rapid typing without droopping chars while the autosave is performed). And each of the selects observe_field() does not have the frequency set, so that it calls the autosave fxn only on change (vs when the user is scrolling over the choices). Anyway, does anybody see a prob having *lots* of observers like this set up on a page? Seems like there could be a prob with having that many observe_fields set up for the text fields triggering on a frequency basis. If so, one workaround I thought of was to leave the select observers in place and have one observe_field for the currently focused text_fiel...
2006 Aug 01
8
Decoupled observers for controllers?
In the Rails Recipes book the recipe "Keeping track of who did what" explains how to do decoupled observing of models. In my application I''d like to do a similar thing but watching the controllers. For example, when somebody hits the login method of the Security controller, I''d like to make a note of it. In this case I could observe the User model and watch for