Skip to main content

Questions tagged [string]

A string is a finite sequence of symbols, commonly used for text, though sometimes for arbitrary data.

string
1 vote
0 answers
29 views

How does a string unexpectedly become an array?

In one of my script I have the following problem: assigning to a string variable the result of a function makes the string an array. Example: $x="" function findX{parm([string]prmx) ... some ...
LuigiV TH's user avatar
0 votes
0 answers
17 views

What happens if I assign a Fortran character type using a literal that is too short? [duplicate]

Suppose I have the following Fortran code: character(len=1000) :: my_string my_string = "hello world!" Since hello world! is only 12 characters long, what happens to the other 988 ...
byl's user avatar
  • 65
-3 votes
1 answer
40 views

How can I use a modified String in a C# switch → case statement?

I have a string I need to use, a variant of, in many places throughout my application. For example: String myString = "The Quick Brown Fox"; string someLowerCaseString = myString.ToLower(); ...
Brian's user avatar
  • 1,887
0 votes
1 answer
25 views

Set value in column based on multiple conditions on multiple columns

Could someone please help me on this. Been searching for hours on several platforms, tried several solutions but can't figure out the exact code for the possible solutions. In other words: I can't get ...
EVisser's user avatar
  • 33
0 votes
0 answers
23 views

Substring Search on Encrypted Data

Assume a hypothetical situation that there is a file which is publicly available to everyone. I need to search a string like 'hello' in the file. But I don't want that the string I am searching should ...
Michael Dzwinel's user avatar
0 votes
0 answers
16 views

MLflow: ModelSignature.from_dict() throws TypeError: string indices must be integers

I'm trying to create a ModelSignature in MLflow using the ModelSignature.from_dict() function. This is my code: from mlflow.models import ModelSignature signature_dict = { "inputs": '{&...
Firefly02's user avatar
0 votes
0 answers
35 views

Problem with converting Data from Excel in Python [duplicate]

I have problem with converting data to float when reading excel with pandas. Here are the data in Excel (report from SAP): 6.321,68 44,33 40 540,44 excel file image python is reading data like ...
Maciej Stankiewicz's user avatar
0 votes
0 answers
39 views

Input is not a valid Base-64 string [closed]

I'm trying to implement a snapshot using a picture box - for scanning documents. A block of code is implemented on a form using a timer. The code works, but it's clumsy, because if you set debug, it ...
Aleksadr Artuhn's user avatar
2 votes
2 answers
38 views

Convert string to dataframe after extracting using BeautifulSoup

import requests import pandas as pd from bs4 import BeautifulSoup as bs from io import StringIO url = "https://www.tickertape.in/stocks/oil-and-natural-gas-corporation-ONGC" r = requests....
Abinash Tripathy's user avatar
0 votes
1 answer
23 views

Error parsing JSON: A JSONObject text must begin with '{' at 0 [character 1 line 1]

I am getting this error and my json file I am getting error from this code part "JSONObject data = new JSONObject(content);" Error:Error parsing JSON: A JSONObject text must begin with '{' ...
Kivanc Serefoglu's user avatar
-5 votes
1 answer
55 views

char s[] and char *s not the same? [duplicate]

I always though that char s[] and char *s were essentially the same in simple C functions. Yet the following code gives me a segmentation fault at runtime. int main() { char s1[] = "str 1";...
Rafael Deleuze's user avatar
-2 votes
0 answers
44 views

Use VBA to check range of cells for non-standard Characters [closed]

I have several lists of cells in a single column, some of them have non standard characters in them, and I just want to flag each cell like that. There are usually only a couple in each list, but the ...
MRDoubleyou's user avatar
0 votes
1 answer
17 views

Search and replace strings in text fields in all tables in MariaDB database, based on a table with original strings and their respective replacement

I have a large database, and in it there are several tables with different variants of text fields (VARCHAR, LONGTEXT, MEDIUMTEXT etc). In these text fields there are sometimes a link to a video on ...
elander's user avatar
3 votes
2 answers
96 views

Unicode look-alikes

I am looking for an easy way to match all unicode characters that look like a given letter. Consider an example for a selection of characters that look like small letter n. import re import sys sys....
sanitizedUser's user avatar
0 votes
1 answer
83 views

16 bit register converting to two 8 bytes using vb.net in visual studio

converting the 16 bit data to 8 bit and then reversing it back to 16 bits Module Module1 Sub Main() ' Original 16-bit data Dim originalValue As UShort = &HA91 ' Split ...
nyl's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
12312