Creator mode
1, Introduction to builder mode
1. Introduction to builder mode
The builder pattern separates the construction and representation of a complex object, so that the same construction process can create different representations.
Builder mode and abstract factory mode are similar in function. They are used to create large and complex objects. T ...
Added by warptwist on Fri, 18 Feb 2022 05:32:56 +0200
Classic network VGG16
Classic network VGG16
structure
According to the size of convolution kernel and the number of convolution layers, VGG can be divided into six configurations: A, a-lrn, B, C, D and E. among them, D and E are commonly used, which are called VGG16 and VGG19 respectively.
The following figure shows six structural configurations of VGG:
In ...
Added by arbitter on Fri, 18 Feb 2022 05:28:39 +0200
Nacos service registration and configuration center
Introduction to Nacos
Nacos is an easy-to-use dynamic service discovery, configuration and service management platform for building cloud local applications. Through Spring Cloud Alibaba Nacos Discovery, you can quickly access the Nacos service registration function based on the programming mode of Spring Cloud.
Service discovery is one o ...
Added by nubby on Fri, 18 Feb 2022 05:13:36 +0200
Java multithreading learning notes
Start with selling tickets
Let's look at a classic example of multithreading: create three windows to sell tickets, and the total number of votes is 100. Look at this code first:
package com.xzc;
class Window extends Thread{
public Window(){
}
public Window(String name){
super(name);
}
private int ticket = 100;
...
Added by fahim_junoon on Fri, 18 Feb 2022 05:03:04 +0200
AQS java concurrency cornerstone
AQS is a basic package under the java locks package. It implements the serializable interface and inherits the AbstractOwnableSynchronizer. Its important class attributes include state representing its state, Node head tail representing queue, and exclusiveOwnerThread of AbstractOwnableSynchronizer.
The bottom layer of the lock method of Reent ...
Added by writer on Fri, 18 Feb 2022 04:54:15 +0200
css and picture theme color
The idea comes from the skeleton screen in "performance optimization": In sites with a large number of pictures, this will be a very nice experience - picture loading is usually uncomfortable. Generally, the bitmap in a good skeleton is a low pixel picture, that is, the general color matching and change are consistent with the actual ...
Added by phillips321 on Fri, 18 Feb 2022 04:45:43 +0200
pay? It's impossible! 20 lines of Python code to implement a permanent free PDF editing tool
Pdf (Portable Document Format), Chinese name "Portable Document Format", is a file format we often come into contact with. Documents, documents Many are in PDF format. With the advantage of stable format, it enables us to optimally maintain the original color and format in the process of printing, sharing and transmission.
PDF ...
Added by aniesh82 on Fri, 18 Feb 2022 04:26:34 +0200
Do you often forget Linux shell commands? I'm ready for you.
preface
What is a Linux Shell
Linux Shell is the interface program between users and Linux kernel, which provides users with an excuse to use the operating system. When a command is passed to the Linux kernel, it will respond.
Shell is a user program, or an environment provided for user and system interaction.
It is a language interpreter ...
Added by desithugg on Fri, 18 Feb 2022 04:26:21 +0200
Spring MVC Basics
springMVC ----HELLO word
1. Configure the development environment and import the spring MVC dependency
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>RELEASE</version>
</dependency>
< ...
Added by alexislalas on Fri, 18 Feb 2022 04:16:40 +0200
Explain const reference, constant pointer and pointer to constant in detail
Once the const object is created, its value cannot be changed, so the const variable must be initialized.As long as the value of const is not changed, const variable is the same as other variables
const object in multiple files:
By default, objects decorated with const are only valid in files. This means that allowing const variables with the ...
Added by Bourgeois on Fri, 18 Feb 2022 04:10:03 +0200