http://blog.csdn.net/roger_ge/article/details/5552740转自csdn,实现模拟鼠标键盘系列上一篇博文中讲述了通过Socket编程从外部向Emulator发送键盘鼠标模拟事件,貌似实现细节有点复杂。其实Android还有一种更简单的模拟键盘鼠标事件的方...
分类:
移动开发 时间:
2014-05-28 23:59:43
阅读次数:
582
php执行外部命令的不少,例如:exec、shell_exec、system、popen等。我特意的讲一下popen,它跟其他函数不太一样,其他函数执行一个命令后,会等待其返回后,再向下执行,而popen则不会。所以你想用php程序并行的处理一些业务的时候,可以用popen。我举个例子,有两个php...
分类:
Web程序 时间:
2014-05-28 22:45:34
阅读次数:
346
小段代码:Intentit=newIntent();it.setClass(Setting.this,Main.class);//从Setting跳转到Mainit.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);//加上FlagstartActivity(it);...
分类:
其他好文 时间:
2014-05-28 04:04:30
阅读次数:
248
原题地址:https://oj.leetcode.com/problems/climbing-stairs/题意:You
are climbing a stair case. It takesnsteps to reach to the top.Each time you can
either cl...
分类:
编程语言 时间:
2014-05-28 03:27:49
阅读次数:
267
原题地址:https://oj.leetcode.com/problems/minimum-path-sum/题意:Given
amxngrid filled with non-negative numbers, find a path from top left to bottom
right w...
分类:
编程语言 时间:
2014-05-28 03:03:13
阅读次数:
320
这是一个清空系统日志的脚本:vim logmess_clean.sh#bin/bash
//该脚本所使用的shell解释器cd /var/log///切换到存放日志目录echo > messages//清空日志echo
"logmessages is clean"//脚本执行完成后输出“日志清空”[...
分类:
其他好文 时间:
2014-05-28 02:09:50
阅读次数:
320
改脚本查看哪些ip被占用。#!/bin/bashfor i in {1..10}
//赋予i变量1-10do//干什么ping -c1 -w1 192.168.7.$i &> /dev/null //ping
192.168.7.网段 每个ip1次 显示1行全输出到无底洞if [ $? -eq 0 ...
分类:
其他好文 时间:
2014-05-28 00:04:45
阅读次数:
321
#!/bin/bash# Program to output a go source file
with user informationCURRENT_TIME=$(date +"%x %r %Z")cat <<
EOF/* Author:$USER CreatedAt:$CURRENT_TIME...
分类:
其他好文 时间:
2014-05-27 17:49:29
阅读次数:
283
#"包含了一个位置信息默认的锚点是#top
也就是网页的上端而javascript:void(0)
仅仅表示一个死链接这就是为什么有的时候页面很长浏览链接明明是#可是跳动到了页首而javascript:void(0)
则不是如此所以调用脚本的时候最好用void(0)或者等打开新窗口链接的几种办法1....
分类:
编程语言 时间:
2014-05-27 16:11:47
阅读次数:
326
sing the emulators (adb shell sqlite3
--version):SQLite 3.7.11:19-4.4-KitKat18-4.3-Jelly Bean17-4.2-Jelly
Bean16-4.1-Jelly BeanSQLite 3.7.4:15-4.0.3-I...
分类:
移动开发 时间:
2014-05-27 16:06:58
阅读次数:
389