每一个activity都有自己的生命周期,被打开了最终就要被关闭。 四种结束当前的activity方法//关闭当前activity方法一(最常用)finish(); //关闭当前界面方法二android.os.Process.killProcess(android.os.Process.myP...
分类:
移动开发 时间:
2015-01-28 21:06:38
阅读次数:
215
#region Ping 返回true则代表可以连接成功 public bool Ping(string remoteHost) { bool Flag = false; Process proc = new P...
直接双击执行 D:\test1.exeSystem.Diagnostics.Process.GetCurrentProcess().MainModule.FileName D:\Test1.exe System.Environment.CurrentDirectory D:\ System.IO.D...
分类:
移动开发 时间:
2015-01-28 19:19:38
阅读次数:
490
将数据存储到SharedPreferences中:
getSharedPreferences(文件名, 文件的操作模式);
MODE_PRIVATE:只有当前的应用程序才可以对这个SharedPreferences文件进行读写
MODE_MULTI_PROCESS:一般是用于会有多个进程中对同一个SharedPreferences文件进行读写的情况
得到SharedPreferences对...
分类:
其他好文 时间:
2015-01-28 14:48:59
阅读次数:
200
之前参加CSSConf大会,由于对W3C发布流程这些不太了解,故翻译此文,一为了解全貌、加深印象,二为锻炼能人翻译能力,为初学者提供小小帮助。文中难免错误,如有发现,还请回复供我及时更正,以避免误导更多的读者。用词翻译:英文描述中文翻译缩写Working group起草小组Technical R.....
分类:
Web程序 时间:
2015-01-28 14:24:15
阅读次数:
172
一句话kill掉名为navimain的process(利用awk的列操作能力)kill -15 `ps|grep navimain | awk 'NR==1 {print $1}'`
分类:
其他好文 时间:
2015-01-27 23:13:01
阅读次数:
176
Spring comes with a useful ‘org.springframework.mail.javamail.JavaMailSenderImpl‘ class to simplify the e-mail sending process via JavaMail API. Here’...
分类:
编程语言 时间:
2015-01-27 21:38:09
阅读次数:
239
situation:ams streams 文件夹过大, 删除后,重启 ams, 重启失败, amscore 称为defunct process, 无法停止,
ps auxww|grep ams, kill 相关 process,
之后重启总是提示: Waiting for another script to finish...
google之后发现
can no more start ...
分类:
其他好文 时间:
2015-01-27 16:20:46
阅读次数:
266
You Are All Excellent
Crawling in process...
Crawling failed
Time Limit:1000MS
Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Description
本次集训队共有30多人参加,毫无疑问,你们都是很优秀的,但是由于参赛名额有限...
分类:
编程语言 时间:
2015-01-26 22:59:17
阅读次数:
209
Problem Description
Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N!
Input
One N in one line, process to the end of file.
Output
For each N, output N! in one line.
...
分类:
其他好文 时间:
2015-01-26 22:54:23
阅读次数:
236