json 和 class 互转

json to object import json from types import SimpleNamespace data = '{"name": "John Smith", "hometown": {"name": "New York", "id": 123}}' # Parse JSO

iohannes iohannes Published on 2025-03-13

jupyter notebook

安装运行 pip install notebook 配置 nano ~/.jupyter/jupyter_notebook_config.py c.NotebookApp.ip = '0.0.0.0' # listen on all IPs 运行所有设备登录 c.NotebookApp.toke

iohannes iohannes Published on 2025-03-12

jvm 伪共享

cpu 缓存 当 CPU 执行运算的时候,它先去 L1 查找所需的数据,再去 L2,然后是 L3,最后如果这些缓存中都没有,所需的数据就要去主内存

iohannes iohannes Published on 2025-03-12

kill process by name

杀死包含amarok这个词的所有进程 ps aux | grep -ie amarok | awk '{print $2}' | xargs kill -9

iohannes iohannes Published on 2025-03-12

lstm常见参数解释

torch::randn torch.randn(size) torch.randn(row, col) torch.randn(batch_size, sequence_length, input_features) batch_size = row sequence_length = col i

iohannes iohannes Published on 2025-03-12

mujoco建模MJCF

body body被用来构造运动学树,并且是其他元素的容器,包括geom和site。body有一个空间框架,惯性属性,但没有性质相关的外观或碰撞几何。在每Ç

iohannes iohannes Published on 2025-03-12

mujoco的xml文件简介

整体示例 <mujoco model="example"> <include file="h1.xml" /> <visual> <headlight diffuse="0.6 0.6 0.6" ambient="0.3 0.3 0.3" specular="0 0 0" />

iohannes iohannes Published on 2025-03-12

mysql 表名大小写不敏感

彻底删除mysql service mysql stop killall -KILL mysql mysqld_safe mysqld apt --yes purge mysql-server mysql-client apt --yes autoremove --purge apt autocle

iohannes iohannes Published on 2025-03-12

mysql索引简介

常见索引机制 哈希表 以键值对存储数据的结构,缺点会发生hash突出,后面跟着的链表和数组,使得哈希表结构Ű

iohannes iohannes Published on 2025-03-12

nio

io 演进 bio(blocking I/O), 阻塞io, 面向流的处理数据, 一直等待系统io的完成 nio(non-blocking I/O), 非阻塞io, 面向块(缓冲区)处理数据, 轮询所有IO操作的状态改变, 底&

iohannes iohannes Published on 2025-03-12
Previous Next