search for: testit

Displaying 20 results from an estimated 65 matches for "testit".

Did you mean: testet
2019 Jun 21
3
Samba winbind on centos 7 - "domain users" acls added
...ateurs\040du\040domaine:r-x mask::rwx other::--- default:user::rwx default:group::r-x default:group://MYDOMAIN\134admins\040du\040domaine:rwx default:mask::rwx default:other::---/ /+ # chmod 0770 /var/datashared/ As you can see acls for "Domain users" are not in default acls I create a TESTIT folder (on /var/datashared) ; the owner of the is user "MYDOMAIN\mydomainadmin" "mydomainadmin" is part of the "domain admins" group. /# getfacl TESTIT/// //# file: TESTIT/// //*# owner: MYDOMAIN\*//*mydomainadmin # group: *//*MYDOMAIN**\134admins\040du\040domaine* us...
2003 Jul 23
1
Question about malloc, mmap etc.
...ely it doesn't get far. The first time it calls malloc, malloc tries to call sbrk (I think it's sbrk) twice and those calls return invalid argument errors. Malloc then returns 0. I used ktrace and the "U" malloc_option to determine this --- the calls show up as follows: 89021 testit CALL readlink(0x680bbf14,0xbfbff3b0,0x3f) 89021 testit NAMI "/etc/malloc.conf" 89021 testit RET readlink -1 errno 2 No such file or directory 89021 testit CALL utrace(0xbfbff3a4,0xc) 89021 testit USER 12 00 00 00 00 00 00 00 00 00 00 00 00 89021 testit RET utrace...
2002 Aug 06
2
[ and setMethod conflict?
I noticed this oddity about [ and setMethod. First, I define testFunc, which sorts a data frame by the first column and returns the entries that aren't NAs, and testIt, which runs testFunc repeatedly on a random large data frame, each time saving the return into a dummy placeholder (for demonstration's sake). > require(methods) Loading required package: methods [1] TRUE > testFunc <- function(cur) { + sorted <- cur[order(cur[,1]),] + sorted[...
2002 Aug 06
2
[ and setMethod conflict?
I noticed this oddity about [ and setMethod. First, I define testFunc, which sorts a data frame by the first column and returns the entries that aren't NAs, and testIt, which runs testFunc repeatedly on a random large data frame, each time saving the return into a dummy placeholder (for demonstration's sake). > require(methods) Loading required package: methods [1] TRUE > testFunc <- function(cur) { + sorted <- cur[order(cur[,1]),] + sorted[...
2011 May 05
2
Compiling a FORTRAN program under Windows 7
Hi, I am trying to compile a FORTRAN program to call from R under Windows 7 but I am having problem in the compiling step. To demonstrate this is the program testit.f: ------------------------------------------ subroutine TESTIT(x,n,m) dimension x(n) do 10 i=1,n 10 x(i)=x(i)**m end -------------------------------------------- When I compile it with gfortran I get the following error: ---------------------------------------------...
2018 Feb 15
3
using cat to log to file with sapply
...I am trying to write unsuccessfully to a logfile with cat. Here my example code: letters[1:5]->x logf<-"test.txt" cat('%%%%%%%%%%%%%%%%%%%%%%%%%%\n',file=logf) catf<-function(x,...,logfile='log.txt', append=TRUE){ cat(x,'\n', file=logfile, append=append)} testit<-function(x,...){ paste0('this is x: ',x)->y return(y) catf("++++++++++++++++++test=============",...) } sapply(x, function(x) testit(x, logfile=logf)) Any suggestions appreciated. Thanks Herry
2019 Jun 21
0
Samba winbind on centos 7 - "domain users" acls added
...; default:user::rwx > default:group::r-x > default:group://MYDOMAIN\134admins\040du\040domaine:rwx > default:mask::rwx > default:other::---/ > > /+ # chmod 0770 /var/datashared/ > > As you can see acls for "Domain users" are not in default acls > > I create a TESTIT folder (on /var/datashared) ; the owner of the is > user "MYDOMAIN\mydomainadmin" > "mydomainadmin" is part of the "domain admins" group. > /# getfacl TESTIT/// > //# file: TESTIT/// > //*# owner: MYDOMAIN\*//*mydomainadmin > # group: *//*MYDOMAIN**\...
2002 Aug 07
0
FW: [R] [ and setMethod conflict?
...n Chambers PS: this thread might be more suited to r-devel than r-help. "Bartz, Kevin" wrote: > > I noticed this oddity about [ and setMethod. > > First, I define testFunc, which sorts a data frame by the first column and > returns the entries that aren't NAs, and testIt, which runs testFunc > repeatedly on a random large data frame, each time saving the return into a > dummy placeholder (for demonstration's sake). > > > require(methods) > Loading required package: methods > [1] TRUE > > testFunc <- function(cur) { > + sorted...
2019 Jun 21
0
Samba winbind on redhat 7
...ateurs\040du\040domaine:r-x mask::rwx other::--- default:user::rwx default:group::r-x default:group://MYDOMAIN\134admins\040du\040domaine:rwx default:mask::rwx default:other::---/ /+ # chmod 0770 /var/datashared/ As you can see acls for "Domain users" are not in default acls I create a TESTIT folder (on /var/datashared) ; the owner of the is user "MYDOMAIN\mydomainadmin" "mydomainadmin" is part of the "domain admins" group. /# getfacl TESTIT/// //# file: TESTIT/// //*# owner: MYDOMAIN\*//*mydomainadmin # group: *//*MYDOMAIN**\134admins\040du\040domaine* us...
2005 Jan 21
1
chan_misdn 0.0.3-rc5 - new release ! Please testit.
...Wiki. -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Thomas H?ger Sent: Friday, January 21, 2005 5:49 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] chan_misdn 0.0.3-rc5 - new release ! Please testit. Hi there, we've announced a new release of our chan_misdn channel driver. chan_misdn is a GPL channel driver for the new Linux ISDN-Layer mISDN (www.isdn4linux.org). So you can use all from mISDN supported ISDN catds in Asterisk. Feel free to donwload and test it at : http://www.beronet...
2001 May 09
1
Fortran subroutines dblepr, realpr, intpr
I am making my first attempts at using some Fortran code with R, and so far it's going OK. To print from my Fortran programs, it seems I need subroutines dblepr, realpr and intpr. From the excellent "Writing R Extensions" document: "Three subroutines are provided to ease the output of information from FORTRAN code. subroutine dblepr(label, nchar, data, ndata)
2011 Apr 09
2
A question about "txtProgressBar" function
...ssBar" function will wipe out what I want to print before it(for example - the "Hello" in following script), and the parameters "title" and "label" do not work either. How can I put a title for the progress bar? or is there any other better function I can use? testit <- function(total =20) { cat("Hello\n") # create progress bar pb <- txtProgressBar(min = 0, max = total, style = 3,title="ProgressBar1",label="ProgressBar2") for(i in 1:total){ Sys.sleep(0.1) # update progress bar setTxtProgressBar(pb, i) } close(pb) }...
2016 Apr 12
3
formula argument evaluation
I have a simple function such as: foo <- function(x) { call <- lapply(match.call(), deparse) testit <- capture.output(tryCatch(eval(x), error = function(e) e)) if (grepl("Error", testit)) { return(call$x) } } and I would like to detect a formula when x is not an object: # this works > foo(A + B) [1] "A + B" # but this doesn't > foo(A + B => C...
2019 Jun 20
2
Samba winbind on redhat 7
This way is so easier... Thank you Rowland Le 20/06/2019 ? 14:01, Rowland penny via samba a ?crit?: > On 20/06/2019 17:54, Edouard Guign? via samba wrote: >> My idea is to replace default "cifs_idmap_sss.so" plugin by >> "idmapwb.so" winbind plugin, in order to SSSD becomes a client of >> winbind. >> To avoid to change nsswitch.conf : >>
2019 Nov 08
3
improving the performance of install.packages
Hello, Currently if you install a package twice: install.packages("testit") install.packages("testit") R will build the package from source (depending on what OS you're using) twice by default. This becomes especially burdensome when people are using big packages (i.e. lots of depends) and someone has a script with: install.packages("tidyverse&q...
2002 Oct 28
11
Winbind!
...es it should authenticate. I have tried it with the username map = /etc/samba/smbusers and that did not work either. I have the winbind separator as + but if I run testparm I get the following: [root@gtdns root]# testparm Load smb config files from /etc/samba/smb.conf Processing section "[TESTIT]" Loaded services file OK. 'winbind separator = +' might cause problems with group membership. Press enter to see a dump of your service definitions If I change the separator to \ and run testparm I get the following: [root@gtdns root]# testparm Load smb config files from /etc/samba...
2001 Jul 12
1
Sys.getenv
...do setenv dendro_us hoffmann echo $dendro_us gives back: hoffmann which is correct. When in R I do: Sys.getenv("dendro_us") I get dendro_us "" which is NOT correct: Inverse effect (taken from help of Sys.getenv) Under R: print(Sys.putenv("R_TEST"="testit", ABC=123)) [1] TRUE TRUE Sys.getenv("R_TEST") gives back: R_TEST "testit" which seems correct. When in Solaris I do: echo $R_TEST R_TEST: Undefined variable. which is NOT correct: Third type of behaviour: echo $HOME /home/woodstock/hoffmann and Sys.getenv("HO...
2013 Oct 30
1
[LLVMdev] Optimization bug - spurious shift in partial word test
...have this problem. It just emits the shift and test. The reason appears to be that the instruction combining pass decides that the shift and test is equivalent to a test on the partial word, in this case an I36. >From the -debug log: >From the -debug log: .... INSTCOMBINE ITERATION #0 on testit IC: ADDING: 10 instrs to worklist IC: Visiting: %shl = shl i64 %a, 28 IC: Visiting: %cmp = icmp sgt i64 %shl, 0 IC: ADD: %0 = trunc i64 %a to i36 IC: Old = %cmp = icmp sgt i64 %shl, 0 New = <badref> = icmp sgt i36 %0, 0 IC: ADD: %cmp = icmp sgt i36 %0, 0 IC: ERASE %1 = icmp sgt i64 %shl, 0 IC...
2019 Nov 08
8
improving the performance of install.packages
...nto actual $$ saved Josh Bradley On Fri, Nov 8, 2019 at 5:00 AM Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > On 08/11/2019 2:06 a.m., Joshua Bradley wrote: > > Hello, > > > > Currently if you install a package twice: > > > > install.packages("testit") > > install.packages("testit") > > > > R will build the package from source (depending on what OS you're using) > > twice by default. This becomes especially burdensome when people are > using > > big packages (i.e. lots of depends) and someone...
2005 Jun 14
3
Calling C from Fortran
I would like to call C routines from Fortran under linux as suggested in section 5.6 of the "Writing R extensions" documentation. I'm familiar with Fortran but not with C. I understand the example provided in Fortran: subroutine testit() double precision normrnd, x call rndstart() x = normrnd() call dblepr("X was", 5, x, 1) call rndend() end but I don't understand the purpose of this C wrapper: #include <R.h> void F77_SUB(rndstart)(void) { GetRNGstate(); } void F77_SUB(rndend)(void) { PutRNGstate(); } d...