会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
rincloud
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
11
下一页
2025年1月9日
golang if作用域
摘要: package main import ( "fmt" ) func main() { x := 0 if x := test(); x < 0 { fmt.Println("first") fmt.Println(x) } else { fmt.Println("second") fmt.Prin
阅读全文
posted @ 2025-01-09 10:48 rincloud
阅读(36)
评论(0)
推荐(0)
2024年12月25日
runc-sandboxer 进程树
摘要: 进程树 root 33194 0.0 0.0 1166232 9472 pts/5 Sl 23:51 0:00 | | \_ runc-sandboxer --listen /run/runc-sandboxer.sock --dir /run/kuasar-runc root 33195 0.0
阅读全文
posted @ 2024-12-25 23:56 rincloud
阅读(55)
评论(0)
推荐(0)
2024年11月7日
golang oom监控实现
摘要: package main import ( "bytes" "fmt" "io/ioutil" "os" "golang.org/x/sys/unix" ) func main(){ var events [128] unix.EpollEvent var buf [8]byte //unix.EF
阅读全文
posted @ 2024-11-07 18:35 rincloud
阅读(85)
评论(0)
推荐(0)
2024年10月11日
RUST Some None 和OK
摘要: Rust 的 Option 类型是一个枚举,有两个变体:Some 和 None ,表示值存在和不存在。 Result是一个枚举(enum),有两个变体:Ok和Err, 表示错误类型为空和err
阅读全文
posted @ 2024-10-11 15:43 rincloud
阅读(119)
评论(0)
推荐(0)
2024年6月24日
intellij rust 安装 不用 RustRover
摘要: 下载idea rust 插件:https://plugins.jetbrains.com/plugin/8182--deprecated-rust 下载idea:https://www.jetbrains.com/zh-cn/idea/download/other.html qt.qpa.scree
阅读全文
posted @ 2024-06-24 13:44 rincloud
阅读(243)
评论(0)
推荐(0)
2024年6月21日
rust 常用命令
摘要: # cargo Cargo是Rust的包管理器,它可以帮助开发者轻松地构建、依赖管理和打包 Rust 项目。以下是一些常用的Cargo指令: cargo new:创建一个新的 Rust 项目cargo build:编译当前项目cargo run:编译并运行当前项目cargo test:运行测试套件c
阅读全文
posted @ 2024-06-21 22:10 rincloud
阅读(560)
评论(0)
推荐(0)
2024年5月27日
Rust中的iter(), into_iter(), iter_mut()
摘要: 在Rust中,iter(), into_iter(), iter_mut()都是用于在集合类型上创建迭代器的方法。这三个方法各有不同,下面一一进行介绍。 iter(): iter() 方法创建一个不可变的引用迭代器。当你只想读取集合中的元素,而不想改变它们或消耗集合时,应使用 iter()。iter
阅读全文
posted @ 2024-05-27 15:17 rincloud
阅读(817)
评论(0)
推荐(0)
2024年2月25日
docker使用btrfs存储驱动
摘要: ubuntu22 环境 1.dd if=/dev/zero of=btrfs.img bs=1m count=20002.losetup /dev/loop16 btrfs.img3.apt install btrfs-progs4.mkfs.btrfs -f /dev/loop165.mount
阅读全文
posted @ 2024-02-25 21:21 rincloud
阅读(186)
评论(0)
推荐(0)
2024年2月4日
containerd 镜像层分析
摘要: meta.db找到 d842e8e2623636b8fb0d070a2dd9592c1eb0ebfa975c6a283960bc1f710feab4 mediatype: application/vnd.docker.distribution.manifest.v2+json 多种类型 applic
阅读全文
posted @ 2024-02-04 23:31 rincloud
阅读(244)
评论(0)
推荐(0)
2023年12月15日
python3 操作csv
摘要: https://blog.csdn.net/m0_46483236/article/details/109583685 1. python中创建新的csv文件(1). 使用csv.writer()创建:代码如下: import csv headers = ['学号','姓名','分数']rows =
阅读全文
posted @ 2023-12-15 18:15 rincloud
阅读(199)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
11
下一页
公告