2,263 questions
Advice
3
votes
6
replies
134
views
Are there better algorithms for computing list similarity that this one I wrote, or corrections?
The intent of the system is to identify the place where the person's signature should go in a PDF. I am trying to find the best matches to a complete human name. I'm parsing the PDF using pdfplumber ...
3
votes
5
answers
242
views
How to calculate percentage similarity between two comma-separated strings in Excel?
I'm trying to compare two comma-separated strings in Excel and calculate the percentage of similarity based on matching values at the same position.
For example:
Cell A2 contains: "1,E,E,E,E,E&...
1
vote
1
answer
133
views
How to match a permission to an action in an Entra role using Powershell
From time to time, I am asked where a permission is being used in Entra. For example, who has access to modify network settings and on which resources? I have a script that does a pretty good job of ...
0
votes
2
answers
74
views
How to allow a certain differences in a text assertion for a test case that has some expected changes in data using phpunit?
I am setting up a golden master test case, yet the result may be off at certain points due to side-effects changing some strings at known places.
Getting rid of those side-effects would be best, yet ...
2
votes
1
answer
266
views
Fast Delphi ASM ASCII string comparison optionally ignoring first char
I am looking to create a Delphi function that ignores the first character of either string if it starts with a Chr(127). This is used in a sort comparison which is extremely slow with 30,000 items ...
0
votes
0
answers
29
views
Comparing 2 strings of text from different rows showing the differences and what field the differences come from
I have a set of data and want to compare the differences between 2 rows but also label what column the differences appear.
Type Units Cost
Dogs. 5. £20
Dogs. 5. £25
...
-4
votes
1
answer
141
views
String compareTo() in java
Consider:
String s1 = "ABc";
String s2 = "abc";
System.out.println(s1.compareTo(s2));
On which basis the output will be -32 if only the first character decimal value of s1 and s2 ...
0
votes
0
answers
43
views
compare two blob colomn values to find percentage of similarity
how to compare two blob colomns on the same table ?
For example: PIC1 contains a picture of a bridge taken from 5 meter distance, whereas PIC2 contains a picture of the same bridge taken from 10 meter ...
0
votes
3
answers
110
views
VBA remove string custom salutation name from list table excel
I have string name with salutation
DATIN SERI PADUKA JOHN DOE with actual name is JOHN DOE
and i have list excel for salutation :
DATIN SERI
DATIN SERI PADUKA
Currently using substitute function from ...
3
votes
3
answers
184
views
Comparing alphabets but not using strcmp
I want to compare two strings with function int compare(char* A, char*B), returning 1 when A is larger, 0 when B is larger.
Assume the maximum character is 100, I want the order to be ‘A’< ‘a’ < ...
1
vote
5
answers
163
views
how to get rid of count if there is only a single character?
In my program, whenever I have a single character, it will have a count of 1. For example, if I had abbbbbc, I would get back a1b5c1. I don't want single characters to have a count. I like the program ...
-2
votes
2
answers
86
views
PL/SQL function to detect a one way character change between 2 strings
I want to write a PL/SQL function with 4 arguments: SEARCH_STRING, CHECK_STRING, SEARCH_CHAR and CHECK_CHAR
where the function will check the SEARCH_STRING against the CHECK_STRING and detect whether ...
2
votes
1
answer
72
views
Why is CompareTo() not recommended for checking equality?
I was reading about best practices for comparing strings and saw these two points:
Use the String.Compare and String.CompareTo methods to sort strings, not to check for equality.
Don't use an ...
-1
votes
1
answer
96
views
Seeking an algorithm or approach to compare values between two strings (.NET)
I have a problem with a piece of data as a string, and I have to check if the data exists between the stated ranges.
Note that if both ends are numbers, the comparison is not the usual number ...
0
votes
1
answer
65
views
Unable to understand the difference between normal comparison of strings and comparison using localCompare() method as both works differently
I am a newbie in JavaScript and programming. Need assistance to clarify this doubt
console.log('a'>'A'); // -> True
let result = 'a'.localeCompare('A');
console.log(result); // -&...