mysql – Is it possible to enumerate the enumeration of a field in a table via a query?

I wonder if there is a way to bring the values ​​of the inserted into the ENUM a column of a table through a query.

For example with this table:

CREATE TABLE SHIRTS (
Name VARCHAR (40),
Size ENUM (& x39; small & # 39 ;, small & # 39 ;, & # 39; medium & # 39 ;, large & # 39 ;, large & # 39; ;)
);

I would list the values x-small. small. medium. large and x-large by a SELECT?

Note: I do not want to get the values ​​of the data inserted into the table, but the list given in the declaration of the ENUM

Javascript – Longest substring without repeated characters in JS

For a given string, determine the length of the longest substring without
Repeat characters.

Example 1:

Input: "abcabcbb"

Edition: 3

Explanation: The answer is "abc" with length 3.

Example 2:

Input: "bbbbb"

Output: 1

Explanation: The answer is "b" with a length of 1.

Example 3:

Input: "pwwkew"

Edition: 3

Explanation: The answer is "wke" with length 3.
Note that the answer must be a substring. "Pwke" is a substring, not a substring.

The batch process stuck to initialization without error in Drupal or server logs

I'm really lost for a solution to this problem – I've reviewed several examples online and hoped someone could see my problem because it baffled me! My form seems okay, but when I click the submit button, it stops at initialization and does not even call the operator method or time-out.

Here are the files in my module

my_module.ProcessNodes:
Path: & # 39; admin / process & # 39;
Default settings:
_form: & # 39;  Drupal  my_module  Form  ProcessNodes & # 39;
Conditions:
_permission: & # 39; manage content & # 39;
    & # 39; submit & # 39 ;,
& # 39; # value & # 39; => $ this-> t (& # 39; process node & # 39;),
& # 39; # button_type & # 39; => & # 39; primary & # 39 ;,
);
return $ form;
}

/ **
* {@inheritdoc}
* /
public function submitForm (array & $ form, FormStateInterface $ form_state) {

$ nids =  Drupal :: entityQuery (& # 39; node & # 39;)
-> condition (& # 39; type & # 39 ;, & # 39; article & # 39;
-> sort (& # 39; created & # 39 ;, & # 39; ASC & # 39;)
-> execute ();

// set up and define batch information.
$ batch = array (
& # 39; title & # 39; => t (& # 39; process nodes in batch ... & # 39;),
& # 39; operations & # 39; => array (),
& # 39; finished & # 39; => & Drupal  my_module  Api  RemoveValues ​​:: batchFinished & # 39 ;,
);

$ operations = [];
foreach ($ nids as $ nid) {
$ batch['operations'][]    = [
        'Drupalmy_moduleApiRemoveValues::batchProcess',
      [$nid].
];
}

batch_set ($ batch);
}
}
formatPlural (
Number ($ results),
"One post processed.", "@Count posts processed."
);
}
otherwise {
$ message = t (& # 39; ended with an error & # 39;);
}
drupal_set_message ($ message);

}

}

Javascript – How to calculate Subtotal, Discount, Shipping, Taxes and Total with VUE?

I have a component: (The w comes from a personal framework, but works just like a B-table bootstrap table.)

         
        

and in data I have to calculate the armed list without the values ​​but they are written:

items: [
        {message: 'SUBTOTAL', value: 100},
        {message: 'DESCUENTO', value: 20},
        {message: 'ENVÍO', value: 10},
        {message: 'IMPUESTO', value: 21},
        {message: 'TOTAL', value: 111}
      ]

But I have to calculate the subtotal, discount, shipping, tax, and total amount in a function to generalize this data, since this table corresponds to a list of abandoned cars in a web.

The parameters in my data model are:

Subtotal, discount, taxes, shipping, total.

I also have price, quantity, summary.

How do I properly execute the function to calculate the values?

Security – How to unlock the boat?

How can I set the phone to ask for the screen to unlock before launching?

I used to have to unlock the phone to start it, but now it starts without unlocking it (and at least I have not intentionally changed that). (I bought it as used, so I do not know how it was activated).

I have a Xperia X compact and Xperia XZ1 if it is important.

Ag.algebraische Geometrie – Gabber's result of learning to appreciate

In the schema theory, there is a set of gabbers that makes life easier for us when we construct the theory of cohomology of quasi-coherent sheaves.

I try to understand why I should appreciate this result. it is not as geometric as e.g. The main sentence of Zariski (I mean, he even contains the word "cardinal"). I wonder if there are geometrical / topological connections in which the natural analogues of Gabber's theorem fail and this leads to observable difficulties in the development of the theory. Examples?