Interesting HTML5 Web Storage
HTML5 web storage, a better local storage than cookie s.
What is HTML5 Web Storage?
HTML5 enables users to store browsing data locally.
Earlier, cookie s were used for local storage. But Web storage needs to be more secure and fast. These data will not be saved on the server, but they are only used for users to request website data. It can also ...
Posted by FlyingIsFun1217 on Tue, 02 Jul 2019 21:08:56 +0200
Interesting HTML5 Web SQL database
The Web SQL database API is not part of the HTML5 specification, but it is an independent specification that introduces a set of APIs that operate client database using SQL.
Core approach
The following are the three core approaches defined in the specification:
openDatabase: This method creates a database object using an existing database or a ...
Posted by Kalland on Tue, 02 Jul 2019 20:41:27 +0200
optimize table to optimize mysql example
Raw data
Data volume
mysql> select count(*) as total from ad_visit_history;
+---------+
| total |
+---------+
| 1187096 | //There are more than 1.18 million pieces of data in total
+---------+
1 row in set (0.04 sec)
Table file size stored on hard disk
[root@BlackGhost test1]# ls |grep visit |xa ...
Posted by Niruth on Tue, 02 Jul 2019 18:19:44 +0200
Patterns of Object-Oriented PHP: Composition
Opening chapter
If you pay attention to the catalogue, you will know that composition is a new beginning.In the process of system code design, we organize code through inheritance, parent class and subclass, which correspond to the overall specification and specific requirements of the business. Therefore, we need to combine classes according t ...
Posted by ashell on Mon, 01 Jul 2019 21:55:27 +0200
[JDK] JDK Source Analysis-HashMap
Summary
HashMap is one of the most commonly used container classes in Java development and a frequent visitor to interviews.It's actually the preceding " Notes on Data Structure and Algorithms (2) The implementation of Hash List in JDK 1.8 uses the Chain List method to handle hash conflicts, and it is optimized to turn a chain list int ...
Posted by tambo on Mon, 01 Jul 2019 20:06:01 +0200
Package Management for Linux
The environment of this blog is arbitrary.
Subject Linux Package Management
A software management tool
1 Compile and Install 2 rpm Package Management 3yum Management
2. Software Running and Compiling
Binary interface for 1ABI applications
Binary interface for ABI:Applicati ...
Posted by dc519 on Mon, 01 Jul 2019 18:40:24 +0200
socket programming (online automatic Chat tool) --Python3
Catalog
@
1. The server supports only one client connection
Server-side program (server.py):
import socket
# Create a server-side socket object
server = socket.socket()
# Bind IP (ipocnfig command looks at IP address) and port (custom network port can be used without conflicting with an existing system port)
server.bin ...
Posted by leena on Sun, 30 Jun 2019 21:08:50 +0200
Java Date Processing Class
Date Processing Class
Date class
Current date and time java.util.Date
import java.util.Date;
public class TestDemo {
public static void main(String [] args) {
Date date = new Date();
System.out.println(date);
}
}
Operation results:
Sat Jun 29 21:56:04 CST 2019
The above results represent the current date and time, ...
Posted by ltoso on Sat, 29 Jun 2019 21:26:04 +0200
php-Personnel Rights Management (RBAC)
php-Personnel Rights Management (RBAC)
Permission management can think of VIP as a function of vip. Ordinary users and VIP users have different functions. Five tables are generally used: user table, role table, function table, and related tables: user and role table, role and function table.
The five tables I use are as follows:
...
Posted by immanuelx2 on Fri, 28 Jun 2019 18:46:38 +0200
PHP_Design Patterns
What is design pattern?
Typical solutions to classical scenarios that often occur in software development are called design patterns.
How to Learn Design Patterns
Typical scenarios - > Typical problems - > Typical solutions
polymorphic
Used to eliminate logical statements.
Polymorphism (ploymorphism) is a biological concept, referring to ...
Posted by sp@rky13 on Thu, 27 Jun 2019 23:03:00 +0200