02 2014 档案

nginx,php-fpm性能优化
摘要:When you running a highload website with PHP-FPM via FastCGI, the following tips may be useful to you : ) 如果您高负载网站使用PHP-FPM管 理FastCGI,这些技巧也许对您有用:) 1. Compile PHP’s modules as less as possible, the simple the best (fast); 1.尽量少安装PHP模块,最简单是最好(快)的 2. Increas PHP FastCGI child ... 阅读全文

posted @ 2014-02-18 15:59 一天一點 阅读(497) 评论(0) 推荐(0)

百度地图如何计算两点之间距离
摘要:路线规划提供了获取路线距离的方法,见MKRoutePlan 类的 getDistance 方法。如果是计算任意两点的距离,自2.0.0版本开始,Android SDK为开发者提供了计算距离的接口(DistanceUtil),具体使用方法如下:1.GeoPoint p1LL = new GeoPoint(39971802, 116347927);2.GeoPoint p2LL = new GeoPoint(39892131, 116498555);3.double distance = DistanceUtil.getDistance(p1LL, p2LL);如果开发者使用的是1.3.5及以前的 阅读全文

posted @ 2014-02-10 17:11 一天一點 阅读(2340) 评论(0) 推荐(0)