How do I step by step reduce the number of lock locks to the minimum in parallel programming to realize lockless programming
In parallel programming, we often encounter the problem of operating shared sets among multiple threads. In many cases, it is difficult for us to avoid this problem and achieve a lockless programming state. You also know that once the shared sets are locked, the concurrency and scalability will often have a great impact. This article will talk ...
Added by evilMind on Tue, 21 Apr 2020 12:57:58 +0300
[interesting case] Python command line implementation - check the national 7-day weather
Why climb the weather? 1. You can practice. 2. After using the itchat library to realize the function of automatic reply, integrate the function of weather check, and realize the function of wechat self-service weather check!
First of all, it's a similar pattern. Let's see if we can grab a general API directly on the official website (XHR). The ...
Added by expertis on Tue, 21 Apr 2020 10:55:26 +0300
Asymmetric encryption algorithm in PHP
PHP uses asymmetric encryption algorithm (RSA)
In the daily design and development, in order to ensure the security of data transmission and data storage, the clear data can be encrypted into complex ciphertext by specific algorithm. At present, the mainstream encryption methods can be roughly divided into one-way encryption and two-way encryp ...
Added by czukoman20 on Tue, 21 Apr 2020 06:17:09 +0300
Use fonts in Android O XML
Use fonts in Android O XML
2017/9/25 20:14:35
Android 8.0 introduced a new feature, fonts in XML, that allows you to use fonts as resources.This means that you no longer need to bundle fonts as assets.Fonts are compiled in R files and, as a resource, are automatically used on the system.You can then access these fonts using a new resour ...
Added by bios on Sun, 19 Apr 2020 19:35:47 +0300
Detailed explanation of php's high precision calculation
PHPer engaged in the financial industry has frequent capital calculation. If you don't pay attention to it, you may lose hundreds of thousands or even worse... Let's take an example:
javascript
Why is 0.1 + 0.2 not equal to 0.3? (correct result: 0.3000000000000004)
Why is 0.8 * 7 not equal to 5.6? (correct result: 5. ...
Added by tekkenlord on Thu, 16 Apr 2020 13:12:51 +0300
ASP.NET Core notes - options mode
Option interface
Differences between ioptionsnapshot and IOptionsMonitor
Post configuration of options
Validation of options
In ASP.NET Core note (3) - configuration, various configuration providers and configuration reading methods are introduced. However, in practice, it is not recommended to read applications directly from a heap of config ...
Added by wdsmith on Wed, 15 Apr 2020 17:10:35 +0300
[tiktok] catch the tiktok star by Python, which star is the most popular voice.
Recently, tiktok tiktok tiktok has seen all kinds of billboard data visualized video. As a technician, it is considered a very interesting way to present data. So searching the Internet for information, we found that there is a list of sound suitable for data visualization. Who is it?
objective
Tiktok pop star list
Data visualization shows ...
Added by examiz on Wed, 15 Apr 2020 10:59:07 +0300
C#.net Implementation of Zhongtong Express Single Query Express Bird API Interface
In the last article, we introduced a logistics service provider. We recommend you to use Express Bird Interface. It mainly describes how to register an account, get a key, and find a registered address. I'll send it:
http://kdniao.com/reg
Today we're going to talk about how to use the interface provided by courier birds for instant queries.
...
Added by forced4 on Wed, 15 Apr 2020 04:59:12 +0300
How to make enterprise search engine "elastic search" truly integrate java use?
How to use elastic search in combination with java? I don't need to talk much about it. Load it!!!
Integrating Spring Data ElasticSearch
1, How to view official documents
Official documents: https://www.elastic.co/cn/elastic-stack (follow the steps below to choose another version)
Skip 6.3.0 document directly: https://www.ela ...
Added by mohamdally on Tue, 14 Apr 2020 20:33:34 +0300
Using Kafka message queue in springboot project
1. Kafka message producer
1) Create the springboot Kafka producer demo project and import the jar package.
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
<version>2.4.5.RELEASE</version>
</dependency>
2) Add Kafka producer configuration it ...
Added by Patrick3002 on Tue, 14 Apr 2020 18:03:10 +0300