MPANDROIDCHART Library Draw a chart single/multiple curve chart

Draw a simple LineChart instantiated LINECHART object, set the touch -related settings … mChart.setOnChartGestureListener(this); mChart.setOnChartValueSelectedListener(this); mChart.setDrawGridBackground(false); // no description text mChart.getDescription().setEnabled(false); // enable touch gestures mChart.setTouchEnabled(true); // enable scaling and dragging mChart.setDragEnabled(true); mChart.setScaleEnabled(true); // mChart.setScaleXEnabled(true); // mChart.setScaleYEnabled(true); // if disabled, scaling can be done on x- and y-axis separately mChart.setPinchZoom(true); // set an alternative background […]

ActiveMQ Learning Notes (19) —- Consumer Advanced features (1)

1. Exclusive Consumer Unique consumer: The message in Queue is distributed to the consumer in order. However, when you have multiple consumers to extract messages from the same Queue at the same time, you will lose this guarantee. Because these messages are processed by multiple threads. Sometimes it is important to ensure that the message […]

Draw heatmap with python

This article is the drawing and rendering of Heatmap based on Python Article Catalog Preface 1. What is heatmap? 2. Use steps 1. Introduction to the library 2. code Summary When writing the paper, see the exquisite charts in the articles of the big brothers. But I don’t know how to draw it. This article […]

java scanner class method

directory java constructive method java interface method Divide scanner.nextint () and scanner.hasnextint () Divide scanner.next () and scanner.nextline () first give an example of using Scanner. import java.util.Scanner; public class CSDN { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); } } java5 starts with the Java.util.scanner class […]

“Programmer Installation B Guide”

1. Preparation“Workers want to be good, they must first benefit their instruments.” 1. The computer does not have to be configured high, but the dual -screen is necessary. The bigger the better, it is better to one horizontal screen and one vertical screen. One is used to check the information and the other is used […]

Android progress bar style

Source address: http://blog.csdn.net/tianyitianyi1/article/details/7563027? LocationNum = 2 & FPS = 1 Android progress bar style  Example 1: (default style (medium circular))xml code <ProgressBar       android:id=”@+id/progressBar1″      android:layout_width=”wrap_content”       android:layout_height=”wrap_content”       /> Example 2: (Super Circle)xml code <ProgressBar       android:id=”@+id/progressBar2″      android:layout_width=”wrap_content”       android:layout_height=”wrap_content”       style=”?android:attr/progressBarStyleLarge”      /> Example 3: (Small Round)xml code <ProgressBar       android:id=”@+id/progressBar3″      android:layout_width=”wrap_content”       […]

Solution of the independence problem The

number (ū, sūdoku) is a mathematical game that originated from Switzerland in the 18th century, spread to the United States, and then developed by Japan. It is an calculation using paper and penlogic game. Players need to reasonize the number of all remaining spaces according to the known figures on the 9 × 9 disk, […]

mysql and oracle how to insert into multiple values

一,OracleInsert multiple records at a time Method 1: databaseWrite multiple records, and the record set has been determined. Solution: ? Note:The last select all after the last select all, otherwise the error will be reported. Method 2: ************************************************************************************* 2. In mysql, you can use the insert statement in the following format: insert into persons   […]

java call Sina Weibo API INT64 type parameter transfer method

Recently doing Sina Weibo data mining, you need to call the API of Sina Weibo. Among them, the user ID required to pass in, namely UID, is an INT64 type. source_id false int64 source user’s UID. and Java do not have an INT64 type, and naturally consider using LONG at first, because if INT is […]

[BZOJ1861] [ZJOI2006] Bookstore

Question description teleportation door splay template questions (laughHow to save the degree of proficiency in the basic algorithm == The number given in is the right to dot in the balance tree.Open a group to record the change in the tree with the right value i, and find it directly every time you ask.For TOP […]

noip preliminary reading and understanding procedure

Article Catalog Reading understanding program Some algorithms, data structure logos and techniques two points linked list the shortest circuit minimum generation tree Some common function variable names (not for reference only) function variable The meaning of some common program blocks complexity analysis Some common complexity (analysis) perfect program Method Summary of problem -solving methods Three […]

libusb-1.0.22 示例

环境配置:   win7-x86   Qt5.9.7 + mingw-win32 SRC:  g_header.h #ifndef __USB_GLOBAL_H__ #define __USB_GLOBAL_H__ typedef unsigned char us_byte; typedef unsigned short us_short; #define USB_G_CONF 0x01 #define USB_G_INTF 0x00 #define READ_BUS_TIMEOUT (5 * 1000)//(3 * 60 * 1000) #define READ_BUS_CONFIRM_TIMEOUT (500) #define TRANSFER_DELAY_MS 500 #define TRANSFER_SPACE_MS 100 #define BUFFER_MAX_LENGTH 512 #define BUFFER_MAX_DATA_LENGTH (BUFFER_MAX_LENGTH – 18) #define USP_FIX_PRINTDPI_PARA (100 / […]

CF Round 277 (DIV2) D Topic Tree -shaped DP

Question: Question link:http://codeforces.com/contest/486/problem/D Find how many sets of conditions are met in the tree to ensure that the maximum value and minimum value of the collection and the minimum value of the collection does not exceed D. Thinking: The difference between the maximum value and minimum value, first fix one end, such as enumerate the […]

vue-conditional rendering (V-IF V-Else-IF V-Else V-SHOW) AI

Simply introduce the usage of V-IF, V-Ely, V-Ely, and V-Show in Vue. v-if v-else-if v-else v-show can control the creation (display) of elements through conditional instructions or destroy (hidden) <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <meta http-equiv=”X-UA-Compatible” content=”ie=edge”> <title>condition rendering</title> <script src=”js/vue.min.js”></script> <script> window.onload = function(){ var vm = new […]

Ubuntu+QT+OpenCV environment Construction!

=== Respect the original start from me! === Original text from: http://blog.csdn.net/shawn_ht/article/details/40795039 1. Ubuntu installation ubuntu is A release version ofLinux, I want to know all those who know Linux, we should know that we can download it directly on the official website. It is free to use. official website download link Here I use […]

linux run jar package

linux run jar package The project to run Java needs to pack the project into a war or jar package first, and the WAR package needs to be deployed on the TOMCAT server to run. The packing into a jar package can be executed directly with the java command. There are four ways to run […]