摘要: 问题描述:多次输入密码,一直连接不上 解决方法; 打开远程服务器中~/.vscode-server/bin/xxx文件夹,此时可以看到一个名为vscode-server.tar.gz,截图如下: 上面的37开头的文件夹称为Commit Id,现在利用Commit ID下载远程连接需要的文件。使用这个 阅读全文
posted @ 2024-09-26 15:07 素装写淡定 阅读(771) 评论(0) 推荐(0)
摘要: 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。 std::string Utf8ToGbk(const std::string& utf8) { int len = MultiByteToWideChar(CP_UTF8, 0, u 阅读全文
posted @ 2024-08-01 11:14 素装写淡定 阅读(759) 评论(0) 推荐(0)
摘要: 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)
摘要: //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)
摘要: 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)
摘要: <VerticalLayout name="image_classification" visible="false" > <VerticalLayout name="main_layout" autochangeparentheight="true" autocalcheight="true" a 阅读全文
posted @ 2024-06-19 17:42 素装写淡定 阅读(84) 评论(0) 推荐(0)
摘要: 我们需要根据程序输入或运行时信息在界面上动态生成一个或多个按钮,并分别添加消息响应,实现这一目标包括如下几步: 1.在类中声明按钮变量指针CButton btnArray[n]; 2.在类中声明并定义按钮控件的ID, buttonID = 10000; 3.想要创建按钮的数量static const 阅读全文
posted @ 2024-06-05 17:26 素装写淡定 阅读(352) 评论(0) 推荐(0)
摘要: 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)