Compression and archiving on Linux

Very, very, very simple description. compress The simple principle of compression is to replace the storage space on disk with the calculation time of CPU by some algorithms. At the same time, the bandwidth in network transmission can be saved. For text files compression effect is better, for binary programs, pictures and other files com ...

Posted by rea|and on Tue, 23 Apr 2019 19:39:38 -0700

[Python Natural Language Processing] Reading Notes: Chapter 2: Obtaining Text Corpus and Vocabulary Resources

Original online reading: https://usyiyi.github.io/nlp-py-2e-zh/2.html 1. Obtaining Text Corpus 1.1 Gutenberg Corpus >>> for fileid in gutenberg.fileids(): >... num_words = len(gutenberg.words(fileid)) >... num_vocab = len(set(w.lower() for w in gutenberg.words(fileid))) >... num_sents = len(gute ...

Posted by kharbat on Mon, 22 Apr 2019 16:57:34 -0700

Using FTP auxiliary classes to upload or download files in the development framework to facilitate the management of attachment content

In some system applications, we need to separate application servers, database servers, file servers, file paths and other information stored in the database server, but file content is stored in the file server, using FTP file upload and download, so as to achieve more efficient IO output, but also to share the pressure of the server. This art ...

Posted by DuNuNuBatman on Sun, 21 Apr 2019 16:00:34 -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

Detailed description of DIR, dirent,stat and other structures under Linux

First of all, we will talk about the structure of DIR. Following is the definition of the structure of DIR: struct __dirstream       {        void *__fd;         char *__data;         int __entry_data;         char *__ptr;         int __entry_ptr;         size_t __allocation;         size_t __si ...

Posted by squalls_dreams on Sat, 13 Apr 2019 18:27:32 -0700

Linux Signal Explanation

Types of a signal Reliable and unreliable signals, real-time and non-real-time signals Reliable signals are real-time signals, and those inherited from UNIX systems are unreliable signals, which are manifested in signals. If queuing is not supported, the signal may be lost, such as sending the same signal many times, and the process ...

Posted by Ohio Guy on Fri, 12 Apr 2019 21:03:33 -0700

Improvement of Reflect Client-Server Model with select

This section focuses on how to use select functions to improve our previous client-server model. When we were dealing with the multi-client model, every time a client is connected, the server needs to open up a new process to handle the new client, which will consume a lot of memory resources. The select function allows the process to instruc ...

Posted by neiltaylormade on Thu, 11 Apr 2019 13:57:31 -0700

Linux Create daemon

1. Create daemon steps: To become a daemon, a program needs to complete the following steps: Execute a fork(), then the parent process exits and the child process continues to execute. (As a result, daemon becomes a child of the init process.) The reason for this step is the following two reasons: Assuming that daemon is started from the ...

Posted by francisexpress on Fri, 05 Apr 2019 23:12:30 -0700

Shell Learning Notes

Shell Learning Notes Shell itself is a program written in C language. It is a bridge for users to use Unix/Linux. Most of the work of users is done through shell. Shell is both a command language and a programming language. Shell can be executed in two ways: - Interactive: Explain how to execute a user's command. When a user enters a comman ...

Posted by agallo on Fri, 05 Apr 2019 17:48:29 -0700

View memcache server through telnet connection

memcache, as an excellent out-of-process cache, is often used in highly concurrent systems Framework Medium. This article mainly talks about how to check memcache running status and manage and maintain its key through telnet tool. Assume the memcache installation directory: / usr/local/memcached            1. Start memcache [ro ...

Posted by Ricklord on Sat, 30 Mar 2019 22:54:29 -0700