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 继续阅读 »
2015-06-07 Jason Liao
Installation npm install express Usage ```javascript var express = require('express'); var app = express(); 继续阅读 »
2015-07-21 Jason Liao
click here! I rewrite all the demos with ES6, some note here, source code here 继续阅读 »
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. 继续阅读 »
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-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启动过程深入解析,感谢博主. 继续阅读 »
2017-01-03 Roger
关于 Binder 的一些知识点 Binder 作为 Android 底层最重要的 IPC 的方式,其重要性不言而喻,而它所覆盖的知识点又非常的复杂繁琐。记录一下关于 Binder 的一些知识点和要点,以便将来复习方便。 Binder 的作用是什么? 继续阅读 »
2018-09-21 Roger
Android Accessibility 的少许开发经验 What's Accessibility 简单来说 Accessibility 就是为了让一些残障人士也能正常使用手机或 App 的基本功能,主要包括 Talkback ,视弱的支持等,具体参见:https://developer.android.com/guide/topics/ui/accessibility/ 继续阅读 »
2015-05-06 刘太华
一个单线程的epoll server示例 这个示例是一个echo server, 将回显client端send的64字节. 代码在 echoEpollServer 在OSX下 gcc 4.6, linux 下编译可用, 默认被写死了监听8886端口. 继续阅读 »