题目描述Give you a string S,assume the Sub-String Stri
= S[0..i] and the length of the string is N. e.g. S = "moreandmorecold", N = 15,
Str0 = "m" Str1 = ...
分类:
其他好文 时间:
2014-05-14 02:36:45
阅读次数:
314
第四节(1):异步网络操作一、结合asyncTask下载网络图片1.定义下载类,继承自asyncTask,参数分别为:String(url地址),Integer(刻度,本例没有用到),BitMap(下载成功后的图片)public
class downloadImageTask extends Asy...
分类:
移动开发 时间:
2014-05-14 02:28:28
阅读次数:
537
1、自定义类 public class MyClass { public string Name {
get; set; } public int Corners { get; set; } }2、查询数据并转换 var config = new M...
分类:
其他好文 时间:
2014-05-14 02:21:23
阅读次数:
253
public String BufferedReaderDemo(String path)
throws IOException...{File file=new
File(path);if(!file.exists()||file.isDirectory())throw new FileNotFo...
分类:
其他好文 时间:
2014-05-14 02:16:11
阅读次数:
199
原文地址:mysql慢日志文件分析处理作者:maxyicha
mysql有一个功能就是可以log下来运行的比较慢的sql语句,默认是没有这个log的,为了开启这个功能,要修改my.cnf或者在mysql启动的时候加入一些参数。如果在my.cnf里面修改,需增加如下几行long_query_time
...
分类:
数据库 时间:
2014-05-14 01:35:12
阅读次数:
396
先给出通过字符型指针输出字符串的示例代码,如下:#include using
std::cout;using std::endl; int main(){ const char *pszStr = "this is a string";
// 输出字符串 cout int ma...
分类:
其他好文 时间:
2014-05-14 01:33:08
阅读次数:
247
在使用消息队列时,调用#include #include #include #include
#include #include struct mymsg{ long mytype; char even[32];};#define VALUE
(key_t)0x1fffint main(){ ...
分类:
系统相关 时间:
2014-05-14 00:48:02
阅读次数:
487
#!/usr/bin/envpython#coding:utf8#此脚本为查找递归目录下所有文件匹配的内容importos,sys,tabdefpaths(path):list_path=os.walk(path)all_file=[]forp,d,flinlist_path:forfinfl:pfile=os.path.join(p,f)ifos.path.isdir(pfile):paths(pfile)all_file.append(pfile)returnall..
分类:
编程语言 时间:
2014-05-13 03:49:34
阅读次数:
426
Action接口:publicinterfaceAction{publicStringexecute(Stringstr);}Action的两个实现publicclassUpperActionimplementsAction{privateStringmessage;publicStringgetMessage(){returnmessage;}publicvoidsetMessage(Stringstring){message=string;}publicStringexecute(Stri..
分类:
编程语言 时间:
2014-05-13 03:16:42
阅读次数:
326
#!/usr/bin/envpython#coding:utf8importsmtplib,sysfromemail.mime.textimportMIMETextfromconfig.mailssimportmail_list,contentdefsend_mail():mail_host,mail_user,mail_pass,mail_postfix,sub,me,mailto_list=mail_listme=mail_user+"<"+mail_user+"@"+mail_postfix+"&..
分类:
编程语言 时间:
2014-05-13 02:40:50
阅读次数:
503