Question about Backus-NaurForm (BNF)

To write the integer grammar (0,1,2 …) in BNF, we can write:

Number :: ⇒ digit MoreDigits
MoreDigits :: ⇒
MoreDigits :: ⇒ number
Digit :: ⇒ 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

For a number like 37, the analysis tree would be:

Analyze tree for 37

Now here is the part that confuses me. If we replace the first rule Number :: ⇒ digit MoreDigits in the whole number grammar with: Number :: ⇒ More Digits DigitI would think that this would lead to a circular definition. Instead, it should lead to:

Enter image description here

Why does the root make number have a combination order of More Digits Digitwhile and the second number have a combination order of Set MoreDigits,

php – You have found a recipient who has a question about the product

A program was created that contains a product, and a program was also created that provides the ability to change the tempo of the output, and a tutorial was created that represents the result of the testing.

  • Warning: mysqli_query () expects at least 2 parameters, one of which is in line 82 in C: xampp htdocs administracao produtos index.php

  • Warning: mysqli_fetch_array () expects parameter 1 to be mysqli_result, null in C: xampp htdocs administracao produtos index.php on line 84

O código PHP é o seguinte:





<? PHP

if (isset ($ _ POST['submit'])) {
if (isset ($ _ GET['go'])) {
if (preg_match ("/[A-Z  | a-z]+ / ", $ _POST['name'])) {

$ name = $ _ POST['name'];
// connect to the database
$ db = mysqli_connect ("localhost", "root", "") or the (& # 39; I can not connect to the database because: & # 39; mysqli_error ());
// - Select the database to use


mysqli_select_db ($ db, "pap_database") or the ("can not select DB");
$ sql = "SELECT idprodutos, nome, ano_atual FROM produtos WHERE nome LIKE '%". $ name. "% & # 39; OR ano_atual LIKE & # 39;%". $ name. "% & # 39;"
// - Execute the query with the mysql query function
$ result = mysqli_query ($ sql);
// - create while and iterate through the result set
while ($ row = mysqli_fetch_array ($ result)) {
$ name = $ row['nome'];
$ ano = $ row['ano_atual'];
$ ID = $ row['idprodutos'];
// - display the result of the array
echo "";
}
}

otherwise {
echo "

Please enter a search query

"; } } } ?>

Código HTML:

 
<? php // End of the search form script if (isset ($ _ GET['by'])) { $ letter = $ _ GET['by']; // connect to the database $ db = mysqli_connect ("localhost", "root", "") or the (& # 39; I can not connect to the database because: & # 39; mysqli_error ()); // - Select the database to use $ mydb = mysqli_select_db ("pap_database"); // - query the database table $ sql = "SELECT idprodutos, nome, ano_atual FROM produtos WHERE nome LIKE '%". $ letter. "% & # 39; OR ano_atual LIKE & # 39;%". $ letter. "% & # 39;" // - Execute the query with the mysql query function $ result = mysqli_query ($ sql); // - count results $ numrows = mysqli_num_rows ($ result); echo "

"$ numrows." - Results found for ". $ Letter."

"; // - create while and iterate through the result set while ($ row = mysqli_fetch_array ($ result)) { $ name = $ row['nome']; $ ano = $ row['ano_atual']; $ ID = $ row['idprodutos']; // - display the result of the array echo ""; } } // End of our letter search script if (isset ($ _ GET['idprodutos'])) { $ contactid = $ _ GET['idprodutos']; // connect to the database $ db = mysqli_connect ("localhost", "root", "") or the (& # 39; I can not connect to the database because: & # 39; mysql_error ()); // - Select the database to use $ mydb = mysqli_select_db ("pap_database"); // - query the database table $ sql = "SELECT * FROM produtos WHERE idprodutos =". $ contactid; // - Execute the query with the mysql query function $ result = mysqli_query ($ sql); // - create while and iterate through the result set while ($ row = mysqli_fetch_array ($ result)) { $ name = $ row['nome']; $ ano = $ row['ano_atual']; $ ID = $ row['idprodutos']; // $ PhoneNumber = $ row['PhoneNumber']; // $ email = $ row['Email']; // - display the result of the array echo "
    n "; echo "
  • ". $ name." "$ ano."
  • n "; // echo "
  • ".PhoneNumber."
  • n "; // echo "
  • ".""$ Email."
  • n "; echo "
"; } } ?>

python 3.x – Converts a list of dictionaries into a dictionary

I have a dictionary like: –

q2 = Complain.objects.values ​​(cd) .order_by (cd) .annotate (count = Count (cd))
q2 = [{'ComplainDepartment':'Academic','count':1}{'ComplainDepartment':'Hostel','count':2}]

I would like to change it to: –

data = {& # 39; Academic & # 39 ;: 1, & # 39; Hostel & # 39 ;: 2}

How to change that helps me kindly.

Avoid running concurrently jobs in multibranch jobs with inputs to jenkins

I currently have the following problem.

I have a Jenkins job (multibranch) in which the user selects the name of the release to be implemented using "input"

def userInput = input
id: & # 39; userInput & # 39 ;, message: & # 39; fill in the required fields to start the deployment & # 39 ;,
parameter:[string (name: & # 39; nameRelease & # 39 ;, defaultValue: & # 39; none & # 39 ;, description: & 39; name of release & # 39;)

I have to avoid executing 2 jobs with the same value for "nameRelease". That is, if one is already running, the second is aborted

Is there any functionality in Jenkins that allows it?

a greeting
Javi

dg.differential geometry – Kronheimer's results on ALE spaces as Hyperkahler quotient

Background: Kronheimer proved in his two works from the late 80s that each 4-dimensional ALE space is given for example by a Hyperkahler quotient $ X _ {{ zeta_ mathbb {R}}, { zeta_ mathbb {C}}} (Q) $ where Q is a Dynkin diagram of the type ADE and $ { zeta_ mathbb {R}}, { zeta_ mathbb {C}} $ are parameters of the Hyperkahler Momentenkarte, which fulfill a certain generic condition. He also proves that if one fixes a graph Q, all of these spaces are diffeomorphic to a space, we call it $ X (Q), $ what is given as the minimum resolution of $$ pi: X (Q) rightarrow mathbb {C} ^ 2 / G, $$ (where G is a particular subset of $ SU (2) $). From earlier works by Du Val we know the topology of $ X_Q $ – Its deformation angle is the extraordinary divider $$ pi ^ {- 1} (0) = cup_ {i in Q ^ 0} mathbb {C} P ^ 1_i $$ This is a Dynkin Q tree of spheres that intersect transversely according to the graph and whose self-intersections are -2. Particularly, $$ H_2 (X (Q)) = oplus_ {i in Q ^ 0} [mathbb{C}P^1_i], $$

Now the question: It seemed to me that Kronheimer also proves the following: in the ALE room $ X _ {{ xi_ mathbb {R}}, 0} (Q) $ the $ omega_I $Volumes of these exceptional areas are indicated
begin {equation} tag {1} langle omega_I, [mathbb{C}P^1_i] rangle = zeta_ mathbb {R} ^ i
end {equation}

exactly through the components of the real moment map parameters $ zeta_ mathbb {R} = ( zeta_ { mathbb {R}} ^ i) _ {i in {Q ^ 0}}. $ Now this seems to be wrong, as are these exceptional areas $ omega_I $-symplektisch, therefore theirs $ omega_I $Volumes are positive while moment parameters $ zeta _ { mathbb {R}} ^ i $ can be negative.

Does anyone know the cure of formula (1) to make it come true?

Custom node editor in unit

At the moment I'm doing a game about unity, and in the game I want to make the quest system flexible as the game world is randomly generated. I also want to make it easy to create quests for me and possibly modders. So, I want to create a menu to create quests, but I could not find any information about how to create the node editor window in Unity (like shader diagram, VFX diagram, etc.). Are there any useful sources that could help me?