1. annotation tool:
https://github.com/wkentaro/labelme
2. convert the result from above tool to yolo format:
https://github.com/rooneysh/Labelme2YOLO
1. annotation tool:
https://github.com/wkentaro/labelme
2. convert the result from above tool to yolo format:
https://github.com/rooneysh/Labelme2YOLO
1. CDN setting:
加速域名:指用CDN加速的那个域名
CNAME:为CDN的域名,将加速域名映射到CDN域名
源站:为CDN从哪个源取资源
* DNS:
CNAME: 把域名解析到另一个域名
A记录: 把域名解析到IP地址
1. df -h
2. du -h --max-depth=1 | sort -hr
3. du -sh: the size of current path
solution:
pip uninstall opencv-python
pip install opencv-python-headless
Nextjs is the React("fullstack") Framework for production
React 注重在搭建用户的交互界面,而 Nextjs 是搭建在 React 之上的框架
React: "library" / Nextjs: "framework"
* server-side rendering
服务端渲染, SSR (Server-side Rendering) ,顾名思义,就是在浏览器发起页面请求后由服务端完成页面的 HTML 结构拼接,返回给浏览器解析后能直接构建出有内容的页面。
客户端渲染 ,CSR(Client Side Rendering),通俗的讲就是由客户端完成页面的渲染。其大致渲染流程是这样:在浏览器请求页面时,服务端先返回一个无具体内容的 HTML,浏览器还需要再加载并执行 JS,动态地将内容和数据渲染到页面中,才能完成页面具体内容的显示。
简而言之,SSR强在首屏渲染。而CSR强在用户和页面多交互的场景
* file-based routing
router: 仅根据监视url的变化,来呈现不同的网页,而没有向服务端发出新的请求
直接用文件目录来呈现router
* fullstack
可以直接访问数据库
* dynamic path:
* import { useRouter } from 'next/router'
useRouter这个库用来拿动态路由的内容
const router = useRouter()
router.query : 就是url的编码
* import { Link } from 'next/link'
link 用于跳转到另一个路由
<Link href="/clients/jack">Jack</Link>
点击就会跳转到 localhost:3000/clients/jack 而且用Link的好处是不会再发一次http请求
* 404 page:
创建404.js
Prisma Client: Auto-generated and type-safe query builder for Node.js & TypeScript (ORM)
Prisma Migrate: Migration system 管理数据库结构
Prisma Studio: GUI to view and edit data in your database.
0. git init (if didn't create git)
1. git add .
2. git commit -m "some comment"
3. git remote add origin "github repo ip address" (把repo加到 origin 这个标签上)
git branch -M main (-M 是move 重命名 把当前branch改为main 不一定要有)
git push -u origin main (把本地的main分支上传到origin对应的ip的main分支)
* git push 使用:
git push <远程主机名> <本地分支名>:<远程分支名>
(不写默认是同一个分支)
(git pull 是 <远程分支名>:<本地分支名>,即 <源>:<目的地>)
* git merge 使用:
git merge <分支名> 就是把 <分支名> merge 到当前分支
* git branch 使用:
** 查看所有的branch : git branch -a
** 复制branch : git branch -c <branch name>
** 删除branch : git branch -d <branch name>
** 创建branch : git checkout -b <branch name>
* error: remote origin already exists.
1. git remote -v: 查看现在连接的哪个repo
2. git remote rm origin: 删除原来的origin
3. git remote add origin "github repo ip address"
* 如果想回溯到某一个版本:
方法1: git reset --hard [commit id]
方法1 是退回到指定版本,并丢弃后面的提交
方法2: git checkout [commit id]
方法2 是迁出一个新分支
连接github:
当我要把我的分支合并到main分支上并提交:
1. 确认本地仓库最新:
git fetch origin
git checkout main
git pull origin main # 更新本地 main 分支到最新
git checkout your-branch-name
git pull origin your-branch-name # 更新本地工作分支到最新
2. 在本地 merge main 到 自己的分支:
git merge main