自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(46)
  • 资源 (2)
  • 收藏
  • 关注

转载 ubuntu安装mysql教程【无标题】

ubuntu mysql

2023-02-19 14:11:47 124

原创 ubuntu中连接mssql数据库sqlserver

ubuntu中连接mssql数据库sqlserversudo apt-get install tdsodbcsudo apt-get install sqshsqsh -U 用户名 -P 密码 -S 服务器地址sqsh -U mes -P mes200519 -S 192.168.100.92等一会儿如果出现1> ,就说明连接成功了,可以试着输入如下语句:SELECT @@versiongo注意输入go后才执行语句select LotSN,Operation,RadarID,Resu

2021-05-07 19:09:35 732

原创 git

git 创建 2 远程空,本地git initgit remote add origin //10.8.8.8/konyun/git_testgit pull origin master:mastergit push origin mastergit add .git commit -m “init”git push origin mastergit tag v1.0.0git push --tags拉取工程git pullgit clone //10.8.8.8/konyun/gi

2021-05-07 19:08:55 135

原创 C++11 Event

```cpp#ifndef XEVENT_H#define XEVENT_H#include <mutex>#include <condition_variable>#include <chrono>class XEvent{ public: XEvent(); ~XEvent(); void wait(); bool wait(int iSec,int iMs); void notifyOne();.

2020-10-13 10:31:34 655

原创 ubuntu ROS 一键安装脚本

#!/bin/bashsudo sh -c ‘. /etc/lsb-release && echo “deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main” > /etc/apt/sources.list.d/ros-latest.list’sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365

2020-09-02 17:06:05 637

转载 C++ 多线程 安全创建单例模式

转载:https://www.cnblogs.com/xiaolincoding/p/11437231.html什么是线程安全?在拥有共享数据的多条线程并行执行的程序中,线程安全的代码会通过同步机制保证各个线程都可以正常且正确的执行,不会出现数据污染等意外情况。如何保证线程安全?给共享的资源加把锁,保证每个资源变量每时每刻至多被一个线程占用。让线程也拥有资源,不用去共享进程中的资源。如: 使用threadlocal可以为每个线程的维护一个私有的本地变量。什么是单例模式?单例模式指在整个系统生命

2020-08-26 18:48:11 266

转载 android 以太网和wifi共存 记号

https://blog.csdn.net/xzx208/article/details/78986637 做记号要解决这个问题,首先必须解决一个网络起来后另一个网络被踢掉的问题,在网络的核心类ConnectivityService.java找到了调用把nai.asyncChannel.disconnect()函数注释后, 另一个网络不会被踢掉两个网络可以共存,通过命令dumpsys connectivity,可以看到当前正在使用的网络通过命令 ip ru 查看当前的路由表,也可以通过ne

2020-08-03 20:30:38 897 1

转载 解决libresource_retriever.so:对‘curl_easy_init@CURL_OPENSSL_3’未定义的引用

问题描述:最近使用源码编译move it!包的时候遇上如下问题:/opt/ros/kinetic/lib/libresource_retriever.so:对‘curl_easy_init@CURL_OPENSSL_3’未定义的引用/opt/ros/kinetic/lib/libresource_retriever.so:对‘curl_easy_perform@CURL_OPENSSL_3’未定义的引用/opt/ros/kinetic/lib/libresource_retriever.so:对‘c

2020-07-30 14:27:11 638 1

原创 线程安全map

#include “controller.h”#include #include #include <condition_variable>#include “ctrlindex.h”template<class Key, class T>class ThreadSaftMap{private:std::map<Key, T> m_map;mutable std::mutex m_mutex;std::condition_variable m_con

2020-07-18 14:41:05 204

原创 ubuntu sh 自动输入密码

#!/bin/bashsudo -S nginx -s reload << EOF$1EOF

2020-07-07 10:00:22 881

原创 ubuntu Qt console 不能调试

1 sudo apt install xterm2 QtCreator菜单栏[Tools]->[Options…] system。在弹出的选项对话框里 terminal:/usr/bin/xterm -e

2020-07-06 14:39:46 390

原创 CSS menu

ul {list-style-type: none;margin: 0;padding: 0;overflow: hidden;background-color: #0000FF;//#DE7333;}li {float: left;}.liquit {float: right;}.liquit a{background-color: #C15500;display: block;color: white;text-align: center;padding: 14px

2020-06-15 14:16:52 373

原创 ubuntu qt mysql 源码编译

安装mysqlsudo apt-get install mysql-serversudo apt-get install mysql-clientsudo apt-get install libmysqlclient-devsudo apt-get install libmysqlcppconn-devsudo apt-get install qtbase5-private-devqmake “INCLUDEPATH+=/usr/include/mysql” “LIBS+=-L/usr/lib/

2020-06-08 10:23:12 304 1

原创 mysql left join 空值改默认值 coalesce

select A.*,coalesce(B.bEnable,0) as bEnable from data_dictionary A left join role_auth B on A.sCode=B.sAuthCode and B.sRoleCode=‘001’ where A.iType=1

2020-06-02 17:26:38 1899

原创 HTML排版

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> ...

2020-03-18 11:22:48 640

转载 windows下Qt 编译Mysql驱动,并使用

写这篇博客的原因很简单,百度一堆答案看的眼花缭乱,有用的没几个,也不想下次在安装QT数据库环境上浪费时间,也希望大家也不要在这里浪费时间。第一次Windows下安装Mysql实在是痛苦。注意:图省事的朋友可以直接在这里下载我编译好的驱动文件,能不能使用我就不清楚了:http://pan.baidu.com/s/1qYktUhA本来Qt5.6.0已经自带了Mysql的驱动。在此目录中C:\Q...

2020-03-08 11:33:27 367

转载 epoll 连接以后 recv始终返回0

起因服务器端写了一个简单的epoll监听,代码如下(代码是错的啊!)servfd = bind(0.0.0.0);listen(servfd);epollfd = create();fcntl(server_sockfd, F_SETFL, fcntl(server_sockfd, F_GETFL, 0)|O_NONBLOCK);struct epoll_event ev;ev.ev...

2020-03-02 16:37:26 1089

转载 Linux报Resource temporarily unavailable问题解决方案

当应用程序占满进程数后,则会报错如下Resource temporarily unavailable新用户的进程数限制一般都是在2048或者4096。解决方案 使用root用户登陆,进入到/etc/security/limits.d/: [root@centos ~]$ cd /etc/security/limits.d/ [root@centos limits.d]$...

2020-02-19 17:31:15 9882

转载 MySql C++调用库Connector/c++编译 和 接口封装【三】Connector/c++ 使用总结及封装

MySql C++调用库Connector/c++编译 和 接口封装【三】Connector/c++ 使用总结及封装工程需要加上各个路径:库使用需要几个文件:  1、include 文件夹 c/c++ /常规/附加包含目录   Connector/c++ 的安装版里面的Include 文件夹。或者把 /driver以及/driver/nativeapi 里面的头文件拷贝到一个文件夹里...

2020-02-17 10:03:33 778

转载 vc++加载透明png图片方法——GDI+和CImage两种

方法1:1.GDI+画透明图层(alpha)的png图片stdafx加入如下:#include <comdef.h>//初始化一下com口#include “GdiPlus.h”using namespace Gdiplus;#pragma comment(lib,“gdiplus.lib”)开始初始化:在app类的声明里(.h)加入:ULONG_PTR m_gdip...

2020-01-07 14:48:39 304

原创 dpkg: 处理软件包 (--configure)时出错:

#解决这个问题需要备份dpkg下的info,然后自己创建一个新的info,然后更新,再把新的info里的内容拷贝到旧的里面,旧的再改成info,删除自己添加的$ sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old$ sudo mkdir /var/lib/dpkg/info$ sudo apt-get update$ sudo apt-get...

2020-01-03 10:46:18 1370

原创 raspberryp4 ros kinetic install

https://blog.csdn.net/sinat_23857245/article/details/45225147# 编辑 `/etc/apt/sources.list` 文件,删除原文件所有内容,用以下内容取代:deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main non-free contribdeb-src ...

2020-01-02 17:04:21 730

原创 Raspberrypi SD卡扩容

步骤1: 重新启动你的电脑,不要启动X windows步骤2: $ sudo df -h你应该会看到/ 挂载于rootfs(已使用97%左右)。步骤3: $ sudo fdisk /dev/mmcblk0命令:按P(印刷)你应该会看到三个分区,现在把分区2的信息写下来(/dev/mmcblk0p2)。命令:按d(删除分区2)命令:按p(印刷)现在应该会看到2个分区命令:按n(加分...

2019-12-31 09:14:13 315

原创 ROS-kinetic 重装

下载ROS源码编译安装catkin_make -DCMAKE_INSTALL_PREFIX=/opt/ros/kinetic installdpkg如何删除/安装未完全安装的软件包?通常建议的修复方法是运行以下命令:sudo apt-get clean && sudo apt-get autoremovesudo apt-get -f installsudo dpkg ...

2019-11-20 15:08:47 555

原创 QT android platform SDK installed error

QT android platform SDK installed errorinstalling JDK 8 and changing

2019-11-19 07:49:00 1716

原创 raspberrypi 4b install ROS

参考:https://blog.csdn.net/sinat_23857245/article/details/45225147# 编辑 `/etc/apt/sources.list` 文件,删除原文件所有内容,用以下内容取代:deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free cont...

2019-11-18 11:24:16 435

转载 C++ map 映照容器

map映照容器的元素数据是一个键值和一个映照数据组成的,键值与映照数据之间具有一一映照的关系。map映照容器的数据结构是采用红黑树来实现的,插入键值的元素不允许重复,比较函数只对元素的键值进行比较,元素的各项数据可通过键值检索出来。使用map容器需要头文件包含语句“#include”, map文件也包含了对multimap多重映照容器的定义。1、map创建、元素插入和遍历访问创建map对象...

2019-10-29 13:56:33 93

转载 UDP多网卡广播问题解决方案

UDP多网卡广播问题解决方案Linuxclass UDPSender{public: UDPSender() { m_sock=-1; } ~UDPSender(){} bool SetRecvAddr(const char* addr,int port) { int sock=socket(AF_INET,S...

2019-10-16 17:11:16 796

原创 QT IED 开发 and protobuf 编译

QT5.10.0sudo apt-get install libgl1-mesa-devsudo apt-get install libffi-devsudo apt-get install autoconf automake libtool curl make g++ unzipprotobuf 3.6.1curl 7.53.0openssl 1.1.0gsudo apt inst...

2019-09-30 15:12:26 184

转载 Ubuntu实现树莓派交叉编译

Ubuntu实现树莓派交叉编译一、交叉编译 在一个平台上生成另一个平台上的可执行代码。为什么要大费周折的进行交叉编译呢?一句话:不得已而为之。有时是因为目的平台上不允许或不能够安装所需要的编译器,而又需要这个编译器的某些特征;有时是因为目的平台上的资源贫乏,无法运行所需要的编译器;有时又是因为目的平台还没有建立,连操作系统都没有,根本谈不上运行什么编译器。 要进行交叉编译,我们需要在主...

2019-09-02 10:29:08 429

原创 Ubuntu16.04 32位编译使用 libcurl 使用curl库出现了__curl_rule_01__ is negative问题

在编译arm64的curl库时出现了__curl_rule_01__ is negative问题,发现是#define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1,具体就是CurlchkszEQ(long, CURL_SIZEOF_LONG)计算出了问题。也就是对对CURL_SIZEOF_LONG的定义与系统得到long长度不一致。类型通过sizeof计算时...

2019-08-26 19:42:36 2305

转载 linux c++获取进程对应的cpu占用率和内存占用情况

linux c++获取进程对应的cpu占用率和内存占用情况转载来源:https://blog.csdn.net/thedarkfairytale/article/details/71079218#include <stdio.h> #include <unistd.h> #include <sys/time.h> #include ...

2019-08-06 18:52:42 780

原创 Ubuntu16.04  QT打包

Ubuntu16.04  QT打包1.获取 app动态库  使用脚本#!/bin/bashLibDir=$PWD"/lib"Target=$1lib_array=($(ldd $Target | grep -o “/." | grep -o "/./[1]*”))$(mkdir $LibDir)for Variable in libarray[@]docp&quot;{lib...

2019-07-18 10:42:10 792

原创 ubuntu16.04 install protobuf

sudo apt install autoconf安装时出现configure.ac:17: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. ...

2018-12-22 11:36:54 951 1

原创 QT 使用 libcurl

.pro文件 中unix|win32: LIBS += -lcurl -lssh2 -lssl -lcrypto

2018-12-14 15:57:01 1442 1

转载 Linux curl

如下为Linux下的操作一。下载需要用到的第三方库的源码,如libcurl ,并用tar命令解压http://curl.haxx.se/download.html二。创建一个文件用于保存库文件,如/curl_lib三。进入解压后的libcurl目录,执行 ./configure --prefix=/curl_lib --enable-static --enable-shared其中,/...

2018-12-14 14:34:38 114

转载 QT5.11 C++ 使用Protobuf

最近在弄一个游戏后台,服务之间使用protobuf进行通信,但模拟客户端使用json与网关通信,为了统一格式模拟客户端使用protobuf。当然C++使用Protobuf比较麻烦,需要自行编译源码然后加入到项目中。 第一步,从github下载最新protobuf源码进行编译,地址:https://github.com/google/protobuf 下载后 1. 进入文件夹 cd ...

2018-12-12 12:00:41 890

转载 ubuntu protobuf install

C++ Installation - UnixTo build protobuf from source, the following tools are needed:autoconfautomakelibtoolmakeg++unzipOn Ubuntu/Debian, you can install them with:$ sudo apt-get install aut...

2018-12-12 10:16:55 480

原创 QT

QTsudo apt install cmake g++sudo apt install libgl1-mesa-devsudo apt install valgrind

2018-12-11 11:52:17 113

转载 NINativeMethod 结构体的官方定义

1、JNINativeMethod 结构体的官方定义typedef struct { const char* name;const char* signature;void* fnPtr;} JNINativeMethod;第一个变量name是Java中函数的名字。第二个变量signature,用字符串是描述了Java中函数的参数和返回值第三个变量fnPtr是函数指针,指向native函...

2018-10-25 14:55:47 263

餐饮管理软件单机版

餐饮管理软件单机版,

2012-04-25

CC1101测试程序

CC1101测试程序,用于接触 TI CC1101芯片的初学者学习用途

2012-04-25

空空如也

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

TA关注的人

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