-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
509 lines (424 loc) · 20.2 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
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>小谈博客</title>
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">
<meta name="author" content="tony老师" /><meta name="description" content="一个关注后端开发的博客,主要语言 golang 以及微服务架构。" /><meta name="keywords" content="后端, web, golang, php, mysql, 微服务, k8s" />
<meta name="generator" content="Hugo 0.96.0 with theme even" />
<link rel="canonical" href="https://tanteng.github.io/" />
<link href="https://tanteng.github.io/index.xml" rel="alternate" type="application/rss+xml" title="小谈博客" />
<link href="https://tanteng.github.io/index.xml" rel="feed" type="application/rss+xml" title="小谈博客" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<link href="/sass/main.min.f92fd13721ddf72129410fd8250e73152cc6f2438082b6c0208dc24ee7c13fc4.css" rel="stylesheet">
<link href="https://cdn.bootcdn.net/ajax/libs/fancybox/3.1.20/jquery.fancybox.min.css" rel="stylesheet">
<meta property="og:title" content="小谈博客" />
<meta property="og:description" content="一个关注后端开发的博客,主要语言 golang 以及微服务架构。" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://tanteng.github.io/" />
<meta itemprop="name" content="小谈博客">
<meta itemprop="description" content="一个关注后端开发的博客,主要语言 golang 以及微服务架构。">
<!--[if lte IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="mobile-navbar" class="mobile-navbar">
<div class="mobile-header-logo">
<a href="/" class="logo">小谈博客</a>
</div>
<div class="mobile-navbar-icon">
<span></span>
<span></span>
<span></span>
</div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
<ul class="mobile-menu-list">
<a href="/">
<li class="mobile-menu-item">首页</li>
</a><a href="/posts/">
<li class="mobile-menu-item">归档</li>
</a><a href="/tags/">
<li class="mobile-menu-item">标签</li>
</a><a href="/categories/">
<li class="mobile-menu-item">分类</li>
</a><a href="/about/">
<li class="mobile-menu-item">关于</li>
</a>
</ul>
</nav>
<div class="container" id="mobile-panel">
<header id="header" class="header">
<div class="logo-wrapper">
<a href="/" class="logo">小谈博客</a>
</div>
<nav class="site-navbar">
<ul id="menu" class="menu">
<li class="menu-item">
<a class="menu-item-link" href="/">首页</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/posts/">归档</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/tags/">标签</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/categories/">分类</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/about/">关于</a>
</li>
</ul>
</nav>
</header>
<main id="main" class="main">
<div class="content-wrapper">
<div id="content" class="content">
<section id="posts" class="posts">
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2022/04/hugo-gitment-bad-credentials/">Hugo 安装评论插件 gitment 提示 Bad credentials</a></h1>
<div class="post-meta">
<span class="post-time"> 2022-04-05 </span>
<div class="post-category">
<a href="/categories/website/"> Website </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
Hugo 主题启用评论插件 gitment 后,一直报错 Bad credentials,查看了插件的安装和设置步骤都是无误的,网上也很多文章说到这个报错,但没看到有效的解决方案。前面的两个 OAuth 请求是正常的,应用向 github 发送授权请求,及生成授权码跳转回页面,而获取 access_token 这一步开始报 403 错误。
</div>
<div class="read-more">
<a href="/2022/04/hugo-gitment-bad-credentials/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2022/04/blood-fat/">关于血脂健康的知识</a></h1>
<div class="post-meta">
<span class="post-time"> 2022-04-04 </span>
<div class="post-category">
<a href="/categories/health/"> Health </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
饮食的"高脂蛋白水平"无疑与我们饮食的"高密度"有很大的关系。因此,建议低密度脂蛋白高的人群要学会避免进食,不要吃垃圾食品,不要吃高温、高糖、高盐的食物,要注意多喝水。
</div>
<div class="read-more">
<a href="/2022/04/blood-fat/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2021/11/fry-steak/">记一次煎牛排</a></h1>
<div class="post-meta">
<span class="post-time"> 2022-03-27 </span>
<div class="post-category">
<a href="/categories/life/"> Life </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
记录在家一次煎牛排的 vlog,先用铸铁锅煎至差不多 7 成熟,然后再放空气炸锅“加热”一下,口感很不错。
</div>
<div class="read-more">
<a href="/2021/11/fry-steak/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2021/10/macbook-pro-replace-battery/">Macbook Pro 更换电池</a></h1>
<div class="post-meta">
<span class="post-time"> 2021-10-01 </span>
<div class="post-category">
<a href="/categories/life/"> Life </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
这两台 MacBook Pro 都过保了。 一台是公司的 MacBook Pro 归个人,电池废了,续航只有半个小时; 一台是自用好多年的 MacBook Pro,突然发现底部怎么放不平了,原来是电池老化鼓包了。
</div>
<div class="read-more">
<a href="/2021/10/macbook-pro-replace-battery/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/11/reding-list-39/">本周阅读清单20191130</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-11-30 </span>
<div class="post-category">
<a href="/categories/mysql/"> MySQL </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
1.Uber 的 Go 指导规范 https://github.com/uber-go/guide/blob/master/style.md 2.使用JWT保证服务间通信的安全 https://abekthink.github.io/backend/json-web-token/ 3.MySQL查询对大小写不敏感 https://www.jianshu.com/p/408daf82ac71 4.服务流量限制(漏桶、令牌桶) https://chai2010.cn/advanced-go-programming-book/ch5-web/ch5-06-ratelimit.html 5.为什么推荐Inn
</div>
<div class="read-more">
<a href="/2019/11/reding-list-39/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/08/reding-list-38/">本周阅读清单20190830</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-08-30 </span>
<div class="post-category">
<a href="/categories/laravel/"> Laravel </a>
<a href="/categories/nginx/"> Nginx </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
1.HTTP 代理原理及实现 https://imququ.com/post/web-proxy.html 2.为什么使用通信来共享内存? https://draveness.me/whys-the-design-communication-shared-memory 3.深入理解Go-defer的原理剖析 https://juejin.im/post/5d71d1edf265da03e52356fb 4.Nginx实现JWT验证-基于OpenRest
</div>
<div class="read-more">
<a href="/2019/08/reding-list-38/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/08/reding-list-37/">本周阅读清单20190808</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-08-08 </span>
<div class="post-category">
<a href="/categories/php/"> PHP </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
1.PHP 正则 preg_match 匹配长度限制 https://learnku.com/articles/7193/php-regular-preg-match-matching-length-limit 2.深悉正则(pcre)最大回溯/递归限制 http://www.laruence.com/2010/06/08/1579.html 3.Redis的内存优化 https://cachecloud.github.io/2017/02/16/Redis%E5%86%85%E5%AD%98%E4%BC%98%E5%8C%96 4.Content-Disposition 的 filename 与 filename* 区别 https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/Content-Disposition 5.Redis Scan 命令原理 https://segmentfault.com/a/1190000018218584 6.Redis 字典的遍历 dictScan 算法
</div>
<div class="read-more">
<a href="/2019/08/reding-list-37/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/07/reding-list-36/">本周阅读清单20190731</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-07-31 </span>
<div class="post-category">
<a href="/categories/golang/"> Golang </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
1.Golang调度器 https://www.jianshu.com/p/1288b8fec84d 2.也谈 goroutine 调度器 https://tonybai.com/2017/06/23/an-intro-about-goroutine-scheduler/ 3.[翻译]The Go scheduler https://hxzhao527.github.io/2018/10/18/%E7%BF%BB%E8%AF%91-The-Go-scheduler/ 4.深入 golang runtime 的调度 https://zboya.github.io/post/go_scheduler/ 5.Goroutine浅析 https://studygolang.com/articles/12003
</div>
<div class="read-more">
<a href="/2019/07/reding-list-36/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/07/reding-list-35/">本周阅读清单20190712</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-07-12 </span>
<div class="post-category">
<a href="/categories/golang/"> Golang </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
1.Charles 从入门到精通 https://blog.devtang.com/2015/11/14/charles-introduction/ 2.Git如何永久删除文件(包括历史记录) https://www.cnblogs.com/shines77/p/3460274.html 3.Go 编程:图解反射 https://studygolang.com/articles/21936 4.Go并发编程模型:pipeline和cancellatio
</div>
<div class="read-more">
<a href="/2019/07/reding-list-35/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/06/reding-list-34/">本周阅读清单20190620</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-06-20 </span>
<div class="post-category">
<a href="/categories/mysql/"> MySQL </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
1.MySQL商品库存扣减问题总结 https://zhaoyixing.coding.me/2018/01/10/mysql-update-safe-md/ 2.MySQL死锁问题分析 https://www.cnblogs.com/LBSer/p/5183300.html 3.[译] Go: 理解 Sync.Pool 的设计 https://studygolang.com/articles/21122 4.epoll 或者 kqueue 的原理是什么? https://www.zhihu.com/question/20122137/answer/14049112 5.深入理解 MySQL ―― 锁、事务
</div>
<div class="read-more">
<a href="/2019/06/reding-list-34/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/05/reding-list-33/">本周阅读清单20190508</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-05-08 </span>
<div class="post-category">
<a href="/categories/golang/"> Golang </a>
<a href="/categories/php/"> PHP </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
1.深入理解GO时间处理(time.Time) https://studygolang.com/articles/11975 2.上云,你需要了解的AK使用姿势 https://yq.aliyun.com/articles/55947 3.高并发集中访问造成连接MYSQL报Cannot assign requested a
</div>
<div class="read-more">
<a href="/2019/05/reding-list-33/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/04/reding-list-32/">本周阅读清单20190408</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-04-08 </span>
<div class="post-category">
<a href="/categories/golang/"> Golang </a>
<a href="/categories/redis/"> Redis </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
1.Redis Stream——作为消息队列的典型应用场景 https://yq.aliyun.com/articles/603193 2.深夜学算法之 Skiplist:让链表飞 https://www.jianshu.com/p/fcd18946994e 3.Redis Zset 内部实现 https://zsr.github.io/2017/07/03/redis-zset%E5%86%85%E9%83%A8%E5%AE%9E%E7%8E%B0/ 4.函数调用中的栈帧 https://labrick.cc/2018/06/24/stack-in-call-func/ 5.Go高性能
</div>
<div class="read-more">
<a href="/2019/04/reding-list-32/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/03/reding-list-31/">本周阅读清单20190322</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-03-22 </span>
<div class="post-category">
<a href="/categories/golang/"> Golang </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
1.深入解析 Go 总 Slice 底层实现 https://halfrost.com/go_slice/ 2.深度解密Go语言之关于 interface 的10个问题 https://www.cnblogs.com/qcrao-2018/p/10766091.html 3.Type assertions in Go https://medium.com/golangspec/type-assertions-in-go-e609759c42e1 4.Hive SQL 的编译过程 https://tech.meituan.com/2014/02/12/hive-sql-to-mapreduce.html 5.经济学十大定律-边际收益递减定律 https://xueqiu.com/1084912228/108513216
</div>
<div class="read-more">
<a href="/2019/03/reding-list-31/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/03/reding-list-30/">本周阅读清单20190305</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-03-05 </span>
<div class="post-category">
<a href="/categories/golang/"> Golang </a>
<a href="/categories/php/"> PHP </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
1.探索 Golang 一致性原语 https://wweir.cc/post/%E6%8E%A2%E7%B4%A2-golang-%E4%B8%80%E8%87%B4%E6%80%A7%E5%8E%9F%E8%AF%AD/ 2.My Standout Features in PHP7 https://medium.com/@jodylecompte/my-standout-features-in-php7-80ccd2763c55 3.为什么遍历 Go map 是无序的? https://segmentfault.com/a/1190000018782278 4.我的游戏人生 http://miloyip.com/2010/my-life-as-a-game/ 5.String Data Type in Go https://medium.com/rungo/string-data-type-in-go-8af2b639478 6.PHP中处理Protocol Buffers
</div>
<div class="read-more">
<a href="/2019/03/reding-list-30/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/02/reding-list-29/">本周阅读清单20190225</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-02-25 </span>
<div class="post-category">
<a href="/categories/golang/"> Golang </a>
<a href="/categories/mysql/"> MySQL </a>
</div>
</div>
</header>
<div class="post-content">
<div class="post-summary">
1.前缀索引,一种优化索引大小的解决方案 http://www.cnblogs.com/studyzy/p/4310653.html 2.[译]Go 调度器: M, P 和 G https://colobu.com/2017/05/04/go-scheduler/ 3.gRPC 安全认证 https://yuanxuxu.com/2018/11/21/grpc-token/ 4.Go 语言 Channel 实现原理精要 https://draveness.me/golang-channel 5.Go modules 详解 http://objcoding.com/2018/09/13/go-modules/
</div>
<div class="read-more">
<a href="/2019/02/reding-list-29/" class="read-more-link">阅读更多</a>
</div>
</div>
</article>
</section>
<nav class="pagination">
<a class="next" href="/page/2/">
<span class="next-text">下一页</span>
<i class="iconfont icon-right"></i>
</a>
</nav>
</div>
</div>
</main>
<footer id="footer" class="footer">
<div class="social-links">
<a href="mailto:tanteng@gmail.com" class="iconfont icon-email" title="email"></a>
<a href="https://weibo.com/tanteng" class="iconfont icon-weibo" title="weibo"></a>
<a href="https://www.instagram.com/tanteng1031/" class="iconfont icon-instagram" title="instagram"></a>
<a href="https://tanteng.github.io/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>
<div class="copyright">
<span class="power-by">
由 <a class="hexo-link" href="https://gohugo.io">Hugo</a> 强力驱动
</span>
<span class="division">|</span>
<span class="theme-info">
主题 -
<a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
</span>
<span class="copyright-year">
©
2017 -
2022<span class="heart"><i class="iconfont icon-heart"></i></span><span>tony老师</span>
</span>
</div>
</footer>
<div class="back-to-top" id="back-to-top">
<i class="iconfont icon-up"></i>
</div>
</div>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/slideout/1.0.1/slideout.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/fancybox/3.1.20/jquery.fancybox.min.js"></script>
<script type="text/javascript" src="/js/main.min.64437849d125a2d603b3e71d6de5225d641a32d17168a58106e0b61852079683.js"></script>
</body>
</html>