Tag:In the same way

  • Thymeleaf’s handling of string

    Time:2021-5-31

    Judge whether it is empty: null: Not empty It is empty 判断是不是It is empty字符串: “” Empty Judge whether it is the same or not: Same as Jack, Same as YWJ, 不Same as Jack, Setting default value does not exist: Whether to include (in case) Bauez Package J Whether to include (regardless of case) Package J […]

  • Using psr-4 and composer autoload to load folder automatically

    Time:2021-5-6

    The require file is very troublesome. If you use psr-4 and composer to load it once, it will be useful all your life. I feel like import in Java. I’ll record what I understand recently. Use composer to manage your own packages Install composer I won’t go into details about this English Course Chinese Course […]

  • Supervisor daemons and configure mail alerts

    Time:2021-3-13

    Supervisor installation and use, and configure service crash mail alarm Environmental Science System: centos7, python3 Installation dependency: yum install -y supervisor sendmail mailx && pip3 install superlance Configuration mail: vim /etc/mail.rc, and then add the following: #Sender [email protected]#SMP [email protected]#Password Test email:echo ‘this is test’| /usr/bin/mail -s ‘xxxxx’ [email protected] Configuration item: Edit the project’s configuration file,vim […]

  • Pointer passing of reference object

    Time:2021-2-17

    The instance of the reference object represents a memory pointer. When modifying the properties of the reference object, the information in memory will change accordingly. If the reference object is new, it represents a new pointer. The change will not affect the object pointed to by the previous pointer. Similarly, after the new below, the […]

  • Tips! On the problem of k-number before output

    Time:2021-2-3

    Leetcode-347Require sorting by frequency: first of all, we should count the number of times each number appears, and put it into a hash table. Then it is sorted according to the frequency, put into the container, and finally output the first k numbers in the container.Because of the large root heap feature of priority queue, […]

  • Gaode map API’s zoom scale control + 3D conversion

    Time:2021-1-14

    Scale bar control First, introduce the control AMap.Scale Then use map.addControl () add control map <span style=”background-color: #f5f5f5; color: #800000;”> *</span><span style=”background-color: #f5f5f5; color: #000000;”>{</span><span style=”background-color: #f5f5f5; color: #ff0000;”>margin</span><span style=”background-color: #f5f5f5; color: #000000;”>:</span><span style=”background-color: #f5f5f5; color: #0000ff;”>0</span><span style=”background-color: #f5f5f5; color: #000000;”>;</span><span style=”background-color: #f5f5f5; color: #ff0000;”>padding</span><span style=”background-color: #f5f5f5; color: #000000;”>:</span><span style=”background-color: #f5f5f5; color: #0000ff;”>0</span><span style=”background-color: #f5f5f5; […]

  • 4. How to set color correctly in Xib

    Time:2020-12-30

    4. How to set color correctly in Xib After writing for a long time, I found that it was not as good as others, so I reprinted it directlyIOS development: setting the right design color for app Let’s summarize If it is found in the development processInterface Builder(including Xib and storyboard) after running, the colors […]