Questions tagged [contain]

214 questions
0
votes
3 answers

background-size: contain not showing the whole picture

I'm wondering why contain works like this. This is my HTML code. Zero to Mastery | Landing Page
Darko
  • 13
  • 6
0
votes
2 answers

Java List contains element of another list of a different type

I would like to ask if there is a better way of find if a List contains at least one element of another List of a different type. For instance public class AnotherType{ private int x; private String label; .... } List list1 = new…
tt0686
  • 1,771
  • 6
  • 31
  • 60
0
votes
0 answers

Kubernetes Pod always in Container Creating State

I have three node cluster and somehow it is ending up in a situation where pod is always in ContainerCreating state. NAME READY STATUS RESTARTS AGE i-have-no-sa 0/1 ContainerCreating…
Manish Jindal
  • 293
  • 3
  • 11
0
votes
2 answers

Removing values that contain a string using dplyr (R)

My current code removes only the values that have the exact value of "unassigned", whereas I want it to remove any value that contains "unassigned". Here's my code Newdata <- mydata %>% filter(taxon !="unassigned") The column I'm looking to…
0
votes
0 answers

CakePHP 3 - conditions on deep assocations with reference to parent id

I am trying to find from table "spots" a single instance, with a set of deep associations. Spots have one template, which has multiple "fields", which in turn have multiple "fieldentries". A "fieldentry" however, is also associated with the…
0
votes
1 answer

Returning Actual Data for 'True' Values with Str.Contain

I have a dataframe that's several thousand lines long, structured like below. I want to identify which rows have the string "John" and then I want to return those rows so that I can see the values (not just a row id and "True"/"False). How can I…
Tony
  • 221
  • 1
  • 4
  • 11
0
votes
1 answer

Check if Textfile.txt Contain Certain Strings

I am creating a system to validate if a text file contains this serial number, if it contains it opens to Form2.
Sérgio Wilker
  • 162
  • 1
  • 2
  • 18
0
votes
3 answers

SQL - Conditional Selection

I am trying to build an Oracle SQL query where I select users that contain at least one License = '+' while all Default Orgs = '-'. In other words, select users with licenses that have no default organizations. In the example below I would expect…
0
votes
2 answers

Get Integer list from one file

This script checks skills from the config file and allows using only them (in order stop hacking). Here is the process of how to work my script works: #1 There is special .ini configuration file with this skill list: CommunityAvailableBuffs =…
0
votes
2 answers

Cakephp 3 multiple condition in contain

I want to get my Jobs with associated Jobstasks, but from Jobstasks i want to get counted total1 - all tasks in job (thats works well), and (commented, ofcourse not working) total2 - counted finished tasks. Any idea? $jobs =…
Maciej Chyra
  • 53
  • 1
  • 8
0
votes
1 answer

CakePHP 3.x - How to filter one association by fields of another association?

When - like in the manual - one can filter on a given variable. $username = 'markstory'; $query = $articles->find()->matching('Comments.Users', function ($q) use ($username) { return $q->where(['username' => $username]); }); How can you filter…
Joost
  • 418
  • 5
  • 17
0
votes
1 answer

How to look up keys in different dictionaries in a Queue object in Python?

I have a Queue (size 30) with lines (got from requests r). Those lines are each dictionaries, how can I look if a dict contains a key 'example'? def process_queue(queue): count = 0 for line in queue.get(): count = count + 1 …
0
votes
1 answer

Cakephp 3 ORM : wrong associations?

So I asked a question about how to display data from 2 tables here. The person who helped me seems to be pointing out that it should work if my association was done. But as the newbie I am, I am wrongfully not seeing why it's not working. I am…
Nolan.K
  • 185
  • 2
  • 18
0
votes
2 answers

Find data of table in string

I want to find all the row in a table who have a specific column data contained in a given string. Let's say i have a table of name. +----------+------------------+ | id | name | +----------+------------------+ | 1 | …
Ethrak
  • 181
  • 2
  • 3
  • 12
0
votes
1 answer

Check if Array contains a specified String in Perl

I am working with an XML file and I am trying to check whether a line contains a specified String in the entire document. Reading the file seems to work and splitting the String into an array was also successful. But my code doesn't print the lines…