Search engine - Solr cluster deployment

Key contents Three zookeeper nodes are required Four solr nodes. Using pseudo distributed to implement solr cluster. Three zookeeper instances and four tomcat instances are required, which can be simulated on a virtual machine. More than 1G memory is recommended for virtual machines. Solr instance building Step 1: crea ...

Posted by zorgon on Wed, 01 Apr 2020 19:42:14 -0700

python crawler 01 - create a simple crawler (with 100G of a novel web database)

Disclaimer: the database provided in this article is for technical verification only, and any form of commercial and reprint activities based on this database are prohibited. The legal liability arising therefrom shall be borne by itself! , once you continue to read this article, you will be deemed to agree to this stat ...

Posted by noobie_daddy on Wed, 01 Apr 2020 18:59:41 -0700

Ali Dashen teaches you ViewGroup dynamically. Do you still want to see it?

brief introduction Recently, there was a need for nine-picture control similar to WeChat circle of friends in the project. Github looked for it and found that they did not meet the needs. When I need a single picture, I can adjust it to a certain range according to the aspect ratio of the picture. Most open source projects have a single pictu ...

Posted by st0rmer on Wed, 01 Apr 2020 18:38:04 -0700

Custom turntable

In the first part of the new year, I wrote a custom turntable. At present, there are two modes. The specific effects are as follows: Mode 1: pointer mode When the turntable is stopped, the data at the initial position can be obtained As shown in the figure below is the initial state, 0 is the initial position (in the coordin ...

Posted by raghavan20 on Wed, 01 Apr 2020 18:20:37 -0700

Android reads the meta of each part

In the Android manifest.xml manifest file, we can sometimes see the following configuration content similar to the beginning of the < meta data... > element: <meta-data       android:name="com.google.android.maps.v2.API_KEY"       android:value="AIzaSyBhBFOgVQclaa8p1JJeqaZHiCo2nfiyBBo" />   <meta-data  ...

Posted by beginPHP on Wed, 01 Apr 2020 17:04:31 -0700

Seven notes of ssh integration combined with xml

1. In the previous pure xml mode, we have many configuration files. We can use annotation and xml to develop. In this way, our configuration files will be much less. At the same time, we can directly see the configuration in the class, so that we can quickly build a ssh integration project First of all, we should consider: what do we need to re ...

Posted by FraXTC on Wed, 01 Apr 2020 16:31:22 -0700

Android imitation Alipay numeric keypad

brief introduction In some apps with payment function, the password can only be a pure number. Although we can specify that the EditText input box can only be a number, in order to provide user experience, we tend to use a custom pure number keyboard. Effect of this paper: Customize KeyboardView Implementation steps: ...

Posted by rationalrabbit on Wed, 01 Apr 2020 11:56:38 -0700

Remember a packet scan error

For a long time, I was very distressed about the problem of unable to inject dependency. For similar problems, I made the following summary: 1. For distributed architecture If the prompt indicates that the dependency cannot be injected, consider which project is not referenced. For the war package, all references should be made, for example:   ...

Posted by shams on Wed, 01 Apr 2020 11:06:51 -0700

Simple use of memcached java client

Simple use of memcached java client Start Memcached server ./memcached -d -m10 -u root -l 192.168.1.106 -p 2222 -c 256 -P /tmp/memcached.pid -The d option is to start a Daemons -m is the amount of memory allocated to Memcache, in MB, here is 10MB -u is the user running Memcache, here is r oot -l is the IP address ...

Posted by parkej60 on Wed, 01 Apr 2020 10:24:20 -0700

[Java crawler] use Xpath + HtmlUnit to crawl basic information of web page

I. Preface Using Jsoup + HttpClient (combination I) can basically crawl a lot of information we need. The combination of Xpath + HtmlUnit (combination II) is even more powerful, and it can be competent for combination I no matter in terms of selection or analysis. Here is a simple example to show the main technologies: ① simul ...

Posted by collette on Wed, 01 Apr 2020 08:42:47 -0700