Thread synchronization lock
1. OSSpinLock High-level lock
OSSpinLock is called a spinlock, and threads waiting for locks are busy-wait, occupying CPU resources all the time.
At present, it is no longer safe, and there may be priority inversion problem.
If the thread wait ...
Posted by one on Wed, 21 Aug 2019 06:47:47 -0700
Attempt Link to Implement React Native Application on iOS and Android
Original: https://pantao.parcmg.com/press/react-native-deep-linking-for-ios-android.htmlCode: https://github.com/pantao/react-native-deep-linking-example
We live in an age of all things being shared, and the process of sharing will almost eventually share a link. So, as a developer, the most common problem should include how to quickly open App ...
Posted by warik on Sun, 18 Aug 2019 06:10:02 -0700
2009 Multi-University Training Contest Part 7 Supplementary Questions
2009 Multi-University Training Contest Part 7 Supplementary Questions
The game was organized by three people. During the game, I felt I didn't give much, so I added a question. And I always feel tired in the end of the game, hoping to change.
- Sp ...
Posted by arjan.top on Thu, 15 Aug 2019 22:17:53 -0700
[Objective-C] Exploring the Essence of Category's Bottom Layer
No matter how perfect a class design is, there may be some unpredictable situations in the future demand evolution. So how do you extend existing classes? Generally speaking, inheritance and combination are good choices. However, in Objective-C 2.0, category is also provided, which can dynamically add new behaviors to existing classes. Category ...
Posted by jarcoal on Fri, 09 Aug 2019 04:36:35 -0700
Swift's Practical Combat Skills
Swift's Practical Combat Skills
From OC to Swift, the difference is quite big. This article records that I went from OC to Swift. OC Turn to some of the problems I encountered in Swift development process, and then write down the problems I encountered. In general, some of the techniques under Swift language are helpful to those in need.
Pro ...
Posted by Jezza22 on Fri, 09 Aug 2019 04:06:38 -0700
django custom filters and labels
Custom filters and labels are written in the python file (.py), so first create a new folder name, and then create a new folder under this folder, the name is generally written template tags, write this name, in order to facilitate the connection with the system, and finally create a new Python file u ...
Posted by Moon-Man.net on Fri, 09 Aug 2019 01:30:57 -0700
IOS code obfuscation, waistcoat obfuscation on the shelf (Python script obfuscation iOS project)
Preface
I've been looking at Python lately, and I also like the flexibility of Python. Today I want to talk about code obfuscation in iOS. Why do I want to do code obfuscation? For the sake of the security of APP, in order to prevent others from cracking our code easily; and to make vest bags, we know that the market demand for vest bags is ver ...
Posted by skorp on Fri, 09 Aug 2019 01:02:57 -0700
Explanation of Google Protocol Buffer (protobuf)
Code Walkthrough: Detailed Use of protobuf in caffe
[1] Proto file, take BlobShape in caffe.proto as an example
syntax = "proto2"; //Specify the protobuf version, default is v2, other versions: "proto3"
package caffe; // Finally generate c + + code: namespace caffe
message BlobShape { // ...
Posted by Ekate on Fri, 09 Aug 2019 00:47:41 -0700
Network Flow Algorithms//Maximum Flow//EK Algorithms//dinic Algorithms//Minimum (Large) Cost Maximum Flow (to be continued)
Catalog
Maximum flow algorithm
(EK algorithm)
Time complexity O(V*(E^2))
Dinic algorithm
Time complexity O((V ^ 2)* E)
In the solution of Luogu problem, we can see a very enlightening remark: network flow is good at solving all kinds of required matching.
Considering that the topic is matc ...
Posted by persia on Thu, 08 Aug 2019 06:25:50 -0700
Record a sentry upgrade history
Start at: My blog
cause
IOS colleagues said he found a bug in sentry. It was said that the debug file prompt was uploaded successfully because of the bug of 9.0.0, but the website found that there was no upload at all. So I started my upgrade.
Investigation and research
Because my Sentry is not only used on the server side, but also on the cli ...
Posted by ajfton on Wed, 07 Aug 2019 08:06:11 -0700