Featured image of post Weekly Report 2023.24

Weekly Report 2023.24

Know your disadvantage

What is real life.

# Entertainment

# Elden Ring

逃课打法究竟代表着什么呢?或者说,玩游戏这件事本身究竟是什么呢?

# Learning

# Protobuf with Prost and Rust

Simply using prost as serde.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use prost::Message;

#[derive(Clone, PartialEq, Message)]
struct Person {
    #[prost(string, tag = "1")]
    name: String,
    #[prost(int32, tag = "2")]
    age: i32,
    #[prost(string, repeated, tag = "3")]
    phones: Vec<String>,
    #[prost(string, optional, tag = "4")]
    address: Option<String>,
}

fn main() {
    let mut person = Person {
        name: "Alice".to_string(),
        age: 30,
        phones: vec!["123456789".to_string()],
        address: None,
    };

    let mut buf = Vec::new();
    person.encode(&mut buf).unwrap();
    println!("buf: {:?}", buf);

    let decoded_person = Person::decode(&buf[..]).unwrap();
    println!("decoded_person: {:?}", decoded_person);
}

# Life

Gaming all day long.

# Thought

不以物喜、不以己悲;少点同情吧。

# Quotation

莎士比亚出现的时候,戏剧这种文艺体裁才刚发展起来,专门表演戏剧的场所“戏院”才刚刚诞生。他把戏剧这种艺术形式提升到一个难以企及的高度,让后世的每一个剧作家都不得不生活在他的阴影之中。

# Recommendation

# the echo

要么成功,要么躺平,这不是我所认可的人生观,而且我认为成功和躺平本身就是一回事,生命本身也不应该只有两个选项做二选一。活在二元对立概念里本身是一种不自由,人生应该有更多选项才对,生命的自我实现方式应该有更多可能才对。在时代一切顺遂时,不要迷失自我,变得骄横自大,目空一切。在世道艰难谋生不易时,反而需要对生命充满热诚,在世俗定义的成败之外找寻更多生活的意义。如此,人才不是吊在空中的葫芦,随风飘荡,来回摇摆。

# 维护名誉

  1. 保持镇定,别试图挣脱逃跑;
  2. 大声否认:我没有,你应该是误会了;
  3. 主动报警,之后待在监控能看到的地方,避免触碰手机;
  4. 证明清白后请对方留下书面的情况说明,别纠结道歉。

# References

Licensed under CC BY-NC-SA 4.0
Last updated on Jun 19, 2023 09:16 CST
The older I get, the more I realize that most of life is a matter of what we pay attention to, of what we attend to [with focus].
Built with Hugo
Theme Stack designed by Jimmy