Questions tagged [contain]

214 questions
0
votes
1 answer

resizable three column background image /cover layout

Background cover and percentage width do the job scaling and aligning images for cases viewport is more horizontal than 16/9. For cases screen height is more than 0.5625 of width, outer layout parts start to eat center. In such case it might be…
0
votes
1 answer

Multiple References to Associated Table in Cakephp

After associating two tables (many weather radar frames which belong to weather radar sites) with belongsTo and hasMany, I was hoping to generate JSON with two "contains" on the same table (and different conditions) so I can list only the frames…
WXMan
  • 310
  • 1
  • 12
0
votes
1 answer

Check if a string contains at least n words out of a list of words R

I only found solutions in Python / Java for this question. I have a data.frame with press articles and the corresponding dates. I further have a list of keywords that I want to check each article for. df <- data.frame(c("2015-05-06", "2015-05-07",…
constiii
  • 638
  • 3
  • 19
0
votes
2 answers

Linq Find all items in collection from an other collection

I've an enum collection List myEnums = new List{MyEnum.Item1, MyEnum.Item2} I've a object collection List myObjects = MyObjects.GetMyObjects (); MyObject have a property that is a list of MyEnum myObjects[0].MyEnums …
Babe59
  • 45
  • 1
  • 9
0
votes
2 answers

PHP regex - check if string contains a given value with certain count of random digits in the end

I have few strings in an array: $array = array('BE001 FIRST', 'BE01 SECOND', 'SV001 THIRD'); foreach ($array as $item) { // preg_match('', $item); } I would like to get an array element if it contains "BE" + 3 of any digits right after. In…
user3076049
0
votes
1 answer

Does PHP's in_array really go through the whole array?

I stumbled over a few articles (e.g. this one) and infos that suggest PHP's in_array() goes through the whole array. Now there is a possible duplicate of this question here: How does PHP's in_array function work? but the OP was obviously satisfied…
jave.web
  • 13,880
  • 12
  • 91
  • 125
0
votes
0 answers

How to delete a row that contain string on array

I have a issue how to delete a row contain string on array. Here's my code Dim brands As Variant brands=Array("Test1","Test2","Test3") For j=7 to 15 Cells(j,1).Select If InStr(1,Cells(j,1).Value, brands,1)<> 0…
Randy Adhitama
  • 227
  • 1
  • 6
  • 15
0
votes
4 answers

Regex matching a pattern that doesn't include another pattern

I understand the process for a regex that only contains numbers but how would i add another condition to that such that it cannot contain a certain substring. For example, a regex that match input that contains only numbers, but not the substring…
unity1989
  • 1
  • 1
  • 2
0
votes
2 answers

Boolean not returning as expected in String.Contains()?

I have this sample from my project and I need to know why the result is what it is. public class Main { public static void main(String[] args) { //url: https://classicpartyrentals.com/products/24681-gothic-silver-coffee-cup,…
Eric Oudin
  • 259
  • 2
  • 4
  • 13
0
votes
2 answers

javascript, get size of a background scaled with contain property

I've seen a few posts here trying to answer this question and I tried using the codes given as answers but haven't been able to get it to work, so I must be doing something wrong. Basically I have a div with a background-image with the CSS property…
r1k
  • 27
  • 1
  • 5
0
votes
1 answer

htaccess rewrite to https if not xml file and not containing display in request URI

How to create a htaccess rewrite rule to https for non xml file request and when the request URI not containing string "display"? I've tried the following but this doesn't work: RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !xml…
0
votes
0 answers

Trimming and sorting two array

I have two arrays one is double array ,has the scores of words and other one is string array has the words.Like this scores={23.25 ,5.2 , 1.5 , 13.00} words={car, bag, cars, phone} I would like to sum up values of car and cars and delete cars from…
info perto
  • 89
  • 1
  • 1
  • 11
0
votes
0 answers

Cakephp Foreach Condition hasmany

i have 3 reservations . each reservation have 3 biens. but it show me just one line. what can i do to show all the 3 line public function index_hote() { $this->Reservation->recursive = 1; $this->loadModel("BiensPersonne"); …
wah
  • 17
  • 4
0
votes
2 answers

HTML responsive website

So i am trying to make website for a floorball team in our town. I would like to have an image of a floorball goal and on it the links and stuff(I'll provide an image later on). But i struggle with responsive desing. I would like the ORKA header to…
0
votes
1 answer

If string contains “T” then remove. After this concat with a time string to form a date within a automapper file

I have two strings. A date string and a time string, these need to be concatenated together to form a valid datetime. The below code works but looks a bit messy and a bit like a hack, is there a better way? .ForMember(dest => dest.ValidFrom, src =>…
Clare Barrington
  • 1,135
  • 1
  • 11
  • 28