Section 5 Conditions and Cycles

1. Conditional statements (1) Run if satisfied, jump to else if not satisfied, run else content For example: a=1;b=2if a>b: # If statement must end with a colon, if must be followed by a judgment statement print('a Larger') # To execute a statement, you must have elif a==b: # elif ...

Posted by derchris on Tue, 30 Jul 2019 01:41:41 +0200

NET Remoting Learning Notes

1..NET Remoting Concepts   1. A distributed processing method.Literally, he is a remote object development technology based on.net platform, which treats data in remote computers as distributed objects for development. 2. A network communication technology.Since this technology can operate data from a remote computer, of course it is netwo ...

Posted by dwnz on Tue, 30 Jul 2019 00:39:40 +0200

Integrating swoole components in laravel5.8 - servers and clients implemented in collaboration - how static files are deployed

Currently, the more mature technology is to use the laravelS component. Note that laravelS differs from laravelS by one more capitalized S. Since laravelS listens on port 5200 by default, some adjustments will be made to the laravelS project For example: How static files are introduced--load from a static resource server The familiar int ...

Posted by trulyafrican on Mon, 29 Jul 2019 21:41:21 +0200

Vue.use Source Code Analysis

I think I've had experience in Vue development, and I'm no stranger to vue. use. When global components such as vue-resource or vue-router are used, they must be introduced through the Vue.use method. So what exactly did vue. use do before components were introduced? Let's have a glimpse. First up vue.use source code Vue.use = function (plu ...

Posted by libertyct on Mon, 29 Jul 2019 13:55:16 +0200

Object-oriented polymorphism

I. Concept What is polymorphism? Multiple objects of different classes can respond to the same method and produce different results First of all, it is emphasized that polymorphism is not a special grammar, but a state, a feature (that multiple different objects can respond to the same method and produce different results). Benefits: For us ...

Posted by nonexistentera on Mon, 29 Jul 2019 10:39:15 +0200

Show the implementation of Java8 Lambda via byte code

Java8 adds Lambda expressions, which greatly simplifies and compacts the code. How does Java8 implement Lambda expressions? Take a look directly at a simple example of creating threads. public class TestLambda { public static void main(String[] args) { new Thread(() -> System.out.print("thread")); } } Execute the javac TestLa ...

Posted by sgt.wolfgang on Sun, 28 Jul 2019 18:40:25 +0200

Basic understanding and use of Zuul

Why do we need a microservice gateway Different microservices generally have different network addresses, while external clients may need to call multiple service interfaces.Can fulfill a business requirement. For example, a movie ticket collection APP, may call back the movie classification micro service, usersMicroservices, payment microserv ...

Posted by Tarsonis21 on Sun, 28 Jul 2019 13:46:46 +0200

XTTS Series One: U2L Migration Solution XTTS Use

The positioning of this series is to study XTTS and related technologies in depth. As the beginning of this series, in line with the principle of practicality, I first refine and simplify the actual implementation plan of U2L migration in an actual production environment, aiming at clearly explaining how to use XTTS as a solution for U2L migrat ...

Posted by sargenle on Sun, 28 Jul 2019 12:51:33 +0200

opencv-python-learning note 10 (image threshold)

Simple threshold The same threshold is applied to each pixel. If the pixel value is less than the threshold value, set it to 0, otherwise set it to the maximum value. cv.threshold The function is used to set the threshold. The first parameter is the gray level image of the source image, the second parameter is the threshold used to classify th ...

Posted by hrdyzlita on Sun, 28 Jul 2019 12:02:20 +0200

I2C Bus of 51 Single Chip Microcomputer

I2C bus is a serial bus developed by Philips. All devices share two signal lines to realize data transmission.   The bus interface is connected with a pull-up resistor and defaults to a high level, so a starting signal can be marked with "when a low level appears". I personally imagine it as: many people in different rooms (device ...

Posted by mrjameer on Sun, 28 Jul 2019 09:46:30 +0200