`
pcpig
  • 浏览: 87683 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
1、fileSet中目录/文件的用法: 若是“appgen”,则只会拷贝名为appgen的空目录过去,它里面的文件和子目录则不会拷贝。 若是“appgen/”,或“appgen/**”,则会把整个appgen目录拷贝过去,包括里面的文件和子目录。 若是“appgen/*”,则只会把该目录和该目录下第一级子目录的所有东西拷贝过去,而不会拷贝第二级和第二级以下的。注:“appgen/*”这儿是一个*号,*号若大于两个,也跟一个*号是同样效果。比如“appgen/*”和“appgen/****”都只拷贝appgen目录下第一级子目录。    注:若appeng这个目录本身就是个空目录,无论怎么写 ...
  原帖地址:http://www.codeinstructions.com/2008/12/java-objects-memory-structure.html Update (December 18th, 2008): I've posted here an experimental library that implements Sizeof for Java.One thing about Java that has always bothered me, given my C/C++ roots, is the lack of a way to figure out how ...
  原帖地址:http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages   JULY 31  ANDRE Understanding Linux CPU Load - when should you be worried? POSTED IN EXAMPLES | 
../depcomp: line 512: exec: g++: not found make[2]: *** [my_new.o] 错误 127 make[2]: Leaving directory `/usr/local/setup/mysql-5.0.51b/mysys' make[1]: *** [all-recursive] 错误 1 make[1]: Leaving directory `/usr/local/setup/mysql-5.0.51b' make: *** [all] 错误 2 [root@gameserver mysql-5.0.51b]# yum install - ...
(原帖:http://www.phpunion.com/%e5%ae%89%e8%a3%85mysql%e5%87%ba%e7%8e%b0checking-for-termcap-functions-library-configure-error-no-cursestermcap-library-found/) 如果编译时出现了以下错误: checking for tgetent in -ltermcap… no checking for termcap functions library… configure: error: No curses/termcap library found 说明 ...
(转自http://www.linux521.com/2009/system/200904/2116.html) 执行./configure 然后就出现以下提示 : checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking whether make sets $(MAKE)... yes checking for gcc... no checking for cc... no checking for cc... no checking for ...
OO原则:    1. 封装变化     2.多用组合,少用继承     3.针对接口编程,不针对实现编程     4.交互对象间松耦合 策略模式:封装算法,是算法之间可以互换,算法独立于使用它的客户。 观察者模式:在对象之间定义一对多的依赖,这样一来,当一个对象改变状态,依赖它的对象             都会收到通知,并自动更新。             java.util.Observable 、Swing大量使用观察者模式            
Traditionally, programmers have used the telescoping constructor pattern. In short, the telescoping constructor pattern works, but it is hard to write client code when there are many parameters, and harder still to read it. A second alternative when you are faced with many constructor parameters is ...
advantage:       1st. unlike constructors, they have names.      2nd. unlike constructors,they are not required to create a new object each time they’re invoked.      3rd. unlike constructors,they can return an object of any subtype of their return type.      提供了灵活性,可以隐藏实现细节。可以根据不同的参数采用不同的实现....   ...
定义:设计模式是某种情境下,针对某类问题的解决方案。 它的分类有很多,常用的分类方式有两种。 一种是按照模式的职责来划分为的,分为创建型、结构型、行为型。创建型主要涉及到对象的创建,涉及到的模式主要有Abstract Factory、Factory Method、singleton、builder、prototype;结构型主要涉及到类和对象组合到更大的结构中去,主要有proxy、Adapter、Facade、compsite、decorator、Bridge、FlyWeight;行为型主要涉及到类和对象之间如何交互和职责划分,主要有Template Method,Iterator、Obse ...
看了不少技术方面的书,却从来没有留下只言片语,略有遗憾。所以想尝试记录一下技术方面的所见所思,既强迫自己思考,同时也方便日后温习,而且还可以跟同道中人相互交流,一举三得何乐不为乎?遂决定从今开始在这安家了,好好开始我的技术人生。
Global site tag (gtag.js) - Google Analytics