timerring

Overview of the AI Development Software Environment

March 14, 2023 · 6 min read
Tutorial
Linux | GPU | Python

Regarding software:

  1. Installation of the ubuntu operating system
  2. Abandon bash, embrace zsh
  3. Use of package managers,
  4. Install the NVIDIA GPU driver
  5. Software installation:Miniconda
  6. Software installation:Python IDE
  7. Software installation: ssh
  8. Software installation:Git
  9. Installation of other productivity software
...


Nginx Basics and Minimal Configuration

March 1, 2023 · 5 min read
Tutorial
Network | Nginx

Directory Structure #

The Nginx root directory contains the following folders:

client_body_temp conf fastcgi_temp html logs proxy_temp sbin scgi_temp uwsgi_temp

Folders ending in _temp are used to store temporary files generated during operation.

The other main folders are:

  • conf: stores configuration-related files
  • html: the default directory for static files such as HTML and CSS files
  • sbin: the main Nginx executable
  • logs: stores various logs. For example, access records access-related information, error records errors, and nginx.pid records the service’s PID, that is, its process ID.
...


Shell Scripting Fundamentals

July 25, 2022 · 23 min read
Tutorial
Shell | VPS

Shell is the language we use to communicate with the operating system through the command line.

Shell scripts can run directly on the command line, or a set of logic can be organized into a file for reuse. The command line can be thought of as a “shell script executing line by line.”

There are many common kinds of shell scripts in Linux, including:

  • Bourne Shell (/usr/bin/sh or /bin/sh)
  • Bourne Again Shell (/bin/bash)
  • C Shell (/usr/bin/csh)
  • K Shell (/usr/bin/ksh)
  • zsh
  • …

Linux systems generally use bash by default.

The file should begin with #! /bin/bash to specify bash as the script interpreter.

...


MySQL Cheatsheet

March 15, 2022 · 84 min read
Tutorial
MySQL | SQL

整理 MySQL 常用语法、函数、约束、多表查询和事务,并介绍存储引擎、索引、执行计划与 SQL 性能优化。 文中的密码仅作示例,实际使用时请独立生成。

...


Image Classification and Foundational Vision Models

March 7, 2022 · 3 min read
Tutorial
Python | Computer Vision

Process #

  1. Collect data

  2. Define the model

    Usually a function containing parameter variables: \(y=F_{\Theta}(X)\)

    Example: \(y=\sigma\left(\Theta^{T} X\right)\)

  3. Train Find the optimal parameters \(\Theta^{*}\) so that the model \(y=F_{\Theta^{*}}(X)\) achieves the highest accuracy on the training set

  4. Predict For a new image \(\hat{X}\) , use the trained model to predict its class, namely \(\hat{y}=F_{\Theta^{*}}(\hat{X})\)

...


SSH Remote Access and File Transfer

February 12, 2022 · 4 min read
Tutorial
SSH | VPS

Log In to the Server #

ssh user@hostname
  • user: username
  • hostname: IP address or domain name

The first time you log in, you will see this prompt:

The authenticity of host '123.57.47.211 (123.57.47.211)' can't be established.
ECDSA key fingerprint is SHA256:iy237yysfCe013/l+
Are you sure you want to continue connecting (yes/no/[fingerprint])?

Enter yes and press Enter. This records the server’s information in ~/.ssh/known_hosts.

Then enter the password to log in to the remote server. The default login port is 22. To log in through a specific port:

ssh user@hostname -p 22
...


Introduction to Web APIs

July 10, 2021 · 3 min read
Tutorial
JavaScript | Frontend

Strictly speaking, most of what we learned in the JavaScript section belongs to ECMAScript. ECMAScript, or ES, defines language standards such as the syntax rules for variables, data types, expressions, statements, and functions. Browsers implement most of the ECMAScript specification and extend it with practical features. These extensions are called Web APIs.

...