Displaying 20 results from an estimated 4000 matches similar to: "Regexp pattern but fixed replacement?"
2007 May 31
0
Branch 'as' - 8 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_string.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c test/trace
libswfdec/swfdec_as_context.c | 20 +
libswfdec/swfdec_as_interpret.c | 9
libswfdec/swfdec_as_string.c | 15 -
libswfdec/swfdec_as_strings.c | 2
libswfdec/swfdec_as_types.c | 2
test/trace/Makefile.am | 28 +
test/trace/isnan-5.swf |binary
2015 Jul 01
3
strange: 20 characters max in samAccountName
Hi all,
Sernet Samba 4.2.2 as Active Directory on Debian 7.8. No other DC.
I can't log in with on Windows systems (Windows 7) when samAccountName are
longer than 20 characters. This seems to be a LAN MAN or NT4 limitation
which should not happen on AD domain.
Any idea what could leads my to that limitation?
I can log in using administrator account or any other having a short
(enough)
2025 Jan 21
1
[tcltk] binding two functions to one event
This is in the obscure corners of the tcltk interface, as I am sure you already realized...
I'm not even sure whether the "+" in bind .... +script is syntactically an operator or part of the command.
However, it is usually not right to define named functions on the Tcl side and mix them with the ones R/Tcl interface generate.
So I am thinking that if
2025 Jan 20
1
[tcltk] binding two functions to one event
Here is some tcl/tk code I am trying to emulate in R.
Paste the following into wish
### begin tcl code
toplevel .wtop
proc evresp1 { data } { puts "evresp1 $data" }
proc evresp2 { data } { puts "evresp2 $data" }
bind all <<EVENT>> "evresp1 %d"
bind all <<EVENT>> "+evresp2 %d"
### end tcl code
Now paste
event generate .wtop
2017 Nov 03
4
Problemas con función factor to integer
Hola,
estoy teniendo problemas para conseguir que mi función haga lo que quiero. Necesito que coja los valores de la variable que le indico, le quite la letra que precede a dichos valores y los convierta en números enteros. Dejo un ejemplo de los datos que estoy tratando y de varias opciones de función con las que intento que funcione sin resultado.
#Ejemplo
>
2010 Feb 05
1
String Manipulation- Extract numerical and alphanumerical segment
I am currently attempting to split a long list of strings (let's call it
"string.list") that is of the format:
"1234567.z3.abcdef-gh.12"
I have gotten it to:
"1234567" "z3" "abcdef-gh" "12"
by use of the strsplit function.
This leaves me with each element of "string.list" having a split string of
the above format. What
2006 Dec 18
2
AGI Help Please
List,
I finally decided to break down & start playing with AGI scripts, but for
the life of me, I can't figure out what I am doing wrong.
Below is a super simple script to run a query in mysql to see how many call
records there are for the extension calling in, then print the total in the
CLI.
This is all I get on the CLI:
-- Executing AGI("SIP/216-0baa",
2007 Jan 26
3
Multiple Filesystems on one path stmt in smb.conf
Can the path statement in the smb.conf contain two entries as in the example
below:
path = /u04/abcdef /u03/xyz
What I want to do is to essentially have 2 filesystems be part of one share
so that the windows users would see all the sub-directories of filesystems
/u04/abcdef and /u03/xyz
2011 Jul 22
2
averaging rows based on string¿?
Hi Folks,
Ran into something I'd really like to do in R simply/elegantly, but my R -
coding skills seem surpassed. This is the thing. Imagine the following data:
labs<-c("abcdef","abcgg","tgthefdk","tgtijuel","tgtnjmoi","gbnt","dlift")
dat<-c(0.5,0.25,1,2,16,0.250,4)
dframe<-data.frame(labs,dat)
I would like to
2006 Jun 02
1
PHP-AGI help
Can someone help me with this AGI script to send an email. It just isn't
working. The file is being called in the dialplan and is saved as em.agi
but it isn't sending the email.
#!/usr/bin/php4 -q
<?php
ob_implicit_flush(true);
set_time_limit(6);
$in = fopen("php://stdin","r");
$stdlog = fopen("/var/log/asterisk/my_agi.log", "w");
//
2016 Mar 16
1
Rsync temporary file name
Hi list,
I have some questions on how rsync names the temporary files it create
during a file transfer.
It is my understanding that temporary files are name .<filename>.ABCDEF,
where "ABCDEF" is a random 6-chars alphanumeric string.
First question: it is correct to say that the random aphanumeric string
is _always_ 6 chars long?
Second question: it is possibile to define a
2006 Jun 22
2
str_replace PHP Function Equiv.
I''ve been searching for ages and not come up with anything on the
internet. I was wondering if there is a Rails equiv. for the PHP
function str_replace. For example;
variable_for_new_string("value_to_repace", "string_to_replace_with",
"string_to_perform_modification_to")
Thanks in advance for any help.
--
Posted via http://www.ruby-forum.com/.
2008 Mar 08
1
C5 64-bit and software RAID 6?
I have a Dell PowerEdge 2950 with 6 SAS disks and a PERC 5/i controller
what won't do RAID 6. I plan to have 2 drives as RAID 1 for the OS, and
the remaining 4 as RAID 6. Granted the PERC can do RAID 1, I'm tempted to
do everything via software RAID. Thus, if anything goes wrong with the
controller, I just need to obtain a new SAS controller and I'm back up.
I learned my lesson
2001 Sep 07
2
Why does substr<- truncate and not replace...
... when the replacement string is shorter than the portion of the
string to be replaced?
The documentation to substr (in R 1.3.1) gives me:
If the portion to be replaced is longer than the replacement
string, then only the portion the length of the string is
replaced.
And so I try:
R> x <- "abcdef"
R> substr(x,2,3) <- "xy" #ok
R> x
[1]
2001 Sep 07
2
Why does substr<- truncate and not replace...
... when the replacement string is shorter than the portion of the
string to be replaced?
The documentation to substr (in R 1.3.1) gives me:
If the portion to be replaced is longer than the replacement
string, then only the portion the length of the string is
replaced.
And so I try:
R> x <- "abcdef"
R> substr(x,2,3) <- "xy" #ok
R> x
[1]
2012 Apr 10
7
How to remove $ (Dollar sign) from string
How do I remove a "$" character from a string sub() and gsub() with "$" or
"\$" as pattern do not work.
> sub("$","","ABC$DEF")
[1] "ABC$DEF"
> sub("\$","","ABC$DEF")
Error: '\$' is an unrecognized escape in character string starting "\$"
>
2013 Feb 15
2
data formatting
Dear Eliza,
Try this:
Lines1<-readLines(textConnection("1911.01.01?????? 7.87
1911.01.02?????? 9.26
1911.01.03?????? 8.06
1911.01.04?????? 8.13
1911.01.05????? 12.90
1911.02.06?????? 5.45
1911.02.07?????? 3.26
1911.03.08?????? 5.70
1911.03.09?????? 9.24
1911.04.10?????? 7.60
1911.05.11????? 14.82
1911.05.12????? 14.10
1911.06.13?????? 7.87
1911.06.14?????? 9.26
2007 Feb 12
1
bug in partial matching of attribute names
There looks to be a bug in do_attr() (src/main/attrib.c): incorrect
partial matches of attribute names can be returned when there are an odd
number of partial matches.
E.g.:
> x <- c(a=1,b=2)
> attr(x, "abcdef") <- 99
> attr(x, "ab")
[1] 99
> attr(x, "abc") <- 100
> attr(x, "ab") # correctly returns NULL because of ambig
2013 Mar 16
1
Registering external program for a specific named pipe
Hi everyone,
I wish to implement a service on top of an smb named pipe. I go over the
samba code and I have seen how to implement the service directly into samba
code like the rpc echo server.
I wish to do it differently. Is there a way for an external software to
register into samba such as all smb messages on \PIPE\ABCDEF (as an
example) get transmit directly to it ?
If yes, Is there any
2008 Feb 15
1
function similar to str_replace() in php.
Dear expeRt,
I would like to know whether a function similar to str_replace() in
php exists in R.
Looking forward to hearing from you.
Best,
=========================================================
Center of Excellence for Science and Innovation Studies,
Royal Institute of Technology
Drottning Kristinas v?g 30
100 44 Stockholm, Sweden
e-mail: donghoh at infra.kth.se, doriaba2 at