[effective Java Reading Notes] A common method for all objects (3)
1. Careful coverage of clone
1. Common object overrides clone
PhoneNumber
public class PhoneNumber implements Cloneable{
private final short areaCode;
private final short prefix;
private final short lineNumber;
public PhoneNumber(short areaCode, short prefix, short lineNumber) {
super();
this.areaCode = areaCode;
this.prefix = pref ...
Posted by DeathRipple on Wed, 05 Jun 2019 23:14:49 +0200
Day22 - Mouse Anchor Animation Generation Guide
This article is from: Chunge Personal Blog: http://www.liyuechun.orgAuthor: extension Li Yuechun - A Time-chasing ManIntroduction: JavaScript30 yes Wes Bos A 30-day challenge to launch. The project provides 30 video tutorials, 30 challenge start documents and 30 challenge solution source code free of charge. The goal is to help people write in ...
Posted by wesnoel on Tue, 04 Jun 2019 22:39:46 +0200
Basic learning and detailed explanation of python Network Framework twisted
Three basic modules of twisted network framework: Protocol, ProtocolFactory, Transport. These three modules are the basic components of twisted server-side and client-side programs.Protocol: Protocol Object Implements Protocol Content, i.e. Communication Content ProtocolProtocolFactory: A representation of the factory pattern, where protocols a ...
Posted by fcaserio on Tue, 04 Jun 2019 20:32:20 +0200
Load pictures on demand (pictures are lazy to load)
Preface
Loading pictures as needed is a very useful feature that not only improves the performance of the website, but also saves you traffic.For friends who use virtual hosts, if your website is a picture website or a website with more pictures, then lazy loading of pictures is a must.
principle
The principle of lazy loading ...
Posted by Popgun on Tue, 04 Jun 2019 19:20:39 +0200
Database int, what does the char field length mean
Database int, what is the length after the char field
First come to the conclusion:The length of the int field has nothing to do with the length of the data you store, but with the display.The length of the char field is related to the length of the data you store
int field length
Start with int and look at the table below
CREATE TABLE `test10` ...
Posted by bulrush on Tue, 04 Jun 2019 18:33:17 +0200
Android 5.0 New Feature Learning
In Android 5.0, touch feedback, or water ripple, was added.
Use
1. When creating a new project, the default button usually has water ripple effect. If you want to delete it, you can specify a color for the view.
Code:
Android: background="? Android: attr / selectable ItemBackground" ripple with boundary
Android: background= ...
Posted by Chief on Tue, 04 Jun 2019 02:06:23 +0200
Source Code Analysis of cocos2d-x CCScrollView
Original address: http://blog.csdn.net/u011225840/article/details/30033501
1. Inheritance tree structure
You can see that CCScrollView is essentially a kind of CCLayer with all the properties and methods of the layer.Source analysis for CCLayer will follow.
2. Important Members
1. CCScrollViewDelegate* m_pDelegate;
In ...
Posted by rbama on Tue, 04 Jun 2019 00:48:07 +0200
Some patterns and thinking changes brought about by using wxss for responsive development
The use of wxss has brought about some changes in patterns and thinking for responsive development.WXSS(WeiXin Style Sheets) is a set of style languages used to describe the component style of WXML.WXSS is used to determine how components of WXML should be displayed.In order to adapt to the vast number of front-end developers, our WXSS has most ...
Posted by karnegyhall on Mon, 03 Jun 2019 22:28:46 +0200
vue.js Learning Components (Part I)
Demo and source code of this article have been put in GitHub, if you think this article is good, please point a compliment, or add a star to GitHub!
https://github.com/zwl-jasmine95/Vue_test
All of the following knowledge is based on vue.js version 2.0
Component is one of the most powerful functions of Vue. js. Components can extend HTML ...
Posted by ahmadajcis on Mon, 03 Jun 2019 21:52:50 +0200
Lazy loading of pictures and exception handling
Picture display is often involved in daily page development.Sometimes when there are too many picture resources, we want to delay the loading of pictures, and when the loading fails, we can use a default picture to display them instead.The effect is shown in the diagram:
1. Lazy loading of pictures
In fact, the core idea of lazy loading pictur ...
Posted by inaba on Mon, 03 Jun 2019 18:33:52 +0200