3,259 questions
0
votes
0
answers
97
views
Android SDK location currently contains spaces
I am getting this error, am not able to solve
[!] Android toolchain - develop for Android devices (Android SDK version 36.1.0)
X Android SDK location currently contains spaces, which is not supported ...
0
votes
0
answers
54
views
how to search for multiple substrings in a column using polars [duplicate]
In pandas, I can search for multiple different substrings in a column, and determine which rows they can be found in. How can I do this in polars?
my pandas code:
df = pd.DataFrame({'col1':['a red','...
-3
votes
4
answers
122
views
Needed Aid With Java Schoolwork - Containing Arrays & Array Searchs
Current Outputs:
Is [1, 2, 3] found in [1, 2, 1, 2, 3] ? >>> false
Is [1, 1, 3] found in [1, 2, 1, 2, 3] ? >>> false
Needed Outputs:
Is [1, 2, 3] found in [1, 2, 1, 2, 3]? >>&...
0
votes
1
answer
58
views
PowerShell -contains only working as expected, if the referenced list is referenced separately beforehand [duplicate]
I am perplexed to say the least.
Currently working on a PowerShell script to deploy SharePoint Libraries to users via Intune.
I use a custom detection script, which checks the folder-attribute sync-...
0
votes
2
answers
116
views
Removing a large number of IDs from a large dataframe takes a long time
I have two dataframes df1 and df2
print(df1.shape)
(1042009, 40)
print(df1.columns)
Index(['date_acte', 'transaction_id', 'amount', ...],
dtype='object')
print(df2.shape)
(734738, 37)
print(...
0
votes
1
answer
164
views
jq filter to remove field value if contains element from list
This is somewhat similar to this: jq: how to filter an array of objects based on values in an inner array? but extended
I have a list of values I want to filter out but it is not 1:1 match. It's ...
0
votes
0
answers
20
views
RegEx - String contains specific verbiage [duplicate]
I am new to RegEx, but I am trying to setup a process that sets a designated 'Role' based on an employee's title.
For instance, I have a list of key phrases that point to the user having a role of '...
1
vote
1
answer
3k
views
YQ - how to filter an array by field value if matching at least one element in a list
Specifically (https://github.com/mikefarah/yq) 4.35+
I have a comma-separated string of terms and I want to filter down a list if a field value is one of those terms.
Ex) Given the following input:
- ...
0
votes
2
answers
616
views
string.contains - no overload for contains takes 2 arguments
I'm trying to use the ignore case option for Contains, and I get this error:
CS1501 No overload for method 'Contains' takes 2 arguments
This is the code line:
item.buildMach.Contains("co.net&...
1
vote
1
answer
51
views
find if filename contains a certain (article number) string
I am currently uploading images directly to wordpress. The file names of the images also contain the article number in the form
arm-1001-01.jpg
arm-1001-02.jpg
arm-1001-03.jpg
arm-1001-04.jpg
arm-...
1
vote
1
answer
262
views
MariaDB JSON: contains specific value in any sub attribute
I'm having a JSON like: {"a": {"z":true,"y":false}, "b": {"z":false,"y":false} }.
I need to obtain in MariaDB if there is any (sub) ...
-1
votes
1
answer
73
views
Check if any value from Array1 Contains any value from Array2
How can I check if a value from an Array Contains any value from an other Array ?
For example:
string[] array1 = {"1726KB12","271","MB192"}
string[] array2 = {"KB&...
1
vote
1
answer
798
views
Strapi Filter with $containsi(not case-sensitive) parameter, doesn’t work with cyrillic
i have name field in cyrillic and trying to search by that field using $containsi parameter
fetch("https://example.com/api/products?filters%5B$or%5D%5B0%5D%5Bname%5D%5B$containsi%5D=%D0%B3%D1%80&...
1
vote
1
answer
318
views
PowerShell collection operators -in and -contain not acting as expected
I have a calculated PowerShell variable that may be set to $True (Boolean), or 'True' (String), or $False (Boolean), or 'False' (String), and I want to test if it's "True" (Boolean or string)...
0
votes
1
answer
45
views
Filter df to remove rows where a column has a word/phrase
I have a list of words and phrases which I want to use to specify which rows to remove when creating a new dataframe.
include = ['word1', 'word2', 'word3'...]
exclude = ['word4', 'word5 word6' ...]
...
0
votes
1
answer
47
views
match a value with a string containing that value using XPATH
I have this XML file :
<Archive Lot="1">
<DOSSIER>
<Identifiant>100715</Identifiant>
<Personne>
<LIBL>File</LIBL>
</Personne&...
0
votes
1
answer
73
views
Python Moving files script, 'startswith' and 'endswith', but, how to find contains or partial matches based on user input
I have the following script
import os
import shutil
################# MOVE FILES SCRIPT ############################
# Moving files from one folder to another based on file names starting or ending ...
-1
votes
1
answer
83
views
Compare the int values from enum list
Having this enum :
public enum MyEnums
{
A = 1,
B = 2,
C = 3,
D = 4,
E = 5
}
If I create a list with some enum values from MyEnums for example this :
IEnumerable<MyEnums> ...
0
votes
1
answer
66
views
Compares two identical values but returns false
I need to compare each word in the recognized String with the base string. In logcat, I see the two strings are the same but when compared, it returns false. Which step did I go wrong?
This is my code
...
0
votes
1
answer
358
views
MultiContainer with shared Volume as EmptyDir working however when used shared Volume as hostPath not working
I have K8s cluster with one master and one worker Node.
Scenario – 1 I am deploying a simple sidecar container within same POD where I have define emptyDir as share volume and it is working fine. The ...
1
vote
1
answer
802
views
How can we ignore some nested fields while comparing two responses in karate, i am using "contains deep" for the comparison
I want to compare two nested json response, so i am using "contains deep". But while comparison i want to ingnore some fields(skip comparison on those fields).
Example: I want to ignore the ...
0
votes
1
answer
68
views
Check strings and add new column in SQL
I'm looking for a code that checks whether or not it's an animal.
My table looks like this:
id
test
1
fish_test
1
shoe
1
tiger_test
1
shirt
1
test_bird
What I want to get is this table:
id
test
group
...
1
vote
3
answers
181
views
How to match ancestor-or-self for contains Xpath?
I try to match ancestor-or-self of any element containing certain text string:
In step 1 matching of elements containing text works: //*[contains(text(),"ABC")].
But I struggle with the ...
0
votes
1
answer
61
views
Pandas: Find if the full name, acronym, or both listed in a separate data frame is present in a column in a data frame and add a column of acronyms
I have a pandas data frame that include full names and acronyms of assessment names called names_df.
enter image description here
I also have another data frame that has the information of how to use ...
0
votes
1
answer
334
views
when I use the method find_image_occurrence of Appium with python, always occurred TypeError: Object of type bytes is not JSON serializable
import base64
def img_base64(img_path):
if os.path.exists(img_path):
with open(img_path, 'rb') as f_obj:
image_data = f_obj.read()
base64_d = base64.b64encode(...