1. VSCode Using Notes

    How to add "Program Files" in VS Code settings

    Use "C:\Program Files\..." or C:\"Program Files"\...

    How to write MATLAB scripts in VSCode

    However, I find it not a good idea. The terminal crashes from time to time and Workspace in MATLAB cannot be integrated into vscode.

    The main …

    Read more
  2. A Number Guessing Game Bot

    The AB game is played with two people. One person chooses a four digit number in which no digit is repeated, say X, and the other person tries to guess it in as few moves as possible. After the guesser guesses some number, say Y, the other person gives information …

    Read more
  3. Git Learning Notes

    Workflow

    When using git to collaborate with others, the following workflow should be taken:

    1. git checkout main to switch the local branch to main.
    2. git pull origin main to pull the remote main branch to the local branch to catch up the work.
    3. git checkout -b newLocalBranchName to create a …
    Read more
  4. Matlab Learning Notes

    Docs: MATLAB Help Center

    Table Related

    How to filter a table

    theTable(theTable.VariableName == 0, :);
    

    returns a table that contains every row in theTable whose VariableName == 0.

    Remove Rows from Table

    Docs

    This removes rows with row id 3,5,7 from the table.

    table([3,5,7],:)=[];
    

    Things Unique …

    Read more
  5. Vue Learning Notes

    Style Related

    Add Style to the Chosen Router Link

    The chosen router link has a class .router-link-exact-active

    Vue Router Related

    Navigation Guard

    Docs: Navigation Guards

    As the name suggests, the navigation guards provided by Vue router are primarily used to guard navigations either by redirecting it or canceling it.

    To …

    Read more
  6. How to Deploy Django

    Just follow the docs. That's it. However, I do find a few things wrong in the docs when I followed it. I rewrite those parts and add some comments.

    Some notes about this tutorial

    Note

    This is a tutorial. It is not intended to provide a reference guide, never mind …

    Read more
  7. Vue+Django CORS and CSRF

    Backend (Django) Part

    Docs: django-cors-headers, django core settings

    According to django-cors-headers, use:

    python -m pip install django-cors-headers
    

    to install django-cors-headers and add it to installed apps in settings.py

    INSTALLED_APPS = [
        ...,
        "corsheaders",
        ...,
    ]
    

    Add a middleware class to listen in on responses. The order of middlewares is important:

    CorsMiddleware should be placed …

    Read more
  8. Goodbye World

    Date: Tue 26 April 2022
    Updated: Tue 26 April 2022

    In 6. Misc.

    Tags: Misc

    This is my First Hexo Blog

    Goodbye world! (Why not 'Hello World!', you might ask. That's what people in the industry do. Well, that's the reason. )

    Test formula: $ \frac{x_1^2} {\sqrt{y_2^2} } $

    Test images:

    avatar

    Becoming Web Leader of NIMO

    Read more
  9. Photoshop知识点整理

    Date: Sun 16 June 2019
    Updated: Sun 16 June 2019

    In 6. Misc.

    Tags: Misc

    各种图层

    以下图层默认“图层可见性”为真

    文字图层

    滤镜:×

    图层样式:√

    自由变换:√,可以调整字号、拉伸文字

    更改不透明度:√

    删除:唯 …

    Read more
  10. 学生端杀手

    Github Repo

    前言

    目前大多数电子教室使用的学生端软件是极域电子教室,杀除它的方法也有很多。但对于大多数小白,记下这些 …

    Read more

Social