Changes with nginx 1.1.14 30 Jan 2012
) Feature: multiple "limit_req" limits may be used simultaneously.
) Bugfix: in error handling while connecting to a backend. Thanks to Piotr Sikora.
) Bugfix: in AIO error handling on FreeBSD.
) Bugfix: in the OpenSSL library initialization.
) Bugfix: the "proxy_redirect" directives might not be correctly inherited.
) Bugfix: memory leak during reconfiguration if the "pcre_jit" directive was used.
分类: 技术发现
网上资料太差,关于新iphone4s如何导入原手机通信录
网上资料大都是以讹传讹,照着作要不失败要不不知所云,我今天测试了一下,搞明白了,给大家讲一下,这里只讲如何导入到新iphone4s,其他的自己摸索,大体一致。
我原来的手机是MOTO ME525,也叫DEFY,在WIN机器上和MOTO手机的安卓系统中都安装了豌豆荚,导入导出通讯录是基本功能(具体操作参见豌豆荚官网),豌豆荚从手机导出的通讯录是一个VCF后缀文件,这个VCF后缀文件其实包含了很多VCF名片夹,这点很方便,不用一个一个导入GMAIL了。
GMAIL起个中间层的功能,IPHONE4S可以从GMAIL同步联系人,而GMAIL又可以从WIN机器上导入VCF文件,所以我们必须要注册一个GMAIL账户(mail.google.com,用IE访问即可),现在不用邀请码了,随意申请,如果你申请不了留言给我,我还有50个邀请码。
申请好GMAIL后用IE登陆进去,你会发现在登陆界面的左上角有两个中文的邮件两个字,旁边有个小倒三角,点这个,选择通讯录,然后找 导入… 这个按钮,点击后就可以从WIN机器上导入VCF文件了,稍微等了一会,我的MOTO通讯录就全导入到GMAIL账户中了。
这时,准备工作都已完成,要做的就是用itunes同步通信录了,是用iphone4s中的itunes吗?当然不是,这个itunes是需要装到你电脑中的,下载地址是
https://www.apple.com.cn/itunes/
目前版本10.5,装在WIN机器或MAC系统中
装好后,点击WIN系统刚装好的itunes图标,然后把IPHONE4S和电脑连接上,itunes会认出iphone设备,点itunes界面中的你的手机名称,然后点击右侧出现的信息标签,找到下面通讯录,从GMAIL同步,并设置GMAIL账户信息,然后就可以确定同步了,几秒钟就同步OK了,就是这么简单。
关闭WordPress日志评论功能的一种方法(已测试)
近期,不知道咋回事,垃圾评论铺天盖地,根本没时间审核,找到了一种方法,可以关闭多少天以前的评论,现记录在此供大家学习使用
修改主题模板文件 functons.php ,加入一个新function
function close_comments( $posts ) {
if ( !is_single() ) { return $posts; }
if ( time() - strtotime( $posts[0]->post_date_gmt ) > ( 30 * 24 * 60 * 60 ) ) {
$posts[0]->comment_status = 'closed';
$posts[0]->ping_status = 'closed';
}
return $posts;
}
add_filter( 'the_posts', 'close_comments' );
以上30的单位是天,可以按需修改。
——-新版本的wordpress已经带超时评论关闭功能了,在设置里的讨论选项里,大家可以发掘一下
nginx 发布 1.1.13
Changes with nginx 1.1.13 16 Jan 2012 *) Feature: the "TLSv1.1" and "TLSv1.2" parameters of the "ssl_protocols" directive. *) Bugfix: the "limit_req" directive parameters were not inherited correctly; the bug had appeared in 1.1.12. *) Bugfix: the "proxy_redirect" directive incorrectly processed "Refresh" header if regular expression were used. *) Bugfix: the "proxy_cache_use_stale" directive with "error" parameter did not return answer from cache if there were no live upstreams. *) Bugfix: the "worker_cpu_affinity" directive might not work. *) Bugfix: nginx could not be built on Solaris; the bug had appeared in 1.1.12. *) Bugfix: in the ngx_http_mp4_module.
基本上还是一个BUG修复版本
转–MacOSX截图快捷键总结
平时使用windows的朋友应该对Print Screen,Alt+Print Screen非常熟悉了,那么在Mac上要怎么截图呢?其实Mac OSX系统内集成的截图功能比Windows要丰富的多,这些功能在Windows上还要单独安装HyperSnap等截图软件才可以实现。下面我就把截图相关的快捷键总结一下:
- ⌘⇧3:截取全屏至Desktop
- ⌘⇧4:鼠标变成座标符号,截取鼠标选定区域至Desktop
- ⌘⇧4:然后鼠标点击之前按Space键,截取指定窗口至Desktop
- 以上快捷键加按^键可以截取至夹纸板而不是Desktop。
然后要说明的是⌘⇧4之后的一些附加功能:
鼠标托拽过程中:
- 加按⇧,可以锁定垂直托拽还是水平托拽
- 加按⌥,以框的中心为固定点而不是左上角
- 加按Space,平移选框
- 以上键若同时按下效果可叠加
- 其实这些附加约束键和Photoshop的选框附加键是一致的,熟悉Photoshop的朋友应该很习惯了。
- 托拽过程中按下⎋可以退出截图而不保存。
当然如果你实在觉得快捷键操作不够直观或者不容易记忆的话,应用程序->实用工具 里还有带有GUI的“抓图”工具可以使用。
macos下修改adobe bridge cs5 语言选项
nginx 1.1.12释出,圣诞节也不安生
Changes with nginx 1.1.12 26 Dec 2011
*) Change: a "proxy_pass" directive without URI part now uses changed
URI after redirection with the "error_page" directive;
Thanks to Lanshun Zhou.
*) Feature: the "proxy/fastcgi/scgi/uwsgi_cache_lock",
"proxy/fastcgi/scgi/uwsgi_cache_lock_timeout" directives.
*) Feature: the "pcre_jit" directive.
*) Feature: the "if" SSI command supports captures in regular
expressions.
*) Bugfix: the "if" SSI command did not work inside the "block" command.
*) Bugfix: the "limit_conn_log_level" and "limit_req_log_level"
directives might not work.
*) Bugfix: the "limit_rate" directive did not allow to use full
throughput, even if limit value was very high.
*) Bugfix: the "sendfile_max_chunk" directive did not work, if the
"limit_rate" directive was used.
*) Bugfix: a "proxy_pass" directive without URI part always used
original request URI if variables were used.
*) Bugfix: a "proxy_pass" directive without URI part might use original
request after redirection with the "try_files" directive;
Thanks to Lanshun Zhou.
*) Bugfix: in the ngx_http_scgi_module.
*) Bugfix: in the ngx_http_mp4_module.
*) Bugfix: nginx could not be built on Solaris; the bug had appeared in
1.1.9.
Google推出圣诞彩蛋“Let it Snow”
使用firefox、safari、chrome等浏览器打开谷歌主页,并键入“let it snow”进行搜索,谷歌在给出相关搜索结果的同时,页面会慢慢飘起雪花。随着雪花越积越多,电脑屏幕会逐渐模糊,并出现霜冻效果。这时,移动鼠标就能在结霜的屏幕上随便涂鸦。如果,你想摆脱屏幕被“冻”住的局面,只要点击一旁的“除霜”按钮,屏幕就会恢复清晰,此时尽管屏幕依然“下雪”,但霜冻效果不再,页面可正常使用。
nginx 1.1.11 开发版释出
Changes with nginx 1.1.11 12 Dec 2011
*) Feature: the "so_keepalive" parameter of the "listen" directive.
Thanks to Vsevolod Stakhov.
*) Feature: the "if_not_empty" parameter of the
"fastcgi/scgi/uwsgi_param" directives.
*) Feature: the $https variable.
*) Feature: the "proxy_redirect" directive supports variables in the
first parameter.
*) Feature: the "proxy_redirect" directive supports regular expressions.
*) Bugfix: the $sent_http_cache_control variable might contain a wrong
value if the "expires" directive was used.
Thanks to Yichun Zhang.
*) Bugfix: the "read_ahead" directive might not work combined with
"try_files" and "open_file_cache".
*) Bugfix: a segmentation fault might occur in a worker process if small
time was used in the "inactive" parameter of the "proxy_cache_path"
directive.
*) Bugfix: responses from cache might hang.