摘要: g++ -c filename.ccar crv lib + filename +.a filename.og++ -o run filename_main.o -LPath -lfilename 阅读全文
posted @ 2011-06-14 20:19 soulnearby 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 不是所有的东西都要设计好了才开始做,(想不清楚是自己能力不够?需求不明?)改变做事的方式,有个大概的方向后,不停的尝试。TryingandThinking! 阅读全文
posted @ 2011-06-10 11:07 soulnearby 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Google C++ Code Style#define DISALLOW_COPY_AND_ASSIGN( TypeName) \TypeName( const TypeName&); \void operator=( const TypeName&)DebugCode#define DEBUG#if defined( DEBUG)#define DebugCode( code_fragment ) { code_fragment }#else#define DebugCode( code_fragment )#endif 阅读全文
posted @ 2011-05-31 21:48 soulnearby 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Information ExplosionSearch -- Machine LearningRate -- HumanMethodology WHY WHAT WHATHOW HOW HOW [ WHO ] [ WHEN ] [ WHERE ] [ HOW MUCH ]Tips: 0 Sociology[Book1] --Antony Giddens[Book2] --David PopenoeTips: 1中国市场与美国市场存在的差别在于,美国是一个技术驱动型的市场,企业只要有先进的技术,获得成功的可能性很大;而中国是一个消费驱动型的市场,未必是最先进的技术,而是老百姓最需要的模式最容易获 阅读全文
posted @ 2011-05-30 12:53 soulnearby 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Boot ubuntu 8.04 from text mode:Change,/etc/X11/default-display-manager#/usr/sbin/gdmfalseThen, change resolution of text modeadd 'gva=773' after 'ro' in grub configure file 640x480 800x600 1024x768 1280x10248bit 769 771 773 77515bit 784 787 790 79316bit 785 788 791 79424bit 786 789 阅读全文
posted @ 2011-05-21 17:09 soulnearby 阅读(256) 评论(0) 推荐(0) 编辑
摘要: Template#include <iostream>using namespace std;template < typename TClassType >class TClass {public: template < typename TFuncType > TClass( TClassType var1, TFuncType var2) { mVar = var1 * var2; } template < typename TFuncType > TClass( TClassType var1, TFuncType var2, TFunc 阅读全文
posted @ 2011-05-13 15:45 soulnearby 阅读(132) 评论(0) 推荐(0) 编辑
摘要: server:1. add useradd user and set password, home directory, shell optionsuseradd username -d /home/username -s /bin/bashset passwordpasswd usernamecopy files to /home/username:The individual per-interactive-shell startup file. ~/.bashrcThe personal initialization file, executed for login shells. ~/ 阅读全文
posted @ 2011-05-11 00:07 soulnearby 阅读(130) 评论(0) 推荐(0) 编辑
摘要: http://help.eclipse.org/helios/index.jspWork together in the same branchTeam - Update: Update local files with remote files except local files modified.Team - Synchronize with Repository: Modified files appear in Synchronize view.If conflicts happen, you have three options:accept changes from remote 阅读全文
posted @ 2011-05-09 16:49 soulnearby 阅读(187) 评论(0) 推荐(0) 编辑
摘要: ObjectMost generally, an object is a region of memory that has type.const Qualifier"const type object" means object's type is type, and object is const. 由内而外的解析.const qualifierint ivar = 2;typedef int *PI;// the type of pi is PI = (int*), and pi is constconst PI pi = &ivar;// pi is 阅读全文
posted @ 2011-04-20 20:09 soulnearby 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 分层分装#include <iostream>using namespace std;__device__ int offset = 1;struct A_device { int mH; int mW; int *m_d_Dynamic; int mDynamicSize; int func( int );};class A {public: A_device d; int *m_h_Dynamic; A(): d((A_device){0,0,NULL,sizeof(int) * 4}), m_h_Dynamic(NULL) { allocMem(); } ~A() { fre 阅读全文
posted @ 2011-04-19 10:04 soulnearby 阅读(194) 评论(0) 推荐(0) 编辑