GRUB 主题设置
在 /etc/default/grub.cfg 配置好主题后,重启不生效。 经查询发现,需要使用 grub-install 命令重新安装引导 1sudo grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=Archlinux --recheck 运行命令后,生成的 efi 文件位置不对。更改为 1sudo grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Archlinux --recheck 重新运行后,再更新 grub.cfg 1grub-mkconfig -o /boot/grub/grub.cfg 再次重启后,成功加载壁纸和主题。
Test
你是刷 Visa 还是 UnionPay { "type": "radar", "data": { "labels": [ "Eating", "Drinking", "Sleeping", "Designing", "Coding", "Cycling", "Running" ], "datasets": [ { "label": "My First Dataset", "data": [65, 59, 90, 81, 56, 55, 40], "fill": true, "backgroundColor": "rgba(255, 99, 132, 0.2)", "borderColor": "rgb(255, 99, 132)", "pointBackgroundColor": "rgb(255, 99, 132)", "pointBorderColor": "#fff", "pointHoverBackgroundColor": "#fff", "pointHoverBorderColor": "rgb(255, 99,...
Blender Python API (0)
我们习惯于在二维平面上描绘数据的世界。 过去很长一段时间,我像许多数据工作者一样,依赖着 Python 的 Matplotlib、Julia 的 Makie 等优秀传统框架。 我曾为它们绘制出精美的散点图、热力图、动态折线图而欣喜,也曾为了在有限的平面空间里,绞尽脑汁地展现高维数据的结构、捕捉复杂系统中的动态关系、或者让网络拓扑中的关键连接一目了然而感到力不从心。 我想是时候做出改变了。 三天前,我在查找 Blender 的入门资料时,偶然翻到了一篇介绍 Blender Python API 的文档 —— 那一刻我才意识到,这就是我真正想要的突破口。 它不仅能用代码塑造几何形体,还能操控材质、光影、动画乃至物理模拟。 在接下来的系列文章里,我们将逐步探索 Blender Python API 的强大潜力,欣赏它如何将冰冷的数据,转化为充满魅力的三维叙事。
Blender Python API (1)
创建几何体 a2+b2=c2a^2 + b^2 = c^2 a2+b2=c2 几何体接口 123def cube(size: float, location: tuple): bpy.ops.mesh.primitive_cube_add(size=size, location=location) return bpy.context.active_object 猴头模型 123456789101112def monkey(size: float = 2.0, location: tuple = (0, 0, 0)): """ 创建一个猴头 (Suzanne) 模型。 :param size: 猴头的大小。 :param location: 猴头的位置 (x, y, z)。 :return: 新创建的 bpy.types.Object。 """ # 使用 primitive_monkey_add 操作符 bpy.ops.mesh.primitive_monkey_add(size=size,...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick Start Create a new post 1hexo new "My New Post" More info: Writing Run server 1$ hexo server More info: Server Generate static files 1$ hexo generate More info: Generating Deploy to remote sites 1$ hexo deploy More info: Deployment