Tianke Youke

A Base for Secreting and Running at Night

0%

在这个目的、功利、简历至上的时代(这无可指摘),我所信奉的一种生活方式(懒惰主义/浪漫主义)是:在某些上不了台面/不足为外人道的兴致上持续投入精力。例如在自己建的小破网站写狗屁诗,读对本专业毫无用处的书,喝酒,玩单机游戏,等等。

2020.10.19

做人好难,人真的有连贯性和完整性吗,午睡前后心态会有重大变化,在客厅里和在卧室里觉得人生目标都不一样,支离破碎的一个人怎样勠力同心?

2021.1.28

过去我对生活的思考,似乎陷入「应然」的逻辑陷阱。平凡与不平凡应该追求哪个?深远的理想和肤浅的快乐应该追求哪个?物质和精神应该追求哪个?可是这些问题没有真正合乎理性的答案,因为人生是偶然的,生命是无意义的。倒是换个角度,恰好是从「实然」出发,生活实际过成什么样的,也就应该是什么样的。每一次做出行动的时候,背后并没有真正的理性来赋予它意义,倒不如说行动本身就是意义。所有的人生都是平等的,跟巨大的荒谬对抗而已。这样说还是太抽象,像是把加缪说的话汉译英再英译汉。最后试着举个例子,这个道理下,爱的本质就是,你要怎样,我们就怎样。

2021.2.17

阅读全文 »

Well!!!! I had thought my website was closed down and had no energy to recover it. But now I find it still accessible from a network outside CN. It's banned just because... I hadn't set up the website Bei'an asked by CN gov on time. I'm just lazy and busy.

So, now, I can still post something.


结构

views.py 视图:把变量传给网页模板

urls.py 路由:指定url地址对应的view

阅读全文 »

Hadoop

概念

HDFS文件系统+MapReduce数据处理

假如有1T的数据,我想一行一行正则过滤出想要的内容。就需要

  1. 把数据导入HDFS
  2. 定义map方式,也就是把key设置成行数,把value设置为每行内容
  3. 定义reduce:通过正则方式进行匹配,正确的内容通过reduce聚合起来返回

那么Hadoop就会把这个工作自动分配给你已有的n个计算结点去完成

阅读全文 »

Oh my god. I'm so busy recently. It's stressful for me to prepare for the GRE test. And I'm going to apply for graduate schools. And I also wanna find an internship before I graduate.

But my personal server met some problems several months ago. After I bought a new server in Ali cloud, I have to configure a new certification for the https. But some weird problems always stop me.

Now I have gotten several reasons to finish these tasks:

  1. Xiao Nf is waiting for my new website.
  2. I wanna build a personal research page on my website for showing for professors.
  3. I need this place to write.
  4. My new website is really beautiful and I miss it.

Come on.

搞一下github.io网站 先用它

阅读全文 »

Well, my last post met some problem that the picture of my beautiful console can not be seen.

I find the Typora can automatically upload every pic now. It gives a custom command for me to config.

My personal server now gets some problems in configuring the https road. So I'll note the method here. After I solve the problem of the server, I'll configure a .sh file to automatically upload the pics in the markdown file, and then my website will successfully show them.

I really really hope in the future I won't forget these things.

Upload pics automatically via Typora

Custom

阅读全文 »