thinkphp在nginx没有pathinfo的情况出现.php的URL的解决方法
thinkphp在nginx没有pathinfo的情况出现.php的文件,这个让人很是纠结。
在服务器是linux,web服务器是nginx, CGI接口是FASTCGI,就会出现这个问题
问题原因:ThinkPHP/common/runtime.php中定义IS_CGI常量的定义有问题;
错误代码:
thinkphp在nginx没有pathinfo的情况出现.php的文件,这个让人很是纠结。
在服务器是linux,web服务器是nginx, CGI接口是FASTCGI,就会出现这个问题
问题原因:ThinkPHP/common/runtime.php中定义IS_CGI常量的定义有问题;
错误代码:
1 Android手机目前常见的分辨率
1.1 手机常见分辨率:
4:3
VGA 640480 (Video Graphics Array)
QVGA 320240 (Quarter VGA)
HVGA 480320 (Half-size VGA)
SVGA 800600 (Super VGA)
著作权归作者所有。
商业转载请联系作者获得授权,非商业转载请注明出处。
作者:张明云
链接:http://zhuanlan.zhihu.com/zmywly8866/20309921
来源:知乎
转自:http://android.jobbole.com/81915/
前言
Android应用中的APK安全性一直遭人诟病,市面上充斥着各种被破解或者汉化的应用,破解者可以非常简单的通过破解工具就能对一个APK进行反编译、破解、汉化等等,这样就可以修改原有代码的逻辑、添加新代码、添加或修改资源、或者更有甚者植入病毒等等,从而破坏原有APK的安全和用户体验,最终伤害到用户和原有的开发者。
我从去年开始使用 RxJava ,到现在一年多了。今年加入了 Flipboard 后,看到 Flipboard 的 Android 项目也在使用 RxJava ,并且使用的场景越来越多 。而最近这几个月,我也发现国内越来越多的人开始提及 RxJava 。有人说『RxJava 真是太好用了』,有人说『RxJava 真是太难用了』,另外更多的人表示:我真的百度了也谷歌了,但我还是想问: RxJava 到底是什么?
There are so many comparations between Android phone and iPhone. We cannot make the conclusion about which one is better, but we all knows that the image quality of Android phone is much worse than iPhone. No matter you are using Facebook, Twitter or even Instagram, after taking the photo, adding a filter, then sharing to the social network, the images produced by Android phone are always coarse. Why?
Our team had been working on this issue in the last year. After very deep research, we found that this was a “TINY” mistake made by Google. Although tiny, but the influence was very huge (all Android Apps related to image), and lasted till today.
About two years ago, I tried to improve the support of the GIF encoding in FFmpeg to make it at least decent. This notably led to the addition of the transparency mechanism in the GIF encoder. While this is not always optimal depending on your source, it is in the most common cases. Still, this was merely an attempt to prevent shaming the encoder too much.
原文:http://blog.stablekernel.com/level-up-with-android-studio-shortcuts-and-live-templates/
利用 Android Studio 键盘快捷键、重构选项和活动模板快速导航和重构你的代码。
快捷键的配置需要仔细,避免冲突,这样才可以把快捷键的各个动作连接起来,提高效率。
_注:这里讨论的所有快捷键都是 __Android Studio for Mac OS X __的默认快捷键。推荐禁用覆盖 __F# __键的 __Mac _快捷键,这能使得很多以下的快捷键更容易操作。

转自:http://www.jianshu.com/p/cb05698a1968
早期的Android系统几乎只支持ARMv5的CPU架构,你知道现在它支持多少种吗?7种!
Android系统目前支持以下七种不同的CPU架构:ARMv5,ARMv7 (从2010年起),x86 (从2011年起),MIPS (从2012年起),ARMv8,MIPS64和x86_64 (从2014年起),每一种都关联着一个相应的ABI。