Pie chart, line chart
First, introduce the echarts file:
<script src="/resource/js/echarts.js"></script>
Use html to set the width and height:
<div class="main_statistics main_statistics1">
<! -- prepare a DOM with size (width and height) for ECharts -- >
...
Added by kronikel on Mon, 06 Jan 2020 18:20:50 +0200
Spring boot 2.0 web plus file upload and download
Record the file upload and download of spring webplus.
There is no HTTP servlet request and HTTP servlet response based on servlet container before using webplus. Instead, there are org.springframework.http.server.reactive.ServerHttpRequest and org.springframework.http.server.reactive.ServerHttpResponse.
Application scenario:
1. File upload: ...
Added by Kasuke_Akira on Mon, 06 Jan 2020 15:20:45 +0200
Retrofit: basic use of 2.2.0
retrofit:2.2.0 framework has powerful functions and excellent encapsulation in network loading. Today we will learn about its basic usage
1. Import dependency:
Here, we also import the excellent framework of gson
implementation 'com.squareup.retrofit2:retrofit:2.2.0'
implementation 'com.squareup.retrofit2:conve ...
Added by totof06 on Mon, 06 Jan 2020 06:05:24 +0200
[PHP] php as the client of websocket reads the push log file in real time
First, you need to use composer to download a third-party extension to realize the websocket client of php. You can directly generate the composer.json file in the current directorycomposer require textalk/websocket
require('vendor/autoload.php');
use WebSocket\Client;
$client = new Client("ws://echo.websocket.org/");
$client->send("He ...
Added by clodagh2000 on Mon, 06 Jan 2020 05:32:20 +0200
pyinstaller packages the GUI program written by PySide2 and calls ffmpeg to hide the CMD console solution
1 Problem Description
Write a GUI program using PySide2, call ffmpeg command line tool, do simple batch video processing (adjust frame width, frame height, video speed, reduce video bitrate to limit video size), use ffmpeg, ffmpeg-python library;
It was easy, but I had a problem:
When pyinstaller packages:
Without -w or--noconsole, there are ...
Added by Sephiriz on Sun, 05 Jan 2020 22:37:36 +0200
Python gets datax execution result and saves it to database
Execute the datax job, create the execution file, and execute at 1 point every day in crontab (related below):
The two rows of record, job start and job finish, are added by themselves, so as to identify which table is convenient.
#!/bin/bash
source /etc/profile
user1="root"
pass1="pwd"
user2="root"
pass2="pwd"
job_path="/opt ...
Added by nbaxley on Sun, 05 Jan 2020 08:19:19 +0200
I used Python to make a pork data analysis map for my friend, and the results were *
And find out how much he takes me as a brother
The story goes like this:
I went to a pancake shop happily
.
Looking up, the two brothers raised their prices again
Sigh, you really can't eat meat burgers anymore
Order two scones and a bowl of wonton
Near the end of the meal, I received a letter from my friend Adong
Adong ...
Added by wrequed on Sun, 05 Jan 2020 07:53:42 +0200
Download songs on cool dog music
After testing, you can download the songs you want to pay to download
Preparation: Python 3.5 + pycharm
Libraries used: requests, re, json
Steps:
Open the official website of cool dog music, enter the songs you want to search (such as "Tian Tian"), and then press enter to search to get the following page:
Right click to check o ...
Added by ultrus on Sun, 05 Jan 2020 01:21:51 +0200
Traversing Object Properties
var obj = { name: "Simon", age: "20", clothing: { style: "simple", hipster: false } } for(var propt in obj){ console.log(propt + ': ' + obj[propt]); }
How does the variable propt represent the properties of an object?It is not a built-in method or property.Why does it contain every attribute in an object?
#1st floor
Traver ...
Added by dennismonsewicz on Sat, 04 Jan 2020 18:20:15 +0200
[Series] How does Go parse JSON data?
Summary
Recently, I fell into a demand pit and just climbed up. There was a serious problem with the evaluation schedule. The following three pictures are very in line with my mood at that time.
Talk about needs
Estimate Schedule
Start drying
Why is this so? Here's a brief summary:
Dock with third party.
Docking across teams.
For the first ...
Added by cdjsjoe on Sat, 04 Jan 2020 17:59:27 +0200