2014年12月24日
摘要: 1. 基本操作 http://www.bootcss.com/p/git-guide/ 删除远程分支devel:# git push --delete origin devel 或者 #git push origin :devel 删除tag:#git push origin --delet... 阅读全文
posted @ 2014-12-24 20:41 sun_kang 阅读(152) 评论(0) 推荐(0) 编辑
2011年5月31日
该文被密码保护。 阅读全文
posted @ 2011-05-31 09:48 sun_kang 阅读(1) 评论(0) 推荐(0) 编辑
2011年5月25日
摘要: NT kernel structures(xp_sp3)The following source code can be very useful when you are debuging kernel & user objects under either ring0 or ring3 within Windows XP sp3. (note: you'd better verify it using dt -b !ntXXX within windbg)To use it, pleasecopy the following codeto a header file, nam 阅读全文
posted @ 2011-05-25 21:45 sun_kang 阅读(1429) 评论(0) 推荐(0) 编辑
2011年5月24日
摘要: There are many reasons why sometimes you'd like to run some code before, or after, the main function of a program or DLL (main, WinMain, and DllMain are equivalent for this article, so I will generalize them as "the main function" from now on). This is not as simple in C as it is in C+ 阅读全文
posted @ 2011-05-24 15:53 sun_kang 阅读(2783) 评论(1) 推荐(0) 编辑
2011年5月20日
摘要: Memory leak detector(C++)This is a simple solution for memory leak detector.For any C++ software source under windows, please follow these steps: 1. You need to put MemoryTracker.h and MemoryAllocateTracker.h into include folder, and force all *.cpp file to include MemoryTracker.h first(when using M 阅读全文
posted @ 2011-05-20 15:16 sun_kang 阅读(2109) 评论(0) 推荐(0) 编辑
摘要: SOLID 软件设计原则InitialStands for (acronym)ConceptSSRPSingle responsibility principle The notion that an object should have only a single responsibility. OOCPOpen/closed principle The notion that “software entities … should be open for extension, but closed for modification”. LLSPLiskov substitution pri 阅读全文
posted @ 2011-05-20 11:46 sun_kang 阅读(583) 评论(0) 推荐(0) 编辑
2011年5月19日
摘要: NT kernel resourceshttp://www.alex-ionescu.com/http://doxygen.reactos.org/http://www.alex-ionescu.com/wloo-talk.pdfIntroduction to NT Internals.pdfhttp://www.openrce.org/http://www.osronline.comNT kernel resource linkshttp://msdn.microsoft.com/en-us/magazine/default.aspxhttp://www.nondot.org/sabre/o 阅读全文
posted @ 2011-05-19 15:07 sun_kang 阅读(302) 评论(0) 推荐(0) 编辑
2011年5月17日
摘要: If you write “int i;” in C++, i’s type seems obvious: int. If you write “const int i;”, i’s type seems equally obviously to be const int. Often, these types are exactly what they seem to be, but sometimes they’re not. Under certain circumstances, C++ treats non-const types as const, and under others 阅读全文
posted @ 2011-05-17 17:28 sun_kang 阅读(376) 评论(0) 推荐(0) 编辑
摘要: Let's say that your program has a shared log file object. The log file is likely to be a popular object; lots of different threads must be able to write to the file; and to avoid corruption, we need to ensure that only one thread may be writing to the file at any given time.Quick: How would you 阅读全文
posted @ 2011-05-17 10:59 sun_kang 阅读(386) 评论(0) 推荐(0) 编辑
2011年5月16日
摘要: What Every Programmer Should Know About Memorywww.akkadia.org/drepper/cpumemory.pdf 6 What Programmers Can DoAfter the descriptions in the previous sections it is clear that there are many, many opportunities for programmers to influence a program's performance, positively or negatively. And thi 阅读全文
posted @ 2011-05-16 13:26 sun_kang 阅读(2169) 评论(0) 推荐(0) 编辑
2011年5月12日
摘要: C++ 0x standard [2011 draft]2011 Proposed Draft Technical Report on C++ Library ExtensionsC++0x FAQ C++0x Core Language Features In VC10Part1: Lambdas, auto, and static_assertThe Visual C++ compiler in the Microsoft Visual Studio 2010 September Community Technology Preview (CTP) contains support for 阅读全文
posted @ 2011-05-12 00:08 sun_kang 阅读(1214) 评论(0) 推荐(0) 编辑
2011年5月6日
摘要: SOS Debugging Extension (SOS.dll)·.NET Framework 4 ·.NET Framework 3.5 The SOS Debugging Extension (SOS.dll) helps you debug managed programs in the WinDbg.exe debugger and in Visual Studio by providing information about the internal common language runtime (CLR) environment. ![command] [o 阅读全文
posted @ 2011-05-06 13:46 sun_kang 阅读(506) 评论(0) 推荐(0) 编辑
摘要: ­ Inside NT's Asynchronous Procedure CallBy Albert Almeida, November 01, 2002Asynchronous Procedure Calls (APCs) are a fundamental building block in NT's asynchronous processing architecture. Learn how NT processes APCs and documents the exported NT functions available to device driver 阅读全文
posted @ 2011-05-06 13:22 sun_kang 阅读(1552) 评论(0) 推荐(0) 编辑
摘要: Reversing Microsoft Visual C++ Part I: Exception HandlingAbstractMicrosoft Visual C++ is the most widely used compiler for Win32 so it is important for the Win32 reverser to be familiar with its inner working. Being able to recognize the compiler-generated glue code helps to quickly concentrate on t 阅读全文
posted @ 2011-05-06 12:56 sun_kang 阅读(2839) 评论(0) 推荐(0) 编辑
摘要: Debugging Memory Related Issues in .Net ApplicationUsing WinDBG and SOSContentsIntroduction What Do I Mean By Bad Shaped Application? Why WinDBG + SOS? Things to Understand Before Using WinDBG and SOS What is WinDBG? What Can WinDBG Do? What is SOS.dll (Son of Strike)? Debugging Essentials How to Co 阅读全文
posted @ 2011-05-06 10:56 sun_kang 阅读(574) 评论(0) 推荐(0) 编辑
摘要: Garbage Collection: Automatic Memory Management in the Microsoft .NET FrameworkJeffrey RichterLevel of Difficulty 1 2 3 SUMMARY Garbage collection in the Microsoft .NET common language runtime environment completely absolves the developer from tracking memory usage and knowing when to free memory. H 阅读全文
posted @ 2011-05-06 09:51 sun_kang 阅读(705) 评论(0) 推荐(1) 编辑
2011年5月5日
摘要: ACM算法相关资料一:知识点数据结构:1,单,双链表及循环链表2,树的表示与存储,二叉树(概念,遍历)二叉树的 应用(二叉排序树,判定树,博弈树,解答树等)3,文件操作(从文本文件中读入数据并输出到文本文 件中)4,图(基本概念,存储结构,图的运算)数学知识1,离散数学知识的应用(如排列组合、简单的图论,数理逻辑)2,数论知识3,线性代数4,组合代数5,计算几何二 算法1,排序算法(冒抛法,插入排序,合并排序,快速排序,堆排序)2,查找(顺序查找,二分发)3,回溯算法4,递归算法5,分治算法6,模拟法7,贪心法8,简单搜索算法(深度优先,广度优先),搜索中的剪枝,A*算法9,动态规划的思想及基 阅读全文
posted @ 2011-05-05 17:19 sun_kang 阅读(5816) 评论(1) 推荐(8) 编辑
2011年5月4日
摘要: High level overviewThe class diagram shows the Root class of OGRE and all of the Manager classes that gives access to the different subsystems. The Root holds a reference to the current SceneManager and to an enumerator that allows other types of scene graphs to be loaded. The RenderSystem is an abs 阅读全文
posted @ 2011-05-04 18:49 sun_kang 阅读(394) 评论(0) 推荐(0) 编辑
摘要: A breakpoint is a mechanism to pause a program execution for further analysis during runtime to identify run-time errors. Pausing is required to examine the run-time values of variables. Examining these variables is possible only if they are valid in the current context. Various options will be prov 阅读全文
posted @ 2011-05-04 16:05 sun_kang 阅读(3006) 评论(0) 推荐(0) 编辑
2011年4月29日
摘要: Win32 结构化异常处理(SEH)探秘原著:Matt Pietrek原文出处:A Crash Course on the Depths of Win32? Structured Exception Handling 下载源代码 本文假设你熟悉 C++,Win32 摘要 Win32 结构化异常处理其核心是操作系统提供的服务,你能找到的关于 SEH 的所有文档都是描述一个特定的编译器运行时库,这个运行库包装着操作系统实现。在本文中,我将一层一层对 SEH 进行剥离,以便展现其最基本的概念。 在 Win32 操作系统提供的所有功能中,使用最广泛但最缺乏文档描述的也许就是结构化异常处理了(SEH), 阅读全文
posted @ 2011-04-29 16:53 sun_kang 阅读(2830) 评论(2) 推荐(2) 编辑