上一页 1 2 3 4 5 6 7 8 ··· 21 下一页
摘要: //密钥散列消息认证码 阅读全文
posted @ 2020-03-08 14:02 學海無涯 阅读(269) 评论(0) 推荐(0) 编辑
摘要: ```go type Setting struct { path string prefix string set map[string]interface{} } func NewSetting(file string) *Setting{ s := Setting{} s.path = file s.set = make(map[string]interface{}) return &s } 阅读全文
posted @ 2020-03-04 14:37 學海無涯 阅读(173) 评论(0) 推荐(0) 编辑
摘要: ``` // SendMail connects to the server at addr, switches to TLS if // possible, authenticates with the optional mechanism a if possible, // and then sends an email from address from, to addresses to, 阅读全文
posted @ 2020-02-16 19:44 學海無涯 阅读(854) 评论(0) 推荐(0) 编辑
摘要: 1 通过使用从对象开始处的硬编码/手工编码的偏移量构造指针来访问私有成员数据 2 . 使用联合体 union 阅读全文
posted @ 2019-12-25 22:38 學海無涯 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 漏洞导致 https://www.freebuf.com/vuls/159642.html 使用以下两句 无法修复该问题,建议升级 win10 系统,使用 vs2017 阅读全文
posted @ 2019-11-29 14:53 學海無涯 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 如何创建 Qt 插件? 简单三部曲 1. 定义接口类或接口基类并使用 宏进行声明 2. 所有的插件都需要继承该基类并继承 QObject(不带界面插件) or QWidget(带界面插件) 3. 在插件类中添加 导出元数据,使用 指定继承基类(该基类需要使用 声明过) 如何生成? 示例 .pro 文 阅读全文
posted @ 2019-11-28 14:29 學海無涯 阅读(683) 评论(0) 推荐(0) 编辑
摘要: SEO: libtorch 如何 OneHot ? torch OneHot 源代码 ? https://www.tensorflow.org/api_docs/python/tf/one_hot 最新的 1.3 版本中已经添加了该函数 使用示例 阅读全文
posted @ 2019-11-16 17:10 學海無涯 阅读(961) 评论(0) 推荐(0) 编辑
摘要: ``` http://download.qt.io/static/mirrorlist/ 添加对应版本的地址,拉取最新元信息。 http://mirrors.ustc.edu.cn/qtproject/online/qtsdkrepository/windows_x86/root/qt/ ``` 阅读全文
posted @ 2019-11-15 16:50 學海無涯 阅读(4277) 评论(0) 推荐(0) 编辑
摘要: ``` torch::Tensor fromQImage(QImage image) { int width = image.width(); int height = image.height(); int depth = image.depth(); int channels = depth / 阅读全文
posted @ 2019-11-11 17:20 學海無涯 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 1. 如何声明自定义类型 如果仅仅在 QVariant 中使用,则仅需要使用 宏进行声明即可。 2. 如何在 中使用? 如何需要在信号和槽中使用则需要额外调用 `qRegisterMetaType("Custom_")`进行注册该类型. 使用 宏,不会保证第一时间进行注册该类型,需要调用该函数才会执 阅读全文
posted @ 2019-11-05 10:22 學海無涯 阅读(2190) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 21 下一页