DescriptionA thief is running away!We can consider the city where he locates as an undirected graph in which nodes stand for crosses and edges stand f...
分类:
其他好文 时间:
2015-12-04 22:50:10
阅读次数:
219
转自:http://www.tornadoweb.org/en/stable/faq.htmlFrequently Asked QuestionsWhy isn’t this example withtime.sleep()running in parallel?My code is asynchr...
分类:
其他好文 时间:
2015-12-04 12:28:00
阅读次数:
155
DescriptionThe cows are trying to become better athletes, so Bessie is running on a track for exactly N (1 ≤ N ≤ 10,000) minutes. During each minute, ...
分类:
其他好文 时间:
2015-12-03 23:20:07
阅读次数:
265
maven 打包出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?1》(不要用默认的jre ,需要用jdk编译)ou can choose any of...
分类:
其他好文 时间:
2015-12-02 18:23:52
阅读次数:
122
转自:http://blog.csdn.net/nanjingligong/article/details/8624739方法一:pstack pidNAME pstack - print a stack trace of a running processSYNOPSIS pstack pidDE...
分类:
系统相关 时间:
2015-12-02 17:58:39
阅读次数:
278
@echo offfor /f "skip=3 tokens=4" %%i in ('sc query MySQLa') do set "zt=%%i" &goto :next:nextif /i "%zt%"=="RUNNING" (echo 已经发现该服务在运行,正在已经关闭服务net stop...
分类:
数据库 时间:
2015-11-27 17:25:46
阅读次数:
169
打开项目的AndroidManifest.xml文件,android:targetSdkVersion="21"改为“20”或以下的值。由于Android L为预览版本,版本号还是使用“20”的原因导致了此问题。修改完后,再Project-> Context Menu -> Android Tool...
分类:
移动开发 时间:
2015-11-27 12:37:31
阅读次数:
183
应用服务写成系统服务,方便日后自动化管理#!/bin/bash
service_dir=/path/to/file
start(){
psax|grep"APPLICATION"|grep-vgrep>/dev/null2>&1
if[$?-eq0];then
echo"APPLICATIONServiceisrunning!!!"
else
echo"StartingAPPLICATIIONService..."
nohupjava-jar$ser..
分类:
其他好文 时间:
2015-11-26 15:33:01
阅读次数:
129
项目里遇到需求需要App进入后台还能执行一些任务,于是便Google了一下,整理一篇小记录。大家都知道iOS系统里,所有App进入后台的时候默认都是会暂停所有线程,等到再双击Home键回到前台才会继续执行。那有的场景需要在后台进行upload、download,或者进行一些计算等等怎么办呢?iOS7...
分类:
移动开发 时间:
2015-11-23 21:43:12
阅读次数:
181
Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use.The server may already be running in another process, or a s...
分类:
其他好文 时间:
2015-11-23 21:41:53
阅读次数:
150