会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
mengyaoli
博客园
首页
新随笔
联系
订阅
管理
2024年9月26日
VS Code 的SSH连接不成功问题分析与解决
摘要: 问题描述:多次输入密码,一直连接不上 解决方法; 打开远程服务器中~/.vscode-server/bin/xxx文件夹,此时可以看到一个名为vscode-server.tar.gz,截图如下: 上面的37开头的文件夹称为Commit Id,现在利用Commit ID下载远程连接需要的文件。使用这个
阅读全文
posted @ 2024-09-26 15:07 素装写淡定
阅读(771)
评论(0)
推荐(0)
2024年8月1日
自动创建文件夹
摘要: class test { private: test(); ~test(); bool EnsureDirectoryExists(const std::string& path); static const std::string filePath; }; const std::string te
阅读全文
posted @ 2024-08-01 20:38 素装写淡定
阅读(24)
评论(0)
推荐(0)
从 UTF-8 编码到 GBK 编码的转换,解决中文在日志里显示乱码
摘要: 从 UTF-8 编码到 GBK 编码的转换,通过中间步骤先将 UTF-8 转换为宽字符,再将宽字符转换为 GBK。 std::string Utf8ToGbk(const std::string& utf8) { int len = MultiByteToWideChar(CP_UTF8, 0, u
阅读全文
posted @ 2024-08-01 11:14 素装写淡定
阅读(759)
评论(0)
推荐(0)
2024年7月18日
BLOB类型二进制数据转换成Bitmap类型数据,并显示成缩略图,类似手机相册的封面
摘要: class DemoDuilib : public WindowImplBase, public CButtonUI { public: DemoDuilib(); ~DemoDuilib(); void test(); static std::vector<uint8_t> thumbData;/
阅读全文
posted @ 2024-07-18 12:06 素装写淡定
阅读(49)
评论(0)
推荐(0)
2024年7月12日
【C++11新特性】在定义静态成员变量的同时进行初始化
摘要: //test.h class test { public: test() = delete; ~test() = delete; private: static constexpr long long POLY_64_REV = 0x95AC9329AC4BC9B5L; static constex
阅读全文
posted @ 2024-07-12 16:02 素装写淡定
阅读(51)
评论(0)
推荐(0)
2024年6月20日
上传gitlab用到的命令
摘要: git status git checkout git restore --staged git add git stash pop git pull
阅读全文
posted @ 2024-06-20 12:12 素装写淡定
阅读(10)
评论(0)
推荐(0)
解冲突用到的命令
摘要: git reset HEAD~1 git status git stash git stash list git pull git pull origin 分支 git stash pop 创建并切换到新分支: bash复制代码 git checkout -b feature-xyz 推送新分支到远
阅读全文
posted @ 2024-06-20 12:11 素装写淡定
阅读(18)
评论(0)
推荐(0)
2024年6月19日
Duilib实现自定义动态创建多个按钮
摘要: <VerticalLayout name="image_classification" visible="false" > <VerticalLayout name="main_layout" autochangeparentheight="true" autocalcheight="true" a
阅读全文
posted @ 2024-06-19 17:42 素装写淡定
阅读(84)
评论(0)
推荐(0)
2024年6月5日
MFC中动态创建多个按钮并实现其消息响应
摘要: 我们需要根据程序输入或运行时信息在界面上动态生成一个或多个按钮,并分别添加消息响应,实现这一目标包括如下几步: 1.在类中声明按钮变量指针CButton btnArray[n]; 2.在类中声明并定义按钮控件的ID, buttonID = 10000; 3.想要创建按钮的数量static const
阅读全文
posted @ 2024-06-05 17:26 素装写淡定
阅读(352)
评论(0)
推荐(0)
2023年12月14日
【TFTP】客户端上传文件
摘要: 1 //// 客户端上传文件 2 #include <stdio.h> 3 #include <string.h> 4 #include <unistd.h> 5 #include <arpa/inet.h> 6 #include <netinet/in.h> 7 #include <sys/typ
阅读全文
posted @ 2023-12-14 21:46 素装写淡定
阅读(117)
评论(0)
推荐(0)
下一页
公告