In those years, we stepped on the Java pit

Preface There is an old saying in China that "nothing is more than three times". It means that a person who has made the same mistake can be forgiven twice and three times at a time, and can't be forgiven more than three times. It has been pointed out that this "three" is an imaginary number, which is used to refer to many t ...

Posted by Grunt on Thu, 09 Apr 2020 23:44:14 -0700

Detailed usage of the Beautifulsoup module for python Crawlers

What is beautifulsoup: Is a Python library that can extract data from HTML or XML files.It enables you to navigate, find, and modify commonly used documents through your favorite converter.(Official) beautifulsoup is a parser that parses content specifically, eliminating the hassle of writing regular expressions. Here we are using bs4: 1. Impor ...

Posted by vimukthi on Thu, 09 Apr 2020 19:51:55 -0700

04 using three.js to develop panoramic roaming panorama switch

brief introduction The way to realize panorama is to replace the img object of material.map directly after the panorama image is obtained successfully, and then inform three.js that its material.map has been updated, and then the scene image has been replaced. Simple example setInterval(function () { var material = mesh.material ...

Posted by darkknightgaury on Thu, 09 Apr 2020 10:53:16 -0700

python's regular expression (re function, greedy and non-greedy)

We connect Linux to implement regular expressions 1. Python3 Regular Expressions Regular expressions are a special sequence of characters that help you easily check if a string matches a pattern. Python has added the re module since version 1.5 to provide Perl-style regular expression patterns. The re module gives the Python language full ...

Posted by zrocker on Thu, 09 Apr 2020 10:48:30 -0700

Java ------ this keyword

1, What is this keyword this is a keyword in java; This can be a reference or a variable in java. When it is a variable, the memory address saved in the variable points to itself, and this is stored in the JVM heap memory java object   2, What is the function of this keyword 1. The first function of this keyword is to pass the value of the loc ...

Posted by ashok_bam on Thu, 09 Apr 2020 08:16:59 -0700

Vue Learning Notes Built-in Instructions and Forms

Vue Learning Notes (2) Built-in Instructions and Forms 1. Built-in Instructions 1. Basic Instructions v-cloak: It does not require an expression; it is removed from the bound HTML element at the end of the Vue instance compilation and is often used in conjunction with display:none of CSS. [v-cloak] { display: none; ...

Posted by jotate on Wed, 08 Apr 2020 21:06:44 -0700

From Java annotation introduction to mastery, this article is enough

Reading this article suggests looking at the table of contents first to grasp the overall context. It's better to have used or customized annotations. Even if you haven't used annotations, the examples in this article must be typed by yourself. This article will take you a step further to uncover the true face of annotations. If you don't un ...

Posted by bfuzze_98 on Wed, 08 Apr 2020 07:21:34 -0700

How does Spring solve circular dependency? Do you really understand?

Guide reading Articles published the other day Spring boot multi data source dynamic switch and Spring boot: a huge pit for integrating multiple data sources In, it is mentioned that adding @ Primary interface to dynamic data source will cause circular dependency exception, as shown in the following figure: This is a typical constructor dep ...

Posted by MHardeman25 on Tue, 07 Apr 2020 05:54:02 -0700

Handler message mechanism and memory leak

1. Message mechanism 1.1 post series By looking at the source code, it is known that the sendMessageDelayed method is the last call made by post(Runnable r), postDelayed(Runnable r, long delayMillis): // post public final boolean post(Runnable r){ return sendMessageDelayed(getPostMessage(r), 0); } // postDelayed public final boolean postDe ...

Posted by hstraf on Mon, 06 Apr 2020 20:52:51 -0700

C + + virtual inheritance

Suppose we have class A, class B and class Test. Class Test has all the attributes of class A and class B, and they all have the temp attribute. Now we need to set and read the temp attribute in class Test, so write the following program: #include <iostream> class Base{ public: int temp; }; class A : public Base{ }; class B : publi ...

Posted by Japet on Mon, 06 Apr 2020 10:45:40 -0700