P2P Chat Based on Socket Communication
Introduction of Socket Communication
Socket is an abstract layer between application layer and transport layer. It abstracts the complex operation of TCP/IP layer into several simple interface supply layer calls to realize process communication in the network. Socket is an implementation of "open-read/write-close" mode. Server and c ...
Posted by dvayne on Fri, 14 Jun 2019 20:04:51 +0200
A simple example of aop in spring
aop, or Face-Oriented Programming, aims at separating concerns. For example, a knight only needs to care for his safety or his expedition, and who records and celebrates his brilliant life? Of course, it is not himself. This can be fully celebrated by poets, such as when a knight is on the march, when a poet can send off, when a knight is brave ...
Posted by mahendrakalkura on Fri, 14 Jun 2019 20:03:37 +0200
The Use of Tencent Bugly
Library File Import
Bugly supports automatic integration and manual integration. If you use Gradle to compile Apk, we strongly recommend that you use automatic access to configure library files.
Automatic integration (recommendation)
Bugly support JCenter Warehouse and Maven
Central Warehouse . In order to achieve more flexible co ...
Posted by bigwatercar on Wed, 12 Jun 2019 20:51:36 +0200
How to Develop Custom Labels
1. Introduction
Principle: User-defined jsp tags.When a jsp page with a custom tag is compiled into a servlet by the jsp engine, the tag tag is converted into an operation on an object of a tag processor class.
Tag Library API: Defined in javax.servlet.jsp.tagext
2. Lifecycle of label processor class implementing SimpleTag interface
1) setJs ...
Posted by Ludichrist on Wed, 12 Jun 2019 19:26:19 +0200
Crawler - Beautiful Soup4 parser
Beautiful Soup is simple to parse HTML. API is very human. It supports CSS selector, HTML parser in Python standard library, and XML parser in lxml.
Compared with regularity, it is simpler to use.
Examples:
First you have to import the bs4 Library
#!/usr/bin/python3
# -*- conding:utf-8 -*-
__author__ = 'mayi'
from bs4 import BeautifulSoup
h ...
Posted by rbama on Tue, 11 Jun 2019 23:57:40 +0200
Mapping relationship of Hibernate
Hibernate mapping relationship
1. Description of mapping file
1.1 Noun Interpretation
Relationship: The state in which things interact and relate with each other.
Association: Noun: denotes the relationship between objects (database tables); verb: associates objects (database tables) in some way.
Mapping: Transforming one form into ano ...
Posted by pradee on Tue, 11 Jun 2019 18:56:38 +0200
Implementing a rudimentary Notepad software
Preface
Because the wifi is broken at home during the summer vacation, I think I've been studying Android for so long that I haven't written even a simple app of my own, so I spent some time doing it. I remember when I started to learn programming, some buddies in the learning group sent out their own notebook software, so I'll make a noteboo ...
Posted by dbrown on Tue, 11 Jun 2019 00:32:49 +0200
2. Do you need a dependency injection container?
This is an article I translated from a website abroad. Do you need a Dependency Injection Container?
This article is part of a series of articles on dependency injection and PHP lightweight container implementations:Part 1: What is Dependency Injection?Part 2: Do you need a Dependency Injection Container?Part 3: Introduction to the Symfony Ser ...
Posted by Unholy Prayer on Mon, 10 Jun 2019 20:28:27 +0200
Best Practices for Services--Download Example for Full Edition
This is mainly the problems and solutions encountered in 10.6 of the second edition of "Android First Line of Code". Write them down in the hope that they can help you, and that you can have better solutions to communicate with each other.
The Android Studio version is as follows:
Here I'll start by listing the errors that o ...
Posted by robembra on Mon, 10 Jun 2019 18:57:39 +0200
Android uses third-party SDK-allies for sharing
Today I want to write about the sharing of alliances. This period of time is useful for the project. Here is a brief introduction.
Links to the Alliance's official website: Click Open Link
First, to WeChat QQ, Weibo Open Platform Add Applications, Get key, List the links below:
QQ Open Platform Wechat Open Platform Microblog Open ...
Posted by twigletmac on Sun, 09 Jun 2019 23:22:20 +0200