This guide will walk through installing and configuring Ejabberd on CentOS 7 to use Riak KV, Redis, and MySQL.
I have provided an example ejabberd.yml to help.
| // The tools below can be used to easily start fragments and activities across module boundaries. | |
| // Example usage - a "directory" is declared like this object. | |
| // Then you can use it to: | |
| // Create a new fragment: Search.results().newInstance(fragmentArguments) | |
| // Create an intent for the Fragment: Search.results().newIntent(context, fragmentArguments) | |
| // Start an intent for the Fragment: Search.results().startActivity(context, fragmentArguments) | |
| object Search : Fragments("com.example.android.search") { | |
| fun results() = create<SearchArguments>("SearchResultsFragment") |
| import android.arch.lifecycle.Lifecycle | |
| import android.arch.lifecycle.LifecycleObserver | |
| import android.arch.lifecycle.LifecycleOwner | |
| import android.arch.lifecycle.OnLifecycleEvent | |
| import com.jakewharton.rxrelay.BehaviorRelay | |
| import rx.Observable | |
| import rx.android.schedulers.AndroidSchedulers | |
| import rx.functions.Action1 | |
| import rx.subscriptions.CompositeSubscription |
| package com.cjtp.android.api.interceptors; | |
| import android.util.Log; | |
| import com.google.gson.JsonObject; | |
| import com.inviteez.android.core.Session; | |
| import com.inviteez.android.utils.Constant; | |
| import org.json.JSONException; | |
| import org.json.JSONObject; | |
| import java.io.IOException; |
This guide will walk through installing and configuring Ejabberd on CentOS 7 to use Riak KV, Redis, and MySQL.
I have provided an example ejabberd.yml to help.
| /* | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2015 ARNAUD FRUGIER | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener { | |
| public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName(); | |
| private int previousTotal = 0; // The total number of items in the dataset after the last load | |
| private boolean loading = true; // True if we are still waiting for the last set of data to load. | |
| private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more. | |
| int firstVisibleItem, visibleItemCount, totalItemCount; |
| /* | |
| * Copyright (C) 2014 skyfish.jy@gmail.com | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| /* | |
| * Copyright 2014 Google Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| /* | |
| * Copyright (C) 2008 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |