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...
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 ...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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"
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...
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...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.