Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/// // MJViewController.m // 03.AFN演练 // // Created by apple on 14-4-30. // Copyright (c) 2014年 itcast. All rights reserved. // #import "MJViewController.h" #import "AFNetworking.h" @interface MJViewController () @end @impl
...继续阅读
(31)
SELECT u.user_id,u.user_name,c.ct,sub.cts FROM `zdh_users` u LEFT JOIN (select admin_id,count(*) as ct FROM `zdh_users` GROUP by admin_id) as c ON u.user_id = c.admin_id LEFT JOIN (select admin_id,count(*) as cts FROM `zdh_users` where is_subscribe = 1 GROUP by admin_id) as sub ON u.user_id = sub.admin_id WHERE c.ct >0 order by c.ct DESC ,sub.cts DESC,u.user_id ASC@import url(http://www.cppblog.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);聂文龙2016-09-08 18:12发表评论
...继续阅读
(24)
Mac OS X 10.9已经自带有php-fpm,对于有干净系统强迫症的人,或者原装控来说,用brewhome重装一遍总感觉心里会有小兔子,下面把原装的php-fpm配置起来。直接运行,有报错找不到配置文件。$ php-fpm[11-Jan-2014 16:03:03] ERROR: failed to open configuration file '/private/etc/php-fpm.conf': No such file or directory (2)[11-Jan-2014 16:03:03] ERROR: failed to load configuration file '/private/etc/php-fpm.conf'[11-Jan-2014 16:03:03] ERROR: FPM initialization failed可以在/private/etc/ 目录下生成配置文件,需要root权限(sudo)或者在普通用户有权限的目录里放置配置文件,通过--fpm-config参数指定配置文件的位置,如下:# cp /private/etc/php-fpm.conf.default /usr/local/etc/php-fpm.conf$ php-fpm --fpm-config /usr/local/etc/php-fpm.conf[11-Jan-201
...继续阅读
(95)