上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: #chatgpt 1.获取时间戳 #include <QDateTime> #include <QDebug> qint64 timestamp = QDateTime::currentDateTime().toSecsSinceEpoch(); qDebug() << "当前时间戳:" << ti 阅读全文
posted @ 2023-03-20 13:47 simp00 阅读(1679) 评论(0) 推荐(0) 编辑
摘要: #chatgpt #include <QJsonDocument> #include <QJsonObject> #include <QDebug> // 从 JSON 字符串中解析数据 void parseJson(const QString& jsonString) { // 将 JSON 字符 阅读全文
posted @ 2023-03-20 13:38 simp00 阅读(42) 评论(0) 推荐(0) 编辑
摘要: #chatgpt结果 #include <QUuid> #include <QDebug> int main() { // 生成一个新的 UUID QUuid uuid = QUuid::createUuid(); // 将 UUID 转换为字符串,并打印输出 QString uuidString 阅读全文
posted @ 2023-03-20 10:05 simp00 阅读(950) 评论(0) 推荐(0) 编辑
摘要: #chatgpt 结果 ##head // TcpServerBase.h #ifndef TCPSERVER_H #define TCPSERVER_H #include <QObject> #include <QTcpServer> #include <QTcpSocket> class Tcp 阅读全文
posted @ 2023-03-20 09:02 simp00 阅读(64) 评论(0) 推荐(0) 编辑
摘要: #chatgpt结果 string #include <QCryptographicHash> #include <QDebug> QString string = "Hello, World!"; QByteArray data = string.toUtf8(); QByteArray hash 阅读全文
posted @ 2023-03-20 09:00 simp00 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 首选通过搜索找到了pre-commit 这个脚本 直接上手修改,最终结果如下 需要的可以看一下 #!/bin/bash export LANG=zh_CN.UTF-8 REPOS="$1" TXN="$2" SVNLOOK=/var/packages/SVN/target/bin/svnlook L 阅读全文
posted @ 2023-02-10 18:41 simp00 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 在 Docker 的 Ubuntu 容器中设置 NTP 和时区需要以下步骤: 安装 NTP 服务器: apt-get update apt-get install ntp 编辑 NTP 配置文件 /etc/ntp.conf,并在文件中添加要使用的 NTP 服务器,例如: server 0.ubunt 阅读全文
posted @ 2023-02-02 11:18 simp00 阅读(835) 评论(0) 推荐(0) 编辑
摘要: 原文链接https://www.digitalocean.com/community/tutorials/how-to-install-and-use-sqlite-on-ubuntu-20-04 sudo apt update sudo apt install sqlite3 sqlite3 -- 阅读全文
posted @ 2023-01-05 17:39 simp00 阅读(71) 评论(0) 推荐(0) 编辑
摘要: console.log("普通函数方式"); var arr1 = [1, 2, 3, 4, 5]; arr1.forEach(function(e) { console.log(e); }); console.log("箭头函数方式"); var arr2 = [1, 2, 3, 4, 5]; a 阅读全文
posted @ 2023-01-05 14:59 simp00 阅读(49) 评论(0) 推荐(0) 编辑
摘要: Websocke 是HTML5开始提供的一种在单个TCP连接上进行全双工通讯的协议 在WebSocket API 中 浏览器和服务器只需要完成一次握手,两者之间就可以创建持久性的链接,并进行双向传输数据。 浏览器通过JavaScript向服务器发出建立WebSocket连接的请求,连接建立后,客户端 阅读全文
posted @ 2022-12-10 18:05 simp00 阅读(48) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页