2015-08-09 Klaus Ma
What Is Google C++ Mocking Framework? When you write a prototype or test, often it's not feasible or wise to rely on real objects entirely. A mock object implements the same interface as a real object (so it can be used as one), but lets you specify at run time how it will be used and what it should do (which methods 继续阅读 »
2016-08-24 Klaus Ma
When looking at container orchestration platforms, open-source communities have produced a number of viable options including Kubernetes, Marathon-Mesos, or Docker Swarm. Kubernetes stands out as a popular choice amongst many users looking to run cloud-native on-line workloads. It has built-in support for a number of u 继续阅读 »
2015-07-21 Jason Liao
click here! I rewrite all the demos with ES6, some note here, source code here 继续阅读 »
2015-06-07 Jason Liao
Installation npm install express Usage ```javascript var express = require('express'); var app = express(); 继续阅读 »
2015-08-09 Klaus Ma
You can find recipes for using Google Mock here. If you haven't yet, please read the ForDummies document first to make sure you understand the basics. 继续阅读 »
2015-03-21 Roger
最近由于工作上的需要,研究了一下framework层面的东西。收获良多,感受颇深啊。 在 设置->安全 中选择屏幕锁定,选择屏幕锁定方式为密码,然后勾选显示密码选项,此时应该在输入密码时,先显示输入的密码,过1.5S后将变为小圆点,若取消显示密码则输入直接为小圆点。 而由于“前人”对锁屏的改动造成取消显示密码后,还是先显示密码才跳为小圆点,这是我要解决的BUG。 研究后发现“前人”将 Keyguard 中 com.android.keyguard.KeyguardPasswordView 类 106 行改变了Textview的inputtype,将其恢复后BUG得以解决。 Why?我一头雾水,甚至都不知道是在哪把输入的字符变 继续阅读 »
2015-08-14 Roger
最近研究了一下andorid的启动过程,记录一点心得. 学习资料主要为这两篇博客: Android Framework启动流程分析 Android启动过程深入解析,感谢博主. 继续阅读 »
2015-04-17 Roger
最近在本地编译Settings环境的搭建上走了点弯路,现在记录一下,希望能帮到有需要的同学。 1.解除ADT对android内部API的使用限制: 进入 eclipse的plugins文件夹,找出名为com.android.ide.eclipse.adt_*.jar的文件。做一个备份(以防修改错了),另外复制一份改文件到一个单独的”experimental”文件夹,在那里进行字节码修改。修改*.jar为*.zip,解压文件到一个单独的文件夹,下面就是我所得到的: 继续阅读 »
2015-05-07 summer
最近在学习Tkinter的知识,这使用图片时发现不能正常显示,google一下,发现Tkinter默认支持gif格式,使用其他格式的文件需要安装PIL模块。不过在安装过程中出现了一下错误问题: ``` 1 warning generated. clang: warning: -framework Tcl: 'linker' input unused clang: warning: -framework Tk: 'linker' input unused In file included from _imagingtk.c:19: /Applications/Xcode.app/Contents/Developer/Platform 继续阅读 »
2017-01-03 Roger
关于 Binder 的一些知识点 Binder 作为 Android 底层最重要的 IPC 的方式,其重要性不言而喻,而它所覆盖的知识点又非常的复杂繁琐。记录一下关于 Binder 的一些知识点和要点,以便将来复习方便。 Binder 的作用是什么? 继续阅读 »