Design Mode Simple Factory Mode (Talk about Westward Journey Learning Notes)

1. Object-Oriented Programming Benefits Object-oriented programming reduces program coupling by encapsulation, inheritance, and polymorphism. Encapsulation: hides implementation details and attributes, controls access to attributes through a pu ...

Added by kmutz22 on Sat, 07 Sep 2019 05:13:52 +0300

Popular reviews don't crawl yet?Learn Python to take you crawling

Today's article is about how to use requests to crawl data from public reviews. After reading this article, you can: 1. Understanding CSS Anti-Crawler Mechanism of Public Comments 2. Cracking Anti-Crawler Mechanism 3. Use requests to get the correct number of comments, average price, service, taste, environmental data, and commentary text dat ...

Added by dacio on Sat, 07 Sep 2019 02:18:08 +0300

Should we be able to speculate in stocks with python?

Since the author does not have a deep mathematical background or financial knowledge, he will not quote various advanced investment models or mathematical models in this paper. The reference books are mainly "Turtle Trading Rules" and "Make a living from trading". trading system Before trading, we should first have a tradin ...

Added by norpel on Fri, 06 Sep 2019 19:09:36 +0300

Actual RocketMQ Solves Distributed Transaction Problem

How to ensure consistency: RocketMQ Solves Distributed Transactions (Reliable Message Final Consistency Scheme) 1. System A sends a prepared message to MQ. If the prepared message fails, cancel the operation directly and do not execute. 2. If the message is sent successfully, then execute Local Transaction. If it is successful, tell MQ to se ...

Added by tomm098 on Fri, 06 Sep 2019 10:51:18 +0300

kunernets uses helm to install tiller trampling pit

helm installation reference: https://www.kubernetes.org.cn/4619.html Helm is composed of client-side command line tool and server-side tiller. Helm installation is very simple. Download the helm command line tool under / usr/local/bin of master node node 1. Download version 2.9.1 here: wget https://storage.googleapis.com/kubernetes-helm/helm ...

Added by Phate on Fri, 06 Sep 2019 08:22:10 +0300

Timsort's Fastest Sorting Algorithms

background Timsort is a hybrid, stable and efficient sorting algorithm, which originates from merge sorting and insert sorting, and aims to deal with a variety of real data well. It was implemented by Tim Peters in 2002 in Python programming language. The algorithm finds the subsequences of sorted data and uses this knowledge to sort the rest o ...

Added by CreativeWebDsign on Thu, 05 Sep 2019 09:40:46 +0300

JavaScript Design Patterns--Implementation and Principles of Multiple Inheritance Modes

The original text is from my personal blog site: https://www.dzyong.com (Welcome to) Link address for this article: https://www.dzyong.com/#/View... (Please label source for reload) What is inheritance Inheritance is a concept in object-oriented software technology.If one category A "inherits" from another category B, it is called a & ...

Added by peppino on Wed, 04 Sep 2019 05:16:34 +0300

Network Programming for Linux Learning

Before we start learning network programming, let's first understand what TCP protocol is: TCP/IP(Transmission Control Protocol/Internet Protocol), which is a connection-oriented, reliable, byte-stream-based Transport layer communication protocol. I ...

Added by philippe2 on Tue, 03 Sep 2019 17:05:11 +0300

How to Investigate Mysql Deadlocks: insert on duplicate Deadlock One-time Investigate and Analysis Process

Preface How should we investigate and analyze Mysql deadlock? There was an insert on duplicate deadlock problem on the line before. Based on this deadlock problem, this paper will share the process of investigation and analysis, hoping to be helpful to everyone. Deadlock case recovery Table structure: CREATE TABLE `song_rank` ( `id` int(11) N ...

Added by timecatcher on Tue, 03 Sep 2019 13:55:44 +0300

Python to achieve business card management system, office necessary!

Python is indeed a language for zero-based programming enthusiasts to learn. python's programs can be understood, but it is difficult to achieve. This is a problem that almost every beginner who learns Python will encounter. Memory is better than bad ...

Added by stuartbaggs on Tue, 03 Sep 2019 12:07:22 +0300