Tag:Prompt information

  • 15 secondary encapsulation response class

    Time:2021-10-3

    Secondary encapsulation response class from rest_framework.response import Response class APIResponse(Response): def __init__(self, data_status=0, data_msg=’ok’, results=None, http_status=None, headers=None, exception=False, **kwargs): ”’ :param data_ Status: status code : param MSG: prompt : param results: additional information, such as serialized data :param headers: : param status: HTTP status code : param kwargs: additional information ”’ #Initial status of […]

  • Manually create a springboot project based on idea

    Time:2021-8-29

    Create Maven project Specify project name Edit pom.xml configuration file <?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>com.jt</groupId> <artifactId>springboot_demo2</artifactId> <version>1.0-SNAPSHOT</version> <!– 1. Uniformly define parent items — > <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.4.RELEASE</version> <relativePath/> <!– lookup parent from repository –> </parent> <properties> <java.version>1.8</java.version> <!– Skip test class loading — > <skipTests>true</skipTests> </properties> <!– 2. […]

  • Advanced usage of more command under Linux

    Time:2021-8-9

    When we work in Linux environment, we will certainly deal with all kinds of text files every day. These files are sometimes very long and cannot be displayed completely in one screen space. Therefore, when viewing such files, we need to display them in pages. At this point, we can usemoreCommand. Basic usage of the […]

  • Text prompt when the mouse hover is up

    Time:2021-6-30

    usecontentAttributeshoverThe prompt message for the. fromplacementAttributes determine the display effect: placementProperty values are: Orientation – align position;                                Four directions:top、left、right、bottom;                                Three alignment positions:start, end, which is empty […]

  • Git push prompt ‘you are not allowed to push code to this project’

    Time:2021-3-8

    Prompt information: After confirming that the user name, mailbox settings, submit permissions and sshkey are OK, use SSH – t again [email protected] The test still doesn’t work The final solution is as follows:Under the current project, vim. Git / config opens the configuration and replaces the original url = http: / / ~ in the […]

  • Use the placeholder property to set the prompt information of the input text box

    Time:2021-2-25

    Input text box, you can use the placeholder property The result is that when the content of the text box is empty, the prompt will be displayed, and when the content is entered, the prompt will disappear The difference between the placeholder and the value attribute is that the value attribute is directly set to […]

  • How to use the validator of laravel gracefully

    Time:2021-1-27

    In the process of web development, parameter verification is often needed. In laravel, we often use validator or request to verify. However, neither of these two methods is very convenient for us to customize prompt information and validation rules. So here is a very convenient usage: New abstract class <?php namespace App\Http\Validators; use Validator; abstract […]

  • The shutdown command of bat

    Time:2020-12-29

    Today, I want to restart the computer after a fixed time, but I only used the shutdown command before, so I went to query the information and recorded the usage of the shutdown command as a whole. 1: cancel shutdown 2 shutdown -a 3 4: power off 5 shutdown -s 6 7:: forcibly shut down […]

  • H5 drag upload file + progress bar display

    Time:2020-12-28

    This article takes advantage of H5Drag and drop APITo achieve the function of dragging files to the browser to upload. Business requirements: 1. Drag and dropUpload fileTo browserUploadable area。2、Upload fileStay inUploadable area, prompt information can be uploaded.3. ReleaseUpload file, release positionUploadable area, execute the upload operation and display the upload progress. It’s a bit like […]

  • Laravel5.8*

    Time:2020-12-28

    Validate returns Chinese prompt information GitHub methodDirectory after installation\vendor\caouecs\laravel-lang\src Validate redirect to laravel home = > return JSON data App\Exceptions\Handler.php Define global parameters 1. / config creation file.php 2. Return [‘id ‘= >’openid’]; // data in return array format 3. Command line input ` PHP Artisan config:cache It will be generated in bootstrap / cache […]

  • Use the placeholder property to set the prompt for the input text box

    Time:2020-4-17

    Example Search field with placeholder text: <form action=”demo_form.asp” method=”get”> <input type=”search” name=”user_search” placeholder=”Search W3School” /> <input type=”submit” /> </form> Definition and Usage The placeholder property provides a hint that describes the expected value of the input field. The prompt is displayed when the input field is empty and disappears when the field gets focus. Note: […]

  • Tensorflow learning notes (6): embeddings of tensorboard

    Time:2020-3-14

    Preface This paper is based on how to on tensorflow. Tensorboard is a visualization tool of tensorflow. Embeddings is one of its functions, which is used to explore high-dimensional data in two-dimensional or three-dimensional space. An embedding is a map from input data to points in Euclidean space. This article uses MNIST data to explain […]