上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 45 下一页

2021年11月26日

CountBitsSetTable

摘要: ref: http://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetTable Counting bits set by lookup table static const unsigned char BitsSetTable25 阅读全文

posted @ 2021-11-26 10:24 norsd 阅读(23) 评论(0) 推荐(0)

2021年10月7日

C# 当数据项被删除修改后,MongoDb无法反序列化数据,报错类似"does not match any field or property of class"

摘要: C# 当数据项被删除修改后,MongoDb无法反序列化数据,报错类似"does not match any field or property of class" 解决方案就是告诉MongoDb在反序列化时忽略那些数据结构没有的数据项目 https://stackoverflow.com/quest 阅读全文

posted @ 2021-10-07 10:34 norsd 阅读(19) 评论(0) 推荐(0)

2021年7月1日

继承自DataGridView的类在构造函数中创建Column后,被Designer重复创建的问题

摘要: reference: https://stackoverflow.com/questions/530176/how-do-you-prevent-the-visual-studio-designer-auto-generating-columns-in-a-datag/31906513 如果我们创造 阅读全文

posted @ 2021-07-01 11:41 norsd 阅读(8) 评论(0) 推荐(0)

2021年6月24日

c++ typeid 注意事项

摘要: typeid 对于不含有虚函数的类对象,无法识别 对于含有虚函数的对象能够识别 无法准确识别任何指针对象 #include "stdafx.h" #include <iostream> #include <string> using namespace std; class BaseNoVirtua 阅读全文

posted @ 2021-06-24 16:36 norsd 阅读(11) 评论(0) 推荐(0)

2021年6月9日

匹配平衡组

摘要: reference: https://blog.csdn.net/zm2714/article/details/7946437 匹配一般是指左侧符号与右侧符号两两出现,例如 “[” 与 “]”, “<“与”>”, 或者"{“与”}" 但是左右符号可能有内嵌,正则表达式通过写入堆栈,推出堆栈来正确匹配 阅读全文

posted @ 2021-06-09 18:27 norsd 阅读(10) 评论(0) 推荐(0)

2021年4月20日

ThinkPad S5 升级安装Windows10后 连上网络后系统假死

摘要: ThinkPad S5 升级Windows10时 最后启动 卡在 32%, 38%(多次重试的结果) 随后使用全新安装(当时没有插入网线,无网络),安装后,启动成功。 后插入网线,稍后听到设备驱动程序更新的叮叮背景声后,机器很快假死, 强制重启后仍然无法再次启动, 表现为卡在转圈处不动。 再重试了3 阅读全文

posted @ 2021-04-20 21:39 norsd 阅读(27) 评论(0) 推荐(0)

2017年2月5日

python numpy 判断ndarray 中是否有 nan

摘要: 下面讨论了哪一种方法的速度最快 reference: stackoverflow.com/questions/911871/detect-if-a-numpy-array-contains-at-least-one-non-numeric-value 阅读全文

posted @ 2017-02-05 19:08 norsd 阅读(14006) 评论(0) 推荐(0)

2017年2月4日

matplotlib.pyplot import报错: ValueError: _getfullpathname: embedded null character in path

摘要: Environment: Windows 10, Anaconda 3.6 matplotlib 2.0 import matplotlib.pyplot 报错: ValueError: _getfullpathname: embedded null character in path 原因以及So 阅读全文

posted @ 2017-02-04 17:14 norsd 阅读(2704) 评论(0) 推荐(0)

2017年2月2日

python format

摘要: http://blog.xiayf.cn/2013/01/26/python-string-format/ https://zerokspot.com/weblog/2015/12/31/new-string-formatting-in-python/ 阅读全文

posted @ 2017-02-02 17:12 norsd 阅读(191) 评论(0) 推荐(0)

python 关于时区

摘要: pytz提供了时区对象timezone 如果我们如此使用: 我们得到的时间不是 GMT+8, 而是8小时又6分钟 我们需要的是CST时间, 所以可以用如下代码: 这样得到就是准确的 GMT+8 http://www.keakon.net/2010/12/14/%E7%94%A8datetime%E5 阅读全文

posted @ 2017-02-02 15:35 norsd 阅读(1634) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 45 下一页

导航