Stop confusing observer mode with publish subscribe mode!

Observer modeThere are usually two models in the observer model, one observer and one observed. Literally, when the observed person has some behavior or change, it will notify the observer, and the observer will deal with it according to this behavior or change.Let's take a simple chestnut 🌰: Now there is a landlord (observer) whose house is p ...

Posted by oscar2 on Fri, 11 Feb 2022 15:51:21 +0100

[data structure and algorithm] in-depth analysis of the solution idea and algorithm example of "maximum Rectangle"

1, Title Requirements Given a two-dimensional binary matrix containing only 0 and 1 and the size of rows x cols, find the largest rectangle containing only 1 and return its area.Example 1: Input: matrix = [["1","0","1","0","0"],["1","0","1","1","1"],["1","1","1","1","1"],["1","0","0","1","0"]] Output: 6 Example 2: Input: matrix = [] Outp ...

Posted by solarisuser on Fri, 11 Feb 2022 15:49:53 +0100

[tcallusdb knowledge base] restful API For generic table - [PB] ReplaceRecord introduce

[tcallusdb knowledge base] restfulapi2 0 for generic table - [Pb] fieldgetrecord2 0 Introductionbrief introductionQuery the corresponding record, get the specified field and return. Compared with the specified fields returned by GetRecord (Select parameter), the difference is that FieldGetRecord filters on the server and the network traffic is ...

Posted by mgrphp on Fri, 11 Feb 2022 15:45:52 +0100

ubuntu18.04 installed gitlab, CUDA, CONDA, Pip, pytorch, pycharm professional, vscode

1. gitlab reference resources: Configure ssh key Why does Gitlub need SSH Key? Because Gitlub needs to recognize that the submission you push is really pushed by you, not pretended by others, and Git supports SSH protocol, Gitlub can confirm that only you can push as long as you know your public key. 1.1 create ssh key ssh-keygen -t rsa ...

Posted by cgm225 on Fri, 11 Feb 2022 15:40:12 +0100

Spark: JupyterNotebook integrates PySpark development environment

Record Basic environment JDK8Python3.7 Setting up Spark environment in Window First install JDK8 and python 3, which will not be repeated here Install Hadoop 2 seven Download address: http://archive.apache.org/dist/hadoop/core/hadoop-2.7.7/hadoop-2.7.7.tar.gz decompression Download winutils of hadoop: https://github.com/stevelou ...

Posted by cl77 on Fri, 11 Feb 2022 15:37:58 +0100

Learn JdbcTemplate from Spring framework

JdbcTemplate JdbcTemplate is Spring's encapsulation of JDBC to make JDBC easier to use. The JdbcTemplate is part of Spring. The JdbcTemplate handles the creation and release of resources. It helps us avoid some common mistakes, such as forgetting to always close the connection. It runs the core JDBC workflow, such as the establishment and exec ...

Posted by Anzeo on Fri, 11 Feb 2022 15:36:38 +0100

Entering the world of Java Web technology 9: the birth and development of Java log system

How is a famous log system designed Reprinted from: Manon turned over 1 Preface At the beginning of its birth, the Java Empire provided common functions such as collection, thread, IO and network, which attracted a large number of programmers from C and C + + territory, but intentionally or unintentionally ignored an important function: outp ...

Posted by subalan on Fri, 11 Feb 2022 15:29:35 +0100

An article on understanding Lua's object orientation

Copyright notice: This article is the original article of the blogger and follows CC 4.0 BY-SA Copyright agreement, please attach the original source link and this statement for reprint. Link to this article: https://blog.csdn.net/takashi77/article/details/116655240 Lua is a process oriented and functional programming language, because Lu ...

Posted by sxiix on Fri, 11 Feb 2022 15:20:12 +0100

100. Same tree (2021-05-13)

100. Same tree Link: https://leetcode-cn.com/problems/same-tree/ See the link for the title description. Solution 1: breadth first search What took advantage of was the problem of traversing the binary tree just yesterday, so it was completed smoothly today. At the beginning, I wanted to complete the search with depth first, but the re ...

Posted by insub2 on Fri, 11 Feb 2022 15:10:39 +0100

[punctual atom MP157 serial] Chapter 23 Linux device tree - extracted from [punctual atom] STM32MP1 embedded Linux Driver Development Guide v1 seven

1) Experimental platform: punctual atom STM32MP157 development board 2) Purchase link: https://item.taobao.com/item.htm?&id=629270721801 3) Full set of experimental source code + manual + video download address: http://www.openedv.com/thread-318813-1-1.html 4) Official station B of punctual atom: https://space.bilibili.com/394620890 5) Punc ...

Posted by jarv on Fri, 11 Feb 2022 14:58:11 +0100