mapreduce [traffic statistics] sum - user defined data type
Demand: in the document, the total upstream traffic, total downstream traffic and total traffic consumed by each user
1363157985066 13726230503 00-FD-07-A4-72-B8:CMCC 120.196.100.82 i02.c.aliimg.com 24 27 2481 24681 200
1363157995052 13826544101 5C-0E-8B-C7-F1-E0:CMCC 120.197.40.4 4 0 264 0 200
1363157991076 13926435656 20-10-7A-28-CC- ...
Posted by alexguz79 on Sun, 03 Nov 2019 08:47:52 -0800
Wechat jump browser prompt, 366API analysis how to directly jump to mobile phone default browser in wechat browser
Many friends' APP promotion links need to be publicized, propagated, downloaded and so on in wechat, but you must have found that the download links of APP are blocked in wechat. But wechat is the biggest social platform. For its own benefit, it blocks all APK download links. How can we solve this problem?
Solution:
Based on wechat interface, ...
Posted by alphamic on Sun, 03 Nov 2019 03:45:20 -0800
Realization of Taobao Lingmao coin and ant forest energy automation based on AutoJs
outline
Once a year, double 11 is here again. Let's have a party. Taobao needs all kinds of check-in, shopping and collecting meow coins. One shop needs 15S, and after receiving all meow coins, they will be gone in at least ten to twenty minutes. As a programmer, it's time to free your hands.
1. Technical background
1.1,AutoJs
GitHub: https:// ...
Posted by Dave2711 on Sun, 03 Nov 2019 01:27:38 -0700
Upload analysis in spring MVC
Let's talk about the upload of spring MVC today
First of all, import should have dependency (or jar package)
Importing dependencies in maven looks much easier
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId> ...
Posted by dgrinberg on Sat, 02 Nov 2019 17:12:06 -0700
C + + Bridge mode
brief introduction
Bridge: separate the abstract from its implementation so that they can all change independently.
Effect
To solve the problem of more and more complex classes and inflexible extension when there are many possible changes.
Application scenario
If there are more than one di ...
Posted by Eclectic on Sat, 02 Nov 2019 16:32:15 -0700
A collection of Java Fundamentals
The ultimate weapon system written by list set
User operation
package Demo;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
public class crud {
static List<Map<String, Object>> list = new ArrayList& ...
Posted by billybathgate on Sat, 02 Nov 2019 16:19:01 -0700
(android Development) upload files using okhttp
To develop android mobile client, you often need to upload files to the server, such as: photos in your mobile phone.
Using okhttp would be a good choice. It is easy to use and efficient to run.
First, add implementation 'com. Square up. Okhttp3: okhttp: 3.8.1' in the dependencies of app/build.gradle. You can refer to the following ...
Posted by kayess2004 on Sat, 02 Nov 2019 12:23:41 -0700
android -- the underline width of the higher version of Tablayout
Previously, there was a blog that wrote TabLayout, and recently developed and used the high-level version. I encountered some problems to summarize
Android--------TabLayout realizes the top navigation bar of news client
Tablayout in Android sets the underline width and the conversion between dp and px
There is no problem before API 28. Af ...
Posted by AliasXNeo on Sat, 02 Nov 2019 07:27:07 -0700
C + + Decorator
brief introduction
Decoration mode: dynamically attach responsibilities to objects. To extend functions, decorators provide more flexible alternatives than inheritance.
Advantage
It can not only expand the original functions, but also prevent the explosive growth of classes.
shortcoming
This is mo ...
Posted by bobbyM on Sat, 02 Nov 2019 06:14:40 -0700
Simple network judgment
Add authority
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Create an instance of IntentFilter and add a value to it, action of "Android. Net. Conn.connectivity" change
When the network status changes, the system issues a broadcast with the value ...
Posted by RGBlackmore on Sat, 02 Nov 2019 00:43:37 -0700