API s commonly used in Redis - are you really familiar with Redis?

For a long time, Redis, as a Nosql database, has been widely used in a variety of projects due to its function of frying chickens and cows. I didn't think much of Redis before, but now I like it more and more. It is often used to store some common data, such as user id, session, user menu permission, me ...

Posted by Hotkey on Sat, 18 Jan 2020 11:34:07 +0100

Spring Boot integrates with Seata to solve distributed transaction problems

seata introduction Seata is Alibaba's open-source distributed transaction solution in 2019, which is committed to providing high-performance and easy-to-use distributed transaction services under the microservice architecture. Before the open source of Seata, the corresponding internal version of Seata played a role of distributed consistency M ...

Posted by levi_501_dehaan on Thu, 16 Jan 2020 06:42:38 +0100

Seta introduction to distributed transaction DEMO

>Simple Extensible Autonomous Transacation Architecture, seata is a simple, scalable and highly autonomous distributed architecture SEATA Server Configure >Because we use the official version 1.0.0-GA, most of the instructions found on the Internet are version 0.X, with many changes. For example, the script of db_store.sql is cancelled in ...

Posted by Begby on Wed, 15 Jan 2020 13:57:55 +0100

Swift TouchId fingerprint unlock, FaceId face unlock

Explain TouchId fingerprint recognition, FaceId face unlocking, collectively referred to as biometrics. Realization Introduce the Local Authentication Framework. If it's iOS 13, it's available by default. You don't need to re introduce it. import LocalAuthentication Check that biometrics are avail ...

Posted by tonbah on Mon, 13 Jan 2020 12:51:23 +0100

Consumption and simple optimization of the number of Oracle database connections

Observe the indicators and check the connection consumption --View session session: select * from v$session where username is not null select username,count(username) from v$session where username is not null group by username --View current connections select count(*) from v$process; --View maximu ...

Posted by Sulman on Mon, 13 Jan 2020 12:49:36 +0100

C × WPF chat interface (3 / 3)

WeChat public address: Dotnet9 Website: Dotnet9 , questions or suggestions: Please leave a message on the website, If it helps you: Welcome appreciation. C × WPF chat interface (3 / 3) Reading navigation Background of this article code implementation Reference in this article 1. Backgrou ...

Posted by dvdflashbacks on Sat, 11 Jan 2020 11:09:42 +0100

Implementation of MyBatis Association: One-to-One

There are two entities: user and membership card. A user can only process one membership card, that is, one-to-one.     user_tb: The primary key card_no of card_tb is introduced as the foreign key.     card_tb:         Mode 1: Use extension classes to implement one-to-one (1) Create a new User class under the pojo package: package com.chy.p ...

Posted by davestewart on Tue, 07 Jan 2020 18:25:11 +0100

Download and use of cifar dataset

git https://github.com/tensorflow/models Download the cifar10 file and put it in the project path Project structure   download from cifar10 import maybe_download_and_extract maybe_download_and_extract()   Default download path   Read display manually import numpy as np import pylab filename = '/tmp/cifar10_data/cifar-1 ...

Posted by Sonu Kapoor on Tue, 07 Jan 2020 02:13:21 +0100

Analyzing the internal mechanism of Window from the source code

1. Window adding process 1.1 start from the source To add a small floating window, you need to use addView of WindowManager, And we checked the official documents and found that WindowManager is an interface public interface WindowManager implements ViewManager Its real implementation is WindowManagerImpl, which h ...

Posted by LiamOReilly on Mon, 06 Jan 2020 23:26:20 +0100

AFNetworking source Reading Note 1

1. the project uses AFNetworking, which has been encapsulated as a tool class. The new version of 20180911 has been updated, and a preliminary study has been made on this 1.1 use case list: AFHTTPSessionManager *mgr = [AFHTTPSessionManager manager]; mgr.requestSerializer = [AFHTTPRequestSerializer serializer]; ...

Posted by tallberg on Wed, 01 Jan 2020 10:52:49 +0100