(0068) Masonry Experience of AutoLayout Framework for iOS Development

Apple officials gave some suggestions on automatic layout These suggestions are applicable regardless of whether you use interfaceBuilder or code to achieve automatic layout. (1) Specify the shape of the view without the frame, bounds, and center of the view (2) Layout with stackView whenever possible (3) Constraints should be est ...

Posted by RandomEngy on Wed, 22 May 2019 01:51:23 +0200

Android saves pictures to system albums

github address: (full demo, welcome to download)https://github.com/zhouxu88/SaveImgToGallery/tree/master There may be two ways to save images in Adnroid: The first method is to call the insertion library provided by the system. MediaStore.Images.Media.insertImage(getContentResolver(), bitmap, "title", "description"); Calling the method ...

Posted by ofi on Wed, 22 May 2019 01:12:35 +0200

zookeeper global unique id generation

One backgroundThe traditional method of generating id can be realized by the self-increment of database, but it is not suitable in distributed environment. Dependence on databases can easily lead to singletons.Why not use UUID? When you read someone's introduction on the internet, you should analyze it from two aspects:In the case of large conc ...

Posted by hemlata on Tue, 21 May 2019 01:50:38 +0200

Small Copy of Knowledge Points of JavaScript Mode

introduce Recently, I started to set up a learning task for myself every week. The learning results are fed back to the output of an article and the learning records are made well. My goal for this week (02.25-03.03) JavaScript Mode Chapter 7: Learn it again. Feedback of learning results is this article. Because the content is too long, I d ...

Posted by oshecho on Mon, 20 May 2019 02:07:11 +0200

Understand the principles of elementUI instructions and service modes thoroughly

Not willing to be a wheeler!!! Recording the Hard Way of a Picture Preview Component for an Internship Rookie~ Instruction mode and service mode are used in many components of elementUI, such as: loding, message, etc. Take the loading component as an example: Instruction mode: <template> <div :v-loading.fullscreen="true">Full scr ...

Posted by theperfectdrug on Sun, 19 May 2019 15:16:05 +0200

MVC vs. MVP vs. MVVM on Android

Over the past few years, the way to turn Android applications into logical components has matured. To a large extent, it has moved away from MVC mode to a more modular and testable mode. Model View Presenter (MVP) & Model View View Model (MVVM) are the two most widely used alternatives. This article does not discuss which appro ...

Posted by psychosquirrel on Sun, 19 May 2019 11:56:19 +0200

Teach you how to build a front-end visual monitoring system

I remember in my last company, a big man made a monitoring system, bullying, really want to study how he did it. Of course, we are not people who pat their heads to work. We can't do what others do. Now let's introduce the benefits of such a platform. background First, why do we do the front-end system? Looking at t ...

Posted by pea_1 on Sun, 19 May 2019 08:56:03 +0200

Some Applications of layer Bomb in Practical Projects

Official introduction: Layer is still the representative work of Layui. It is not accidental that its audience is widespread. It is the persistence of more than five years, continuous improvement and maintenance, continuous construction and improvement of community services, which makes apes spread spontaneously and even become the most powerfu ...

Posted by interpim on Sun, 19 May 2019 00:47:53 +0200

Idea calls interfaces using httpclient

Preface Blogger github Blogger's personal blog http://blog.healerjean.com After using swagger, I think it's very convenient, and then using postman, I think it's a little bit troublesome, but finally the data can be saved. But after using idea's httclient, I really don't want to use them anymore. 1. Opening mode 1.1. ...

Posted by willfitch on Sat, 18 May 2019 16:21:55 +0200

Encapsulation of OkHttp (parameters are all submitted using Json)

OkHttp believes it's not unfamiliar. Android is a useful framework for web requests. GitHub has more than 2 weeks of Start s on it and Square is one of Jake Wharton's masterpieces (Jake Wharton left Square to join Google), where he worships God for three seconds... I encapsulated OkHttp twice as needed for the project because, ...

Posted by KyleVA on Sat, 18 May 2019 09:54:33 +0200