自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

独行者103的专栏

专注Android和安全

  • 博客(572)
  • 收藏
  • 关注

原创 Advanced Programming in UNIX Environment Episode 104

这里写代码片Binding an address to a UNIX domain socketUnique ConnectionsA server can arrange for unique UNIX domain connections to clients using the standard bind, listen, and accept functions. Clie...

2021-06-07 16:32:11 71

原创 Advanced Programming in UNIX Environment Episode 103

Advanced IPCUNIX Domain SocketsUNIX domain sockets are used to communicate with processes running on the same machine. Although Internet domain sockets can be used for this same purpose, UNIX do...

2021-06-07 16:31:56 60

原创 Ubuntu 20.10编译APUE第三版源码

第一个问题:/usr/bin/ld: /tmp/ccmTGRc3.o: in function `main':devrdev.c:(.text+0xc5): undefined reference to `minor'/usr/bin/ld: devrdev.c:(.text+0xdb): undefined reference to `major'/usr/bin/ld: devrdev.c:(.text+0x128): undefined reference to `minor'/usr/bi

2021-05-11 17:19:55 499

原创 Unix Network Programming Episode 34

Note the following differences among these six functions:1.The three functions in the top row specify each argument string as a separate argument to the exec function, with a null pointer terminatin...

2021-05-11 17:10:03 67

原创 Advanced Programming in UNIX Environment Episode 102

Initialize a socket endpoint for use by a server with address reuse

2021-05-11 17:09:42 59

原创 Advanced Programming in UNIX Environment Episode 101

Server providing system uptime over datagrams

2021-05-11 17:09:33 72

原创 Unix Network Programming Episode 33

fork’ and ‘exec’ FunctionsBefore describing how to write a concurrent server in the next section, we must describe the Unix fork function. This function (including the variants of it provided by som...

2021-04-02 11:26:29 68

原创 Advanced Programming in UNIX Environment Episode 100

Server program illustrating command writing directly to socket

2021-04-02 11:25:10 93

原创 Advanced Programming in UNIX Environment Episode 99

这里写代码片Client command to get uptime from server

2021-04-02 11:24:51 96

原创 Face++的Android配置混淆规则

-keep class com.megvii.facepp.api.bean.** { *; }

2021-04-02 11:24:24 151

原创 FreeBSD安装dashtodock

pkg install gnome-shell-extension-dashtodock但是如果你这样开开心心的启动Dash to Dock会提示:GLib.FileError: Failed to open file '/usr/local/share/gnome-shell/extensions/dash-to-dock at micxgx.gmail.com/schemas/gsche...

2021-03-02 11:29:09 122

原创 Unix Network Programming Episode 32

Manuals and books have historically said that the reason for queuing a fixed number of connections is to handle the case of the server process being busy between successive calls to accept. This impl...

2021-03-02 11:28:43 90

原创 Advanced Programming in UNIX Environment Episode 98

If getaddrinfo fails, we can’t use perror or strerror to generate an error message. Instead, we need to call gai_strerror to convert the error code returned into an error message.#include <netd...

2021-03-02 11:28:26 74

原创 Advanced Programming in UNIX Environment Episode 97

The BSD networking software included the inet_addr and inet_ntoa functions to convert between the binary address format and a string in dotted-decimal notation (a.b.c.d). These functions, however, wor...

2021-03-02 11:28:13 67

原创 Linux编译FFmpeg

https://www.cnblogs.com/freeweb/p/6897907.htmlYasm或者nasm可以通过sudo apt install yasm nasm来安装。

2021-02-02 13:43:58 107

原创 Unix Network Programming Episode 31

#include <sys/socket.h>#int listen (int sockfd, int backlog);This function is normally called after both the socket and bind functions and must be called before calling the accept function....

2021-02-02 13:43:20 146

原创 Advanced Programming in UNIX Environment Episode 96

Communication on a socket is bidirectional. We can disable I/O on a socket with the shutdown function.#include <sys/socket.h>int shutdown(int sockfd, int how);If how is SHUT_RD, then rea...

2021-02-02 13:42:51 112

原创 Advanced Programming in UNIX Environment Episode 95

Assuming we were to create our own lock that could be locked by one thread and unlocked by another, our lock structure might look likestruct slock { sem_t *semp; char name[_POSIX_NAME_MAX]...

2021-02-02 13:42:41 100

原创 Uniapp ColorUI进度条的文字居中

页面<view class="cu-progress round margin-top"> <view class="bg-red" :style="[{ width:loading?'61.8%':''}]"></view> <view class="text-center align-center progress-absolute">61.8</view></view>样式.text-ce

2021-01-02 11:10:37 1104

原创 高德地图开发总结

今天为止,为期两天的高德地图开发算是基本结束。由于这是一个综合了各类技术的功能点。在开发的时候学到了不少,于是决定写写这篇文档,总结同时也为以后开发留一份记录。首先是功能选取。开始后的时候是使用了猎鹰API,但后来和志哥讨论发现,这个API不符合场景,所以最后就当了解猎鹰API的使用方法。最终放弃了猎鹰API的接入。接下来,开始参考淘宝接入高德地图,在百度搜索后使用了AppBarLayout...

2021-01-02 11:10:13 903

原创 Unix Network Programming Episode 30

With TCP, calling bind lets us specify a port number, an IP address, both, or neither.Servers bind their well-known port when they start. If a TCP client or server does not do this, the kernel choo...

2021-01-02 11:09:28 132

原创 Advanced Programming in UNIX Environment Episode 94

Many implementations provide anonymous memory mapping, a facility similar to the /dev/zero feature. To use this facility, we specify the MAP_ANON flag to mmap and specify the file descriptor as −1. Th...

2021-01-02 11:08:12 116

原创 Advanced Programming in UNIX Environment Episode 93

The address in the calling process at which the segment is attached depends on the addr argument and whether the SHM_RND bit is specified in flag.If addr is 0, the segment is attached at the first ...

2021-01-02 11:07:55 125

原创 Mapnik、mod_tile和spatialite的安装及使用

Mapnik的安装sudo apt-get install autoconf apache2-dev libtool libxml2-dev libbz2-dev libgeos-dev libgeos++-dev libproj-dev gdal-bin libgdal-dev libmapnik-dev mapnik-utils python-mapnik安装mod_tilemod_t...

2020-12-01 14:23:02 462

原创 Unix Network Programming Episode 29

Finally, we note that the POSIX standard specifies that the first argument to socket be a PF_ value, and the AF_ value be used for a socket address structure. But, it then defines only one family valu...

2020-12-01 14:22:21 143

原创 Advanced Programming in UNIX Environment Episode 92

Shared Memory Shared memory allows two or more processes to share a given region of memory. This is the fastest form of IPC, because the data does not need to be copied between the client and the ser...

2020-12-01 14:21:58 131

原创 Advanced Programming in UNIX Environment Episode 91

A nonzero type is used to read the messages in an order other than first in, first out. For example, the type could be a priority value if the application assigns priorities to the messages. Another u...

2020-12-01 14:21:35 111

原创 Unix Network Programming Episode 28

‘socket’ FunctionTo perform network I/O, the first thing a process must do is call the socket function, specifying the type of communication protocol desired (TCP using IPv4, UDP using IPv6, Unix do...

2020-11-02 16:27:28 441

原创 一份工作入职两个月总结

在公司入职两个月以后,领导对我的开发提出了意见与建议,现在总结如下,这既是对个人以往开发的反思与分析,也是对以后开发的指导。做个简单记录。首先,我以前主要是在小公司和个人独自开发,并没有完全进入团队开发的经历。所以在新公司仍然按照了单打独斗的方式自己开发。但是,这不同,毕竟公司的项目也开发有一段时间,逐渐从小项目发展到一个团队的项目,测试的场景也十分复杂,所以需要团队通力合作。有的时候需求...

2020-11-02 16:27:15 667 1

原创 Advanced Programming in UNIX Environment Episode 90

Message QueuesA message queue is a linked list of messages stored within the kernel and identified by a message queue identifier. We’ll call the message queue just a queue and its identifier a queue...

2020-11-02 16:26:47 291

原创 Advanced Programming in UNIX Environment Episode 89

FIFOsFIFOs are sometimes called named pipes. Unnamed pipes can be used only between related processes when a common ancestor has created the pipe. With FIFOs, however, unrelated processes can exchan...

2020-11-02 16:26:34 250

原创 Python 3安装wxPython

今天搭建Python GIS平台。遇到要安装wxPython的问题。记录如下:错误一:checking for GTK+ - version &gt;= 3.0.0... no安装libgtk-3-devsudo apt-get install libgtk-3-dev错误二:configure: error: GStreamer not available安装libgstre...

2020-10-02 15:09:34 1685

原创 Unix Network Programming Episode 27

Better version of readline function

2020-10-02 15:07:51 442

原创 Advanced Programming in UNIX Environment Episode 88

#include "apue.h"int main(void){ int n,int1,int2; char line[MAXLINE]; while((n=read(STDIN_FILENO,line,MAXLINE))&gt;0) { line[n]=0; if(sscanf(line, "%d%d",&amp;int,&...

2020-10-02 15:05:13 365

原创 Advanced Programming in UNIX Environment Episode 87

POSIX.1 requires that popen close any streams that are still open in the child from previous calls to popen. To do this, we go through the childpid array in the child, closing any descriptors that are...

2020-10-02 15:01:58 302

原创 修复Android Studio 3.5 AIDL报错问题

去除AIDL的中文注释即可,可能需要等到谷歌发布更新才能进一步解决问题。

2020-09-01 11:20:15 466

原创 Unix Network Programming Episode 26

‘readn’, ‘writen’, and ‘readline’ Functions

2020-09-01 11:19:50 308

原创 Advanced Programming in UNIX Environment Episode 86

popen and pclose FunctionsSince a common operation is to create a pipe to another process to either read its output or send it input, the standard I/O library has historically provided the popen and...

2020-09-01 11:19:28 197

原创 Advanced Programming in UNIX Environment Episode 85

#include "apue.h"#include &lt;sys/wait.h&gt;#define DEF_PAGER "/bin/more"int main(int argc, char *argv[]){ int n; int fd[2]; pid_t pid; char *pager, *argv0; char line[MAXLINE...

2020-09-01 11:19:16 269

原创 Windows编译FFmpeg

我是使用MSVC来编译的FFmpeg。参考博文为:https://blog.csdn.net/danjuan123/article/details/65444054https://blog.csdn.net/longji/article/details/54891236如果你需要使用MSVC的link.exe,请将msys2中的/usr/bin/link.exe改成link.exe.bak...

2020-08-03 15:28:03 347

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除