Jocoo's blog

All problems in computer science can be solved by another level of indirection.


  • Home

  • Archives

  • Categories

  • Tags

使用RxJava协同加载本地缓存与网络数据

Posted on 2017-04-13 | In android

项目中我们常常遇到这种情况:首页上面的数据做了缓存,首次打开app时,若存在缓存,则先加载缓存,同时拉取网络数据,加载完毕后界面再显示网络数据,如何实现呢?

Read more »

使用RxJava防止button快速点击

Posted on 2017-04-13 | In android

项目中很多场景需要防止重复点击,比如提交订单等与支付相关的操作时,要避免重复点击重复提交表单,使用RxJava可以优雅的实现

Read more »

Java中synchronized关键字的实现原理

Posted on 2017-03-26 | In Java

synchronized提供了Java中同步原语的实现

Read more »

Install mysql in centos7

Posted on 2016-12-20 | In linux

Centos7中安装MySQL默认安装的是mariadb

Read more »

rand5生成rand7

Posted on 2016-11-08 | In 算法

问题:已知rand5生成rand7

Read more »

Emacs lisp使用宏扩展编辑功能

Posted on 2016-11-08 | In tools

Lisp的宏是一个非常神奇的特性,可以在编译时动态运行代码,也就是动态生成代码的能力

Read more »

老鼠毒药问题

Posted on 2016-11-07 | In 算法

一个经典的问题:有100瓶相同的瓶子,其中99瓶装的是普通的水,还有1瓶装的是毒药,外观没有区别,白鼠喝完毒药一个星期之后才会死亡,现在已有一个星期的时间,问至少需要多少只小白鼠才能找出有毒的那瓶水?

Read more »

Emacs中的restclient-mode

Posted on 2016-10-08 | In tools

开发中常常需要debug后台的service工具,比如ruby实现的rest-client,intellij-idea自带rest client tool,vim编辑器也有vim-http-client,今天要介绍的是emacs中的restclient-mode

Read more »

Emacs中自定义快速编辑功能

Posted on 2016-09-08 | In tools

emacs的一个强大之处就在于它不仅仅是一个编辑器,它还是一个emacs lisp解析器,可以通过emacs lisp扩展emacs的功能,下面是我自己扩展的用于提高编辑效率的emacs lisp函数

Read more »

Building emacs with msys2

Posted on 2016-09-06 | In tools

emacs官网下载的Windows版本缺少很多功能,比如不能显示jpeg、png等图片,于是打算自己编译emacs

Read more »
123
Jocoo

Jocoo

28 posts
5 categories
27 tags
© 2018 Jocoo
0%