23 Design Patterns (22) - Status Patterns
1. Overview
When there are multiple states for an object in the system, these states can be transformed, and the state mode can be used when the object behaves differently in different states.The state mode separates the state of an object from the object and encapsulates it into a special state cla ...
Posted by john_6767 on Mon, 09 Mar 2020 20:21:34 -0700
Detailed nginx data receiving process
In nginx Event Driven Process Details Based on epoll Model As we mentioned, epoll calls back the ngx_event_accept() method after triggering the accept event.This approach does two main things:
Get the client connection handle to which accept is going, and initialize a ngx_connection_t structure to characterize the connection;
Check that the ne ...
Posted by SeaJones on Mon, 09 Mar 2020 17:53:00 -0700
Comparison of DropDownList control and native dropdown in Asp
First of all, think about how to display the data in a List collection in the form of a drop-down box (select tag) without using the DropdownList control?
Use drop-down box (pure select) to display classification data
Steps:
Processing backend: ① Define a public userID variable in the back-end code to save the userID obtained in the url
public ...
Posted by justinh on Mon, 09 Mar 2020 04:07:40 -0700
About the development of python games
Word guessing game
Licensing game
Figure guessing game
Picture licensing game
Character mosaic
1, Word guessing game
Running screenshot:
Code and steps:
1. Import relevant modules in the word guessing game program.
import random
2. Create all word sequence tuples to be guessed WORDS.
words=("python","jumble","easy","difficult","answer","cont ...
Posted by flappy_warbucks on Mon, 09 Mar 2020 02:25:11 -0700
Android EventBus source code analysis
Preface
In the last article, I gave a brief account of the usage of EventBus, and then I went to study the source code of EventBus 3.0. I also referred to some big blogs on the Internet for further understanding. I wrote this article to give myself a good summary and review of EventBus. If there is an ...
Posted by carydean on Mon, 09 Mar 2020 01:59:50 -0700
Native JS Column-Prototype/Prototype Chain, Five Inheritance Modes
Native js Column - Prototype/Prototype Chain, Inheritance Mode
Catalog:
prototype
Prototype Chain
inherit
Prototype Chain Inheritance
Borrow Constructor
Share prototypes
Holy Grail Mode
ES6 class
prototype
What about prototypes? We can think of them as ancestors. For us humans, ...
Posted by speps on Sun, 08 Mar 2020 19:50:57 -0700
Using hibernate validator as a data validation component in Spring
In the process of web development, it is often necessary to verify the data sent by the client to prevent the data from being illegal.
Spring MVC supports data validation as JSR303 standard, which is verified by annotation @NotNull @Max and other annotations on bean properties. JSR303 provides many annotation excuses, and spring MVC uses hibern ...
Posted by Liquid Fire on Sat, 07 Mar 2020 23:50:51 -0800
[java framework] JPA -- Introduction to JPA
1. JPA understanding
JPA is the abbreviation of Java Persistence API. It is a Java EE 5.0 platform standard open source object relationship mapping (ORM) specification developed by Sun company on the basis of fully absorbing the existing ORM framework (Hibernate).
The relationship between Hibernate and JPA:
Hibernate is an open-source object re ...
Posted by pfoger on Sat, 07 Mar 2020 21:51:03 -0800
redis data type and its use
redis is the data structure of key value. Each data is a key value pair.
The key type is string and cannot be repeated. There are five types of value:
1. String
String type is the most basic data type in Redis, which is stored in binary form, so it can accept data of any format. The maximum length that ...
Posted by no3dfx on Sat, 07 Mar 2020 17:52:59 -0800
Getting started with Java - advanced tutorial - 01. Data structure
Original address: http://www.work100.net/training/java-data-structure.htmlMore tutorials: Beam cloud - free course
data structure
Serial number
Chapter in text
video
1
Summary
-
2
enumeration
-
3
vector
-
4
Stack
-
5
Dictionaries
-
6
Hashtable
-
7
attribute
-
Please refer to the navigation above for reading
1. overview
The ...
Posted by jerry_louise on Sat, 07 Mar 2020 16:13:28 -0800