07 2013 档案
摘要:Download the Android Package of Linux from Android Studio, android-studio-bundle-130.737825-linux.tgz for Linux platformCopy to /usr/locateUnpackage to intallAndroid-studio's startup script --- "studio.sh" 1 #!/bin/sh 2 # 3 # ------------------------------------------------------------
阅读全文
摘要:Programming language evolves always along with Compiler's evolvement JVM as Additional IndirectionIntroduction to ObjectEverthing is an object. Think of an object as a fancy variable; it stores data, but you can “make requests” to that object, asking it to perform operations on itself. In theory
阅读全文
摘要:Programming language evolves always along with Compiler's evolvementThe Semantics of DataThe size of an empty base class or an empty derived class inherited from an empty base class is not 0. For some reason: virtual pointer to virtual function table, or virtual pointer to virtual base class, or
阅读全文
摘要:Linux 中的 md5利用 md5 消息摘要算法可以获取任何一件事物的唯一 ID利用 md5 消息摘要算法可以判断任何一个事物是否被改变过一致性验证:MD5的典型应用是对一段信息(Message)产生信息摘要(Message-Digest),以防止被篡改。比如,在UNⅨ下有很多软件在下载的时候都有一个文件名相同,文件扩展名为.md5的文件,在这个文件中通常只有一行文本,大致结构如:MD5 (tanajiya.tar.gz) = 0ca175b9c0f726a831d895e269332461这就是tanajiya.tar.gz文件的数字签名。MD5将整个文件当作一个大文本信息,通过其不可逆的
阅读全文
摘要:linux 的文件结构linux 下的bin 目录,包含了常用的命令应用程序/bin: bin为binary的简写主要放置一些系统的必备执行档例如:cat、cp、dmesg、gzip、kill、ls、mkdir、more、mount、rm、su、tar, etc。/usr/bin:主要放置一些应用软体工具的必备执行档例如c++、g++、gcc、chdrv、diff、dig、du、eject、elm、free、gnome*、 gzip、htpasswd、kfm、ktop、last、less、locale、m4、make、man、mcopy、ncftp、 newaliases、nslookup p
阅读全文
摘要:Function object is very userful to use member function or non-member function as callback mechanism, Same as event or delegate in C#.For pointer to object 1 template 2 class MemFunctionObject : public binary_function 3 { 4 Return (Type::*pMemFunction)(Argument); 5 public: 6 explicit MemFuncti...
阅读全文
摘要:Layering & Contract Philosophy With additional indirectionPrototypeThe example code is as following: 1 class CObject 2 { 3 public: 4 virtual CObject* clone() const = 0; 5 virtual void BasicOperation() = 0; 6 } 7 //clone is a virtual method, its return type can be differ...
阅读全文
摘要:Layering & Contract Philosophy With additional indirectionFactory MethodThe example code is as following: 1 class CProduct //interface declaration 2 class CConcreteProductOne: public CProduct; 3 class CConcreteProductTwo: public CProduct; 4 5 6 class CCreator 7 { 8 public: virtual CProduct* F...
阅读全文
摘要:Programming language evolves always along with Compiler's evolvementThe semantics of constructorsOne of the most often heard complaints about C++ is that the compiler does things behind the programmer’s back. We shall know how underlying compiler do with our programming, what it does to our prog
阅读全文
摘要:高屋建瓴From Up to Down.Outside into inside.Interface-Oriented Framework with dynamic configuration.SOA:Service-Oriented Architecture.一。总述三种方式:WPFOSGiSOA Architecture二。看看一些系统架构Windows 架构,架构变迁的从提供功能到以服务为核心。 Service-CenteredLinux 系统架构Windows Metro SystemAndroid System Structure. Underscore the concept of
阅读全文
摘要:由于项目一个功能需要,可以将关键字的值叠加加来,最终可以获取对这些关键字都做了些什么操作。Generic Programming is very powerful. 1 /// 2 /// 3 /// 4 /// 5 public class CXSpecialDictionary : Dictionary 6 { 7 /// 8 /// 9 /// 10 /// 11 /// 12 public new string this[TKey ...
阅读全文
摘要:高屋建瓴From Up to DownOutside into insideThe Internet Of Things. http://wenku.baidu.com/view/5cdc0266ddccda38366baf00.htmlhttp://www.networkcultures.org/_uploads/notebook2_theinternetofthings.pdfFrom view of hardwareFrom view of software
阅读全文
摘要:我是利用在window环境下载好JDK,然后传到VMware中linux中下载JDK http://www.oracle.com/technetwork/java/javase/downloads/index.htmlwindow 中安装 SSH ClientVMware 中的Linux 配置 SSH, Linux 设置桥接模式的 network,IP 和Window IP在同一个网段。设置Linux IP, reference to: http://www.cnblogs.com/xd502djj/archive/2011/03/01/1967800.htmlIP 配置好以后,就需要配置SS
阅读全文
摘要:Layering & Contract Philosophy With additional indirectionAbstract Factory 1 //The example code is as following: 2 class CAbstractProductA; 3 class CAbstractProductB; 4 // multiple families of products. 5 class CProductA1:public CAbstractProductA; 6 class CProductB1:public CAbstractProdu...
阅读全文
摘要:Programming language evolves always along with Compiler's evolvement.1. The C++ Object Model:Stroustrup's original (and still prevailing) C++ Object M...
阅读全文
摘要:安装好VMware安装好Linux在安装Linux时候,建立了一个用户,dragon, 和密码。。。这个用户不是root用户,没有root权限可以切换dragon 到用户root,这个时候就有root权限了,密码和安装建立用户的密码相同使用普通用户,一些命令是不允许的,如下。普通用户和root用户http://blog.sina.com.cn/s/blog_67d873600100kst1.htmlhttp://www.cnblogs.com/xd502djj/archive/2011/11/23/2260094.html进入root用户此时仍然未发现命令useradd,利用locate 命令
阅读全文

浙公网安备 33010602011771号