编程经验分享

笑看嫣红染半山,
逐风万里白云间,
逍遥此身不为客,
天地三才任平凡。

0%

thinkphp在nginx没有pathinfo的情况出现.php的文件,这个让人很是纠结。

在服务器是linux,web服务器是nginx, CGI接口是FASTCGI,就会出现这个问题

问题原因:ThinkPHP/common/runtime.php中定义IS_CGI常量的定义有问题;
错误代码:

[![5304678604f66.jpg - 大小: 193.49 KB - 尺寸: 806 x 301 - 点击打开新窗口浏览全图](http://www.jincon.com/attachments/date_201412/f6d101b101486664f726a95993167132.jpg)](http://www.jincon.com/attachment.php?id=84)
阅读全文 »

转自:http://android.jobbole.com/81915/

前言

Android应用中的APK安全性一直遭人诟病,市面上充斥着各种被破解或者汉化的应用,破解者可以非常简单的通过破解工具就能对一个APK进行反编译、破解、汉化等等,这样就可以修改原有代码的逻辑、添加新代码、添加或修改资源、或者更有甚者植入病毒等等,从而破坏原有APK的安全和用户体验,最终伤害到用户和原有的开发者。

阅读全文 »

转自:http://gank.io/post/560e15be2dca930e00da1083

前言

我从去年开始使用 RxJava ,到现在一年多了。今年加入了 Flipboard 后,看到 Flipboard 的 Android 项目也在使用 RxJava ,并且使用的场景越来越多 。而最近这几个月,我也发现国内越来越多的人开始提及 RxJava 。有人说『RxJava 真是太好用了』,有人说『RxJava 真是太难用了』,另外更多的人表示:我真的百度了也谷歌了,但我还是想问: RxJava 到底是什么?

阅读全文 »

Why the image quality of iPhone is much better than Android?

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 _快捷键,这能使得很多以下的快捷键更容易操作。

阅读全文 »