Category:Program

  • Coredata collation (4) — data migration and other issues

    Time:2019-12-9

    Coredata collation (4) — data migration and other issues Catalog Lightweight data migration Subsequent problems Lightweight data migration In the process of iteration of APP version, it is inevitable to change the. Xcdatamodel file, such as adding or deleting an entity, adding or deleting the attributes of an original entity, etc. If you do not […]

  • Android 2019 latest interview practice summary

    Time:2019-12-9

    Android: How does the headline screen fit today? 1: first calculate the density. Calculation formula: the total screen width of the current device (in pixels) / the total width of the design drawing (in DP) = the reason why 1 DP accounts for the number of pixels of the current device to calculate the density: […]

  • Hide API fields dynamically in laravel

    Time:2019-12-9

    The article was forwarded from the professional laravel developer community. Original link: https://learnku.com/laravel/t I recently saw a problem in the laravel Brasil community that turned out to be more interesting than it seemed. Imagine you have aUsersResourceUse the following implementation: <?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\Resource; class UsersResource extends Resource { /** * Transform the resource […]

  • Python Standard Library — 8. Built in constant

    Time:2019-12-9

    Previous article: Python Standard Library — 7, built-in function (v-w-x-y-z)Next article: Python Standard Library — 9. Built in types: logical value detection, Boolean operation, comparison Built in constant A few constants exist in the built-in namespace. They are: 1. False False value of type bool. Assigning a value to false is illegal and raises a […]

  • [Ubuntu] compile GTEST on Ubuntu, write gtest-config.cmake and test

    Time:2019-12-9

    This article was first published on my blog https://kezunlin.me/post/4a1427cf/, welcome to read! compile gtest on ubuntu 16.04 Guide compile gtest on ubuntu 16.04 compile gtest on windows 10 apt-get sudo apt-get install libgtest-dev cd /usr/src/gtest # only source files compile git clone https://github.com/google/googletest.git wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz cd googletest mkdir build cd build cmake-gui .. make -j8 […]

  • Lesson 2 from zero row Vue — what exactly is vue.js

    Time:2019-12-9

    Previous review Do you remember the Hello world code from the last lesson? We have successfully created the first Vue application! It looks like rendering a string template, but Vue does a lot of work behind it. Now that the data and DOM have been correlated, everything isResponsive。 What is vue.js? Vue is a JS […]

  • HTML processing word wrapping

    Time:2019-12-9

    1. Word break: break all. It only works for English, and uses letters as the basis for line breaking 2. Word wrap: break word. Only works in English, and word is used as the basis for line breaking 3. White space: pre wrap. Only works for Chinese, forcing line breaking 4. White space: nowrap. Force […]

  • Relearn front end learning notes (18) — closure and execution context of JavaScript

    Time:2019-12-9

    Note description The front-end of re learning is a column opened by Cheng Shaofei [former head of mobile Taobao] in Geek time, 10 minutes a day, to reconstruct your front-end knowledge system. The author mainly sorts out some key notes and insights of the learning process, and can join the column of winter to learn […]

  • Apple software engineers tell the story behind the “security code auto fill” function

    Time:2019-12-9

    Apple Software Engineer Ricky Monte Carlo told the story behind one of IOS 12’s most popular features, “security code autofill,” on twitter, according to foreign media Apple insider. If you’ve experienced the pain of double authentication, you may know how useful Apple’s auto fill feature is. This function can save the trouble of entering forms […]

  • [jQuery plug-in sharing] cropper — a simple and convenient image clipping plug-in

    Time:2019-12-9

    Introduction of plug-ins This is a jQuery image clipping plug-in that I found on my way to writing the previous project. At that time, I wanted to realize the upload function of the user’s profile, preview the image, and simply clip and rotate the image. It took a lot of time to see this plug-in. […]

  • On Java generics

    Time:2019-12-9

    What is generics? Generic is a new feature of JDK 1.5. Its essence is the application of parameterized type, that is to say, the data type to be operated is specified as a parameter, and the specific type is specified when it is used. This parameter type can be used in the creation of classes, […]

  • HTML 5 upload image file (including drag, preview, upload, beautification)

    Time:2019-12-9

    Welcome to Laker’s blog, the program of attackGithub:https://github.com/younglakerMicro blog: jiangxiaohu Laker The last article talked about how to upload files. This article talks about the details of image upload, preview and so on. About interface File API File – a stand-alone file; provides read-only information such as name, file size, mimeType, and a reference to […]