c++ 怎样获取系统时间2008-04-28 15:34//方案— 长处:仅使用C标准库;缺点:仅仅能精确到秒级 #include #include int main( void ) { time_t t = time(0); char tmp[64]; strftime( tm...
分类:
编程语言 时间:
2014-06-27 16:56:27
阅读次数:
208
抓包准备1. 手机要有root权限2. 下载tcpdump http://www.strazzere.com/android/tcpdump3.adb push c:\wherever_you_put\tcpdump/data/local/tcpdump4.adb shell chmod 6755 ...
分类:
移动开发 时间:
2014-06-27 16:54:19
阅读次数:
320
set statistics profile onset statistics io onset statistics time ongogoset statistics profile offset statistics io offset statistics time off在下面的消息中会显...
分类:
数据库 时间:
2014-06-27 16:36:03
阅读次数:
225
linux中shell变量$#,$@,$0,$1,$2的含义解释:变量说明:$$Shell本身的PID(ProcessID)$!Shell最后运行的后台Process的PID$?最后运行的命令的结束代码(返回值)$-使用Set命令设定的Flag一览$*所有参数列表。如"$*"用「"」括起来的情况、以...
分类:
系统相关 时间:
2014-06-27 16:32:52
阅读次数:
423
打开cmd进入安卓 SDK的'Platform tools'输入'adb shell'suPress 'Allow' on device(必须已经root)chmod 777 /data /data/data /data/data/com.application.package(你的包名 也就是sr...
分类:
移动开发 时间:
2014-06-27 16:15:54
阅读次数:
302
答案1:The shell is a typical Unix program. It reads commands from the standard input and prints something on the standard output. This is simple and goo...
分类:
其他好文 时间:
2014-06-27 16:12:37
阅读次数:
260
生活在 Bash shell 中,熟记以下快捷键,将极大的提高你的命令行操作效率。编辑命令Ctrl + a :移到命令行首Ctrl + e :移到命令行尾Ctrl + f :按字符前移(右向)Ctrl + b :按字符后移(左向)Alt + f :按单词前移(右向)Alt + b :按单词后移(左向...
分类:
其他好文 时间:
2014-06-27 15:08:30
阅读次数:
139
温馨提示 首先要安装postfix 或者 sendmail 等邮件服务器1.Apache#!/bin/bash#apache.shnc -w2 localhost 80 if[ $? -ne 0 ]then echo "apache is down,please check" | mail us.....
分类:
其他好文 时间:
2014-06-27 15:03:59
阅读次数:
256
Java中的多线程是一种抢占式的机制,而不是分时机制。抢占式的机制是有多个线程处于可运行状态,但是只有一个线程在运行。共同点:1. 他们都是在多线程的环境下,都可以在程序的调用处阻塞指定的毫秒数,并返回。2. wait()和sleep()都可以通过interrupt()方法 打断线程的暂停状态 ,从...
分类:
编程语言 时间:
2014-06-27 14:13:02
阅读次数:
251
#!/usr/bin/env python# coding=gbkimport sysimport osimport timeif __name__== '__main__': filename = sys.argv[1] nowtime = int(time.time()) st...
分类:
其他好文 时间:
2014-06-27 13:28:10
阅读次数:
148