08 2024 档案

OneDrive Windows Desktop 无法启动
摘要:https://answers.microsoft.com/en-us/onedrive/forum/odstart-odsignin/onedrive-keeps-crashing-shortly-after-launching-it/7c694921-f5b9-4c73-a33c-cf891c1 阅读全文

posted @ 2024-08-31 10:01 norsd 阅读(3) 评论(0) 推荐(0) 编辑

nanomsg.nng 在windows下的安装
摘要:需要 cmake 版本号大于等于3.1, 个人使用了Visual Studio 的 Native tools command prompt (分为x86, x64 分别用于Build各自构架的nng)github源 https://github.com/nanomsg/nng 下载压缩包解压缩进入文 阅读全文

posted @ 2024-08-30 08:02 norsd 阅读(83) 评论(0) 推荐(0) 编辑

Python 问号表达式(ternary conditional operator)的实现
摘要:a if condition else b ref: https://stackoverflow.com/questions/394809/does-python-have-a-ternary-conditional-operator 阅读全文

posted @ 2024-08-28 03:58 norsd 阅读(2) 评论(0) 推荐(0) 编辑

Visual Studio Code 配置 PYTHONPATH, autoComplete 使得自己编写的package可以正常工作
摘要:在cmd中定位到你的工作目录, 例如 e:\PythonProjects, 输入命令行 code . 打开 Visual Studio Code 确定settings.json 路径: 工作目录/vscode/settings.json 如果不存在,则点击 齿轮,设置。 进入Settings Pan 阅读全文

posted @ 2024-08-27 09:26 norsd 阅读(98) 评论(0) 推荐(0) 编辑

使用dumpbin 输出DLL外部函数
摘要:使用VisualStudio 提供的 Developer Command Prompt 启动 Console 输入命令: dumpbin /EXPORTS dll_path >> output_path.txt 阅读全文

posted @ 2024-08-22 17:21 norsd 阅读(3) 评论(0) 推荐(0) 编辑

c++ 显式转换中的问题
摘要:显式转换中的问题 auto test = (PCSTR)(String::Format("regex_match failed: \"%s\"", a_strAddress.c_str())); String::Format 返回一个String类型临时变量,我们把他称为 “t” 他被要求显示转化为 阅读全文

posted @ 2024-08-21 00:00 norsd 阅读(5) 评论(0) 推荐(0) 编辑

nanomsg-python 安装在Windows下的流程
摘要:在本机安装x64的nanomsg : https://blog.csdn.net/norsd/article/details/81285104从GitHub 下载 nanomsg-python的 zip 文件: https://github.com/tonysimpson/nanomsg-pytho 阅读全文

posted @ 2024-08-20 09:39 norsd 阅读(24) 评论(0) 推荐(0) 编辑

VCode Python 设置当前目录
摘要:1.当前目录 os.path.abspath('.') 2.设置新的当前目录 os.chdir('E:/Test/Test') 在VSCode中打开Folder时,当前目录就是这个Folder 而不是其中文件的目录 例如我打开了Foloder: c:\PythonProjects 随后其中有文件 c 阅读全文

posted @ 2024-08-19 15:57 norsd 阅读(17) 评论(0) 推荐(0) 编辑

numpy.searchsorted 用法
摘要:numpy.searchsorted : vs = [1, 3, 5, 7, 9] numpy.searchsorted(vs, 4) output:2 我们看到searchsorted 返回了2,注意vs必须是按序排 列,如果是乱序的话可以如此调用: a numpy.searchsorted(vs 阅读全文

posted @ 2024-08-18 11:52 norsd 阅读(5) 评论(0) 推荐(0) 编辑

怎样判断一个exe可执行程序(dll文件)是32位的还是64位的?
摘要:https://blog.csdn.net/chenjianqi0502/article/details/79034403 怎样判断一个exe可执行程序(dll文件)是32位的还是64位的? 简便方法: 直接用记事本或者notepad++打开exe文件(dll文件),会有很多乱码,不要头疼,接下来只 阅读全文

posted @ 2024-08-16 17:09 norsd 阅读(88) 评论(0) 推荐(0) 编辑

Python enum 与 int 之间的转换
摘要:class eOperator(enum.Enum): unknown = 0 equal = 1 gt = 2 gte = 3 lt = 4 lte = 5 注意千万不要写成: class eOperator(enum.Enum): unknown = 0, equal = 1, gt = 2, 阅读全文

posted @ 2024-08-14 22:11 norsd 阅读(36) 评论(0) 推荐(0) 编辑

numpy mat 与 matrix 函数的区别
摘要:Reference: Here 简单的说: Tmn = mat(vTmn) 如果vTmn是 matrix或者ndarray则: 此时Tmn和vTmn指向同一个对象 而 Tmn = matrix(vTmn) Tmn是一个全新的对象 阅读全文

posted @ 2024-08-13 09:24 norsd 阅读(5) 评论(0) 推荐(0) 编辑

MongoDb Windows 环境下 c++ driver 安装流程
摘要:安装boost 1.60 位置: c:\boost_1_60_0下载安装mongo c dirver http://mongoc.org/?jmp=docs#documentation http://mongoc.org/libmongoc/current/installing.html Build 阅读全文

posted @ 2024-08-13 08:16 norsd 阅读(28) 评论(0) 推荐(0) 编辑

使用C++11和相关驱动访问MongoDb
摘要:#include <cstdio> #include <iostream> #include <bsoncxx/array/view.hpp> #include <bsoncxx/builder/stream/document.hpp> #include <bsoncxx/json.hpp> #in 阅读全文

posted @ 2024-08-13 08:16 norsd 阅读(16) 评论(0) 推荐(0) 编辑

Linux CentOS yum 更换源
摘要:Reference: blog.csdn.net/weixin_53502673/article/details/124869083 1、yum源进行备份 进入到yum源的配置文件中 执行命令如下:cd /etc/yum.repos.d 将yum源进行备份:mv Centos-Base.repo C 阅读全文

posted @ 2024-08-12 11:34 norsd 阅读(27) 评论(0) 推荐(0) 编辑

c# 如何使自建UserControl中的子控件可以在设计模式Design Mode中被访问,设置,添加孙控件
摘要:reference: https://blogs.msdn.microsoft.com/subhagpo/2005/03/21/how-can-i-drop-controls-within-usercontrol-at-design-time/ Assembly 添加 Windows.Design. 阅读全文

posted @ 2024-08-11 09:05 norsd 阅读(8) 评论(0) 推荐(0) 编辑

MongoDb 使用 Config
摘要:Config文件是 YAML 格式, 不能用Tab 我为了实现确定监听Ip以及port写了一个非常简单的Config文件: mongodb.cfg net: port: 27017 bindIp: 127.0.0.1 保存在了bin目录下 随后在regedit Computer\HKEY_LOCAL 阅读全文

posted @ 2024-08-07 15:57 norsd 阅读(7) 评论(0) 推荐(0) 编辑

MongoDb释放磁盘空间
摘要:版本: 2.6.7 MongoDb Collection 被删除后,磁盘空间并没有释放,必须调用 repairDatabase mongoduse DataBaseNamedb.auth(user, password) 如果正确返回 1db.repairDatabase() 等待一些时间(大约1分钟 阅读全文

posted @ 2024-08-06 06:11 norsd 阅读(17) 评论(0) 推荐(0) 编辑

Linux Centos 查看CPU信息,服务器厂商信息
摘要:ref: https://blog.csdn.net/baidu_19348579/article/details/125045032 查看cpu信息: lscpu 查看服务器信息: dmidecode | grep "System Information" -A9 | egrep "Manufac 阅读全文

posted @ 2024-08-05 08:45 norsd 阅读(8) 评论(0) 推荐(0) 编辑

WPF ListView 实现根据 ItemSource 中对象的属性设置控件 Foreground或者BackgroundColor
摘要:xaml: <ListView Grid.Row="0" Grid.Column="2" Grid.RowSpan="3" x:Name="listBoxIds" SelectionMode="Single"> <ListView.ItemTemplate> <DataTemplate> <Text 阅读全文

posted @ 2024-08-02 14:05 norsd 阅读(11) 评论(0) 推荐(0) 编辑

c++.net 编译错误: C2338:two-phase name lookup is not supported for C++/CLI, C++/CX, or OpenMP...
摘要:c++.net 编译错误: C2338:two-phase name lookup is not supported for C++/CLI, C++/CX, or OpenMP 在Project的 Property页面中, C/C++, Language, Conformance mode: 调整 阅读全文

posted @ 2024-08-02 02:54 norsd 阅读(19) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示