Beware of monkey patches and search techniques in Python

background The last two nights of an online system crash, after opening the online error log immediately, only a meaningless stack of program calls (traceback) output was obtained, and the team members were caught in a lengthy and confusing problem-solving process.Fortunately, the problem was resolved, but I have been wondering why the call sta ...

Posted on Sat, 21 Sep 2019 10:04:14 -0700 by will

Cache cache (car cleaning)

When I first came into contact with Cache, it was in WebForm. When I first came into contact with Cache, I never forgot that cache was the Pinyin for car cleaning. Client Browser Cache https://blog.csdn.net/y874961524/article/details/61419716 CDN Caching Principle https://www.cnblogs.com/shijingxiang/articles/5179032.html Aliyun CDN Open Set ...

Posted on Sat, 21 Sep 2019 07:43:45 -0700 by notsleepy

Chapter IV Operational Reference Answers

Choice question: A (Uncertainty) D AC //this cannot be used in the static method, so D error; in the static initialization block, non-static members can not be directly accessed, so A is correct. BC // non-static methods must be called by object. method name, which can not be called directly, so B erro ...

Posted on Sat, 21 Sep 2019 07:15:57 -0700 by spetstnelis

30 Python Practical Codes for Instant Use

Python is one of the most popular languages. It is widely used in data science, machine learning, web development, scripting and automation. Its simplicity and ease of use make it so popular. In this article, we will introduce 30 short code snippets that you can understand and learn in 30 seconds or less. 1. Check duplicate elements The followi ...

Posted on Sat, 21 Sep 2019 03:46:55 -0700 by BVis

Data source configuration in Spring Boot (Spring Boot dbcp2 data source configuration)

Database Connection Pool Selection Algorithms By default, database connections can be automatically configured using the DataSource pool. The following is an algorithm for selecting a specific implementation: Because of the performance and concurrency of Tomcat's data source connection pool, we always give preference to Tomcat when it is avail ...

Posted on Sat, 21 Sep 2019 03:08:51 -0700 by bashaash

mybatis-plus 2.x Upgrade 3.x Notes

The main upgrades from 2.0 to 3.0 are: Upgrading JDK 8 + Optimizing Performance Wrapper Support lambda Syntax Modular MP allocates each package structure reasonably Reconstructing injection method to support any method to simplify injection mode Global Configuration Underline Conversion Eliminates Injection of AS Statements Modify Wrapper to Q ...

Posted on Sat, 21 Sep 2019 03:06:18 -0700 by alconebay

Spring Source Learning Alas, cooking by recipe is similar to AbstractAutowire Capable BeanFactory. CreateBean process.

I remember when I was in love with my wife, one day I came to cook for my wife with a whim, and did it step by step according to the recipe. As a result, I almost burned the kitchen!!! My wife still remembers this. Entrance As mentioned in the previous article, the main process of AbstractBeanFactory.getBean. Today, let's talk about the createB ...

Posted on Sat, 21 Sep 2019 02:59:19 -0700 by boiy

Deep Interpretation of the ReentrantLock underlying source code

Catalog Introduction to ReentrantLock Basic knowledge paving state attribute Thread Holder Properties Queue usage in ReentrantLock Demo & Principle Analysis Fair lock() method Demo Detailed principle Vernacular Principles (Interview Oral) unLock() method Detailed principle Vernacular Pr ...

Posted on Sat, 21 Sep 2019 02:12:36 -0700 by stubarny

selenium handles page common problems: cookie login

A common use of selenium is to skip login through cookie s and to verify images / text messages / validation codes, etc., to be in the login state directly. It seems simple, but there are always problems with cookie s. First of all, we tested it with bean flakes. The whole idea is: 1. First use se ...

Posted on Sat, 21 Sep 2019 01:12:51 -0700 by dubrubru

mybatis basic xml configuration

If the article is wrong, please comment downstairs, thank you for your positive correction! Learn together and become a big man! mybatis: 1. lightweight 2. Advanced mapping (mapping between entity classes and database table fields) allows you to manipulate entity classes in subsequent development without paying attention to the database. (In fa ...

Posted on Sat, 21 Sep 2019 00:41:32 -0700 by pramodv