Installation and Startup of Elasticsearch under UBUNTU

1. Installation 1. Add ppa source sudo add-apt-repository ppa:openjdk-r/ppa 2. Upgrade system apt-get source sudo apt-get update 3. Install jdk8 Elasticsearch was developed in practical java, so JVM is required to run, so we need to install jdk sudo apt-get install oracle-java8-installer 4. Check jdk Execute the follow ...

Posted on Thu, 09 Jul 2020 11:04:38 -0400 by scnjl

[javaFX Learning] (3) Control Manual

move toHttp://blog.csdn.net/qq_37837828/article/details/78732605 update Controls written here may not be all controls, but they should be complete and sufficient, followed by chart classes, 3d model classes, put them behind, too many.javafx is more powerful than you ever thought.It is also convenient to use SceneBuilder to design the interface ...

Posted on Wed, 08 Jul 2020 12:21:25 -0400 by kirtan007

Coexistence of Kotlin and Java, calling kotlin code in -Java

Call of kotlin data class Call of object simple profit mode class in Kotlin Calling file class in Kotlin Flexible transfer of parameters by calling jvm annotation String string null call Call of kotlin data class kotlin Code: package com.tianfu.kotlin /** * age Member annotations cannot have get and ...

Posted on Wed, 08 Jul 2020 12:02:49 -0400 by gareh

Access other nodes through a jumper using the JSCH framework

A set of code for remotely accessing ssh has been developed. Recently, there is a need for a jumper to access the target service.After searching the web for half a day, I didn't find a good example, so I browsed the API of JSCH myself.But look in the clouds.Imagine if port forwarding works by mapping the target node ip:port to localhost:port an ...

Posted on Sun, 05 Jul 2020 11:04:53 -0400 by n8w

Access other nodes through a jumper using the JSCH framework

A set of code for remotely accessing ssh has been developed. Recently, there is a need for a jumper to access the target service.After searching the web for half a day, I didn't find a good example, so I browsed the API of JSCH myself.But look in the clouds.Imagine if port forwarding works by mapping the target node ip:port to localhost:port an ...

Posted on Sun, 05 Jul 2020 11:05:19 -0400 by golden_water

Principle and java implementation of inserting red and black trees

A red-black tree is a binary balanced lookup tree in which each node has a storage bit to represent the color of the node, either RED or BLACK.Red-black trees have the following properties: (1) Each node is red or black (2) The root node is black (3) If a node is red, both of its sons are black (4) For each node, all paths from that node to its ...

Posted on Sun, 05 Jul 2020 10:56:44 -0400 by dallasx

Update DownloadManager usage with android system

The results are as follows: added in API level 9. Package path:java.lang.Object    ↳ android.app.DownloadManager Download Manager is a system service that handles long-running HTTP downloads. Applications requested to download through this API should be ACTION_NOTIFICATION_CLICKED registers a broadcast receiver so t ...

Posted on Sat, 04 Jul 2020 11:06:01 -0400 by Citizen

Update DownloadManager usage with android system

The results are as follows: added in API level 9. Package path:java.lang.Object    ↳ android.app.DownloadManager Download Manager is a system service that handles long-running HTTP downloads. Applications requested to download through this API should be ACTION_NOTIFICATION_CLICKED registers a broadcast receiver so t ...

Posted on Sat, 04 Jul 2020 11:05:39 -0400 by micknic

Array lookup algorithm, array, a + b = c

subject Given an unordered array, such as int[] arr={3, 5, 8, 9, 12, 21, 27}, list all sets that meet the criteria: A set contains two values a, b(a and B are in the array, and a is not equal to b) a+b=c,c also in the array Reflection Sort first. Use the index of a and B to do nested loops, a main loop, B sub-loop, iterate out all combinatio ...

Posted on Sat, 04 Jul 2020 10:36:57 -0400 by mpunn

100% Perfect Friend Sharing

Step 1: go Federation Official Website Register an account to create an application (the application name matches the project name), a detailed step you can refer to Friends QQ Login Skipping this time, text Import jar package add permission <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-p ...

Posted on Fri, 03 Jul 2020 11:10:27 -0400 by fire_cracker