在Eclipse中使用android模拟器,时常会出现断开,甚至重启都连接不上。
今天用模拟器调试过程中与Eclipse断开,重启模拟器,重启Eclipse都连接不上;
好在找到了解决方法,在此记录一下;
1.找到Eclipse的Devices窗口,点开窗口右边的下拉箭头 view menu 点击 Reset adb
重启adb服务;
(如果Eclipse中没有Devices窗...
分类:
移动开发 时间:
2014-05-26 05:56:52
阅读次数:
297
在使用Ubuntu作为开发环境时经常需要在全局安装一些依赖框架等,这个时候就常常需要用到root权限,但是在Ubuntu下第一次使用su命令时会提示认证失败;查找资料后发现Ubuntu下root权限默认是锁定的,可能是处于安全考虑,但是作为开发人员肯定是需要root权限的。
在命令行中可以输入下面命令设置root密码,这样就能随时使用root权限了:
sweetvvck@sweet...
分类:
其他好文 时间:
2014-05-26 05:56:09
阅读次数:
186
线段树的单点更新,区域查询操作。
#include
#include
#include
#include
#include
using namespace std;
#define lmin 1
#define rmax n
#define lson l,(l+r)/2,rt<<1
#define rson (l+r)/2+1,r,rt<<1|1
#define root lmin,rmax,1...
分类:
其他好文 时间:
2014-05-26 05:25:50
阅读次数:
187
公司mysql dba把数据库root密码丢失需要破解,方法如下,适合linux、unix机器
service mysqld stop
/opt/mysql/bin/mysqld_safe --skip-grant-tables &
/opt/mysql/bin/mysql -u root
update mysql.user set password=PASSWORD('...') ...
分类:
数据库 时间:
2014-05-26 04:08:37
阅读次数:
397
题目一:
Given a binary tree containing digits from 0-9 only, each root-to-leaf
path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Fin...
分类:
其他好文 时间:
2014-05-26 04:06:41
阅读次数:
248
徒手绘制根轨迹
可以看出假设的系统传递函数如图中黄色公式部分
特征方程是(s^3+4*s^2+K*s+1) = 0;
绘制根轨迹的方法是
铺垫:
1) 先把所有和K有关的项合并成一大项K(s), (相当于提公因式K)
2) 接着把得到的式子除以不含K的项(如图中蓝色字体部分)
于是可以得到,这是变形后的特征方程
这个方程...
分类:
其他好文 时间:
2014-05-25 01:59:08
阅读次数:
408
一、安装MySql
1、卸载CentOS自带的MySql
获取root权限先,卸载CentOS自带的MySql
yum remove mysql
2、安装cmake...
分类:
数据库 时间:
2014-05-24 23:48:57
阅读次数:
542
Android 通过应用设置系统日期和时间的方法
android 2.3
android 4.0
测试可行,不过需要ROOT权限.
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
import java.util.Calendar;
import android.os....
分类:
移动开发 时间:
2014-05-24 18:22:41
阅读次数:
316