无事水,但要|

Nolca

园龄:6年9个月粉丝:12关注:9

随笔分类 -  开发

用python做配置文件
摘要:受zig语言启发,图灵完备的配置文件可能是个不错的选择,只要严格限制权限就行。 用importlib 目标: 禁止二次导入,去除import语句 提供模块白名单、黑名单 import ast from sys import meta_path from importlib.abc import Lo
1
0
0
linux bash/zsh/sh 如何查找谁添加了重复项到$PATH
摘要:在 ~/.bashrc 首行前添加: set -x export ORIGINAL_PATH="$PATH" function check_path_change() { if [[ "PATH"!="ORIGINAL_PATH" ]]; then echo "PATH has change
3
0
0
程序网格: 分解立方体
摘要:https://ilkinulas.github.io/development/unity/2016/04/30/cube-mesh-in-unity3d.html https://www.youtube.com/watch?v=bnmr_At2R0s 给定一个点,围绕点生成一个正方体。 规定顶点顺
8
0
0
.git/objects/pack下pack文件很大,但是目前仓库并没有大文件
摘要:git秉承“代码安全为主”,每一次commit都会硬性做备份。 之前我使用自己的脚本 #!/bin/bash #set -x usage() { echo "Usage: $0 [path] [lines]" echo " path: local git repository" echo " lin
75
0
0
systemd edit后如何消除Warning
摘要:症状 > sudo systemctl start mihayo.service Warning: The unit file, source configuration file or drop-ins of mihayo.service changed on disk. Run 'systemc
23
0
0
python 与 java的不同
摘要:语法 类class public class Puppy { private int age; private String name; public List[Puppy] puppys; // 构造函数,初始化实例 public Puppy(String name) { this.name =
5
0
0
游戏开发入门指引
摘要:推荐课程 底层向 GAMES 101/202... + openGL迷你渲染器tinyRender + 补充笔记 【双语】【TheCherno】游戏引擎 笔记 旋转是特殊的剪切 blender Lesson 3 变换矩阵 模拟 L3.blend.zip,记得去掉.zip后打开 ui_L3.py备份,
23
0
0
python taichi 加速 dither仿色抖动算法
摘要:教程 9种dither算法与历史发展 最开始是如何生成bayer矩阵 wiki: bayer有序抖动 python生成任意规模bayer矩阵 知乎:dither启发的艺术效果,半调/柱形 taichi ndarray文档 CSDN dither算法 理解bayer矩阵 因为bayer矩阵要平铺,所以
66
0
0
Temple OS源码研究
摘要:博客:源码解读 TOS源码: https://github.com/cia-foundation/TempleOS 启动过程: https://minexew.github.io/2020/02/27/templeos-loader-part1.html 建设性看法:http://www.coder
15
0
0
配置adguard home
摘要:53端口冲突 解决:adguard使用别的端口,如54 sudo lsof -i :53 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME dnsmasq 1664 lxc-dnsmasq 6u IPv4 16640 0t0 UDP DESKTOP
34
0
0
python 浅拷贝、深拷贝坑
摘要:今天在写python脚本,发现 I=[[0,0],[0,0]] a=I.copy() a[0][0]=1 print(a,I) 结果: [[1, 0], [0, 0]] [[1, 0], [0, 0]] 因为copy()拷贝得还不够深 解决方法 import copy import copy a =
1
0
0
各类常用镜像加速配置
摘要:~/.cargo/config.toml [source.crates-io] registry = "https://github.com/rust-lang/crates.io-index" replace-with = 'fast' [source.tuna] registry = "http
12
0
0
Safari Webkit, NotAllowedError: The request is not allowed
摘要:使用tauri v2,跑前后端项目学习时,遇到这条报错: Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current
224
0
0
重启后,idea 依赖爆红
摘要:没改动代码,但无法运行java项目 java: -source 1.5 中不支持……表达式/运算符 java: 错误: 不支持发行版本 5 解决:https://www.cnblogs.com/liu-han/p/16105953.html 文件→项目结构,SDK和项目/模块 语言级别的版本要一致
6
0
0
数据库用途分类
摘要:https://www.youtube.com/watch?v=W2Z7fbCLSTw 代表 类型 描述 使用场景 持久 mysql 关系 有join,强一致性 金融、电商 ✅ mongoDB 文档 无join,高性能、高扩展性和灵活数据 日志分析、物联网;大文件推荐用对象存储,如Minio ✅ r
15
0
0
报错时,考虑“版本命名一致性”
摘要:安装paddleocr时报错: C++ Traceback (most recent call last): 0 paddle_infer::Predictor::Predictor(paddle::AnalysisConfig const&) 1 std::unique_ptr<paddle::P
133
0
0
python threading 线程原理实验
摘要:原理 进程之间,编程语言可以不同,内存不共享。需要用socket/IRC/RPC等技术实现进程间通信 线程之间,编程语言必须相同,内存共享。类变量self.xxx共享,分叉target的函数内变量private不共享。 现象 fork自己的fork,fork内的代码执行速度呈指数型增长。 代码 #!
12
0
0
#!Shebang妙用
摘要:激活conda环境 #! /usr/bin/env -S conda run --live-stream -n my_env python https://stackoverflow.com/questions/41914739/how-do-i-activate-a-conda-env-in-a-
15
0
0
git clone 网络太差总是失败:error: RPC 失败。curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
摘要:❯ git clone https://github.com/Almamu/linux-wallpaperengine.git . 正克隆到 '.'... remote: Enumerating objects: 6271, done. remote: Counting objects: 100%
2927
0
0
容器化/环境隔离 常用软件
摘要:容器 docker podman docker的无root实现 containerd Buildah docker build 替代 环境隔离 大量独立与apt的依赖会占用您的磁盘空间,如果您不介意的话。 二进制bin程序 brew brew install podman 一些apt版本滞后的cli
28
0
0
点击右上角即可分享
微信分享提示
深色
回顶
收起
  1. 1 ⏩intro 山姆精
  2. 2 🎸吉他 马叉
  3. 3 ☁升调 山姆精
  4. 4 🐦Flutter Virtual Riot/Madi
  5. 5 🎶纯律 山姆精
  6. 6 👻yeah~Color Bass! VR
🎸吉他 - 马叉
00:00 / 00:00
An audio error has occurred, player will skip forward in 2 seconds.