## What is the name of this "alignment" user interface element?

I'm trying to convince a team that she should use this "alignment trick" in her drawing software.

How does he call? You can find it for example in Adobe Illustrator.

## html – The selected element has a width other than silbling, bootstrap spacing override

I name an inputform with bootstrap-4. I have an input field and a selection field. Both have class pass, but different spacing classes, but the selection field is a little smaller.

When I use the col-6 class for both fields, they have the same length, but I can not create spacing, which is necessary for my case. When I add a spacing, one of the elements just has to be moved to the next line.

JS-Fiddle: https://jsfiddle.net/p81z7Lfg/1/

``````

4

4

``````

A bootstrap solution would be fine, because of the consistent style and coding of the project, I do not want to use its own CSS in the middle of the bootstrap.

Thank you.

## difference equations – How to specify an element of a list with a variable (RecurrenceTable)

My problem is that I'm trying to get a list of refractive angles in a multilayer structure (for the purpose of this example – with two types of refractive indices and eleven layers of these). The code is as follows:

``````theta0 = (1.535/2)*(Pi/180)
n = 11
nGaAs = 3.4;
nAlAs = 2.9;
nlayers = {1, nGaAs, nGaAs, nAlAs, nGaAs, nAlAs, nGaAs, nAlAs, nGaAs,
nAlAs, nGaAs, nAlAs, nGaAs};
RecurrenceTable({theta(i) ==
ArcSin((Extract(nlayers, i)/Extract(nlayers, i + 1))*
Sin(theta(i - 1))), theta(0) == theta0}, theta, {i, 1, n})
``````

``````Extract::psl1: Position specification i in Extract({1,3.4,3.4,2.9,3.4,2.9,3.4,2.9,3.4,2.9,3.4,2.9,3.4},i) is not applicable.

Extract::psl1: Position specification 1+i in Extract({1,3.4,3.4,2.9,3.4,2.9,3.4,2.9,3.4,2.9,3.4,2.9,3.4},1+i) is not applicable.

Extract::psl1: Position specification 1+i in Extract({1,3.4,3.4,2.9,3.4,2.9,3.4,2.9,3.4,2.9,3.4,2.9,3.4},1+i) is not applicable.
``````

Is it possible to use a list of variables in RecurrenceTable? Since I'm pretty new to this field, I may have missed something in the description of RecurrenceTable or Extract, but does anyone know how to formulate it correctly in Mathematica?

## When is the trace of an integral element of an integral algebra?

Let $$R$$ to be an integral domain, $$K$$ his domain of fractions and $$A$$ a (unital, associative) $$K$$algebra of finite dimension. Call $$a in A$$ integral (on $$R$$) if it is the root of a monique polynomial with coefficients in $$R$$.

(When) does that imply that the trace of $$a$$ (trace of the linear map $$x mapsto ax$$) live in $$R$$?

This is certainly true if $$R$$ is a PID: takes any finite number $$R$$-module $$M A subset$$ which is stable by $$a$$ and generates $$A$$ more than $$K$$. (Eg: Take free $$R$$-module $$N$$ which generates $$A$$ more than $$K$$ and takes $$M = R (a) N$$.) Because $$R$$ is a PID, it is free, necessarily of rank $$dim_K A$$ and we can then calculate the trace of $$A$$ w.r.t. a base of $$M$$.

In the general case, it would be enough to find a free $$R$$-module that is stable by $$a$$ and generates $$A$$ more than $$K$$. I do not know if it exists.

## java – Creating a new instance of an element only if two objects have different signatures

When adding to a list of products, I need to create a new instance of a type A product only if the incoming entry contains at least one variable with a value different from the one already in the list. `If same signature, increment count. Else, store as new instance`
for example ```CarType aCar1={"color":"Red" } CarType anotherCar={"color":"Green"} /*Should result in creation of new Car()*/ ``` but `CarType aCar3={"color":"Red"} /*Should result in incrementing the count of aCar1 */` The code could be in Java, Php or Javascript

## 7 – element hook_menu () never reached?

I have a module where hook_menu () was already used to handle ajax calls, like this:

``````function bizaudit_menu() {
return (
'bizaudit/ajax' => (
'page callback'     => '_bizaudit_ajax_handle',
'access arguments'  => ('access content'),
),
'bizaudit/autoexec' => (
'page callback'     => '_bizaudit_autoexec_handle',
'access arguments'  => ('access content'),
),
);
}
``````

It works pretty well from time to time, so I have just added another element, now to manage a specific route, like this:

``````function bizaudit_menu() {
return (
'bizaudit/ajax' => (
'page callback'     => '_bizaudit_ajax_handle',
'access arguments'  => ('access content'),
),
'bizaudit/autoexec' => (
'page callback'     => '_bizaudit_autoexec_handle',
'access arguments'  => ('access content'),
),
'navigate' => (
'page callback'     => '_bizaudit_navigate_handle',
'access arguments'  => ('access content'),
),
);
}
``````

But this road never seems to be recognized!
To be sure, I changed the callback function like this:

``````function _bizaudit_navigate_handle() {
\$query_params = drupal_get_query_parameters();
echo implode('', print_r(\$query_params, true));
exit;
}
``````

Use this URL `127.0.0.1/apim/navigate` should print the query parameters (here empty, but it does not matter), and nothing else happens.
Instead, the normal content of the relevant page is displayed!
(I do not omit to clear the cache)

Maybe I'm missing something obvious?

## views – views_pre_render adds a class element to a line

When rendering prior to a line of sight, is there a way to inject a class into a single element, which allows me to add a new color to the rear? plan at the event highlighting its importance? Below is what I have up to now.

``````  if ((int)Drupal::currentUser()->id() === 1) {
foreach (\$view->result as \$key => \$value) {
try {
\$field_result_value = \$value->_entity->field_display->getValue();
if (isset(\$field_result_value(0)) && (int)\$field_result_value(0)('value') === 1) {
// add a class to the change the background color to hi-light its importance
}
} catch (Exception \$e) {
Drupal::logger('viewoveride_pnc_cal_views_overrides')->error(\$e->getMessage());
}
}
}
``````

## algorithms – Decision tree for searching for an element in an n * n matrix

I just learned the concept of decision tree in class. I have a question to do my homework. It is proved that to search for an element in the matrix n * n, the lower limit is logn and prove it with the help of a decision tree.

My question here uses a comparison-based model, how can we have the lower limit as log n. And if the matrix is ​​not sorted?

## How to hide an element?

I've tried to hide this element and I do not see where I'm wrong. I have a wordpress site but one of the pages is nothing but HTML / CSS code.

I have the following CSS code defined for the site
And on the page, I have the following code:

The element is always visible, despite the addition of the CSS class.

What do I forget here?

## In HTML, why insert a sectioning element into a list?

The question here is what would be the purpose of putting several

``` ```
elements inside one ``` ```
• . I think everything you try to accomplish can be done in different ways. An article can contain lists. lists can contain links to articles; why put a sectioning element in a list?

It is certain that CSS styles are assigned to your lists and articles. If you like the way your lists display content, you can make your articles look like they do with CSS, without putting them in the old ones. Inside the lists,

``` ```

the elements would be more appropriate if you wanted to include more copies than just links to articles.

This is a good reason why the items in the lists are semantically wrong. An article tag "specifies independent and autonomous content." If you put this in a list, it is no longer independent or autonomous; it is linked or dependent on the other elements of the list.