摘要:
react-native工程打包成apk 1. 生成签名密钥 使用jdk自带的keytool生成密钥 以管理员身份运行如下命令 keytool -genkey -v -keystore my-test3-key.keystore -alias my-key-test3 -keyalg RSA -ke 阅读全文
摘要:
Unix进程环境 一 . C程序启动过程 内核调用->启动例程(从内核获取命令行参数和环境变量值,启动例程为C程序的起始地址) 从C程序main返回时,启动例程调用exit(main(argc, argv)) ps: main函数没有声明为返回类型的整形函数,则该进程的终止状态是未定义的(可执行 e 阅读全文
摘要:
参考 版本情况 docker 20.10.7, mysql 5.6, tarscloud/tars:dev 安装步骤 创建一个名为tars的桥接(bridge)虚拟网络,网关172.25.0.1,网段为172.25.0.0 docker network create -d bridge --subn 阅读全文
摘要:
异常安全的赋值运算符函数 参考《剑指offer》 异常安全的赋值运算符函数,可以避免由于内存空间不足,导致new或malloc给m_pData分配内存时分配失败的情况。方法是:创建一个临时实例,再交换临时实例的数据与原来的实例。 #include<cstring> #include<cstdio> 阅读全文
摘要:
linux setitimer的使用 reference:Linux manual page [linux manual page--setitimer]https://man7.org/linux/man-pages/man2/setitimer.2.html 语法 int setitimer(i 阅读全文
摘要:
title: libevent学习-reactor设计模式及代码示例 date: 2021-01-22 11:39:35 tags: libevent categories: libevent学习 Reactor Design Pattern Reactor设计模式包含句柄(Handle)、Reac 阅读全文
摘要:
以下按照程序寻找动态库的优先级说明: 1.查看可执行文件中的.dynamic 段是否包含了一个叫DT_RPATH的项(它是一个以冒号分隔的库文件搜索目录列表) 怎么设置这个选项? 需要在编译连接程序的时候使用-Wl,-rpath选项,假设一个程序test需要使用liblib.so库,如下所示进行编译 阅读全文
摘要:
pthread_join(pthread_t thread, void **retval) The pthread_join() function waits for the thread specified by thread to terminate. If that thread has al 阅读全文
摘要:
来源:知乎 作者:Kimtto链接:https://www.zhihu.com/question/26689845/answer/125553343 1. In computing and telecommunications, the payload is the part of transmit 阅读全文
摘要:
1.问题现象 运行可执行方式比如 ./setup 有如下报错: This application failed to start because it could not find or load the Qt platform "xcb" in "". Available platform plu 阅读全文