-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
559 lines (284 loc) · 15.1 KB
/
index.html
File metadata and controls
559 lines (284 loc) · 15.1 KB
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
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>7byte</title>
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<meta name="author" content="7byte">
<meta name="description" content="骐骥一跃,不能十步;驽马十驾,功在不舍">
<meta property="og:type" content="website">
<meta property="og:title" content="7byte">
<meta property="og:url" content="https://7byte.github.io/index.html">
<meta property="og:site_name" content="7byte">
<meta property="og:description" content="骐骥一跃,不能十步;驽马十驾,功在不舍">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="7byte">
<meta name="twitter:description" content="骐骥一跃,不能十步;驽马十驾,功在不舍">
<link rel="alternative" href="/atom.xml" title="7byte" type="application/atom+xml">
<link rel="icon" href="/img/favicon.ico">
<link rel="apple-touch-icon" href="/img/jacman.jpg">
<link rel="apple-touch-icon-precomposed" href="/img/jacman.jpg">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<header>
<div>
<div id="textlogo">
<h1 class="site-name"><a href="/" title="7byte">7byte</a></h1>
<h2 class="blog-motto">骐骥一跃,不能十步;驽马十驾,功在不舍</h2>
</div>
<div class="navbar"><a class="navbutton navmobile" href="#" title="菜单">
</a></div>
<nav class="animated">
<ul>
<ul>
<li><a href="/">主页</a></li>
<li><a href="/archives">存档</a></li>
<li><a href="/categories">分类</a></li>
<li><a href="/tags">标签</a></li>
<li><a href="/about">About</a></li>
<li>
<form class="search" action="/search/index.html" method="get" accept-charset="utf-8">
<label>Search</label>
<input type="search" id="search" autocomplete="off" name="q" maxlength="20" placeholder="搜索" />
</form>
</li>
</ul>
</nav>
</div>
</header>
<div id="container">
<div id="main">
<section class="post" itemscope itemprop="blogitem">
<a href="/2019/05/09/protobuf-encoding/" title="protobuf编码" itemprop="url">
<h1 itemprop="name">protobuf编码</h1>
<p itemprop="description" >英文原文:https://developers.google.com/protocol-buffers/docs/encoding
本文描述了protocol buffer 消息的二进制格式。当你在你的应用中使用protocol buffer 时无需了解这些细节。但是,要想理解</p>
<time datetime="2019-05-09T04:21:27.000Z" itemprop="datePublished">2019-05-09</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2019/04/16/introduce2skynet/" title="轻量级在线游戏服务器框架skynet" itemprop="url">
<h1 itemprop="name">轻量级在线游戏服务器框架skynet</h1>
<p itemprop="description" >skynet是什么
按照作者的说法,skynet是一个轻量级的为在线游戏服务器打造的框架 。
skynet可以做什么skynet怎么用常用Lua API
skynet.newservice(name, …) 启动一个名为 name 的新服务
skynet.start(func)</p>
<time datetime="2019-04-16T03:30:27.000Z" itemprop="datePublished">2019-04-16</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2018/05/20/golangPackageInit/" title="golang包初始化" itemprop="url">
<h1 itemprop="name">golang包初始化</h1>
<p itemprop="description" >相比于C/C++等语言,Golang提供了一个非常重要的特性:包。包可以提供类似其它编程语言中的库或者模块的功能,这在Java和Python等语言中已经很常见,但是golang的包自有其特点,比如禁止循环引用、通过首字母大小写区分可见性而不是使用public和private这样的</p>
<time datetime="2018-05-20T09:16:27.000Z" itemprop="datePublished">2018-05-20</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2018/04/16/binary-search-tree/" title="二叉查找树(BST)" itemprop="url">
<h1 itemprop="name">二叉查找树(BST)</h1>
<p itemprop="description" >二叉查找树定义
二叉查找树(英语:Binary Search Tree),也称二叉搜索树、有序二叉树(英语:ordered binary tree),排序二叉树(英语:sorted binary tree),是指一棵空树或者具有下列性质的二叉树:
若任意节点的左子树不空,则左子</p>
<time datetime="2018-04-16T03:30:27.000Z" itemprop="datePublished">2018-04-16</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2018/03/05/trytouse-conn-pool/" title="openresty中连接池的应用" itemprop="url">
<h1 itemprop="name">openresty中连接池的应用</h1>
<p itemprop="description" >在各种形式的数据交互中,创建连接、传输数据、销毁连接这三个步骤都是必不可少的。但是,当并发量持续增加时,耗费在创建和销毁连接上的时间将越来越不容忽视,所以理想中的情况应该是这样:创建连接-传输数据-……-传输数据-销毁连接。连接池正是为了解决这种问题而产生的技术。在 OpenRe</p>
<time datetime="2018-03-05T07:16:27.000Z" itemprop="datePublished">2018-03-05</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2018/01/05/distanceoftwocity/" title="根据经纬度计算两个城市间的距离" itemprop="url">
<h1 itemprop="name">根据经纬度计算两个城市间的距离</h1>
<p itemprop="description" >非常简单的golang小练习,这个问题最大的难点在于求两点的球面距离,所以这实际上是一道立体几何题,当然如果不记得公式咱们可以百度……废话不多说了,直接上代码。
city.go1234567891011121314151617181920212223242526272829303</p>
<time datetime="2018-01-05T08:16:27.000Z" itemprop="datePublished">2018-01-05</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2017/12/11/nginx-reverse-proxy/" title="nginx反向代理" itemprop="url">
<h1 itemprop="name">nginx反向代理</h1>
<p itemprop="description" >英文原文:https://www.nginx.com/resources/admin-guide/reverse-proxy/
本文描述了代理服务器的基本配置。你将学会怎样使用各种协议把一个请求从NGINX转发到代理服务器、怎样修改发送给代理服务器的客户端请求头,以及怎样为来自</p>
<time datetime="2017-12-11T03:16:27.000Z" itemprop="datePublished">2017-12-11</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2017/01/17/trytouse-gzip/" title="nginx gzip" itemprop="url">
<h1 itemprop="name">nginx gzip</h1>
<p itemprop="description" >nginx gzip
The ngx_http_gzip_module module is a filter that compresses responses using the “gzip” method. This often helps to reduce the siz</p>
<time datetime="2017-01-17T07:21:27.000Z" itemprop="datePublished">2017-01-17</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2017/01/14/trytouse-golang/" title="golang环境搭建" itemprop="url">
<h1 itemprop="name">golang环境搭建</h1>
<p itemprop="description" >最近由于工作上的原因开始接触golang,虽然早前就已听说golang的大名,但是也仅仅只有一个大概的印象,比如其对C语言系程序员来说别扭的声明、集其它程序语言优秀设计于一身的大杂烩式语法、天生的并发机制、谷歌亲爹的强大背景。毫无疑问这是一门实用至上的语言,非常值得学习。本文记录</p>
<time datetime="2017-01-14T06:33:04.000Z" itemprop="datePublished">2017-01-14</time>
</a>
</section>
<section class="post" itemscope itemprop="blogitem">
<a href="/2017/01/12/trytouse-wrk/" title="wrk压力测试" itemprop="url">
<h1 itemprop="name">wrk压力测试</h1>
<p itemprop="description" >wrk是一个开源的http性能测试工具,项目在github维护wrk的使用非常简单,首先需要已经安装了git,gcc这两个基础工具,然后依次执行下面的3个命令:123$ git clone https://github.com/wg/wrk.git $ cd wrk $ ma</p>
<time datetime="2017-01-12T07:12:27.000Z" itemprop="datePublished">2017-01-12</time>
</a>
</section>
<nav id="page-nav" class="clearfix unexpand">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="extend next" rel="next" href="/page/2/">Next<span></span></a>
</nav>
</div>
<div class="openaside"><a class="navbutton" href="#" title="显示侧边栏"></a></div>
<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="隐藏侧边栏"></a></div>
<aside class="clearfix">
<div class="categorieslist">
<p class="asidetitle">分类</p>
<ul>
<li><a href="/categories/golang/" title="golang">golang<sup>3</sup></a></li>
<li><a href="/categories/openresty/" title="openresty">openresty<sup>5</sup></a></li>
<li><a href="/categories/性能测试/" title="性能测试">性能测试<sup>1</sup></a></li>
<li><a href="/categories/myBlog/" title="搭建个人博客">搭建个人博客<sup>1</sup></a></li>
<li><a href="/categories/算法/" title="算法">算法<sup>3</sup></a></li>
</ul>
</div>
<div class="tagslist">
<p class="asidetitle">标签</p>
<ul class="clearfix">
<li><a href="/tags/nginx/" title="nginx">nginx<sup>5</sup></a></li>
<li><a href="/tags/openresty/" title="openresty">openresty<sup>4</sup></a></li>
<li><a href="/tags/golang/" title="golang">golang<sup>3</sup></a></li>
<li><a href="/tags/性能测试/" title="性能测试">性能测试<sup>2</sup></a></li>
<li><a href="/tags/树/" title="树">树<sup>1</sup></a></li>
<li><a href="/tags/搜索/" title="搜索">搜索<sup>1</sup></a></li>
<li><a href="/tags/反向代理/" title="反向代理">反向代理<sup>1</sup></a></li>
<li><a href="/tags/动态追踪/" title="动态追踪">动态追踪<sup>1</sup></a></li>
<li><a href="/tags/github/" title="github">github<sup>1</sup></a></li>
<li><a href="/tags/hexo/" title="hexo">hexo<sup>1</sup></a></li>
</ul>
</div>
<div class="linkslist">
<p class="asidetitle">友情链接</p>
<ul>
<li>
<a href="https://github.com/7byte" target="_blank" title="GitHub of 7byte">GitHub of 7byte</a>
</li>
<li>
<a href="http://zzhangzhiqi.lofter.com" target="_blank" title="程序猿也玩摄影">程序猿也玩摄影</a>
</li>
</ul>
</div>
</aside>
</div>
</div>
<footer><div id="footer" >
<div class="social-font" class="clearfix">
<a href="https://github.com/7byte" target="_blank" class="icon-github" title="github"></a>
<a href="mailto:zzhangzhiqi@gmail.com" target="_blank" class="icon-email" title="Email Me"></a>
</div>
<div class="cc-license">
<a href="http://creativecommons.org/licenses/by-nc-sa/4.0" class="cc-opacity" target="_blank">
<img src="/img/cc-by-nc-sa.svg" alt="Creative Commons" />
</a>
</div>
<p class="copyright">
Powered by <a href="http://hexo.io" target="_blank" title="hexo">hexo</a> and Theme by <a href="https://github.com/wuchong/jacman" target="_blank" title="Jacman">Jacman</a> © 2019
<a href="/about" target="_blank" title="7byte">7byte</a>
</p>
</div>
</footer>
<script src="/js/jquery-2.0.3.min.js"></script>
<script src="/js/jquery.imagesloaded.min.js"></script>
<script src="/js/gallery.js"></script>
<script src="/js/jquery.qrcode-0.12.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.navbar').click(function(){
$('header nav').toggleClass('shownav');
});
var myWidth = 0;
function getSize(){
if( typeof( window.innerWidth ) == 'number' ) {
myWidth = window.innerWidth;
} else if( document.documentElement && document.documentElement.clientWidth) {
myWidth = document.documentElement.clientWidth;
};
};
var m = $('#main'),
a = $('#asidepart'),
c = $('.closeaside'),
o = $('.openaside');
c.click(function(){
a.addClass('fadeOut').css('display', 'none');
o.css('display', 'block').addClass('fadeIn');
m.addClass('moveMain');
});
o.click(function(){
o.css('display', 'none').removeClass('beforeFadeIn');
a.css('display', 'block').removeClass('fadeOut').addClass('fadeIn');
m.removeClass('moveMain');
});
$(window).scroll(function(){
o.css("top",Math.max(80,260-$(this).scrollTop()));
});
//
$(window).resize(function(){
getSize();
if (myWidth >= 1024) {
$('header nav').removeClass('shownav');
}else{
m.removeClass('moveMain');
a.css('display', 'block').removeClass('fadeOut');
o.css('display', 'none');
}
});
});
</script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css" media="screen" type="text/css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.article-content').each(function(i){
$(this).find('img').each(function(){
if ($(this).parent().hasClass('fancybox')) return;
var alt = this.alt;
if (alt) $(this).after('<span class="caption">' + alt + '</span>');
$(this).wrap('<a href="' + this.src + '" title="' + alt + '" class="fancybox"></a>');
});
$(this).find('.fancybox').each(function(){
$(this).attr('rel', 'article' + i);
});
});
if($.fancybox){
$('.fancybox').fancybox();
}
});
</script>
<!-- Analytics Begin -->
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-87803879-1', '7byte.github.io');
ga('send', 'pageview');
</script>
<!-- Analytics End -->
<!-- Totop Begin -->
<div id="totop">
<a title="返回顶部"><img src="/img/scrollup.png"/></a>
</div>
<script src="/js/totop.js"></script>
<!-- Totop End -->
<!-- MathJax Begin -->
<!-- mathjax config similar to math.stackexchange -->
<!-- MathJax End -->
<!-- Tiny_search Begin -->
<!-- Tiny_search End -->
</body>
</html>