php – My Select n executes the event in the correct option

I have a matrix that is being sent by the POST method to another page. So far so good. The problem is that I created a selection so that when the desired option, I would only return some information from this matrix. What happens is that it comes back but it is not what I want. I am a beginner in programming, it can be easy but I am overcoming the head hahaha


I use the Yii2 framework. When I execute the program, it omits the first one if (op1), it passes to the second, it executes it and also to the third one, it executes, it cancels the second one, independently of the option that it selects. What I want in the end is that one of these, if it happens when I call the option of the variable.

man in the middle – What are the correct network configurations for VirtualBox virtual machines to allow the DNS spoofing attack?

I need to implement VM virtual impersonation attack VMs. My host network is connected to a wireless network.

I created a Kali Linux machine (the attacking machine) and another Win10 machine (the victim machine).

I need the victim machine to be able to connect to the Internet and be accessible to the attacker.

Can someone please help me in the correct network settings to enable this attack?

The attacker needs the default gateway and the victim's IP. How to obtain the address of DG?

If I configure the network settings of virtual machines as NAT, ettercap can not see them when I smell the alarm.

If I configure my virtual machines with host-only network configurations, they see each other but they are on a different subnet than the actual gateway and, therefore, can not connect to the Internet.

Can you provide the correct network configuration to implement the DNS forgery in the virtual machine environment and a host device connected to the wireless network?

mysql: the order of the three tables is correct but the values ​​are false

I have those tables

                    Table 1
| id | name |
| 1 | ax
| 2 | arc
| 3 | car |
| 4 | dart


table2 table3
| t1_id | number | | t1_id | letter |
| 1 | 5 | | 1 | a |
| 1 | 6 | | 1 | b |
| 1 | 2 | | 1 | c |
| 2 | 2 | | 2 | a |
| 2 | 2 | | 2 | c |
| 2 | 3 | | 2 | r |
| 3 | 8 | | 3 | and |
| 3 | 3 | | 3 | i |
| 3 | 1 | | 3 | a |
| 4 | 8 | | 4 | a |
| 4 | 9 | | 4 | b |
| 4 | 10 | | 4 | c |

Y table1 (id) is linked with table2 (t1_id), table3 (t1_id)

I execute it to order them by the highest account_letter party then by the highest average number match to get this appropriate result http://www.sqlfiddle.com/#!9/69086b/8/0

SELECT
t1.id,
t1.name

SINCE
table1 t1

UNIT INTERNALLY
table2 t2
IN t2.t1_id = t1.id

Join on the left
table3 t3
IN t3.t1_id = t1.id
AND t3.letter IN (& # 39 ;, & # 39; b & # 39 ;, & # 39; c & # 39;)

GROUP BY
t1.id

ORDER BY
COUNT (t3.letter) DESC,
AVG (t2.number) DESC

| id | name |
| 4 | dart
| 1 | ax
| 2 | arc
| 3 | car |

and everything is working well


but when I wanted to check if there is any problem with the query, I decided to verify the letter_count Y avg_number so I used this query

SELECT
t1.id,
t1.name,
COUNT (t3.letter) LIKE letter_count,
AVG (t2.number) AS avg_number

SINCE
table1 t1

UNIT INTERNALLY
table2 t2
IN t2.t1_id = t1.id

JOIN LEFT
table3 t3
IN t3.t1_id = t1.id
AND t3.letter IN (& # 39 ;, & # 39; b & # 39 ;, & # 39; c & # 39;)

GROUP BY
t1.id

ORDER BY
letter_count DESC,
avg_number DESC

what I expected to be the result

| id | name | letter_count | avg_number |
| 4 | Dart 3 | 9 |
| 1 | ax 3 | 4.3333333333 |
| 2 | arch 2 | 2.3333333333 |
| 3 | car | 1 | 4 |

but the result I got was http://www.sqlfiddle.com/#!9/69086b/3/0

| id | name | letter_count | avg_number |
| 4 | dart 9 | 9 |
| 1 | ax 9 | 4.3333333333 |
| 2 | arch 6 | 2.3333333333 |
| 3 | car | 3 | 4 |

I'm supposed to be worried about how the letter_count it multiplies three times in the future or it just happens when I want to select the values ​​and nothing bad will happen if I keep it ORDER BY?


I just want them to be ordered correctly, which is what I got, but checking the values ​​showed me that letter_count it multiplies many times, so I'm confused about its performance or the letter_count Can it be ignored and the performance will not be affected?

macbook – How can I correct all the menus and dialog boxes randomly?

Menu bar
Menu bar

Right-click contextual menu in Chrome
Right-click contextual menu in Chrome

Either the logoff or closing dialog – I can not say
Either the logoff or closing dialog

This happens randomly between once a month and once a week. The only way out is a hard reset.

It would be good to discover how to fix it permanently.

python – Try & Except, correct form

The correct way to use the test Y except do not Piton and how?

test
variable = function ()
except:
returns & # 39; error & # 39;

Or I do:

variable = function () and then I treat it that way

variable = function ()

test
variable return
except:
returns & # 39; error & # 39;

Anything I'm a beginner in Python, and in PHP I've never used test Y catch

Differential equations: problems with the DAE solution: "The structural analysis indicates that 1 initial conditions are needed to correct the state of the system …"

I am trying to solve the following problem:

g = 1/3;
Bic = 1;
Bir = 1;
M = 1;

a[x_, t_, i_] = Cos[m[i]
second[Tsi_] = Bic * (Tsi[x, t]^ (1/3)) + Bir * (1 + g * Tsi[x, t] + 0.5 * g ^ 2 * Tsi[x, t]^ 2) * (1 + 0.5 * g * Tsi[x, t])

eq1 = Table

The
re[T[T[T[T[i]
Sum[((subway[((m[((metro[((m[i]
re[m[i]
To integrate[x*a[x, t, i]*Sin[x*m[j]
T[j]
Table[m[i], {I am}]}, {t, 0.5}]

The problem is that when I try to resolve it with NDSolve I get an error message:

"The structural analysis indicates that 1 initial conditions are needed to
Repair the state of the system. Currently only 0 initial conditions are
specified. NDSolve can return one of a family of solutions. "

What does this error mean? Because when I try Evaluate[T[1][0.1] /. nsol] I do not get any solution.

enter the description of the image here

How to hide the correct contact panel in Google Voice

I like to run Google Voice on a tab inside Rambox. How can I hide the right panel? It takes up a lot of space and there seems to be no lever.

attributes – Return the argument of a function if the argument is not of the correct type

You can use Check in a function defined by the user:

adjacency matrix[g_] : = Check[AdjacencyMatrix[g], g]

So:

adjacency matrix[Graph[{1->2,2->3,3->4}]]//Normal
adjacency matrix[{1->2, 2->3, 3->4}] //Normal
adjacency matrix[{{1,2},{3,4}}]

{{0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}, {0, 0, 0, 0}}

{{0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}, {0, 0, 0, 0}}

AdjacencyMatrix :: graph: A chart object is expected at position 1 in AdjacencyMatrix[{{1,2},{3,4}}].

{{1, 2}, {3, 4}}

Is this a correct way to build a use case from the initial requirements?

I am trying to practice how to write the appropriate software specification and documentation for a food ordering system that I am building for training purposes.

I put my feet in the shoes of the client who want the project and I wrote the initial requirements that I want to implement in the system (you can find them here on GitHub)

After that I started to build use cases based on these initial functional requirements, but I'm not sure if I'm on the right track or not.

So, I was wondering if the following image is a correct way to create a simple use case for user registration. Should I continue to build all use cases with this template?

enter the description of the image here

Thanks in advance.

Cryptography: How to identify the correct hash of a list of sales and a default password during authentication?

I apologize for being naive, but only recently I started learning about cryptography and online security.

From what I have collected, the safest way, without sacrificing efficiency, to store a password safely is to add a pepper, generate a random salt and then make a hash of the three (password + pepper + salt).

When a user tries to log in, the program checks if the hash matches the hash in the database associated with the user name. Since you need salt (and coded pepper) to code the password with some hope of success …

  1. Do you need to test the hash of each salt in your database?
  2. If you have a million salts, would not that be very slow?
  3. Is there a better way to do this?