上一页 1 2 3 4 5 6 ··· 25 下一页
摘要: 很多 javascript 框架都提供了自定义事件(custom events),例如 jquery、yui 以及 dojo 都支持“document ready”事件。而部分自定义事件是源自回调(callback)。回调将多个事件句柄存储在数组中,当满足触发条件时,回调系统则会从数组中获取对应的句... 阅读全文
posted @ 2014-05-17 00:57 bigwhiteshark(云飞扬) 阅读(1202) 评论(0) 推荐(0) 编辑
摘要: array2json is a PHP function that will convert the array given as its argument into a JSON string. The created JSON string will be returned. This is very useful in Ajax apps usingJSON over XML. If you are using XML, you better off using myxml2array() JavaScript function.Note:This is an old function 阅读全文
posted @ 2014-04-04 14:45 bigwhiteshark(云飞扬) 阅读(1388) 评论(0) 推荐(0) 编辑
摘要: 1. 全局替换(1) v + G + $ 选定全部,然后输入 :s/原始字符串/目标字符串/(2) :%s/原始字符串/目标字符串/2. 清除页面中所有行尾的空白符::%s/s+$//3. 清除所有空白:%s/(s*)+//4. 去掉所有的//注释:%s!s*//.*!!5. 去掉所有的/* */注释:%s!s*/*\_.{-}*/s*! !6. 做某些内部数据重复替换有些时候我们需要组织一些批量的数据进行命令行的执行,比如我们需要利用前面的数据生成后面的数据,例如这样的数据:/var/database/aaa.txt/var/database/bbb.txt/var/database/ccc 阅读全文
posted @ 2013-09-27 19:07 bigwhiteshark(云飞扬) 阅读(321) 评论(0) 推荐(0) 编辑
摘要: VirtualBox大家都习惯性把它简称为Vbox,比VM的体积小、开源、速 度快。不过在使用VirtualBox在虚拟机中安装CentOS之后,不能直接运行安装好VirtualBox的客户端增强功能,需要简 单地配置一下才能在CentOS虚拟机中正常安装VirtualBox客户端增强功能。下面就看一下OwnLinux为大家提供的 “为CentOS5.5虚拟机安装VirtualBox客户端增强功能”图文教程。1.启动安装在VirtualBox中的CentOS5.5虚拟机,点击“设备”=>“安装增强功能”。这个时候你就可以看到有一个“光盘”已经挂载到CentOS5.5的桌面上了。它包含了安 阅读全文
posted @ 2013-09-06 11:09 bigwhiteshark(云飞扬) 阅读(11545) 评论(0) 推荐(0) 编辑
摘要: 1.关闭防火墙[root@CentOS ~]# chkconfig iptables off2.关闭selinuxvi /etc/sysconfig/selinux//将SELINUX=enforcing修改为disabled然后重启生效3、配置CentOS 6.0 第三方yum源(CentOS默认的标准源里没有nginx软件包)[root@CentOS ~]# yum install wget//下载wget工具[root@CentOS ~]# wget http://www.atomicorp.com/installers/atomic//下载atomic yum源[root@CentOS 阅读全文
posted @ 2013-06-14 18:17 bigwhiteshark(云飞扬) 阅读(2702) 评论(0) 推荐(0) 编辑
摘要: CentOS 5.5采用文本最小安装,安装完之后运行man ls 出现-bash: man: command not foundwgethttp://manpages-zh.googlecode.com/files/manpages-zh-1.5.1.tar.gz操作步骤如下:首先要:yum install mantar zxvf manpages-zh-1.5.1.tar.gz cd manpages-zh-1.5.1./configure --prefix=/usr/local/zhman --disable-zhtw makemake install以上安装完成.请做如下操作:c... 阅读全文
posted @ 2013-06-14 15:14 bigwhiteshark(云飞扬) 阅读(2844) 评论(0) 推荐(0) 编辑
摘要: 一般来说,配置交叉编译工具链的时候需要指定编译工具的路径,此时就需要设置环境变量。例如我的mips-linux-gcc编译器在“/opt/au1200_rm/build_tools/bin”目录下,build_tools就是我的编译工具,则有如下三种方法来设置环境变量:1、直接用export命令:#export PATH=$PATH:/opt/au1200_rm/build_tools/bin查看是否已经设好,可用命令export查看:[root@localhost bin]#exportdeclare -x BASH_ENV="/root/.bashrc"declare 阅读全文
posted @ 2013-06-14 14:16 bigwhiteshark(云飞扬) 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 检查是不是服务器的80端口被防火墙堵了,可以通过命令:telnet server_ip 80 来测试。1>.解决方法如下:view sourceprint?1/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT2>.然后保存:view sourceprint?1/etc/rc.d/init.d/iptables save3>.重启防火墙view sourceprint?1/etc/init.d/iptables restart 另外,也可将CentOS防火墙的关闭,关闭其服务即可(不过好像是 “临时性关闭” 而已!!!重启一下 阅读全文
posted @ 2013-06-13 19:08 bigwhiteshark(云飞扬) 阅读(3383) 评论(0) 推荐(0) 编辑
摘要: 1.环境准备yum -y install gcc gcc-c++ autoconf automake makeyum -y install zlib zlib-devel openssl openssl--devel pcre pcre-develyum install nginx2.下载 nginxwgethttp://nginx.org/download/nginx-1.2.1.tar.gztar –xzvf nginx-1.2.1.tar.gzcd nginx-1.0.2./configure--sbin-path=/root/soft/nginxconfigure 支持下面的选项:-- 阅读全文
posted @ 2013-06-13 18:03 bigwhiteshark(云飞扬) 阅读(14851) 评论(1) 推荐(0) 编辑
摘要: Centos里的VI只默认安装了vim-minimal-7.x。所以无论是输入vi或者 vim查看文件,syntax功能都无法正常启用。因此需要用yum安装另外两个组件:vim-common-7.x和vim-enhanced- 7.x。命令行里敲入:yum -y install vim-enhanced如果使用crontab出错:[root@176177 ~]#crontab -eno crontab for root - using an empty one/bin/sh: /bin/vi: No such file or directorycrontab: "/bin/vi&qu 阅读全文
posted @ 2013-06-13 16:16 bigwhiteshark(云飞扬) 阅读(29135) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 25 下一页