原创 編譯libvlc。。。

https://wiki.videolan.org/Win32Compile按照官網教程,安裝所需工具,參考 :http://qjw.qiujinwu.com/blog/2014/12/08/cross_build_vlc_in_linu

原创 ERROR: Cannot find configuration directory "/xxxx/xxxx/xxxxx/hadoop-x.x.x/conf"

新檢出的hadoop, yarn version: Hadoop 3.0.0-SNAPSHOT Subversion git://git.apache.org/hadoop-common.git -r 42a61a4fbc88303913

原创 自己編譯的win版本hadoop

自己編譯的windows版本hadoop http://pan.baidu.com/s/1c0EOedU 密碼:nbpd hadoop2.5.0 java1.7.0_65 win7 64位 cygwin2.850 64bit 默認配置的h

原创 根據字符串類名動態創建對象

原文地址:http://blog.csdn.net/dadalan/article/details/4037510 #ifndef REFLECT_H #define REFLECT_H class ClassDef; class __C

原创 Adb(Android debug bridge)調試橋

http://blog.sina.com.cn/s/blog_5cf546320100jn0h.html 按照Android SDK配的文檔安裝好SDK,使用的命令在sdk目錄下tools目錄,將其設置入環境變量,即可在命令行使用a

原创 RGB 24和YUY2相互轉換

<span style="font-family: Arial; background-color: rgb(255, 255, 255);">YUY2經常用於電視制式以及許多攝像頭的輸出格式.而我們在處理時經常需要將其轉化爲RGB進

原创 常用文件路徑和文件名處理函數

路徑截斷與合併函數   GetModuleFileName 得到模塊路徑名 PathRemoveArgs 去除路徑的參數 PathRemoveBackslash 去除路徑最後的反斜槓“\” PathAd

原创 靜態assert

//主模板 template<bool> void GlobalStaticAssert(void); // 完全特化 template<> void GlobalStaticAssert<true>(void); // 輔助宏 #def

原创 獲取已經安裝軟件列表

#include <stdio.h> #include <tchar.h> #include <windows.h> #include <shlobj.h> #include <shappmgr.h> DECLARE_INTERFACE

原创 內存泄露檢測

VC內存泄露檢查方法 介紹:  動態分配、回收內存是C/C++編程語言一個最強的特點,但是中國哲學家孫(Sun Tzu,我不知道是誰?那位知道?) 指出,最強的同時也是最弱的。這句話對C/C++應用來說非常正確,在內存處理出錯的地方

原创 Could not find or load main class org.apache.hadoop.util.VersionInfo

搭建 hadoop,總是報Could not find or load main class org.apache.hadoop.util.VersionInfo錯誤,糾結好久,終於解決,但是不知道爲什麼,方法如下 you can

原创 error: C++ preprocessor "/lib/cpp" fails sanity check

checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check

原创 protobuf摘錄

一種自動反射消息類型的 Google Protobuf 網絡傳輸方案 protobuf:根據類型名創建對象 https://github.com/chenshuo/recipes/blob/master/protobuf/descript

原创 Unraveling the Mysteries of Writing a Winsock 2 Layered Service Provider

http://blog.1x1y.com.cn/greatdong/entry/200705125 Unraveling the Mysteries of Writing a Winsock 2 Layered Service Prov

原创 Windows 7程序開發系列之一(任務欄篇)

http://blog.csdn.net/ntwilford/article/details/5623744     Windows 7 引入了很多新特性,其中最直觀的莫過於用戶界面上的變化。很多人也因爲不能適應這種變化而回到了XP。但