Guice Concise Tutorial

Guice It's an open source dependency injection library for Google, smaller and faster than Spring IoC. Elastic search uses Guice extensively. This article briefly introduces the basic concepts and usage of Guice. Learning objectives Summary: Understand what Guice is and what its characteristics are. Quick Start: Learn about Guice through examp ...

Posted by blkrt10 on Sun, 14 Jul 2019 17:09:13 -0700

When the UI is not there, who will save your aesthetics? Use of Android-Iconics Open Source Library

Previous Situation Summary: The company does not let the UI do heavy work, let me find the icon myself. This open source library is then recommended. You can change the color and size of icon at will. It's a little refreshing to use. Brief books and gold diggers can not find relevant blogs, stepped on the pit, everything can only rely on their ...

Posted by guitarist809 on Sun, 14 Jul 2019 14:12:50 -0700

EventBus Source Learning Notes (I)

EventBus in-depth study 1 > EventBus is a message bus, which is implemented in the observer mode. It is used to simplify the communication between components and threads. It can easily switch threads and open threads. Traditionally, event distribution in Java process is realized through explicit registration between publishers and subscriber ...

Posted by iconicCreator on Thu, 11 Jul 2019 15:55:22 -0700

Android Source-Start Source Analysis of Android System

Analysis of Startup Source Code for Android System Understanding Android's source code can help us learn better about the excellent source code of the system, and how a program is implemented by google engineers. Source analysis can also strengthen our programming ideas. guide Android system startup process source code analysis, based on An ...

Posted by Mr P!nk on Thu, 11 Jul 2019 13:55:43 -0700

Decorator Pattern With Laravel Decorator Mode

Decorator Pattern s Decorator Model Outline: 1. A beginner's doubts 2. Characteristics of Decorator Model 3. Simple case Masters Decorator Mode 4. Application of Decorator Mode in Laravel Confusing: Before I started to study the source code of laravel, I knew little about Decorator Mode, but when I created a middleware, I still did ...

Posted by kratos-2012 on Thu, 11 Jul 2019 11:32:39 -0700

gRPC Programming of Tensorflow (3)

This section is mainly about python's tutorial. here gRPC Foundation: Python This tutorial provides guidance for Python programmers on how to use gRPC. By learning the examples in the tutorial, you can learn how to: Define services in A. proto file. Generate server and client code with protocol buffer compiler. Use the Pyth ...

Posted by anne13 on Wed, 10 Jul 2019 16:41:29 -0700

android Learning (XIV) Photo Capture

Request camera privileges <manifest ... > <uses-feature android:name="android.hardware.camera" android:required="true" /> ... </manifest> Google Play will allow applications to be downloaded on devices without cameras. Then you have the responsibility to check the availability of the camera hasSy ...

Posted by X.Cyclop on Wed, 10 Jul 2019 12:55:01 -0700

The Thinking Logic of Computer Programs (79) - Convenient Completion Service

Upper segment We mentioned that in asynchronous task programs, a common scenario is that the main thread submits multiple asynchronous tasks and then wants to process the results as soon as the task is completed, and process them one by one in the order of task completion. For this scenario, Java concurrent package provides a convenient way to ...

Posted by Shroder01 on Tue, 09 Jul 2019 12:26:24 -0700

Android memory optimization

In the actual development of Android, there may be situations where objects that are no longer used can not be recycled by the system, which may lead to memory leaks, or even memory overflow, leading to program crash. Detection method: LeakCanary Optimizing scheme: 1. Check how much memory is used The heap memory size of each APP has a har ...

Posted by bluemonster on Mon, 08 Jul 2019 13:36:23 -0700

Git and Nodejs Learning Notes

First of all, make clear our task for this time. Task Map This assignment is divided into four parts. them.png Git Creates Version Library First Using cd to enter version Library mkdir creates a version LibraryThe pwd command is used to display the current directoryAs shown in the following figure Figure 1 Make this directory a ...

Posted by designedfree4u on Sun, 07 Jul 2019 13:20:27 -0700