You know the six most common layouts for Android development?

There is a good analogy on the Web: Layout is like a frame in a building. Components are arranged in order according to the layout requirements, which makes up a beautiful interface for viewing. Layout type 1. LinearLayout (Linear Layout) A linear layout arranges the child elements (which can be controls or layouts) in a horizontal or vertical ...

Posted by JoCitizen on Thu, 05 Dec 2019 20:27:22 -0800

Spring IOC Container Assembly Bean_XML-based Configuration

Develop required jar packages Four ways to instantiate beans 1. parameterless constructors (most commonly used) <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema ...

Posted by timgolding on Thu, 05 Dec 2019 19:32:25 -0800

NPOI Plugin Generates Exported word Document

Because you haven't touched NPOI before, almost all of them are learning while Baidu fumbles. This plugin is very convenient for data import and export of Excel. But for exporting word documents, it can be said that it is very few, Baidu has a lot of.... Also, I don't stop trying the code, so I sorted out some of my own opinions to record the c ...

Posted by mdversion1 on Thu, 05 Dec 2019 16:53:47 -0800

Spring AOP development of AOP based on AspectJ

Realize AOP development mode based on AspectJ: Annotation mode XML mode AspectJ is an AOP framework based on Java language; support for AspectJ pointcut expressions has been added since spring 2.0 @AspectJ is a new function of AspectJ 1.5. With JDK 1.5 annotation technology, you can directly define facets in Bean classes @Aspe ...

Posted by winsonlee on Thu, 05 Dec 2019 14:26:33 -0800

springboot simple mail send

Reasons for writing: Near the end of the project, the requirements change again and again. In fact, the technical point has never changed. It's just the change of business logic and the function of sending e-mail reminders. It's changed seven times in two months. I want to record the technical points. It's not about the business here, it's only ...

Posted by GetPutDelete on Thu, 05 Dec 2019 09:49:23 -0800

Use Python to check whether other programs are stuck

I. demand scenario: A large number of windows are running Java programs for a certain task, and the program will appear nameless card owner. The utilization rate of system resources is normal when the card owner is in charge, and the program is just that the card owner will not give any error prompt, so it is often found when there is a proble ...

Posted by orionellis on Thu, 05 Dec 2019 08:29:33 -0800

Upload files by python requests

Reference resources django upload file Temporary file, name can be obtained Memory file demand django receives the file uploaded by the front end and forwards it to wechat server requsts upload file https://2.python-requests.org//zh_CN/latest/user/advanced.html#streaming-uploads Streaming upload with open('massive-body') as f: requests.post ...

Posted by Daisatske on Thu, 05 Dec 2019 07:14:36 -0800

iOS Development -- MQTT real-time data processing

I. MQTT MQTT protocol is used in an Internet of things project, which can be used to communicate between devices and software MQTT: instant messaging protocol, transport layer protocol Two. Commonly used: 1. Mqttkit (no longer maintained) 2.MQTTClient a. set address port, account password and other basic information b. subscribe to topic ...

Posted by conor.higgins on Thu, 05 Dec 2019 04:59:50 -0800

Create xml data transformation by DOM parsing of json data format

Create xml data transformation by DOM parsing of json data format The first JSON tool to use is org.json In the past, FastJson was used. At the beginning of contact, it was still around many pits. However, it was also very easy to touch some of them at last Start with the code dome {"result": [{"comments": [{"id":"489ac5ea-c13 ...

Posted by numan82 on Wed, 04 Dec 2019 16:36:00 -0800

(C) call Webservice to prompt remote server to return error (500) internal server error

Because the work needs to call the WebService interface, I checked the following data and found that adding a service reference can directly call webservice Reference address: https://www.cnblogs.com/peterpc/p/4628441.html What if you don't add service references? Then I went to see how to call webservice according to http protocol and did a ...

Posted by beanman1 on Wed, 04 Dec 2019 16:14:23 -0800