自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(66)
  • 收藏
  • 关注

转载 名词解释 IWA, TLS, SPN, MITM

Credential forwarding:domain credentials that are obtained by an attacker can be used to log on to other services that the victim is known to have access to. The attacker could then acquire permissi

2012-07-16 19:58:17 1009

原创 安装SQL Server2008遇到的问题:Performance counter registry hive consistency check failed

在Windows7的机器上装SQL Server2008,进行系统配置检查时,出现一个fail:Performance counter registry hive consistency check -status: Failed. 点击红色的“Failed”,有一个链接:http://support.microsoft.com/kb/300956/ How to manually rebuild

2012-06-13 12:20:31 5719 1

原创 在IIS中承载WCF服务

MSDN 原文:承载服务:http://msdn.microsoft.com/zh-cn/library/ms730158托管应用程序中的自承载(如上一篇WCF入门中演示的那样);托管Windows服务(用Installutil.exe 安装);IIS(本文);WAS(Windows进程激活服务) 如何:在IIS中承载WCF服务 http://msdn.microsoft.com/

2012-06-11 14:58:24 3389

原创 WCF 入门

WCF:Windows Communication Foundation什么是WCF by MSDN:http://msdn.microsoft.com/zh-cn/library/ms731082.aspx入门教程 by MSDN:http://msdn.microsoft.com/zh-cn/library/ms734712.aspx WCF 是用于构建面向服务的应用程序的框架

2012-06-11 14:38:52 923

原创 REST 简介

推荐文章:A Brief Introduction to REST (http://www.infoq.com/articles/rest-introduction)好消息还有中文版 深入浅出REST ! http://www.infoq.com/cn/articles/rest-introduction概括如下。REST: REpresentational State Tra

2012-06-08 16:41:06 821

转载 Robocopy返回值

[摘自] http://blog.csdn.net/kapuliyuehan/article/details/6738025 Robocopy Errorlevel Return Codes (found in robocopy.doc)The return code from Robocopy is a bit map, defined as follows:0×10 Ser

2012-01-29 17:54:41 2656

原创 批处理文件中的AND

批处理文件中的ANDhttp://www.computerhope.com/forum/index.php?topic=73127.0

2012-01-29 17:54:10 405

原创 SS之IIS Smooth Streaming Transport Protocol 消息交互

IIS Smooth Streaming Transport Protocol [2009]http://www.iis.net/community/files/media/smoothspecs/[MS-SMTH].pdf另外还找到一篇[MS-SSTR] Smooth Streaming Protocol Specification, 感觉跟上面链接的内容几乎一样,但是时间是2011年1

2012-01-02 12:29:38 1963

原创 SS之发展史和Technical Overview

IIS Smooth Streaming Technical Overview http://learn.iis.net/page.aspx/626/smooth-streaming-technical-overview/主要讲了SS的发展史。这篇是文档的记录笔记,很多东西总是看的时候很清楚,过后一段时间不接触就能忘的一干二净。Smooth Streaming: HTTP-based

2012-01-02 00:05:21 1732 1

原创 ISO 13818-1

Information technology_Generic coding of moving pictures and associated audio information: Systems http://blog.csdn.net/afeng0007/article/details/6765294

2011-12-31 21:03:43 166

原创 SS之创建Smooth Streaming web server

Smooth Streaming is the Microsoft implementation of adaptive streaming technology, which is a form of Web-based media content delivery that uses standard HTTP. Instead of delivering media as full-file

2011-12-30 16:50:27 2841

原创 查看Windows Error code的意思

用GetLastError()返回调用线程的last error code 值,通常是一个看不懂什么意思的数字。下面几种方法可以将错误代码转成可读的错误信息。假设lastErr = -21470247651. c:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinError.h 里面是error code定义,有注释可以看。2

2011-12-29 14:50:53 1296

原创 Linux下socket编程简介

网络的socket传输是一种特殊的IO操作,server在特定的地址(IP地址+端口)监听请求,看有没有人来连接我啊。client可以向这个地址发送请求,server看到有人来连接我了,接受请求并建立连接和这个client的连接,然后一边和这个client可以相互发送数据,一边继续在地址监听,还有没有人想连接我啊。    常用的socket类型有面向连接的流式SOCK_STREAM (对应于T

2011-12-29 13:59:31 775

原创 Thread Id and Thread Handle

关于Thread id和Thread handle的区别,这篇文章讲的很清楚:http://hi.bccn.net/space-21499-do-blog-id-17530.html简而言之,handle包含了访问权限的信息,使用handle来控制内核对象,而且一个内核对象可以对应多个handle。而Id只是一个全局唯一的标识符。 两者之间的相互转换:Handle -> I

2011-12-28 15:47:49 2617

原创 宏展开的步骤

宏展开在预处理中进行,觉得无非就是替换,很简单。最近遇到一个问题,看了一些关于嵌套宏展开的文章,处处皆学问啊!这三篇是英文的。The Macro Expansion ProcessMacro ssession of TheGNU C Preprocessor macro expansion algorithm 中文资料:The Macro Expansion Proce

2011-12-21 17:51:49 2397

原创 Linux 下安装wireshark

1. Unintall wireshark$sudo yum uninstall wireshark2. Install libpcap and libpcap-devel package$sudo yum install libpcap$sudo yum install libpcap-devel3. Open "Add/Remove Software", search fo

2011-12-20 11:44:22 976

原创 unsigned char:2

http://topic.csdn.net/u/20080716/21/09481f8f-8b7b-4f32-9d29-eed9d23ef6f5.html http://chenzhand1.blog.hexun.com/43413876_d.html http://blog.csdn.net/qq345168/article/details/6684610

2011-12-19 16:06:26 407

原创 用vector来转换string和unsigned char

vector中front函数返回vector中第一个元素的引用,而begin函数返回一个随机访问的迭代器,指向vector的第一个元素。back() 返回最后一个元素的引用,而end()返回一个指向vector末尾(最后一个元素之后)的迭代器。遍历的时候常常这么写: vector v; for(vector::iterator it; it = v.begin(); it != v.e

2011-12-18 23:37:14 11975

原创 delete 与 delete[]

我们都知道,用new申请的内存,需要对应的使用delete释放掉,不然会产生内存泄漏。new对应delete,new[] 对应delete[],如果new[] 和delete,会怎么样呢?1. 动态申请基本类型数组。int _tmain(int argc, _TCHAR* argv[]){ //Basic type int* pIntArray = new int[3];

2011-12-18 23:04:09 892

原创 Lazy loading and loading now

Relocation Processing Pasted from http://docs.oracle.com/cd/E19455-01/816-0559/6m71o2aeu/index.html> There are several waysof changing default (lazy bind) behaviour: Pasted fro

2011-12-12 15:01:45 97

原创 strict aliasing issue

http://dbp-consulting.com/tutorials/StrictAliasing.html http://cellperformance.beyond3d.com/articles/2006/06/understanding-strict-aliasing.html

2011-12-09 17:48:53 99

原创 wstring 和 wchar_t* 转换(处理const)

函数原型需要 wchar_t* 输入参数,而手边只有wstring类型,怎么转换? void Process(const unsigned char* pSrcChars, int srcSize, wchar_t* pDestChars, int* destSize){}int _tmain(int argc, _TCHAR* argv[]){ std::wstring

2011-12-07 16:12:33 11633

原创 ASCII, Unicode and UTF8 (Big endian and Little endian)

在网上看的一篇通俗易懂的文章:字符编码笔记:ASCII,Unicode和UTF-8http://www.ruanyifeng.com/blog/2007/10/ascii_unicode_and_utf-8.html [Big endian & Little endian]little endian和big endian是表示计算机字节顺序的两种格式,所谓的字节顺序指的是长度跨

2011-12-07 10:29:55 930

原创 Useful links about Linux/GCC/Cmake/C++

Static, Shared Dynamic and Loadable Linux Librarieshttp://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html Linux C++ library types:1. Static libraries(.a): Library of object cod

2011-12-01 20:12:02 977

原创 GCC Link

[ldd]ldd prints the shared libraries required by each program or shared library specified on the command line.类似Windows下depends.exe.[ld]- The GNU linker1. ld combines a number of object and ar

2011-12-01 19:43:44 2452

原创 GCC 编译 warnings

1. 编译选项-g:Generate debug information when compiling.2. 优化选项-O0:关闭所有优化选项。3. Warning:(GCC)1) Warning: multi-character character constantCould be suppressed by -Wno-multicharThere're three kind

2011-11-30 19:39:27 7259 1

原创 字符串输出的格式控制

关于printf, wprintf, %s, %S, %ls, %hs[1] printf Type Field Charactershttp://msdn.microsoft.com/en-us/library/hf4y5e3w(v=vs.71).aspxThe type character is the only required format field; it appears

2011-11-14 19:10:57 966

原创 关于runtime type information

看到一段code:#if defined _CPPRTTI const char* errorType = typeid(SomeClass).name();#else const char* errorType = "Unknown";#endif[_CPPRTTI ]http://msdn.microsoft.com/en-us/library/b0084kay(v

2011-11-09 16:34:41 1294

原创 Debug "somebool == true" 的陷阱

昨天在调试中,遇到了一个奇怪的问题,伪码如下:class SomeClass{public: int SomeMethod();private: bool _someBool;};int SomeClass::SomeMethod(){ int someInt; //1 someInt = _someBool ? 5 : 2; c

2011-11-09 09:22:36 560

原创 静态lib和全局变量初始化

程序链接静态lib时,会将使用到的code部分包含进最终的exe或dll中,如果lib中定义了全局变量,但这个全局变量并没有被其他code使用到,那么最终的exe/dll会执行这个全局变量的定义语句吗?[Windows 平台] VS2008创建TestLib工程,conf

2011-09-24 01:21:09 2153

原创 使用VNC远程登陆Win+Linux

http://www.realvnc.com/products/free/4.1/winvncviewer.htmlhttp://www.skullbox.net/vncserver.phphttp://www.linuxidc.com/Linux/2009-02/183

2011-08-31 17:23:53 685

原创 使用Synergy共享鼠标键盘

Synergy是个开源的软件,支持在一个局域网中的多台电脑之间共享鼠标键盘,支持Windows, Linux和Mac OS。http://synergy-foss.org/现在有2台电脑,分别命名为:LeftComputer 和 RightComputer,其位置关系如名

2011-08-29 13:41:54 3012

原创 C++ 托管扩展

C++托管扩展http://zh.wikipedia.org/wiki/Managed_Extensions_for_C%2B%2B C++/CLIhttp://zh.wikipedia.org/wiki/C%2B%2B/CLI Managed Extensions for C+

2011-07-26 17:20:34 781

原创 SSDP 简单服务发现协议

【参考】http://www.cnblogs.com/debin/archive/2009/12/01/1614543.html

2011-07-26 15:33:53 43764 3

原创 C++ 基础之拷贝构造函数

每个C++类只有一个析构函数,但可以有多个构造函数和多个赋值函数。其中构造函数包括默认构造函数(无参,或参数全有默认值),拷贝构造函数。在编程时,如果程序员不显式声明和定义上述函数,编译器将自动产生4个public inline的默认函数。形式为:A();A(const A&);

2011-07-22 11:27:11 1430

原创 C++基础之异常

使用 stack 的时候,有这样的困惑,为什么取栈顶元素的接口是这样的:#include #include int _tmain(int argc, _TCHAR* argv[]){ std::stack si; for (int i = 0; i < 1

2011-07-20 17:34:35 527

原创 C++基础之使用构造和析构函数保证成对出现

如果想要某些事情成对出现,使用构造函数和析构函数。 为保证线程同步/互斥,经常使用信号量、互斥量、临界区和事件。以临界区 CRITICAL_SECTION 为例,需要 InitializeCriticalSection 和 DeleteCriticalSectionEnterCr

2011-07-19 17:52:38 1313

原创 C++基础之TR1库的智能指针

Technical Report 1 是一份规范,描述加入C++标准程序的诸多新技能,以新的class templates 和 function templates 形式体现,针对的题目有哈希表,基于引用计数的智能指针,正则表达式等。大多数TR1机能是以Boost的工作为基础的。

2011-07-18 18:28:16 6812 1

原创 C++基础之boost库的智能指针

boost 库定义在namespace boost 中,包含头文件 #include 即可使用。 Boost库中包含了几种智能指针,本文重点讨论shard_ptr。【boost::scoped_ptr】跟std::auto_ptr一样涌来管理单个堆内存对象,但是独享所有权,且不

2011-07-18 16:36:53 5403

原创 C++基础之auto_ptr

【auto_ptr 的由来】    先看下面的代码。#define _CRTDBG_MAP_ALLOC#include #include #ifdef _DEBUG#define new new(_NORMAL_BLOCK, __FILE__, __LINE_

2011-07-13 17:32:36 724

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除