摘要: Layzr Demo 阅读全文
posted @ 2015-07-30 09:29 Adtuu 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 一:使用jsonp格式,如jquery中ajax请求参数 dataType:'JSONP'。 title 测试Ajax跨域问题 二,server端加上header设为Access-Control-Allow-Origin:*header("Access-Control-Allo... 阅读全文
posted @ 2015-07-30 09:28 Adtuu 阅读(410) 评论(0) 推荐(0) 编辑
摘要: live cam 录像页面 阅读全文
posted @ 2015-07-30 09:26 Adtuu 阅读(1683) 评论(0) 推荐(0) 编辑
摘要: 在eclipse.app右键,单击“显示包内容”,如下图: 2、找到"info.plist"文件并打开,在文件最后插入配置“NSHighResolutionCapable”,如下图:3、 保存后关闭"info.plist"文件4、 复制eclipse.app文件后删除旧的eclipse.app文件(... 阅读全文
posted @ 2015-07-30 09:25 Adtuu 阅读(2428) 评论(0) 推荐(0) 编辑
摘要: {"font_face": "Courier New","font_options":["subpixel_antialias"],"font_size": 16.5} 阅读全文
posted @ 2015-07-30 09:22 Adtuu 阅读(214) 评论(0) 推荐(0) 编辑
摘要: vhost设定http.conf AllowOverride none #Require all deniedvhost.conf #ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "/Users/zhoutingze/proje... 阅读全文
posted @ 2015-07-30 09:21 Adtuu 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Now you need to find out what version of PHP is installed on OSX$ php -vPHP 5.3.10 with Suhosin-Patch (cli) (built: Feb 20 2012 22:55:53) Copyright (c... 阅读全文
posted @ 2015-07-30 09:19 Adtuu 阅读(3269) 评论(0) 推荐(0) 编辑
摘要: libevent扩展安装libevent-2.0.16-stable.tarhttp://libevent.org/[plain]view plaincopycdlibevent-2.0.16-stable./configuremakemakeinstall下载php-libeventc 扩展ht... 阅读全文
posted @ 2015-07-30 09:18 Adtuu 阅读(111) 评论(0) 推荐(0) 编辑
摘要: The manual way1. Clone the repository:git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh2.Optionally, backup your existing~/.zshrcfile... 阅读全文
posted @ 2015-07-30 09:17 Adtuu 阅读(652) 评论(0) 推荐(0) 编辑
摘要: MySQL的安装一、下载MySQL http://dev.mysql.com/downloads/mysql/二、安装 $tar -xzvf mysql-5.1.45-osx10.6-x86_64.tar.gz $sudomvmysql-5.1.45-osx10.6-x86_64/u... 阅读全文
posted @ 2015-07-30 09:15 Adtuu 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 我们设置网站权限的时候,有些目录不得不设置让http服务器有写入权限,这样安全隐患就来了。比如discuz x2的 data目录,这个必须要有写入限,论坛才能正常运行,但有的黑客可能就会利用这个目录上传php文件(你会说附件上传已经限制这种格式的文件,但谁知道黑客会利用什么手段上传呢,只有他们清楚了... 阅读全文
posted @ 2015-07-30 09:13 Adtuu 阅读(542) 评论(0) 推荐(0) 编辑
摘要: #重启nginxsudo /etc/init.d/nginx restartsudo /etc/init.d/nginx Usage:/etc/init.d/nginx {start|stop|status|restart|condrestart|try-restart|reload|force-r... 阅读全文
posted @ 2015-07-30 09:12 Adtuu 阅读(1031) 评论(0) 推荐(0) 编辑
摘要: nginx: 在配置文件nginx.conf的http段里加入 server_tokens off; HTTPD.CONFTraceEnable Off <Directory ~ "\.svn">Order allow,denyDeny from all</Directory> HTTPD_DEFA 阅读全文
posted @ 2015-07-30 09:06 Adtuu 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-07-30 09:04 Adtuu 阅读(68) 评论(0) 推荐(0) 编辑
摘要: RewriteEngine On#如果文件存在就直接访问目录不进行RewriteRuleRewriteCond %{REQUEST_FILENAME} !-f#如果目录存在就直接访问目录不进行RewriteRuleRewriteCond %{REQUEST_FILENAME} !-d#将所有其他UR... 阅读全文
posted @ 2015-07-30 09:03 Adtuu 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-07-29 17:49 Adtuu 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 第一种方法:当然首先想到的是写一个触发的脚本,在触发脚本中使用死循环来解决此问题,如下:cat kick.sh#!/bin/bashwhile : ;do/home/somedir/scripts.sh 2>/dev/null &sleep 3done注意第一次运行时不要使用 bash kick.s... 阅读全文
posted @ 2015-07-29 09:39 Adtuu 阅读(4292) 评论(0) 推荐(0) 编辑
摘要: #!/bin/shdir_path="/vol/project/log/test/"for year in {2012..2013}do #echo "$year" cd $dir_path mkdir $year for month in {1..12} do ... 阅读全文
posted @ 2015-07-24 16:50 Adtuu 阅读(1204) 评论(0) 推荐(0) 编辑
摘要: 摄像头的调用 阅读全文
posted @ 2015-07-24 16:27 Adtuu 阅读(1630) 评论(0) 推荐(0) 编辑
摘要: This text is displayed if your browser does not support HTML5 Canvas.This text is displayed if your browser does not support HTML5 Canvas. 阅读全文
posted @ 2015-07-24 16:22 Adtuu 阅读(1432) 评论(0) 推荐(0) 编辑