Wechat applet development (6) - download files from the server and open them

The file downloaded by the wx.downloadFile interface of wechat applet is downloaded to the wechat server, and the return value is a temporary address. To save for a long time, call the wx.saveFile interface to save the file to the local cache. Although it is saved to the mobile phone, you cannot open it through the document man ...

Posted by courtewing on Wed, 25 Dec 2019 09:43:44 -0800

C reate and read Excel formula

For tables with large amount of data, when we need to calculate some special values, we can effectively improve the speed and efficiency of our data processing by using formulas, and it is also very convenient for batch operations such as adding, deleting, modifying and querying later data. In addition, for the information source of some values ...

Posted by Eng65 on Wed, 25 Dec 2019 07:26:54 -0800

Day of New Man's Trench - java.lang.NullPointerException: null appears when springboot injects mapper

The next week I came to the company, I received a development request for a timed task: Send a user report mail every morning at 10:00 a.m.It's a little embarrassing that the new recruits didn't do this.) so decided to write step by step, export from excel - > mail send - > timer implementation - > mapper layer return set receive, the ...

Posted by kester on Thu, 19 Dec 2019 00:42:36 -0800

Python uses openpyxl to operate excel tables

I. use of openpyxl pip install openpyxl Step 1: open the Workbook (read all the data in the Excel file and save it as a workbook object) workbook = openpyxl.load_workbook('cases.xlsx') Step 2: select the form object sheet = workbook['login'] Step 3: select a form to read data ① read content (line 5, column 4) data = sheet.cell(row=5,column=4) p ...

Posted by thewooleymammoth on Wed, 18 Dec 2019 13:00:43 -0800

Crawler: File handling

1. json file processing 1.1 What is json JSON(JavaScript Object Notation) is a lightweight data exchange format.It is based on a subset of ECMAScript, the JS specification developed by the European Computer Association, and uses a text format that is completely independent of the programming language to store and represent data.The concise and ...

Posted by lokesh_kumar_s on Wed, 18 Dec 2019 09:06:17 -0800

Django Learning Files Upload and Download

That's six steps to upload! I. Configuration in settings configuration file MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'medias').replace('\\', '/')#media is the root path for picture upload 2. Configuring in url routing urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^index/', views.index,name='index'), ] + stati ...

Posted by BandonRandon on Wed, 11 Dec 2019 17:40:37 -0800

A check on timeout

Recently, some users always reported that "failure - server problem" will occur when they download large Excel from Redash, and the time from point to error prompt is almost the same. First, I checked the error log of Nginx, and it showed that upstream prematurely closed connection while sending to client. The first reaction should be ...

Posted by Crayon Violent on Tue, 10 Dec 2019 19:19:45 -0800

Learning notes for new students of online excel Development Workbook

Form control is often used in front-end pages. To facilitate the design and filling of forms, today we try to use a pure front-end form control. Control download address: https://www.grapecity.com.cn/... Free online Excel: https://demo.grapecity.com.cn...   Initialize Spread first var spread = new GC.Spread.Sheets.Workbook(document.getEleme ...

Posted by NotVeryTechie on Mon, 09 Dec 2019 06:27:22 -0800

Exporting the full version of excel from Python xlwt

There is a group of task data, which needs to be downloaded from excel. If it is only exported, it is very convenient to export with csv. But to export beautiful styles, you need to merge cells, set back color, font, border, etc. CSV is in plain text format and does not support setting various styles. After a day of research, I wrote the c ...

Posted by nabeel21 on Fri, 06 Dec 2019 20:47:25 -0800

Using PHPExcel to parse Excel tables

Install class library Download PHPExcel class library from GitHub Address: https://github.com/PHPOffice/PHPExcel After unzipping, move the Classes folder to the extend directory of ThinkPHP and rename it phpexcel Add references where needed in the project import('phpexcel.PHPExcel', EXTEND_PATH); code implementation <?php namespace app\ind ...

Posted by tlawless on Fri, 06 Dec 2019 12:37:45 -0800