Application of iOS predicate
The predicate in Cocoa provides a general query method to process data, The filtering form of data can be obtained and specified. In the actual development of Cocoa, NSPredicate and its parent classes NSComparisonPredicate and nscompoundpredict can be used. Its style is similar to the mixture of SQL query language and regular expression, provid ...
Posted by Anyaer on Wed, 01 Apr 2020 22:49:36 -0700
Android 7.0 or above (including 8.0), popupWindow pop-up position is abnormal, solution
Generally, in our App, click the position of the title to pop up the menu, and the effect is as follows:
Is that hard? Picking up the keyboard is doing
public void showAsDropDown(View anchor, int xoff, int yoff) {
showAsDropDown(anchor, xoff, yoff, DEFAULT_ANCHORED_GRAVITY);
}
1
2
3
But it's not always what we th ...
Posted by hmb3801 on Tue, 31 Mar 2020 23:43:19 -0700
Research on the order of output key value pairs of JsonObject toString()
There is a set of interface in the background, which needs to sort the parameters, so a set of sorting method is written. Before the interface is requested, all parameters are sorted. Here, JsonObject and its own toString method are used. During the test, it is found that the running of the program on a Android 4.4 s ...
Posted by gmartin1215 on Tue, 31 Mar 2020 23:28:31 -0700
Python+Selenium notes (12): data driven testing
(1) Foreword
Through the use of data-driven testing, the input value and expected results can be parameterized. (for example: input data and expected results can directly read the data of Excel document)
(2) ddt
The ddt library can parameterize the variables in the test. When using ddt, use @ ddt decorator on the test class and @ data decorator ...
Posted by viko20 on Tue, 31 Mar 2020 17:41:15 -0700
Custom view, 24 hours percent
Don't talk much, just go to the renderings It mainly uses drawing tools to draw rectangles of different colors according to different time periods. Divided by 24 hours according to time periods, 6-24 points are in the project, that is, divided by 18, and then the percentage is calculated. After conversion with the screen of the ...
Posted by rallan on Tue, 31 Mar 2020 11:17:53 -0700
HPU timetable software of Henan University of Technology
HpuTimetableAPI
Background open interface of [HPU timetable] software
It includes the whole course library of the second semester 2017-2018 of Henan University of technology
23 colleges, 901 classes, 5647 courses, 20241 course records
Rubbing class function
Sharing courses
Scan code import
course management
Course library ma ...
Posted by solus on Tue, 31 Mar 2020 08:20:54 -0700
[ASP.NET Core 3.1] Browser sniffing solves missing cookies in some browsers
[ASP.NET Core 3.1] Browser sniffing solves missing cookies in some browsersStudents who have read the previous article should know that browsers such as Sogou and 360 redirect repeatedly in single sign-on, and eventually fail and make mistakes.
The reason is that non-Chrome80+ browsers do not recognize the SameSite=none attribute value on the C ...
Posted by jallard on Mon, 30 Mar 2020 19:53:37 -0700
Android development runtime permission dynamically applied tool class (extension supported)
Flow chart of dynamic application authority:
Tool class of dynamic permission
Core code used by tool class:
Android 6.0 or above (API > = 23), or build.version.sdk ﹐ int > = build.version ﹐ codes. M, sensitive permissions like camera, location, mobile phone address book, phone call and other permissions need ...
Posted by landysaccount on Mon, 30 Mar 2020 09:44:14 -0700
Detailed explanation of design mode bridge mode
Basic introduction
Bridge mode is a structural design mode.
Put the implementation and abstraction in two different class levels, so that the two levels can be changed independently.
Based on the minimum design principle of class, different classes are given different responsibilities through encapsulation, aggregation, inheritance and other b ...
Posted by drdapoo on Mon, 30 Mar 2020 04:00:30 -0700
Create JS: you have many colors
Game introduction: see you have polychrome "is a small game based on Html5 technology, which challenges the human eye's ability to distinguish colors and is fun and easy to use. According to Kaiser, the developer, the inspiration of the game is from the familiar game of finding fault, which is simplified according to the user's behavior ha ...
Posted by poison on Sat, 28 Mar 2020 08:31:44 -0700