上一页 1 ··· 6 7 8 9 10 11 下一页
摘要: " Go语言程序的状态监控" Go是很实在的编程语言,从一开始就提供了很详细的运行状态信息。产品上线后的调优和排查疑难杂症都得靠这些状态信息。这边总结一些我们项目里用到的状态监控手段。 pprof Go自带了一个pprof工具,这个工具可以做CPU和内存的profiling,官方的博客... 阅读全文
posted @ 2014-05-15 22:36 scott_h 阅读(323) 评论(0) 推荐(0)
摘要: 指针 面试题 阅读全文
posted @ 2014-05-02 02:56 scott_h 阅读(579) 评论(0) 推荐(0)
摘要: 转自http://www.cnblogs.com/qq78292959/archive/2012/07/20/2600865.htmlEAX、ECX、EDX、EBX寄存器的作用一般寄存器:AX、BX、CX、DXAX:累积暂存器,BX:基底暂存器,CX:计数暂存器,DX:资料暂存器索引暂存器:SI、D... 阅读全文
posted @ 2014-05-02 01:57 scott_h 阅读(516) 评论(0) 推荐(0)
摘要: VS20051.OverridesOnInitDialog()在Class View选中 这个类,然后properties中点Message 旁边的Overrides, 添加OnInitDialog()2.Message选中RC资源 窗口,在properties中点Message添加OnCreate... 阅读全文
posted @ 2014-04-24 19:26 scott_h 阅读(347) 评论(0) 推荐(0)
摘要: ActiveX 添加测试工程1.新建工程MFC application,2.添加完毕,在main Dialog中, 右键[Insert Activex Control],选择你的ActiveX控件。3.选中你刚刚添加的控件,然后右键[add variable]m_ocx就是控件的instance ... 阅读全文
posted @ 2014-04-15 20:07 scott_h 阅读(3267) 评论(0) 推荐(0)
摘要: 介绍 http://zh.wikipedia.org/wiki/%E5%BF%AB%E9%80%9F%E6%8E%92%E5%BA%8F 用些里面的c++ 实现,感觉这个空间复杂度比较小。还挺好 int partition(int* array, int left, int right){ int 阅读全文
posted @ 2014-04-10 20:47 scott_h 阅读(225) 评论(0) 推荐(0)
摘要: 转载请著名作者和地址http://www.cnblogs.com/scotth/p/3645489.html1.关于 IO (fopen出现的错误 errorCode 183)相关知识点:《UNIX环境高级编程》 ====网上说的有点不靠谱,很多都是copy,paste,说的很乱,所以不敢拿来分析,... 阅读全文
posted @ 2014-04-10 20:38 scott_h 阅读(358) 评论(0) 推荐(0)
摘要: VP9 is an open and royalty free[3] video coding format developed by Google. VP9 had earlier development names of Next Gen Open Video (NGOV) and VP-Nex... 阅读全文
posted @ 2014-03-17 22:49 scott_h 阅读(1224) 评论(0) 推荐(0)
摘要: GDI HANDLE 内存泄漏 阅读全文
posted @ 2014-02-24 20:26 scott_h 阅读(1199) 评论(0) 推荐(0)
摘要: 各平台安装golang 阅读全文
posted @ 2014-01-08 01:43 scott_h 阅读(4105) 评论(0) 推荐(0)
摘要: http://bigasp.com/archives/486如何正确使用C++多重继承2011年06月17日 — Asp J 原创文章,转载请注明:转载自Soul Apogee本文链接地址:如何正确使用C++多重继承C++多重继承一直是一个让人搞不太清楚的一个问题,但是有时候为了实现多个接口,多重继承是基本不可避免,当然在Windows下我们有强大的COM来帮我们搞定这个事情,不过如果你想自己实现一套类似于COM的东西出来的时候,麻烦事情就来了。在COM里面,有两个很基础的,而且我们都会用到的特性:1. 纯虚接口:一般使用一个只有纯虚函数的类来作为接口2. 引用计数:在C++中一般都使用引用计 阅读全文
posted @ 2013-12-18 20:45 scott_h 阅读(435) 评论(0) 推荐(0)
摘要: linux网络编程之-----多播(组播)编程 转自 http://blog.csdn.net/jmq_0000/article/details/7095727什么是多播 单播用于两个主机之间的端对端通信,广播用于一个主机对整个局域网上所有主机上的数据通信。单播和广播是两个极端,要么对一个主机进行通信,要么对整个 局域网上的主机进行通信。实际情况下,经常需要对一组特定的主机进行通信,而不是整个局域网上的所有主机,这就是多播的用途。 多播,也称为“组播”,将局域网中同一业务类型主机进行了逻辑上的分组,进行数据收发的时候其数据仅仅在同一分组中进行,其他的主机没有加入此分组不能收发对应的数据。 多. 阅读全文
posted @ 2013-12-18 19:36 scott_h 阅读(2763) 评论(0) 推荐(0)
摘要: windows log outputdebugString 阅读全文
posted @ 2013-12-14 16:00 scott_h 阅读(368) 评论(0) 推荐(0)
摘要: 1.RGB宏报错RGB宏是这样的,#define RGB(r,g,b) ((COLORREF)(((BYTE)(r)|((WORD)((BYTE)(g))nTemp?nTemp+1:nTemp;3. 得到每行的窗口数量之后,就可以按照比例 1*1 , 2*2, 3*3, 4*4, 5*5, 6*6,... 阅读全文
posted @ 2013-11-15 11:28 scott_h 阅读(683) 评论(0) 推荐(0)
摘要: 你只是知道了解如何寻找内容就可以。 入门 《C++程序设计原理与实践》 《深入理解计算机系统(原书第2版)].(美)布莱恩特,奥哈拉伦》 《c++ primer》 《C++语言的设计和演化》 彻底搞定C指针 提高 《The C++ Programming Language c11》 《C++编程思想 阅读全文
posted @ 2013-11-01 19:03 scott_h 阅读(214) 评论(0) 推荐(0)
摘要: 刚装的Ubuntu,发现Broadcom无线网卡没工作,原来手贱,在liveCD 把wireless禁用了, ubuntu所以认为你机器,没有wireless模块,所以就没有安装wireless驱动相关。打开终端输入:sudo apt-get install bcmwl-kernel-sourceb43-fwcutte无线网卡可以用了转自http://blog.csdn.net/zyx6a/article/details/9006435 阅读全文
posted @ 2013-10-27 00:42 scott_h 阅读(290) 评论(0) 推荐(0)
摘要: 嗯,添加一个按钮和我们自己定义的成员变量 关联。方法1. 在*.rc 或者class 类视图中点击[add variable],就会自动生成DDX_Text(*,*)的内容及其IF方法2. 自己写在XXXDlg.cpp中这样定义DDX_Text(pDX, IDC_USER_NAME, m_UserN... 阅读全文
posted @ 2013-07-29 18:15 scott_h 阅读(924) 评论(0) 推荐(0)
摘要: http://www.gnu.org/manual/http://www.gnu.org/software/gdb/documentation/http://sourceware.org/gdb/current/onlinedocs/gdb/http://blog.csdn.net/haoel/ar... 阅读全文
posted @ 2013-07-05 13:10 scott_h 阅读(356) 评论(0) 推荐(0)
摘要: http://www.cplusplus.com/reference/algorithm/for_each/std::move()用于c++11http://www.cplusplus.com/reference/utility/move/c++98// for_each example#include // std::cout#include // std::for_each#include // std::vectorvoid myfunction (int i) { // function: std::cout myvector; myvector... 阅读全文
posted @ 2013-07-04 17:06 scott_h 阅读(400) 评论(0) 推荐(0)
摘要: template InputIterator find (InputIterator first, InputIterator last, const T& val){ while (first!=last) { if (*first==val) return first; ++first; } return last;}http://www.cplusplus.com/reference/algorithm/find/// find example#include // std::cout#include // std::find#include ... 阅读全文
posted @ 2013-07-04 16:55 scott_h 阅读(221) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 下一页