A Simple Understanding of Java Callback Method

What is a callback method? Personal understanding callback refers to the need for two-step operation in solving a problem. At this time, the first step can be seen as solving a problem. The second step is to improve or supplement the operation on the basis of the results of the first step. The second step here is generally the callback method. ...

Posted by Kifebear on Wed, 12 Jun 2019 19:55:36 +0200

Source code analysis of database middleware Sharding-JDBC: Syntax parsing of SQL parsing (1)

(iv) Focus on Wechat Public Number: [Taro Back-end Cabin] Welfare: RocketMQ/MyCAT/Sharing-JDBC All Source Analysis Articles List RocketMQ/MyCAT/Sharing-JDBC Chinese Annotation Source GitHub Address Every message you leave about the source code will be answered carefully. Even if you don't know how to read the source code, you can ask. New so ...

Posted by javauser on Tue, 11 Jun 2019 21:59:50 +0200

Filtration, validation, escape and password of PHP best practices

Filtration, validation and escape 1) Don't trust any data from data sources that are not directly controlled by you. Including but not limited to: $_GET $_POST $_REQUEST $_COOKIE $argv php://stdin php://input file_get_contents() Remote database Remote API Data from the client 2) Solution: filter input. To delete unsafe characters, data must b ...

Posted by werkkrew on Tue, 11 Jun 2019 21:58:17 +0200

06.19 Meaning and Installation of MySQL Database (Part I)

Chapter 1 Database Classification 1. Relational database There are many two-dimensional tables in the database, one table, two tables, three tables, one hundred tables and so on. There may be associations between multiple tables. 2. Non-relational databases Includes multiple database services (multi-instance) 3306/3307/3307. Each databas ...

Posted by lepad on Mon, 10 Jun 2019 03:41:52 +0200

Two methods of updating database scripts by python

In the two iterations of the latest project, the database needs to be updated according to the changes of business requirements, and two iterations are updated in different ways. The first is to use python's MySQLdb module to update with native sql statements 1 import MySQLdb 2 #host name 3 HOST = '127.0.0.1' 4 #User name 5 USER = ...

Posted by Qnuts on Mon, 10 Jun 2019 01:53:56 +0200

Database - multi-table query, Association query, database table design under different circumstances

Knowledge Points of this Blog 1. Three simple ways of association: left association, right association and inlining 2. Demonstrating multi-table queries and associated queries with examples 3.1-to-1 database table design, 1-to-multi database table design and multi-to-multi database table design Three ways of association: left association ...

Posted by rodin on Sun, 09 Jun 2019 22:47:59 +0200

Simple use of GreenDao 2

Advancement of Green Dao In the introduction to the use of greendao in the last article, we learned that using XXXDao can accomplish some basic operations of the database, such as adding, deleting, modifying and checking. Recall again the three core classes that are automatically generated: DaoMaster, DaoSession, XXXDao DaoMaster is calle ...

Posted by becoolufull on Sat, 08 Jun 2019 20:37:53 +0200

Initial experience of open source monitoring prometheus

Initial experience of open source monitoring prometheus 1. Introduction to Prometheus Official website: https://prometheus.io/ Prometheus Unofficial Manual in Chinese: https://github.com/1046102779/prometheus The main features of Prometheus are: Multidimensional Data Model Flexible Query Language Independent of distributed storage, a ...

Posted by grayson on Sat, 08 Jun 2019 01:14:44 +0200

Java Web-JDBC-2-Not just Connections

Words In Java Web-JDBC-1-not just the connection, we did the CURD operation, but we wrote it many times and thought about how to optimize it. Does that happen every time? This can only be regarded as an operator, an operator without thought. Today, optimize on the basis of last time. First look at the Java Web architecture: First, the fi ...

Posted by new2code on Fri, 07 Jun 2019 22:31:32 +0200

ASP.NET SQL Server Row-to-column, Unfixed Column, Dynamic Column Implementation

Preface How bad it would be to start working as a frog boiled in warm water. So we should keep a calm mind, think about what we should and shouldn't do, improve our abilities and add something to ourselves. Well, even if it's really cooked, it'll be delicious. Background of the problem This problem was encountered in the previous work and ...

Posted by Chizzad on Fri, 07 Jun 2019 21:37:52 +0200