用习惯Windows的用户,进入Mac,不习惯快捷方式。用下面的方法,可以返回windows 习惯。1.进入系统偏好设置->键盘->修饰键2.Control 选择 Command,Command选择Control, 意思就是对调一下命令。
分类:
系统相关 时间:
2014-11-20 20:11:04
阅读次数:
552
使用 ps命令 :#ps -A -opid,stime,etime,argsps -A -opid,stime,etime,args结果:root:src# ps -A -opid,stime,etime,args PID STIME ELAPSED COMMAND 1 09:21 ...
分类:
系统相关 时间:
2014-11-20 20:01:08
阅读次数:
214
基本格式:*****command分时日月周命令第1列表示分钟1~59每分钟用*或者*/1表示第2列表示小时1~23(0表示0点)第3列表示日期1~31第4列表示月份1~12第5列标识号星期0~6(0表示星期天)第6列要运行的命令crontab文件的一些例子:3021***/usr/local/etc/rc.d/lighttpdrestart上..
分类:
其他好文 时间:
2014-11-20 15:45:26
阅读次数:
150
在CentOS编译PHP5的时候有时会遇到以下的一些错误信息,基本上都可以通过yum安装相应的库来解决。以下是具体的一些解决办法:checking for BZip2 support… yes checking for BZip2 in default path… not found configu...
分类:
Web程序 时间:
2014-11-20 15:03:20
阅读次数:
190
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2014-11-20 13:34:03
阅读次数:
161
先简单说一下php调用mail()函数的过程。看到源码ext/mail.c236行:char *sendmail_path = INI_STR("sendmail_path");char *sendmail_cmd = NULL;从INI中获得sendmail_path变量。我们看看php.ini里...
分类:
Web程序 时间:
2014-11-19 23:41:22
阅读次数:
347
iptables 指令语法iptables [-t table] command [match] [-j target/jump][-t table] 指定规则表-t 参数用来,内建的规则表有三个,分别是:nat、mangle 和 filter,当未指定规则表时,则一律视为是 filter。个规则表...
分类:
其他好文 时间:
2014-11-19 20:20:39
阅读次数:
271
最近在做Android 4.4系统的定制开发(RockIII)进行Debug时,并打上断点,运行到断点处时,Debug窗口出现source not found问题(没有自动关联程序编码):
解决办法:
-》在调试的线程上 右键单击
-》选择Edit Source Lookup Path
-》选择Add
-》选择Project
选择自己正在调试的项目。保存。
不...
分类:
系统相关 时间:
2014-11-19 18:51:42
阅读次数:
250
一、概述
命令模式可以将请求发送者和接收者完全解耦,发送者与接收者之间没有直接引用关系,发送请求的对象只需要知道如何发送请求,而不必知道如何完成请求。核心在于引入了命令类,通过命令类来降低发送者和接收者的耦合度,请求发送者只需指定一个命令对象,再通过命令对象来调用请求接收者的处理方法,命令模式是一种对象行为型模式。
二、使用场景
1>、系统要求请求发送者和接收者的解耦...
分类:
编程语言 时间:
2014-11-19 18:51:21
阅读次数:
207
在Eclipse中开发Android项目时,鼠标停放在想要查看帮助文档的类上面,发现没有显示帮助文档,显示了下面一句话:Note: This element neither has attached source nor attached Javadoc and hence no Javadoc c...
分类:
编程语言 时间:
2014-11-19 18:06:26
阅读次数:
199