search for: teacher

Displaying 20 results from an estimated 638 matches for "teacher".

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 este código: lib...
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 <- Teachers$Teacher.ID[(cuttoff1+1):n.teachers] Pero si tengo 20 tendria que escribir 20 lines en lugar de 4 y calcular los cutoff para cada...
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 frame asi pero con la flexibilidad de poder usar n.classrooms <- 20 (o cualquier otro numero) en lugar de 4 (hardcoded) Gracia...
2015 Jul 13
2
Crear datos aleatorios con restriciones
...n 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. El objecto que yo quiero generar es el que genero en stakoverflow `schoolGrade`. Donde > schoolGrade[1:2,] grade School.ID Classroom Teacher.ID Teacher.exp Teacher.Other Teacher.RE 1 3 Modi School A Sage, Kendell 27.87402 0 -0.04372723 2 4 Modi School A Delgado, Vanessa 26.20701 0 -0.88280564 Es decir, cada observación es un aula en una escuela con informacion sobre el grado, nombre del maestro, otras...
2004 Jun 22
2
group and user permissions issue.
...em to find anywhere where this exact issue has been posted. am using samba 2.28 set up as an NT domain, there are no problems with the general configuration. My issue is witb samba not following the permissons I have set on files in a shared directory. Purpose: set up a directory for students and teachers where students can leave files and only edit their own files, teachers can edit all files. unix permissions for files are like this -rwxrw---- 1 student1 teachers 6 Jun 22 18:22 S1.txt* -rwxrw---- 1 student3 teachers 17 Jun 22 18:21 S3.txt* -rwxrw---- 1 student3 teachers...
2005 Jul 25
2
Domain groups with spaces in their names
Hello Samba, I have a Samba file server which I have successfully joined to a domian controlled by a Windows 2003 domian controller. I cannot get the server to allow access to users who are members of a group with spaces in its name. The domain has three (main) groups: - students - teachers - spaced users My Samba.conf has the following shared directories defined: [teachers] comment = teacher's shares writable = yes valid users = @teachers path = /home/groups/teachers writable = yes browsable = no create mode = 0660 directory mode = 0770 [students] comment = student's shar...
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 = @teacher if @course.save flash[:notice] = ''Course was successfully created.'' redirect_to :ac...
2010 Nov 04
9
Delete action is not working and redirects to edit action
Hello, i have a strange problem here. I have made a teacher controller using scaffold. All actions work fine but the delete does not. When i click the delete link, it redirects me to the edit of this teacher. I have restarted the server and i have tried in firefox (i use chrome) but problem still remains. Here is the code from my view. <%= link_to(im...
2006 Aug 24
1
Strange permissions problems
...ver 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 3777 reese.teacher /school/bhs/reese/6thhour 3777 reese.teacher Now rosie creates her first directory in ....6thhour /school/bhs/reese/6thhour/rosie 3770 rosie.teacher /school/bhs/reese/6thhour/rosie/word 3770 rosie.teacher /school/bhs/re...
2006 Aug 03
12
More than one has_many :through association between the same 2 models
I wonder if you can have more than one has_many :through association between 2 models. For example... I have a model Teacher and a model Class Now, 1 Teacher works in many Classes, right?. So I need a join model like class Work < ActiveRecord::Base belongs_to :teacher belongs_to :class end But I also would like to know if a teacher CAN teach a class before I assign him or her to one class. So...
2005 Nov 30
1
home directory permissions
Hi all, I use samba-3.0.20b on a solaris 10 box with a ldap backend. All works fine except one thing: I have an account "bob". Its home directory is "/tmp/teachers/bob" Its group is "teachers". However when I define the teachers repository permissions like this: [zoe.root:367] ls -al /tmp drwxrwx--- 2 root teachers 177 Nov 15 13:22 teachers (access in rwx only for root and "teachers" group members) It doesn't work...
2007 Dec 04
5
when to save, session reflect saves?
I am trying to clean up unnecessary lines (even as I hack my way forward adding more garbage) I have two questions on lines I have trying to keep the database and session info reflecting changes: def associate_pupil_to_teacher @teacher = session[:teacher] @pupil = Pupil.find(params[:id]) @teacher.pupils << @pupil @teacher.save #Q1 session[:teacher] = @teacher #Q2 end #Q1 do i need to do a save or is the objected reffered to by @teacher automatically saved when association is augmented? #Q2 if I want t...
2012 Apr 29
1
Samba4 with Posix ACL's
Hi everyone I'm setting up a report writing system for a school. All teachers need rw access to the reports which are in a folder of the same name. Teachers are in a group called teachers and there is a share called reports: [reports] path = /data/reports read only = No create mask = 0770 /data/reports has a Posix ACL: getfacl /data/reports getfacl: Removing leadi...
2003 Jun 19
2
Fitting particular repeated measures model with lme()
Hello, I have a simulated data structure in which students are nested within teachers, and with each student are associated two test scores. There are 20 classrooms and 25 students per classroom, for a total of 500 students and two scores per student. Here are the first 10 lines of my dataframe "d": studid tchid Y time 1 1 1 -1.0833222 0 2...
2000 Jan 27
2
Many Unix accounts to one samba account
Hi Folks. I have set up a samba server on a machine running Linux 6.1 and it works perfectly. But i have a problem : Approx. 200 teachers are going to register the students absence, and I don't want them to have one password each. ( You know teachers and passwords ).. :-) I thought I could change the Samba password once per month and deliver it to the teachers by e-mail. But I dont want them all to log in using the same usern...
2006 Mar 25
1
Nuby: HABTM and drag-and-drop views
I have two tables that have a HABTM relationship: Teacher has_and_belongs_to_many Groups, and Group has_and_belongs_to_many Teachers. This is what I want: select a Teacher, and then drag Groups from one box to another to assign them to the teacher. Or, select a group, and drag and drop Teachers to assign them to groups. All using AJAX, (off course)....
2007 Apr 18
0
Samba / Winbind / LDAP - Can't access shares
...000 idmap gid = 10000-20000 winbind enum users = yes winbind enum groups = yes # winbind separator = + # winbind use default domain = yes [Apps] comment = old P-drive structure path = /share/apps browseable = yes read list = +"BGS\Domain Admins" +"BGS\Domain Users" +BGS\teachers BGS\pupils write list = +"BGS\Domain Admins" +"BGS\Domain Users" +BGS\teachers create mask = 744 directory mask = 755 force group = users [odrive] comment = odrive path = /share/odrive browseable = yes read list = +BGS\teachers @"Domain Admins" write list = +BGS\tea...
2010 Jun 18
0
Simple search in ror
Hi, i need to implement a simple text function for the app i dev now. 1- the form in app/views/layouts <% form_tag({:controller => "teachers", :action => "search"}, :method => "get") do %> <%= text_field_tag :query, nil, :id => "search-text" %> <%= submit_tag("GO", :id => "search-submit") %> <% end %> 2- the search method in teacher_controller.rb...
2014 Feb 05
0
Solr Search with one to many associations
I have a 2 entities which have many to many relation say teacher and slot. Each teacher has many classes he/she takes up and each class is a slot. I want to perform search on teacher by sunspot solr for all the teacher who takes classes for different days in specific time. Say model structures and relations as follows class Teacher < ActiveRecord::Base...
2004 Jul 05
1
on the fly access and privilege determination
Hi, I have a active directory domain of windows 2000. inside AD i have three user groups. Teachers, students and administration. every user has his home directory created on the fly. the umask is 0022. now what i want is that apart from users accessing there home directories there should be some other folders too which they can access. like teachers would like to access the assignments fol...