similar to: avoiding a loop?

Displaying 20 results from an estimated 800 matches similar to: "avoiding a loop?"

2007 Dec 02
3
documenting yoru progress
Hello all: I have a function that writes a fairly elaborate report based on some survey data. For documentation and bookkeeping purposes, I'd like to write out in the report the function call that produced the report, or at least enough information to help me recreate the steps that led to that report. I've been generating all the reports with scripts, in order to be able to recreate
2007 Nov 30
1
vector sprintf argument
Hello all: If I have a vector and a format, I want to do this: > A <- c(3,4,5) > F <- "Number: %d, %d, %d" > sprintf(F,A) This doesn't work because A isn't three arguments, it's just one. Is there a way to peel the vector members out of A so that sprintf can get at them? I would like to do this because I have a large set of variable-length data that
2007 Sep 27
1
curvilinear grid
Hello all: A question from a new user. I have data on a geo-referenced curvilinear grid. This is a grid with 75 rows and 51 columns, is not aligned north-south, and the rows and columns are not straight. (And the coordinates are in meters.) I want to make image plots of this data, but where the grid is deformed according to the correct locations of the grid points, instead of coming out
2007 Oct 10
3
simulated data using empirical distribution
Hello all: I'm sure this is a trivial request, but I'm still a beginner at this, and haven't been able to find it. I need to create simulated data based on some empirical distributions of a single variable. I've found R functions to help me simulate data based on analytical distributions, or to make simulations based on correlation matrices, but nothing so simple as what I need.
2007 Dec 20
1
data shape
Hello: I have been give a spreadsheet to work with formed as one big table. What it consists of is a 10-row-by-40-column table for each of about 70 different locations. In other words, the table row names are repeated 70 times, once for each of the locations (whose names also appear in the same column, where it's talking about the totals for that location), e.g.: A B C
2007 Nov 30
0
vector sprintf argument [SEC=UNCLASSIFIED]
Hi Tom, Try this: > G <- "Number: %s" > sprintf(G, toString(A)) [1] "Number: 3, 4, 5" Cheers Joe Joe Crombie Biosecurity and Information Sciences Bureau of Rural Science Canberra Australia p: +61 2 6272 5906 e: joe.crombie at brs.gov.au -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of
2013 Mar 09
1
snapshot-create fails with "error: Failed to open file '(null)': Bad address"
Hello. I'm not able to create a snapshot for none of my vm's running on a particular node. And i have absolut no idea where to look to solve this. Someone can point me to the right direction? hn images # qemu-x86_64 -version qemu-x86_64 version 1.2.2 (qemu-kvm-1.2.0), Copyright (c) 2003-2008 Fabrice Bellard hn images # libvirtd --version libvirtd (libvirt) 1.0.3 hn images # qemu-img
2005 Nov 25
2
Ordering problem
I have an ordering and factor problem to which there must be a simple solution! The version is R 2.0.1 (2004-11-15) on A Linux platform. A data frame H is read in from a .csv file using read.csv with as.is=TRUE. Another data frame HN is constructed from data and I want to compare two columns both named ss of the (sorted) data frames that are the same length. The problem is that HN$ss is
2014 Jan 24
1
Possible SYN flooding on port 8000. Sending cookies
Hi *Problem *- I'm running Icecast in a VM container on OpenVZ. Syslog on the hardware node (HN) shows these error messages: Jan 23 18:43:05 HN kernel: [27469893.430615] possible SYN flooding on port 8000. Sending cookies. Jan 23 21:37:40 HN kernel: [27480362.817944] possible SYN flooding on port 8000. Sending cookies. Jan 23 23:43:50 HN kernel: [27487929.582025] possible SYN flooding on
2013 Sep 20
1
Re: Incremental Backups
On 2013-09-20 16:05, Davide Guerri wrote: > Hi > >> hn LibVirtKvm-scripts # ./fi-backup.sh -b /opt/virt-backup-local/ -d >> serve.lordcritical >> [DEB] qemu-img version '1.6.0' is supported >> [DEB] KVM version '1.6.0,' is supported >> [DEB] Snapshot for domain 'serve.lordcritical' requested >> [DEB] Using timestamp
2006 May 02
1
pairwise.t.test: empty p-table
Hi list-members can anybody tell me why > pairwise.t.test(val, fac) produces an empty p-table. As shown below: Pairwise comparisons using t tests with pooled SD data: val and fac AS AT Fhh Fm Fmk Fmu GBS Gf HFS Hn jAL Kol R_Fill AT - - - - - - - - - - - - - Fhh - - - - - - - - - - - - - Fm - - - - - - -
2004 Jul 05
1
Accounts are getting disabled
> > On Sat, 3 Jul 2004, Tilo Lutz wrote: > > > None of my acounts in ldap have set sambaPwdLastSet, even those > > > acounts which became disabled. If I have understand you right, > > > samba should not disable account if the attribute sambaPwdLastSet > > > is not defined in ldap? > On Mon, 2004-07-05 at 06:56, Gerald (Jerry) Carter wrote: > > If
2017 Jan 13
2
Loop identification
Good afternoon, I'm working on modifying the Mips backend in order to add new functionalities. I've successfully implemented the intrinsics, but I want to recognize a pattern like this: int seq[max]; int cnt = 0; for (int i = 0; i < max; i++) { for (int j = 0; i < 16; i++) { char hn = (seq[i] & (3<<(j*2)) >> (j*2); if (hn == 2) {
2004 Sep 13
2
CentOS 3.1: sshd and pam /etc/security/limits.conf file descriptor settings problem
Why can't non-uid 0 users have more than 1024 file descriptors when logging in via ssh? I'm trying to allow a user to have a hard limit of 8192 file descriptors(system defaults to 1024) via the following setting in /etc/security/limits.conf: jdoe hard nofile 8192 But when jdoe logs in via ssh and does 'ulimit -Hn' he gets '1024' as a response. If he tries to
2009 Mar 10
1
Matrices in R - Simple question?
Hi, I'm a new R user and would appreciate your help regarding the following: Can I create a matrix whose elements are n functions of a vector x? In my problem I have 3 vectors (a,b,c) with elements a=[f1(x) f2(x)....fn(x)]; b=[g1(x) g2(x)....gn(x)]; c=[h1(x) h2(x)....hn(x)]. I need to create a final function that looks like: f(x)=f1(x)*g1(x)*h1(x)+.....+fn(x)*gn(x)*hn(x). (f(x) is my
2013 Jul 02
2
Re: backup procedure using blockcopy
> virsh dumpxml --security-info dom > dom.xml > virsh undefine dom Hello. Someone was talking about this (undefining the VM) would not be neccessary anymore when qemu-1.5 has been released. Is that true? > virsh blockcopy dom vda /path/to/backup-vda > polling loop - check periodically until 'virsh blockjob dom vda' > shows 100% completion > virsh suspend
2013 Sep 20
2
Re: Incremental Backups
On 2013-09-20 15:41, Davide Guerri wrote: > Hi Thomas, Hello Davide. > I'm using this script which leverages external snapshots and > blockpull: https://github.com/dguerri/LibVirtKvm-scripts Yeah. I saw that and tried this already. But it needs to be adjusted to libvirtd-1.1.2 i think. Can you do this? I fiddled a litte bit around but wasn't realy successfull. hn
2005 Feb 24
2
permanent ulimit -n on CentOS 3.4
Hi! Question from the novice. I have to permanently increase number of opened files ( ulimit -n 16384 and ulimit -Hn 16384) for some application. I did custom kernel based on https://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/sysadmin-guide/s1-custom-kernel-modularized.html and application documentation ( written for RH 9), no error during all makes but I have panic during the
2004 Oct 09
2
Groupmapping doesn't work
Hi I got a problem with groupmapping. It doesn't work correct: Wilma2:/home/root # net groupmap list | grep 512 Domain Admins (S-1-5-21-3371203057-3264423045-2392767973-512) -> domadm ldapsearch -x cn=domadm: # domadm, groups, wms-hn.de dn: cn=domadm,ou=groups,dc=my-domain objectClass: posixGroup objectClass: sambaGroupMapping cn: domadm gidNumber: 65669 memberUid: tilo sambaSID:
2011 Dec 04
0
Kernel oopses with gluster fuse on squeeze
Hi, We've been experiencing repeated (every other day) oopses on hosts with high load glusterfs accesses. Co-occurrent (not immediately tho, but there is some sort of connection) are hanging nginx processes (doing the accessing), which can not be stopped, killed and also block the shutdown of the respective openvz instance. I think I remember at least one instance where this occurred without