Displaying 20 results from an estimated 473 matches for "jj".
2004 Sep 08
3
do.call("[", ...) question
Hi again everyone
I have an arbitrarily dimensional array "a" and a list "jj" of length
length(dim(a)). The elements of jj are vectors of indexes.
How do I use do.call() to extract a[ jj[[1]], jj[[2]], jj[[3]], ...] ?
Toy example follows:
a <- matrix(1:30,5,6)
jj <- list(5:1,6:1)
I want the following
a[ jj[[1]],jj[[2]] ]
How do I do this?
OBAttempt...
2011 Mar 03
3
top and allocation issues
In a context where exceptions are caught, I ran
the fragment:
cerr << "allocating" << endl;
char* arr[100];
for (int jj = 0; jj < 10; ++jj)
{
cerr << "jj = " << jj << endl;
arr[jj] = new char[2000000000];
sleep (30);
}
sleep (10);
for (int jj = 0; jj < 10; ++jj)
delete[] arr[jj];
cerr << "deleted" << endl;
The exception w...
2005 Jun 13
3
extracting components of a list
Hi
how do I extract those components of a list that satisfy a certain
requirement? If
jj <- list(list(a=1,b=4:7),list(a=5,b=3:6),list(a=10,b=4:5))
I want just the components of jj that have b[1] ==4 which in this case
would be the first and
third of jj, viz list (jj[[1]],jj[[3]]).
How to do this efficiently?
My only idea was to loop through jj, and set unwanted components to...
2013 Apr 17
4
[LLVMdev] Loop vectorizer behaviour for 2D arrays and parallel annotation
Hello,
I am trying to vectorize the following loop but the vectorizer says:
"Found a possible write-write reorder" and does not vectorize.
Why?
for (j=0; j < 8; j++)
{
jj = j << 3;
m2[j][0] = diff[jj ] + diff[jj+4];
m2[j][1] = diff[jj+1] + diff[jj+5];
m2[j][2] = diff[jj+2] + diff[jj+6];
m2[j][3] = diff[jj+3] + diff[jj+7];
m2[j][4] = diff[jj ] - diff[jj+4];
m2[j][5] = diff[jj+1] - diff[jj+5];
m2[j][6] = diff[jj+2] - diff[jj+6];...
2000 Dec 10
1
seq(0.05,0.95,by=0.002) and logical error
Regardless of which version -- 1.1.1 or 1.2.0 (2000-11-27) -- with a fresh
"directory" (i.e. no .RData), I am getting an extremely weird result.
R : Copyright 2000, The R Development Core Team
Version 1.2.0 Under development (unstable) (2000-11-27)
> jj _ seq(0.05,0.95,by=0.002)
> sum(jj==0.75) ## WRONG ANSWER
[1] 0
> 0.05 + 350*.002 ## Double check that 0.75 is in jj
[1] 0.75
> sum(jj==0.5)
[1] 1
> sum(jj==0.562)
[1] 1
> sum(jj==0.564) ## 0.564 seems to be the cutoff point
[1] 0
Version 1.1.1 (August 15, 2000)
> jj _ seq(0.05...
2017 Apr 26
2
sshd: SSH_CLIENT_CERT and SSH_CLIENT_PUBKEY env variables
Hello,
There are environment variables SSH_CLIENT and SSH_CONNECTION
with information about client of current session.
I want to implement new variables with info about credentials used for session authentication.
Such as:
SSH_CLIENT_CERT
SSH_CLIENT_CERT_ID
SSH_CLIENT_CERT_PRINCIPALS
SSH_CLIENT_PUBKEY
SSH_CLIENT_PUBKEY_FINGERPRINT
Some of that information available in logs but not inside the
2009 May 14
2
[LLVMdev] alias analysis results
Hi there,
I am trying to understand how AliasAnalysis works out in LLVM. I used
the following simple test-case (test4.c):
--
void test()
{
int *jj, *kk;
int aa = 100;
jj = &aa;
*jj = 300;
}
int main()
{
test();
return 0;
}
--
Then I did "llvm-gcc -emit-llvm -c -o test4.bc test4.c" to get bc. I
tried the following 2 ways to get what I expect to get as
"alias-sets":
1. opt -aa-eval -print-all-alias-m...
2009 Oct 23
1
access elements of a named list using a factor
Hi
I have a factor 'f' and a named list 'jj'.
I want names(jj) to match up with levels(f).
How do I use levels(f) to access elements of jj?
> f <- factor(c("pigs","pigs","slugs"))
> f
[1] pigs pigs slugs
Levels: pigs slugs
>
> jj <- list(pigs=1:10,slugs=1:3)
My attempts to prod...
Samba share not working: getpwuid(1000) failed, Failed to finalize nt token & NT_STATUS_UNSUCCESSFUL
2019 Nov 26
3
Samba share not working: getpwuid(1000) failed, Failed to finalize nt token & NT_STATUS_UNSUCCESSFUL
...ix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
guest account = jj
[users]
comment = Our Jazz Files
path = /samba/users
browseable = yes
read only = no
create mask = 0775
directory mask = 0775
guest ok = yes
---------------------------
testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max...
2019 Feb 07
6
Optimización identificación de casos similares
...Citacion.*
*Citacion[,"NombreDoc"]<- paste0(Citacion[,"NOMBRE"]," ",
Citacion[,"DOCUMENTO"]) # Concatena Nombre y documento*
*Citacion[,"RNomDoc1"]<-0*
*Citacion[,"RNomDoc2"]<-0*
*ii<-1*
*for(ii in 1:(nrow(Citacion)-1)){*
* jj<-ii+1*
* while(jj<=nrow(Citacion)){*
* if (adist(Citacion[ii,"NombreDoc"],
Citacion[jj,"NombreDoc"])/nchar(Citacion[ii,"NombreDoc"])<0.15){ #
Criterio para marcar los posibles casos duplicados*
* Citacion[ii,"RNomDoc1"]<-1*
* Citac...
2009 May 15
1
[LLVMdev] alias analysis results
Hi Eli, thanks for the answers helping out.
I tried to understand further - got another example:
void test()
{
int *jj, *kk;
int aa = 100;
jj = &aa;
*jj = 300;
kk = jj;
*kk = 400;
}
int main()
{
test();
return 0;
}
bc looks like the following (only test() part)
define void @test() nounwind {
entry:
%aa = alloca i32 ; <i32*> [#uses=2]
%kk = alloca i32* ; <i32**>...
2013 Apr 17
0
[LLVMdev] Loop vectorizer behaviour for 2D arrays and parallel annotation
...lowing loop but the vectorizer says:
> "Found a possible write-write reorder" and does not vectorize.
> Why?
To my knowledge, the dependence analysis in the loop vectorizer is not
yet able to prove the absence of dependences here.
> for (j=0; j < 8; j++)
> {
> jj = j << 3;
> m2[j][0] = diff[jj ] + diff[jj+4];
> m2[j][1] = diff[jj+1] + diff[jj+5];
> m2[j][2] = diff[jj+2] + diff[jj+6];
> m2[j][3] = diff[jj+3] + diff[jj+7];
> m2[j][4] = diff[jj ] - diff[jj+4];
> m2[j][5] = diff[jj+1] - diff[jj+5];
>...
2009 May 14
0
[LLVMdev] alias analysis results
On Thu, May 14, 2009 at 2:19 PM, Weihua Sheng <weihua.sheng at gmail.com> wrote:
> I actullay would expect the more accurate results from applying
> anders-aa, but I could not interpret what has been returned - at least
> I should see something like jj->aa, right?
I'm not quite following... jj and aa don't alias; both versions show
that. The results returned for anders-aa are completely precise
except that it doesn't know that "%0" and "%aa" must point to exactly
the same object.
-Eli
2015 Jan 09
4
Use Samba with ACL for read Active Directory and set Permissions via it.
....
>> I changed my "krb5.conf" as below :
>>
>>
>> [logging]
>> default = FILE:/var/log/krb5libs.log
>> kdc = FILE:/var/log/krb5kdc.log
>> admin_server = FILE:/var/log/kadmind.log
>>
>> [libdefaults]
>> default_realm = JASONDOMAIN.JJ
>> dns_lookup_realm = false
>> dns_lookup_kdc = true
>> ticket_lifetime = 24h
>> renew_lifetime = 7d
>> forwardable = yes
>> default_keytab_name = /etc/krb5.keytab
>> default_tgs_enctypes = AES256-CTS AES128-CTS RC4-HMAC DES-CBC-MD5 DES-CBC-CRC
>> def...
2004 Jan 14
1
arrows on contour lines
Hello everybody
I'm using contour() to draw streamlines of potential flow, eg
jj <- seq(from= -4, to=4,len=20)
jj <- outer(jj,jj,function(x,y){x})+1i*outer(jj,jj,function(x,y){y})
f <- function(x){x^2}
contour(Im(f(jj)), nlevels=44 , labels="")
How best to put arrows on the contour lines to show the direction of flow?
(ie I want contour lines looki...
2015 Jan 07
2
Use Samba with ACL for read Active Directory and set Permissions via it.
...10:51, Jason Long wrote:
> Thank you.
> I changed my "krb5.conf" as below :
>
>
> [logging]
> default = FILE:/var/log/krb5libs.log
> kdc = FILE:/var/log/krb5kdc.log
> admin_server = FILE:/var/log/kadmind.log
>
> [libdefaults]
> default_realm = JASONDOMAIN.JJ
> dns_lookup_realm = false
> dns_lookup_kdc = true
> ticket_lifetime = 24h
> renew_lifetime = 7d
> forwardable = yes
> default_keytab_name = /etc/krb5.keytab
> default_tgs_enctypes = AES256-CTS AES128-CTS RC4-HMAC DES-CBC-MD5 DES-CBC-CRC
> default_tkt_enctypes = AES256-CTS A...
2015 Jan 06
2
Use Samba with ACL for read Active Directory and set Permissions via it.
On 06/01/15 06:17, Jason Long wrote:
> Thanks.
> My domain name is "jasondomain.jj" and backend is "jasondomaini".
No, your realm name is "jasondomain.jj" and it would seem that your
domain name is "jasondomaini", the domain name can also be known as the
'workgroup' name.
Set smb.conf to match this:
[global]
workgroup = JAS...
2010 Jun 11
4
script question
Hi all,
in a script if I have:
VERSION="3.2.0"
I can do:
echo jj-$VERSION-jj
and get jj-3.2.0-jj
however if I do:
echo jj_$VERSION_jj
I get jj_
How do I get the $VERSION to work with the underscores like the dashes do.
Thanks,
Jerry
2015 Jan 05
2
Use Samba with ACL for read Active Directory and set Permissions via it.
On 05/01/15 11:09, Jason Long wrote:
>
>
> Thank you.
>
> My Windows is Windows server 2008 R2.
> About realm name, My domain name is "JASONDOMAIN.JJ".
> My Windows not have any Workgroup Name. It is Domain.
>
>
> Thanks
>
>
>
>
> On Monday, January 5, 2015 1:05 AM, Rowland Penny <rowlandpenny at googlemail.com> wrote:
> On 05/01/15 07:02, Jason Long wrote:
>> Thanks a lot.
>> I changed the be...
2015 Jan 05
2
Use Samba with ACL for read Active Directory and set Permissions via it.
...n idea and I guess that "/etc/krb5.conf" has some incorrect options. The file is "
>
> [logging]
> default = FILE:/var/log/krb5libs.log
> kdc = FILE:/var/log/krb5kdc.log
> admin_server = FILE:/var/log/kadmind.log
>
> [libdefaults]
> default_realm = JASONDOMAIN.JJ
> dns_lookup_realm = false
> dns_lookup_kdc = true
> ticket_lifetime = 24h
> renew_lifetime = 7d
> forwardable = yes
> default_keytab_name = /etc/krb5.keytab
> default_tgs_enctypes = AES256-CTS AES128-CTS RC4-HMAC DES-CBC-MD5 DES-CBC-CRC
> default_tkt_enctypes = AES256-CTS A...