安卓开发时,在windows 的cmd 命令中使用 adb 命令时,经常会碰到 下图的的情况
adb shell时出现以下信息:
* daemon not running. starting it now on port5037 *
解决方法:
输入下面的命令:netstat -ano | findstr"5037" 可以查询什么占用了5037端口,再通过 ...
分类:
其他好文 时间:
2014-12-07 13:51:02
阅读次数:
218
输入cmd进入dos界面,进入android-sdk-windows\platform-tools目录,执行下面命令启动adb start-server出现下面错误* daemon not running. starting it now on port 5037 *ADB server didn'...
分类:
其他好文 时间:
2014-12-07 01:18:33
阅读次数:
162
给定一个类似棋盘,有X和O,把X圈住的O变为X例如:For example,X X X XX O O XX X O XX O X XAfter running your function, the board should be:X X X XX X X XX X X XX O X X其实这题的思路...
分类:
其他好文 时间:
2014-12-07 01:18:26
阅读次数:
137
进程管理工具的使用Linux进程管理工具:pstree,ps,pidof,pgrep,top,htop,glance,pmap,vmstat,dstat,kill,job, pstree:显示进程树 -p:显示各进程的PID ps:显示进程状态的命令 Linux各进程的相关信息在/proc目录有一个以其PID命令的目录下的众多文件中; 支持两种使用..
分类:
系统相关 时间:
2014-12-06 06:46:34
阅读次数:
333
一、概述 应用程序的生命周期详解可以参照Windows8.1开发中msdn文档http://msdn.microsoft.com/library/windows/apps/hh464925.aspx应用程序生命周期中有三个状态:Running(运行中),Suspended(挂起,暂停),NotRu....
分类:
移动开发 时间:
2014-12-06 06:33:22
阅读次数:
208
题目链接:点击打开链接
题意: 在一条直线上运动,每分钟可以运动距离a[i] ,每分钟可以选择运动或者休息,有一个疲劳系数,最初为0,每运动一分钟疲劳系数加1,(不能大于m) 同理,每休息一分钟,疲劳系数减1,(不能小于0)求n分钟后最大运动距离,要求n分钟时疲劳系数要为0.
两个状态,当前时间及当前疲劳系数。设 dp[i][j] =dp[i-1][j-1]+a[i] (j>0) else ...
分类:
其他好文 时间:
2014-12-04 20:03:40
阅读次数:
229
Service概念及用途:A service is an application component that can perform long-running operations in the background and does not provide a user interface。通常...
分类:
移动开发 时间:
2014-12-04 19:47:05
阅读次数:
159
1. iOS APP Project or ?Mac APP Project编译错误提示: “The run destination My Mac 64-bit is not valid for Running the scheme ‘***‘. The scheme ‘***‘ contains no buildables that can be built for th...
分类:
移动开发 时间:
2014-12-04 14:08:35
阅读次数:
183
序言: 业务报警订单提交异常,页面一直没有反应,排查后是事务没有提交或者回滚导致,想到如果及时监控事务的运行状态报警出来,那么就可以及时排查出问题所在,方便运营处理,所以自己就弄了一个shell脚本放在nagios来处理事务报警情况。1,编写事务监控脚本 #!/bin/bash# author: tim.man# version: 1.0# desc: check the RUNNI...
分类:
移动开发 时间:
2014-12-04 01:11:08
阅读次数:
257
正常安装完zabbix后,登录后zabbix监控报错zabbix server is not running: the information displayed may not be current,下面的几种情况都有可能引起这个错误,1. selinux是否关闭。一定要关闭这个,开启selinu...
分类:
其他好文 时间:
2014-12-03 10:29:00
阅读次数:
166