Learning MySQL again: binlog

The major version number of the test is 5.7, and the minor version is 5.7.24. binlog is not enabled by default Modify my.ini and add two new configurations: # Open bin log server-id=1 log-bin=mysql-bin Table and data tested: create table T(ID int primary key, c int); update T set c=c+1 where ID=2; Restart MySQL and find two more MySQL bin. ...

Added by satanclaus on Wed, 08 Jan 2020 16:22:22 +0200

C-encryption and decryption (DES\RSA) learning notes

This note is excerpted from: https://www.cnblogs.com/skylaugh/archive/2011/07/12/2103572.html Record the learning process for future reference. Data encryption technology is the most basic security technology in the network, mainly through the data encryption of the information transmitted in the network to ensure its security, which is an acti ...

Added by EverToDesign on Sat, 04 Jan 2020 20:28:24 +0200

MongoDB permission management II

The mongodb configuration file is as follows: [root@localhost ~]# cat /usr/local/mongodb/mongod.cnf bind_ip = 0.0.0.0 logpath=/data/mongodb/logs/mongodb.log logappend = true fork = true #auth = true port = 6068 dbpath=/data/mongodb/data pidfilepath=/data/mongodb/mongod.pid root super administrator privileges:Close mongod.cnf profile parameter ...

Added by Vizor on Fri, 03 Jan 2020 03:00:43 +0200

Hibernate environment configuration mapping database SQL server, Mysql database, test correct

Recently, I have to digest a little more knowledge. I write notes in my blog for easy viewing You can download the hibernate jar package you need on the official website Configuring Sqlserver database in Hibernate <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernat ...

Added by PHPMagician on Thu, 02 Jan 2020 01:53:46 +0200

Nine built-in objects and scopes of jsp

1. pageContext saves data in only one page <body> <% // Set the data key - > value of two page ranges pageContext.setAttribute("name","page Wang Er Xiao"); pageContext.setAttribute("age",12); %> <% // Value String name=(String)pageContext.getAttribute("name"); int age=(Integer)pageContext.getAttribute(" ...

Added by vexious on Thu, 02 Jan 2020 00:30:39 +0200

iOS QR code scanning Swift

Realize camera scanning QR code, photo album selects image recognition QR code   I. import framework import AVFoundation//QR code scanning import CoreImage//QR code recognition import AudioToolbox//system sound 2, Compliance with agreement AVCaptureMetadataOutputObjectsDelegate//Scan QR code CALayerDelegate// CALayer drawi ...

Added by vlcinsky on Sat, 28 Dec 2019 21:15:12 +0200

Simple implementation of login interception and unified exception handling (custom exception)

webmvc configuration class: @Configuration public class WebMvcConfig extends WebMvcConfigurationSupport{ @Override protected void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(new LoginInterceptor()) .addPathPatterns("/**") .excludePathPatterns("/user/login"); } } Note: registry. ...

Added by chadbobb on Tue, 24 Dec 2019 19:06:43 +0200

Spring Security SMS verification code login in Spring Boot

In the section of adding graphic verification code in Spring Security, we have implemented the account password login based on Spring Boot + Spring Security, and integrated the function of graphic verification code. At present, another very common way of website login is SMS authentication code login, but Spring Security only provides the login ...

Added by Thoughtless on Tue, 24 Dec 2019 06:00:15 +0200

Adding graphic verification code to Spring Security in Spring Boot

Adding the verification code can be roughly divided into three steps: generating the verification code picture according to the random number; displaying the verification code picture on the login page; adding the verification code verification in the authentication process. The authentication verification of Spring Security is completed by the ...

Added by Baumusu on Mon, 23 Dec 2019 11:54:25 +0200

Android silent installation implementation

There are many schemes for Android silent installation, such as using ProcessBuilder or Runtime.getRuntime().exec() to run the PM istall command, but this method needs su first, root permission, or reflection to get PackageManager.installPackage(), which is also cumbersome to use. At the same time, system permission needs to be ...

Added by Drebin on Mon, 16 Dec 2019 18:37:57 +0200