@ZEAL Blog·厉
WWW Zeal Blog
We stand alone,
+ 0 - 0 | §添加Gmail联系人的多个地址到群组

用 Google Contacts 管理联系人有很多好处自不必多说。出于数据洁癖,通常我会以人为单位来创建,把他的多个Email地址、联系电话等信息都归集合并在一个联系人条目下。



打开联系人 -> 找到联系人姓名下面的联系人所属Group列表区域 -> 每个群组的右侧应该都有一个倒三角标识,点击这个三角 -> 出现Email地址勾选项,选中你希望与Group做对应的Email地址 -> 然后点击勾选项下面的 "Apply" 按钮。

Multiple emails per contact in Gmail group?

Open a contact.  At the top, under the contact's name, you should see a list of contact groups that the contact belongs to.  To the right of each group's name, there should be a small triangle.  If you click that triangle, it will give you a list of email addresses for the contact, and allow you to check the address(es) that you want to belong to that particular group.  Make sure you click "Apply" when you're done.

标签 ( 网络 ) :
+ 0 - 0 | §svn自动版本发布导致的运行时错误

系统环境: LNMP (php-fpm) + APC ;通过 svn export 的二次封装实现根据版本号的源代码自动发布到生产环境服务器。

问题:更新后随机出现各种PHP运行时错误,通常都是 Class Not Found 之类的错误。但实际文件内容是正确的。重启 php-fpm 后自动恢复正常。通常在大版本更新涉及到比较多的文件写入时出现。

原因:APC默认是通过系统文件的mtime来判断是否需要更新缓存的,而svn export的时候修改的是文件的ctime;这就导致在大批量更新同时又触发到APC对其中某个写入到一半的文件的访问时,APC获取到的是不完整的文件内容,又不会在文件完成写入ctime变化之后再次尝试获取正确的文件版本。

修正:配置 php.ini 的参数 apc.stat_ctime = 1



modifies APC's behavior to check the ctime instead of the mtime. The ctime (creation/change) of a file is updated every time a file is copied or its permissions are changed (since they reside in the inodes of the file). The mtime is reset only when the file is actually modified: unzipping a file or rsyncing it may not affect mtime.

For this reason, ctime causes more false positives (that have to be cached again) but it's more reliable against all deployment methods which may not affect mtime.

标签 ( PHP ) :
Since 2005.04.27  梦想 就像鸡蛋 要么孵化 要么臭掉RSS Feed (Entries) | About me | Back To Home | @ZEAL | zbird.com | 沪ICP备05024379号