自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(142)
  • 资源 (2)
  • 问答 (1)
  • 收藏
  • 关注

原创 Qml virtualkeyboard basic example 改写

TextArea.qml/******************************************************************************** Copyright (C) 2018 The Qt Company Ltd.** Contact: https://www.qt.io/licensing/**** This file is part of the Qt Virtual Keyboard module of the Qt Toolkit.

2022-02-19 15:41:44 582

转载 Putty: Using pscp/plink for automated file transfer and command execution from a Windows host

The Putty suite contains several executables beyond the main application. It also has pscp.exe, a command line scp client, and plink.exe which is a command line ssh client.These clients can be used to run file transfers and commands against hosts in con.

2022-01-24 15:03:36 513

原创 openssl 使用

1. 首先需要使用 openssl 生成一个 2048 位的密钥 rsa.key 文件 (rsa.key 密钥文件中包含了私钥和公钥)# openssl genrsa -out rsa.key 20482. 然后从 rsa.key 密钥文件中提取出公钥 pub.key# openssl rsa -in rsa.key -pubout -out pub.key3. 使用 pub.key 公钥加密一个文件 (data.zip 为原始文件,back.zip 为加密之后的文件)# open

2022-01-21 14:15:20 7174 1

原创 指定网卡发送广播包

发送端:#include <sys/types.h>#include <sys/socket.h>#include <sys/ioctl.h>#include <netinet/in.h>#include <arpa/inet.h>#include <time.h>#include <string.h>#include <stdio.h>#include <unistd.h>#

2021-09-29 08:23:33 2861

转载 WiFi troubleshooting - Linux

Please follow these WiFi troubleshooting steps:Step 1: Check whether the kernel version customer uses supports this device:The reference table of Wireless adapters and corresponding kernel versions is available by the link:en:users:drivers:iwlwifi [Li.

2021-09-15 18:34:19 285

原创 Ubuntu 安装 dhcp-server

1.安装 sudo apt-get install isc-dhcp-server2.修改 sudo vim /etc/default/isc-dhcp-server NTERFACESv4="" 为指定网卡 注释掉“#”号:#DHCPDv4_CONF #DHCPDv4_PID 这是修改之后的: # Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server) # Path ...

2021-09-06 17:47:16 1295

原创 Enable coredump 调试程序

1. 打开内核 coredump 功能sudo systemctl stop apport.servicesudo systemctl disable apport.servicesudo echo 'kernel.core_pattern=/var/crash/%e.%t.%s' >> /etc/sysctl.conf # /etc/sysctl.conf 可能要改变权限才能读写sudo echo '* soft core unlimited' >> /etc/s

2021-09-04 11:24:30 239

原创 libuv 编译使用,打印调用堆栈

libuv 编译选项:CFLAGS='-g -O0 -funwind-tables' ./configure --disable-silent-rules --disable-udev --enable-debug-logmake -j8 V=1其中 -funwind-tables 可以打印详细调用堆栈。写程序使用:t1.cc#include <ux.h>#include <unistd.h>#include <signal.h>#inclu

2021-08-28 16:12:36 626

原创 Ubuntu 镜像

http://mirrors.aliyun.com/ubuntu-releases/

2020-10-14 11:42:20 465

转载 systemd.service

Index · Directives systemd 246Namesystemd.service — Service unit configurationSynopsisservice.serviceDescriptionA unit configuration file whose name ends in ".service" encodes information about a process controlled and supervised by systemd

2020-07-29 10:16:38 510

原创 AGX Xavier install pip3 and jtop

1. pip3 sudo apt-get install python3-pip2. jtop sudo -H pip3 install -U jetson-stats

2020-07-24 09:38:30 687

转载 How To Install XRDP on Ubuntu 18.04 LTS

How To Install XRDP on Ubuntu 18.04 LTSIn this tutorial we will show you how to install XRDP on Ubuntu 18.04 LTS. For those of you who didn’t know, XRDP is an Open Source Remote desktop Protocol server, which allows you to RDP to your Linux server. The p

2020-06-30 09:16:55 333

转载 双线性插值

下面是关于双线性插值的经典说明图例:首先,图中有5个像素点:Q_{00},Q_{01},Q_{10},Q_{11},P。其中四个红色点Q是原图的点,绿色点P就有意思了,理解了它的含义,对双线性插值原理就能有一个概念上的理解。这个点P,其实是目标图的像素点在原图上的投影!我们先跳出来想一下:双线性插值用来做什么?在CV领域,通常是用来改变原图的尺寸。那么目标图的每个像素点的像素值应该取多...

2020-03-25 10:55:24 154

原创 "Loading initial ramdisk" is slow at boot

I found out that the slow boot comes from a large initrd. I also found out that at that point the system is relying on a slow but reliable access method from the BIOS to load the kernel. That all make...

2020-03-18 10:39:16 1500 1

转载 configure 的依赖库搜索目录

转载:http://blog.sina.com.cn/s/blog_6e32babb0101l674.html如果有某个依赖库XXX的版本不合,往往需要自己安装一个新的版本, 这时候往往可以用./configure --with-XXX=/path1/path2/..这样的方式把新安装的库指定进去。但是有的时候,./configure --help 会发现,并没有对XXX...

2020-03-06 11:15:33 7071

原创 version Qt_5 not defined in file libQt5Core.so.5 with link time reference

在 .pro 文件中加入: CONFIG -= qt

2020-01-16 13:42:03 5046

转载 OpenCV下载

转载:https://blog.csdn.net/qq_15698613/article/details/98360384

2019-11-15 17:50:15 289

转载 交叉编译busybox

转载自:https://www.cnblogs.com/hnrainll/archive/2011/06/10/2077259.html交叉编译器: 3.3.2# wget -c http://www.busybox.net/downloads/busybox-1.7.0.tar.bz2# tar jxvf busybox-1.7.0.tar.bz2修改源码、配置、编译---------...

2019-10-23 11:52:37 446

转载 Qt css颜色对照表

转自:https://blog.csdn.net/zy_heu/article/details/78952173

2019-09-09 11:06:44 349

原创 Windows 10 系统 注册表读写

// 返回 ERROR_FILE_NOT_FOUND 表示没有,返回 ERROR_SUCCESS 表示成功static LONG OpenKey(HKEY hRootKey, wchar_t* strKey, HKEY &hKey){ LONG nError = RegOpenKeyEx(hRootKey, strKey, NULL, KEY_ALL_ACCESS, &hK...

2019-08-21 15:38:16 639

原创 Qt 中文乱码

在需要使用中文的头文件前添加一句:#pragma execution_character_set("utf-8")

2019-08-14 15:33:58 113

原创 qrc:/main.qml: Dialog is an abstract base class

import QtQuick 2.9import QtQuick.Window 2.2import QtQuick.Controls 2.1import Qt.labs.platform 1.0 // 因为这一句导致错误Window { visible: true width: 640 height: 480 title: qsTr("Hello Wor...

2019-07-30 17:40:12 1003 1

转载 Ubuntu安装NVIDA显卡驱动

转载自:https://www.cnblogs.com/luofeel/p/8654964.html0. 综述电脑型号:R720Ubuntu版本:16显卡型号:1050ti目前,知道3种安装N卡驱动的方法:1. PPA源:最简便,但未必有最新驱动(亲测),或可能遇到问题(风闻)。sudo add-apt-repository ppa:xorg-edgers/ppa...

2019-07-18 11:55:29 702

原创 Windows 10 系统 NVIDIA 显卡驱动装不上

大多数情况下是系统版本太低,升级一下系统版本。设置---->更新和安全---->检查更新

2019-07-15 16:52:19 4168

翻译 在Windows 10中使用统一写过滤器(UWF)

原文:http://woshub.com/using-unified-write-filter-uwf-windows-10/Windows 10(和Windows 8)的一个有用功能是特殊的文件系统写过滤器--UWF(统一写过滤器)。如果启用并配置了过滤器,则磁盘上的文件和目录的所有更改都将在RAM中进行,并在重新引导后重置。UWF如何运作?它通过透明地将文件系统中的所有写入操作重定向到...

2019-07-15 16:41:46 26097 1

翻译 Windows 10 系统服务的 “自动(延迟启动)” 时间

简而言之,设置为Automatic的服务将在引导过程中启动,而设置为Delayed的服务将在引导后立即启动。启动服务延迟可以提高服务器的启动性能,并且具有安全性优势,这些优势在Adriano的文章中列出。默认情况下,“自动(延迟启动)” 实际上是在最后一次“自动”服务启动后2分钟后才启动。修改注册表可以修改这个启动时间: 如果被设置为“自动(延迟启动)”启动,则在注册表中:...

2019-07-09 11:03:30 32166 3

转载 Windows 10 系统关机不断重启

依次进入“控制面板”-“电源选项”界面,点击左侧的“选择电源按钮的功能”按钮。并从打开的新界面中,点击“更改当前不可用的设置”项。如图所示:最后在“系统设置”界面中,从“关机设置”栏目中清除勾选“启用快速启动”项,点击“保存修改”按钮。至此有关电脑自动重启的问题就得到解决啦。另外,在 BIOS 中修改 power -> After power loss -> p...

2019-07-06 14:35:53 528

转载 qt5中遇到fatal error C1083: 无法打开包括文件: “opencv2/opencv.hpp”

转自:https://blog.csdn.net/qq_37431083/article/details/89477550首先在opencv配置正确的情况下,出现此情况主要是因为在引入opencv时可能没有重新构建。首先可以尝试点击 构建项目, 然后运行,如果不行。我们重新执行一下qmake,然后运行,就能成功了。提醒一下,这只是一部分这种类型的错误解决方法,如果是开始时配置路...

2019-07-04 14:25:57 4118 1

原创 C 语言条件运算符

a ? b : c如果条件 a 成立 取b,不成立 取c。注意:如果 a 是小于 0 的,取b。如: int d = -1 ? 2 : 3; // d=2

2019-06-10 09:10:27 185

原创 windows 获得IP地址

#include <winsock2.h>#include <iphlpapi.h>#include <stdio.h>#include <stdlib.h>#include <iostream>#include <vector>#include <WS2tcpip.h>using namespa...

2019-06-08 16:21:11 291

原创 windows 多媒体定时器

参考:https://docs.microsoft.com/zh-cn/windows/desktop/ProcThread/multimedia-class-scheduler-servicetimeBeginPeriod和timeEndPeriod使时间更精确。减轻windows系统的其他进程对设置进程的实时性的影响。...

2019-06-03 17:43:25 342

转载 运行shell脚本时报错"[[ : not found"解决方法

转载自:https://www.cnblogs.com/han-1034683568/p/7211392.htmlsh命令无法识别"[[]]"表达式。解决办法:bash与sh是有区别的,两者是不同的命令,且bash是sh的增强版,而"[[]]"是bash脚本中的命令,因此在执行时,使用sh命令会报错,将sh替换为bash命令即可。...

2019-06-03 10:15:02 30792 1

转载 查看 Linux 下显卡驱动信息

转自 :https://www.maketecheasier.com/graphics-card-information-linux/A graphics processing unit (GPU), also known as visual processing unit (VPU), is a specialized electronic circuit designed to rapid...

2019-04-09 16:17:28 19553

转载 函数实现不放在头文件的原因,及何时可以放头文件的情况

转载自:https://www.2cto.com/kf/201210/161235.html1 、引子 在平常的 C/C++ 开发中,几乎所有的人都已经习惯了把类和函数分离放置,一个 .h 的头文件里放声明,对应的 .c 或者 .cpp 中放实现。从开始接触,到熟练使用,几乎已经形成了下意识的流程。尽管这样的做法无可厚非,而且在不少情况下是相对合理甚至必须的,但我还是要给大家介绍...

2019-03-30 09:09:53 930 1

原创 C++11 实现的 threadpool

代码#ifndef THREAD_POOL_H#define THREAD_POOL_H#include &lt;vector&gt;#include &lt;queue&gt;#include &lt;memory&gt;#include &lt;thread&gt;#include &lt;mutex&gt;#include &lt;condition_variable&...

2019-03-13 08:31:50 890

原创 【数据结构与算法】第8章 不相交集类

WTF 不知所云

2019-02-26 19:24:24 162

原创 【Python】Ubuntu 和 Python3

1. 安装 pip3 来作为 python3 的包管理工具apt install python3-pip2. 升级 pip3安装完 pip3 后最好升级一下:pip3 install --upgrade pip3. 升级完 pip3 之后使用 pip3 -V 查看版本出现如下错误:root@:~# pip3 -VTraceback (most recent call las...

2019-02-25 14:29:56 247

原创 第13章 守护进程和inetd超级服务器

概述守护进程是在后台运行且不与任何控制终端关联的进程。守护进程有多种启动方法:(1)在系统启动阶段,许多守护进程由系统初始化脚本启动。这些脚本通常位于 /etc 目录或以 /etc/rc 开头的某个目录中,这些脚本启动的守护进程一开始时拥有超级用户特权。如 inetd 超级服务器,web 服务器、邮件服务器。(2)许多网络服务器由 inetd 超级服务器启动。(3)cron 守...

2019-02-15 09:41:44 146

原创 第12章 IPv4与IPv6的互操作性

概述

2019-02-15 09:40:32 135

原创 【Git】基本概念

Git 版本库只是一个简单的数据库。Git 主要维护两个数据结构:对象(object store)和索引(index)。

2019-01-29 14:59:01 91

Mali_OpenGL_ES_SDK_Linux_x64.tar.gz

Mali_OpenGL_ES_SDK_Linux_x64: Mali是一款高端GPU,该文件是基于该GPU的OpenGl ES 的Linux x64实现

2019-10-14

gcc-6.5.0 编译器

这个版本是一个bug修复版本,包含GCC 6.4中相对于GCC以前版本的回归修复。对arm64的支持优化,添加许多特定于AArch64的选项。

2018-11-27

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

TA关注的人

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