04 2023 档案

摘要:C++-std::this_thread::get_id()-获取线程id std::this_thread::get_id() 头文件:<thread> 函数:std::this_thread::get_id() 用例:std::thread::id thread_id = std::this_t 阅读全文
posted @ 2023-04-29 18:42 Theseus‘Ship 阅读(331) 评论(0) 推荐(0) 编辑
摘要:C++-#pargma once https://baike.baidu.com/item/%23pragma%20once/9468158?fr=aladdin #pragma once是一个比较常用的C/C++预处理指令。 只在头文件的最开始加入这条预处理指令,就能够保证头文件只被编译一次。 基 阅读全文
posted @ 2023-04-29 18:32 Theseus‘Ship 阅读(29) 评论(0) 推荐(0) 编辑
摘要:C++-改变终端(cout/printf)输出不同颜色的字体-Linux https://blog.csdn.net/qq_41972382/article/details/90311102 不同颜色的输出主要依据格式ESC[*m,ESC的八进制为\033,*可以是多个属性的组合,用,隔开。 pri 阅读全文
posted @ 2023-04-29 18:18 Theseus‘Ship 阅读(1088) 评论(0) 推荐(1) 编辑
摘要:C++-标准异常<exception> std::exception 定义于头文件 <exception> class exception; https://www.apiref.com/cpp-zh/cpp/error/exception.html 标准库头文件 <stdexcept> https 阅读全文
posted @ 2023-04-29 18:03 Theseus‘Ship 阅读(185) 评论(0) 推荐(0) 编辑
摘要:Tool-CMake-list https://www.visgraf.impa.br/seminar/slides/rodlima_cmake_presentation.pdf Useful to manage long list of elements Elements can be manip 阅读全文
posted @ 2023-04-29 14:18 Theseus‘Ship 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Tool-CMake-Own Finder(-I -L -l)-compiling What is a finder When compiling a piece of software which links to third­party libraries, we need to know: W 阅读全文
posted @ 2023-04-29 13:52 Theseus‘Ship 阅读(9) 评论(0) 推荐(0) 编辑
摘要:Tool-CMake-MESSAGE Show status information, warnings or errors MESSAGE( [SEND_ERROR | STATUS | FATAL_ERROR] "message to display" ... ) 阅读全文
posted @ 2023-04-29 13:48 Theseus‘Ship 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Tool-CMake-OPTION https://clubjuggler.livejournal.com/138364.html includes a component As an example, consider a project that optionally includes a co 阅读全文
posted @ 2023-04-29 13:26 Theseus‘Ship 阅读(14) 评论(0) 推荐(0) 编辑
摘要:Tool-CMake-How CMake simplifies the build process by Bruno Abinader https://gitlab.kitware.com/cmake/community/-/wikis/home https://brunoabinader.gith 阅读全文
posted @ 2023-04-29 12:59 Theseus‘Ship 阅读(19) 评论(0) 推荐(0) 编辑
摘要:Tool-CMake-A Simple CMake Example https://cmake.org/examples/ There are three directories involved. The top level directory has two subdirectories cal 阅读全文
posted @ 2023-04-29 10:12 Theseus‘Ship 阅读(17) 评论(0) 推荐(0) 编辑
摘要:#C++-template class-模板类 【C++高级教程,C++类模板一次讲透,必须收藏!】 https://www.bilibili.com/video/BV1v84y1x7Qp/?share_source=copy_web&vd_source=3809390a14c335e7731c9e 阅读全文
posted @ 2023-04-16 23:31 Theseus‘Ship 阅读(442) 评论(0) 推荐(0) 编辑
摘要:Graphviz 安装包&源码 https://graphviz.gitlab.io/download/ sudo apt install graphviz https://graphviz.gitlab.io/download/source/ ./configure make make insta 阅读全文
posted @ 2023-04-16 22:48 Theseus‘Ship 阅读(51) 评论(0) 推荐(0) 编辑
摘要:#IDE-Visual Studio Code-Extension-离线安装PlantUML https://www.hd2y.net/archives/plantuml-installation-and-use PlantUML + Graphviz + Java PlantUML Extensi 阅读全文
posted @ 2023-04-16 22:47 Theseus‘Ship 阅读(543) 评论(0) 推荐(0) 编辑
摘要:Tool-GitLab https://about.gitlab.com/ GitLab 是一个用于仓库管理系统的开源项目,使用Git作为代码管理工具,并在此基础上搭建起来的Web服务。 安装方法是参考GitLab在GitHub上的Wiki页面。 Gitlab是被广泛使用的基于git的开源代码管理平 阅读全文
posted @ 2023-04-14 22:50 Theseus‘Ship 阅读(91) 评论(0) 推荐(0) 编辑
摘要:#IDE-Visual Studio Code-Extensions(插件) https://marketplace.visualstudio.com/ 网上百度到的一些visualstudiocode的extensions插件。 ##主题 Moonlight Nord Noctis Palenig 阅读全文
posted @ 2023-04-14 21:31 Theseus‘Ship 阅读(51) 评论(0) 推荐(0) 编辑
摘要:Tool-CMake https://cmake.org/ https://cmake.org/download/ https://cmake.org/documentation/ https://cmake.org/runningcmake/ Book: Mastering CMake 3.1 E 阅读全文
posted @ 2023-04-12 22:48 Theseus‘Ship 阅读(68) 评论(0) 推荐(0) 编辑
摘要:#Code-C++-Linux-统计一个文件夹占据空间大小 https://my.oschina.net/Tsybius2014/blog/330628 从以上链接中拷贝的代码 #include <stdio.h> #include <sys/stat.h> #include <sys/types. 阅读全文
posted @ 2023-04-11 21:58 Theseus‘Ship 阅读(133) 评论(0) 推荐(1) 编辑
摘要:#C++-unique_lock与lock_guard区别 https://blog.csdn.net/ccw_922/article/details/124662275 https://blog.csdn.net/sinat_35945236/article/details/124505414 都 阅读全文
posted @ 2023-04-11 21:13 Theseus‘Ship 阅读(265) 评论(0) 推荐(0) 编辑
摘要:#C++-Error:invalid new-expression of abstract class type C++工程,使用new操作符,new一个抽象类对象时编译报错如下: Error:invalid new-expression of abstract class type XXX 原因 阅读全文
posted @ 2023-04-11 19:58 Theseus‘Ship 阅读(627) 评论(0) 推荐(0) 编辑
摘要:#Code-C++-Linux-利用condition_variable封装event C++11使用condition_variable加上mutex封装event类,实现等同于windows的事件功能。 从网上百度到的以下代码实现,具体网址搞丢了。 #include <iostream> #in 阅读全文
posted @ 2023-04-11 00:09 Theseus‘Ship 阅读(54) 评论(0) 推荐(0) 编辑
摘要:#Code-C++-Linux-获取时间time()/localtime()/gettimeofday() #include <iostream> //#include <time.h> #include <sys/time.h> //for gettimeofday() #include <str 阅读全文
posted @ 2023-04-10 23:50 Theseus‘Ship 阅读(135) 评论(0) 推荐(0) 编辑
摘要:#Code-C++-fstream-输出到文件 利用fstream文件流输出 利用stat查看文件大小 设定文件最大值宏定义 #include <fstream> #include <string> #include <sys/stat.h> #include <iostream> #define 阅读全文
posted @ 2023-04-10 23:44 Theseus‘Ship 阅读(27) 评论(0) 推荐(0) 编辑
摘要:#C++-C11-chrono-获取当前时间、获取阶段时间 Linux下使用C++11的chrono库获取时间。 #include <chrono> #include <thread> #include <iostream> int64_t getCurrentLocalTimeStamp(){ s 阅读全文
posted @ 2023-04-10 23:34 Theseus‘Ship 阅读(321) 评论(0) 推荐(0) 编辑
摘要:OS-Linux-端口占用 当Linux应用程序提示端口被占用,解决方案是先查询端口占用进程的pid,然后kill pid。 netstat -tlnap |grep port lsof -i:port查看端口占用的进程 kill-9 pid kill占用端口的进程 阅读全文
posted @ 2023-04-09 23:58 Theseus‘Ship 阅读(12) 评论(0) 推荐(0) 编辑
摘要:OS-Ubuntu-thunderbird包版本过低不兼容 在安装搜狗输入法时,遇到过thunderbird包版本过低不兼容的问题, 问题的格式如下: thunderbird-local-zh-hans: depends: thunderbird(<1:31 build 12.04.... but 阅读全文
posted @ 2023-04-09 23:51 Theseus‘Ship 阅读(79) 评论(0) 推荐(0) 编辑
摘要:OS-Ubuntu-安装搜狗拼音输入法 搜狗输入法Linux版本:sogoupinyin_4.2.1.145_amd64.deb 下载地址:https://shurufa.sogou.com/linux 安装指南:https://shurufa.sogou.com/linux/guide sogou 阅读全文
posted @ 2023-04-09 23:27 Theseus‘Ship 阅读(1253) 评论(0) 推荐(0) 编辑
摘要:C++-Ubuntu core dumped(核心已转储)-GDB调试 Linux的可执行程序异常退出时,提示“核心已转储”。 此时需要系统生成core文件,并通过GDB调试以确定问题。 https://blog.csdn.net/scjdas/article/details/128585787 设 阅读全文
posted @ 2023-04-09 23:07 Theseus‘Ship 阅读(295) 评论(0) 推荐(0) 编辑
摘要:OS-Linux-环境变量-LD_LIBRARY_PATH Linux中PATH、 LIBRARY_PATH、 LD_LIBRARY_PATH的区别 运行时动态库的搜索路径的先后顺序是: 编译目标代码时指定的动态库搜索路径; 环境变量LD_LIBRARY_PATH指定的动态库搜索路径; 配置文件/e 阅读全文
posted @ 2023-04-09 21:55 Theseus‘Ship 阅读(410) 评论(0) 推荐(0) 编辑
摘要:#Python-venv-创建和管理虚拟环境 https://docs.python.org/3/tutorial/venv.html 概述 Python应用程序通常会使用不在标准库内的软件包和模块。应用程序有时需要特定版本的库,因为应用程序可能需要修复特定的错误,或者可以使用库的过时版本的接口编写 阅读全文
posted @ 2023-04-09 13:38 Theseus‘Ship 阅读(78) 评论(0) 推荐(0) 编辑
摘要:Code-C++ Invoke Python https://www.cnblogs.com/yongchao/p/17299892.html 使用 C 或 C++ 扩展 Python 扩展和嵌入 Python 解释器 Python 3.10.11 Python/C API 参考手册 Python 阅读全文
posted @ 2023-04-09 10:46 Theseus‘Ship 阅读(28) 评论(0) 推荐(0) 编辑
摘要:OS-Linux-Ubuntu22.04x64-Python-C++调用Python缺少Python.h 使用 C 或 C++ 扩展 Python 扩展和嵌入 Python 解释器 Python 3.10.11 Python/C API 参考手册 Python 3.11.3 Python/C API 阅读全文
posted @ 2023-04-09 10:07 Theseus‘Ship 阅读(725) 评论(0) 推荐(0) 编辑
摘要:OS-Linux-Ubuntu-apt-get https://help.ubuntu.com/community/AptGet/Howto Package management via apt-get runs hand-in-hand with the /etc/apt/sources.list 阅读全文
posted @ 2023-04-08 21:16 Theseus‘Ship 阅读(12) 评论(0) 推荐(0) 编辑
摘要:VMware Workstation-Ubuntu虚拟机-异常关闭后网卡无法工作 参考https://blog.csdn.net/lhx526080338/article/details/129360808 虚拟机镜像ubuntu-22.04.2-desktop-amd64.iso 虚拟机启动之后, 阅读全文
posted @ 2023-04-08 16:42 Theseus‘Ship 阅读(81) 评论(0) 推荐(0) 编辑
摘要:#IDE-Visual Studio Code Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, m 阅读全文
posted @ 2023-04-08 12:40 Theseus‘Ship 阅读(71) 评论(0) 推荐(0) 编辑
摘要:OS-Linux-Ubuntu-Tool-Visual Studio Code 在Ubuntu上,可以使用Visual Studio Code进行代码调试。 Visual Studio Code官网如下:https://code.visualstudio.com/ 对于Ubuntu,提供deb包。 阅读全文
posted @ 2023-04-08 02:02 Theseus‘Ship 阅读(21) 评论(0) 推荐(0) 编辑
摘要:OS-Linux-Tool-可视化比较与合并工具Meld 在Linux系统上有时会需要进行文件比较与合并,Meld能提供相关功能。 http://meldmerge.org/ http://meldmerge.org/help/ Meld Visual diff and merge tool Mel 阅读全文
posted @ 2023-04-06 21:37 Theseus‘Ship 阅读(64) 评论(0) 推荐(0) 编辑
摘要:OS-Linux-Ubuntu 开源 Ubuntu一直是免费下载,使用和分享 安全 Ubuntu是最为安全的操作系统之一,其内建了防火墙和病毒保护软件。并且,长期支持的版本将提供5年的安全补丁和更新。 可访问 计算用于所有人,不论国籍,性别或障碍。Ubuntu被完整地翻译成50多种语言,且包含了必要 阅读全文
posted @ 2023-04-05 12:38 Theseus‘Ship 阅读(27) 评论(0) 推荐(0) 编辑
摘要:#OS-Windows-计算机内存型号配置查看 近来想给计算机配置内存,在网上百度到了如何查看型号和配置的方法,整理如下。 1.直接在计算机底部查看标识。 2.win+R --> cmd -->systeminfo >结果输出在当前窗口中。 3.win+R --> cmd -->dxdiag >弹出 阅读全文
posted @ 2023-04-05 08:07 Theseus‘Ship 阅读(107) 评论(0) 推荐(0) 编辑

Live2D
欢迎阅读『2023 年 4月 随笔档案』
点击右上角即可分享
微信分享提示