Content-Type: several commonly used data encoding formats

Content-Type: Used to define how a user’s browser or related device displays data to be loaded, or how to handle data to be loaded. Content type, generally refers to the content-type that exists in a Web page, and the content-type attribute specifies the HTTP content type of request and response. If no Content-Type is specified, the default is text/html. 1. text/html: text/html:Set the Content-Type of the file to the form of text/html, and the browser automatically calls the HTML parser to process the file when it gets the file. 2. text/plain: text/plain:Set the file to p...

Maximum sum of continuous subarrays

Title Description HZOccasionally, some professional problems are used to flicker those non computer majors. After today’s test group meeting, he spoke again: in ancient one-dimensional pattern recognition, it is often necessary to calculate the maximum sum of continuous subvectors, and when the vectors are all positive, the problem is solved. However, if the vector contains negative numbers, it isShould we include a negative number and expect the positive number to make up for it? For example, {6, -3, -2,7, -15,1,2,2}, the maximum sum of continuous subvectors is 8 (from zeroth to third...

Apple enterprise developer account registration successful how to use?

Apple Developer Enterprise Program is a high-level developer account provided by Apple to iOs developers, which differs from personal developer accounts and corporate developer accounts, and should be noted because of AppleApple has stopped issuing corporate accounts because it has more authority to install non-jailbreak devices without uploading them to the Apple market. This is why we have applied for a long time business account and why there is no result. ~ios~ ~ ~ ~ ~ ~ ~ ~ ~ ~The industry is open to the 2989459. There’s a lot of white here that’s easy to think of as a mix of...

Technical reading section

Scrum and XP in the smoke (password: u5i9)   Author: Henrik Kniberg   Summary: In this book, author Henrik Kniberg describes how he led a team of 40 people to implement Scrum over a year. They tried different team sizes (3-12 people), sprint lengths (2-6 weeks), and definitions of “complete”Ways, different backlog formats, various test strategies, multiple ways to synchronize across multiple Scrum teams. They’ve also tried XP practices — continuous integration, pair programming, test-driven development, and so on — and tried to combine XP with Scrum. This...

Day 22 full volume update

–Full scale updatecreate table pdata.dbo.customer(name varchar(255) ,type varchar(255) ,type_no varchar(255) ,address varchar(255) ,tel varchar(255) ) insert into pdata.dbo.customer values( ‘ccc ‘, ‘sfz’,’ 1201334′,’ a1 ‘,’ 1′) insert into pdata.dbo.customer values( ‘AAA ‘, ‘sfz’,’ 1301121′,’ a2 ‘,’ 128285 ‘) insert into pdata.dbo.customer values( ‘ddd ‘, ‘sfz’,’ 1201335′,’ a3 ‘,’ 1268910 ‘) in...

10 lines of code to achieve a simple version of Promise

Before we implement it, let’s look at the call of Promise first.   const src = 'https://img-ph-mirror.nosdn.127.net/sLP6rNBbQhy0OXFNYD9XIA==/799107458981776900.jpg?imageView&thumbnail=223x125&quality=100' const promise = new Promise(function (resovle, reject) { var img = document.createElement('img') img.onload = function () { resovle(img) } img.onerror = function () { reject() } img.src = src }) promise.then(function (img) { console.log(img.width) },...