## Find the structuring element and morphological operation

Find the structuring element and morphological operation such that after working with it to figure (a) you get figure (b).
White pixel has value 1 and black pixel has value 0.

Okey i tried this problem and i can’t find the structuring element. Check it if you can find it.

## collision detection – With Unity, why this character with a rigid body and child element colliders doesn’t collide with the floor and go through it?

I got an issue with my character going through the ground and actually going through all other elements with a collider. I’m going to try and show as much as I can of the current state of things.

My character (Human) has a rigidbody component with gravity on. He doesn’t have directly any collider on it (only on child elements).

As you can see, an armature is defined on the Human, each part of the armature has it’s own rigidbody as well as a collider, as shown in the below picture :

None of those colliders has IsTrigger checked. The Human has a whole doesn’t have a collider as this would overlapse with the colliders defined on each part of the Armature.

Now I’m trying to put my characters on a floor object with a box collider. The box collider of the floor is roughly half the height of the character, so it can’t be an issue with discrete collision detection. My character at t=0 has no speed and only the acceleration of gravity.
Here’s how the floor looks :

Both my character and the floor are in the Default Layer and the box is checked in the Layer collision matrix.

Is there anything you think of that I forgot ?

## reference request – Terminology for a ring satisfying the DCC on chains of principal right ideals generated by the powers of an element

Question. Is there any standard name for a (commutative or non-commutative) unital ring $$R$$ with the property that, for every $$a in R$$, the (descending) chain $$R, aR, a^2 R, ldots,$$ is eventually constant?

Let me refer to this condition as the DCCPRP, that is, the “DCC on chains of principal right ideals generated by the powers of an element”.

The DCCPRP is satisfied by left perfect rings, which, by a famous theorem of Bass (Theorem 28.4 in Anderson & Fuller’s book), can be equivalently characterized as the rings satisfying the DCC on principal right ideals (DCCPR). However, the DCCPRP is much weaker than the DCCPR.

E.g., let $$R$$ be the commutative, boolean ring with identity obtained by endowing the power set $$P(X)$$ of a set $$X$$ with the operations of symmetric difference (as addition) and intersection (as multiplication). The DCCPRP is trivially verified in this case (as it would be in any boolean ring), while the DCCPR holds if and only if $$X$$ is finite: For, suppose $$X$$ is infinite. Accordingly, let $$x_1, x_2, ldots$$ be an infinite sequence of pairwise distinct elements from $$X$$, and set $$X_0 := X$$ and $$X_k := X setminus {x_1,ldots, x_k}$$ for each $$k in mathbf N^+$$. Then $$X_0 P(X), X_1 P(X), ldots$$ is a strictly decreasing sequence of principal right ideals of $$R$$, because $$X_k P(X) = P(X_k)$$ for every $$k in mathbf N$$ and, by construction, $$X_{k+1} subsetneq X_k$$.

## html – Does adding a “title” attribute to the “label” element instead of the “input” harm accessibility?

I’m creating an HTML interface that has an input text field with a label attached. The label has a short name for the input and I want a more detailed description to appear as a popup for visual users, but also to be accessible for screen readers.

This can be done with the `title` attribute, but if I attach the title to the `input` element, it will only show when hovering over the input. If I attach it to the `label` element, then both the label and the input can be hovered to see the tooltip.

I am wondering if this will impact screen readers somehow, and read the title out in a way that could confuse non-visual users.

Here’s an example of the code:

``````<label title="Some extra details">
<input type="text" />
</label>
``````

I haven’t found any such usage in the W3 docs, but I there was one suggestion from StackOverflow. I’m just concerned it might impact accessibility.

## programming practices – Selecting nonzero element from numeric array: alternative to For loop?

Basic question to you software developers.

Say I have an array with numeric elements, only one of which is nonzero at any given time.

I need to select just the one nonzero element.

Right now I do this with a For loop that iterates over the entire array, then outputs just the nonzero element.

But is this the best way to do this? And is there an alternative to iterative loops?

One option that comes to mind:

1. Compare the array elements each to zero. The output would be an array of 1s and 0s, e.g., [1 0 0 0]. This can be done in a single operation without iterative loops in Octave.
2. Use matrix multiplication to get the product of the original array with the second array. E.g., [2 0 0 0] * [1 0 0 0]’, where ‘ denotes the transpose. The results is 2*1 + 0 + 0 + 0 = 2.
3. Output the result of the matrix product.

…Would this seem reasonable from a software devel standpoint? It seems more straightforward to implement than a For loop… But I’m not an expert in these things. Thoughts/alternatives?

## Magento2: JQuery not working because of element binding after load my jQuery

Below is a way to call your jQuery after bind element

Use below code in your jquery and it will load after binding your
element in page.

``````function waitForElement(query, callback){
var poops = setInterval(function(){
if(document.querySelector(query)){            clearInterval(poops);
callback();
}
}, 100);
}

waitForElement(".class", function(){
});
``````

hope this helps you.

## php – Injection inside double quoted section of script element

For a test to find vulnerabilities I found the following code in a page and I am looking for ways to manipulate it:

``````<script>
func({
"key1": "value",
"object": {
"key2": "value",
"key3": "<?php echo htmlspecialchars(\$_GET('param')); ?>",
"key4": "value",
}
}, "string");
</script>
``````

Document is UTF-8 and default parameters for htmlspecialchars are used so `&quot; &lt; &gt; &amp;` are converted but `'`, and newlines are not. htmlspecialchars can cause issues inside a script tag but is it actually possible in this case to escape the double quotes and either inject executable javascript code or manipulate the object by changing or adding keys/values?

What I have tried is to make param have a at the end which escapes the double quote but that just causes a SyntaxError because the line ends after it.

So other than making the entire script fail is there a way?

## real analysis – Adjoint operator on finite element subspace

Let $$S,$$ and $$hat{S}$$ a finite dimensional subspace of $$H^1$$ and $$L_2,$$ respectively. Define the operator $$I,:,S to hat{S}$$ with its dual $$I^*,:,hat{S}to S.$$

Is the following true?
$$begin{equation} (nabla Iv,nabla Iw) = (nabla v, nabla I^*Iw), ;;;text{with};;;v,win S. end{equation}$$

## magento2 – Move Catalog Search element into Toolbar block

I need to move the catalogsearch.leftnav element inside the Toolbar block, it is currently inside the sidebar.main, I have tried:

``````<referenceBlock name="catalogsearch.leftnav.clone">