## Linear algebra – Number of orbits of the Borel subgroup on the full variety of the flag

Let $$mathcal B$$ to be the full flag variety of $$mathbb {C} ^ n$$, and $$B_n$$ the group of invertible upper triangular matrices.

Which brings up this question is the following statement:

Number of $$GL_n$$ orbit $$mathcal B times mathcal B$$ is finished.

This number is equal to the number of $$B_n$$ orbit $$mathcal B$$. Each flag $$F in mathcal B$$ is stabilized by the conjugate of some $$T in B_n$$ – since the dimension of $$mathcal B$$ East $$n (n-1) / 2$$, there is $$n choose {2}$$ Phone $$B_n$$– orbits in $$mathcal B$$.

Hence the following statement. Is this proof correct? Or is something missing in the plan above?

## java – Sets the boolean flag to true if a variable with the given value appears twice in each loop

How to write this with clean code rules:

orderLines is a list of objects mapped from JSON in a given ORDER.
I want to check if SECTION appeared the second time in my for loop, I must then set my sectionAppearedSecondTime flag to true because in each IF, I must invoke another method (setList ()) with one of the two parameters in depending on my indicator.

How do you do that? With a counter? When a counter = 2, change the flag to true? What is the most professional approach in this case?

`````` boolean sectionAppearedSecondTime = false;
for (OrderLine orderLine : orderLines) {

if (orderLine.getBase()) {
//do something
setList(list1 OR list2 depending on the flag)
} else if (orderLine.getSection()){
if(orderLine.getSection() appeared the second time, then){
sectionAppearedSecondTime = true;
setList(list1 OR list2 depending on the flag)
}
} else if (orderLine.getSpecialty())) {
//do something
setList(list1 OR list2 depending on the flag)
} else if ...
}
``````

## 8 – How to add the sorting by flag counter in the controller?

The flag counts in another table called `flag_counts` so you should join `node` table, try the following:

``````\$database = Drupal::database();
\$query = \$database->select('node', 'n');
\$query->fields('n', ())
->condition('nfd.status', '1', '=');
// Inner join to get the node status.
\$query->innerJoin('node_field_data', 'nfd', 'nfd.nid = n.nid');
// This join to get the flag counts by node.
\$query->leftJoin('flag_counts', 'fc', 'n.nid = fc.entity_id');
\$query->fields('fc', ('entity_id', 'count'));
// Sort by count.
\$query->orderBy('fc.count', 'DESC');
\$query->range(0, 10);
\$result = \$query->execute()->fetchAll();
``````

## SQL server – Should I activate Trace Flag 1117 for data files of equal size?

I was reading about the proportional fill algorithm in SQL Server and then I remembered TF1117. BOL declares:

When a file in the filegroup reaches the automatic growth threshold, all files
in the file group grow. This trace flag affects all databases and is
recommended only if each database is sure to grow all files in one
group of files of the same amount.

What I can't understand is that if the data files fill up proportionately, will they not automatically grow in proportion? In this case, we cannot omit using TF1117.

## c ++ – The flag of the Clang compiler `-Wshadow-field-in-constructor` does not activate the warning

In the following code (from this question), the constructor parameter hides a field from the structure.

``````#include

struct A
{
A(int n) { std::cout << n; }
int n{2};
};

int main()
{
A a{1};
}
``````

Compile this with clang (clang version 9.0.1, Target: x86_64-pc-linux-gnu) on the command line with `-Weverything` gives, as expected, the following warning:

``````test.cpp:5:11: warning: constructor parameter 'n' shadows the field 'n' of 'A' (-Wshadow-field-in-constructor)
A(int n) { std::cout << n; }
^
test.cpp:6:9: note: previous declaration is here
int n{2};
^
``````

(and a bunch of C ++ 98 compatibility warnings). But compile it with `-Wshadow-field-in-constructor` do not give this warning, only with `-Wshadow-all` we get it again. (see also godbolt) Is this a bug in clang?

PS: On gcc, this warning is activated by `-Wshadow`. In clang, this should also be the case according to the documentation but this is not the case.

## How to prevent some users from adding (for example, a node) to bookmarks with Flag Module

Flag module >>> https://www.drupal.org/project/flag

After much research, I ask for help on the forum to know how to disable / prevent some users (NOT roles) to add (for example a node) to the bookmarks. Maybe post a message after clicking the Boomark button (You're not allowed to make that choice or something like that).

Best regards

## 8 – In node.html.twig, how to use the readmore flag?

In node.html.twig, the instructions clearly indicate:

`````` * - readmore: Flag for more state. Will be true if the teaser content of the
*   node cannot hold the main body content.
``````

I can not access this variable. To test, I have a new installation of Drupal 8. In node.html.twig I have tried:

``````{% if readmore %}
Some content
{% endif %}
``````

My text "Some content" does not show, whether the node body is trimmed or not.

If I add `{{ dump(readmore) }}` he returns `null`. Again, whether the teaser is cut or not.

How to access and use this variable "readmore"?

## 8 – Show all values ​​of the multi-valued flag on a single line in the views

I am very new on drupal (~ 3 months). I create a PSU site to manage project proposals. One of the pages I create allows the user to view the submitted project proposal, mark / uncheck as interest (with the help of Drupal / Flag), and also to see the other departments that scored the project (as a field in the table).

Until now, I am able to display all proposals showing all interested departments but they appear on different lines by department (Image 1). I can use aggregation to remove duplicates, but only one value (a department) displays as interested (Image 2).

Is there a module that I can use to improve this aggregation to display all departments as a list in the field? Or is there an error in my settings that prevents the desired result (Image 3).

Note: The aggregation is set to “ Yes '', the field of the department interested uses (user) from the user relationship (global), the aggregation parameter for the field is Type: group results together, group column: entity ID

## Update flag in postgresql – Database administrators stack Exchange

I have data from three sources that are "PRM", "CRM", "MDB". I need to update the flag as "Y" in a particular column according to the table and description below. can anyone give me a solution as soon as possible

Case 1:
In the first set that I highlighted in bright orange and in this case, the source system is 'MDB'. and who belongs to a different group and says that does not fall in any match and acts like a gold disc, from there I have to update the column 'MDB_FLAG & # 39; in & Y; when the creation date is less than 2017

Case 2:
In the second set I highlighted in yellow and in this case, the source system is & MDB & # 39; and who are in the same group and say which is in correspondence with the one I need to update the column 'MDB_FLAG & # 39; in & Y; when the creation date is less than 2017

Case 3:
In the second set that I highlighted in light blue and in this case, the source system is "MDB". and & # 39; CRM & # 39; and who are in the same group and say which is in correspondence with the one I need to update the column 'MDB No connection with PRM' as & # 39; Y- when the creation date is less than 2017 and the source system that is not linked with the system source_system = & # 39; PRM & # 39;

## Update flag in postgresql – Database administrators stack Exchange

I have data from three sources that are "PRM", "CRM", "MDB". I need to update the flag as "Y" in a particular column according to the table and description below. can anyone give me a solution as soon as possible

Case 1:
In the first set that I highlighted in bright orange and in this case, the source system is 'MDB'. and who belongs to a different group and says that does not fall in any match and acts like a gold disc, from there I have to update the column 'MDB_FLAG & # 39; in & Y; when the creation date is less than 2017

Case 2:
In the second set I highlighted in yellow and in this case, the source system is & MDB & # 39; and who are in the same group and say which is in correspondence with the one I need to update the column 'MDB_FLAG & # 39; in & Y; when the creation date is less than 2017

Case 3:
In the second set that I highlighted in light blue and in this case, the source system is "MDB". and & # 39; CRM & # 39; and who are in the same group and say which is in correspondence with the one I need to update the column 'MDB No connection with PRM' as & # 39; Y- when the creation date is less than 2017 and the source system that is not linked with the system source_system = & # 39; PRM & # 39;