python foundation concurrent programming 02

Concurrent programming Two methods of subprocess recycling join() allows the main process to wait for the end of the subprocess and reclaim the subprocess resources. The main process then ends and reclaims the resources from multiprocessing import Process import time def task(name): print(f'Child process{name}: starting......') time ...

Posted by tekrscom on Wed, 11 Dec 2019 02:57:55 +0100

[Trafodion tips] Trafodion's support for Chinese

In the Trafodion database, when we set a field type as character type (such as CHAR or VARCHAR), the character encoding will be subject to the default character encoding of the database. For example, in the following example, create a table with a character type field, and you can see that the encoding method of this field is ISO88591 through t ...

Posted by trooper on Tue, 10 Dec 2019 20:00:16 +0100

Glue/Unpack Processing in Netty

TCP is a protocol based on streaming. Request data is not bounded in its transmission, so when we read a request, we may not get a complete packet.If a packet is large, it may be sliced into multiple packets for multiple transmissions.At the same time, if there are multiple small packages, they may be integrated into one large package for tran ...

Posted by linux1880 on Mon, 09 Dec 2019 18:23:35 +0100

Thinkpphp phpmailer mailbox verification

thinkphp about phpmailer's mailbox verification First, Log in to your email, for example: qq email. Log in qq email to open the smtp service in account settings:      Then send back an authorization code, which will be saved first and used later.   Two. Download phpmailer using composer Open your tp framework path in cmd and enter composer re ...

Posted by DigitalExpl0it on Mon, 09 Dec 2019 00:43:22 +0100

The right way to use RabbitMQ in. NET Core

First, the official website: http://www.rabbitmq.com/ Then. NET Client link: http://www.rabbitmq.com/dotnet.html GitHub warehouse: https://github.com/rabbitmq/rabbitmq-dotnet-client Next, I will go directly to the text. There are two themes: how to write for consumers? How to write for producers? Consumer In dotnet core mvc, consumers must not ...

Posted by iamyespee on Sun, 08 Dec 2019 07:12:03 +0100

Android recyclerview + gallerylayoutmanager to achieve advertising Gallery effect

I'm sure you've met the effect of galleries in projects. There are many ways on the Internet, such as viewPager, recyclerview and so on. Today, we recommend a three-party Gallery layoutmanager, which is easy to realize quickly and solve the urgent problem. rely on gradle dependence compile 'github.hellocsl:GalleryLayoutManager:1.0.6' Realiza ...

Posted by Kaitosoto on Sun, 08 Dec 2019 06:54:45 +0100

Chinese processing of golang calling windows API

Go language has a strong momentum of development, but there are also many disadvantages. Fortunately, there are many fans who provide numerous libraries, which show their advantages too well. They can use whatever they do, basically ignore the pointer, and the performance is good. Recently, there is a problem in using Chinese under windows. Th ...

Posted by broc7 on Sat, 07 Dec 2019 08:56:20 +0100

Java Web generates Word document (freemarker mode)

First, add the following dependency to the pom file (if not the Maven project, just import the jar package into the project) <dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker</artifactId> <version>2.3.23</version> </dependency> 1. Create a word document with ...

Posted by ptbsG_Man on Fri, 06 Dec 2019 09:36:59 +0100

Connect ssh using paramiko

paramiko Paramiko is a module for remote control that allows command or file operations on remote servers. It is worth noting that remote management within fabric s and ansible is achieved using paramiko. install pip install paramiko Module usage Execute Command - User Name + Password #!/usr/bin/env python #coding:utf-8 import paramiko # Cre ...

Posted by headrush on Thu, 05 Dec 2019 04:15:51 +0100

Recommend a tool class for java to operate ftp

Written in front As children's shoes that often use computers to organize files, they should have used to upload and download files from the ftp server. Today, we will learn how to operate files of ftp service through java programs First of all, you should know the ip, path, port, account and password with operation permission of ftp 1 import ...

Posted by tmallen on Wed, 04 Dec 2019 11:53:15 +0100