string Questions

2

Solved

I was designated to make refactoring on a project, and I came across this situation this.path = DESTINY + deploy.name() + FILE_SEPARATOR + delivery.getSystem().getCode() + FILE_SEPARATOR + deliv...
Nicole asked 31/1, 2018 at 13:16

4

(I've added an update on the bottom of the post) I am currently working on a project that will support multiple language. I have written all strings for all languages. I use BaseActivity, Applica...
Benisch asked 3/11, 2017 at 3:10

7

Solved

How do I do this without string.count(), because it is listed as deprecated in Python v2.7.3 documentation? I am unable to find what I should use instead. EDIT: The question originally stated tha...
Dasilva asked 30/4, 2012 at 15:4

2

Solved

I have a public method for a class and I would like to document the available string values that the method can accept. Would this be acceptable: /** * Set size of photos * * @param string $size ...
Unexceptional asked 25/6, 2011 at 9:9

20

Solved

function reverseInPlace(str) { var words = []; words = str.split("\s+"); var result = ""; for (var i = 0; i < words.length; i++) { return result += words[i].split('').re...
Lamoreaux asked 19/3, 2018 at 10:26

2

Solved

I have array of size (3, 3, 19, 19), which I applied flatten to get array of size 3249. I had to write these values to file along with some other data, so I did following to get the array in strin...
Chinkapin asked 2/7, 2018 at 21:47

5

Solved

I want to add a substring (text) at beginning of string only if this string doesn't have already this text at beginning. Example: // let's say I want to add "Has" at beginning (if doesn't...
Arguelles asked 20/6, 2019 at 16:21

3

Solved

Suppose there are many binary strings x <- c("0100100010101010", "0100110010101010","0111001000","010111") I am looking for a fast method in R to output...
Franciskus asked 2/10 at 7:5

3

Can you convert a Future<String> to a String? Every time I start my application, it should get data from the database, store it in a .csv file, read the .csv file and update some string varia...
Aeolis asked 27/2, 2020 at 17:16

5

Solved

I'm looking to reverse a set of strings while keeping them in the same positions and also trying not to use slicing or reverse(). So if I had: string = 'This is the string' Using the reverse fun...
Messeigneurs asked 7/2, 2019 at 0:15

3

Solved

since the last dart update (2.2) I'm getting this error, 'A value of type 'dynamic' can't be assigned to a variable of type 'String'.' which doesn't make much sense to me. the code is absolu...
Atwater asked 7/3, 2019 at 7:54

3

I have text file and I would like to search for lines that has specific partial strings and shows only the lines that has those strings Example: Please help me in this issue Thanks a lot for g...
Limber asked 17/8, 2017 at 18:27

4

Solved

I am having a hard time learning how to loop through a string in Go to do some stuff (specifically, to separate words than contain vowels). I wrote this code snippet: https://play.golang.org/p/zgDt...
Exeunt asked 24/8, 2016 at 9:5

7

Solved

I am little struggling how to make my output to show like this: a aa aaa My current output shows this instead: a aa aaa Below are my code: void displayA(int a){ for(int i = 0; i < a; i...
Exclave asked 2/9, 2014 at 15:17

3

Solved

So I have a possibly simple question that I can not find the answer to. I am writing a VBScript that will move a subfolder from one folder to another. When moving I want to append the date onto th...
Helminthic asked 22/7, 2011 at 15:14

3

I have a list of teamnames. Let's say they are teamnames=["Blackpool","Blackburn","Arsenal"] In the program I ask the user which team he would like to do stuff with. I want python to autocomple...
Mehalick asked 7/1, 2014 at 13:3

3

I'm trying to create dynamic SQL pulls in R. I'm using dplyr to create the pulls. However, I haven't found a way to properly convert a string to expression with dplyr. For example, the following co...
Firstly asked 29/8 at 17:20

3

Solved

I've been searching and trying various things for hours and can not get this simple contains function to work. if (department.ToLower().Contains(item2.Title.ToLower())) Here is an image of the t...
Couturier asked 6/1, 2015 at 5:53

4

Solved

I have a string in which I want to replace some variables, but in different steps, something like: my_string = 'text_with_{var_1}_to_variables_{var_2}' my_string.format(var_1='10') ### make proces...
Balsamiferous asked 28/8, 2016 at 21:36

10

def titleize(string) string.split(" ").map {|word| word.capitalize}.join(" ") end This titleizes every single word, but how do I capture certain words I don't want capitalized? ie) Jack and Jil...
Sclerotic asked 26/2, 2013 at 0:4

5

Solved

here is column 6 in a file: ttttttttttt tttttttttt ttttttttt tttttttattt tttttttttt ttttttttttt how can I use awk to print out lines that include "a"
Anechoic asked 12/12, 2011 at 21:30

3

Solved

I am having trouble understanding how the rolling hash algorithm works after the hash has been reduced to modulus value by dividing by a prime number. Consider the sequence of 5 digits in the numb...
Myers asked 23/4, 2016 at 17:26

7

$str = "8560841836"; $mystr = array($str); $string = strlen($str); for($i=0; $i<=$string; $i++){ echo $string[$i]."\n"; } This code print this string in one line but I want it to be print in o...
Schinica asked 1/5, 2014 at 10:4

3

Solved

I am working on a plugin for an existing web-based tool in JavaScript. We are collecting data and store it in a string like this: "2.545,3.552,8.568;2.553,9.898,6.542;..." and so on. The problem ...
Accolade asked 14/11, 2018 at 23:53

1

Solved

For the sake of description, I provide a minimal reproduction of the following code: #include <bits/stdc++.h> #include <iostream> #include <regex> #include <string> #include...
Bronnie asked 15/8 at 14:33

© 2022 - 2024 — McMap. All rights reserved.