Technology sharing | high availability solution of limitless storage for Mac and Prometheus

Author: Wang Jishun Baozun e-commerce DBA is mainly responsible for the design and development of database monitoring alarm and automation platform, and is good at database performance optimization and fault diagnosis. background As the number of servers in each environment of the company increases, there are multiple Prometheus clusters dep ...

Posted by tony-kidsdirect on Wed, 25 Dec 2019 00:57:56 -0800

iOS remote notification method trigger

iOS remote notification trigger I. system under iOS 10 It is a method. There is no way to distinguish the specific situation of receiving notification and clicking notification. You can use UIApplicationStateBackground to judge the situation of the front and back office // This method will be invoked even if the application was launched or res ...

Posted by jhuaraya on Sun, 08 Dec 2019 03:02:21 -0800

Basic use and source code analysis of PromiseKit

Promise is an application framework that deals with a series of asynchronous operations. It can ensure that a series of asynchronous operations can be executed in sequence. When an error occurs, it can be handled by catch ing the error. Promise framework is also a good interpretation of swift's face-to-face protocol programming and functional p ...

Posted by Hagbard on Thu, 14 Nov 2019 00:55:09 -0800

Thinking and feeling of the first reading of Kingfisher network image cache Library

The OC version of SDWebimage that I read before is mature due to the development trend of Swift. It's also time to practice (think of Andy Lau's practice), think, read and write while flying in the world. At first, I plan to read it from the beginning, but the Kingfisher version is limited to upgrading with the Swift version, so if you want to ...

Posted by gli on Tue, 05 Nov 2019 19:55:52 -0800

Try Flutter: write a boring App (with Flutter experience)

Today's X Github: https://github.com/shuiRong/T... (today's X) This is a boring App written by FlutterRecommend a different one every day: picture, poem, famous saying, music, music review, advanced mathematics, two kinds of color matching, chemical equation, Github Repo, Zhihu problem. (P.S. except that the picture is from Bing homepage, only ...

Posted by m00p4h on Mon, 04 Nov 2019 12:18:11 -0800

Tree -- implementation of attribute operation in general tree

1. The attribute operations in the tree are: 1, the number of nodes in the tree, the height in the tree, and the degree of the tree;        2. Number of nodes in the tree: 1, define function: count(node) 1. Count the number of nodes in the tree with node as the root node; 2, recursive implementation; 2. Function code implementation: ...

Posted by kriss37 on Mon, 04 Nov 2019 09:49:51 -0800

Linux MySQL-5.7.18 release installation guide

The installation process is basically the same as that of the source version. In addition to the compilation phase, this article only talks about the release version, that is, the version with bin file Benefit: each user can install their own MySQL Server Target host system: CentOS 6.8 User: saojie (without administrator rights) Directory: / ho ...

Posted by Shandrio on Mon, 04 Nov 2019 07:21:11 -0800

Swift elegant protocol extension (MD5 encryption as an example)

Swift elegant protocol extension Call form of imitating view.snp.xxx How to achieve The complete core code is as follows: Call form of imitating view.snp.xxx First look at the call effect: "123456". yy_Str.MD5ForLower32Bate() "123456".yy_Str.MD5ForLower32Bate() //Similar: view.snp.xxx ...

Posted by Shaped on Tue, 22 Oct 2019 14:09:25 -0700

Graceful implementation of REST API requests based on Moya, RxSwift and ObjectMapper

There are very powerful Retrofit requests in Android development, and it is very convenient to implement RESTful API network requests with RxJava. There are also very powerful network request libraries in iOS development Moya Moya is a lightweight Swift network layer based on Alamoire. Moya's scalability is very strong, and it can be easily com ...

Posted by kiwi_uk on Fri, 04 Oct 2019 16:22:46 -0700

A Preliminary Trial of RxSwift, RxBlocking and RxTest

RxJava has become one of the most important components of Android development. Recently, iOS applications have been developed using Swift. Consider using RxSwift in architecture design. Add dependency # Podfile use_frameworks! target 'YOUR_TARGET_NAME' do pod 'RxSwift', '~> 5' pod 'RxCocoa', '~> 5' pod 'RxBlocking', '~> 5' ...

Posted by nagasea on Wed, 02 Oct 2019 19:55:37 -0700