similar to: Getting many substrings but only loading the original string one time.

Displaying 20 results from an estimated 60 matches similar to: "Getting many substrings but only loading the original string one time."

2007 Mar 31
4
Sponsored development - Monodirectional audio handling
Hi Guys, we're needing a special implementation on Asterisk Our intention is to contribute the development and share back the code to Asterisk community Here is what we need: - An option to Asterisk Dial command which, if used, when calls is answered gives monodirectional audio (Caller should hear the called party but not vice-versa) - A DTMF sequence (maybe handled in features.conf) for
2015 Aug 05
2
[PATCH 1/1] uid for expansion in ControlPath
From: Christian Hesse <mail at eworm.de> Modern Linux systems create a private directory in /run/user/ for each user, named by user id. This adds a new character sequence '%i' for expansion in ControlPath to match thisi directory. Signed-off-by: Christian Hesse <mail at eworm.de> --- ssh.c | 5 ++++- ssh_config.5 | 4 +++- 2 files changed, 7 insertions(+), 2
2003 Jun 09
0
Preservation of short and long filenames in Windows 9x with Samba
I have combed the Internet for an answer to this question and I have not found it. Here's the problem. As some may know, trying to copy files with xcopy32/explorer on a Windows machine to another drive or other Windows machine DOES NOT imply that both long and short filenames will be copied exactly. eg. long filename : thisisalongfilename.txt (in Windows) short filename: THISIS~1.TXT (at
2003 Mar 07
1
column name changes based on substrings
Hi peoples, I'm trying to work out a function which will allow me to relace column names on the basis of substrings within the existing names. e.g. I'd like: blah.Na blah2.Na blah3.Mg blah4.Mg blah5.K blah6.K R1 x x x x x x R2 x x x x x x ... to become: Na (%) Na (%) Mg (%) Mg
2019 Feb 20
0
Bug: time complexity of substring is quadratic as string size and number of substrings increases
Update: I have observed that stringi::stri_sub is linear time complexity, and it computes the same thing as base::substring. figure https://github.com/tdhock/namedCapture-article/blob/master/figure-substring-bug.png source: https://github.com/tdhock/namedCapture-article/blob/master/figure-substring-bug.R To me this is a clear indication of a bug in substring, but again it would be nice to have
2009 Jun 10
2
Merge data frame and keep unmatched
Hi, With two data sets, one complete and another one partial, I would like to merge them and keep the unmatched lines. The problem is that merge() dosen't keep the unmatched lines. Is there another function that I could use to merge the data frames. Example: completedf <- expand.grid(alpha=letters[1:3],beta=1:3) partdf <- data.frame( alpha= c('a','a','c'),
2010 Jul 07
3
use sliding window to count substrings found in large string
Hello together, I'm looking for advice on how to do some tests on strings. What I want to do is the following: (just an example, real strings/sequence are about 200-400 characters long) given set of Strings: String1 abcdefgh String2 bcdefgop use a sliding window of size x to create an vector of all subsequences of size x found in the set (order matters! ). Now create, for every string
2001 Aug 24
3
matching character substrings
Hello, Is there a function for searching a string for a given character? For example, I have transcriptions like tsibi tSibi tibi kibi I want to search the character object for the presence of 's' or 'S' or 'k'. I thought perhaps pmatch(c("k", "S", "s"), x) would work for me, but it wants to compare from the start of the string and returns
2009 Sep 25
7
Spliting columns, strings or reg exp returning substrings
Currently as the first column in a data frame I have string values in the format xx_yy - I want to create a new column with just the substring xx (for each row in turn). Three possible ways to do this might be (1) split the string by '_' using strsplit and paste the first of the resulting variables into a new column, but I have been unable to do this for each row of my data frame in turn
2011 Jul 01
1
highlighting clusters in a heatmap
I would like to draw horizontal or vertical lines on a heatmap to highlight the clusters at some specified cut depth of the dendrogram. As a hacked example, the following code would work if I could set the coordinates of the top and bottom of the false color image correctly (ymin and ymax), but the correct values seem to depend on the output device and its size. I realize that heatmaps use a 2x2
2019 Feb 22
1
Bug: time complexity of substring is quadratic as string size and number of substrings increases
On 2/20/19 7:55 PM, Toby Hocking wrote: > Update: I have observed that stringi::stri_sub is linear time complexity, > and it computes the same thing as base::substring. figure > https://github.com/tdhock/namedCapture-article/blob/master/figure-substring-bug.png > source: > https://github.com/tdhock/namedCapture-article/blob/master/figure-substring-bug.R > > To me this is a
2019 Feb 20
2
Bug: time complexity of substring is quadratic as string size and number of substrings increases
Hi all, (and especially hi to Tomas Kalibera who accepted my patch sent yesterday) I believe that I have found another bug, this time in the substring function. The use case that I am concerned with is when there is a single (character scalar) text/subject, and many substrings to extract. For example substring("AAAA", 1:4, 1:4) or more generally, N=1000
2009 Aug 24
1
How to generate more triangles in sequences?
Hi everyone, I want to plot some pattern. For example, I have some coding as below, plot(0:11,type="n") polygon(c(6,8,10), c(7,3,5),bor=6) polygon(c(2,4,6), c(5,3,7),bor=6) polygon(c(6,10,8), c(7,9,11),bor=6) polygon(c(2,6,4), c(9,7,11),bor=6) This coding will give me four triangles, but how to generate more triangles in sequences so that not need to mention the coordinate for each
2005 Sep 27
2
New apps in Wine AppDB - how long?
Hi, I entered a couple of new apps in the Wine Application Database last evening. I didn't get any conformation emails and I don't see any indication of them getting in yet. How does the process work? How long might it take for a new app to show up there? Thisis most likely not the exactly correct place ot ask but I figure someone here probably knows. I was thinking about
2004 Sep 07
1
ipfw2 in 5.2.1
hi - this is my first post to this list so go easy on me ! I am trying to find info on using ipfw2 with freebsd 5.2.1 as I have read that it supports MAC address based firewalling. Situation is, I have a small externally managed VPN network, about 12 different subnets all terminating in my office location, and all managed by a tier 1 telco. Problem is, their CPE routers do not have any firewalling
2009 May 04
1
What if I.........
What if I replace the WINDOWS folder in WINE with that of a genuine windows installation? Would it work?
2007 Oct 27
2
Remote database search issues
Hi all. First, a note about remote database connection over Perl. We actually found an easy way to work around the unwrapped Renote::open issue.. We use a stub file. You might say that open_stub in also not wrapped.. which is true... HOWEVER... looking at the code, we realized that Database::open() opts to using stub_open if the argument is a string pointing to a stub file rather than a
2007 Jan 03
3
pre-1.0.rc6 / index file problems? try this
People who have had "duplicate header extension" and whatever other random index file corruption problems, please see if this fixes anything: http://dovecot.org/list/dovecot-cvs/2006-December/007315.html The change is also in the latest nightly snapshot (http://dovecot.org/ nightly/dovecot-latest.tar.gz). You could in general treat the latest snapshot as "pretty much the
2003 Oct 22
14
Samba Installation
Hello Folks, I want to install new version of samba but have already old version of samba which came with Linux 8.0. Please advise, I want to install new version of samba ... How would I un-install old version which came with Linux8.0 ? Do i really need to do so, in order to install new version of samba ? Do i reallly need to remove any files or pkgs before i install new version ? which ?
2015 Jul 29
2
Windows Asterisk Help
On Wed, Jul 29, 2015 at 10:16 AM, John Novack <jnovack at stromberg-carlson.org > wrote: > > > Murthy Gandikota wrote: > > > > ------------------------------ > To: asterisk-users at lists.digium.com > From: webaccounts173 at jgoettgens.de > Date: Wed, 29 Jul 2015 16:11:31 +0200 > Subject: Re: [asterisk-users] Windows Asterisk Help > > > >