similar to: when to save, session reflect saves?

Displaying 20 results from an estimated 7000 matches similar to: "when to save, session reflect saves?"

2005 Apr 20
2
Has And Belongs To Many Validations
Here is the schema that I am working with: courses -> courses_teachers <- teachers I want to ensure that a teacher is not assigned the same course more than once. In other words, if I''m in the courses_teachers table as teaching Spanish 101, if someone tries to add that same teacher/course combination to the table again, it will not be allowed. I thought I could use something
2013 Jun 22
4
ActiveRecord::Base.transaction - SystemStackError - stack level too deep:
Im having an issue that seems to only happen when trying to use a transaction. Ive used transactions many times in the past and Im at a loss as to why im getting the stack level too deep problem. SystemStackError - stack level too deep: actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:70:in `'' I have a StackOveflow with more detail -
2004 Jul 27
2
logged in users
Hallo, i've got a little question: is it possible to query the domain controller which user is loggid in from which workstation. I'm writing an webapp for teachers; it would be nice to know which pupil logged on from which workstation to shutdown the correkt workstation in order to kick the pupil (force logoff) or is there an other way to
2006 Apr 06
1
[SVG Presentation] Features request
My mail to David Reveman, after sending, sombody told me, it would be better to write the list. So here is my first mail to a list. . .. ... Hello, first thanks for XGL. ;) You did an amazing job with that but you already know that. My name is Nils Hobbensiefken and i come from the North of Germany and i have two questions/requests. I already used the cube on top view for a couple of
2009 Feb 27
3
Making tapply code more efficient
Previously, I posed the question pasted down below to the list and received some very helpful responses. While the code suggestions provided in response indeed work, they seem to only work with *very* small data sets and so I wanted to follow up and see if anyone had ideas for better efficiency. I was quite embarrased on this as our SAS programmers cranked out programs that did this in the blink
2003 Jul 16
1
Help on NNET
Hi, Dear all, I am just starting using R in my work and got some trouble to figure out some of the errors. Can anybody help me? The following is the script: read.csv('pupil.txt',header=TRUE,sep='\t')->pupil samp<-c(1:50, 112:162, 171:220, 228:278) pupil.nn2 <- nnet(Type ~ ., data = pupil, subset = samp, size = 2, rang = 0.1, decay = 5e-4, maxit = 200)
2007 Dec 04
0
a new model object associated with two parents
Please excuse me if I am asking too many questions. I''ve been appreciating the help (and I have been learning from reading other peoples questions and answers too) Here is a cooked up example of a basic idea I am trying to accomplish Say that I have a Pupil model . Perhaps also a Teacher, Course models. Teachers will have things called Course_Offerings. To keep track of a pupil’s
2006 Jul 05
5
''m having trouble with BackgrounDrb
Hi. I thought that BackgrounDrb was the perfect solution for my long running report production tasks. But I can''t seem to get anything useful back out of it. I set up a simple test worker that just does class TestWorker < BackgrounDRb::Rails attr_reader :pupil def do_work(args) @progress=0 @pupil=Pupil.find(3) sleep rand*10 @progress=100 end when I try to
2006 Feb 24
2
Problem Referencing Fixture Objects
In my tests, I use fixtures, eg pupils.yml might be: jimmy: id: 100003 known_as: Jimmy surname: Page academic_year_id: 1 gender: m In the test, @jimmy (the referencing style referred to in Agile Web Dev....) is nil, whereas pupil(:jimmy) returns the expected Pupil object. What gives? Robert
2004 Oct 18
1
Intermittent "Network name cannot be found" error when accessing XP roaming profile
Hi guys, How are you ? I've installed samba-3.0.7 from source on a Slackware Linux 10.0 server configured with "--with-ldap" as a backend (OpenLDAP-2.2.13) and with nss_ldap installed. I have my profiles share configured as follows: [profiles] comment = Profile Share path = /data/profiles writeable = yes guest ok = yes browseable = no profile acls = yes csc policy = disable
2007 Nov 28
5
methods in models dont work for views?
This question is more towards understanding how things work rather than trying to just get something to work. I have something like this in my user model. def full_name first_name + " " + last_name end This works find if I use it for display values in a collection_for_select. options_from_collection_for_select( @users, :id, :full_name) It displays the full name in the
2009 Dec 11
1
random effects in mixed model not that 'random'
Hi, I have the following conceptual / interpretative question regarding random effects: A mixed effects model was fit on biological data, with observations coming from different species. There is a clear overall effect of certain predictors (entering the model as fixed effect), but as different species react slightly differently, the predictor also enters the model as random effect and with
2015 Jul 13
2
Crear datos aleatorios con restriciones
Hola, Esta pregunta la hice en stackoverflow <http://stackoverflow.com/questions/31137940/randomly-assign-teachers-to-classrooms-imposing-restrictions/31143808#31143808>pero nadie pudo contestarla. 1. Quiero generar N escuelas, con G grados y C divisiones. 2. Quiero asignar cada uno de T maestros a 2 divisiones en un grado y escuela Si tengo C=4 divisiones, puedo lograr lo que quiero con
2015 Jul 13
2
Crear datos aleatorios con restriciones
Hola, 0. La falta de 'elegancia' hace que sea mas dificil hacer cambios al codigo. Por ejemplo cambiar n.classrooms <- 4 a n.classrooms <- 20 1. Cuando tengo solo 4 puedo hacer esto: schoolGrade$A <- Teachers$Teacher.ID[1:cuttoff1] schoolGrade$B <- Teachers$Teacher.ID[1:cuttoff1] schoolGrade$C <- Teachers$Teacher.ID[(cuttoff1+1):n.teachers] schoolGrade$D <-
2007 May 11
1
Anova
Doea anyone know how to compute components of variance analysis? For example, I have the score of pupils on a test. Each pupil belongs to a school and within each school I may have several classes? How can I estimate the variance of the pupils, schools, classes and the errror variance? Any examples? Any help will be appreciated. Jason Dr. Iasonas Lamprianou Department of Education The
2015 Jul 13
2
Crear datos aleatorios con restriciones
Gracias Carlos, Tu codigo es un gran paso en el sentido correcto pero no produce exactamente lo que estoy buscando. Mi "solucion" en stackoverflow <http://stackoverflow.com/questions/31137940/randomly-assign-teachers-to-classrooms-imposing-restrictions/31143808#31143808> produce un data frame `schoolGrade` con 240 observaciones y 7 variables. Mi objetivo es poder generar un data
2003 Nov 06
4
newbie's additional (probably to some extent OT) questions
(1) So finally, thank to your help I have this: summary(lm(x ~ 0+I(t^2))) And then I get this result: ================================================= Call: lm(formula = x ~ 0 + I(t^2)) Residuals: Min 1Q Median 3Q Max -3.332e-02 -9.362e-03 1.169e-05 1.411e-02 3.459e-02 Coefficients: Estimate Std. Error t value Pr(>|t|) I(t^2) 0.0393821
2006 Jan 23
3
create and update with has_many :through
I''m using Edge Rails and the new has_many :through in my code. What I''m trying to do is modify my create and update code to use the new relationships. I''m using a table called course_teachers for the joins. Here is what I have so far: def create @course = Course.new(params[:course]) @teacher = Teacher.find(params[:primary_teacher]) @course.teachers =
2015 Jul 13
2
Crear datos aleatorios con restriciones
Perdon por no se lo suficientemente claro :( Tu codigo produce `validPairs` que tiene 7 variables y 360 observaciones. Donde > validPairs[1,] V1 V2 V3 V4 V5 V6 valid 60 e1 g1 c1 e1 g1 c2 Valid indica que un maestro tiene asignado c1 y c2 en la escuela e1 y el grado g1. Correcto? Si es asi, esto es casi lo que queira producir y creo que puedo llegar a donde quiero usando tu codigo de base.
2006 Aug 24
1
Strange permissions problems
I had this problem some last year and never got it figured out. Now it is bugging me. It seems that sometimes when a student writes his/her file to a directory, it will not keep the correct group. It puts his/her main group as the group owner and that fouls things up. Here is what I have. Unix Permissions /school 3777 admin.teacher /school/bhs 3777 admin.teacher /school/bhs/reese