Displaying 20 results from an estimated 100 matches similar to: "Search&replace string?"
2008 May 21
2
Search a string and modify it in a .txt file
Hi there,
I use R and I would like to be able to modify a file .txt "init_file" like this one :
# ---------------------------------------------------------------------------- #
# Parameters A
# ---------------------------------------------------------------------------- #
# Parameter 1
PA1 = 15
# Parameter 2
PA2 = 3
# Parameter 3
PA3 = 2
#
2008 May 30
1
Modify string-regular expression
Hi there everybody,
I would like to be able to modify a string like 'Param_i = Val_i-1' in 'Param_i = Val_i-2' in a text file
Indeed I have two arrays :
-One for the name of my parameters
-One for the new values for each parameter
I would like to write a loop like this one :
...
SCAN <- scan("File.txt",sep="\n", what="raw",blank.lines.skip=F)
2011 Aug 12
3
gsub("\\", "\\\\", "C:\Program Files\R")
Hi,
I think it is not possible in R but I rather ask before giving up:
What I have: I have copied "C:\Program Files\R" into my clipboard.
What I want: setwd(transform("C:\Program Files\R")) where the function
transform should change the "C:\Program Files\R" from my clipboard to
"C:\\Program Files\\R" so that R can handle it. Is this possible?
I've
2017 Mar 06
2
[PATCH] v2v: Fix invalid regexp in file_contexts file (RHBZ#1374232).
Instead of just documenting this bug, fix it in the file_contexts
file.
Replaces commit ad3c8fe7f49c4991e1aa536856a1a408f55d5409.
---
customize/SELinux_relabel.ml | 19 +++++++++++++++++++
v2v/virt-v2v.pod | 11 -----------
2 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/customize/SELinux_relabel.ml b/customize/SELinux_relabel.ml
index fa9603c..69a4779 100644
---
2017 Aug 22
2
Winbind with krb5auth for trust users
Hai,
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Andreas Hauffe via samba
> Verzonden: dinsdag 22 augustus 2017 11:26
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] Winbind with krb5auth for trust users
>
> Hi,
>
> thanks for the fast answer.
>
> All DCs (local and trusted domain) running on
2017 Aug 22
2
Winbind with krb5auth for trust users
See inline comments:
On Tue, 22 Aug 2017 12:20:04 +0200
Andreas Hauffe via samba <samba at lists.samba.org> wrote:
> Hi,
>
> hier are the file. I replaced the real domain/realm name by
> "search&replace", so there should not be a typping error in my file
> concernig the realm or domain names.
>
> Regards,
> Andreas
>
> client:~ # more
2010 May 17
2
Dynamically build variable names
I'm trying to dynamically build variable names to use on a list. Let's say I have a list like this one:
l <- list(V1_1=c(1,2,3), V1_2=c('One','Two','Three'))
And I succesfully build my variable name like this:
paste('l$', 'V1_1', sep='')
Why can't I just run a mean call with the pasted variable name?
mean(paste('l$',
2008 Aug 29
4
Best method for booting logical partions via syslinux...
Hi.
Which is the preferable method for booting multiple logical partions via syslinux ?
1. Create seperate logical (fat 32) partitons for 'each' Live CD,
extracted and prepared identically via syslinux/syslinux.cfg (sdc5,
sdc6,sdc7 etc.)
2. Use Grub2 to attempt to boot seperate logical partitions with the same extracted Live CD plan as above.
3. Use the chain.c32 module that
2007 Nov 26
1
Preserving output of MCMC iterations
Dear colleagues,
I'm an epidemiologist with no background in programming and just
started using R a few weeks ago. I am working on the epidemiology of
African sleeping sickness, and am trying to use R to perform a Monte
Carlo Markov Chain analysis to estimate three unknown parameters within
a model of African sleeping sickness case detection that is mainly
informed by actual field programme
2014 May 27
1
[HCL] GRAFENTHAL PR-3000-HS supported by snmp-ups
Dear NUT Developer Team,
we wish to report a compatible product with your software.
Product:
PR-3000-HS
SNMP/Web Minislot card (ref 149G0006)
Manufacturer:
GRAFENTHAL GmbH
Test Environment:
Version: NUT Windows 2.6.5-3
OS: Microsoft Windows Server 2012 (NT Version 6.2 Build 9200)
NUT mode: standalone
Please find the NUT configuration files, output logs and the shutdown sequence in the
2012 Dec 17
0
Fwd: Nut-upsdev post from jackobs@macle.de requires approval
I'm forwarding Marco's msg to the list, since it's really too big, and
embeds upsc/upsrw/upscmd binaries!
cheers,
Arnaud
--
Engineering Linux/Unix Expert - Opensource Solutions Lead - Eaton -
http://opensource.eaton.com
NUT (Network UPS Tools) Project Leader - http://www.networkupstools.org
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.fr
2006 Jan 13
1
system-config-users error
Has anyone seen this error before in CentOS 4.2? I've been setting up
two identical systems, one has this error and the other doesn't. Short
of removing and re-installing all the packages related to gtk is there
an easier solution? I have removed and re-installed all the
system-config tools, but the error didn't change.
sudo system-config-users
**
2008 Dec 22
56
[git patches] Ocfs2 patches for merge window, batch 2/3
Hi,
This is the second batch of Ocfs2 patches intended for the merge window. The
1st batch were sent out previously:
http://lkml.org/lkml/2008/12/19/280
The bulk of this set is comprised of Jan Kara's patches to add quota support
to Ocfs2. Many of the quota patches are to generic code, which I carried to
make merging of the Ocfs2 support easier. All of the non-ocfs2 patches
should have
2010 Aug 26
2
[LLVMdev] analysis and transformation of Machine IRs
Hello LLVM developers,
I have a few questions regarding analysis and transformation of Machine IRs.
I am writing a scheduling pass that transforms single basic block loops.
Details of the pass can be found in an email I sent two weeks ago.
http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-August/033808.html
I have changed my pass to run before Live Variable Analysis since then.
1, Induction
2007 Aug 23
3
[PHP-AGI] Problem executing script
Hello,I have succeded in compiling and configuring My TDM Card and asterisk, all works fine. But I have a problem using the PHP Agi.The CLI tells me that when I call my number :-- Starting simple switch on 'Zap/4-1' -- Executing [s at incoming:1] Answer("Zap/4-1", "") in new stack -- Executing [s at incoming:2] AGI("Zap/4-1", "rabot.agi") in
2006 Jul 29
4
Formal Grammar — some thoughts
I recently subscribed and saw in the archive that Eric Astor was
asking for a formal grammar (unlikely the first time for such request.)
Currently there are a few problems in making such a thing so I was
curious if Mr. Gruber has made any thoughts about moving toward one?
This would also allow a more ?clean? parser which would get rid of
some of the current problems (bad nesting[^1],
2018 Nov 02
2
[PATCH REPOST] Introduce a wrapper around xmlParseURI.
Previously posted:
https://www.redhat.com/archives/libguestfs/2017-December/msg00046.html
Rich.
2017 Mar 06
0
Re: [PATCH] v2v: Fix invalid regexp in file_contexts file (RHBZ#1374232).
On Monday, 6 March 2017 11:43:14 CET Richard W.M. Jones wrote:
> Instead of just documenting this bug, fix it in the file_contexts
> file.
>
> Replaces commit ad3c8fe7f49c4991e1aa536856a1a408f55d5409.
> ---
> customize/SELinux_relabel.ml | 19 +++++++++++++++++++
> v2v/virt-v2v.pod | 11 -----------
> 2 files changed, 19 insertions(+), 11 deletions(-)
>
2017 Aug 22
0
Winbind with krb5auth for trust users
Hi,
sorry for not reading the comment above idmap config. I uninstalled and
reinstalled samba and configs to remove all old id mappings and so on.
Then changed all configs as adviced. The id mapping is working correctly
(wbinfo -i) for local and trusted domain. But I still cannot logon with
wbinfo -K with a trusted domain account.
Andreas
Am 22.08.2017 um 12:59 schrieb Rowland Penny via
2017 Aug 22
0
Winbind with krb5auth for trust users
Hi,
hier are the file. I replaced the real domain/realm name by
"search&replace", so there should not be a typping error in my file
concernig the realm or domain names.
Regards,
Andreas
client:~ # more /etc/hostname
client.loc.example.de
client:~ # more /etc/hosts
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP