llinux epoll series 4 realizes non-blocking connect ion by using epoll_wait
Connect function is blocked, and can not set the timeout time of connect function, so once blocked for too long, affecting the user's experience, there is a need to set the timeout time of connection.
Realization: First, the connect function is turned into non-blocking, ...
Posted on Mon, 28 Jan 2019 00:54:14 -0500 by psyion
Copyright Statement: This article is the original article of the blogger. Please indicate the source for reprinting.
Excellent source code is the best learning resource for developers. Reading good source code is equivalent to having a conversation with Daniel.
OkHttp is a network request framework supporting HTTP a ...
Posted on Sat, 26 Jan 2019 22:39:14 -0500 by __greg
Environment introductionNode1 serves as the primary node of NTP, and all other nodes synchronize from node 1.Node IpNode1 192.168.20.101Node2 192.168.20.102
All nodes install ntp packages:
yum install ntp
Modify node1 master node/etc/ntp.conf to add the following:
restrict 192.168.20.0 mask 255.255.255.0 nomodify notrap
That is to say, ...
Posted on Sat, 26 Jan 2019 22:00:14 -0500 by g.grillo
There are many ways to store iOS. I don't want to explain them all. Now I just mention what I use.
Now there is a need to store some of the data locally and to be able to view the data without a network.
According to this requirement, it is necessary to make a data localization storage.
Then we can think of ...
Posted on Sat, 26 Jan 2019 16:18:14 -0500 by WebDesEyen
Introduction to SAMBA Service
Server Message Block Server Message Block, released by IBM, was originally the DOS Network File Sharing Protocol.
common internet file system, Microsoft Published Based on SMB
Andrew Tridgell, 1991, Connecting windows with UNIX
Functions of SAMBA:
Sharing Files and Printing t ...
Posted on Sat, 26 Jan 2019 03:48:14 -0500 by MHz
The last article described the basic use of Expandable ListView
Realization of complex cases under Case 2:
Implementation of Expandable ListView of SQLite and json Data Based on Network
Understand a few concepts first
Biz:(Business Logic Layer)
biz is the abb ...
Posted on Fri, 25 Jan 2019 20:33:14 -0500 by KingWylim
Use of CFNetwork Framework for iOS Development
In iOS application development, CFNetwork framework is not very commonly used. Compared with NSURLSession framework, it is a relatively low-level network framework. The following figure in the official document describes the position of CFNetwork in the whole network system:
Posted on Fri, 25 Jan 2019 17:36:14 -0500 by danlindley
Mission 24 October
10.6 Monitor io Performance
10.7 free command
10.8 ps command
10.9 View Network Status
Monitor io performance
Disk io status monitoring (in sysstat package)
[root@centos7 ~]# iostat
Linux 3.10.0-693.2.2.el7.x86_64 (centos7) ... _x86_64_ (2 CPU)
avg-cpu: %user %nice %system %iowait ...
Posted on Fri, 25 Jan 2019 14:39:14 -0500 by vineld
Searched on the Internet for a large number of integrated Golden Map solutions, and test codes, either bloggers copy code that has not been tested, or steps are discontinuous, or even package the solutions given by the official website are lack of relevant steps (official screenshots do not know how many years ago, have not been updated), const ...
Posted on Fri, 25 Jan 2019 11:51:13 -0500 by glory452
Develop a web application with Python language, and redis counts the number of visits. First install docker engine and compse, without python, redis, compose is responsible for.
Step 1: Create a directory
$ mkdir composetest
$ cd composetest
Create the following file in the directory named app.py:
Posted on Fri, 25 Jan 2019 06:09:14 -0500 by AMcHarg