sudo apt-get install python3-pip
sudo pip3 install virtualenv
// Dagger 1 example | |
@Module( | |
complete = false, | |
library = true | |
) | |
public final class ApiModule { | |
@Provides | |
@Singleton | |
Retrofit provideRetrofit(Gson gson, Application app) { | |
return new Retrofit.Builder() |
$ wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo | |
$ yum install devtoolset-2-gcc devtoolset-2-binutils | |
$ yum install devtoolset-2-gcc-c++ devtoolset-2-gcc-gfortran | |
#!/usr/bin/env bash | |
#Install ChromiumOS touchpad driver for linux chroot (crouton) on Acer C720P (Peppy) Chromebook. | |
#This makes the touchpad behave and respond like it does in ChromeOS. | |
#See: https://github.com/hugegreenbug/xf86-input-cmt/issues/6 | |
#I posted a note about this script in: https://groups.google.com/forum/#!topic/crouton-central/claM9XZxsz0 | |
#and https://github.com/dnschneid/crouton/wiki/Acer-C720-C720P#touchpad | |
#After creating/installing this driver, look at: | |
#https://github.com/hugegreenbug/xf86-input-cmt#notes |
This guide is a first draft (that will end up in the official docs) on writing resilient code for production with the Couchbase Java SDK. At the end, the reader will be able to write code that withstands bugs, latency issues or anything else that can make their application fail.
Note that lots of concepts can be applied for both synchronous and asynchronous access. When necessary, both patterns are discussed separately. Also, the focus is on database interaction, but if you are using RxJava as part of your stack you can apply most of the principles there as well (and should!).
When working with Observables, it is important to understand the difference between cold and hot. Cold Observables will start to emit events once a Observer subscribes, and will do it "fresh" for each Observer. Hot Observables instead are starting to emit data as soon as it becomes available, and will return the same (or parts of the same)