- 博客(137)
- 资源 (1)
- 收藏
- 关注
原创 终极解决方案:使用teamviewer和todesk时Visual Studio等软件显示全白或者全黑的解决办法!
内网穿透工具,可以用cpolar,只需要在被控端电脑上安装,然后启动远程桌面隧道,就可以获取到公网地址,不需要公网IP,也不需要进入到路由器配置,不限制流量,还支持永久免费使用。调查后得知原因是Visual Studio等默认使用GPU加速,然而笔记本电脑合起来后,检测不到显示器,也许是低功耗模式?不过需要注意,免费使用所生成的公网地址为随机地址,每24小时变化,如果需要长期使用,可以配置固定的。在快放弃的事情想到微软的远程桌面程序,但是之前一直在局域网中使用,如何在外网中使用呢?
2022-10-10 16:16:34 6173 1
原创 RabbitMQ C++客户端 (Windows系统)
https://github.com/RPG-18/rabbitmq-cpp-tutorials3rdparty/AMQP-CPP-2.1.4amqpcpp:x64-windows 4.3.15#1 AMQP-CPP is a C++ library for communicating withboost-asio:x64-windows 1.78.0 B
2022-07-13 15:21:56 730
原创 RabbitMQ Client (C/C++)
GitHub - RPG-18/rabbitmq-cpp-tutorials: C++ code for RabbitMQ tutorialsC++ code for RabbitMQ tutorials. Contribute to RPG-18/rabbitmq-cpp-tutorials development by creating an account on GitHub.https://github.com/RPG-18/rabbitmq-cpp-tutorials此为官方C++教程,不知为何从
2022-07-04 14:42:11 787
原创 远程控制软件推荐 ToDesk-免费-不卡顿
曾经免费好用的Teamviewer已经一去不复返了,想付费的话,一个月要169??What?太贵了吧。之前用向日葵感觉速度还可以,最近发现向日葵清晰度完全没法看?好歹家里是千兆网速,限速的策略堪比某网盘。只好放弃了。ToDesk远程控制软件-免费安全流畅的远程连接电脑手机......
2022-06-16 10:11:08 1152
原创 Python 读取默认配置文件
编写配置文件[Defaults]option=Hello world!读取配置文件import argparseimport configparserimport sysdef main(argv=None): # Do argv default this way, as doing it in the functional # declaration sets it at compile time. if argv is None: ...
2022-04-30 11:11:46 495
原创 解决VS2019编译Qt报错:C3615 constexpr 函数“qCountLeadingZeroBits”不能生成常量表达式
下载qalgorithms.h 替换库里面的文件https://codereview.qt-project.org/changes/qt%2Fqtbase~236948/revisions/2/files/src%2Fcorelib%2Ftools%2Fqalgorithms.h/download
2022-04-28 16:29:33 1280
原创 docker中支持GUI(界面)
在尝试Mac系统vcpkg中安装qt5失败之后,考虑到用docker安装Ubuntu,能不能在docker中运行GUI程序呢?没有做不到,只有想不到。GitHub - fcwu/docker-ubuntu-vnc-desktop: A Docker image to provide web VNC interface to access Ubuntu LXDE/LxQT desktop environment.sudo docker run --name ubvnc -p 6080..
2022-04-21 08:43:00 2514
原创 vcpkg+windows+cmake+环境变量
使用vcpkg+cmake的时候需要添加参数:DCMAKE_TOOLCHAIN_FILE=C:/work/code/vcpkg/scripts/buildsystems/vcpkg.cmake命令行:cmake -S. -Bbuild -DCMAKE_TOOLCHAIN_FILE=C:/work/code/vcpkg/scripts/buildsystems/vcpkg.cmakecmake --build buildCMake GUI添加环境变量:echo %vcpkg_d
2022-03-29 14:56:07 2059
原创 vcpkg安装cgal笔记
安装代码vcpkg install qt5:x64-windowsvcpkg install vtk[qt]:x64-windows --recursevcpkg install cgal[qt]:x64-windows --recursevcpkg integrate installcmake配置错误处理主要的错误在于boost的安装,静态库和动态库同时安装,导致后面链接错误!删除静态库就好了...
2022-03-24 15:21:56 744
原创 MacOS (Linux)下多线程下载工具
缘起目前没有找到比Resilio Sync更好的p2p同步工具,但是两个问题不能忍受:一是:iOS客户端频繁崩溃,开发者也不处理?! 可能是iOS系统更新的缘故二是:MacOS客户端下载太慢了!几十K的速度,而且不定时不工作。看来得想办法,自己些代码解决可视化下载工具Free Download Manager - 從網路下載任何東西命令行下载方法一:aria2c --continue=true -x 16 -s 16 URL方法二:(速度更快)...
2022-03-20 19:06:06 1276
原创 Mac系统使用技巧
ntfs格式读写(free)Notes:If an NTFS volume has been automatically mounted by Mac as read-only, you need to eject it and then re-mount it using Hasleo NTFS for Mac before you can full read-write access to it.https://www.easyuefi.com/ntfs-for-mac/downloads...
2022-03-13 15:49:28 527
原创 OBS Studio是一款非常专业的视频直播录制软件,完全免费
OBS Studio是一款非常专业的视频直播录制软件,完全免费,支持Windows、MacOS、Linux三大平台,本身内置一些常用的插件,支持多种视频、音频格式、录制场景等设置,其实它的本职工作是直播推流,在直播领域很出名,但是它的录屏功能也十分强大,可以设置录制指定的窗口、软件和游戏画面。Open Broadcaster Software | OBS...
2022-03-01 15:58:12 10939
原创 vtkData
vtk-data/Data/ExportBunny at master · pyvista/vtk-data · GitHubVTK Testing data cloned from git://vtk.org/VTKData.git - these are used for examples in both PyVista and PVGeo - vtk-data/Data/ExportBunny at master · pyvista/vtk-datahttps://github.com/pyv...
2022-02-21 13:51:52 340
原创 vs2019 编译调试Linux代码
CMakeSettings.json{ "configurations": [ { "buildCommandArgs": "", "cmakeCommandArgs": "", "cmakeExecutable": "/usr/bin/cmake", "configurationType": "Release", "ctestCommandArgs": "", "generator": "..
2022-01-26 13:36:45 1274
原创 PlaneSourceDemo & conanfile.txt
step 1conanfile.txt[requires]VTK/8.2.0@imaging/stable[generators]cmakestep 2mkdir buildcd buildconan install ../conanfile.txt -s arch=x86 -r cloud --updatestep 3CMakeLists.txtcmake_minimum_required(VERSION 3.3 FATAL_ERROR)set(TAR..
2022-01-26 13:24:10 189
原创 vtkAxisActor2D 设置单位cm/mm
double range[2] = {0, 10.0}; ScaleActor->SetRange(range); ScaleActor= vtkSmartPointer<vtkAxisActor2D>::New(); ScaleActor->SetLabelVisibility(true); ScaleActor->SetLabelFormat("%g cm"); //%g ScaleActor->SetLabelFactor(0.5...
2022-01-25 14:17:17 984
原创 C++ Debug版本中越界异常
现象:Release版本正常,Debug版本报错:原因:越界或是堆栈溢出定位问题:通过二分查找法,放置检查点_ASSERTE(_CrtCheckMemory());vtkSmartPointer<vtkImageData> grtBlkPicture(int size[3]) { vtkSmartPointer<vtkImageData> img = vtkSmartPointer<vtkImageData>::New()...
2022-01-14 16:04:54 545
原创 vtkDistanceWidget 单位cm和mm转换
bool useMMUnit = false; if (useMMUnit) { distanceActor->GetDistanceRepresentation()->SetLabelFormat( "%-#6.2f mm"); } else { distanceActor->GetDistanceRepresentation()->SetLabelFormat( "%-#6.2f cm"); newDi...
2022-01-12 15:00:05 679
原创 vtkDistanceWidget修改文本颜色
vtkSmartPointer<vtkDistanceWidget> distanceActor; vtkAxisActor2D *axis = static_cast<vtkDistanceRepresentation2D *>( _disMeasureList[i]->distanceActor->GetDistanceRepresentation()) ->GetAxis();...
2021-12-15 15:27:09 773 4
原创 Log4cplus 配置
#log4cplus.appender.logfile = log4cplus::RollingFileAppenderlog4cplus.appender.logfile = log4cplus::DailyRollingFileAppenderlog4cplus.appender.logfile.File=../log/app.loglog4cplus.appender.logfile.Schedule=HOURLY#log4cplus.appender.logfile.Schedul...
2021-12-06 13:46:26 686
原创 Macbook Pro M1(macOS 12.0)读取NTFS移动硬盘方法
新买了Macbook Pro M1 Max,系统是macOS 12.0,默认可以NTFS格式的读移动硬盘(U盘),但是不能写,非常不爽。支持写的NTFS格式的软件,73人民币到139人民币不等,囧!brew install ntfs-3g出现下列错误:Error: ntfs-3g has been disabled because it requires FUSE!正确的安装方法如下:brew tap gromgit/homebrew-fusebrew install ..
2021-11-28 19:27:39 6218
原创 vtkParametricSpline示例 & 修改控制点大小
#include <vtkAutoInit.h>VTK_MODULE_INIT(vtkInteractionStyle)VTK_MODULE_INIT(vtkRenderingFreeType)VTK_MODULE_INIT(vtkRenderingOpenGL2)VTK_MODULE_INIT(vtkRenderingVolumeOpenGL2)#include <vtkActor.h>#include <vtkCamera.h>#include ...
2021-11-26 16:31:54 990 2
原创 Surface reconstruction (CPR) with VTK
Surface reconstruction (CPR) with VTK - 文章整合
2021-11-26 16:01:44 554
原创 vtk实现鼠标双击功能
#include <vtkActor.h>#include <vtkCamera.h>#include <vtkInteractorStyleTrackballCamera.h>#include <vtkNamedColors.h>#include <vtkNew.h>#include <vtkPointPicker.h>#include <vtkPolyDataMapper.h>#include <...
2021-11-16 15:28:14 1275 2
原创 C++ double to string带精度
std::string doubleToStringWithPrecision(double value, int precision) {#include <iomanip>#include <sstream> std::stringstream stream; stream << std::fixed << std::setpre...
2021-11-16 11:25:02 1505
原创 平滑曲线(基于均值)
void smooth(std::vector<std::vector<double>>& centerLine, std::vector<std::vector<double>>& smoothedCenterLine){ smoothedCenterLine.resize(centerLine.size()); int step = 2; for (int i = 0; i < centerLine.s...
2021-11-12 11:08:36 835
原创 OSPRay
OSPRay======This is release v1.6.0 of OSPRay. For changes and new featuressee the [changelog](CHANGELOG.md). Also visit http://www.ospray.org formore information.OSPRay Overview===============OSPRay is an **o**pen source, **s**calable, and **...
2021-11-12 09:51:56 327
原创 Windows fork进程尝试(TODO)
/************************************************************************//* 父进程源码实现 *//************************************************************************/#include <Windows.h>#include <string>#include <iostream>#define ...
2021-11-11 14:50:11 1720
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人