Express tutorial 04: handling file uploads

To read more series, please visit my GitHub blog , please visit Here. Using the filter to handle file upload Processing file upload, naturally, can not do without the help of middleware. Here Multer For example, this paper introduces the use of file upload middleware. However, the Multer can only process the data submitted ...

Posted on Mon, 18 Nov 2019 10:06:18 -0500 by Mr.x

Python logging module logging

Official documents: https://docs.python.org/2/library/logging.html I. log level The logging module provides a standard log interface, which can record our daily operations and store logs of various formats. The log level of logging is from low to high as debug(), info(), warning(), error() and critical() CRITICAL(50) > ERROR(40) > WAR ...

Posted on Mon, 18 Nov 2019 04:50:41 -0500 by Kenwio

Can't read my colleague's code yet?Super Stream Flow Posture Not Learned yet

Java 8 New Features Series Article Index. Jdk14 is coming out, can't you use Optional's elegant handling of null pointers yet? Jdk14 is coming out, Jdk8's time handling posture is still unknown? Can't read my colleague's code yet?A look at Lambda expressions, function interfaces Preface We all know that Lambda and Stream are the two highlight ...

Posted on Sun, 17 Nov 2019 20:44:10 -0500 by giannitom

URL encoding and decoding (using Python 3 urllib. Parse) and post bar crawler case

I. parse.urlencode() and parse.unquote() Both urllib and urllib.request are related modules that accept URL requests, but they provide different functions. The two most significant differences are as follows: 1.urllib can only accept URL s, and cannot create an instance of the Request class with headers set; 2. But urllib provides urlencode me ...

Posted on Sun, 17 Nov 2019 17:51:59 -0500 by slapdashgrim

python uses xlwt module to operate Excel

Part of it is from the official website The module is easy to install $ pip install xlwt Let's start with a simple example: #!/usr/bin/python #coding=utf-8 # ============================================================================== # # Filename: demo.py # Description: excel operat # Created: Tue Apr 25 1 ...

Posted on Sun, 17 Nov 2019 17:31:30 -0500 by cmack

The use of zigbeeAnaloglibrary.jar

The zigbeeAnaloglibrary.jar package is used to obtain the data in the four channel independent collection module First, add the jar package and so file to the project. Refer to https://blog.csdn.net/qq_40733723/article/details/89032484 Basic steps 1. Initialize ui 2. Initialize zigbee (1) open the serial port (2) if the serial p ...

Posted on Sun, 17 Nov 2019 12:23:23 -0500 by duk

Image preprocessing using tensorflow's own function

I. method Image reading, clipping, inverting, and changing colors involve the following functions: Read: tf.gfile.FastGFile(path,decodestyle) //Tailoring: tf.image.sample_distorted_bounding_box(image_size,bounding_boxes) tf.slice(image, bbox_begin, bbox_size) tf.image.resize_images(image, [height, width], method) //Reversal: t ...

Posted on Sun, 17 Nov 2019 10:05:28 -0500 by runner

FileStream related knowledge sharing

1. How to Understand FIleStream Through the first three chapters, I believe you already know something about Stream, but how do you understand FileStream?Look at the following picture:   Every file on our disk is made up of a binary array. The most intuitive is Notepad. When we create a new Notepad, it will be 0KB in size. Each time we ent ...

Posted on Fri, 15 Nov 2019 19:52:05 -0500 by gorskyLTD

selenium dynamic web page and request simple learning

I. Introduction selenium is a web application testing tool that can run directly in the browser, just like the user is operating. Two, documentapiurl Installation: enter the virtual environment, pip install selenium 3. Use selenium to log in to Weibo from selenium import webdriver from scrapy.selector import Selector import time ...

Posted on Fri, 15 Nov 2019 15:58:03 -0500 by Alffallen

When there is a button in Android ListView item, the item click event is invalid

When there is a button in the ListView entry in Android, the click event of the item will fail. I made a list and implemented it with listview. The layout of the item is also very simple, but the monitor room for setting the item doesn't work <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http:// ...

Posted on Fri, 15 Nov 2019 15:34:06 -0500 by suge