/***@authorHappyLiu<543509783@qq.com>*程序代码请移步:http://down.51cto.com/data/2013151*/=======程序说明==============================================此程序由workerman-chat改写;workerman版本:3.0.7ThinkPHP版本:3.2.3=======服务器环境================..
分类:
Web程序 时间:
2015-03-31 01:09:15
阅读次数:
194
我在测试的时候经常需要去改动case,如果把所有case直接写在单元测试中,非常冗余,我希望可以直接从excel去读取我的测试数据,经过几次试验终于成功了,读取excel主要借助poijar包,源码如下所示。poijar包下载地址http://down.51cto.com/data/2012838ps:因为测试数据仅strin..
分类:
编程语言 时间:
2015-03-30 19:10:57
阅读次数:
129
原理:下载你需要down的目录页面的index.html,可能名字不是如此!!!之后用wget下载该文件里包含的所有链接!例如:wget -vE -rLnp -nH --tries=20 --timeout=40 --wait=5 http://mirrors.163.com/gentoo/dist...
分类:
Web程序 时间:
2015-03-29 15:01:55
阅读次数:
248
mysql3306端口down
#!/bin/bash
######mysqlmonitor##
while:
do
sleep80
/usr/bin/nclocalhost3306-w2&>/dev/null
h=0
if[-ne0];then
/etc/init.d/mysqlstart
fi
done
#!/bin/bash
######mysqlmonitor##
while:
do
sleep80
/usr/bin/nclocalhost3306-w2&>/dev..
分类:
数据库 时间:
2015-03-28 18:55:21
阅读次数:
329
Problem Description
There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 <= Ki <= N) on every floor.The lift have just two buttons: up and down.When you at floor i,if you press the button "UP" , you will go u...
分类:
编程语言 时间:
2015-03-28 15:47:08
阅读次数:
262
《JavaScript高级程序设计》上down的,检测呈现引擎、平台、操作系统、移动设备、游戏系统 的检测脚本。var client = function(){ //rendering engines var engine = { ie: 0, ...
分类:
编程语言 时间:
2015-03-28 14:09:00
阅读次数:
183
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at...
分类:
其他好文 时间:
2015-03-28 10:15:14
阅读次数:
116
在android中的Touch分发中,经常可以看到从ACTION_DOWN->ACTION_MOVE->ACTION_UP,当我们不了解它是如何分发的话总感觉一头雾水,所以有必要了解它的整体分发过程,所以很有必要好好的记录下。
事件分发函数
public
void dispatchTouchEvent(MotionEvent ev).
public
void onInterceptT...
分类:
移动开发 时间:
2015-03-21 21:20:54
阅读次数:
191
'vim' go into the vim mode
'i' 'a' 's' is means insert mode
'v' is means visual mode
'esc' is means back to normal mode
j down
k up
h left
l right...
分类:
系统相关 时间:
2015-03-21 06:23:49
阅读次数:
144
1、关闭接口:sudo ifconfig eth0 down
2、然后打开:sudo ifconfig eth0 up...
分类:
系统相关 时间:
2015-03-20 16:23:23
阅读次数:
159