Asynchronous proxy crawler and proxy pool implemented by Python

An asynchronous agent pool is implemented using python asyncio. The free agent on the agent website is crawled according to the rules and stored in redis after verifying its validity. The number of agents is regularly expanded and the validity of agents in the pool is checked to remove invalid agents. At the same time, a server is implemented w ...

Posted by pennythetuff on Sat, 20 Apr 2019 12:06:33 -0700

The Use of java mina Framework and Some Understanding

@ (java technology notes) The Use of java mina Framework and Some Understanding 1. What is Mina framework and why use mina? The interpretation of the official website is as follows: Apache Mina Server is a network communication application framework, that is to say, it is mainly a communication framework based on TCP/IP, UDP/IP protoco ...

Posted by cesar_ser on Sat, 20 Apr 2019 03:45:34 -0700

Oracle Diagnostic Case - One of Sql_trace

Problem Description: This is a diagnostic case to help a company. Application is a background news release system. Symptoms are that access to news pages via links is extremely slow It usually takes ten seconds to return. This performance is intolerable to users. Operating System: SunOS 5.8 Database Version: 8.1.7   1. Check and track dat ...

Posted by incarnate on Sat, 20 Apr 2019 00:09:35 -0700

Integrated PayPal in Laravel

Recently, I'm writing a mall project for foreign buyers. Since it's for foreign buyers, PayPal will be used as a payment platform. Because some problems and time have been spent in docking PayPal, I write down the docking process and hope to help my friends who use PayPal. I integrated paypal/rest-api-sdk-php. PayPal's API has v1 and v2 versi ...

Posted by sidsel on Thu, 18 Apr 2019 18:18:33 -0700

How to make processes run in the background in linux

Linux skills I. nohup/setsid/& Use scenarios:If only a temporary command takes a long time to run, what is the easiest way to ensure that it runs stably in the background? There are two ways to solve this problem: either let the process ignore the HUP signal, or let the process run in a new session and become a sub-process that does not bel ...

Posted by Valkrin on Wed, 17 Apr 2019 11:54:32 -0700

HAProxy Profile and Configuration File Details (I)

Introduction to HAProxy HAProxy provides high availability, load balancing and application proxy based on TCP and HTTP, which is suitable for handling seven-tier data requests of high-load sites. Similar proxy services can shield internal real servers from attacks. HAProxy features and advantages: 1. Supporting primary SSL while supporting ...

Posted by wgordonw1 on Wed, 17 Apr 2019 09:36:34 -0700

Writing chat rooms

In the previous section, we created a WebSocket application using the ws module. But it simply responds to ECHO: xxx messages, also belong to Hello, world-level applications. To create a real WebSocket application, first of all, we need to have a MVC-based Web application, that is, the Web we created earlier with koa2 and Nunjucks. On th ...

Posted by Loki_d20 on Tue, 16 Apr 2019 17:03:32 -0700

Optimizing sql statement steps

General steps for optimizing sql statements: View the execution of various sql statements through the show [sesson|global] status command. When the mysql client connection is successful, you can use the command show [session|global] status to view the status information of the server (session represents the statistical results of the current co ...

Posted by hellonoko on Tue, 16 Apr 2019 16:33:32 -0700

A Brief Talk on the Layout of EXTJS

1.fit layout In fit layout, child elements will automatically fill the entire parent container. Note: In fit layout, setting the width of its child elements is invalid. If multiple components are placed in the fit layout, only the first child element is displayed. A typical case is when a client requests a grid component to be placed in a wind ...

Posted by cristiano on Mon, 15 Apr 2019 09:54:32 -0700

Creation Session of Zookeeper Client API (6)

Zookeeper provides a Java client API. This blog focuses on creating conversations. Create project First, create a simple java project based on maven management. Introduce zookeeper in the pom file. <dependency> <groupId>org.apache.zookeeper</groupId> <artifactId>zookeeper</artifactId> <version> ...

Posted by ah66533 on Sun, 14 Apr 2019 19:09:31 -0700