装饰设计模式:当需要对某些类功能进行增强时,可以把这个类的对象传到自定义类中,然后利用此对象具备的方法在此基础之上进行功能的增强。与继承的区别:扩展性强一些代码举例:import java.io.*;class MyBufferedReader{ private FileReader file...
分类:
其他好文 时间:
2014-09-29 12:32:27
阅读次数:
145
使用Log Explorer查看和恢复数据 Log Explorer 4.1.可用于SQL Server2005的日志查看工具下载地址:http://download.csdn.net/source/620271使用方法:打开Log Explorer -> Attach Log File -> 选择...
分类:
数据库 时间:
2014-09-29 12:17:27
阅读次数:
214
1. 注解掉格式化处理
FILE: PhoneNumberFormatter.java
Before KK1
PATH: alps/packages/apps/contacts/src/com/android/contacts/Util
After KK1
PATH: alps/packages/apps/contactscommon/src/com/androi...
分类:
其他好文 时间:
2014-09-29 12:03:40
阅读次数:
208
(1)将android的tcpdump命令复制到/data/local/tools/目录下,添加可执行权限(2)在本地电脑上新建adbtcpdump.sh文件,内容如下:#!/bin/bashfilename=`date +%F-%H-%M-%S`".cap"filepath="/data/loca...
分类:
移动开发 时间:
2014-09-29 11:37:00
阅读次数:
187
解决办法: 1 标题的错误是具体原因应该是因为tomcat的路径中包含了空格?tomcat 的解压路径中不能包含空格,刚开始我的路径是在D://program file/tomcat/tomcat5.5/;其中program file之间有空格。之后我把tomcat单...
分类:
其他好文 时间:
2014-09-29 11:19:11
阅读次数:
202
** Header File ***-----------------------*/#include #include #include "itron.h"#include "cmndef.h"#include "bios1mac.h"/*--------------------...
分类:
其他好文 时间:
2014-09-29 09:14:47
阅读次数:
230
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"begin cdf_file = addfile("$NCARG_ROOT/lib/ncarg/data/cdf/contour.cdf","r") temp = cdf_file->.....
分类:
其他好文 时间:
2014-09-29 01:47:47
阅读次数:
294
file%3A///C%3A/Documents%2520and%2520Settings/Administrator/%25E6%25A1%258C%25E9%259D%25A2/%25E6%2596%25B0%25E5%25BB%25BA%25E6%259...
分类:
其他好文 时间:
2014-09-29 01:10:26
阅读次数:
176
第10章 | 充电时刻
本章主要介绍模块及其工作机制
------
模块
>>> import math
>>> math.sin(0)
0.0
模块是程序
一个简单的模块
#hello.py
print ("Hello,World!")
>>> import hello
Traceback (most recent call last):
File "", line 1, in
import hello
ImportError: No module n...
分类:
编程语言 时间:
2014-09-28 23:11:56
阅读次数:
485
how to solve "[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!"
分类:
其他好文 时间:
2014-09-28 23:07:56
阅读次数:
149