Making WIFI version of intelligent socket easily -- Software

Refer to the first part for hardware construction: https://blog.csdn.net/qq_34472145/article/details/94561226 I. Preface In the previous part, the socket receives messages from MQTT server, while the server receives instructions from APP and converts them into customized messages and sends them to WiF ...

Posted by stelthius on Wed, 30 Oct 2019 12:22:15 -0700

Sort (search + prune)

  I didn't come up with a positive solution during the exam, and finally I scored a violent cheat. The violence was good... I searched every state, and then I enumerated the violence. If I have time, I still have to play. It's true, but I'm too konjaku to fight... And then the positive solution is the search. First understand a property ...

Posted by abhi_10_20 on Wed, 30 Oct 2019 10:29:34 -0700

[summer training Day2T3] League building activity

I think this week's question is the more difficult one. Given an undirected graph with N points and M edges, a minimum spanning tree of the undirected graph is found, which satisfies the degree of node 1 not more than the given integer K. Guarantee N < = 20 First, the map access node is used, then the node 1 is dropped, and the MST of each ...

Posted by Daddy on Wed, 30 Oct 2019 08:57:13 -0700

TP5 interface development exception handling takeover

A few days ago, a third-party extension package was used in development. During the use, the third-party extension package threw an exception. Because this is the interface development, it needs to return error code and prompt information, so it needs to take over exception handling. This article only takes notes. If you have any wrong or not ...

Posted by marseille on Wed, 30 Oct 2019 08:55:14 -0700

Closure function, decorator

I. supplementary knowledge points 1. callable (can be parenthesized to perform a specific function): function name, class name 2. import this: View Python Zen Closure function 1, definition Closed: a function defined within a function Package: the inner function references the name of the outer function scope 2, form def outter(x,y): ...

Posted by pgosse on Wed, 30 Oct 2019 08:38:01 -0700

"zoj2314" Reactor Cooling

Title: Give n points and M pipes. Each pipe is used to flow liquid. One way, the material flowing in each pipe at every moment is equal to the material flowing out. Make m pipes form a cycle body, in which the material flows. The flow limit of each pipe is [Li,Ri]. That is to say, the flow in at every time should not exceed RI (maximum flow p ...

Posted by JamesyBHOY on Tue, 29 Oct 2019 14:12:13 -0700

Summary of the methods of setting up and obtaining custom header information in js ajax

Catalog 1. Set the custom header in js ajax 1.1 method 1: 1.2 method 2: 2. js ajax obtains the header information of the response returned by the request 3. Get customized header information when js ajax cross domain requests 1. Set the custom header in js ajax 1.1 method 1: $.aja ...

Posted by evan18h on Tue, 29 Oct 2019 13:22:01 -0700

[HAOI2010] software installation

[HAOI2010] software installation At the beginning, I didn't understand the problem. I thought it was a tree shaped dependent backpack. After I finished typing W40, I found that it would return. To use tarjan to shrink the point and run the backpack, I need to establish a virtual node 0 to connect all the subgraphs (pay attention to the locatio ...

Posted by libertyct on Tue, 29 Oct 2019 11:51:48 -0700

1018 hammer scissors (20 points)

Everyone should be able to play the game of "hammer, scissors and cloth": two people give gestures at the same time, and the winning and losing rules are as shown in the figure: Here is the record of the fight between the two. Please count the number of wins, evenings and defeats of both sides, and give the most successful hand ges ...

Posted by DavidP123 on Tue, 29 Oct 2019 10:36:50 -0700

Luogu P1073 best trade

Now I understand how rubbish the shortest problem I've ever done is. It's a long topic, but in fact, it's a story about a middleman making a difference. Generally speaking, the problem of graph theory is the core of graph construction, and the subtlety of this problem lies in that it needs to build two graphs: positive graph and reve ...

Posted by j3rmain3 on Tue, 29 Oct 2019 10:28:26 -0700