Displaying 20 results from an estimated 41558 matches for "replace".
Did you mean:
replaced
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
test/image/replace-button-button-6.swf.png |binary
test/image/replace-button-button-7.swf |binary
test/image/replace-button-button-7.swf.png |binary
test/i...
2010 Jan 21
2
Create a multi dimensional array from a data frame
...ional
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)
h1i1a2<-sample(1:20, 5, replace=TRUE)
h1i1a3<-sample(1:20, 5, replace=TRUE)
h1i2a1<-sample(1:20, 5, replace=TRUE)
h1i2a2<-sample(1:20, 5, replace=TRUE)
h1i2a3<-sample(1:20, 5, replace=TRUE)
h1i3a1<-sample(1:20, 5, replace=TRUE)
h1i3a2<-sample(1:20, 5, replace=TRUE)
h1i3a3...
2008 Nov 14
1
Problems running autoconf on Solaris 10 Update 4
...toconf.
I've tried running autoconf to generate a configure script, but I'm not
getting very far. This is on Solaris 10 update 4, I've updated m4 and
autoconf to the latest versions available on sunfreeware.com. Output is
below. The first 3 files that are causing problems are in lib/replace.
I haven't been able to turn up the others with a quick check, but I
could be looking in the wrong place.
Thanks,
~Eric
-bash-3.00$ autoconf
/usr/local/bin/m4:lib/replace/libreplace.m4:359: cannot open
`libreplace_cc.m4': No such file or directory
/usr/local/bin/m4:lib/replace/libreplac...
2009 Jun 01
0
Compiling 3.4.0pre1 via makerpms.sh
...) 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 config.h
and replace.h amongst other things. I get the same output on Fedora Core
4, Fedora 10, and Centos 5.2.
Is there a known issue with samba.spec?
> makerpms.sh: Getting Ready to build release package
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.55393
> + umask 022
> + cd /usr/src/redhat/BUILD
&g...
2005 Nov 11
3
problems with for: warnings and segfault
....1.1 (2005-06-20) on a
Debian 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 multip...
2013 May 16
2
R looping help
...508.2290 NA 0 NA NA
4 1249 503.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...
2023 Mar 08
1
Augment base::replace(x, list, value) to allow list= to be a predicate?
...ting example, as it's conceptually similar to what
Pavel is proposing, but structurally different. gsubfn() is more
complicated than a simple switch in the body of the function, and
wouldn't work well as an anonymous function.
Multiple dispatch can nicely encompass both of these cases. For replace(),
library(S7)
replace <- new_generic("replace", c("x", "list"), function(x, list,
values, ...) {
S7_dispatch()
})
method(replace, list(class_any, class_any)) <- base::replace
method(replace, list(class_any, class_function)) <- function(x, list,
values,...
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 whic...
2015 Jun 17
2
Re: [PATCH v2] New API: btrfs_replace
...wrote:
>> 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
>>
>> diff --git a/daemon/btrfs.c b/daemon/btrfs.c
>> index 39392f7..eba336b 100644
>> --- a/daemon/bt...
2013 Nov 06
1
Multiple String word replacements: Performance Issue
...+??????+
**Problem:**
It takes too long. On my 8GB RAM Dual-Core machine: Cancelled after 1 day. On a 70GB 8-Core Amazon EC2 instance: Cancelled after 1 day.
**Details:**
I am basically
- Counting how often certain words appear in one string
- Write this number 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 characte...
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...
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)
+ sampWBmleW...
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
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 39392f7..eba336b 100644
--- a/daemon/btrfs.c
+++ b/daemon/btrfs.c
@@ -2083,3 +2083,40 @@ do_bt...
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: replac...
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 <...
2011 Sep 16
2
Can't replace dead peer/brick
...e: 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 intention is to simulate a catastrophic failure of Brick4 and replace it
with a new server.
I probed the new server, then ran the following command:
gluster> peer probe 10.76.242.97
Probe successful
gluster> volume replace-brick myvolume 10.114.41.53:/srv 10.76.242.97:/srv
start
replace-brick started successfully
I waited a little while, saw no traffic on t...
2012 Aug 24
2
(no subject)
...mean.. median.. sd.. min.. 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...
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&q...
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
>
>...
2008 Jan 16
3
is there something like addslashes and stripslashes in prototype
...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,''\\\'''');
str=str.replace(/\"/g,''\\"'');
str=str.replace(/\\/g,''\\\\'');
str=str.replace(/\0/g,''\\0'');
return str;
}
function stripslashes(str) {
str=str.replace(/\\''/g,''\'...