Thoroughly understand OAuth 2

OAuth It’s an open network standard for authorization and is widely used worldwide. The current version is version 2.0. In this paper, OAuth 2.0 design ideas and operation process, do a concise and popular explanation, the main reference material for RFC 6749. I. application scenarios To understand the application of OAuth, let me give you a hypothetical example. There is a cloud printing website that can store users in Google photos and print them out. In order to use this service, users must read “cloud printing” to read photos stored on Google. The problem is that only ...

Rescal reading

We confirm our theoretical consideration of model collective learning by experimenting on new data sets and data sets commonly used in entity analysis. relational learning collective learning With the increasing relevance of relational data and network data in different fields such as social network modeling, semantic web, bioinformatics and artificial intelligence, the importance of relational learning is increasing. This paper concerns the application of tensors in relational learning. Tensors and their decomposition are widely used in psychology or chemometrics.And recently, it has been ap...

Necessary tools for data analysts

If anyone asks me, what is the necessary software skills as a data analyst? There are no more than three tools to answer from the frequency of usage and the scenario used.   1、Excel I believe everyone is familiar with Excel almost every day, although excel is dealing with a small amount of data, but we daily face the frequency of large data processing is not much, unless do some very targeted thematic analysis, so the level of an Excel data analyst, determine this oneHuman growth and efficiency   2、PPT Mainly used to display analytical thinking and analysis results.   3、SQL This i...

Oscillograph detection method based on CAN bus

stm32The can bus is on APB1, the main frequency of stm32f10x is 72Mhz, the peripheral clock of can is 36Mhz, the main frequency of stm32f2xx is 120Mhz, and the peripheral clock of can is 30Mhz. STM32 APB1Distinguish from APB2: APB2Responsible for AD, I/O, advanced TIM, serial port 1. APB1Responsible for DA, USB, SPI, I2C, CAN, serial port 2345, common TIM   canBus electrical characteristics   It’s not easy to do the data on the CAN bus from the car. So I first use the oscilloscope (the type of oscilloscope I use is TDS 220) to find the interface of the CAN bus on the car, and then me...

MySql Delete does not take index problem.

If the delete statement has a query, the wrong way to write will result in no indexing. Simple and crude way: remove two SQL, a query, a delete ======================= 【No index writing. DELETE FROM goods_item_combo_group_item_history WHERE group_id IN (SELECT id FROM goods_item_combo_group_history WHERE lease_code = 'schjyzzh' AND item_code = 'YL180606110506793' AND gmt_modified = '2018-06-07 23:18:51') 【Index writing DELETE goods_item_combo_group_item_history FROM goods_item_combo_group_item_history, goods_item_combo_group_history WHERE goods_item_...

MySQL SQL record

1.How to count the number of different values of the same column in the same query, so as to reduce the number of queries. For example, suppose you need to return the number of list menus at different levels through a query, you can query by the following statement: select SUM(IF(functionlevel=’0′,1,0)) as Level 1, SUM (IF (functionlevel=’1′, 1,0)) as second,SUM(IF(functionlevel=’2′,1,0)) as Level third, SUM (IF (functionlevel=’3′, 1,0)) as fourth, SUM (IF (functionlevel=’4′, 1,0)) as fifth., SUM(IF(functionlevel=’5′,1,0)...

Swift UITextfield add click method – simple implementation

1. Truly effective in any system. 1./// City choicePrivate lazy var cityTextfield:UITextField = {Let TF = UITextField ()Tf.deLegate = selfReturn TF} ()Two/ / / click the city@objc func clickCityTextfield () {Self.view.endEditing (true)View.showHud ()Self.requestForCity (ProtocolFollower: s)ELF)}3. extension JYShopAreaVc: UITextFieldDelegate{Func textFieldShouldBeginEditingTextField: UITextField) -> Bool {Self.clickCityTextfield ()Return false}} The following is the wrong way.1. No problem on iOS 11. It can be edited directly on iOS10 and iOS9. /// City choicePrivate lazy var cit...

Classification of design patterns

There are five kinds of creating patterns: factory method pattern, abstract factory pattern, singleton pattern, builder pattern and prototype pattern. There are seven structural modes: adapter mode, decorator mode, agent mode, appearance mode, bridge mode, combination mode and enjoyment mode. There are eleven behavioral patterns: policy pattern, template method pattern, observer pattern, iteration sub-pattern, responsibility chain pattern, command pattern, memo pattern, state pattern, visitor pattern, mediator pattern, interpreter pattern.