Module system of Node.js

First, the definition of modularity. ① With file scope ② With communication rules: Rules for loading and exporting 2, CommonJS module specification 1. The module system in nodejs has file scope and communication rules. It uses the require method to load the module, and uses the exports interface object to export the members of the module. 2 ...

Posted by VenusJ on Sat, 20 Nov 2021 03:24:25 -0800

Actual combat of e-commerce offline warehouse project

Actual combat of e-commerce offline warehouse project (Part 2) E-commerce analysis - core transactions 1, Business requirements Select indicators: order quantity, commodity quantity and payment amount, and analyze these indicators by sales region and commodity type. 2, Business database table structure 1. Relationship between databas ...

Posted by pengu on Sat, 20 Nov 2021 03:23:31 -0800

OpenCV Python actual combat (part outside) - OpenCV realizes image cartoon

preface In blog Opencv Python practice (4) -- common OpenCV image processing technologies( ❤️ 10000 word long text, including a large number of examples ❤️)> As described in, you can apply CV2. Bilaterfilter () To reduce noise while retaining sharp edges. However, this filter will produce ladder effect and false edges in the filtered im ...

Posted by robin_percy on Sat, 20 Nov 2021 03:15:34 -0800

[git] sub module management of GIT project - use Git Submodule to manage sub modules

Usage scenario There will be more and more company based projects, and it is often necessary to extract a public class library for multiple projects, but how can this library be easily managed with git? We need to solve the following problems: How do I import the library library in a git project? The library library has been modified in oth ...

Posted by myaion on Sat, 20 Nov 2021 03:03:51 -0800

Atomic operation class summary, why is it more and more difficult to interview middle and senior posts in Java

The implementation principle of AtomicLong is consistent with AtomicInteger, except that one is for long variables and the other is for int variables. How does the AtomicBoolean class update the boolean variable? The core method is compareandset method, and its source code is as follows: public final boolean compareAndSet(boolean expect, bool ...

Posted by Xianoth on Sat, 20 Nov 2021 03:01:09 -0800

Chapter 2 xml Technology

Chapter 2: xml, http protocol, tomcat 1.XML 1.1 XML overview 1. What is xml: English Extensible MarkUp Language. Extensible markup language: markup in xml is extensible.xml version number 1.0, 1.1 xml usage: it is used to store data1. As the format of data transmission between systems2. As the configuration file of the project3. Save data with ...

Posted by Drewser33 on Sat, 20 Nov 2021 02:38:28 -0800

Java foundation -- different regional representations of thread safety (synchronization lock and monitor), thread blocking (sleep and wait), wake-up mode, lock (mutual repulsion lock), and fair lock

Fundamentals of Java (19)—— 1, Thread safety (sync lock and monitor) 1. Primer -- thread unsafe For example, introduce a security lock: 10 stores, selling 1000 computers at the same time. The code is 10 threads competing for a resource (the code is as follows): This will cause a serious problem, that is, multiple threads will c ...

Posted by spetsacdc on Sat, 20 Nov 2021 02:20:40 -0800

C# implement WebSocket server: (02) message frame analysis and code implementation

Earlier, we introduced the handshake of WebSocket: C # implements WebSocket server: (01) handshake After the handshake is completed, both the client and the server can send and receive messages. WebSocket messages are sent and received in frames. 0. WebSocket frame Frame type Op There are six common frame types: valuetypeexplain0x00Continua ...

Posted by suttercain on Sat, 20 Nov 2021 02:07:45 -0800

TypeScript official manual translation plan [3]: type contraction

Note: at present, there is no Chinese translation of the latest official documents of TypeScript on the Internet, so there is such a translation plan. Because I am also a beginner of TypeScript, I can't guarantee the 100% accuracy of translation. If there are errors, please point them out in the comment area;Translation content: the tentative t ...

Posted by Misery_Kitty on Sat, 20 Nov 2021 02:01:56 -0800

Automatically download HowNet journal files with Python and Selenium

I won't talk about the process of installing Python and Selenium. Let's go directly to the code below. The goal is to download all the documents (PDF format) of a certain issue of a journal on HowNet. Here with Educational research Take this journal as an example, Download all the documents in issue 5 of 2021. 1 download Chrome's Webdriver ...

Posted by velkymx on Sat, 20 Nov 2021 01:53:15 -0800