<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>围城</title><link>https://tomwei7.com/</link><description>Recent content on 围城</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><managingEditor>tomwei7g@gmail.com (weicheng)</managingEditor><webMaster>tomwei7g@gmail.com (weicheng)</webMaster><copyright>2021 Tomwei7 All rights reserved</copyright><lastBuildDate>Tue, 03 May 2022 16:16:19 +0800</lastBuildDate><atom:link href="https://tomwei7.com/index.xml" rel="self" type="application/rss+xml"/><item><title>在 Docker 中构建扁平化容器网络</title><link>https://tomwei7.com/2022/05/03/docker-macvlan-network/</link><pubDate>Tue, 03 May 2022 16:16:19 +0800</pubDate><author>tomwei7g@gmail.com (weicheng)</author><guid>https://tomwei7.com/2022/05/03/docker-macvlan-network/</guid><description>💡 网上有很多关于 k8s 偏平化网络建设的文章，大多针对于大规律的集群。但是现在也有很多人在 NAS 或者家庭服务器中也会使用 Docker 部署服务，本文主要介绍如何使</description></item><item><title>Ceph BlueStore 实现 - Allocator</title><link>https://tomwei7.com/2022/02/17/ceph-bluestore-allocator/</link><pubDate>Thu, 17 Feb 2022 00:00:00 +0000</pubDate><author>tomwei7g@gmail.com (weicheng)</author><guid>https://tomwei7.com/2022/02/17/ceph-bluestore-allocator/</guid><description>背景 BlueStore 是 ceph 的新一代高性能 OSD 存储引擎用于取代以前的 FileStore。BlueStore 不像 FileStore 那样需要依赖文件系统而且选择绕过文件系统直接操作</description></item><item><title>QEMU 网络配置</title><link>https://tomwei7.com/2021/10/09/qemu-network-config/</link><pubDate>Sat, 09 Oct 2021 00:00:00 +0000</pubDate><author>tomwei7g@gmail.com (weicheng)</author><guid>https://tomwei7.com/2021/10/09/qemu-network-config/</guid><description>QEMU 是一款开源的通用模拟器被用于各式各样的虚拟化场景。QEMU 不同于我们常用的 VirtualBox 或者 VMware 之类的软件，QEMU 并没有提供图形化的配置工具，一般都是</description></item><item><title>Intel Optane (傲腾) 工作原理</title><link>https://tomwei7.com/2021/01/27/how-intel-optane-work/</link><pubDate>Wed, 27 Jan 2021 00:00:00 +0000</pubDate><author>tomwei7g@gmail.com (weicheng)</author><guid>https://tomwei7.com/2021/01/27/how-intel-optane-work/</guid><description>最近（2021年一月份）因特尔宣布停产消费级傲腾产品。在老玩家眼里傲腾一直是最强 SSD 的存在，傲腾的 4K 性能可以说是一骑绝尘，但是傲腾的价格在 SSD 中</description></item><item><title>Jetson Nano USB Boot 配置</title><link>https://tomwei7.com/2021/01/25/jetson-nano-usb-boot/</link><pubDate>Mon, 25 Jan 2021 00:00:00 +0000</pubDate><author>tomwei7g@gmail.com (weicheng)</author><guid>https://tomwei7.com/2021/01/25/jetson-nano-usb-boot/</guid><description>Jetson Nano 是 NVIDIA 推出的 Aot 嵌入式平台，拥有 4 核心主频 1.43GHZ 的 Cortex-A57 CPU 和128组472GFLOPS （FP16）的Maxwell架构 GPU 以及 4GB LPDDR4 内存。 配置十分强大，</description></item><item><title>记一次 ImageMagick jpeg 缩放性能调优</title><link>https://tomwei7.com/2020/10/11/imagemagick-tuning/</link><pubDate>Sun, 11 Oct 2020 00:00:00 +0000</pubDate><author>tomwei7g@gmail.com (weicheng)</author><guid>https://tomwei7.com/2020/10/11/imagemagick-tuning/</guid><description>由于同事了调岗，接手了一个简单的缩略图服务，大佬看之前的代码过于混(la)乱(ji)大手一挥带着我们用 C++ 重构了这个服务，故事就发生在新服务上</description></item><item><title>9102 年在国内如何快速的下载 Docker 镜像, 现存 Docker 镜像源横评</title><link>https://tomwei7.com/2019/07/12/how-to-pull-docker-image-fast-in-china/</link><pubDate>Fri, 12 Jul 2019 00:00:00 +0000</pubDate><author>tomwei7g@gmail.com (weicheng)</author><guid>https://tomwei7.com/2019/07/12/how-to-pull-docker-image-fast-in-china/</guid><description>&lt;p>Docker 从 2013 发布一直广受瞩目，但是随着 k8s 等项目的发展，Docker Swarm 的失败，Docker 作为一个底层的容器运行时越来越边缘化，而且随着例如 &lt;a href="github.com/rkt/rkt">rkt&lt;/a>, &lt;a href="https://github.com/alibaba/pouch">pouch&lt;/a> 等项目的出现，Docker 作为底层容器运行时的地位也在受到挑战。&lt;/p>
&lt;p>但是就目前来说 Docker 仍然是开发者快速部署开发依赖的最好选择，而且但是即使 Docker 不在了，Docker Image 也将作为一个标准的容器镜像格式保留下来。但是 2018 年低 Docker 却悄悄关掉了 Docker CN 中国的镜像源，众所周知国内的网络非常复杂，访问国外网站极其缓慢。所以这里对目前现存的几个 Docker 镜像源进行横评，为大家选择镜像源提供参考。&lt;/p>
&lt;h3 id="主要对以下五个镜像源进行测试">主要对以下五个镜像源进行测试&lt;/h3>
&lt;p>&lt;a href="https://github.com/Azure/container-service-for-azure-china/blob/master/aks/README.md#22-container-registry-proxy">Azure 中国镜像 &lt;code>https://dockerhub.azk8s.cn&lt;/code>&lt;/a>&lt;/p>
&lt;p>&lt;a href="https://cr.console.aliyun.com/cn-hangzhou/mirrors">阿里云加速器 (需要登录阿里云账户)&lt;/a>&lt;/p>
&lt;p>&lt;a href="https://kirk-enterprise.github.io/hub-docs/#/user-guide/mirror">七牛云加速器 &lt;code>https://reg-mirror.qiniu.com&lt;/code>&lt;/a>&lt;/p>
&lt;p>&lt;a href="https://mirrors.ustc.edu.cn/help/dockerhub.html">中科大镜像源&lt;/a>&lt;/p>
&lt;p>&lt;a href="https://www.daocloud.io/mirror">DaoCloud 加速器&lt;/a>&lt;/p></description></item><item><title>Golang切片使用与内部实现(翻译)</title><link>https://tomwei7.com/2016/12/27/go-slices-usage-and-internals/</link><pubDate>Tue, 27 Dec 2016 00:00:00 +0000</pubDate><author>tomwei7g@gmail.com (weicheng)</author><guid>https://tomwei7.com/2016/12/27/go-slices-usage-and-internals/</guid><description>&lt;p>Golang的切片类型提供了一种简单高效的操作序列化类型数据的方式。切片和其他语言中的数组类似，不过含有一些特殊的属性。这篇文章我们就来看一下什么是切片和如何使用切片&lt;/p></description></item><item><title>一种回溯的解数独算法</title><link>https://tomwei7.com/2016/08/21/sudoku/</link><pubDate>Sun, 21 Aug 2016 00:00:00 +0000</pubDate><author>tomwei7g@gmail.com (weicheng)</author><guid>https://tomwei7.com/2016/08/21/sudoku/</guid><description>&lt;p>数独是一种逻辑性的数字填充游戏，玩家须以数字填进每一格，而每行、每列和每个宫（即3x3的大格）有齐1至9所有数字。游戏设计者会提供一部分的数字，使谜题只有一个答案。&lt;/p>
&lt;p>&lt;p class="md__image">
&lt;img src="https://tomwei7.com/2016/08/21/sudoku/Sudoku-by-L2G-20050714.svg" alt="一个经典的数独题" />
&lt;/p>
&lt;/p></description></item><item><title>洗牌算法</title><link>https://tomwei7.com/2016/03/18/fisher-yates-shuffle/</link><pubDate>Fri, 18 Mar 2016 00:00:00 +0000</pubDate><author>tomwei7g@gmail.com (weicheng)</author><guid>https://tomwei7.com/2016/03/18/fisher-yates-shuffle/</guid><description>&lt;p>洗牌算法是一个比较形象的术语，本质上是让一个数组内的元素随机排列。刚在&lt;a href="https://segmentfault.com/">segmentfault&lt;/a>看到这样一个问题&lt;a href="https://segmentfault.com/q/1010000004628428">10万个数字无序排列&lt;/a>，也就是洗牌了。&lt;/p></description></item></channel></rss>