Restore MySQL data to data before the table was deleted by mistake

1. Demonstration environment description: System CentOS Linux release 7.2.1511 (Core) X_86 64-bit minimal installationThe mysql version is the official binary version 5.7.22-22. mysql is a binary installation. Open two mysql instances on a single machine, open the timer event_scheduler=ON for the mysql instances, and open Gtid for both mysql i ...

Posted by sgs on Sat, 17 Aug 2019 06:14:56 +0200

RBAC permission framework_MVC permission framework

RBAC Role-Based Access Control (RBAC) is a role-based access control framework. It is very convenient to manage privileges through user-role-privilege association. What is it? RBAC Please do it yourself. Baidu. Thank you for your support. If there are any mistakes in the article, please contact me or email me linjie.rd@gmail.com. A small gift ...

Posted by nilesh on Tue, 13 Aug 2019 13:48:42 +0200

Mybatis additions, deletions, modifications, dynamic SQL statements, multi-table operations (easy to understand, graphics and text teaching, a whole set of actual combat)

1. Optimizing code Let's start with a little optimization of yesterday's code. Test methods written in test classes. If we write one test method at a time, we need to build factories or something, and there will be a lot of repetitive code.Modify the test method Mybatis Test public class MybatisTest { ...

Posted by Jon12345 on Tue, 13 Aug 2019 11:40:37 +0200

Android Real-time Filter Demo (GPUImage + Camera2 implementation)

I. Application screenshots Preface GPUImage is an open source image rendering library, which can easily achieve many filter effects, and also can easily define and implement its own unique filter effects. Address: https://github.com/cats-oss/android-gpuimage III. Dependent Engineering To use GPUI ...

Posted by colforbin05 on Mon, 12 Aug 2019 12:56:32 +0200

springboot project front-end and back-end separately use shiro to solve different sessionid problems

Problems encountered When developing app s or projects with separate front and back ends, sessions are different each time when using ajax and other ways to access the background, so using Shiro verification is totally impossible to pass. Originally, we used the way of token, which can realize the pro ...

Posted by showman on Mon, 12 Aug 2019 07:43:04 +0200

An Overview of zookeeper

In the past, because of the business needs of the company, some knowledge points of zookeeper were sorted out and shared. For some small partners who have just come into contact with zookeeper, maybe we can learn something from it. Introduction to zookeeper brief introduction Zookeeper is committed to providing a distributed coordination servic ...

Posted by neylitalo on Sun, 11 Aug 2019 17:12:54 +0200

Hibernate Level 2 Cache

Why do you need caching Stretch program performance Relational databases: databases with relationships between data and data mysql/Oracle, sqlserver Non-relational databases: There is no relationship between data and data, key-value 1. File-based database: ehcache 2. Memory-based databas ...

Posted by Duke555 on Fri, 09 Aug 2019 11:18:43 +0200

django logon authentication for 8 users from scratch to be tested

Look at the document djang with a user login verification method, but some look at the foolish, go to the Internet to find a circle, found that many are copying the document description, hardly say what the principle is.   In particular, from django.contrib.auth import authenticate It's said that this is the way, but it seems that the d ...

Posted by vwinstead on Wed, 07 Aug 2019 11:06:26 +0200

Why is Redis so fast?

1. Introduction to Redis Redis is an open source, Key-Value database written in ANSI C, complied with BSD protocol, supported network, memory-based and persistent 2. Data structure of Redis string set mykey somevalue get mykey set mykey somevalue nx set mykey somevalue xx set mykey hello ex 10 ...

Posted by cmattoon on Tue, 06 Aug 2019 13:03:17 +0200

Actual nanoHTTPD embedded android app

Let's solve the problem of image display. 6. Supporting image Look at 2000 Netease, how simple (chou) element (lou). Image.png So it's also necessary to support mainstream image ry! With the above foundation, in fact, adding a picture is also a small case, that is, two points: The type of image. From the table above, we can see these ...

Posted by riespies on Tue, 06 Aug 2019 05:54:25 +0200