Questions tagged [containment]
94 questions
0
votes
3 answers
Accessing Members of Containing Objects from Contained Objects
If I have several levels of object containment (one object defines and instantiates another object which define and instantiate another object..), is it possible to get access to upper, containing - object variables and functions, please?
Example:
…

Bunkai.Satori
- 4,698
- 13
- 49
- 77
0
votes
0 answers
SQL Server containment partial
Trying to set partial containment to an existing database
ALTER DATABASE [EMS_3518_2] SET CONTAINMENT = PARTIAL WITH NO_WAIT
But I'm getting this error:
Msg 12814, Level 16, State 1, Procedure XXXXX, Line 10 [Batch Start Line 0]
The object…

seba.p
- 61
- 1
- 5
0
votes
2 answers
Compare two json files using jq or any other tools in bash
I want to compare two json files to see if one can be extracted from the other one.
P1 (p1.json)
{
"id": 12,
"keys": ["key1","key2"],
"body": {
"height": "180cm",
"wight": "70kg"
},
"name": "Alex"
}
P2 (p2.json)
{
"id": 12,
…

Mortie
- 316
- 1
- 4
- 13
0
votes
2 answers
Two similar array-in-array containment tests. One passes, the other raises a ValueError. Why?
Moar noob Python questions
I have a list of NumPy arrays and want to test if two arrays are inside. Console log:
>>> theArray
[array([[[213, 742]]], dtype=int32), array([[[127, 740]],
[[127, 741]],
[[128, 742]],
[[127, 741]]],…

Alex
- 1,165
- 2
- 9
- 27
0
votes
1 answer
Contain a large draggable child div inside smaller parent div
I would like to prevent a larger div from being dragged out of smaller div, like facebook does with it's profile images.
Does anyone have an idea of how I would go about to do this?
All the best, Laurens
In the following link I give an example of…

Laurens vanTour
- 11
- 2
0
votes
0 answers
Change jquery containment onclick
I'm trying to change a div containment from "#div" to "window" when you click on a button. I couldn't find a way to do this, so I've tried to do it toggling the element's class.
It changes the class, but doesn't affect the containment.
Am I…

Max
- 1
- 1
0
votes
1 answer
Setting the draggable containment to coordinates [x1, y1, x2, y2]
The white div is the parent container while the red div is the child and also the draggable div.
Now I don't want the red div edges to enter the parent div when dragged so I tried to set the draggable containment to x and y coordinates.
parDivLeft…

user7713452
- 77
- 9
0
votes
0 answers
Implementing a containment algorithm on matlab?
I could really use some suggestions here :
So, what I am supposed to do is simulate a containment scenario over a graph (meaning that every node of the network will, eventually, join the convex hull defined by the state of the leaders of the graph;…

avostus
- 1
- 1
0
votes
0 answers
how to use containment attribute without jquery-ui plug-in
I am done with drag event without jquery-ui. And then I have to make the area elements just can be moved. It is like a containment attribute in jquery-ui. how to make the confined area.
(function ($) {
var elPosStartCounsel = 0;
var…

wookwily
- 1
- 1
0
votes
1 answer
Understanding lifetime management while modeling containment relationship
I'm trying to wrap my head around Rust objects lifetime. As I was performing a relationship modeling exercise I ran into the following error.
error: cannot borrow `bob` as mutable because `bob.gender` is also borrowed as immutable [E0502]
The code…

Alex
- 367
- 2
- 4
- 14
0
votes
1 answer
jquery dragable - relative containmet to current elemente size
I have a little problem with the containment, I want it to have a relative size to the current element. There is no fix amount of elemtens in the container and they can be scaled and rotated. The elements should be allowed to be placed partially…

randeem
- 3
- 1
0
votes
2 answers
Determining whether a node is contained within another node in XSLT
Is it possible to tell whether a node is contained within (or equal to) another node in XSLT? For example, consider this code snippet:

Paul Reiners
- 8,576
- 33
- 117
- 202
0
votes
2 answers
Can one inherited class "contain" object of another inherited class when both the inherited class belong to the same base class?
I am thinking of creating OOP model of "REQUEST TRACKER".
So, I thought the following:
Parent Class: RequestOrResponse (containing common fields of Request and Response such as ID, date, item involved, user, quantity).
Child Classes: 1. Request…

Curious
- 127
- 3
- 11
0
votes
1 answer
div Draggable et Rezible : doesn't work with containment
I want a resizable and draggable div on a bigger div that is contained in a little div (to have a scroll Bar) like this:

Enagrom
- 1
- 2
0
votes
0 answers
iOS Container Controller Confusion
Disclaimers: I am new to iOS coming from Android; I don't know Objective-C very well, but I have learned Swift and am comfortable with it; I have been through a couple of months of iOS tutorials, so I'm not totally in the dark.
I am trying to…

psparago
- 1,113
- 11
- 21