search for: person1

Displaying 20 results from an estimated 25 matches for "person1".

Did you mean: person
2006 Aug 12
1
has and belongs to many different?
...there such a thing? I am thinking of an application that has something like this: 1. person has many things - there is a ''persons'' table 2. the things he has are stored in a table that is something like this person_id, thing_table_name, thing_id For example, it may map to person1, books, 23 #Person 1 owns book 23 person1, books, 25 #Person 1 owns book 25 person1, chair, 23 #Person 1 owns chair 23 person1, books, 30 person2, books, 19 person2, books, 31 #Person 2 owns book 31 ... and so on.. 3. A number of tables for different ''things''...
2017 Nov 15
2
R6 object that is a list of referenced object
...initialize = function(idPerson = NA, name = NA, age = NA) { self$idPerson <- idPerson self$name <- name self$age <- age } ) # public ) # Person I have created: Person1 <- Person$new(1,'a',4) Person2 <- Person$new(2,'b',5) and I also have a class Community: Community <- R6Class("Community", public = list( e = NULL, initialize = function() self$e <- Person$new()...
2020 Oct 05
2
S4 - inheritance changed by order of setClassUnion and setAs()
Dear colleagues, there is a behaviour with S4 (virtual) classes that I find very hard to understand: Depending on the position of setAs(), the tree of inheritance changes. This is my baseline example that defines the classes "grandma", "mother", "daughter" and a virtual class "mr_x". For a new instance if "daughter", "mr_x" is betweeen
2015 Aug 10
2
webrtc no audio
hello, i'm facing strange problem asterisk13.5 + chan_sip wss transport + SIPML5 1.5.230 person1 to person3 are behind different NATs audio devices double checked call from person1(chrome) to person2(chrome) works call from person1(chrome) to person 3(chrome) - no audio on both side (RTP flowing only in one direction) call from person2(chrome) to person 3(chrome) - no audio on both side...
2017 Nov 16
0
R6 object that is a list of referenced object
...object is very bad practice. > self$idPerson <- idPerson > self$name <- name > self$age <- age > } > ) # public > > ) # Person > > I have created: > Person1 <- Person$new(1,'a',4) > Person2 <- Person$new(2,'b',5) > > and I also have a class Community: > > Community <- R6Class("Community", > public = list( > e = NULL, > initialize = function()...
2020 Oct 06
0
S4 - inheritance changed by order of setClassUnion and setAs()
...e structure explicitly, via setClassUnion or setAs (or, I assume, setIs) order inherently matters. In fact order also matters for multiple inheritence via the normal contains mechanism. In practice, how could it not matter? Multiple inheritence is very powerful but dangerous. > setClass("person1", slots = c(f = "character")) > setClass("person2", slots = c(g = "character")) > setClass("people1",* contains = c("person1", "person2")*) > getClass("people1") Class "people1" [in ".GlobalEnv&qu...
2002 Oct 31
2
Problems of groups accessing shared directory
...quot; and 2 people from group "group2" are allowed to access a shared directory and have read/write access to that directory. Our solutions are: 1. We made a special additional group called "special" to classify those people, and add the entry in /etc/group like: special:*:9000:person1,person2,person3,person4,person5 2. The name of the shared directory to be accessed via samba is "ourdir", the entry in smb.conf is like: [ourdir] comment = special group ourdir path=/home/pub/ourdir browseable=yes writeable=yes create mask=0664 directory mask=775 force directory mode=051...
2003 Dec 19
2
GotoIfTime help
...er depending on the current time but I could not get it done with GotoIfTime. What I'm trying to do is ring on the extension 1 if time is between 8:00AM and 2:00PM and on extension 2 if is between 2:01PM 11:00PM. exten => 111,1,GotoIfTime(8:00-14:00|*|*|1-12?333) exten => 111,2,Dial(${Person1}) exten => 111,3,Dial(Hangup) exten => 333,1,Dial(${Person2}) exten => 333,2,Dial(Hangup) When I ring on the extension 111, the call is not being forward to the extension 333.. And the extensions are all in the same context. regards Oz
2006 Aug 15
2
How to access attribute in a self-referential many-to-many relationship
...3 | NULL | | 3 | 1 | NULL | and the people table is mysql> select * from people; +-------------+ | id | name | +----+--------+ | 1 | ren | | 2 | amy | +----+--------+ I have a model for person.rb, but none for friends_people. I can add friends like this: person1.friends << person2 Now the question is: how do I access the boolean "confirmed" from my model person.rb? Is this possible, and what is the best way? Thanks in advance, Renaud
2008 Apr 18
2
has_one self reference
...name => "Person" but where would I place the belongs_to line that goes with it and what arguments do I need to supply? And what kind of foreign keys do I need to specify in my migration? I would like for the following to work: bossman = Person.new :name => "Mr. Bossman" person1 = Person.new :name => "John" person2 = Person.new :name => "Jane" person1.superior = bossman person2.superior = bossman person1.superior.name # => "Mr. Bossman" I wonder what kind of columns I need for this in my Persons table manually specified and which c...
2004 Jun 06
4
Request help writing a function
I have been wrestling with this function for quite a while, and am not making headway. 1) I want to apply a function to the following columns of a dataframe: myfunction. <- apply(ph5028[,c(83:107)],2,function(x) ... 2) Within each of the above columns there is a single numeric code, 1, 2 or 3 or an NA. 3) My goal is to determine the percent of time each person used a 2 code. So if a person
2004 Jun 08
2
Recoding a multiple response question into a series of 1, 0 variables
...tem that a person selected is coded under a field called Qxfirst; the second selected under Qxsecond, etc. For the first Person, the NAs mean that that person only selected two of the five items. Hypothetical data is shown Qxfirst Qxsecond Qxthird Qxfourth Qxfifth Person1 4 2 NA NA NA Person2 1 3 4 5 NA Person3 3 2 NA NA NA 3) How I want the data to be be coded: I want each field to be one of the...
2017 Nov 15
0
R6 object that is a list of referenced object
...initialize = function(idPerson = NA, name = NA, age = NA) { self$idPerson <- idPerson self$name <- name self$age <- age } ) # public ) # Person I have created: Person1 <- Particle$new(1,'a',4) Person2 <- Particle$new(2,'b',5) and I also have a class Community: Community <- R6Class("Community", public = list( e = NULL, initialize = function() self$e <- Person$new()...
2017 Oct 18
1
conformal predictions
Dear community, I want to use conformal prediction to measure how good are my svm-regression predictions (having used library e1071). I have gone through the conformal package documentation. But I'm pretty newer and need some more and detailed examples. Can anybody help me? Thanks in advance, [[alternative HTML version deleted]]
2015 Aug 11
2
webrtc no audio
...icesupport=yes stunaddr=stun.l.google.com:19302 2015-08-10 12:35 GMT-03:00 Joshua Colp <jcolp at digium.com>: > Marek Cervenka wrote: > >> hello, >> >> i'm facing strange problem >> >> asterisk13.5 + chan_sip wss transport + SIPML5 1.5.230 >> person1 to person3 are behind different NATs >> audio devices double checked >> >> call from person1(chrome) to person2(chrome) works >> call from person1(chrome) to person 3(chrome) - no audio on both side >> (RTP flowing only in one direction) >> call from person2(chro...
2006 Mar 28
0
substring and html in the db
Hey guys, Ran into a snag today and was wondering if anyone can give me a hand. I have a blog type application that I''m developing. There is a page "list all entries" which looks like this: Title1 posted by Person1 about 2 hours ago test1 test1test1 test1test1 test1test1 test1test1 test1test1 test1test1 test1... (click here for full post) Title2 posted by Person1 about 2 hours ago test1 test1 test1 test1 test1 test1 test1 test1 test1 test1 test1 test1 test1 test1...(click here for full post) I "preview...
2007 Dec 27
2
Help with lm and multiple linear regression? (Plain Text version)
...rgin margin 1 66.67 2 -58.33 3 100.00 4 -33.33 5 200.00 6 -83.33 7 -100.00 8 0.00 9 100.00 10 -18.18 11 -55.36 12 -125.00 13 -33.33 14 -200.00 15 0.00 16 -100.00 17 75.00 18 0.00 19 -200.00 20 35.71 21 100.00 22 50.00 23 -86.67 24 165.00 > personcoeff Person1 Person2 1 -1 1 2 -1 1 3 -1 1 4 -1 1 5 -1 1 6 -1 1 7 0 0 8 0 0 9 0 1 10 -1 1 11 -1 1 12 -1 1 13 -1 1 14 -1 0 15 0 0 16...
2006 Jul 28
2
has_many :through with multiple paths
...at I will need something like an intermediate record. teams_people id team_id people_id role I would then have (I think) to have methods in the Team model that will find each person in the @team.people array based on the role. I the end I want a view to have something like: Team Name Manager: Person1, Person 4 Programmer: Person2, Person 3 Designer: Person2 Lackey: Person3 With just a single find that :includes all the relevant people. I apologise if this isn''t very clear. The joys of not being a Ruby programmer but a Ruby dabbler ;) RJ -- Posted via http://www.ruby-forum.com/.
2006 May 30
20
AEL #include
Anyone know if #include works in ael yet? extensions.ael: #include "inc/pbx/global.conf" context test_context { }; *CLI> ael reload May 30 13:56:45 NOTICE[8516]: pbx_ael.c:1120 handle_root_token: Unknown root token '#include' May 30 13:56:45 WARNING[8516]: pbx.c:3758 ast_merge_contexts_and_delete: Requested contexts didn't get merged
2007 Dec 27
0
Help with lm and multiple linear regression?
...rgin margin 1 66.67 2 -58.33 3 100.00 4 -33.33 5 200.00 6 -83.33 7 -100.00 8 0.00 9 100.00 10 -18.18 11 -55.36 12 -125.00 13 -33.33 14 -200.00 15 0.00 16 -100.00 17 75.00 18 0.00 19 -200.00 20 35.71 21 100.00 22 50.00 23 -86.67 24 165.00 > personcoeff Person1 Person2 1 -1 1 2 -1 1 3 -1 1 4 -1 1 5 -1 1 6 -1 1 7 0 0 8 0 0 9 0 1 10 -1 1 11 -1 1 12 -1 1 13 -1 1 14 -1 0 15 0 0 16...