Tag:load

  • Jqery Ajax — an example of the load () method

    Time:2021-10-1

    1、 Load () method (simplest)load(url,[data],[callback]) URL: the address of the loaded pageData: optional. The format of the data sent to the server is key / valueCallback: optional, callback function1. Simplest application Copy codeThe code is as follows: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /> < title […]

  • Android implements a simple loading progress bar

    Time:2021-9-8

    This example shares the specific code of simple loading progress bar for Android for your reference. The specific contents are as follows 1. Renderings 2. Customize ProgressBar package com.example.myapplication7; import android.animation.ValueAnimator; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.os.Bundle; import android.os.Parcelable; import android.util.AttributeSet; import android.view.animation.AccelerateDecelerateInterpolator; import android.widget.ProgressBar; import java.lang.annotation.Retention; […]

  • How to view the average load of the system through linux commands

    Time:2021-8-28

    1. The concept of average load of Linux system Sometimes we feel that the system response is very slow, but we can’t find the reason. At this time, we need to check the average load to see if there are a large number of processes waiting in the queue. The average number of processes in […]

  • DRF — talk about the evolution of cookie session token

    Time:2021-8-23

    1、 Session retention Session persistence refers to a mechanism on the load balancer, which can identify the relationship between the interaction process between the client and the server, and ensure that a series of related access requests will be allocated to one machine while performing load balancing. In human words, multiple requests initiated during a […]

  • Eight cartoons understand the single sign on system designed by JWT

    Time:2021-7-29

    JSON web token (JWT) is a very lightweight specification. This specification allows us to use JWT to transfer safe and reliable information between users and servers. Let’s imagine a scene. When user a pays attention to user B, the system sends an email to user B with a link “click here to pay attention to […]

  • 11 graphic single sign on system, risbett!

    Time:2021-7-27

    JSON web token (JWT) is a very lightweight specification. This specification allows us to use JWT to transfer safe and reliable information between users and servers. Let’s imagine a scene. When user a pays attention to user B, the system sends an email to user B with a link “click here to pay attention to […]

  • Examples explain the method of using SVG to make loading animation

    Time:2021-7-16

    Today, I’d like to share with you a loading animation based on SVG images. Now mobile web pages are used more often. If you still use GIF to do loading images, the image quality may be affected. So SVG is a good way. The code in this exhibition is written by Aurer. The front-end staff […]

  • Implementation of user defined network weight loaded by Python

    Time:2021-7-3

    When loading the user-defined network weight into the network, an error is reported: AttributeError: ‘dict’ object has no attribute ‘seek’. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead. We analyze it step by step. The model network […]

  • JWT configuration and use

    Time:2021-6-11

    1. Installation and configuration of JWT 1.1 installation of JWT pip install djangorestframework-jwt==1.11.0 1.2 settings.pyConfiguring the expiration date setting in JWT payload #Validity setting in JWT payload JWT_AUTH = { #1. Token prefix: prefix of authorization value in headers ‘JWT_AUTH_HEADER_PREFIX’: ‘JWT’, #2. Token validity: one day ‘JWT_EXPIRATION_DELTA’: datetime.timedelta(days=1), #3. Refresh token: the old token is allowed […]

  • JWT identity authentication (with explanation of source code)

    Time:2021-4-23

    [TOC] JWT (JSON web token) verification (with explanation of source code) One day, it’s lunch break The sergeant passed by the seat of the fat Sir and was surprised. Today, the fat Sir didn’t snore. Instead, he was staring at a book with his head down The commander looked closer, fat Sir was reading history […]

  • Solve the error problem of loading the trained model by python

    Time:2021-3-6

    This is a very stupid mistake Take a good look at the error information when debugging Remind yourself to take good care of error! Remember! Remember! ———————–Dividing line—————- Pytorch is already very friendly. You only need a simple command to save and load the model #Save the entire network and parameters torch.save(your_net, ‘save_name.pkl’) #Loading saved […]

  • Mn13 hardened steel

    Time:2021-2-22

    Study on abrasive wear properties of hot rolled high manganese steel Mn13 coupled with punching and rolling. The microstructure transformation and wear mechanism were analyzed by XRD and SEM. Under higher impact rolling load, hot rolled Mn13 steel shows better impact rolling abrasive wear resistance.There is a certain thickness of hardened layer on the wear […]