DP (A Practice of Large Capacity Backpack) - POJ 1786

Topic link: http://acm.hdu.edu.cn/showproblem.php?pid=1786 Meaning: Give a backpack with a maximum backpack of 1E9 and N (N < 10) items. Each item gives quality (not more than 100), unlimited quantity. It takes 3 seconds for each item to be taken. Seek the minimum time needed to fill the backpack. Analysis: This problem seems to be a commo ...

Posted on Tue, 26 Mar 2019 14:15:29 -0700 by crazytoon

Common knowledge of XSS attacks and summary of common XSS attack scripts

First, what is XSS? XSS full name is Cross Site Scripting, that is, cross-site scripting. XSS occurs when unexpected scripting instructions are executed in the process of rendering HTML documents by the target web site's target user browser. Here we mainly pay attention to four points: 1. target website users; 2. browser; 3. not expected; 4. ...

Posted on Mon, 25 Mar 2019 12:48:28 -0700 by BenMo

Integration of Wechat JS-SDK in thinkphp5.x

Question Using thinkphp framework to develop Wechat public numbers requires some functions of jssdk. Mark, how to solve deployment, module design, some small case. Below are some ports for reference: https://my.oschina.net/superkangning/blog/368043 http://www.jianshu.com/p/dee2d998422e https://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd91 ...

Posted on Mon, 25 Mar 2019 08:27:29 -0700 by river001

Acquisition and Verification of Verification Code Using selenium

There are two ways to get authentication codes: 1. Get the source code of the page and extract the pictures of the verification code. 2. Use selenium to intercept the page, locate the location of the verification code elements, and use Image to process them to obtain the verification code part. The following is an analysis: 1. Get the sour ...

Posted on Mon, 25 Mar 2019 07:24:27 -0700 by sone_br

Deployment of Zabbix 3.2 under Ubuntu 16.04

Preface There are many deployments of Zabbix under Ubuntu on the network, but most of the tutorials are deployed under Ubuntu 14.04, and Zabbix is not more than 3.0 version. So here's a recent deployment tutorial. Zabbix Zabbix is an enterprise-level open source solution based on WEB interface to provide distributed system monitoring and ne ...

Posted on Sun, 24 Mar 2019 06:42:27 -0700 by Exoon

Analysis of handover process from earphone plug-in to audio Route in Android system

[outline] We know that the earphone insertion/pull-out event must be handled through the interrupt notification system. With this understanding, we can analyze the process one by one. 1. Who interrupts the headphone event? 2. Which interrupt handler is it? 3. What operations are performed in the interrupt processing function to change the a ...

Posted on Sun, 24 Mar 2019 06:12:28 -0700 by onewaylife

Operation of Redis string type

set key value ex seconds px milliseconds nx xx Mset multi set sets multiple key values at one time get key mget key1 key2 keyn setrange key offset value append key value getrange key start stop getset key newvalue incr key incrby key number incrbyfloat key floatnumber decr key decrby key number setbit key offset value getbit key offset b ...

Posted on Sat, 23 Mar 2019 15:51:53 -0700 by realjumper

Server concurrent processing capacity - throughput

Throughput: In general, the number of requests processed by the server per unit time is used to describe the concurrent processing capability of the server in terms of "reqs/s". By opening Apache's mod_status module, you can see the current server's running status and throughput. How to open Apache's mod_status module: httpd.conf fi ...

Posted on Fri, 22 Mar 2019 08:42:52 -0700 by AJW

Guidelines for Combining Volt Module Engine with Phlcon Framework

———— In recent work, web pages use VOLT template engine written by C language. Compared with the previous dynamic loading page by js, it is faster and more conducive to the capture of Baidu data. Now, according to the document, I will sort out the idea of using it. Volt is a super-fast and designer-friendly template lang ...

Posted on Thu, 21 Mar 2019 01:48:52 -0700 by shae marks

Ruby Web Real-time Message Background Server Push Technology--GoEasy

More and more projects need to use real-time message push and receive, how to use Ruby to achieve the most convenient? I recommend you to use GoEasy, which is a third-party push service platform, using its API can easily make real-time push! Browser Compatibility: GoEasy push supports websocket and polling, which supports all versions of IE6 an ...

Posted on Wed, 20 Mar 2019 16:57:26 -0700 by surreal5335