WeChat small program view container (swiper) component to create a rotation chart

two, swiper application 1, page logic (index.js)” indicatgorDots whether there is focus. interval automatic play interval time <!--Sowing map--> <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" indicator-color="{{indicatorColor}}" indicator-active-color="{{activeColor}}"> <block wx:for="{{imgUrls}}"> <swiper-item> <navigator url="{{item.link}}" hover-class="navigator-hover"> <image src="{{item.url}}" class="slide-image" width="355" height="200" /> ...

Java–UDP communication and TCP communication

 IPAddress and port number Port numbers are represented by two bytes (16-bit binary numbers) and range from 0 to 65535, where the port numbers between 0 and 1023 are used for some well-known network services and applications. A user’s normal application needs to use port numbers above 1024 to avoid being occupied by another application or service.      InetAddress common method Code demo: UDPSignal communication DatagramPacket    DatagramSocket  UDPNetwork program    Code demo: 1 //Sending end2 public class UDPSend {3 public static void main (String[] args) thr...

After the SpringBoot project is packaged into jar, the script is started.

Springboot projects are packaged into jars, uploaded to the server, each time you need to tap commands to redeploy the project, which you can write to the script and run directly. Startup script (start.sh): CUR_PATH=$(cd "$(dirname "$0")"; pwd) echo "Current path: ${CUR_PATH}" /usr/lib/java-1.8.0/jdk1.8.0_161/bin/java -jar ${CUR_PATH}/***.jar The red part of the code, which specifies the start of the JDK (the JDK configured by the environment variable in the server is 7, the project is based on spring boot 2.0 and requires 8.0 +) for the JDK), can be used directly.javaInstead. ***It is the ...

Record Hbase data migration and problems encountered once

Because clusters are not interworking, manual migration is adopted. 1、Download target cluster data hadoop fs -get /apps/hbase/data/data/default/*c4be21d3000064c0 /mnt/data 2、Remote replication of data, you can compress it. scp ***   3、Uploading data to HDFS must switch to HBase users, otherwise there will be errors. su hdfs hadoop fs -put /app/hbase/* /apps/hbase/data/data/default/   4、Restore metadata, etc. hbase hbck Only do a checkupHBase HBCK-fixMeta Generate the meta table according to the.Regioninfo in the region directory.HBase HBCK-fixAssignments Assign the region recor...

Introduction of ARC and mixing of ARC and non ARC in Engineering

ARCUsed in conjunction with non ARC in a project. 1,Select the Targets in the project and select the Target you want to operate.2,Select Build Phases, double-click the file that requires ARC in Complie Sources, and enter: – fobjc – arc in the input box, and – fno – objc – arc if you don’t want ARC There is no problem with mixing. It doesn’t matter if ARC code continues to insist on who will apply for release. Previous libraries did not have time to rewrite. And I don’t know what third-party code you’re using. Generally speaking, there...

WIFI channel frequency correspondence

802.11b/gOr 802.11b/g/n generally supports 13 channels. Channel is also called channel, frequency band, is a wireless signal (electromagnetic wave) as the transmission carrier of data signal transmission channel. Wireless networks (routers, AP hotspots, and computer wireless network cards) can run on multiple channels. All kinds of wireless network devices should be completed within the coverage of wireless signals.We use different channels to avoid interference between signals. Channel partition of 2.4GHz (=2400MHz) frequency band. There are actually 14 channels (Fourteenth channels are show...

Spring cloud initially built 1-1 (Eureka configuration)

This version is based on spring cloud.Finchley.RELEASE) spring boot ( 2.0.4.RELEASE ) Crater 1:spring cloud starts from 2.0., and the dependency packet that needs to be introduced will change. The biggest feature is spring-cloud-starter-.netflix,Many dependent components have more than one Netflix when configuring Maven.Not before.) Tramp Pit 2: if the version of spring cloud does not match the version of the dependent component, it will go wrong directly. Maven dependency is generally not found in the corresponding jar package. ps : If you do not determine the version number correspon...

Linux+Jenkins environment building and automatic deployment of Django Projects – building configuration

Note 1:cd xxx BUILD_ID=DONTKILLME nohup python manage.py runserver 0.0.0.0:8000 & BUILD_ID=DONTKILLME : Programs running in the background in Jenkins are automatically killed by jenkins, so you need to add BUILDID to this parameter so your program won't be killed.