-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1239 lines (770 loc) · 146 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
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
<link rel="dns-prefetch" href="http://yoursite.com">
<title>Raina Blog</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:type" content="website">
<meta property="og:title" content="Raina Blog">
<meta property="og:url" content="http://yoursite.com/index.html">
<meta property="og:site_name" content="Raina Blog">
<meta property="og:locale" content="zh-CN">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Raina Blog">
<link rel="alternative" href="/atom.xml" title="Raina Blog" type="application/atom+xml">
<link rel="icon" href="/assets/img/icecream.ico">
<link rel="stylesheet" type="text/css" href="/./main.266c1c.css">
<style type="text/css">
#container.show {
background: linear-gradient(200deg,#a0cfe4,#e8c37e);
}
</style>
</head>
<body>
<div id="container" q-class="show:isCtnShow">
<canvas id="anm-canvas" class="anm-canvas"></canvas>
<div class="left-col" q-class="show:isShow">
<div class="overlay" style="background: #4d4d4d"></div>
<div class="intrude-less">
<header id="header" class="inner">
<a href="/" class="profilepic">
<img src="/assets/img/icecream.ico" class="js-avatar">
</a>
<hgroup>
<h1 class="header-author"><a href="/">Raina</a></h1>
</hgroup>
<p class="header-subtitle">Let bygones be bygones</p>
<nav class="header-menu">
<ul>
<li><a href="/door/">Home Page</a></li>
<li><a href="/archives/">Archive</a></li>
<li><a href="/about/j">About Me</a></li>
</ul>
</nav>
<nav class="header-smart-menu">
<a q-on="click: openSlider(e, 'innerArchive')" href="javascript:void(0)">All Posts</a>
</nav>
<nav class="header-nav">
<div class="social">
<a class="github" target="_blank" href="https://github.com/irrun" title="github"><i class="icon-github"></i></a>
<a class="linkedin" target="_blank" href="https://www.linkedin.com/in/run-tian-a27888103/" title="linkedin"><i class="icon-linkedin"></i></a>
<a class="weibo" target="_blank" href="http://weibo.com/u/3950009992/home?wvr=5" title="weibo"><i class="icon-weibo"></i></a>
<a class="mail" target="_blank" href="mailto:[email protected]" title="mail"><i class="icon-mail"></i></a>
</div>
</nav>
</header>
</div>
</div>
<div class="mid-col" q-class="show:isShow,hide:isShow|isFalse">
<nav id="mobile-nav">
<div class="overlay js-overlay" style="background: #4d4d4d"></div>
<div class="btnctn js-mobile-btnctn">
<div class="slider-trigger list" q-on="click: openSlider(e)"><i class="icon icon-sort"></i></div>
</div>
<div class="intrude-less">
<header id="header" class="inner">
<div class="profilepic">
<img src="/assets/img/icecream.ico" class="js-avatar">
</div>
<hgroup>
<h1 class="header-author js-header-author">Raina</h1>
</hgroup>
<p class="header-subtitle"><i class="icon icon-quo-left"></i>Let bygones be bygones<i class="icon icon-quo-right"></i></p>
<nav class="header-nav">
<div class="social">
<a class="github" target="_blank" href="https://github.com/irrun" title="github"><i class="icon-github"></i></a>
<a class="linkedin" target="_blank" href="https://www.linkedin.com/in/run-tian-a27888103/" title="linkedin"><i class="icon-linkedin"></i></a>
<a class="weibo" target="_blank" href="http://weibo.com/u/3950009992/home?wvr=5" title="weibo"><i class="icon-weibo"></i></a>
<a class="mail" target="_blank" href="mailto:[email protected]" title="mail"><i class="icon-mail"></i></a>
</div>
</nav>
<nav class="header-menu js-header-menu">
<ul style="width: 70%">
<li style="width: 33.333333333333336%"><a href="/door/">Home Page</a></li>
<li style="width: 33.333333333333336%"><a href="/archives/">Archive</a></li>
<li style="width: 33.333333333333336%"><a href="/about/j">About Me</a></li>
</ul>
</nav>
</header>
</div>
<div class="mobile-mask" style="display:none" q-show="isShow"></div>
</nav>
<div id="wrapper" class="body-wrap">
<div class="menu-l">
<div class="canvas-wrap">
<canvas data-colors="#eaeaea" data-sectionHeight="100" data-contentId="js-content" id="myCanvas1" class="anm-canvas"></canvas>
</div>
<div id="js-content" class="content-ll">
<article id="post-2017summary" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2017/12/31/2017summary/">2017 Summary</a>
</h1>
<a href="/2017/12/31/2017summary/" class="archive-article-date">
<time datetime="2017-12-31T15:36:01.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2017-12-31</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p>时间像流水一样哗哗哗就过去了,受大佬们的启发,以文字祭奠逝去的2017年,留不住岁月,那就纪念它吧!</p>
<h3 id="学习工作"><a class="header-anchor" href="#学习工作">¶</a>学习工作</h3>
<p>2017最大的收获就是来自导师的打击,果然我还是“逆境成才”型选手,虽然高压持续了很久,身心稍微受损,但不得不承认,比起研一松懈的状态,研二这半学年进步了太多,最明显的就是上升几个武力值的互联网时代关键技能之搜索能力。</p>
<p>技术:学了ios开发基础,由于科研紧迫,不得不放弃参与“保单宝”的开发,论文投完以后放松了一周多,归咎于本性的懒惰没有再继续coding<img class="emoji" draggable="false" alt="😭" src="https://twemoji.maxcdn.com/2/72x72/1f62d.png"> ,错失一次上线产品锻炼机会,在这里做出深切的自我diss。计划中每天两道leetcode也断断续续没有一直坚持,希望2018年科研之余能够认真提高技术,面向工作,刷算法,练框架。(点赞赵同学在保证科研输出的同时参与两个工程项目,佩服佩服<img class="emoji" draggable="false" alt="👍" src="https://twemoji.maxcdn.com/2/72x72/1f44d.png"> )</p>
<p>科研:由于能力欠缺,ICDCS的投稿烂得一坨<img class="emoji" draggable="false" alt="💩" src="https://twemoji.maxcdn.com/2/72x72/1f4a9.png"> ,不过还是抱有中short paper的幻想;目前在着手第二篇论文,计划投2月底的ICPP或IWQoS,年关附近,2018的新年必将不轻松了<img class="emoji" draggable="false" alt="😟" src="https://twemoji.maxcdn.com/2/72x72/1f61f.png"> 。据说这两个会议录取率可观,加油好好搞,希望能如愿在暑假前中一篇B类,顺利实习。由于学术界和工业界无法跨越的鸿沟,现在研究的东西只是提高综合能力,对技术主导类的工作没有帮助,尽管这样,还是要把每件事都做踏实,向优秀的战友们学习。</p>
<a class="article-more-a" href="/2017/12/31/2017summary/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color1">essay</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2017/12/31/2017summary/">Show All >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-Swift-starting" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2017/10/24/Swift-starting/">Swift starting</a>
</h1>
<a href="/2017/10/24/Swift-starting/" class="archive-article-date">
<time datetime="2017-10-24T09:05:26.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2017-10-24</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<ol>
<li>
<p>array</p>
<p>声明:</p>
<p>var arr = [1,2,3]</p>
<p>var arr = [Int](repeating: 0, count:3) //[0,0,0]</p>
<p>var arr:[Int]; arr = [] //空数组1</p>
<p>var arr:[Int] = [] //空数组2</p>
<p>var arr = [Int]() //空数组3</p>
<p>var arr = Array<Int>() //空数组4</p>
</li>
</ol>
<ol start="2">
<li>
<p>Optional Type</p>
<p>Int? 等价于 Optional<Int></p>
<p>Int? 类型的变量 oVar 表示 oVar 要嘛包含Int类型的数据,要嘛为nil —— 非Optional Type的变量不能赋值为nil;也就是说,Optional类型允许变量没有值,其它类型如果没有初始化值在使用时会报错 —— 比如通过下标访问数组元素时返回Optional类型,越界时可以返回nil;</p>
<a class="article-more-a" href="/2017/10/24/Swift-starting/#more">more >></a>
</div>
<div class="article-info article-info-index">
<p class="article-more-link">
<a class="article-more-a" href="/2017/10/24/Swift-starting/">Show All >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-Happy-Valley-in-sh" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2017/10/06/Happy-Valley-in-sh/">Happy Valley in sh</a>
</h1>
<a href="/2017/10/06/Happy-Valley-in-sh/" class="archive-article-date">
<time datetime="2017-10-06T14:11:38.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2017-10-06</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p>偷偷回忆了一下寄几的峥嵘岁月:12年国庆南京,全城跑,难忘的年岁,很傻很开心;13年国庆青岛,蹭了好朋友的车,小资旅游初体验;14年国庆北京,还记得南锣鼓巷涌动的人头艰难的步伐…然而年轻的我们并不介意拥挤;15年国庆江浙沪,上海深度游+千岛湖+新叶古村+…;16年国庆回乡游,17年国庆室内游<img class="emoji" draggable="false" alt="😄" src="https://twemoji.maxcdn.com/2/72x72/1f604.png">,好吧都是因为今年投资太狂,经历了一场大封杀,凉了,嗯然而还是要对得起祖国母亲的生日,哦尅一日游走起!连绵大雨后第一个晴天,早起奔向欢乐谷,too young too naive的以为一天能刷完,项目太多人太多,计划流产,总之欢乐谷六个区一天绝对不够用,年卡有存在的道理,三次可以回本。敲黑板,4大过山车必玩,趁着年轻你懂的。</p>
<p><strong>欢乐时光:谷木游龙–天地双雄–摇摆伞</strong></p>
<p>谷木第一个坡吓到我了,全程闭眼不敢叫,一上来就这么刺激QAQ,天地双雄虽然很高,仿佛不那么可怕,摇摆伞就小儿科了。</p>
<p><img src="/assets/blogimg/gumuyoulong.jpg" alt="gumuyoulong"></p>
<a class="article-more-a" href="/2017/10/06/Happy-Valley-in-sh/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color3">leisure</a>
</li>
</ul>
</div>
<div class="article-category tagcloud">
<i class="icon-book icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="/categories/Entertainment/" class="article-tag-list-link color4">Entertainment</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2017/10/06/Happy-Valley-in-sh/">Show All >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-Windows-Usage-Tips" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2017/09/15/Windows-Usage-Tips/">Windows Usage Tips</a>
</h1>
<a href="/2017/09/15/Windows-Usage-Tips/" class="archive-article-date">
<time datetime="2017-09-15T05:57:44.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2017-09-15</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p><strong><a href="http://www.mzone.cc/article/619.html" target="_blank" rel="external">mklink</a> /J dir3 dir1</strong>:创建dir3到dir1的软链接</p>
</div>
<div class="article-info article-info-index">
<p class="article-more-link">
<a class="article-more-a" href="/2017/09/15/Windows-Usage-Tips/">Show All >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-python3" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2017/09/12/python3/">python3 tips</a>
</h1>
<a href="/2017/09/12/python3/" class="archive-article-date">
<time datetime="2017-09-12T12:03:29.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2017-09-12</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p><strong>string</strong>:</p>
<p>string=“runoob”</p>
<p>print(string[2:5])输出<em>noo</em>而不是<em>noob</em>,也就是说只取到下标5之前</p>
<p><strong>list</strong>:</p>
<p>a = [1, 2, 3, 4, 5, 6]</p>
<p>print(a[2:5])输出[3,4,5],也是只取到下标5之前</p>
<p><strong>tuple</strong>:</p>
<p>与list类似,不同之处在于元组的元素不能修改,元组写在小括号**()**里</p>
<p><strong>set</strong>:</p>
<p>使用大括号 { } 或者 set() 函数创建集合,创建一个空集合必须用 set() 而不是 { }, { } 是用来创建一个空字典</p>
<a class="article-more-a" href="/2017/09/12/python3/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color2">python</a>
</li>
</ul>
</div>
<div class="article-category tagcloud">
<i class="icon-book icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="/categories/TechNotes/" class="article-tag-list-link color5">TechNotes</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2017/09/12/python3/">Show All >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-css-tips" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2017/09/08/css-tips/">css tips</a>
</h1>
<a href="/2017/09/08/css-tips/" class="archive-article-date">
<time datetime="2017-09-08T13:12:31.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2017-09-08</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p><a href="http://www.cnblogs.com/linjiqin/p/3556497.html" target="_blank" rel="external">CSS padding margin border属性详解</a></p>
</div>
<div class="article-info article-info-index">
<p class="article-more-link">
<a class="article-more-a" href="/2017/09/08/css-tips/">Show All >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-Hexo+Github搭建个人博客" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2017/08/30/Hexo+Github搭建个人博客/">Hexo+Github开坑记</a>
</h1>
<a href="/2017/08/30/Hexo+Github搭建个人博客/" class="archive-article-date">
<time datetime="2017-08-30T12:46:25.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2017-08-30</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p>Please check <a href="https://hexo.io/docs/" target="_blank" rel="external">Hexo</a> for more info.</p>
<p><a href="http://1.xn--Githubirrun-2o0r039n.github.io" target="_blank" rel="external">1.Github建仓irrun.github.io</a></p>
<p>2.安装nodejs</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line">npm install hexo -g</div><div class="line">hexo version <span class="comment">#查看Hexo的版本</span></div><div class="line">hexo init myblog</div><div class="line"><span class="built_in">cd</span> myblog</div><div class="line">npm install</div></pre></td></tr></table></figure>
<p>修改 _config.yml 建立关联</p>
<a class="article-more-a" href="/2017/08/30/Hexo+Github搭建个人博客/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color5">hexo</a>
</li>
</ul>
</div>
<div class="article-category tagcloud">
<i class="icon-book icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="/categories/TechNotes/" class="article-tag-list-link color5">TechNotes</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2017/08/30/Hexo+Github搭建个人博客/">Show All >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-Autorun-a-python-script-after-reboot-using-rc-local" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2015/09/21/Autorun-a-python-script-after-reboot-using-rc-local/">Autorun a python script after reboot using rc.local</a>
</h1>
<a href="/2015/09/21/Autorun-a-python-script-after-reboot-using-rc-local/" class="archive-article-date">
<time datetime="2015-09-21T07:18:00.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2015-09-21</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p>1./home/lvtest/test/test.py</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line">from datetime import datetime</div><div class="line">now=datetime.now()</div><div class="line">f=open(<span class="string">'test.log'</span>,<span class="string">'a'</span>)</div><div class="line">f.write(<span class="string">'%s '</span>%now)</div><div class="line">f.close()</div></pre></td></tr></table></figure>
<p>2.edit /etc/rc.local with adding codes below:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line"><span class="built_in">cd</span> /home/lvtest/<span class="built_in">test</span></div><div class="line">su lvtest -c <span class="string">"python /home/lvtest/test/test.py"</span></div><div class="line"><span class="built_in">exit</span> 0 <span class="comment"># ? if it is necessary</span></div></pre></td></tr></table></figure>
<p>3.Make your /etc/rc.local executable in case it is not already executable by</p>
<p>sudo chown root /etc/rc.local<br>
sudo chmod 755 /etc/rc.local</p>
<p>4.Check everything works fine by executing</p>
<p>sudo /etc/rc.local start</p>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color1">linux</a>
</li>
</ul>
</div>
<div class="article-category tagcloud">
<i class="icon-book icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="/categories/TechNotes/" class="article-tag-list-link color5">TechNotes</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2015/09/21/Autorun-a-python-script-after-reboot-using-rc-local/">Show All >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-字符串循环移位" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2015/05/24/字符串循环移位/">字符串循环移位</a>
</h1>
<a href="/2015/05/24/字符串循环移位/" class="archive-article-date">
<time datetime="2015-05-24T12:54:00.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2015-05-24</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p>题目示例: “abcdefgh” 循环右移3位得到 “defghabc”</p>
<p>解法一:消耗额外的3个空间,空间复杂度为O(n),当程序运行的空间比较苛刻的时候,不可取。时间复杂度为O(n)</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div></pre></td><td class="code"><pre><div class="line">int <span class="function"><span class="title">main</span></span>(){</div><div class="line"> char <span class="built_in">source</span>[]=<span class="string">"abcdefg"</span>;</div><div class="line"> char *temp=new char[3];</div><div class="line"> int i;</div><div class="line"> <span class="keyword">for</span>(i=0;i<3;i++)temp[i]=<span class="built_in">source</span>[i];</div><div class="line"> <span class="keyword">for</span>(i=0;i<(strlen(<span class="built_in">source</span>)-3);i++)<span class="built_in">source</span>[i]=<span class="built_in">source</span>[i+3];</div><div class="line"> <span class="keyword">for</span>(i=0;i<3;i++)<span class="built_in">source</span>[strlen(<span class="built_in">source</span>)-3+i]=temp[i];</div><div class="line"> cout<<<span class="built_in">source</span><<endl;</div><div class="line">}</div></pre></td></tr></table></figure>
<a class="article-more-a" href="/2015/05/24/字符串循环移位/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color5">algorithm</a>
</li>
</ul>
</div>
<div class="article-category tagcloud">
<i class="icon-book icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="/categories/TechNotes/" class="article-tag-list-link color5">TechNotes</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2015/05/24/字符串循环移位/">Show All >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-2015趋势科技校招笔试面试" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2015/05/19/2015趋势科技校招笔试面试/">2015趋势科技校招笔试面试</a>
</h1>
<a href="/2015/05/19/2015趋势科技校招笔试面试/" class="archive-article-date">
<time datetime="2015-05-19T10:05:00.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2015-05-19</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p>一、笔试</p>
<p>百度文库(趋势科技2015校园招聘笔试题)有很多原题,考的范围很广,计算机网络:协议,c++:继承、字节对齐、二维数组等等,总体一般,不深不浅。贴几道印象深的题:</p>
<p>1.多态类中的虚函数表是Compile-Time,还是Run-Time时建立的?<br>
答案:虚拟函数表是在编译期就建立了,各个虚拟函数这时被组织成了一个虚拟函数的入口地址的数组.而对象的隐藏成员–虚拟函数表指针是在运行期–也就是构造函数被调用时进行初始化的,这是实现多态的关键.</p>
<p>2.一个父类写了一个virtual 函数,如果子类覆盖它的函数不加virtual ,也能实现多态? 在子类的空间里,有没有父类的这个函数,或者父类的私有变量?<br>
答案:只要基类在定义成员函数时已经声明了virtual关键字,在派生类实现的时候覆盖该函数时,virtual关键字可加可不加,不影响多态的实现。子类的空间里有父类的所有变量(static除外)。</p>
<p>3.构造函数可以为虚函数吗?<br>
不能,构造函数是在对象完全构造之前运行的,在构造函数运行的时候,对象的动态类型还不完整。</p>
<a class="article-more-a" href="/2015/05/19/2015趋势科技校招笔试面试/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color5">algorithm</a>
</li>
</ul>
</div>
<div class="article-category tagcloud">
<i class="icon-book icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="/categories/TechNotes/" class="article-tag-list-link color5">TechNotes</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2015/05/19/2015趋势科技校招笔试面试/">Show All >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>