- 博客(12)
- 资源 (34)
- 收藏
- 关注
转载 Win8升级安装后删除windows.old
Open Disk Cleanup by clicking the Start button . In the search box, type Disk Cleanup, and then, in the list of results, clickDisk Cleanup. If you're prompted to choose a drive, click the driv
2012-09-26 14:17:00 1241
原创 [C/C++] RGBA数组生成Windows下的ico文件
Widows下只认.ico格式为程序图标,这是一种源自bmp的图片格式。ico中的颜色可以通过color table来表示也可以直接通过RGBA数组表示。ico文件的格式见官方文档:http://msdn.microsoft.com/en-us/library/ms997538.aspxhttp://msdn.microsoft.com/en-us/library/windows/
2012-09-25 15:04:01 2894
原创 [C/C++] Windows下模拟鼠标右键操作
原文地址:http://blog.csdn.net/ariesjzj/article/details/8016476用Windows提供的Shell类,用户可以在C++中查询和执行鼠标右键的弹出菜单。如下面的例子通过模拟鼠标右键操作来达到将notepad.exe pin到taskbar的目的。注意其中的项名是带快捷键符的。#define _CRT_SECURE_NO_WAR
2012-09-25 13:05:53 6455
原创 OpenCV在Ubuntu上的安装及《Learning OpenCV》书例编译
在Ubuntu 10.04上安装openCV很方便:#apt-get install opencv-doc libcv4 libhighgui4 libcvaux4 libcv-dev libcvaux-dev libhighgui-dev同时最好顺便把ffmpeg的开发文件也装上。 然后编译《Learning OpenCV》一书的例子试一把,理论上把Makefile.txt改
2012-09-23 19:11:20 1560
转载 史上最著名的10个思想实验
思想实验是一种精神上的观念或假想,通常和谜语相似,是哲学家和科学家用以了解什么是大众思想的一种简单方法。他们的运用在如哲学和理论物理(理论物理无需做实验)等抽象领域是最为广泛的。他们像是为思想准备的一份大餐,最终给出复杂的答案。即使思想实验本身也会有无法理解的时候,这并不奇怪。下面是10个著名的思想实验,还有他们所要表达的哲学、科学和伦理意义。 10.电车难题(The Trolley
2012-09-22 22:02:52 2860
原创 并查集(disjoint-set forests)
原文地址:http://blog.csdn.net/ariesjzj/article/details/8001597举个简单应用的例子。现在社交网站这么流行,假设现在想知道两个人之间是否存在间接好友关系(A和B为好友,B和C为好友,A和C为间接好友),有什么好方法呢?并查集就是用于这类查询问题的有效数据结构,正如其名(disjoint set),并查集本质上是一个集合,集合的元素为
2012-09-20 20:41:09 5643
原创 Qemu的翻译框架及调试工具
原文地址:http://blog.csdn.net/ariesjzj/article/details/7972755Qemu中翻译的主要框架位于cpu-exec.c中的cpu_exec()函数。For (;;) { If (setjmp(env->jmp_env) == 0) { // exception handling Fo
2012-09-19 18:55:07 3016
原创 Visual studio中编译和使用libpng和zlib
libpng用于图片处理,zlib用于压缩。两者密切相关,libpng依赖zlib。 编译库:1. 先下载 libpng-1.5.12.tar.gz(http://sourceforge.net/projects/libpng/files/libpng15/1.5.12/)和libz(http://zlib.net/zlib-1.2.7.tar.gz),将libpng解压,如C:\wo
2012-09-14 11:12:28 9257
原创 Trie(字典)树
原文地址:http://blog.csdn.net/ariesjzj/article/details/7969307 Trie树,又称前缀树,字典树,是字符串处理,尤其是匹配问题中的一大利器。其特点是结点表示的字符不是直接存在结点中,而是由其位置决定。Trie树的root节点为空结点,从root节点到每个结点的路径上的字符组成的字符串为该结点所代表的字符串。每个结点的两个子结点必不相同,因
2012-09-11 23:19:47 2304
转载 函数的调用规则(__cdecl,__stdcall,__fastcall,__pascal)
关于函数的调用规则(调用约定),大多数时候是不需要了解的,但是如果需要跨语言的编程,比如VC写的dll要delphi调用,则需要了解。microsoft的vc默认的是__cdecl方式,而windows API则是__stdcall,如果用vc开发dll给其他语言用,则应该指定__stdcall方式。堆栈由谁清除这个很重要,如果是要写汇编函数给C调用,一定要小心堆栈的清除工作,如果是__cde
2012-09-08 21:11:41 927
原创 Windows中根据进程名找到进程并杀死
#include #include #include #include int SearchProcessByName(const char * process_name, int kill_if_found){ int found = 0; PROCESSENTRY32 entry; entry.dwSize = sizeof(PROCESSENTRY32);
2012-09-07 09:21:39 4000 1
原创 博弈算法-Nim及变体
Nim游戏的定义一般如下:有若干堆数量有限的石子,两个玩家轮流取石子,每次可以选择一堆石子并拿走任意个石子,最后一个拿石子的人判赢。要解决这个一般问题,首先有两个基本概念:Winning position:从该状态开始存在策略可以必胜。Losing position:从该状态开始不存在策略可以胜利。记当前状态执行某一动作后进入下一状态,则有下面的解题基本原则:1.
2012-09-05 22:07:26 2225
The.Art.of.Multiprocessor.Programming.Source.Code
2012-02-14
Windows Internals Fifth Edition
2011-01-28
Data.Mining.Practical.Machine.Learning.Tools.and.Techniques.Second.Edition
2010-09-08
Principles of Data Mining
2010-09-08
Understanding Search Engines: Mathematical Modeling and Text Retrieval
2010-09-08
Mining the Web-Discovering Knowledge from Hypertext Data
2010-09-08
Search Engines, Link Analysis, and User’s Web Behavior
2010-09-08
Professional Linux Kernel Architecture
2010-08-29
《Dynamic Programming and Optimal Control》 Vol 2
2010-07-05
《The nature of statistical learning theory》Vapnik V.N.
2009-10-25
《Elements of the Theory of Computation》
2009-10-02
《The Design of The Unix Operating System》(unix操作系统设计)
2009-10-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人