Displaying 20 results from an estimated 41558 matches for "replacement".
2007 Jun 20
0
Branch 'as' - 5 commits - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie.c test/image
libswfdec/swfdec_graphic_movie.c | 6 -
libswfdec/swfdec_movie.c | 3
libswfdec/swfdec_sprite_movie.c | 7 +
test/image/Makefile.am | 58 ++++++++++++++
test/image/replace-button-button-5.swf |binary
test/image/replace-button-button-5.swf.png |binary
test/image/replace-button-button-6.swf |binary
2010 Jan 21
2
Create a multi dimensional array from a data frame
Hello all,
I have data from a csv that i need to coerce into a multi dimensional
array. As you can see from my sample code i have yet to master building
efficient code. I can sort of do what i want but its very cumbersome code
and i know there is a better way to do it, i am just not expereinced enought
yet. So for the following:
#Create Data
h1i1a1<-sample(1:20, 5, replace=TRUE)
2008 Nov 14
1
Problems running autoconf on Solaris 10 Update 4
Sorry for the double post, I've been doing some more looking into this,
and it seems like this is a separate problem of more general interest
than my original AD issue.
My understanding is that the repository does not maintain a configure
script in the source directory. Packaged releases of the samba code
include one, but if you're trying to build from the repo, you need to do
it
2009 Jun 01
0
Compiling 3.4.0pre1 via makerpms.sh
Hi,
I have a number of issues compiling samba 3.4.0pre1 using makerpms.sh,
under the RHEL folder in packaging.
1) samba.spec refers to 'source' when the folder has been renamed to
'source3' (easy enough to amend) which made it fail very early on.
2) Following that - (apologies in advance, if I have gone over the top
in pasting output), it seems to be complaining about missing
2005 Nov 11
3
problems with for: warnings and segfault
...an Linux Testing.
The first problem: warnings messages
Look:
> xcoord <- 5
> ycoord <- 5
> indice <- 1
> for(i in c(1:5)) {indice <- indice+1;xcoord[indice] <- xcoord+i;
ycoord[indice] <- ycoord }
Warning messages:
1: number of items to replace is not a multiple of replacement length
2: number of items to replace is not a multiple of replacement length
3: number of items to replace is not a multiple of replacement length
4: number of items to replace is not a multiple of replacement length
5: number of items to replace is not a multiple of replacement length
6: numb...
2013 May 16
2
R looping help
...03.1460 NA 0 NA NA
5 1331 703.0620 NA 0 NA NA
6 1417 747.7620 NA 0 NA NA
7 4715 549.3400 NA 0 NA NA
8 4850 603.9940 NA 0 NA NA
9 2105 573.3270 NA 0 NA NA
Etc etc
and I get these warnings:
1: In rsquares[st] <- ssr/(var(yi) * (length(xi) - 1)) :
number of items to replace is not a multiple of replacement length
2: In pValues[st] <- 1 - pf(fRatio, 1, length(xi) - 2) :
number of items to replace is not a multiple of replacement length
3: In rsquares[st] <- ssr/(var(yi) * (length(xi) - 1)) :
number of items to replace is not a multiple of replacement length
4: In pValues[st] <- 1 - pf(fRa...
2023 Mar 08
1
Augment base::replace(x, list, value) to allow list= to be a predicate?
...replace, list(class_any, class_function)) <- function(x, list,
values, ...) {
replace(x, list(x, ...), values)
}
x <- c(1 ,2, NA, 3)
replace(x, is.na(x), 0)
[1] 1 2 0 3
replace(x, is.na, 0)
[1] 1 2 0 3
And for gsub(),
gsub <- new_generic("gsub", c("pattern", "replacement"),
function(pattern, replacement, x, ...) {
S7_dispatch()
})
method(gsub, list(class_character, class_character)) <- base::gsub
# My quick-and-dirty implementation as an example
method(gsub, list(class_character, class_function)) <-
function(pattern, replacement, x) {
m <- regex...
2010 Jan 09
4
what provices "replace" command?
I am used to using the replace command to quickly replace strings in
file, but it's not available on some of my fresh CentOS 5.4 servers.
"yum info replace", "yum whatprovides replace", and "yum search
replace" doesn't show me which package(s) to install to get it. So,
does anyone know which package to install to get the "replace"
command?
Google
2015 Jun 17
2
Re: [PATCH v2] New API: btrfs_replace
Hi, pino
在 2015年06月16日 21:58, Pino Toscano 写道:
> On Monday 15 June 2015 15:52:31 Cao jin wrote:
>> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
>> ---
>> daemon/btrfs.c | 37 ++++++++++++++++++
>> generator/actions.ml | 16 ++++++++
>> tests/btrfs/Makefile.am | 3 +-
>>
2013 Nov 06
1
Multiple String word replacements: Performance Issue
...into a new column (COUNT)
- Replace this (counted) word
- Replace other words (which I don't need to count before)
- Replace some regular expressions
The vectors which are used as patterns look like this:
"\\bWORD1\\b|\\bWORD2\\b|\\bWORD3\\b|\\bWORD4\\b..."
Thus, those 'replacement vectors' are character vectors of length 1, each containing up to 800 words
**Main code:**
library("parallel")
library("stringr")
preprocessText<-function(x){
# Replace the 'html-and'
arguments<-list(pattern="\\&\...
2008 Oct 11
5
questions about replacing a raidz2 vdev disk with a larger one
I''d like to replace/upgrade two 500GB disks in RaidZ2 vdev with 1TB disks, but I have some preliminary questions/concerns before trying ''zfs replace dpool ?''
Will ZFS permit this replacement?
Will ZFS use the extra space in a heterogeneous RaidZ2 vdev, or is the size limited by the smallest disk in the vdev?
Thanks in advance,
Vizzini
The system is currently running snv_98, zfs on disk version of 10, and eight 500GB disks in the following configuration:
NAME STATE READ W...
2010 Sep 16
1
Weibull simulation- number of items to replace is not a multiple of replacement length
Hi,
I write below code for simulation for weibull- estimating parameters by weibullMLE function,
Although I define metrix for the variables still I got this message: number of items to replace is not a multiple of replacement length
Any suggestion
> est=matrix (NA, 2,2)
> se=matrix (NA, 2,2)
> for ( p in 1:2) {
+ sampleSize <- 20
+ shape.true <- 1.82
+ scale.true <- 987
+ sampWB <- urweibull(sampleSize, shape=shape.true, scale=scale.true, lb=0, ub=Inf)
+ sampWBmleWB <- weibullMLE(sampWB)
+ est[...
2015 Jun 15
2
[PATCH v2] New API: btrfs_replace
Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
---
daemon/btrfs.c | 37 ++++++++++++++++++
generator/actions.ml | 16 ++++++++
tests/btrfs/Makefile.am | 3 +-
tests/btrfs/test-btrfs-replace.sh | 82 +++++++++++++++++++++++++++++++++++++++
4 files changed, 137 insertions(+), 1 deletion(-)
create mode 100755 tests/btrfs/test-btrfs-replace.sh
2018 Nov 30
8
[PATCH RFC 00/15] Zero ****s, hugload of hugs <3
In order to comply with the CoC, replace **** with a hug.
Jarkko Sakkinen (15):
MIPS: replace **** with a hug
Documentation: replace **** with a hug
drm/nouveau: replace **** with a hug
m68k: replace **** with a hug
parisc: replace **** with a hug
cpufreq: replace **** with a hug
ide: replace **** with a hug
media: replace **** with a hug
mtd: replace **** with a hug
2008 Oct 07
3
vectorized sub, gsub, grep, etc.
R pattern-matching and replacement functions are
vectorized: they can operate on vectors of targets.
However, they can only use one pattern and replacement.
Here is code to apply a different pattern and replacement
for every target. My question: can it be done better?
sub2 <- function(pattern, replacement, x) {
len <- le...
2011 Sep 16
2
Can't replace dead peer/brick
I have a simple setup:
gluster> volume info
Volume Name: myvolume
Type: Distributed-Replicate
Status: Started
Number of Bricks: 3 x 2 = 6
Transport-type: tcp
Bricks:
Brick1: 10.2.218.188:/srv
Brick2: 10.116.245.136:/srv
Brick3: 10.206.38.103:/srv
Brick4: 10.114.41.53:/srv
Brick5: 10.68.73.41:/srv
Brick6: 10.204.129.91:/srv
I *killed* Brick #4 (kill -9 and then shut down instance).
My
2012 Aug 24
2
(no subject)
.... max.$
1 No 76 202607 2665.8816 630 5297.410 217 26495
2 Yes 319 57859 181.3762 70 1314.982 0 23180
Warning messages:
1: In names(y)[length(names(y))] <- paste("count", as.character(substitute(x)), :
number of items to replace is not a multiple of replacement length
2: In names(y)[length(names(y))] <- paste(FUN[i], as.character(substitute(x)), :
number of items to replace is not a multiple of replacement length
3: In names(y)[length(names(y))] <- paste(FUN[i], as.character(substitute(x)), :
number of items to replace is not a multiple of rep...
2024 Apr 11
3
Regexp pattern but fixed replacement?
I noticed this issue in stringr::str_replace, but it also affects sub()
in base R.
If the pattern in a call to one of these needs to be a regular
expression, then backslashes in the replacement text are treated specially.
For example,
gsub("a|b", "\\", "abcdef")
gives "def", not "\\\\def" as I wanted. To get the latter, I need to
escape the replacement backslashes, e.g.
gsub("a|b", "\\\\", "abcdef"...
2020 Aug 18
1
Re: [PATCH nbdkit 3/9] server: Add general replacements for missing functions using LIBOBJS.
On 8/18/20 5:50 AM, Richard W.M. Jones wrote:
> Especially on Windows, some common functions are missing. Use the
> autoconf LIBOBJS mechanism to replace these functions.
>
> This includes replacement functions for:
>
> Function names Implementation Origin
>
> getdelim, getline general purpose NetBSD under a compatible license
>
> openlog, syslog, Win32 written by me
> vsyslog
>
> realpath Win32 written by me...
2008 Jan 16
3
is there something like addslashes and stripslashes in prototype
if i would save the content of a textarea into mysql i eventually have to
mask things like ,"/\ and so on.
in php there are the add- and stripslashes functions you could use.
is there somthing compareable like this in the string object of prototype?
if not, it would very nice to have, i think.
function addslashes(str) {
str=str.replace(/\''/g,''\\\'''');