关于Http 的method:GETAsks to get the thing (resource / file) at the requested URL.POSTAsks the server to accept the body info attached to the request, an...
分类:
其他好文 时间:
2014-07-02 23:42:07
阅读次数:
215
读取文件:#直接读取for line in open("d:\serverlist.txt"): print(line)#使用readline()方法读取file = open('d:\serverlist.txt')line = file.readline()while line:print...
分类:
其他好文 时间:
2014-07-02 23:06:01
阅读次数:
173
Log4J的配置文件(Configuration File)就是用来设置记录器的级别、存放器和布局的,它可接key=value格式的设置或xml格式的设置信息。通过配置,可以创建出Log4J的运行环境。1. 配置文件Log4J配置文件的基本格式如下: #配置根Loggerlog4j.rootLogg...
分类:
其他好文 时间:
2014-07-02 23:01:12
阅读次数:
244
(1)下载ant:http://ant.apache.org/bindownload.cgi(2)解压后放在指定的文件夹中(/usr/lib)(3) sudo chmod 777 /usr/lib/ant1.9.4(4)配置环境变量vi /etc/profilevi /etc/bash.bashrc...
分类:
其他好文 时间:
2014-07-02 22:33:27
阅读次数:
256
#region File Header & Copyright Notice/* * Copyright (C) 2014 XXX, INC. All Rights Reserved. * THIS SOURCE CODE IS CONFIDENTIAL AND PROPRIETARY AND MA...
分类:
其他好文 时间:
2014-07-02 10:07:59
阅读次数:
221
public class EvilTransform {
final static double pi = 3.14159265358979324;
//
//
// a = 6378245.0, 1/f = 298.3
// b = a * (1 - f)
// ee = (a^2 - b^2) / a^2;
final static doubl...
分类:
编程语言 时间:
2014-07-02 08:27:30
阅读次数:
285
当我更新完android L proview之后我的打包出问题了,报错/${zipalign}" error=2, No such file or directory
排查了一下午才知道 最近的ant/build.xml文件中丢失了一行代码
第二行代码丢失。直接恢复或者直接用老版本的build.xml文件就OK!fuck!...
分类:
移动开发 时间:
2014-07-02 07:51:32
阅读次数:
289
ExecutorService接口使用submit方法会返回一个Future对象,Future表示异步计算的结果。它提供了检查计算是否完成的方法,以等待计算的完成,并获取计算的结果。计算完成后只能使用get方法来获取结果,如有必要,计算完成前可以阻塞此方法。取消则由cancel方法来执行。还提供了其他方法,以确定任务是正常完成还是被取消了。一旦计算完成,就不能再取消计算。如果为了可取消性而使用Fu...
分类:
其他好文 时间:
2014-07-02 07:17:30
阅读次数:
201
这两个函数的作用是把字符串的大写字母和小写字母进行转换。如:
$side = uc $attrs[0]; 把attrs[0]转换成大写,然后给side变量赋值。
$gender = lc $attrs[1]; 把attrs[1]转换成小写,然后给gender赋值。
注意:
两个函数都是把转换之后的字符串作为返回的值 。uc是大写,表示upper convert,lc是小写,表示...
分类:
其他好文 时间:
2014-07-02 06:56:44
阅读次数:
456
NFS(NetworkFileSystem)isbasicallydevelopedforsharingoffilesandfoldersbetweenLinux/UnixsystemsbySunMicrosystemsin1980.
Itallowsyoutomountyourlocalfilesystemsoveranetworkand
remotehoststointeractwiththemastheyaremountedlocallyonthe
samesystem.WiththehelpofNFS..
分类:
Web程序 时间:
2014-07-02 06:15:20
阅读次数:
306