Notes congruence

congruence If \ (m \mid a-b \), then \ (a \equiv b \pmod m \) Important formula: \ ({a \bmod b = a-b\lfloor a/b\rfloor} \) subject AcWing202: the luckiest number It's hard (worth doing!) \Ask how many positive integers composed of at least 8 are multiples of L (\ (L ≤ 2 × 10^9\)​​) AC code Note: there is a disadvantage of fast power ...

Added by DontheCat on Tue, 08 Mar 2022 03:22:18 +0200

hvv 0day pan micro OA V8 sql injection / V9 file upload (including batch poc)

0x00 introduction to pan micro OA Founded in 2001 and headquartered in Shanghai, fanwei focuses on the field of collaborative management OA software, and is committed to taking collaborative OA as the core to help enterprises build a new mobile office platform. 0x01 vulnerability description SQL injection vulnerability exists in Pan ...

Added by tukon on Tue, 08 Mar 2022 03:20:19 +0200

Training of the first linear regression

  you can run the program if you want Reference here . For ndarray and autograd, please refer to the previous blogs. preface    now there is a function, y=w*x+b, W, b is known, so give an X, you can find the corresponding y.    but when w and b are unknown, we only give a pair of X and Y. the obtained W and b may on ...

Added by OilSheikh on Tue, 08 Mar 2022 03:01:53 +0200

Quickly understand the three basic characteristics of object-oriented (encapsulation, inheritance and polymorphism) from [example]!

Three basic characteristics of Java object-oriented (encapsulation, inheritance and polymorphism) The encapsulation of class is equivalent to a black box. You can't see anything in the black box. Inheritance is an important feature of classes. Relatively complex and advanced classes can be inherited from a simple class, which can greatl ...

Added by mikes127 on Tue, 08 Mar 2022 03:02:46 +0200

Five steps for Ajax requests

catalogue Five steps for Ajax requests 1, Definition 1. What is Ajax 2. The difference between synchronous and asynchronous 3. How ajax works 2, Basic steps to implement AJAX 1. Create XMLHttpRequest object 2. Create HTTP request 3. Set the function to respond to the status change of HTTP request 4. Sets the statement that gets the da ...

Added by sonic_2k_uk on Tue, 08 Mar 2022 03:00:59 +0200

PYTHON get mail sending time

Today, I continued to pile on the hill where I wrote it. The problem is as follows: use python to get the sending time of mail. CSDN is a bad place: Daniel basically doesn't have it. If there is Daniel, he doesn't care to solve this problem. python has a module email, but it does not encapsulate the function of obtaining time. Encapsulates on ...

Added by dandare on Tue, 08 Mar 2022 02:56:05 +0200

Use of axios in vue

1, What is Axios Axios is a promise based HTTP Library (similar to jQuery's Ajax for HTTP requests)Can be used for browsers and node JS (it can be used for both the client and the server written by node.js) 2, What are the features of Axios Support promise APIIntercept requests and responsesConvert request data and response dataCance ...

Added by RussellReal on Tue, 08 Mar 2022 02:42:52 +0200

Implementation of delayed tasks based on message queue (RabbitMQ)

1, Preface Delayed tasks are widely used. Typical application scenarios of delayed tasks include automatic cancellation of orders when they timeout; Payment callback retry. Among them, the order overtime cancellation has idempotent property, and there is no need to consider the problem of repeated consumption; Payment callback retry needs to co ...

Added by kye on Tue, 08 Mar 2022 02:42:02 +0200

Springcloud -- use and explanation of openfeign / feign

1. Introduction to openfeign Feign is a declarative Web Service client. Its appearance makes it easy to develop Web Service clients. To use feign, you only need to create an interface and add corresponding annotations, such as FeignClient annotation. Feign has pluggable annotations, including feign annotations and JAX-RS annotations. Feign ...

Added by the-botman on Tue, 08 Mar 2022 02:39:36 +0200

MySQL group replication (multi master mode)

MySQL group replication (multi master mode) Official website: https://dev.mysql.com/doc/refman/5.7/en/group-replication.html brief introduction MySQL group replication is a MySQL Server plug-in that enables you to create elastic, high availability, fault-tolerant replication topologies. Based on GTID.Group replication is a technology that ...

Added by johnny on Tue, 08 Mar 2022 02:34:19 +0200