
开发
huangjiazhi_
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
基于Ubuntu16.04的docker准备ZMQ的C++开发环境
基于Ubuntu16.04的docker准备ZMQ的C++开发环境原创 2022-08-03 13:38:10 · 479 阅读 · 0 评论 -
tornado、flask、c++zmq-req-rep记录
日常记录原创 2022-08-01 19:48:24 · 14703 阅读 · 0 评论 -
ubuntu16.04 /etc/security/limits.conf 文件说明
limits.conf 作用文件限制着用户可以使用的最大文件数,最大线程,最大内存等资源使用量。* soft nofile 655350 #任何用户可以打开的最大的文件描述符数量,默认1024,这里的数值会限制tcp连接* hard nofile 655350* soft nproc 655350 #任何用户可以打开的最大进程数* hard nproc 650000@student hard nofile 65535@student soft nofile 4096@stude原创 2020-10-10 11:27:04 · 1122 阅读 · 0 评论 -
C++11获取时间
C++11获取时间const std::string GetCurrentSystemTime(){ auto t = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); struct tm* ptm = localtime(&t); char date[60] = { 0 }; sprintf(date, "%d-%02d-%02d %02d:%02d:%02d", (int)ptm->原创 2020-10-06 21:55:57 · 1625 阅读 · 0 评论 -
nrm搭建使用
下载从这里选择要安装的版本https://nodejs.org/zh-cn/download/releases/安装本次以node-v8.16.0-linux-x64.tar.gz版本为例wget https://nodejs.org/download/release/v8.16.0/node-v8.16.0-linux-x64.tar.gz解压到 /opt/目录tar zxvf node-v8.16.0-linux-x64.tar.gz -C /opt/建立nodejs的原创 2020-09-16 15:05:36 · 140 阅读 · 0 评论 -
ubuntu16.04.7记录安装OpenCV
apt-get 方式安装安装命令sudo apt-get install libopencv-dev python-opencv查看版本pkg-config opencv --modversion源码安装下载地址https://jaist.dl.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.9/opencv-2.4.9.zip安装unzip opencv-2.4.9.zipcd opencv-2.4.9 mkd原创 2020-09-16 13:37:52 · 202 阅读 · 0 评论 -
maven 配置多个仓库
方法一Maven 的 settings.xml 内的 mirror 节点:<mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <原创 2020-09-02 13:48:23 · 985 阅读 · 0 评论 -
shell 递归遍历目录下的所有文件并删除5分钟前的文件
代码#!/bin/bashjd_tim() { filename=$1 timestamp=$(date +%s) filetimestamp=$(stat -c %Y $filename) if [ $[$timestamp - $filetimestamp] -lt 300 ]; then echo "less than five min ========== " $1 else echo timestamp $tim原创 2020-07-02 14:46:11 · 1459 阅读 · 0 评论 -
解决Cannot delete or update a parent row: a foreign key constraint fails的mysql报错
SET foreign_key_checks = 0; // 先设置外键约束检查关闭DROP TABLE IF EXISTS `person`; // 删除数据,表或者视图SET foreign_key_checks = 1; // 开启外键约束检查,以保持表结构完整性原创 2020-05-27 18:14:15 · 416 阅读 · 0 评论 -
c/c++ 实现kafka生产者发送的逻辑
#ifndef __KAFKA_H__#define __KAFKA_H__#include <ctype.h>#include <signal.h>#include <string.h>#include <unistd.h>#include <stdlib.h>#include <syslog.h>#inc...原创 2020-04-09 20:30:57 · 1585 阅读 · 0 评论 -
windows/linux 编译 flatbuffers
1、windows 编译1、下载windows版本的CMakeCMake官网地址: https://cmake.org/download/ (本人下载是的cmake-3.16.0-rc4-win64-x64.zip)2、下载FlatBuffershttps://github.com/google/flatbuffers (本人选择的是 flatbuffers-1.11.0...原创 2019-11-26 18:40:36 · 1767 阅读 · 0 评论 -
Windows C++ 广播demo
广播端:// broadcast.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "stdafx.h" #include <iostream> #include <stdio.h> #include <WinSock2.h> #pragma comment(lib, "ws...原创 2019-11-26 17:26:15 · 684 阅读 · 0 评论 -
Linux C++ 广播demo
广播端:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <arpa/inet.h>#include <sys/socket.h>#define TTL 64 //数据包生存时间,即最...原创 2019-11-26 15:46:30 · 508 阅读 · 1 评论