So, the New Year holidays are over. Santa Claus and his colleagues can take a rest and have guests at last. When two "New Year and Christmas Men" meet, thear assistants cut out of cardboard the letter...
分类:
其他好文 时间:
2014-07-22 23:03:53
阅读次数:
521
string path = Server.MapPath("copycode/code.txt");
string[] allCodeLine = System.IO.File.ReadAllLines(path, System.Text.Encoding.UTF8);
System.Text.StringBuilder strb = new Sys...
分类:
Web程序 时间:
2014-07-22 23:02:54
阅读次数:
366
OO思想现在已经在软件开发项目中广泛应用,其中最重要的一个特性就是继承,最近偶简单的学习了下在设计模式中涉及到继承这个特性时,所需要用到的关键字,其中有一些关键点,特地整理出来。
一、New
在C#中,new这个关键字使用频率非常高,主要有3个功能:
a) 作为运算符用来创建一个对象和调用构造函数。
b) 作为修饰符。
c) 用...
分类:
其他好文 时间:
2014-05-01 22:17:38
阅读次数:
303
创建数组如果你习惯了用 new
来实例化对象的形式,那么在js中一定会疑惑,可选的参数数量代表的意义截然不同。new
Array(size);//传一个参数的时候分两种情况,size是正整数时代表数组的长度;size是其它非数字类型代表的是初始化有一个元素的数组;非正整数的尝试豪无意义new
Arr...
分类:
编程语言 时间:
2014-05-01 20:43:40
阅读次数:
427
1、添加权限:AndroidManifest.xml中必须使用许可”android.permission.INTERNET”,否则会出Web page not available错误。
2、在要Activity中生成一个WebView组件:WebView webView = new WebView(this);
3、设置WebView基本信息:...
分类:
移动开发 时间:
2014-05-01 18:19:58
阅读次数:
480
1.1 安装TOMCAT与JDK
第1步:新建boss用户,用户名:boss,密码:bossnyl
第2步:将安装用户路径设置成/app/boss
[root@localhost]# useradd-d /app/boss -m boss
[root@localhost]# passwdboss
Changing password for user boss.
New passwor...
分类:
系统相关 时间:
2014-05-01 18:10:53
阅读次数:
589
public class SessionListener implements HttpSessionListener {
static Logger log = Logger.getLogger(
SessionListener.class.getName());
private static Map map = new
HashMap(); ...
分类:
编程语言 时间:
2014-04-30 22:31:38
阅读次数:
397
import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;
/**
*Gson序列化对象排除属性
*调用方法:
*String[] keys = { "id" };
*Gson gson = new GsonBuilder().setExclusionStrategies(new Jso...
分类:
其他好文 时间:
2014-04-30 22:22:38
阅读次数:
610
#生成excel
#ljl
use Spreadsheet::WriteExcel;
my %us;
while(($key, $value) = each %us){
print "$key|$value\n";
}
# 创建一个新的EXCEL文件
my $workbook = Spreadsheet::WriteExcel->new('poi_count_top15....
分类:
其他好文 时间:
2014-04-29 13:33:21
阅读次数:
327