上一页 1 2 3 4 5 6 7 ··· 48 下一页

2020年4月13日

grab设计难点

摘要: grab设计难点 Background 抓图模块要实现的几个目标 1. 并行处理,一边抓图一边处理 2. 图优化,以删除冗余操作 可是现在设计的api用起来没那么方便,具体体现在 1. 并行处理不完美,体现在用callback实现事件等待机制,这个callback有局限性 1. 无法超过64个事件( 阅读全文

posted @ 2020-04-13 19:20 cutepig 阅读(217) 评论(0) 推荐(0) 编辑

提高代码质量方法

摘要: 提高代码质量方法 [TOC] 读书 模式、trick、“最佳实践”。原则,DRY. 设计模式相关书籍 Separation of concern, least knowledge/assumption 《Code Complete》 《Refactoring》 《Clean Code》 《think 阅读全文

posted @ 2020-04-13 18:29 cutepig 阅读(475) 评论(0) 推荐(0) 编辑

函数参数的讨论

摘要: 函数参数的讨论 函数准则 无副作用准则 函数参数是不是越少越好, 1. 如果逻辑需要它们,那么它们也是必需的...只要正确地设置了格式并对其进行了注释以提高可读性, 长参数列表根本不会让我担心 2. 较大的参数列表 可能表明您的程序可能结构不正确 可能需要大量参数的 函数只是试图做太多事情 ,应该分 阅读全文

posted @ 2020-04-13 18:28 cutepig 阅读(243) 评论(0) 推荐(0) 编辑

redirect-windows-cmd-stdout-and-stderr-to-a-single-file

摘要: https://stackoverflow.com/questions/1420965/redirect windows cmd stdout and stderr to a single file You want: dir a.txt 2 &1 The syntax 2 &1 will redi 阅读全文

posted @ 2020-04-13 12:43 cutepig 阅读(146) 评论(0) 推荐(0) 编辑

2020年4月12日

rust 多文件工程

摘要: rust 多文件工程 调用另外一个文件testDefault里的函数 阅读全文

posted @ 2020-04-12 14:31 cutepig 阅读(1524) 评论(0) 推荐(0) 编辑

rust: 默认初始化,函数重载

摘要: rust: 默认初始化,函数重载 默认初始化 如下 函数重载 rust本身不支持函数重载,但是可以用泛型trait实现类似于重载的效果 如下, 阅读全文

posted @ 2020-04-12 14:29 cutepig 阅读(4088) 评论(0) 推荐(1) 编辑

2020年4月10日

VSCode如何格式化所有文件

摘要: VSCode如何格式化所有文件 You can use a extension called ”Format Files”. ”Use: Open command pallette (Ctrl+Shift+P) & enter "Format Files" Create keybinding to 阅读全文

posted @ 2020-04-10 21:11 cutepig 阅读(5856) 评论(0) 推荐(0) 编辑

*More C++ Idioms*

摘要: More C++ Idioms Table of Contents "[edit" ] Note: synonyms for each idiom are listed in parentheses. 1. "Address Of" " " 2. "Algebraic Hierarchy" " " 阅读全文

posted @ 2020-04-10 16:06 cutepig 阅读(202) 评论(0) 推荐(0) 编辑

# asio run vs poll

摘要: asio run vs poll discussions Using instead of is perfectly acceptable. The difference is explained in the "documentation" The poll() function may also 阅读全文

posted @ 2020-04-10 16:00 cutepig 阅读(216) 评论(0) 推荐(0) 编辑

vscode如何设置cpp代码格式

摘要: vscode如何设置cpp代码格式 How to customize your own coding style rule Please install your "VSCode" and Extension "C/C++ for Visual Studio Code" first I would 阅读全文

posted @ 2020-04-10 14:48 cutepig 阅读(1188) 评论(0) 推荐(0) 编辑

rust多线程和异步编程

摘要: rust多线程和异步编程 多线程 异步编程 rust // blocks the current thread until the provided future has run to // completion. Other executors provide more complex behav 阅读全文

posted @ 2020-04-10 13:58 cutepig 阅读(2110) 评论(0) 推荐(0) 编辑

Rust: VSCode debug设置

摘要: Rust: VSCode debug设置 前提 1. 切换到msvc toolchain by 步骤 Install Rust and VS Code This should go without saying. "Install Rust" "Install Visual Studio Code" 阅读全文

posted @ 2020-04-10 12:29 cutepig 阅读(3218) 评论(0) 推荐(0) 编辑

VSCode如何用快捷键清空terminal内容?

摘要: VSCode如何用快捷键清空terminal内容? https://stackoverflow.com/questions/48713604/how can i clear the terminal in visual studio code Open up the with Ctrl+K, Ctr 阅读全文

posted @ 2020-04-10 11:44 cutepig 阅读(6660) 评论(0) 推荐(0) 编辑

2020年4月9日

a-practical-guide-to-writing-technical-specs

摘要: [TOC] https://stackoverflow.blog/2020/04/06/a practical guide to writing technical specs/?utm_source=Iterable&utm_medium=email&utm_campaign=the_overfl 阅读全文

posted @ 2020-04-09 20:15 cutepig 阅读(293) 评论(0) 推荐(0) 编辑

2020年4月8日

完美转发

摘要: https://eli.thegreenplace.net/2014/perfect forwarding and universal references in c/ //https://www.zhihu.com/question/48367350 https://www.cnblogs.com 阅读全文

posted @ 2020-04-08 22:28 cutepig 阅读(113) 评论(0) 推荐(0) 编辑

2020年3月8日

rust: Typical multi thread patterns

摘要: ```rustuse std::sync::Mutex;use std::sync::Arc;use std::{thread};fn main() { // Typical multi thread patterns let data = Arc::new(Mutex::new(vec![1u32, 2, 3])); let mut handles = vec![]; f... 阅读全文

posted @ 2020-03-08 11:17 cutepig 阅读(157) 评论(0) 推荐(0) 编辑

windows图形编程 - 这本书很牛

摘要: ![](https://img2020.cnblogs.com/blog/23777/202003/23777-20200308005231068-908233059.png) 阅读全文

posted @ 2020-03-08 00:53 cutepig 阅读(625) 评论(0) 推荐(0) 编辑

2020年3月7日

MyVisLib

摘要: Phase设计 1.Demo能够简单应用。需要有简单的gui+算法 a)Gui要能显示图像和graphics b)算法要有alignment和HI c)抓图:软件trigger d)硬件:具有一套基本的配置可以用来demo的 2.完善的自有lib,包含gui+算法+框架 a)Gui要能显示图像,放大 阅读全文

posted @ 2020-03-07 23:50 cutepig 阅读(104) 评论(0) 推荐(0) 编辑

机器视觉行业分析

摘要: 机器视觉行业分析 市场份额 机器视觉有约1/5的份额在深圳,其次是上海和苏州,这是halcon学习论坛调查得出的结果 软件halcon或者visionPro 光源 国外的光源厂商主要就是日本CCS和美国Ai等了,可能CCS的市场宣传和推广做的更好一些。国内的厂商在整个领域进入较早,技术难度加上性价比 阅读全文

posted @ 2020-03-07 23:49 cutepig 阅读(434) 评论(0) 推荐(0) 编辑

2020年2月6日

lua sample code analysis

摘要: What is a meta table a meta table has a __name attr whose value is name of metatable a meta table is stored in LUA_REGISTRYINDEX whose key is its name 阅读全文

posted @ 2020-02-06 15:37 cutepig 阅读(327) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 48 下一页

导航