Skip to content

Commit

Permalink
refactor tag <--> locale processing
Browse files Browse the repository at this point in the history
reorganize locale resources
  • Loading branch information
orangejuice committed Jul 11, 2024
1 parent a8f4f10 commit 8efc86d
Show file tree
Hide file tree
Showing 50 changed files with 107 additions and 187 deletions.
1 change: 1 addition & 0 deletions contentlayer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const Activity = defineDocumentType(() => ({

export default makeSource({
contentDirPath: "data",
contentDirExclude: ["locales"],
documentTypes: [Post, Activity],
onExtraFieldData: "ignore",
mdx: {
Expand Down
3 changes: 1 addition & 2 deletions data/blog/2019-03-04-build-a-hexo-blog/post.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Build My First Hexo Blog
date: 2019-03-04 21:26:39
updated: 2019-03-04 21:26:39
categories: [notes]
tags: [Blog, Tech]
tags: [tech, hexo]
---

## Deploy Hexo site files & Install theme Next
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Coloring Old Photos With Deep Learning
date: 2019-03-12 15:17:32
updated: 2019-03-12 15:17:32
categories: [notes]
tags: [AI, Curiosity]
tags: [ai, curiosity]
---

Recently I found a website which is described to be an advanced coloring tool for black&white photos.
Expand All @@ -24,4 +23,4 @@ I happened to have just finished watching the movie *Roman Holiday*, so I used a

The result turns out to be amazing, although not perfect, but it's all on the right track!

website: https://colourise.sg/
website: https://colourise.sg/
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: 基于机器学习的老照片上色工具
date: 2019-03-12 15:17:32
updated: 2019-03-12 15:17:32
categories: [notes]
tags: [AI, 好奇心]
tags: [ai, curiosity]
---

最近发现一个网站,提供技术比较高级的黑白照片着色工具。我正好刚看完电影《罗马假日》,所以我用了一张电影中的截图来测试一下效果。
Expand All @@ -22,4 +21,4 @@ tags: [AI, 好奇心]

结果还是很惊人的,虽然细节不够完美,但是大方向都还是对的!

附网站地址: https://colourise.sg/
附网站地址: https://colourise.sg/
7 changes: 2 additions & 5 deletions data/blog/2019-03-12-needham-s-grand-question/post.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
title: A Brief Answer to Needham's Grand Question (Forward)
date: 2019-03-12 15:17:32
updated: 2019-03-12 15:17:32
categories:
- notes
tags:
- History
tags: [notes, history]
---

Ancient China had glorious technological achievements, and for the application of almost every important invention, the Chinese could proudly claim that the West In particular, the "Four Great Inventions", which were so earth-shattering that they revolutionized Europe and even the world at the end of the Middle Ages. The face of the world: gunpowder blew up the fortresses and armor of the feudal chivalric class, the compass opened up new shipping routes between the 5 continents, and the Paper-making and printing broke the cultural monopoly of the feudal church... However, after the modern era, Chinese science and technology stagnated. Instead, the door was opened by the Newton Faraday's who were originally far behind the Chinese. China, once a leader in the history of science and technology, has since almost disappeared, and science and technology have been dominated by the West. Why is that? --This is the unparalleled answer that Joseph Li, the famous British sinologist who wrote the History of Chinese Science and Technology, was unable to give throughout his life. The Obsession: "The Joseph Lee Conundrum".
Expand All @@ -24,4 +21,4 @@ History is a chain of events. Such foundations and premises have determined the

source: [Tianya](http://wenda.tianya.cn/question/5265461d61c782ee)

translate: DeepL
translate: DeepL
6 changes: 1 addition & 5 deletions data/blog/2019-03-12-needham-s-grand-question/post.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
title: "李约瑟难题简答 (转载)"
date: 2019-03-12 15:17:32
updated: 2019-03-12 15:17:32
categories:
- notes
tags:
- 历史
tags: [notes, history]
---

古代中国曾有过辉煌的科技成就,对于几乎每一件重要发明的应用,中国人都可以骄傲的宣称西方又落后了多少多少年;尤其是震古烁今的“四大发明”,更是在中世纪末期彻底改变了欧洲乃至世界的面貌:火药炸毁了封建骑士阶层的堡垒和铠甲,指南针开辟了5大洲之间的新航路,而造纸术和印刷术则打破了封建教会的文化垄断……然而近代以后,中国科技便裹足不前,近代科学的大门反而被原先远远落后于中国的牛顿法拉第们打开。在科技史上曾经独占鳌头的中国从此几乎销声匿迹,科学技术被西方人一统天下。为什么会这样?——这便是著有《中国科学技术史》的英国著名汉学家李约瑟终其一生也未能给出完美答案的旷世之迷:“李约瑟难题”。
Expand All @@ -23,4 +20,3 @@ tags:
历史是一环扣一环的。这样的基础和前提决定了东西方不同往后不同的发展道路。中世纪后期,在原有基础上,东西方的政治体制和经济发展状况又有了进一步的重要变化。东方的皇权空前加强,废丞相、权分六部、设立特务机构、八股取士、文字狱……地主封建阶级的政权进一步的巩固完善,旧封建贵族们建立的一系列“完美”的体制确保了整个国家机器忠实的为他们的利益服务,从东海之滨到西域雪山,从紫禁皇城到荒野小村,中国的封建士绅们通过保甲制度、儒家教条、乡官税吏牢牢的控制着这片广袤的土地。同时,强大统一的中华帝国基本征服了周边的少数民族政权,从西伯利亚到东南亚半岛,从喜马拉雅山和帕米尔高原到海外的台湾、琉球,统统臣服于中央政权之下,放眼海内,似乎没有什么外在的势力能够挑战和威胁这强大的“中央之国”了——如果说有的话,那就是内乱——同时因为中原周边剩下的都是沙漠、高原、冻土和海洋,似乎也没有了可进一步拓殖的空间。虽然当时东南沿海面临着倭寇和早期西欧殖民者的骚扰,但这对于中央政权来说是无关大局的,同时倭寇等海上强盗越骚扰,统治者越要加紧维持原有统治次序和更加严格的禁止人民出海。秦始皇和唐太宗时期统治者身上开拓进取、热衷扩张的蓬勃朝气再也找不到了,取而代之的是猜疑身边臣子“夺权”的“野心”,拼命维持原有秩序,限制可能破坏原有“繁荣”的新事物……古老的中华帝国开始走向停滞、守旧、腐朽和破落。2000年前的孟子所作出的“外无敌国外患,内无法家弼士,国恒亡”的预言正悄悄的变成现实……而与此同时,欧洲正走向黎明。从宋代以后,欧洲经济的发展速度就开始超过中国:从11世纪到16世纪中期,中国农产品总量增长0.5倍,而西欧则增长了1.7倍。到十二、十三世纪一些有技术、工具和资金的农奴,从庄园逃到交通方便的地方,或城堡地带去从事手工业生产,从而从农业中分离出来,建立新的城镇。他们按氏族公社那套民主制度 建立起行会和城市自治公社,并通过各种途径取得独立权,从此市民阶级等上历史舞台。为了发展工商业,要求消除贵族民主制下的无政府的和分散的状态,逐渐与王权结成同盟。同时王权为了削弱封建贵族势力从而巩固和提高自身地位,也在政权上利用了所谓的“第三等级”,并于中世纪后期在逐渐发展起来的工商业者(早期的资本主义者)势力的支持下进行一系列削弱地方贵族势力、加强军队力量、发展工商业、普及文化教育的改革,建立起专制王权并开始大力推行重商主义。这个时期东西方之所以有这样的差别,一个原因是二者政权结构与功能迥异:中国是代表封建旧贵族严密控制社会各方面的高度集中的专制皇权;而西欧则是刚刚部分依靠于新兴工商业者而建立的,相对松散软弱的王权。另一个原因是东西方的政治地图不同:中国是统一的大帝国,四海清平,没有外患;而西欧则支离破碎,国家与国家之间进行着旷日持久的竞争。

source: [天涯问答](http://wenda.tianya.cn/question/5265461d61c782ee)

5 changes: 2 additions & 3 deletions data/blog/2019-03-21-face-the-miserable-life/post.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: "Face The Miserable Life (Forward)"
date: 2019-03-21 22:17:32
updated: 2019-03-21 22:17:32
categories: [notes]
tags: [Existence]
tags: [notes, existence]
---


Expand Down Expand Up @@ -31,4 +30,4 @@ Since the universe is so vast and barren, and since life is utterly meaningless,

Source: [Li Yinhe](http://blog.sina.com.cn/s/blog_473d53360102enhe.html)

translate: DeepL
translate: DeepL
4 changes: 1 addition & 3 deletions data/blog/2019-03-21-face-the-miserable-life/post.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: "直面惨淡人生 (转载)"
date: 2019-03-21 22:17:32
updated: 2019-03-21 22:17:32
categories: [notes]
tags: [存在]
tags: [notes, existence]
---

> 萨特:“在不存在和这种浑身充满快感的存在之间,是没有中立的。如果我们存在,就必须存在到这样的程度。”
Expand All @@ -29,4 +28,3 @@ tags: [存在]


Source: [李银河](http://blog.sina.com.cn/s/blog_473d53360102enhe.html)

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: 使用 IntelliJ 创建并编写 EJB 项目
date: 2019-03-24 15:17:32
updated: 2019-03-29 15:17:32
categories: [notes]
tags: [技术]
tags: [tech, ejb]
---

本文撰写前提为无任何EJB开发经验,在一周的时间要求下,快速开发完成了一个基于ejb栈的在线劳务市场,前端借用了一个博客模版。先在未使用maven管理项目的情况下进行了尝试,然后重新创建了新的maven项目以方便开发。文后有对相关概念的简单记录。此文参考价值不大,很散乱。单纯的一个记录。
Expand Down Expand Up @@ -478,5 +477,3 @@ persistence-unit节点可以有一个或多个,每个persistence-unit节点定
16. [https://github.com/eugenp/tutorials](https://github.com/eugenp/tutorials/tree/master/spring-ejb/wildfly/wildfly-mdb)
17. [A Guide to Message Driven Beans in EJB](<https://www.baeldung.com/ejb-message-driven-beans>)
18. 还有很多参考地址疏忽遗漏,太感谢丰富的互联网资源拯救了一星期开发JOB-MARKET项目。


Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: Microsoft Design Intern's File Explorer mock up
date: 2019-03-28 09:04:32
updated: 2019-03-28 09:04:32
categories: [news]
tags: [Design]
tags: [tech, design]
---


Expand All @@ -21,4 +20,3 @@ These prototype pictures are very beautiful and practical. It is truly shocking
Thanks for [@itsmichaelwest](https://twitter.com/itsmichaelwest) 's nice work!

So great design but can only watch, although no possibility to use it :(. Look at Microsoft, what are you doing?

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: 一个微软实习生设计的 Fluent Design 文件管理器原型
date: 2019-03-28 09:04:32
updated: 2019-03-28 09:04:32
categories: [news]
tags: [设计]
tags: [tech, design]
---

这几幅设计图非常漂亮简约,而且不失实用性。实在让人震撼和垂涎。所以立刻把这些图片保存了下来,也分享在这里吧。
Expand All @@ -17,4 +16,3 @@ tags: [设计]
感谢 [@itsmichaelwest](https://twitter.com/itsmichaelwest)

简单朴素不失美观,但是却只能看看,用不到。瞧瞧微软,你在干嘛呢?🙂

4 changes: 1 addition & 3 deletions data/blog/2019-04-14-some-words-that-worth-a-talk/post.zh.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
title: 随便说说对于生命可能比较重要的词汇
categories: [diary]
tags: [人生]
date: 2019-06-06 18:15:09
updated: 2019-06-06 18:15:09
tags: [notes, existence]
---

随便瞎说一些名词:成熟、生命力、边界、内在觉察、自由意志、权力、超越视界、交流、文艺、生命价值与时代、错位感、社会契约、童年、信念、语言和表达、活在当下、照顾自己、认识观察、接纳、社交与独处、人性观
Expand Down Expand Up @@ -115,4 +114,3 @@ updated: 2019-06-06 18:15:09
## 人性观

人性首先含有动物性,它是每个生物首先作为个体可以在复杂环境中生存下来的本能。人性,囊括着动物性。动物性也本就不存在人类文化中的善恶标准。崇尚善良、慈悲为怀的个人品质,道德,普世价值的文化,在没有实现以前,长期会是一个人们建立起的无比向往的美好期待和寄托,但首先是人创造出来的,不可离开人而存在,也即是赖以人的人性为基础才得以生存的东西。在有了这种文化以后,有了第一个人开始觉得杀戮同胞太残忍并传播出去以后,有了第一个人开始觉得奴隶他人是残忍的荒谬的以后,人性才开始被辨识,含义范围得到丰富修缮。虽然人性总是显现一层丑恶的意义,因为正是它驱使着人做出种种与人类文化背道而驰的行为,而且它事实上也一直存在在那里,考验总不会得到让人满意的结果,乐观是无益的。可对此而感到悲观恐怕也是无益的,没有必要。最好就如同看待一颗随风摇曳的树,它就是结结实实的存在于那里。明辨至此,也不必自恃道德高尚而去没有底线的纵容隐忍别人,是是非非,也需要一个人建立起自己的观念。

5 changes: 2 additions & 3 deletions data/blog/2019-04-14-to-the-new-culture-movement/post.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: "大家讲堂·秦晖-从诸子争鸣到新文化运动 笔记"
date: 2019-04-14 23:55:41
updated: 2019-04-26 23:09:22
categories: [notes]
tags: [历史]
tags: [notes, history]
---

## 为什么要回顾
Expand Down Expand Up @@ -140,4 +139,4 @@ tags: [历史]



于二零一九年四月二十六日。
于二零一九年四月二十六日。
6 changes: 2 additions & 4 deletions data/blog/2019-04-19-netflix-show-our-planet/post.en.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
---
title: "Netflix Show: Our Planet Season 01"
categories:
- notes
tags: [Entertainment]
date: 2019-04-19 23:25:17
updated: 2019-04-19 23:25:17
tags: [notes, entertainment]
---

![A scene of struggling](1555713393372.png)
Expand Down Expand Up @@ -47,4 +45,4 @@ In addition to natural habitats and warnings, intentional or unintentional impro

Source [Pengpai News](https://www.thepaper.cn/newsDetail_forward_3238147)

Translate DeepL
Translate DeepL
6 changes: 2 additions & 4 deletions data/blog/2019-04-19-netflix-show-our-planet/post.zh.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
---
title: 我们的星球第一季
categories:
- notes
tags: [娱乐]
date: 2019-04-19 23:25:17
updated: 2019-04-19 23:25:17
tags: [notes, entertainment]
---

![1555713393372](1555713393372.png)
Expand Down Expand Up @@ -43,4 +41,4 @@ BBC的自然纪录片系列曾向无数观众传递了自然的壮丽肃穆,



转自 [澎湃新闻](https://www.thepaper.cn/newsDetail_forward_3238147)
转自 [澎湃新闻](https://www.thepaper.cn/newsDetail_forward_3238147)
5 changes: 1 addition & 4 deletions data/blog/2019-05-07-poem-at-qing-dynasty/post.zh.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
---
title: 读到《在清朝》柏桦
categories:
- notes
tags: [阅读]
date: 2019-05-07 23:13:12
updated: 2019-05-07 23:13:12
tags: [notes, reading]
---

《在清朝》柏桦
Expand Down Expand Up @@ -62,4 +60,3 @@ updated: 2019-05-07 23:13:12
父母亲友师秉持了同样的观念以耳濡目染,其实本是不需耽搁时间找理由问为什么的,便可以踏踏实实去做该做的事情了,过去人们也便如此维护着健壮的社会秩序。现在的信息自由与爆炸打破了这个平衡,父母与亲友开始脱节,友师与网络开始脱节,本该眼中是一个完整的世界——哪怕角度偏倚无比,而现在变成了支离破碎,各个角度都有却都不完整都不足以支撑自己。所以近代开来,才在精神上出现了普遍的大范围的问题,焦虑不安,迷茫失落,无去无从。

而另一方面,也自然有一些人很好的传承了意志,或轻松度日或忍辱负重,或学术世家或警医商旅,抑或小商小贩养家糊口也能够踏踏实实,自得其乐。

Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: "易中天中华文明史——三大文明的历史关系 笔记"
categories:
- notes
tags: [历史]
tags: [notes, history]
date: 2019-05-10 18:46:49
updated: 2019-05-10 18:46:49
---
Expand Down Expand Up @@ -50,4 +48,4 @@ updated: 2019-05-10 18:46:49

中华文明到了最关键的时刻:1.无信仰的人民有责任为全球人民提供一个开放的平台,担负天下兴亡。2.由于无信仰,所以无恒定价值观,我们应该找到全人类的核心价值观,全人类的共同价值,找到我们文明自己的实现方式。

因此说中华文明到了最关键的时刻。我们有必要反躬自省,只有知道自己从哪里来,才知道自己往哪里去,才知道我们该怎么办。
因此说中华文明到了最关键的时刻。我们有必要反躬自省,只有知道自己从哪里来,才知道自己往哪里去,才知道我们该怎么办。
6 changes: 1 addition & 5 deletions data/blog/2019-05-16-diary/post.zh.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: 日记于2019年5月16日
categories:
- diary
tags: [生活]
tags: [notes, dairy]
date: 2019-05-16 17:57:44
updated: 2019-05-16 17:57:44
---
Expand Down Expand Up @@ -36,5 +34,3 @@ updated: 2019-05-16 17:57:44
深刻反省

于23岁5月16日。


Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
---
title: "Why Do Historical Predictions Always Get It Wrong? (Forward)"
categories:
- why
tags: [History]
date: 2019-05-20 13:06:00
updated: 2019-05-20 13:06:00
tags: [notes, history]
---

Outstanding speakers are good at instigating his audience with emotions-even if his theory does not even believe him. The true meaning of speech art is not to persuade others with logic. The only true meaning of speech art is to convey passion.
Expand Down Expand Up @@ -43,4 +41,4 @@ Let us witness.

Source: [Zhihu - 关山越过](https://www.zhihu.com/people/shu-dao-guan-shan-yue-guo)

Translate: Google
Translate: Google
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
---
title: "历史预测为什么总是错的 (转载)"
categories:
- why
tags: [历史]
date: 2019-05-20 13:06:00
updated: 2019-05-20 13:06:00
tags: [notes, history]
---

杰出的演说者都擅长用情绪煽动他的听众——即使他的理论连他自己都不相信。演讲艺术的真谛并不在于去用逻辑说服别人,演讲艺术的唯一真谛是传递激情。
Expand Down Expand Up @@ -43,4 +41,4 @@ updated: 2019-05-20 13:06:00



Source: [知乎 - 关山越过](https://www.zhihu.com/people/shu-dao-guan-shan-yue-guo)
Source: [知乎 - 关山越过](https://www.zhihu.com/people/shu-dao-guan-shan-yue-guo)
6 changes: 2 additions & 4 deletions data/blog/2019-05-27-diary/post.zh.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
---
title: 日记于2019年5月27日
categories:
- diary
tags: [生活]
date: 2019-05-27 13:03:01
updated: 2019-05-27 13:03:01
tags: [notes, dairy]
---

最近几天舍友一直说 you look sad. you are sighing all the time. 果然我内心的焦虑还是生命力强盛,怎么按也按不住。我倒不觉得比前些天更糟糕,也许对于初见的人,我还能更加卖力的掩饰一下,表演一下积极,但过两天也就再没有精力嬉笑插话了。时间也是密密麻麻,一不经意就过去了很多,焦虑一会儿,又一事无成的白白流逝了很多时间,更让人焦虑。这个恶性循环促使我必须现在再反思一下自己。
Expand All @@ -28,4 +26,4 @@ updated: 2019-05-27 13:03:01
我等着我自信坚定的醒来睁开双眼,有条不紊的进行我一天满满当当的想做之事的那一天。如果等不到,也不惋惜,坐在命运风帆上,很多事情苛求不得。我非要打破朋友圈的快活寂静的空气也不是什么有效有用之举,最近的积极分享也可以作为一个阶段到此结束了。还有我未来想要做的事情,即便我没有做到,也会有其他人做,想到这些我也便不那么急躁焦虑了。我只想单纯的享受探索自己内外的旅程(也要时刻提醒自己),永远好奇,永远开放,永远继续往前走。

5月27日
多云
多云
Loading

0 comments on commit 8efc86d

Please sign in to comment.