Tag:Modular

  • Analyze the decoupling of socket server module written by go and the design of basic module

    Time:2020-7-11

    Decoupling of server – logical distribution through router + controller In the actual system project engineering, we should try our best to avoid unnecessary coupling when we write code. Otherwise, when you update and maintain the code in the future, you will find that you are stuck in a quagmire. If you change something casually, […]

  • Tree shaping principle – [webpack advanced series]

    Time:2020-7-11

    Initial address: https://mp.weixin.qq.com/s/tq… Recommended articles: how much do you know about source map – [webpack series]      Online related articles mixed, many understanding is wrong, I hope everyone in learning, practice out of real knowledge. If there is any mistake in the article, please correct it~ What When the module is packaged by webpack, the […]

  • Install mongodb extension in PHP of nginx server in Ubuntu

    Time:2020-7-10

    Install OpenSSL install apt-get install openssl If the message is used laterCannot find OpenSSL’s librariesThen establish a soft connection: ln -s /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib Install PHP pear apt-get install php-pear Install PHP5 dev apt-get install php5-dev Install PECL extension library apt-get install libpcre3-dev Installing PHP mongodb driver in PECL pecl install mongodb Load mongodb extension Create […]

  • Use electron to communicate between two processes (the main process and the rendering process)

    Time:2020-7-9

    Use electron to communicate between two processes (the main process and the rendering process) The application examples of this series of articles have been published in GitHub: electron API demos zh_ Cn. You can clone or download it to view. Welcome to star adoptipcThe (interprocess communication) module allows you to send and receive synchronous and […]

  • Detailed introduction of front end modularization (ESM & commonjs)

    Time:2020-7-9

    Initial address: https://mp.weixin.qq.com/s/Be…   “Use the most concise way to grasp the core knowledge points to help you read ES6 quickly.” key word:ESModule、CommonJs Series of articles: Intensive Reading of ES6 (2) The previous article involves: class instantiation and inheritance The text begins here~ preface Before starting the text, I will add some basic knowledge Q1:JS […]

  • Examples of Python basic knowledge summarized by Ali Dashen, super detailed

    Time:2020-7-9

    1. In Python, objects are passed by reference. 2. Multivariate assignment is actually tuple assignment 3. Writing module 4. Always remember a fact 5. Dynamic type 6. Variables are tracked and managed in memory by reference counting 7. Exception handling 8. All Python objects have three features 9. Boolean value 10. Object identity comparison 11、cmp() […]

  • Using electron to obtain application and user system information

    Time:2020-7-8

    Using electron to obtain application and user system information The application examples of this series of articles have been published in GitHub: electron API demos zh_ Cn. You can clone or download it to view. Welcome to star Use a few Node.js And electron module, you can collect information about user system, application or screen […]

  • Building library library by webpack

    Time:2020-7-7

    Building library In addition to packaging application code, webpack can also be used to package JavaScript libraries Application scenarios Refine the code of high wearable tools Building UI Library According to the business requirements, business components are encapsulated on the basis of other UI libraries … compatibility Users should be able to access the library […]

  • How to install lamp on Ubuntu

    Time:2020-7-6

    About lamp Lamp is a set of free software acronyms commonly used together to run dynamic web sites or servers Linux, operating system Apache, web server Mysql, database management system (or database server) PHP Here is the installation tutorial. 1. Install Apache Apache is a free open source software that runs on more than 50% […]

  • Python implements socket communication based on TCP and UDP protocol

    Time:2020-7-6

    TCP protocol server.py from socket import socket tcp_server = socket() tcp_server.bind((‘127.0.0.1′, 9000)) tcp_server.listen() conn, addr = tcp_server.accept() msg = conn.recv(1024) print(msg) conn.send(b’hello from server’) conn.close() tcp_server.close() client.py from socket import socket tcp_client = socket() tcp_client.connect((‘127.0.0.1′, 9000)) tcp_client.send(b’hello from client’) msg = tcp_client.recv(1024) print(msg) tcp_client.close()   UDP protocol server.py from socket import socket, SOCK_DGRAM udp_server = […]

  • Apicloud developer’s way to advance | txlive module (live class) trial sharing

    Time:2020-7-5

    Txlive module encapsulates Tencent cloud live service https://docs.apicloud.com/Client-API/Open-SDK/txLive After trial, this module can be called the simplest and fastest live broadcast module to use.The buttons on the interface can be displayed and hidden according to their own needs. With a variety of beauty functions (whitening, thin face, V-shaped face). The bit rate and definition of […]

  • Spring 5 source code analysis series (1) — spring 5 framework module

    Time:2020-7-5

    Spring has about 20 modules in total, which are integrated into core container, AOP and device support, data access and integration, web, message sending and test. Each module collection or module that makes up the spring framework can exist alone, or can be implemented by one module or multiple modules jointly. The module composition and […]