Posts
Love and Math
· β˜• 1 min read
Author: Edward Frenkel (USA) Original title: Love and Math: The Heart of Hidden Reality Publication year: 2016-3 ISBN: 9787508658070 Notes: I finished this book on the high-speed train during a round trip. It is a fairly light, autobiographical kind of mathematics book. It mainly follows the timeline of the author’s schooling, and tells the story of how a boy interested in physics, step by step and through unremitting effort, became a world-class mathematician.

The h Function in Vue
· β˜• 2 min read
1. The createElement Method The common DOM operations in HTML are modifying DOM nodes and accessing DOM nodes. Beyond those, the W3C has also published technical standards for creating and deleting DOM nodes. The createElement method is used to create a DOM node. createElement() usually needs to be used together

How to Ask a Good Question
· β˜• 3 min read
1. Motivation for Asking Questions There are two kinds of motivation for asking questions: passive and active. 2 Passive Passive questioning is the forced action you take when you run into a problem, search for a solution, and come up empty. 2.1 Try to Solve It Yourself When you hit a problem, do not rush to ask others.

How to Safely Access request from Anywhere in Django
· β˜• 2 min read
In Django, request holds all the information for a single request. Backend processing logic frequently needs information from request. For example, the DRF framework may want to be able to obtain request at any time, or pass some parameters globally. There are third-party Django apps with tools that can satisfy

Using axios in Vue
· β˜• 2 min read
1. Installing axios Install with npm 1 npm install axios --save There are two ways to register it globally: Bind it to the prototype 1 2 import axios from "axios"; Vue.prototype.axios = axios; With this approach, every Vue object gets a new axios object. 1 2 3 this.axios.post(apiUrl).then((res) => {