search for: sec1

Displaying 16 results from an estimated 16 matches for "sec1".

Did you mean: sec
2005 Nov 27
5
creating a factor from other factors and ifelse
...8 <- factor(rep(1:2,3), labels=c("A", "B")) > sec99 <- factor(rep(2:1,3), labels=c("A", "B")) > sec99[c(2,5)] <- NA > sec00 <- factor( c( rep(1,3), rep(2,3) ), labels=c("A", "B")) > sec00[c(2,4)] <- NA > sec1 <- ifelse(!is.na(sec99), sec99, ifelse(!is.na(sec00), sec00, NA )) We get > sec1; class(sec1) [1] 2 NA 2 1 2 1 [1] "integer" I wonder why sec1 as above defined in not a factor, since it has been created from (logical operations and) factors. Of course, one could do...
2011 Aug 10
2
join columns
...yJoinColumns(q1,q2) a b c d q1 1 2 3 0 q2 4 1 0 4 myJoinColumns <- function(q1,q2){ allNames = sort(union(colnames(q1),colnames(q2))) for (i in 1:length(allNames)){ t1 = which(colnames(q1) == allNames[i]) t2 = which(colnames(q2) == allNames[i]) if (length(t1) == 1){ sec1 = q1[,t1] } else { sec1 = 0 } if (length(t2) == 1){ sec2 = q2[,t2] } else { sec2 = 0 } if (i == 1){ qTable = matrix(c(sec1,sec2)) }else{ qTable = cbind(qTable,c(sec1,sec2)) } } colnames(qTable) = allNames rownames(qTable) = c(&qu...
2006 Oct 24
0
incorrect number of subscriptions error in user-written function
...I would like to generate combinations/permutations across different selections - for example all the combinations of "3 chosen from 6" combined with "5 chosen from 8" combined with "2 chosen from 4". Loading gtools I can generate the combinations for each selection sec1 = combinations(4,2,1:4) sec2 = combinations(6,3,5:10) sec3 = combinations(8,5,11:18) I then wrote a function to combine the combinations for each selection. multiperm <-function(x, y) # function to combine combinations { xdim = nrow(x) xcol = ncol(x) ydim = nrow(y) ycol = ncol(y) v1 = m...
2005 Oct 15
1
Samba ignores write and read list
...file = /var/log/samba.log socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 encrypt passwords = yes wins support = yes local master = yes domain master = yes preferred master = yes os level = 50 force create mode = 0766 [ALL] path = /data/all public = yes guest ok = yes writeable = yes [SEC1] path = /data/SEC1 public = no writeable = yes valid users = mike bill [SEC2] path = /data/SEC2 public = no valid users = mike john writeable = yes read list = john ========================================== SEC1 works ok, SEC2 has problems described above. Testparm passes with no problems. Tha...
2020 Apr 15
2
Can't start vm with enc backing files, No secret with id 'sec0' ?
...#39;0' bus='0' target='0' unit='0'/> </disk> 4. According to the qemu documentation, an encrypted snap.qcow2 disk was created with enc.qcow2 as backing qemu-img create -f qcow2 -F qcow2 --object secret,id=sec0,data=$MYSECRET,format=base64 --object secret,id=sec1,data=$MYSECRET,format=base64 -o encrypt.format=luks,encrypt.key-secret=sec1 -b 'json:{"encrypt.key-secret": "sec0", "driver": "qcow2", "file": {"driver": "file", "filename": "/root/enc/enc.qcow2"}}' sn...
2005 Jan 19
2
signif() generic
...'m running into trouble when trying to get signif() to work for my purposes, i.e. with a default argument (digits=2): When trying > seMethod("signif", signature(x="sec", digits="numeric")), function(x, digits=2){ # ...do something... } ) and > signif(sec1) I get > Error in signif(x, digits) : Non-numeric argument to mathematical function Putting a second argument (like digits=2) into the call makes it work, but I want some default behavior specified for missing digits argument so it works in an analogous fashion as signif for numeric values....
2007 Apr 13
3
RJS - replacing html for multiple entries
I have some elements that could show up on the same page multiple times. Can anyone recommend a good way to do a replace_html in this case? I may have, for example, 3 posts that have been repeated on a page, all with the same id (e.g, <div id="post-11">) and I want to perform a replace_html against all of them. Doing it the normal way just replaces the first. Can someone help?
2012 Nov 28
1
in Rd documentation, line breaks in code blocks?
...In this subsection, I want to have a code fragment. This code fragment should include several commands, spanning several lines. Example: ========== \name{aqr-package} \alias{aqr-package} \alias{aqr} \docType{package} \title{Package level introduction} \description{description goes here.} \section{sec1}{ some text. \subsection{subsec1}{ some text. \code{ require(aqr) require(quantmod) # fetch them via quantmod getSymbols(c("MSFT", "SAP")) ... } } } ========== The problem is, everything in \code{} gets printed into one line. If I add \cr at the end of every line in \code, i...
2020 Apr 15
0
Re: Can't start vm with enc backing files, No secret with id 'sec0' ?
...get='0' unit='0'/> > > </disk> > > 4. According to the qemu documentation, an encrypted snap.qcow2 disk was created with enc.qcow2 as backing > > qemu-img create -f qcow2 -F qcow2 --object secret,id=sec0,data=$MYSECRET,format=base64 --object secret,id=sec1,data=$MYSECRET,format=base64 -o encrypt.format=luks,encrypt.key-secret=sec1 -b 'json:{"encrypt.key-secret": "sec0", "driver": "qcow2", "file": {"driver": "file", "filename": "/root/enc/enc.qcow2"}}' sn...
2003 Jul 30
2
ADSI and SoftKeys
Has anyone solved the problem on the ADSI phones that when you hit one of the soft keys, the Number Pad stops working?
2013 Feb 11
1
Quick start configuration sample for "chan_dahdi.conf"
I am really a beginner of PRI ISDN board, I am wondering if there is a "quick start" chan_dahdi.conf configuration I could use. I tried to install two "FreePBX" boxes follow the instructions from "http://www.cadvision.com/blanchas/Asterisk/DahdiT1trunk.html" connected them between PRIs, It worked. And now if I refer the FreePBX "chan_dahdi.conf" it looks
2012 Jan 16
3
Using Sweave to generate multiple documents
Hello, I tried looking for a Sweave-specific list but didn't find one, nor did I find an answer via google, so will send this question to the general R list. Please feel free to point me in the right direction. I am using Sweave and would like to have a single .Rnw document that generates 1) a summary report, 2) a full report, 3) slides for a talk. I think my material lends itself to have
2011 Aug 01
3
Migration hangs on Gentoo with KVM
Hi there, I'm trying to migrate a domain between two Gentoo hosts using KVM as hypervisor, but the migration hangs. I tried both live or offline migration modes without success. Details below. Anyone has an idea of what could be wrong with my setup? The migration is the only thing not working. Host A (initially running the VM) ================================= # uname -a Linux pion
2006 May 20
0
How can you buy R? [Broadcast]
...Fri 5/19/2006 6:43 PM To: mschwartz at mn.rr.com Cc: otter at otter-rsch.com; r-help at stat.math.ethz.ch; Damien Joly Subject: Re: [R] How can you buy R? [Broadcast] I'd like to know what people think is the meaning of section 2.b of the GPL (http://www.gnu.org/copyleft/gpl.html#SEC1): "You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License." After section 2.c, the...
2012 Dec 17
1
WRITE_FPDMA_QUEUED CAM status: ATA Status Error
...rent: 3.0 Gb/s) Local Time is: Mon Dec 17 17:04:28 2012 EST SMART support is: Available - device has SMART capability. SMART support is: Enabled AAM feature is: Unavailable APM feature is: Unavailable Rd look-ahead is: Enabled Write cache is: Enabled ATA Security is: Disabled, NOT FROZEN [SEC1] === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED General SMART Values: Offline data collection status: (0x84) Offline data collection activity was suspended by an interrupting command from host....
2003 Dec 14
22
White space being removed from "Programlisting" elements
Good Morning Mike, I''m finding that when I load a document, XXE is blindly removing all "superfluous" white space from "programlisting" elements. This of course is leading to a real mess (check out the FAQ on the web site :-( ). What can I do to avoid this? -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \