-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
830 lines (519 loc) · 38 KB
/
index.html
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
<!DOCTYPE html>
<html lang=zh>
<head>
<meta charset="utf-8">
<meta name=referrer content=no-referrer-when-downgrade>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<!-- Color theme for statusbar -->
<meta name="theme-color" content="#2a3f5b" />
<!-- 强制页面在当前窗口以独立页面显示,防止别人在框架里调用页面 -->
<meta http-equiv="window-target" content="_top" />
<title>Stdio's Blog</title>
<meta property="og:type" content="website">
<meta property="og:title" content="Stdio's Blog">
<meta property="og:url" content="https://blog.stdioa.com/index.html">
<meta property="og:site_name" content="Stdio's Blog">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="David Dai">
<meta name="twitter:card" content="summary">
<!-- Canonical links -->
<link rel="canonical" href="https://blog.stdioa.com/index.html">
<link rel="alternate" href="/atom.xml" title="Stdio's Blog" type="application/atom+xml">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="/css/style.min.css">
<meta name="generator" content="Hexo 7.3.0"></head>
<body class="main-center theme-black" itemscope itemtype="http://schema.org/WebPage">
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="slimContent">
<div class="navbar-header">
<div class="profile-block text-center">
<a id="avatar" href="/" target="_blank">
<img class="img-circle img-rotate" src="https://www.gravatar.com/avatar/e452ed622e6b1e9a2067a06fde30cf30?s=128" width="200" height="200">
</a>
<h2 id="name" class="hidden-xs hidden-sm">David Dai</h2>
<h3 id="title" class="hidden-xs hidden-sm hidden-md">Backend Developer</h3>
<small id="location" class="text-muted hidden-xs hidden-sm"><i class="icon icon-map-marker"></i> Nanjing, China</small>
</div>
<div class="search" id="search-form-wrap">
<form class="search-form sidebar-form">
<div class="input-group">
<input type="text" class="search-form-input form-control" placeholder="搜索" />
<span class="input-group-btn">
<button type="submit" class="search-form-submit btn btn-flat" onclick="return false;"><i class="icon icon-search"></i></button>
</span>
</div>
</form>
<div class="ins-search">
<div class="ins-search-mask"></div>
<div class="ins-search-container">
<div class="ins-input-wrapper">
<input type="text" class="ins-search-input" placeholder="想要查找什么..." x-webkit-speech />
<button type="button" class="close ins-close ins-selectable" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="ins-section-wrapper">
<div class="ins-section-container"></div>
</div>
</div>
</div>
</div>
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#main-navbar" aria-controls="main-navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<nav id="main-navbar" class="collapse navbar-collapse" itemscope itemtype="http://schema.org/SiteNavigationElement" role="navigation">
<ul class="nav navbar-nav main-nav menu-highlight">
<li class="menu-item menu-item-home">
<a href="/">
<i class="icon icon-home-fill"></i>
<span class="menu-title">首页</span>
</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives">
<i class="icon icon-archives-fill"></i>
<span class="menu-title">归档</span>
</a>
</li>
<li class="menu-item menu-item-categories">
<a href="/categories">
<i class="icon icon-folder"></i>
<span class="menu-title">分类</span>
</a>
</li>
<li class="menu-item menu-item-tags">
<a href="/tags">
<i class="icon icon-tags"></i>
<span class="menu-title">标签</span>
</a>
</li>
<li class="menu-item menu-item-repository">
<a href="/repository">
<i class="icon icon-project"></i>
<span class="menu-title">项目</span>
</a>
</li>
<li class="menu-item menu-item-sheets">
<a target="_blank" rel="noopener" href="http://sheet.stdioa.com/">
<i class="icon icon-book"></i>
<span class="menu-title">谱站</span>
</a>
</li>
<li class="menu-item menu-item-links">
<a href="/links">
<i class="icon icon-friendship"></i>
<span class="menu-title">友链</span>
</a>
</li>
<li class="menu-item menu-item-about">
<a href="/about">
<i class="icon icon-cup-fill"></i>
<span class="menu-title">关于</span>
</a>
</li>
</ul>
<ul class="social-links">
<li><a href="https://github.com/StdioA" target="_blank" title="Github" data-toggle=tooltip data-placement=top><i class="icon icon-github"></i></a></li>
<li><a href="https://twitter.com/stdio_a" target="_blank" title="Twitter" data-toggle=tooltip data-placement=top><i class="icon icon-twitter"></i></a></li>
<li><a href="/atom.xml" target="_blank" title="Rss" data-toggle=tooltip data-placement=top><i class="icon icon-rss"></i></a></li>
<li><a href="https://t.me/StdioA" target="_blank" title="Telegram" data-toggle=tooltip data-placement=top><i class="icon icon-telegram"></i></a></li>
</ul>
</nav>
</div>
</header>
<aside class="sidebar" itemscope itemtype="http://schema.org/WPSideBar">
<div class="slimContent">
<div class="widget">
<h3 class="widget-title">公告</h3>
<div class="widget-body">
<div id="board">
<div class="content">
<p>欢迎,你是第 <span id="busuanzi_value_site_pv">并不知道多少</span> 个来到这里的人。
<p>不过我更新的比较少…不好意思。</p>
<p>另:本站使用 Disqus 评论系统,若文章页面下方无法显示评论框,那肯定是打开方式不对。</p>
</div>
</div>
</div>
</div>
<div class="widget">
<h3 class="widget-title">分类</h3>
<div class="widget-body">
<ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/DevOps/">DevOps</a><span class="category-list-count">8</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Golang/">Golang</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Javascript/">Javascript</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/LeetCode/">LeetCode</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Python/">Python</a><span class="category-list-count">11</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Web/">Web</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E4%B9%B1%E4%B8%83%E5%85%AB%E7%B3%9F/">乱七八糟</a><span class="category-list-count">14</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%BC%80%E5%8F%91/">开发</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E7%BD%91%E7%BB%9C/">网络</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E7%BF%BB%E8%AF%91/">翻译</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E9%9A%8F%E6%89%8B%E8%AE%B0/">随手记</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E9%9A%8F%E7%AC%94/">随笔</a><span class="category-list-count">2</span></li></ul>
</div>
</div>
<div class="widget">
<h3 class="widget-title">标签云</h3>
<div class="widget-body tagcloud">
<a href="/tags/Ajax/" style="font-size: 13px;">Ajax</a> <a href="/tags/Alpine/" style="font-size: 13px;">Alpine</a> <a href="/tags/Apache/" style="font-size: 13px;">Apache</a> <a href="/tags/Atom/" style="font-size: 13px;">Atom</a> <a href="/tags/Beancount/" style="font-size: 13.2px;">Beancount</a> <a href="/tags/CI-CD/" style="font-size: 13.6px;">CI/CD</a> <a href="/tags/CTF/" style="font-size: 13.4px;">CTF</a> <a href="/tags/DevOps/" style="font-size: 13.8px;">DevOps</a> <a href="/tags/Django/" style="font-size: 13.4px;">Django</a> <a href="/tags/Django-REST-Framework/" style="font-size: 13px;">Django REST Framework</a> <a href="/tags/Docker/" style="font-size: 13.4px;">Docker</a> <a href="/tags/Git/" style="font-size: 13.2px;">Git</a> <a href="/tags/GitLab/" style="font-size: 13.6px;">GitLab</a> <a href="/tags/Github/" style="font-size: 13.2px;">Github</a> <a href="/tags/Golang/" style="font-size: 13.4px;">Golang</a> <a href="/tags/Homelab/" style="font-size: 13px;">Homelab</a> <a href="/tags/IPv6/" style="font-size: 13.2px;">IPv6</a> <a href="/tags/Javascript/" style="font-size: 13.2px;">Javascript</a> <a href="/tags/KMS/" style="font-size: 13px;">KMS</a> <a href="/tags/Kubernetes/" style="font-size: 13px;">Kubernetes</a> <a href="/tags/LCTT/" style="font-size: 13px;">LCTT</a> <a href="/tags/LLM/" style="font-size: 13px;">LLM</a> <a href="/tags/LeetCode/" style="font-size: 13px;">LeetCode</a> <a href="/tags/Let-s-Encrypt/" style="font-size: 13px;">Let's Encrypt</a> <a href="/tags/Linux/" style="font-size: 13.4px;">Linux</a> <a href="/tags/MySQL/" style="font-size: 13.2px;">MySQL</a> <a href="/tags/NAS/" style="font-size: 13.2px;">NAS</a> <a href="/tags/NTP/" style="font-size: 13px;">NTP</a> <a href="/tags/PHP/" style="font-size: 13px;">PHP</a> <a href="/tags/Prometheus/" style="font-size: 13.2px;">Prometheus</a> <a href="/tags/Protobuf/" style="font-size: 13px;">Protobuf</a> <a href="/tags/Python/" style="font-size: 14px;">Python</a> <a href="/tags/RAG/" style="font-size: 13px;">RAG</a> <a href="/tags/SQL/" style="font-size: 13px;">SQL</a> <a href="/tags/Sublime-Text/" style="font-size: 13px;">Sublime Text</a> <a href="/tags/UTF-8/" style="font-size: 13px;">UTF-8</a> <a href="/tags/Unicode/" style="font-size: 13px;">Unicode</a> <a href="/tags/Windows/" style="font-size: 13px;">Windows</a> <a href="/tags/collections/" style="font-size: 13px;">collections</a> <a href="/tags/ctypes/" style="font-size: 13px;">ctypes</a> <a href="/tags/fava/" style="font-size: 13px;">fava</a> <a href="/tags/gettext/" style="font-size: 13px;">gettext</a> <a href="/tags/git/" style="font-size: 13px;">git</a> <a href="/tags/gunicorn/" style="font-size: 13px;">gunicorn</a> <a href="/tags/i18n/" style="font-size: 13px;">i18n</a> <a href="/tags/iptables/" style="font-size: 13px;">iptables</a> <a href="/tags/l10n/" style="font-size: 13px;">l10n</a> <a href="/tags/logging/" style="font-size: 13px;">logging</a> <a href="/tags/nginx/" style="font-size: 13.4px;">nginx</a> <a href="/tags/node-js/" style="font-size: 13.2px;">node.js</a> <a href="/tags/openssl/" style="font-size: 13px;">openssl</a> <a href="/tags/pip/" style="font-size: 13px;">pip</a> <a href="/tags/python/" style="font-size: 14px;">python</a> <a href="/tags/requests/" style="font-size: 13px;">requests</a> <a href="/tags/supervisor/" style="font-size: 13px;">supervisor</a> <a href="/tags/unittest/" style="font-size: 13px;">unittest</a> <a href="/tags/virtualenv/" style="font-size: 13px;">virtualenv</a> <a href="/tags/vue-js/" style="font-size: 13px;">vue.js</a> <a href="/tags/wget/" style="font-size: 13px;">wget</a> <a href="/tags/%E4%B8%83%E7%89%9B/" style="font-size: 13px;">七牛</a> <a href="/tags/%E4%B8%8A%E4%B8%8B%E6%96%87%E7%AE%A1%E7%90%86/" style="font-size: 13px;">上下文管理</a> <a href="/tags/%E5%89%8D%E7%AB%AF%E5%BC%80%E5%8F%91/" style="font-size: 13.4px;">前端开发</a> <a href="/tags/%E5%90%8E%E7%AB%AF%E5%BC%80%E5%8F%91/" style="font-size: 13px;">后端开发</a> <a href="/tags/%E5%9B%BD%E9%99%85%E5%8C%96/" style="font-size: 13px;">国际化</a> <a href="/tags/%E5%A0%86/" style="font-size: 13px;">堆</a> <a href="/tags/%E5%BE%AE%E6%9C%8D%E5%8A%A1/" style="font-size: 13.2px;">微服务</a> <a href="/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/" style="font-size: 13px;">数据库</a> <a href="/tags/%E6%95%B0%E6%8D%AE%E8%BF%81%E7%A7%BB/" style="font-size: 13px;">数据迁移</a> <a href="/tags/%E6%96%87%E6%9C%AC%E7%BC%96%E8%BE%91%E5%99%A8/" style="font-size: 13px;">文本编辑器</a> <a href="/tags/%E6%9C%AC%E5%9C%B0%E5%8C%96/" style="font-size: 13px;">本地化</a> <a href="/tags/%E6%A0%91%E8%8E%93%E6%B4%BE/" style="font-size: 13px;">树莓派</a> <a href="/tags/%E7%AE%97%E6%B3%95/" style="font-size: 13px;">算法</a> <a href="/tags/%E7%BC%96%E7%A8%8B%E5%B7%A5%E5%85%B7/" style="font-size: 13px;">编程工具</a> <a href="/tags/%E8%84%91%E6%B4%9E/" style="font-size: 13.4px;">脑洞</a> <a href="/tags/%E8%AE%B0%E8%B4%A6/" style="font-size: 13.2px;">记账</a> <a href="/tags/%E8%AF%BB%E4%B9%A6/" style="font-size: 13.6px;">读书</a> <a href="/tags/%E8%BF%AD%E4%BB%A3%E5%99%A8/" style="font-size: 13px;">迭代器</a>
</div>
</div>
<div class="widget">
<h3 class="widget-title">归档</h3>
<div class="widget-body">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/08/">八月 2024</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/10/">十月 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/06/">六月 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/09/">九月 2021</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/07/">七月 2021</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/02/">二月 2021</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/12/">十二月 2020</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/09/">九月 2020</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/06/">六月 2019</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/05/">五月 2019</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/04/">四月 2019</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/03/">三月 2019</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/02/">二月 2019</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/12/">十二月 2018</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/11/">十一月 2018</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/10/">十月 2018</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/07/">七月 2018</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/06/">六月 2018</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/03/">三月 2017</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/12/">十二月 2016</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/11/">十一月 2016</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/05/">五月 2016</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/04/">四月 2016</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/03/">三月 2016</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/02/">二月 2016</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/01/">一月 2016</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/12/">十二月 2015</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/11/">十一月 2015</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/10/">十月 2015</a><span class="archive-list-count">6</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/09/">九月 2015</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/07/">七月 2015</a><span class="archive-list-count">1</span></li></ul>
</div>
</div>
</div>
</aside>
<main class="main" role="main">
<div class="content article-list">
<article class="article article-type-post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2024/08/python-i18n-with-gettext/">为 Python 项目提供多语言支持</a>
</h1>
</div>
<div class="article-entry text-muted" itemprop="description">
<p>突发奇想,给自己的 <code>beancount-bot</code> 接入了多语言支持。本文简单记录了接入和使用的流程。</p>
</div>
<p class="article-meta">
<span class="article-date">
<i class="icon icon-calendar-check"></i>
<a href="/2024/08/python-i18n-with-gettext/" class="article-date">
<time datetime="2024-08-23T08:21:08.000Z" itemprop="datePublished">2024年 8月 23日</time>
</a>
</span>
<span class="article-category">
<i class="icon icon-folder"></i>
<a class="article-category-link" href="/categories/Python/">Python</a>
</span>
<span class="article-tag">
<i class="icon icon-tags"></i>
<a class="article-tag-link-link" href="/tags/Python/" rel="tag">Python</a>, <a class="article-tag-link-link" href="/tags/gettext/" rel="tag">gettext</a>, <a class="article-tag-link-link" href="/tags/i18n/" rel="tag">i18n</a>, <a class="article-tag-link-link" href="/tags/l10n/" rel="tag">l10n</a>, <a class="article-tag-link-link" href="/tags/%E5%9B%BD%E9%99%85%E5%8C%96/" rel="tag">国际化</a>, <a class="article-tag-link-link" href="/tags/%E6%9C%AC%E5%9C%B0%E5%8C%96/" rel="tag">本地化</a>
</span>
<span class="post-comment"><i class="icon icon-comment"></i> <a href="/2024/08/python-i18n-with-gettext/#comments" class="article-comment-link">评论</a></span>
<span class="post-wordcount hidden-xs" itemprop="wordCount">字数统计: 2k(字)</span>
</p>
</article>
<article class="article article-type-post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2024/08/beancount-rag/">RAG 基本应用——Beancount 记账效率优化</a>
</h1>
</div>
<div class="article-entry text-muted" itemprop="description">
<p>本文来自于一个手工记账博主的脑洞大开,尝试通过向量数据库和 RAG 来想办法让自己少打几个字。顺便宣传一下最近开源的<a target="_blank" rel="noopener" href="https://github.com/StdioA/beancount-bot">记账 bot</a>.</p>
</div>
<p class="article-meta">
<span class="article-date">
<i class="icon icon-calendar-check"></i>
<a href="/2024/08/beancount-rag/" class="article-date">
<time datetime="2024-08-17T13:20:00.000Z" itemprop="datePublished">2024年 8月 17日</time>
</a>
</span>
<span class="article-category">
<i class="icon icon-folder"></i>
<a class="article-category-link" href="/categories/%E4%B9%B1%E4%B8%83%E5%85%AB%E7%B3%9F/">乱七八糟</a>
</span>
<span class="article-tag">
<i class="icon icon-tags"></i>
<a class="article-tag-link-link" href="/tags/Beancount/" rel="tag">Beancount</a>, <a class="article-tag-link-link" href="/tags/LLM/" rel="tag">LLM</a>, <a class="article-tag-link-link" href="/tags/Python/" rel="tag">Python</a>, <a class="article-tag-link-link" href="/tags/RAG/" rel="tag">RAG</a>, <a class="article-tag-link-link" href="/tags/%E8%AE%B0%E8%B4%A6/" rel="tag">记账</a>
</span>
<span class="post-comment"><i class="icon icon-comment"></i> <a href="/2024/08/beancount-rag/#comments" class="article-comment-link">评论</a></span>
<span class="post-wordcount hidden-xs" itemprop="wordCount">字数统计: 1.5k(字)</span>
</p>
</article>
<article class="article article-type-post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2022/10/ustc-hackergame-2022-writeup/">USTC Hackergame 2022 玩耍记录</a>
</h1>
</div>
<div class="article-entry text-muted" itemprop="description">
<p>上周日晚上,偶然看到一个原神玩家群(?)里面有人发了一张图,说是 USTC 的 CTF. 上一次玩 CTF 还是六年前,不过这次一时兴起打算玩玩看。<br />
由于上班比较忙,所以只玩了一天多一点,做了一些简单题。</p>
</div>
<p class="article-meta">
<span class="article-date">
<i class="icon icon-calendar-check"></i>
<a href="/2022/10/ustc-hackergame-2022-writeup/" class="article-date">
<time datetime="2022-10-29T14:50:00.000Z" itemprop="datePublished">2022年 10月 29日</time>
</a>
</span>
<span class="article-category">
<i class="icon icon-folder"></i>
<a class="article-category-link" href="/categories/%E4%B9%B1%E4%B8%83%E5%85%AB%E7%B3%9F/">乱七八糟</a>
</span>
<span class="article-tag">
<i class="icon icon-tags"></i>
<a class="article-tag-link-link" href="/tags/CTF/" rel="tag">CTF</a>, <a class="article-tag-link-link" href="/tags/%E8%84%91%E6%B4%9E/" rel="tag">脑洞</a>
</span>
<span class="post-comment"><i class="icon icon-comment"></i> <a href="/2022/10/ustc-hackergame-2022-writeup/#comments" class="article-comment-link">评论</a></span>
<span class="post-wordcount hidden-xs" itemprop="wordCount">字数统计: 4.4k(字)</span>
</p>
</article>
<article class="article article-type-post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2022/06/encode-ipv6-into-utf8/">一种 IPv6 地址编码方案</a>
</h1>
</div>
<div class="article-entry text-muted" itemprop="description">
<p>又搞了一些骚操作:把一个 IPv6 地址压缩成一个短字符串。</p>
</div>
<p class="article-meta">
<span class="article-date">
<i class="icon icon-calendar-check"></i>
<a href="/2022/06/encode-ipv6-into-utf8/" class="article-date">
<time datetime="2022-06-10T12:51:14.000Z" itemprop="datePublished">2022年 6月 10日</time>
</a>
</span>
<span class="article-category">
<i class="icon icon-folder"></i>
<a class="article-category-link" href="/categories/%E4%B9%B1%E4%B8%83%E5%85%AB%E7%B3%9F/">乱七八糟</a>
</span>
<span class="article-tag">
<i class="icon icon-tags"></i>
<a class="article-tag-link-link" href="/tags/IPv6/" rel="tag">IPv6</a>, <a class="article-tag-link-link" href="/tags/UTF-8/" rel="tag">UTF-8</a>, <a class="article-tag-link-link" href="/tags/Unicode/" rel="tag">Unicode</a>
</span>
<span class="post-comment"><i class="icon icon-comment"></i> <a href="/2022/06/encode-ipv6-into-utf8/#comments" class="article-comment-link">评论</a></span>
<span class="post-wordcount hidden-xs" itemprop="wordCount">字数统计: 2.6k(字)</span>
</p>
</article>
<article class="article article-type-post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2021/09/homelab-share/">HomeLab 玩法简单分享</a>
</h1>
</div>
<div class="article-entry text-muted" itemprop="description">
<p>大学毕业之前一个冲动买了台式机,又一个冲动买了台 Linux 主机。到现在它已经运行了四年多了,简单分享下自己的玩法。</p>
</div>
<p class="article-meta">
<span class="article-date">
<i class="icon icon-calendar-check"></i>
<a href="/2021/09/homelab-share/" class="article-date">
<time datetime="2021-09-14T11:51:33.000Z" itemprop="datePublished">2021年 9月 14日</time>
</a>
</span>
<span class="article-category">
<i class="icon icon-folder"></i>
<a class="article-category-link" href="/categories/%E4%B9%B1%E4%B8%83%E5%85%AB%E7%B3%9F/">乱七八糟</a>
</span>
<span class="article-tag">
<i class="icon icon-tags"></i>
<a class="article-tag-link-link" href="/tags/Docker/" rel="tag">Docker</a>, <a class="article-tag-link-link" href="/tags/Homelab/" rel="tag">Homelab</a>, <a class="article-tag-link-link" href="/tags/NAS/" rel="tag">NAS</a>
</span>
<span class="post-comment"><i class="icon icon-comment"></i> <a href="/2021/09/homelab-share/#comments" class="article-comment-link">评论</a></span>
<span class="post-wordcount hidden-xs" itemprop="wordCount">字数统计: 4.6k(字)</span>
</p>
</article>
<article class="article article-type-post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2021/07/scrape-prometheus-metrics-outside-kubernetes/">在 K3S 集群外监控集群内的指标</a>
</h1>
</div>
<div class="article-entry text-muted" itemprop="description">
<p><s>吃饱了撑的</s>,尝试一下 Prometheus 在 K3S 集群外抓取集群内指标的若干姿势。</p>
</div>
<p class="article-meta">
<span class="article-date">
<i class="icon icon-calendar-check"></i>
<a href="/2021/07/scrape-prometheus-metrics-outside-kubernetes/" class="article-date">
<time datetime="2021-07-11T09:00:00.000Z" itemprop="datePublished">2021年 7月 11日</time>
</a>
</span>
<span class="article-category">
<i class="icon icon-folder"></i>
<a class="article-category-link" href="/categories/DevOps/">DevOps</a>
</span>
<span class="article-tag">
<i class="icon icon-tags"></i>
<a class="article-tag-link-link" href="/tags/Kubernetes/" rel="tag">Kubernetes</a>, <a class="article-tag-link-link" href="/tags/Prometheus/" rel="tag">Prometheus</a>, <a class="article-tag-link-link" href="/tags/iptables/" rel="tag">iptables</a>
</span>
<span class="post-comment"><i class="icon icon-comment"></i> <a href="/2021/07/scrape-prometheus-metrics-outside-kubernetes/#comments" class="article-comment-link">评论</a></span>
<span class="post-wordcount hidden-xs" itemprop="wordCount">字数统计: 3.6k(字)</span>
</p>
</article>
<article class="article article-type-post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2021/02/alpine-time-call/">由 TT-RSS 解析数据库地址失败引出的一个问题</a>
</h1>
</div>
<div class="article-entry text-muted" itemprop="description">
<p>水一篇文章,主要用来告诫自己认真看文档。🌚</p>
</div>
<p class="article-meta">
<span class="article-date">
<i class="icon icon-calendar-check"></i>
<a href="/2021/02/alpine-time-call/" class="article-date">
<time datetime="2021-02-23T12:51:14.000Z" itemprop="datePublished">2021年 2月 23日</time>
</a>
</span>
<span class="article-category">
<i class="icon icon-folder"></i>
<a class="article-category-link" href="/categories/%E4%B9%B1%E4%B8%83%E5%85%AB%E7%B3%9F/">乱七八糟</a>
</span>
<span class="article-tag">
<i class="icon icon-tags"></i>
<a class="article-tag-link-link" href="/tags/Alpine/" rel="tag">Alpine</a>, <a class="article-tag-link-link" href="/tags/Docker/" rel="tag">Docker</a>, <a class="article-tag-link-link" href="/tags/%E6%A0%91%E8%8E%93%E6%B4%BE/" rel="tag">树莓派</a>
</span>
<span class="post-comment"><i class="icon icon-comment"></i> <a href="/2021/02/alpine-time-call/#comments" class="article-comment-link">评论</a></span>
<span class="post-wordcount hidden-xs" itemprop="wordCount">字数统计: 665(字)</span>
</p>
</article>
<article class="article article-type-post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2020/12/protobuf-upgrade/">protobuf 升级后带来的一些坑</a>
</h1>
</div>
<div class="article-entry text-muted" itemprop="description">
<p>前段时间把公司某项目依赖的 <code>github.com/golang/protobuf</code> 的版本从 v1.3.3 升级到了 v1.4.2,本文记录了升级过程中遇到的一些问题。</p>
</div>
<p class="article-meta">
<span class="article-date">
<i class="icon icon-calendar-check"></i>
<a href="/2020/12/protobuf-upgrade/" class="article-date">
<time datetime="2020-12-27T06:41:53.000Z" itemprop="datePublished">2020年 12月 27日</time>
</a>
</span>
<span class="article-category">
<i class="icon icon-folder"></i>
<a class="article-category-link" href="/categories/Golang/">Golang</a>
</span>
<span class="article-tag">
<i class="icon icon-tags"></i>
<a class="article-tag-link-link" href="/tags/Golang/" rel="tag">Golang</a>, <a class="article-tag-link-link" href="/tags/Protobuf/" rel="tag">Protobuf</a>
</span>
<span class="post-comment"><i class="icon icon-comment"></i> <a href="/2020/12/protobuf-upgrade/#comments" class="article-comment-link">评论</a></span>
<span class="post-wordcount hidden-xs" itemprop="wordCount">字数统计: 944(字)</span>
</p>
</article>
<article class="article article-type-post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2020/09/using-beancount/">开始使用 Beancount</a>
</h1>
</div>
<div class="article-entry text-muted" itemprop="description">
<p>使用 Beancount 记账已经有将近两个月了,简单写一写我都做了什么。</p>
</div>
<p class="article-meta">
<span class="article-date">
<i class="icon icon-calendar-check"></i>
<a href="/2020/09/using-beancount/" class="article-date">
<time datetime="2020-09-05T07:15:00.000Z" itemprop="datePublished">2020年 9月 5日</time>
</a>
</span>
<span class="article-category">
<i class="icon icon-folder"></i>
<a class="article-category-link" href="/categories/%E4%B9%B1%E4%B8%83%E5%85%AB%E7%B3%9F/">乱七八糟</a>
</span>
<span class="article-tag">
<i class="icon icon-tags"></i>
<a class="article-tag-link-link" href="/tags/Beancount/" rel="tag">Beancount</a>, <a class="article-tag-link-link" href="/tags/Python/" rel="tag">Python</a>, <a class="article-tag-link-link" href="/tags/fava/" rel="tag">fava</a>, <a class="article-tag-link-link" href="/tags/%E8%AE%B0%E8%B4%A6/" rel="tag">记账</a>
</span>
<span class="post-comment"><i class="icon icon-comment"></i> <a href="/2020/09/using-beancount/#comments" class="article-comment-link">评论</a></span>
<span class="post-wordcount hidden-xs" itemprop="wordCount">字数统计: 2.1k(字)</span>
</p>
</article>
<article class="article article-type-post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2019/06/go-internal-note/">《深入解析Go》笔记</a>
</h1>
</div>
<div class="article-entry text-muted" itemprop="description">
<p>在 GitHub 上找到一本解读 Go 实现细节的好书,名叫<a target="_blank" rel="noopener" href="https://github.com/tiancaiamao/go-internals/">《深入解析 Go》</a>。<br />
大致看了一遍,简单做了些笔记。</p>
</div>
<p class="article-meta">
<span class="article-date">
<i class="icon icon-calendar-check"></i>
<a href="/2019/06/go-internal-note/" class="article-date">
<time datetime="2019-06-24T08:22:00.000Z" itemprop="datePublished">2019年 6月 24日</time>
</a>
</span>
<span class="article-category">
<i class="icon icon-folder"></i>
<a class="article-category-link" href="/categories/Golang/">Golang</a>
</span>
<span class="article-tag">
<i class="icon icon-tags"></i>
<a class="article-tag-link-link" href="/tags/Golang/" rel="tag">Golang</a>
</span>
<span class="post-comment"><i class="icon icon-comment"></i> <a href="/2019/06/go-internal-note/#comments" class="article-comment-link">评论</a></span>
<span class="post-wordcount hidden-xs" itemprop="wordCount">字数统计: 3.4k(字)</span>
</p>
</article>
</div>
<nav class="bar bar-footer clearfix" data-stick-bottom>
<div class="bar-inner">
<ul class="pager pull-left">
<li class="prev">
<a href="/">
<i class="icon icon-angle-left"></i>
上一页
</a>
</li>
<li class="next">
<a href="/page/2/">
下一页
<i class="icon icon-angle-right"></i>
</a>
</li>
</ul>
<div class="total-article bar-right">Page 1 of 6</div>
</div>
</nav>
</main>
<footer class="footer" itemscope itemtype="http://schema.org/WPFooter">
<ul class="social-links">
<li><a href="https://github.com/StdioA" target="_blank" title="Github" data-toggle=tooltip data-placement=top><i class="icon icon-github"></i></a></li>
<li><a href="https://twitter.com/stdio_a" target="_blank" title="Twitter" data-toggle=tooltip data-placement=top><i class="icon icon-twitter"></i></a></li>
<li><a href="/atom.xml" target="_blank" title="Rss" data-toggle=tooltip data-placement=top><i class="icon icon-rss"></i></a></li>
<li><a href="https://t.me/StdioA" target="_blank" title="Telegram" data-toggle=tooltip data-placement=top><i class="icon icon-telegram"></i></a></li>
</ul>
<div class="copyright">
<div class="publishby">
Theme by <a href="https://github.com/cofess" target="_blank"> cofess </a>base on <a href="https://github.com/cofess/hexo-theme-pure" target="_blank">pure</a>.
</div>
</div>
</footer>
<script src="//cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<script>
window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')
</script>
<script src="/js/plugin.min.js"></script>
<script src="/js/application.js"></script>
<script>
(function (window) {
var INSIGHT_CONFIG = {
TRANSLATION: {
POSTS: '文章',
PAGES: '页面',
CATEGORIES: '分类',
TAGS: '标签',
UNTITLED: '(未命名)',
},
ROOT_URL: '/',
CONTENT_URL: '/content.json',
};
window.INSIGHT_CONFIG = INSIGHT_CONFIG;
})(window);
</script>
<script src="/js/insight.js"></script>
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JLS011CGS8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { window.dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-JLS011CGS8');
</script>
<!-- End Google Analytics -->
</body>
</html>