Python learning - object oriented (module)

1 module introduction In Python, all the methods and variables defined by you are stored in a file, which is used by some scripts or interactive interpreter instances. This file is called a module. A module is a file that contains all the functions and variables you define. py is the suffix. Modulari ...

Posted on Sun, 21 Jun 2020 06:13:26 -0400 by Morbid

C/C + + code implementation of topological sorting of Graphs

AOV network: A directed acyclic graph is called DAG graph for short. The directed graph that uses vertex to represent activity and arc to represent the priority relationship between activities is called activity on vertex netwrk (AOV net for short) Topology sorting: The so-called topological orderin ...

Posted on Sun, 21 Jun 2020 05:45:12 -0400 by gumby51

Using SpringCloud Stream and rabbitMQ to implement message consumption failure retransmission mechanism

In the actual project, the message consumption often fails, so it is necessary to resend the message. For example, after the failure of payment message consumption, N times of message retransmission reminder should be performed in different time periods. This paper simulates the scene Message consumption succeeds when the amount is less than ...

Posted on Sun, 21 Jun 2020 00:29:09 -0400 by garfield213

TSO process analysis

1. TSO(transimit segment offload) is for tcp. It refers to the ability of the protocol stack to offload the tcp segment operation to the hardware, which needs the support of the hardware. When the network card has TSO capability, the upper layer protocol stack can directly send a packet over MTU, and ...

Posted on Sat, 20 Jun 2020 01:21:48 -0400 by Nicholas Reed

Heap Sorting/JAVA for Algorithms

0.5 Priority Queue and Heap Sorting What is a priority queue?A priority queue is a data structure that supports deleting the largest (or smallest) and inserting elements, and it works well in such cases.We have a huge amount of data and inputs, and we don't need to sort all the elements, we just need ...

Posted on Fri, 19 Jun 2020 21:43:44 -0400 by Hell Toupee

Using nsq to generate pdf service with puppeter under node (eggjs)

The last article said ctx.service.pdf.index.generate(data) method is the core business method. Call service/pdf/ in root directory in egg index.js The generate method under. Let's talk about eggjs. Official website address: https://eggjs.org/zh-cn/basic.... Get to know eggjs Egg.js Born for enterprise framework and application, we should all ...

Posted on Fri, 19 Jun 2020 06:35:49 -0400 by snake310

Verilog design example software anti shake design of key anti shake

Blog directory Write in front text Background introduction and review Single button Other design versions of single button Multiple buttons Write at the end reference material Make a friend Write in front Personal WeChat official account: FPGA LAB Home page of personal blog Note: learn to co ...

Posted on Fri, 19 Jun 2020 06:11:23 -0400 by rock_xl1

Understanding some of the concepts of search, aggregation in Elasticsearch through kibana

1. Corresponding entity in Java public class Person { String name; int age; } 2. Data in kibana { "_index": "person_index", "_type": "person_type", "_id": "i674x3IBsOhWggMeikEo", "_score": 1, "_source": { "age": 9, "name": "L ...

Posted on Thu, 18 Jun 2020 12:13:46 -0400 by huzefahusain

Encryption and decryption process based on CBC and DES

1, Introduction 1. Password classification: According to whether there is a key or not, the current cipher algorithms can be divided into keyless cipher and keyless cipher. Keyless cipher mainly includes hash function and message digest, while keyed cipher can be divided into symmetric cipher and as ...

Posted on Thu, 18 Jun 2020 07:04:27 -0400 by austinderrick2

The concept and application of spherical harmonic function: spherical harmonic function

The concept and application of spherical harmonic function   Properties of spherical harmonic function Similar to the properties of Fourier series, spherical harmonic function is also based on orthogonal function, and the orthogonal basis of Fourier series is sin(nx) and cos(nx). The spherical har ...

Posted on Thu, 18 Jun 2020 05:07:18 -0400 by Loathor__Healer