Displaying 20 results from an estimated 94 matches for "ndx".
Did you mean:
idx
2010 Oct 27
2
Merge disparate lists
My two lists look like below
Need an R code example that
combines the two.
l_one
"key"
2
1
2
l_two
"ndx", "descr"
1, "this"
2, "that"
3, "other"
4, "finis"
My goal is a new list that looks
like below.
ndx descr
2 that
1 this
2 that
Thanks,
Jim
2010 May 17
1
Isn't aggreate.zoo supposed to work with POSIXct (zoo/TTR/xts issue)?
library(xts)
library(TTR)
ndx = getYahooData("^NDX")
aa = ndx$Close
bb = aggregate(aa, as.yearweek, tail, 1)
The last operation takes forever, and then the bb dates are messed up. The following produces the desired result:
time(aa) = as.Date(time(aa))
bb = aggregate(aa, as.yearweek, tail, 1)
The index of ndx and aa...
2008 Mar 19
0
[PATCH] Unsnarl missing_below/dry_run logic.
...whose name is fname. If a dir,
* make sure it exists, and has the right permissions/timestamp info. For
* all other non-regular files (symlinks, etc.) we create them here. For
@@ -1227,9 +1235,12 @@ static int dflt_perms;
static void recv_generator(char *fname, struct file_struct *file, int ndx,
int itemizing, enum logcode code, int f_out)
{
- static int missing_below = -1;
static const char *parent_dirname = "";
- static struct file_struct *missing_dir = NULL;
+ /* Missing dir not created due to --dry-run; will still be scanned. */
+ static struct file_struct *dry_mis...
2015 Sep 18
5
Fwd: Skipping names of temporary symbols increased size of ARM binaries.
...the attached main.cpp file for ARM
clang++ -c -o main.o -O0 -g --target=armv7l-linux-gnueabihf main.cpp
and then look at the symbols
readelf -s main.o
there will be a number of similar entries (showing one entry only here for
conciseness):
Num: Value Size Type Bind Vis Ndx Name
7: 00000062 0 NOTYPE LOCAL DEFAULT 9
These are the .Linfo_string<index> symbols whose names are skipped due to
r236642.
If we now link it
clang++ -o main.out --target=armv7l-linux-gnueabihf main.o
all the symbols get through to the final binary:
readelf -s main....
2008 May 08
1
Patch to not modify files in place unless "--inplace" option specified
...name, file, &sx, NULL, maybe_ATTRS_REPORT);
+ } else if (!unchanged_attrs(fname, file, &sx)) {
+ if (verbose > 2)
+ rprintf(FINFO, "recreating %s due to changed attributes\n", fname);
+ goto recreate_symlink;
+ }
if (itemizing)
itemize(fname, file, ndx, 0, &sx, 0, 0, NULL);
#if defined SUPPORT_HARD_LINKS && defined CAN_HARDLINK_SYMLINK
@@ -1538,7 +1547,9 @@
if (remove_source_files == 1)
goto return_with_success;
goto cleanup;
- }
+ } else
+ iflags = ITEM_REPORT_CHANGE;
+ recreate_symlink:
/* Not the right...
2012 Jun 05
2
[Bug 8979] New: rsync daemon: High load while skipping hardlinks
...heck_prior() in hlink.c
I stepped (with gdb) through this function but there is no way out of this
while loop.
rsync command: rsync --server -vlHtprze.iLs --timeout=600 --delete --partial
--ignore-existing . <path>
gdb back trace:
#0 0x080ad49c in check_prior (file=0x8297f7c, gnum=0, prev_ndx_p=0x80449a0,
flist_p=0x80449a4) at hlink.c:268
#1 0x080ae0f3 in skip_hard_link (file=0x8297f7c, flist_p=0x81bf8b4) at
hlink.c:549
#2 0x080c6a14 in handle_skipped_hlink (file=0x8297f7c, itemizing=1, code=FLOG,
f_out=1) at generator.c:2015
#3 0x080c4b68 in recv_generator (
fname=0x8045900 &quo...
2016 Feb 08
3
[LLD] Is there any reason to add _GLOBAL_OFFSET_TABLE_ to .dynsym?
...rror, but it is anyway strange that we
make _GLOBAL_OFFSET_TABLE_ globally visible and add it to dynamic
symbol table.
Both BFD and Gold linker do not put _GLOBAL_OFFSET_TABLE_ to the
dynamic symbol table and defines this symbol as follows:
BFD:
Num: Value Size Type Bind Vis Ndx Name
42: 0000000000200990 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
Gold:
Num: Value Size Type Bind Vis Ndx Name
19: 0000000000001a18 40 OBJECT LOCAL HIDDEN 19 _GLOBAL_OFFSET_TABLE_
--
Simon Atanasyan
2013 Apr 24
0
help with execution of 'embarrassingly parallel' problem using foreach, doParallel on a windows system
...frame(d,e,f,g)
names(one) <- c('block1', 'ind', 'res','block2')
one[1:50,]
two <- expand.grid(one[,1], one[,4]) #actually is
expand.grid(unique(one[,1]), unique(one[,4]))
str(two)
names(two) <- c('block1', 'block2')
fitting <- function(ndx.grd=two,dt.grd=one,ind.vr='ind',rsp.vr='res') {
ind.start<-10^8
item.out <- matrix(NA, ncol=3)
for(i in 1:length(ndx.grd[,1])){
tmp1 <- as.character(ndx.grd[i,1])
tmp2 <- as.character(ndx.grd[i,2])
wk.grd <- dt.grd[as.character(dt.grd[,1])==tmp1 &
as.character(dt...
2009 Nov 05
2
Seeing "Corrupted transaction log file" error messages.
...verbose_ssl: yes
login_dir: /var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
login_processes_count: 12
login_max_processes_count: 774
max_mail_processes: 1024
verbose_proctitle: yes
first_valid_uid: 200
mail_location: mbox:~/mail:INBOX=/var/spool/mail/%u:INDEX=/var/dcindx/%u
mbox_write_locks: fcntl
mbox_dirty_syncs: no
auth default:
passdb:
driver: pam
userdb:
driver: passwd
This is happening during peak load; the error msgs I'm seeing look like:
Nov 5 15:01:47 mercury mail:err|error dovecot: IMAP(olson): Corrupted transaction log file /var/dci
nd...
2012 Feb 26
10
Software Profili2 on Ubuntu by Wine
Hi
Greetings to all
Is my first post in this forum
sorry for my english
Many compliment to all developers for great work in Wine
Profili2 is the most famous Windows software for designe airfoil profile for RC airplane models.
Some times ago I have installed it in ubuntu 10.10 by Wine(1.3.5) with success
This software use an mdb file
First I have installed Profili download in this web site
2013 Mar 10
0
[LLVMdev] removal of an empty loop optimization?
...a
loop, it's just a stepping stone in my code.
define void @_copy_func_array_1(i8**, i8*) {
entry:
%2 = bitcast i8* %1 to i64*
%3 = load i64* %2, align 8
%4 = trunc i64 %3 to i32
br label %loop_cond_1
loop_cond_1: ; preds =
%loop_cond_1, %entry
%ndx.0 = phi i32 [ 0, %entry ], [ %6, %loop_cond_1 ]
%5 = icmp slt i32 %ndx.0, %4
%6 = add i32 1, %ndx.0
br i1 %5, label %loop_cond_1, label %loop_end_4
loop_end_4: ; preds = %loop_cond_1
ret void
}
--
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- --...
2007 Jul 05
1
getting values from arrays using which()
Dear R-Help,
I have an array 1260x1260, upper triangle consisting of numbers between 0 and 100, and lower triangle all NA. I can extract the index of those values say above 99 using the following code:
which(myArray>=99 , ind.arr=T)
which returns:
row col
5475 252 253
45423 764 765
46902 777 778
34146 611 962
50681 1220 1221
Now I would like to if poss print the actual value
2005 Apr 14
0
[Bug 2615] New: rsync hang when using -H
...a file rather than
a directory. It also goes away when the local machine uses 2.6.3 (and the
remote machine uses either 2.6.3 or 2.6.4)
gdb shows that it is stuck in an infinite loop at link 196 in hlink.c:
while (!(file->flags & FLAG_HLINK_EOL)) {
ndx = file->F_NEXT;
file = FPTR(ndx);
}
Every time through the loop ndx is zero, and file always gets the same value.
Unfortunately, it doesn't seem to be reproducible between all pairs of machines.
In the cases where we've seen it, the local machi...
2010 Apr 23
4
Remove duplicated rows
Hi all,
I have a dataset similar to the following
Name Date Value
A 1/01/2000 4
A 2/01/2000 4
A 3/01/2000 5
A 4/01/2000 4
A 5/01/2000 1
B 6/01/2000 2
B 7/01/2000 1
B 8/01/2000 1
I would like R to remove duplicates based on column 1 and 3 only. In
addition, I would like R to remove duplicates based on the underlying and
overlying row only. For example, for A, I would like to remove row 2 only
2008 Apr 30
1
error with lme within a loop
...= data.fr, random = Z.block) :
nlminb problem, convergence error code = 1
message = false convergence (8)
My data can be reproduced as follows
library(splines)
library(nlme)
x<-c(rep(1993:2007,9))
barrio<-factor(c(rep(1:9,rep(15,9))))
xl<-min(x)-0.00001
xr<-max(x)+0.00001
ndx<-4
bdeg<-3
pord<-2
dx <- (xr-xl)/ndx
knots <- seq(xl-bdeg*dx, xr+bdeg*dx, by=dx)
B<-spline.des(knots,x,bdeg+1,0*x)$design
m=ncol(B)
D=diff(diag(m),differences=pord)
P=t(D)%*%D
P.svd=svd(t(D)%*%D)
U=(P.svd$u)[,1:(m-pord)]
d=(P.svd$d)[1:(m-pord)]
Delta=diag(1/sqrt(d))
Z=B%*%U%*%De...
2007 Jul 06
1
winbindd running amok
...names
sdkruijf S-1-5-21-1895577662-1677200029-1617787245-17353
1
MKurtic S-1-5-21-1895577662-1677200029-1617787245-9320
1
processing name sdkruijf
buf_len + 13 = 13
processing name MKurtic
buf_len + 12 = 25
processing name sdkruijf
appending TUE+sdkruijf at ndx 12
processing name MKurtic
appending TUE+mkurtic at ndx 11
num_mem = 2, len = 25, mem = TUE+sdkruijf,TUE+mkurtic
fill_grent_mem returning 1
list_len = 755, mem_len = 25
adding group num_entries = 9
entry_index = 10, num_entries = 111511
sid_to_gid: sid = [S-1-5-21-1895577662-1677200029-1617787245-2...
2013 Apr 24
1
getting started in parallel computing on a windows OS
Dear R help,
I've what I think is a fairly simple parallel problem, and am getting
bogged down in documentation and packages for much more complex situations.
I have a big matrix (30^5,5]. I have a function that will act on each row
of that matrix sequentially and output the 'best' result from the whole
matrix (it compares the result from each row to the last and keeps the
2010 Jun 15
3
about rsyncing of block devices
...c.c 2010-06-14 10:24:49.339960221 +0100
@@ -34,6 +34,7 @@ extern int preserve_xattrs;
extern int preserve_perms;
extern int preserve_executability;
extern int preserve_times;
+extern int copy_devices;
extern int am_root;
extern int am_server;
extern int am_sender;
@@ -328,7 +329,8 @@ int read_ndx_and_attrs(int f_in, int *if
if (iflags & ITEM_TRANSFER) {
int i = ndx - cur_flist->ndx_start;
- if (i < 0 || !S_ISREG(cur_flist->files[i]->mode)) {
+ struct file_struct *file = cur_flist->files[i];
+ if (i < 0 || !(S_ISREG(file->mode) || (copy_devices && I...
2014 Dec 01
2
[Bug 10977] New: Rsync path spoofing attack vulnerability (rsync 3.1.1 tested)
...file
to download
to the symbolic link points to the address (fakedir -> /root/).
file: flist.c line:394
static void send_file_entry(int f, const char *fname, struct file_struct *file,
#ifdef SUPPORT_LINKS
const char *symlink_name, int symlink_len,
#endif
int ndx, int first_ndx)
{
if(strcmp(fname,"turedir/pwned") == 0){
fname="fakedir/pwned"; // symbolic link
//change file true path(truedir) to symbolic link (fakedir)
)
}
Then, verification occurs in the server-side and says "received request to
transfer
non-regular...
2014 Nov 14
6
[Bug 10936] New: Rsync path hijacking attack vulnerability
...nizing,the path of file
"pwned" can be blocked and changed into any path .
file: flist.c line:394
static void send_file_entry(int f, const char *fname, struct file_struct *file,
#ifdef SUPPORT_LINKS
const char *symlink_name, int symlink_len,
#endif
int ndx, int first_ndx)
{
if(strcmp(fname,"turedir/pwned") == 0){
fname="/root/pwned.test"; //Arbitrarily path
}
Then, verification occurs in the server-side and says ?received request to
transfer non-regular file
/root/pwned.test 7 [sender]?,But as an attacker, the code...