MySQL
MySQL基础架构:一条SQL是怎么运行的?
大体来说,MySQL可以分为Server层和存储引擎层两部分
Server层包括连接器、查询缓存、分析器、优化器、执行器等,涵盖MySQL的大多数核心服务功能,以及所有的内置函数(如日期、时间、数学和加密函数等),所有跨存储引擎的功能都在这一层实现,比如存储过程、触发器、视图等
而存储引擎层负责数据的存储和提取。其架构模式是插件式的,支持InnoDB、MyISAM、Memory等多个存储引擎。现在最常用的存储引擎是InnoDB,它从MySQL 5.5.5版本开始成为了默认存储引擎
连接器连接器负责跟客户端建立连接、获取权限、维持和管理连接
1mysql -h$ip -P$port -u$user -p
连接命令中的mysql是客户端工具,用来跟服务端建立连接。在完成经典的TCP握手后,连接器就要开始认证你的身份,这个时候用的就是你输入的用户名和密码
如果用户名或密码不对,你就会收到一个”Access denied for user”的错误,然后客户端程序结束执行
如果用户名密码认证通过,连接器会到权限表里面查出你拥有的权限。之后,这个 ...
计算机图形学
计算机图形学 – Games101向量与线性代数Vectors(向量 【物理里面叫矢量】)
点乘
叉乘
矩阵
矩阵没有交换律
Arch Linux
Arch Linux install设置字体123setfont ter-132nsetfont /usr/share/kbd/consolefonts/sun12x22.psfu.gz
设置联网12345678910111213141516iwctl# 查看网卡设备device list# 联网station wlan0 scanstation wlan0 get-networks# 连接网络station wlan0 connect (wifi name)# 如果需要连接隐藏网络iwctl --passphrase <passphrase> station <device> connect-hidden <ssid># 测试链接网络是否成功 退出iwctl-exit/quitping -c 3 www.baidu.com
更换源1234567891011121314# 第一种方法vim /etc/pacman.conf [archlinuxcn] Se ...
OpenGL
Learn OpenGL环境搭建需要下载相关库,然后进行编译
glfw
glad
将glad编译成静态库,方便使用(libglad.a - 静态库)12gcc .\src\glad.c -c -I .\include\ar -rc libglad.a glad.o
学习资料
测试环境
12345#include <GLFW/glfw3.h>#include <cstdio>#include <glad/glad.h>int main() { return 0; }
这个代码会出现编译重复包含的错误(此前使用的编译器是mingw)
12345678910[main] Building folder: learnopengl [build] Starting build[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build e:/code/cpp/cpp_practice/learnopengl/build --con ...
VSCode环境配置(c/c++)
vscode 环境配置github
vscode docs
vscode-cmake-tools
c/c++常用插件
clangd
clang-format
cmake
cmake tools
c/c++
todo tree
Doxygen Documentation Generator
GitLens — Git supercharged
配置cpp环境
前置条件:安装好任意编译器(比如mingw)
运行配置设置(launch.json)
123456789101112131415161718{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", ...
UE4
UE4命名规范
继承自AActor — Axxx
继承自UObject — Uxxx
原生CPP — Fxxx
枚举 — Exxx
接口 — Ixxx
slate — Sxxx
AActor、Component、UObject
什么是AActor — 可以挂在组件
什么是Component — 组件
什么是UObject
反射
垃圾回收(GC)
序列化
序列化:把内存里面的东西存到磁盘的过程
反序列化:把磁盘里面的东西读取到内存的过程
类默认对象(COD)
类型转换12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788// FString To FNameFString Str = TEXT("TestString");FName Name = FName(*Str);// FN ...
Git常用命令集
Git常用命令集git更新本地代码本地代码未修改,只有master分支,直接更新
1git pull
本地代码有修改,多分支
1234567891011// 切换到master分支git checkout master// 更新master分支git pull// 切换到自己的分支mygit checkout my// 把master分支合并到自己的分支git merger master
本地代码有修改,只有master分支,直接覆盖本地代码
12345// 重置索引和工作目录git reset --hard// 更新代码git pull
本地代码有修改,直接覆盖远程仓库代码
12345// 覆盖my分支git push --force origin my// 覆盖主分支git push --force origin master
代码提交将本地代码添加到缓存
1git add .
提交添加注释
1git commit ...
Hexo
84a58bb6ded505cf23e65edb20c41b293744979ad5df5eddfd11f5417524ffff4f636d79ba016b5e4ff7139e76557f13f2eb841faf7be1c8425784d4350f67eb7db9cf0caf66736351f121ffd31a3482d92b8cb98fbb02fe812b03edb77c75e9b1925f3a77ec2b71b6947c53a9eab9d587f6239b91423c2b1371c77a2e0856f1c52a29ed9bb8506e299dad6ac9a70e089156e1401c1ebbe58b9e6b688be2de9d8e2ddc9d1669e74d4479afdca02875f2987f64b963fc504968ca9f07d1d6cbaf565fd6b05719c3405ef72a5398a1989565cefa9a93cc0c769ddd61283eac66f22ae2c1887a854fee9a2a9f8d5bf3e35eb6c6aa56e20653507 ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
Spring学习笔记
Spring学习笔记Spring基础@SpringBootApplication注解@SpringBootApplication注解表明这是一个SpringBoot应用,同时,它也是一个组合注解:
@SpringBootConfiguration:将该类声明为配置类。尽管这个类还没有太多的配置,但是后续我们可以按需添加基于Java的Spring框架配置。这个注解实际上是@Configuration注解的特殊形式。
@EnableAutoConfiguration:启用Spring Boot的自动配置。我们随后会介绍自动配置的更多功能。就现在来说,我们只需要知道这个注解会告诉SpringBoot自动配置它认为我们会用到的组件。
@ComponentScan:启用组件扫描。这样我们能够通过像@Component、@Controller、@Service这样的注解声明其他类,Spring会自动发现它们并将它们注册为Spring应用上下文中的组件。
测试方法
使用Spring Initializr生成的SpringBoot项目,会自动生成空测试方法(自己也可以创建一个空测试方法)。空测试类 ...