小米盒子 4c/4s 精简去广告

1. 准备工作 精简固件可以不刷, 小米盒子一般只要卸载应用就可以去掉所有广告了, 直接调到第3章 小米盒子4/4c usb双公头线(刷固件用) pc pc线刷使用软件, 驱动和固件 YesStbTool_Secure_test20191027 # 无线连接+adb Amlogic USB Burning Tool_v2.1.6.8 # 烧录固件用 libusb0.dll # 可能需要的驱动, usb驱动 InstallDriver_Worldcup.exe # 可能需要的驱动 MiBOX4_YQZM2_root_aml_upgrade_package20200808.img # 使用的精简固件 ...

2023年4月21日 · 2 分钟 · sun510001

TrueNas初期配置

0. 微超主板登陆 超微主板使用配置 ipmi 功能流程介绍 用户名和密码都是: ADMIN 可以在配置-用户中更改密码 设置时间 显示画面 在远程控制中找到iKVM/HTML5, 可以启动远程管理服务器, 在网页端直接看到开机时显示的bios等画面, 就不需要外接显示器了. ...

2023年4月19日 · 9 分钟 · sun510001

ゼルダの伝説 ティアーズ オブ ザ キングダム

ゼルダの伝説 ティアーズ オブ ザ キングダム : WORLD | Nintendo Switch | 任天堂

2023年3月28日 · 1 分钟 · sun510001

威联通QNAP Nas 搭建Gitea代码托管平台

1. 安装Gitea镜像 qnap Container Station - 创建 - 创建应用程序(yaml文件, 与docker compose文件建立docker container完全相同) version: '3.3' services: gitea_db: image: mysql:5.7 container_name: gitea_db restart: always environment: MYSQL_DATABASE: gitea MYSQL_ROOT_PASSWORD: [mysql root password] MYSQL_USER: gitea MYSQL_PASSWORD: [mysql root password] volumes: - db_data:/var/lib/mysql_gitea ports: - "[host sql port for sql container]:3306" networks: - gitea-network gitea_app: depends_on: - gitea_db image: gitea/gitea container_name: gitea_app restart: always ports: - "[host ssh port for gitea container]:22" - "[host http port for gitea container]:3000" volumes: - [gitea config and data path in nas]:/data networks: - gitea-network volumes: db_data: app_data: networks: gitea-network: driver: "bridge" 1.1. gitea install配置参考 如果sql服务器中没有保存以前的gitea配置, 首次打开gitea页面会显示安装配置 ...

2023年3月27日 · 2 分钟 · sun510001

火绒阻止 windows 更新

打开火绒设置-安全设置-高级防护-自定义防护-添加规则, 添加保护对象, 阻止该路径下所有文件操作. C:\Windows\SoftwareDistribution\Download\*

2023年3月9日 · 1 分钟 · sun510001

梯度下降法介绍

什么是梯度下降法? - 知乎 [论文阅读] 综述梯度下降优化算法 最小二乘问题的四种解法——牛顿法,梯度下降法,高斯牛顿法和列文伯格-马夸特法的区别和联系 1. 梯度下降 梯度下降法用来计算函数的最小值. 1.1. 二维函数梯度下降 比如需要计算函数 $f(x)=x^2$ 的最小值, 如果不从经验上获知其最小值, 如何通过迭代来计算呢? ...

2023年3月9日 · 2 分钟 · sun510001

ELDEN RING DLC「Shadow of the Erdtree」

ELDEN RING オフィシャルウェブサイト

2023年2月28日 · 1 分钟 · sun510001

最小二乘拟合函数

最小二乘法合函数的公式 使用最小二乘法拟合函数需要前置条件 设定多项式的阶数 $n$ 存在大于多项式阶数的点坐标 $((x_1,y_1), (x_2,y_2), ..., (x_k,y_k))$ 最小二乘拟合公式 $$ \begin{bmatrix} (\varphi_0,\varphi_0) & (\varphi_0,\varphi_1) & ... & (\varphi_0,\varphi_n)\\ (\varphi_1,\varphi_0) & (\varphi_1,\varphi_1) & ... & (\varphi_1,\varphi_n)\\ & &... \\ (\varphi_n,\varphi_0) & (\varphi_n,\varphi_1) & ... & (\varphi_n,\varphi_n)\end{bmatrix}\begin{bmatrix}a_0 \\ a_1 \\ ... \\ a_n\end{bmatrix}=\begin{bmatrix}(f,\varphi_0) \\(f,\varphi_1) \\ ... \\(f,\varphi_n) \end{bmatrix} $$ 其中括号的含义是矩阵内元素逐个相乘之和; $\varphi_n$ 是所有点坐标的 $x$ 坐标的 $n$ 次方; $a_n$ 是多项式每一阶前的参数, 从 0 开始增大; $f$ 表示所有点坐标的 $y$ 坐标; 最终可以获得 $n$ 个包含 $a_n$ 的公式, 计算公式即可算出 $a_0,a_1,...,a_n$ 参数, 从而拟合多项式. ...

2023年2月3日 · 1 分钟 · sun510001

OpenCV三角测量原理公式

1. 共线原理 双相机立体重建时, 利用物体点-光心-像点三者共线的原理, 在找到左右匹配的像点并且完成去畸变之后, 就能够在三维空间中形成两条直线, 物体点就是这两个直线的交点. 交点指最小二乘交点, 因为这两个直线由于偏差通常不会交于一点. 共线方程描述了物体点-光心-像点三者共线的含义, 也相当于三维点到二维点的投影过程, 该投影过程可表达为 $$ \left[\begin{array}{l}\mathrm{x}_{\mathrm{c}} \\\mathrm{y}_{\mathrm{c}} \\\mathrm{z}_{\mathrm{c}}\end{array}\right]=\left[\begin{array}{llll}\mathrm{R}_{11} & \mathrm{R}_{12} & \mathrm{R}_{13} & \mathrm{~T}_{\mathrm{x}} \\\mathrm{R}_{21} & \mathrm{R}_{22} & \mathrm{R}_{23} & \mathrm{~T}_{\mathrm{y}} \\\mathrm{R}_{31} & \mathrm{R}_{32} & \mathrm{R}_{33} & \mathrm{~T}_{\mathrm{z}}\end{array}\right]\left[\begin{array}{c}\mathrm{x}_{\mathrm{w}} \\\mathrm{y}_{\mathrm{w}} \\\mathrm{z}_{\mathrm{w}} \\1\end{array}\right] \quad\quad \text{(1)} $$ ...

2023年2月2日 · 1 分钟 · sun510001

Notion formula 表格中自动计算日期完成度的进度条和任务完成的进度条

用途 计算表格中开始日期和结束日期, 显示经过了几天, 还有几天结束, 经过天数和总天数的百分比 计算Done和Total列的数值(任务完成的值和总值), 计算任务完成度, 显示任务完成了多少 代码 使用时, 删除缩进和换行. 使代码变为1行复制到表格Formula列. 注意替换列名 vscode里删除缩进和换行→按ctrl+shift+h替换→正则模式\n| 替换为空. "进度: " + format(slice("::::::::::::::::::::::::::::::::::::::::", 0, ceil(prop("Done") / prop("Total") * 40))) + format(slice("........................................", 0, 40 - ceil(prop("Done") / prop("Total") * 40))) + " " + format(round(prop("Done") / prop("Total") * 100)) + "%" + "\n日期: " + if( empty(start(prop("Date"))), "........................................ 经过-天 还有-天结束 -%", if( start(prop("Date")) == end(prop("Date")), "........................................ 经过" + format(dateBetween(now(), start(prop("Date")), "days")) + "天 还有-天结束 -%", if( start(prop("Date")) > now(), "........................................ 还有" + format(dateBetween(start(prop("Date")), now(), "days")) + "天开始 还有" + format(dateBetween(end(prop("Date")), now(), "days")) + "天结束 -%", if( dateBetween(now(), start(prop("Date")), "days") < dateBetween(end(prop("Date")), start(prop("Date")), "days"), format(slice("::::::::::::::::::::::::::::::::::::::::", 0, floor(dateBetween(now(), start(prop("Date")), "days") / dateBetween(end(prop("Date")), start(prop("Date")), "days") * 40))) + format(slice("........................................", 0, 40 - floor(dateBetween(now(), start(prop("Date")), "days") / dateBetween(end(prop("Date")), start(prop("Date")), "days") * 40))) + " 经过" + format(dateBetween(now(), start(prop("Date")), "days")) + "天" + " 还有" + format(dateBetween(end(prop("Date")), now(), "days")) + "天结束" + " " + format(round(dateBetween(now(), start(prop("Date")), "days") / dateBetween(end(prop("Date")), start(prop("Date")), "days") * 100)) + "%", "::::::::::::::::::::::::::::::::::::::::" + " 用" + format(dateBetween(end(prop("Date")), start(prop("Date")), "days")) + "天 还有0天结束 100%" ) ) ) ) 一些常用函数 format: 转换为字符串 format(随便啥的) slice: 字符串切片 slice(str, 开始index, 结束index(取不到)) ceil: 小数取大于这个数的整数 ceil(1.1)=2 floor: 小数取小于这个数的整数 ceil(1.1)=1 round: 小数四舍五入 round(4.4) == 4 round(4.5) == 5 prop: 取某一列元素 prop("Date") 取日期那一列 end(prop("Date")), start(prop("Date")): 日期格式开始日期和结束日期(如果没有结束日期时, 默认结束日期等于开始日期) now(): 当前日期 dateBetween: 计算两个日期间的天数或月数 dateBetween(结束日期, 开始日期, ["days", "months", "years"]) if: if判断 if(判断条件, 如果为true运行代码, 如果为false运行代码) empty: 空返回true, 非空返回false 也可以将天数转换为年月日 需要修改下面代码 format(dateBetween(now(), start(prop("Date")), "days")) 改为 if( dateBetween(now(), start(prop("Date")), "years") > 0, format(dateBetween(now(), start(prop("Date")), "years")) + "年", "" ) + if( dateBetween(now(), start(prop("Date")), "months") > 0, format(dateBetween(now(), start(prop("Date")), "months") - dateBetween(now(), start(prop("Date")), "years") * 12) + "月", "" ) + if( dateBetween(now(), start(prop("Date")), "days") > 0, format(dateBetween(now(), start(prop("Date")), "days") - floor(dateBetween(now(), start(prop("Date")), "months") * 30.44)) + "天", "0天" ) 合并后 版本2 "进度: " + format(slice("::::::::::::::::::::::::::::::::::::::::", 0, ceil(prop("Done") / prop("Total") * 40))) + format(slice("........................................", 0, 40 - ceil(prop("Done") / prop("Total") * 40))) + " " + format(round(prop("Done") / prop("Total") * 100)) + "%" + "\n日期: " + if( empty(start(prop("Date"))), "........................................ 经过-天 还有-天结束 -%", if( start(prop("Date")) == end(prop("Date")), "........................................ 经过" + if( dateBetween(now(), start(prop("Date")), "years") > 0, format(dateBetween(now(), start(prop("Date")), "years")) + "年", "" ) + if( dateBetween(now(), start(prop("Date")), "months") > 0, format(dateBetween(now(), start(prop("Date")), "months") - dateBetween(now(), start(prop("Date")), "years") * 12) + "月", "" ) + if( dateBetween(now(), start(prop("Date")), "days") > 0, format(dateBetween(now(), start(prop("Date")), "days") - floor(dateBetween(now(), start(prop("Date")), "months") * 30.44)) + "天", "0天" ) + " 还有-天结束 -%", if( start(prop("Date")) > now(), "........................................ 还有" + if( dateBetween(start(prop("Date")), now(), "years") > 0, format(dateBetween(start(prop("Date")), now(), "years")) + "年", "" ) + if( dateBetween(start(prop("Date")), now(), "months") > 0, format(dateBetween(start(prop("Date")), now(), "months") - dateBetween(start(prop("Date")), now(), "years") * 12) + "月", "" ) + if( dateBetween(start(prop("Date")), now(), "days") > 0, format(dateBetween(start(prop("Date")), now(), "days") - floor(dateBetween(start(prop("Date")), now(), "months") * 30.44)) + "天", "0天" ) + "开始 还有" + if( dateBetween(end(prop("Date")), now(), "years") > 0, format(dateBetween(end(prop("Date")), now(), "years")) + "年", "" ) + if( dateBetween(end(prop("Date")), now(), "months") > 0, format(dateBetween(end(prop("Date")), now(), "months") - dateBetween(end(prop("Date")), now(), "years") * 12) + "月", "" ) + if( dateBetween(end(prop("Date")), now(), "days") > 0, format(dateBetween(end(prop("Date")), now(), "days") - floor(dateBetween(end(prop("Date")), now(), "months") * 30.44)) + "天", "0天" ) + "结束 -%", if( dateBetween(now(), start(prop("Date")), "days") < dateBetween(end(prop("Date")), start(prop("Date")), "days"), format(slice("::::::::::::::::::::::::::::::::::::::::", 0, floor(dateBetween(now(), start(prop("Date")), "days") / dateBetween(end(prop("Date")), start(prop("Date")), "days") * 40))) + format(slice("........................................", 0, 40 - floor(dateBetween(now(), start(prop("Date")), "days") / dateBetween(end(prop("Date")), start(prop("Date")), "days") * 40))) + " 经过" + if( dateBetween(now(), start(prop("Date")), "years") > 0, format(dateBetween(now(), start(prop("Date")), "years")) + "年", "" ) + if( dateBetween(now(), start(prop("Date")), "months") > 0, format(dateBetween(now(), start(prop("Date")), "months") - dateBetween(now(), start(prop("Date")), "years") * 12) + "月", "" ) + if( dateBetween(now(), start(prop("Date")), "days") > 0, format(dateBetween(now(), start(prop("Date")), "days") - floor(dateBetween(now(), start(prop("Date")), "months") * 30.44)) + "天", "0天" ) + " 还有" + if( dateBetween(end(prop("Date")), now(), "years") > 0, format(dateBetween(end(prop("Date")), now(), "years")) + "年", "" ) + if( dateBetween(end(prop("Date")), now(), "months") > 0, format(dateBetween(end(prop("Date")), now(), "months") - dateBetween(end(prop("Date")), now(), "years") * 12) + "月", "" ) + if( dateBetween(end(prop("Date")), now(), "days") > 0, format(dateBetween(end(prop("Date")), now(), "days") - floor(dateBetween(end(prop("Date")), now(), "months") * 30.44)) + "天", "0天" ) + "结束" + " " + format(round(dateBetween(now(), start(prop("Date")), "days") / dateBetween(end(prop("Date")), start(prop("Date")), "days") * 100)) + "%", "::::::::::::::::::::::::::::::::::::::::" + " 经过" + if( dateBetween(end(prop("Date")), start(prop("Date")), "years") > 0, format(dateBetween(end(prop("Date")), start(prop("Date")), "years")) + "年", "" ) + if( dateBetween(end(prop("Date")), start(prop("Date")), "months") > 0, format(dateBetween(end(prop("Date")), start(prop("Date")), "months") - dateBetween(end(prop("Date")), start(prop("Date")), "years") * 12) + "月", "" ) + if( dateBetween(end(prop("Date")), start(prop("Date")), "days") > 0, format(dateBetween(end(prop("Date")), start(prop("Date")), "days") - floor(dateBetween(end(prop("Date")), start(prop("Date")), "months") * 30.44)) + "天", "0天" ) + " 还有0天结束 100%" ) ) ) ) ...

2022年12月24日 · 6 分钟 · sun510001

威联通QNAP Nas 相关问题

Nas静音 威联通Nas买来之后每天3点都会自动开始一些计划任务, 关闭后晚上安静不少 关于计划任务的说明和操作在这里 Add items to crontab # ┌───────────── minute (0 - 59) # │ ┌───────────── hour (0 - 23) # │ │ ┌───────────── day of the month (1 - 31) # │ │ │ ┌───────────── month (1 - 12) # │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday; # │ │ │ │ │ 7 is also Sunday on some systems) # │ │ │ │ │ # │ │ │ │ │ # * * * * * <command to execute> 问题是执行sudo crontab /etc/config/crontab && sudo /etc/init.d/crond.sh restart 命令之后, 一些任务又会自动重置 0 3 * * * /sbin/vs_refresh 4 3 * * 3 /etc/init.d/backup_conf.sh 解决方法: 问题出在/etc/init.d/crond.sh 上, 修改之 ############# # 46行 echo "0 3 * * * /sbin/vs_refresh" >> /etc/config/crontab # 或者新版 46行 local time=$(/sbin/getcfg vs_refresh schedule -d '13:0') ############ # 88-97行 1) #once a day echo "4 13 * * * /etc/init.d/backup_conf.sh" >> /etc/config/crontab ;; 30) #once a month echo "4 13 3 * * /etc/init.d/backup_conf.sh" >> /etc/config/crontab ;; 7) #once a week echo "4 13 * * 3 /etc/init.d/backup_conf.sh" >> /etc/config/crontab ;; *) #for testing echo "*/3 * * * * /etc/init.d/backup_conf.sh" >> /etc/config/crontab ;; 重启nas可能会重置设置 需注意. ...

2022年11月16日 · 3 分钟 · sun510001

PS5/Switch DNS

目前好用的DNS # 较稳定 223.5.5.5 # 有时可以满速 168.126.63.1 168.126.63.2 # 可以尝试 34.80.2.188 PS5 如何修改DNS 另外, psn图片上传功能无法在挂代理的时候使用(可能是代理设定的dns的原因), 需要断开代理, 挂dns.

2022年10月1日 · 1 分钟 · sun510001