Thread pools on the JVM should usually be divided into the following three categories:
- CPU-bound
- Blocking IO
- Non-blocking IO polling
Each of these categories has a different optimal configuration and usage pattern.
Connect the device via USB and make sure debugging is working; | |
adb tcpip 5555. This makes the device to start listening for connections on port 5555; | |
Look up the device IP address with adb shell netcfg or adb shell ifconfig with 6.0 and higher; | |
You can disconnect the USB now; | |
adb connect <DEVICE_IP_ADDRESS>:5555. This connects to the server we set up on the device on step 2; | |
Now you have a device over the network with which you can debug as usual. | |
To switch the server back to the USB mode, run adb usb, which will put the server on your phone back to the USB mode. | |
If you have more than one device, you can specify the device with the -s option: adb -s <DEVICE_IP_ADDRESS>:5555 usb. |
$ git remote rm origin | |
$ git remote add origin git@github.com:aplikacjainfo/proj1.git | |
$ git config master.remote origin | |
$ git config master.merge refs/heads/master |
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
// See also: http://www.paulund.co.uk/change-url-of-git-repository | |
$ cd $HOME/Code/repo-directory | |
$ git remote rename origin bitbucket | |
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git | |
$ git push origin master | |
$ git remote rm bitbucket |
-- -------------------------------------------------------- | |
-- Hôte : 127.0.0.1 | |
-- Version du serveur: 10.1.22-MariaDB - mariadb.org binary distribution | |
-- SE du serveur: Win64 | |
-- HeidiSQL Version: 9.4.0.5125 | |
-- -------------------------------------------------------- | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET NAMES utf8 */; | |
/*!50503 SET NAMES utf8mb4 */; |
-- -------------------------------------------------------- | |
-- Hôte : 51.255.35.182 | |
-- Version du serveur: 10.0.29-MariaDB-0ubuntu0.16.04.1 - Ubuntu 16.04 | |
-- SE du serveur: debian-linux-gnu | |
-- HeidiSQL Version: 9.4.0.5125 | |
-- -------------------------------------------------------- | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET NAMES utf8 */; | |
/*!50503 SET NAMES utf8mb4 */; |
import java.io.FileOutputStream; | |
import java.sql.Blob; | |
import java.sql.Connection; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import com.codesjava.util.JDBCUtil; | |
/** | |
* This class is used to retrieve a image from DB. | |
* @author bashizip |
private void onClickItem(int position, View v) { | |
recyclerView.smoothScrollToPosition(position); | |
} |
public class CircleLayoutManager extends TurnLayoutManager { | |
public CircleLayoutManager(Context context, int gravity, int orientation, int radius, int peekDistance, boolean rotate) { | |
super(context, gravity, orientation, radius, peekDistance, rotate); | |
} | |
public CircleLayoutManager(Context context, int radius, int peekDistance) { | |
super(context, radius, peekDistance); | |
} |
CirleLinearAdapter |