会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
學海無涯
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
21
下一页
2020年3月8日
HMAC
摘要: //密钥散列消息认证码
阅读全文
posted @ 2020-03-08 14:02 學海無涯
阅读(282)
评论(0)
推荐(0)
2020年3月4日
golang 简易的键值配置包
摘要: ```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 學海無涯
阅读(180)
评论(0)
推荐(0)
2020年2月16日
golang 如何发送邮件?
摘要: ``` // 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 學海無涯
阅读(867)
评论(0)
推荐(0)
2019年12月25日
在仅拿到头文件的情况下,如何修改类中的私有成员值?
摘要: 1 通过使用从对象开始处的硬编码/手工编码的偏移量构造指针来访问私有成员数据 2 . 使用联合体 union
阅读全文
posted @ 2019-12-25 22:38 學海無涯
阅读(429)
评论(0)
推荐(0)
2019年11月29日
Q480S-I7 D1 笔记本使用 VS2015 运行性能探查器会导致电脑自动重启?
摘要: 漏洞导致 https://www.freebuf.com/vuls/159642.html 使用以下两句 无法修复该问题,建议升级 win10 系统,使用 vs2017
阅读全文
posted @ 2019-11-29 14:53 學海無涯
阅读(206)
评论(0)
推荐(0)
2019年11月28日
如何创建 Qt 插件?
摘要: 如何创建 Qt 插件? 简单三部曲 1. 定义接口类或接口基类并使用 宏进行声明 2. 所有的插件都需要继承该基类并继承 QObject(不带界面插件) or QWidget(带界面插件) 3. 在插件类中添加 导出元数据,使用 指定继承基类(该基类需要使用 声明过) 如何生成? 示例 .pro 文
阅读全文
posted @ 2019-11-28 14:29 學海無涯
阅读(754)
评论(0)
推荐(0)
2019年11月16日
What is one-hot?
摘要: SEO: libtorch 如何 OneHot ? torch OneHot 源代码 ? https://www.tensorflow.org/api_docs/python/tf/one_hot 最新的 1.3 版本中已经添加了该函数 使用示例
阅读全文
posted @ 2019-11-16 17:10 學海無涯
阅读(980)
评论(0)
推荐(0)
2019年11月15日
Qt 如何配置维护更新工具 MaintenanceTool ?
摘要: ``` http://download.qt.io/static/mirrorlist/ 添加对应版本的地址,拉取最新元信息。 http://mirrors.ustc.edu.cn/qtproject/online/qtsdkrepository/windows_x86/root/qt/ ```
阅读全文
posted @ 2019-11-15 16:50 學海無涯
阅读(4862)
评论(0)
推荐(0)
2019年11月11日
QImage 如何和 Tensor 相互转换?
摘要: ``` 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 學海無涯
阅读(534)
评论(0)
推荐(0)
2019年11月5日
qt 如何注册自定义类型?
摘要: 1. 如何声明自定义类型 如果仅仅在 QVariant 中使用,则仅需要使用 宏进行声明即可。 2. 如何在 中使用? 如何需要在信号和槽中使用则需要额外调用 `qRegisterMetaType("Custom_")`进行注册该类型. 使用 宏,不会保证第一时间进行注册该类型,需要调用该函数才会执
阅读全文
posted @ 2019-11-05 10:22 學海無涯
阅读(2292)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
21
下一页
公告