search for: kkk

Displaying 20 results from an estimated 20 matches for "kkk".

Did you mean: kk
2013 Dec 06
2
Using assign with mapply
I have a data frame whose first colum contains the names of the variables and whose second colum contains the values to assign to them: : kkk <- data.frame(vars=c("var1", "var2", "var3"), vals=c(10, 20, 30), stringsAsFactors=F) If I do : assign(kkk$vars[1], kkk$vals[1]) it works : var1 [1] 10 However, if I try with mapply this is what I get: : mapply(assign, kkk$va...
2011 Jul 21
1
nested loop for
...., the compare tree to tree the dbh and for each individual sum the stand basal area of larger trees) BAL2<-rep(0,length(Pma)) aa<-rep(0,length(Pma)) Now I have programed a for loop to do this calculation, and one plot it works quite well: kk<-data.frame(Pma, Plot, dbh2, SBA2, BAL2, aa) kkk<-kk[kk$Plot=="1",] The loop: for(j in 1:length(kkk$Pma)){ for(i in 1:length(kkk$Pma)){ if(kkk$dbh2[j]<kkk$dbh2[i]) kkk$aa[i]<-kkk$SBA2[i] else temp_data$aa[i]<-0 kkk$BAL2[j]<-sum(kkk$aa)...
2009 Nov 13
6
replace a whole word with sub()
Dear all, I cannot figure out how to solve a small problem (well, not for me), surely somebody can help me in few seconds. I have a series of strings in a vector X of the type "xxx", "yyy", "zzz", "IgA", "IgG", "kkk", "IgM", "aaa". I want to substitute every ENTIRE string beginning with "Ig" with "0". So, I'd like to have "xxx", "yyy", "zzz", "0", "0", "kkk", "0", "aaa". I can...
2007 Feb 23
4
using "integrate" in a function definition
...se the "integrate" function from within my own functions, my functions seem to misbehave in some contexts. The following example is a bit silly, but illustrates what's happening: The following behaves as expected: > jjj<-function(www) {2*integrate(dnorm,0,www)$value} > kkk<-function(www) {2*(pnorm(www)-0.5)} > jjj(2) [1] 0.9544997 > kkk(2) [1] 0.9544997 However, if I do: > plot(jjj,0,5) Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ whereas > plot(kkk,0,5) produces a nice plot. > xxx&...
2009 Jun 23
2
Long to wide format without time variable
...(data$id) ct<-length(ids) codes<-matrix(0,ct,11) colnames(codes)<-c("ID","ICD1","Coder1","ICD2","Coder2","ICD3","Coder3","ICD4","Coder4","ICD5","Coder5") j<-0 for (i in 1:ct){ kkk <- ids[i] rpt<-data[data$id==kkk,] j<-max(j,nrow(rpt)) codes[i,1]<-kkk codes[i,2]<-rpt$ICDCode[1] codes[i,3]<-rpt$T_Physician_ID[1] #if (nrow(rpt)>=2){ codes[i,4]<-rpt$ICDCode[2] codes[i,5]<-rpt$T_Physician_ID[2] #if (nrow(rpt)>=3) { codes[...
2013 Feb 16
1
[LLVMdev] A weird problem when try to output operand of instruction involving function pointer in a struct
...E(){printf("E\n");} void D(){printf("D\n");} void C(){D();E();printf("C\n");} void B(){C();printf("C\n");} void A(){B();printf("A\n");} int main(){ struct s{ int vvv; void (*ff)(); void (*tt)(); int value ; }sss; void (*ppp)(); void (*kkk)(); A(); sss.tt = &A; sss.tt(); sss.ff = &C; sss.ff(); sss.tt = &F; sss.tt(); kkk = &B; ppp = &C; (*ppp)(); (*kkk)(); } I use the following command to generate the .bc file: clang -O0 -c -emit-llvm t2.c -o t2.bc Then I create a FunctionPass, inside the runOnFu...
2010 Jul 28
2
columns mapping
DF1 name OTHER ABC O KKK O QQQ O DDD O PPP O DF2 name ABC KKK DDD If the names in df1 resides in df2, then add the mapped name to df1 as a separate column, for instance "mappedColumn" the output should be: DF1 name OTHER mappedColumn ABC O ABC KKK O KKK QQQ O DDD O...
2009 Jul 04
2
[LLVMdev] Alloca Instruction
...e processing on stack across some alloca blocks? For example, is following code valid? define i32 @f() { %0 = alloca i8, i32 16 %1 = ptrtoint i8* %0 to i32 %2 = add i32 %1, 4 %3 = inttoptr i32 %2 to i32* store i32 5, i32* %3 %4 = alloca i8, i32 20 %kkk = ptrtoint i8* %4 to i32 %5 = add i32 %kkk, 24 -----> Access to previous block %6 = inttoptr i32 %5 to i32* %7 = load i32* %6 ret i32 %7 } Is this kind of accessing across blocks valid? Are we guaranteed that in final executable, this offest proce...
1999 May 27
2
Can't connect to samba from foreign network --- 'Gethostbyaddr failed' error in log.smb
...e client can successfully 'ping mysambaserver' (resolves to aaa.bbb.ccc.ddd). Doing 'net view \\mysambaserver' fails with 'network path not found', and coincident with this the following error message appears in mysambaserver's log.smb: Gethostbyaddr failed for ggg.hhh.kkk.lll This is different from the client's address of ggg.hhh.iii.jjj Note that clients on ggg.hhh. connect quite gracefully to native nt shares on aaa.bbb. I'm suspicious that this might be the key to the problem, but I really don't know what's going on here. By the way, log.smb is...
2002 Aug 01
1
Connection refused
...ked a zillion times so I searched for hours before posting this. How can there be so little documentation on this. Point me to what to read. rsh is good: [g3p:~] smith% rsh -l a1012 sv1.domain.com Password: {a1012@sv1.domain.com:65} rsync not good: [g3p:~] smith% rsync -av a1012@sv1.domain.com:kkk.txt sync/ rsync: open connection using rsh -l a1012 sv1.domain.com rsync --server --sender -vlogDtpr . kkk.txt sv1.domain.com: Connection refused rsync: connection unexpectedly closed (0 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsyn...
2006 Nov 25
5
Metaphone analysis
Not sure how much this will interest people but I don''t have a blog so I''m posting something I threw together today cause I think it might be useful. In what little free time I have I''ve been wanting to put together a Rails/Ferret based restful dictionary. So I finally got a chance to get started today so the first thing I wanted to do was implement a metaphone
2009 Jan 07
5
rbind for matrices - rep argument
Dear R users,I'm facing a trivial problem, but I really can't solve it. I've tried a dozen of codes, but I can't get the result I want. The question is: I have a dataframe like this one [,1] [,2] [,3] [,4] [,5] [1,] 1 2 3 4 5 [2,] 2 5 5 4 9 [3,] 1 6 8 1 2 [4,] 8 6 4 1 5 made up of decimal numbers, of course. I want to
2007 Aug 03
1
proxy arp on CentOS 5?
Anybody implemented a working proxy ARP with CentOS 5? I am trying to implement DNAT on a dual-homed firewall (servers behind firewall are on private IPs) and that requires proxy ARP. I've tried several different methods but nothing seems to work. Any advice? Is proxy ARP broken on v5? -- Florin Andrei http://florin.myip.org/
2013 Jan 18
1
sftp does not allow rename across file system
...ed ) when using sftp rename rename subPlaib/F1 subPlaib/F2 works fine. but rename subPlaib/F1 subMounted/F2 failed strace output shows the error as read(0, "\0\0\0H\310\0\0\0&\0\0\0\30posix-rename at openss"..., 16384) = 76 rename("/johnson/ttt", "/johnson/shared/kkk") = -1 EXDEV (Invalid cross-device link) select(2, [0], [1], NULL, NULL) = 1 (out [1]) write(1, "\0\0\0\30e\0\0\0&\0\0\0\4\0\0\0\7Failure\0\0\0\0", 28) = 28 I have tried with different sftp clients without success. Any help would be appreciated. Thanks -Ted
2019 Dec 18
2
zentyal management
> > Why ? I thought you set moodle to use ldaps against AD, so what do you need zentyal for? They installed zentyal and set up a DC to work online with moodle. Imagine if our internet link goes down and students can't authenticate with moodle. I say this because I work in a school in a city in the interior of my state, and the connection is still a little precarious. But the main
2011 Mar 31
2
Winbindd filling log file with " final write to client failed: Broken pipe"
...f error are always associated with some functionality not working at all, but that's not my case (apparently). Versions: OS: RHEL 5.5 smbd: Version 3.3.8-0.52.el5_5 winbind: Version 3.3.8-0.52.el5_5 This is my smb.conf: [global] workgroup = XXX password server = YYY, ZZZ realm = XXX.KKK.NET security = ads template homedir = /home/%U template shell = /bin/bash winbind use default domain = true winbind offline logon = true winbind cache time = 120 #log level = 0 winbind:10 ldap connection timeout = 2 ldap timeout = 2 keepalive = 300 load printers...
1999 Oct 22
0
Browsing problems with Samba 2.0.5 on HP-UX and WinNT4.0SP4
...INS Support - Tells the NMBD component of Samba to enable it's WINS Server ; wins support = yes # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both ; wins server = w.x.y.z wins server = XXX.YYY.ZZZ.KKK # WINS Proxy - Tells Samba to answer name resolution queries on # behalf of a non WINS capable client, for this to work there must be # at least one WINS Server on the network. The default is NO. wins proxy = yes # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names # via DNS...
1999 Nov 09
1
2nd trial: Browsing problems with Samba 2.0.5 on HP-UX and WinNT4 .0SP4
...INS Support - Tells the NMBD component of Samba to enable it's WINS Server ; wins support = yes # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both ; wins server = w.x.y.z wins server = XXX.YYY.ZZZ.KKK # WINS Proxy - Tells Samba to answer name resolution queries on # behalf of a non WINS capable client, for this to work there must be # at least one WINS Server on the network. The default is NO. wins proxy = yes # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names # via DNS...
2006 Apr 23
1
fsck_ufs locked in snaplk
Colleagues, one of my servers had to be rebooted uncleanly and then I have backgrounded fsck locked for more than an our in snaplk: 742 root 1 -4 4 1320K 688K snaplk 0:02 0.00% fsck_ufs File system in question is 200G gmirror on SATA. Usually making a snapshot (e.g., for making dumps) consumes 3-4 minutes for that fs, so it seems to me that filesystem is in a deadlock. Any
2003 Dec 01
0
No subject
...announcement to, or browse list sync from: # a specific host or from / to a whole subnet (see below) ; remote browse sync = 192.168.3.25 192.168.5.255 # Cause this host to announce itself to local subnets here ; remote announce = 192.168.1.255 192.168.2.44 remote announce = xxx.yyy.zzz.255 lll.kkk.mmm.255 # Browser Control Options: # set local master to no if you don't want Samba to become a master # browser on your network. Otherwise the normal election rules apply ; local master = no # OS Level determines the precedence of this server in master browser # elections. The default valu...