Questions tagged [contain]
214 questions
0
votes
1 answer
Search Results page destroys background
Here is the original site. usahvacsupply.com Once you search an item, the search results take over the whole page and kill the background. I'm not sure how to control the overflow. The part of the site where the overflow goes haywire is…

icemanphd
- 1
- 6
0
votes
2 answers
Operand should contain 1 column(s)??? IT DOES but still error. Is this a bug?
I'm having a verry strange problem. I am certain I have done nothing wrong in this line of code:
INSERT INTO
oc_address
(`cust_id`, `firstname`, `lastname`, `address_1`, `city`, `postcode`, `country_id`)
SELECT
(`cust_id`,…
user2305176
0
votes
3 answers
String in a text file containing a string in C++
here's a part from my code
string word;
cin >> word;
string keyword;
while (file >> keyword && keyword != word){}
This searches for a word in a file and if it finds that word (keyword) then it starts a string from there later. It's working…

Jack Longen
- 51
- 3
- 11
0
votes
2 answers
CakePHP sql-query
I have the following tables:
- restaurants (restaurant.id, restaurant.name)
- menus (menu.id, menu.name, menu.active, menu.restaurant_id)
I want to have a list with all restaurants with the active menus (menu.active = true):
- restaurant2
-…

FishWave
- 308
- 2
- 16
0
votes
2 answers
cakephp 2.2 Using contain with Auth not working
I have a working example of Auth set up with Users & Groups, based on the cookbook tutorial. I have an additional Locations table, which is associated with my Groups.
Location hasMany Group. Group belongsTo Locations. In 2.2 I think I should be able…

drpudding
- 159
- 4
- 14
0
votes
3 answers
How can I select text inside p tag with specific criteria using jQuery?
The text look like this.
var fi,se,en;
var description =
"
FI: Sähköpyörä, Tunturi
SE: Elektrisk Cykel, Tunturi
EN: Electric Bike, Tunturi
<\/p>";
I want to select everything inside p tag after FI: until tag br
as same as SE:…

Ice Jungrai
- 385
- 1
- 5
- 19
0
votes
1 answer
cakephp 2.1 contain second level different field name
I can't get the values from a second level contain using different field name as link.
Asistencia model:
var $belongsTo = array('Employee');
Horario model:
var $belongsTo = array('Employee');
Employee model:
var $hasMany = array(
…

Carlos Garcia
- 359
- 1
- 5
- 29
0
votes
1 answer
Cakephp contain and belongsTo hasMany conditions
From the CakePHP manual:
Let's say you had a belongsTo relationship between Posts and Authors. Let's say you wanted to find all the posts that contained a certain keyword ("magic") or were created in the past two weeks, but you want to restrict…

Jeff Ryan
- 586
- 2
- 7
- 19
0
votes
1 answer
Count windows that contain a determined word
I've always counted windows using this command:
set windowsnumber to count windows
Now I'm in the need of counting windows that contain a specific string.
E.g. If a process has 5 windows opened (windows "A", "B", "A", "C", "D"), I need something…

Giorgio
- 1,603
- 5
- 29
- 52
0
votes
1 answer
cakephp contains condition date filter or limit records
In my find, I'm using contain with a condition to get the current schedule, as shown:
$this->request->data = $this->Employee->find('first', array(
'conditions' => array('Employee.emp_appserial' => $id),
'contain' => array(
…

Carlos Garcia
- 359
- 1
- 5
- 29
0
votes
2 answers
XNA rectangle & contain, going to be crazy
I'm going to be crazy. In fact, i use Rectangle to know if a point if inside of a rectangle.
My rectangle is define like this : {X:0 Y:480 Width:480 Height:480}
The point (Vector2) is define like this : {X:283,3333 Y:141,1111}
Normaly, the point is…

David
- 11
- 2
0
votes
1 answer
Check if a String has a Greek String contained
Please find the relevant snippets of my code below:
public static final String GREEK = "(alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)";
public static int…

leba-lev
- 2,788
- 10
- 33
- 43
-1
votes
1 answer
java - looking a method like contains
static boolean contains(Iterable haystack, String needle) {
for (String s : haystack) {
if (s.contains(needle)) {
return true;
}
}
return false;
}
static void containsAll() throws IOException {
…

user758084
- 35
- 1
- 8
-1
votes
1 answer
how to use ".contains" for an object array in swift 3.0
How to use contains in case if needs to get a particular object array contains an object.
Trying to select and deselect checkbox ( using 2 images ) for tableview rows.
Code :
var originalParams = [ParamsModel]()
var selectedParams =…

user2695433
- 2,013
- 4
- 25
- 44
-1
votes
2 answers
Removing value from array if it is contained by another array
I have two arrays
main_array = [[0,[1,4,5]], [1,[4,6,8]], [2,[5,6,7,8]], [3,[9,8]], [4,[7,2]]]
other_array = [[1,4,5],[9,8]]
What I want to do is to delete those elements in main_array if it can be found in other_array. (Meaning I will be left with…

user2765163
- 39
- 1
- 1
- 8