/
index.html
1268 lines (890 loc) · 57.3 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 lang="zh-CN">
<head>
<!-- hexo-inject:begin --><!-- hexo-inject:end --><meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#222" media="(prefers-color-scheme: dark)"><meta name="generator" content="Hexo 5.4.2">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
<link rel="mask-icon" href="/images/logo.svg" color="#222">
<meta name="google-site-verification" content="b7JVQn8OvgfruYi3AhjeMcpf5MqsPknjvF4qzhP5Q6A">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha256-HtsXJanqjKTc8vVQjO4YMhiqFoXkfBsjBWcX91T1jr8=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancyapps-ui/5.0.20/fancybox/fancybox.css" integrity="sha256-RvRHGSuWAxZpXKV9lLDt2e+rZ+btzn48Wp4ueS3NZKs=" crossorigin="anonymous">
<script class="next-config" data-name="main" type="application/json">{"hostname":"firestudio.cn","root":"/","images":"/images","scheme":"Gemini","darkmode":true,"version":"8.18.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":{"enable":false,"style":null},"fold":{"enable":false,"height":500},"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"menu_item":"fadeInDown","post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果:${query}","hits_time":"找到 ${hits} 个搜索结果(用时 ${time} 毫秒)","hits":"找到 ${hits} 个搜索结果"}}</script><script src="/js/config.js"></script>
<meta name="description" content="iOS Developer">
<meta property="og:type" content="website">
<meta property="og:title" content="Fire Studio">
<meta property="og:url" content="http://firestudio.cn/index.html">
<meta property="og:site_name" content="Fire Studio">
<meta property="og:description" content="iOS Developer">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="Yozone W.">
<meta property="article:tag" content="iOS, OS X, Objective-C, Swift, Xcode and so on.">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="http://firestudio.cn/">
<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":true,"isPost":false,"lang":"zh-CN","comments":"","permalink":"","path":"index.html","title":""}</script>
<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>Fire Studio</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-1990573-3"></script>
<script class="next-config" data-name="google_analytics" type="application/json">{"tracking_id":"UA-1990573-3","only_pageview":false}</script>
<script src="/js/third-party/analytics/google-analytics.js"></script>
<script src="/js/third-party/analytics/baidu-analytics.js"></script>
<script async src="https://hm.baidu.com/hm.js?9ebf7a216144a17f1a6367e562014adf"></script>
<noscript>
<link rel="stylesheet" href="/css/noscript.css">
</noscript>
<link rel="alternate" href="/atom.xml" title="Fire Studio" type="application/atom+xml"><!-- hexo-inject:begin --><!-- hexo-inject:end -->
</head>
<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
<!-- hexo-inject:begin --><!-- hexo-inject:end --><div class="headband"></div>
<main class="main">
<div class="column">
<header class="header" itemscope itemtype="http://schema.org/WPHeader"><div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="切换导航栏" role="button">
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
</div>
</div>
<div class="site-meta">
<a href="/" class="brand" rel="start">
<i class="logo-line"></i>
<h1 class="site-title">Fire Studio</h1>
<i class="logo-line"></i>
</a>
<p class="site-subtitle" itemprop="description">记录,学习,成长</p>
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger" aria-label="搜索" role="button">
</div>
</div>
</div>
<nav class="site-nav">
<ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li><li class="menu-item menu-item-about"><a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a></li><li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a></li><li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a></li><li class="menu-item menu-item-archives"><a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a></li><li class="menu-item menu-item-sitemap"><a href="/sitemap.xml" rel="section"><i class="fa fa-sitemap fa-fw"></i>站点地图</a></li>
</ul>
</nav>
</header>
<aside class="sidebar">
<div class="sidebar-inner sidebar-overview-active">
<ul class="sidebar-nav">
<li class="sidebar-nav-toc">
文章目录
</li>
<li class="sidebar-nav-overview">
站点概览
</li>
</ul>
<div class="sidebar-panel-container">
<!--noindex-->
<div class="post-toc-wrap sidebar-panel">
</div>
<!--/noindex-->
<div class="site-overview-wrap sidebar-panel">
<div class="site-author animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="site-author-image" itemprop="image" alt="Yozone W."
src="/images/avatar.jpg">
<p class="site-author-name" itemprop="name">Yozone W.</p>
<div class="site-description" itemprop="description">iOS Developer</div>
</div>
<div class="site-state-wrap animated">
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">15</span>
<span class="site-state-item-name">日志</span>
</a>
</div>
<div class="site-state-item site-state-categories">
<a href="/categories/">
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">分类</span></a>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">12</span>
<span class="site-state-item-name">标签</span></a>
</div>
</nav>
</div>
<div class="links-of-author animated">
<span class="links-of-author-item">
<a href="https://github.com/azone" title="GitHub → https://github.com/azone" rel="noopener me" target="_blank"><i class="fab fa-github fa-fw"></i></a>
</span>
<span class="links-of-author-item">
<a href="mailto:wangyaozh@gmail.com" title="E-Mail → mailto:wangyaozh@gmail.com" rel="noopener me" target="_blank"><i class="fa fa-envelope fa-fw"></i></a>
</span>
<span class="links-of-author-item">
<a href="https://weibo.com/azone163" title="Weibo → https://weibo.com/azone163" rel="noopener me" target="_blank"><i class="fab fa-weibo fa-fw"></i></a>
</span>
<span class="links-of-author-item">
<a href="https://twitter.com/azone163" title="Twitter → https://twitter.com/azone163" rel="noopener me" target="_blank"><i class="fab fa-twitter fa-fw"></i></a>
</span>
</div>
<div class="motion-element">
<img src="/images/mp_qr_code.jpg" />
</div>
</div>
</div>
</div>
<div class="sidebar-inner sidebar-blogroll">
<div class="links-of-blogroll animated">
<div class="links-of-blogroll-title"><i class="fa fa-globe fa-fw"></i>
链接
</div>
<ul class="links-of-blogroll-list">
<li class="links-of-blogroll-item">
<a href="http://www.jiangle.name/" title="http://www.jiangle.name/" rel="noopener" target="_blank">江乐的博客</a>
</li>
<li class="links-of-blogroll-item">
<a href="http://blog.makeex.com/" title="http://blog.makeex.com/" rel="noopener" target="_blank">Sun.Makee</a>
</li>
<li class="links-of-blogroll-item">
<a href="http://liuduo.me/" title="http://liuduo.me/" rel="noopener" target="_blank">刘铎.Me</a>
</li>
</ul>
</div>
</div>
</aside>
</div>
<div class="main-inner index posts-expand">
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://firestudio.cn/2023/09/02/some-pain-points-encountered-in-the-use-of-arc-browser/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Yozone W.">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Fire Studio">
<meta itemprop="description" content="iOS Developer">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Fire Studio">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2023/09/02/some-pain-points-encountered-in-the-use-of-arc-browser/" class="post-title-link" itemprop="url">Arc 浏览器使用过程中遇到的一些痛点</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2023-09-02 18:01:28 / 修改时间:18:18:39" itemprop="dateCreated datePublished" datetime="2023-09-02T18:01:28+08:00">2023-09-02</time>
</span>
<span id="/2023/09/02/some-pain-points-encountered-in-the-use-of-arc-browser/" class="post-meta-item leancloud_visitors" data-flag-title="Arc 浏览器使用过程中遇到的一些痛点" title="阅读次数">
<span class="post-meta-item-icon">
<i class="far fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>几个月前写了一篇赞美 Arc 文章:《<a target="_blank" rel="noopener" href="https://mp.weixin.qq.com/s?__biz=MzkzMTQ5NjEzOQ==&mid=2247483666&idx=1&sn=a3489959380c80bbcd1e4fced3fd3806&chksm=c26b68b6f51ce1a093534052eceaa98a9c0babc3ece19af0e55f9cacd1d846cad00395272657&token=428952668&lang=zh_CN#rd">Arc——一个颠覆传统的浏览器</a>》,然而再好的东西用久了其不足的一面也会暴露出来。经过这么久的使用,大致总结了一些我认为不足的地方,有些也给他们提过反馈,希望在后续的版本中会有所改善吧。</p>
<h3 id="垃圾的下载体验和管理"><a class="markdownIt-Anchor" href="#垃圾的下载体验和管理"></a> 垃圾的下载体验和管理</h3>
<p>这个不得不吐槽,Arc 的下载体验是真的垃圾,都不能用差来说了。下面列出几点不能忍的部分:</p>
<ul>
<li>下载只能取消下载,不能暂停和继续;</li>
<li>下载失败也不能断点续传;</li>
<li>下载的项目也无法查看和拷贝下载地址;</li>
<li>也没有一键清除列表的按钮。</li>
</ul>
<p>这些问题给他们反馈过,他们让我等待后续更新,这是 6 月 19 号的事了,现在还没有任何改进。另外还有一个问题是其媒体库显示的不是通过 Arc 保存的,而是所有的。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2023/09/02/some-pain-points-encountered-in-the-use-of-arc-browser/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://firestudio.cn/2023/08/30/why-are-all-large-domestic-websites-abusing-target-blank/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Yozone W.">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Fire Studio">
<meta itemprop="description" content="iOS Developer">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Fire Studio">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2023/08/30/why-are-all-large-domestic-websites-abusing-target-blank/" class="post-title-link" itemprop="url">为什么国内的大型网站都在滥用 target="_blank"</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2023-08-30 21:24:22" itemprop="dateCreated datePublished" datetime="2023-08-30T21:24:22+08:00">2023-08-30</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2023-08-31 21:21:58" itemprop="dateModified" datetime="2023-08-31T21:21:58+08:00">2023-08-31</time>
</span>
<span id="/2023/08/30/why-are-all-large-domestic-websites-abusing-target-blank/" class="post-meta-item leancloud_visitors" data-flag-title="为什么国内的大型网站都在滥用 target="_blank"" title="阅读次数">
<span class="post-meta-item-icon">
<i class="far fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>也可能最近才注意到这个事情,发现国内各大主流网站全部在滥用 <code>a</code> 标签的 <code>target="_blank"</code> 属性,我最近试了很多个网站,包括但不仅限于 <a target="_blank" rel="noopener" href="https://www.bilibili.com/">哔哩哔哩</a>、<a target="_blank" rel="noopener" href="https://www.163.com">网易</a>、<a target="_blank" rel="noopener" href="https://www.sina.com.cn/">新浪网</a>、<a target="_blank" rel="noopener" href="https://www.qq.com/">腾讯网</a>、<a target="_blank" rel="noopener" href="https://www.toutiao.com/">今日头条</a>等。这个是相当烦人的,我在这些网站上点击任意一个连接,全部是打开新的标签页或者窗口,浏览下来不一会就全是标签页。我在想,国内的这些人一点都不注重用户体验吗?这么害怕用户从网页跳走吗?难道不知道如果用户想在新标签页打开可以在连接上按一下鼠标滚轮吗?不知道用户想在新标签页打开可以按住 <code>Command + 点击</code> 吗?真的觉得很多国内的厂商都是臭不要脸,类似于像开屏广告以及各个视频平台的广告一样,玩出各种花来,为的是从用户身上挖出剩余价值,什么用户体验,都是次要的,反正你有离不开我。</p>
<p>今天真是越想越气不过,花了点时间写了个油猴脚本来解决这个问题:</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2023/08/30/why-are-all-large-domestic-websites-abusing-target-blank/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://firestudio.cn/2023/07/28/manage-commands-using-just/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Yozone W.">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Fire Studio">
<meta itemprop="description" content="iOS Developer">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Fire Studio">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2023/07/28/manage-commands-using-just/" class="post-title-link" itemprop="url">用 just 组织和管理常用命令集</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2023-07-28 22:05:41 / 修改时间:22:12:18" itemprop="dateCreated datePublished" datetime="2023-07-28T22:05:41+08:00">2023-07-28</time>
</span>
<span id="/2023/07/28/manage-commands-using-just/" class="post-meta-item leancloud_visitors" data-flag-title="用 just 组织和管理常用命令集" title="阅读次数">
<span class="post-meta-item-icon">
<i class="far fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>在日常使用电脑的过程中,经常会用到一些命令,并且可能要将一组命令结合才能完成自己想要的结果。如果常用的一些命令(组合)每次使用都重新敲的话,势必会影响效率。此时你可能会想到类似于 <a target="_blank" rel="noopener" href="https://www.gnu.org/software/make/" title="make">make</a> 这样的工具,当然这也是一个选择,但是 make 的缺点也是显而易见的(有兴趣的可以通过 <a target="_blank" rel="noopener" href="https://seisman.github.io/how-to-write-makefile/introduction.html" title="makefile介绍 — 跟我一起写Makefile 1.0 文档">makefile 介绍 — 跟我一起写 Makefile 1.0 文档</a> 来入门)。几个月前我无意中发现了<a target="_blank" rel="noopener" href="https://just.systems/" title="just">just</a>,感觉在日常使用中完全可以替代 make。</p>
<p>just 语法和 make 很类似,如果你有 make 基础的话,可以很快上手。下面简单介绍一下 just 的用法以及和 make 的一些区别(首先一个区别是 Makefile 中每个执行项叫做目标(target),而 just 中叫做配方(recipe)):</p>
<ul>
<li>
<p>首先 just 和 make 一样,需要一个 Justfile(make 是 Makefile,just 这个文件的文件名可以是 Justfile、justfile 或者 .justfile 等),不区分大小写,可以在前面加个<code>.</code>来隐藏这个文件。<strong>just 会从当前目录向上查找 justfile 文件,而 make 不会。</strong> 这就意味着只有某一个父级目录存在一个 justfile 文件,那就可以执行该 justfile 里的相关的代码。</p>
</li>
<li>
<p>如果 Makefile 的在当前目录下存在一个文件,这个文件和某个 target 名称相同,则这个 target 就不会执行,并且打印出错误信息:<code>make: xxx' is up to date.</code>,此时你需要在 Makefile 文件中加上一样 <code>.PHONY xxx</code> 来防止此问题的发生,just 则没有此问题。</p>
</li>
<li>
<p>Makefile 中 target 可以对另一个 target 进行依赖(即先执行另一个 target,执行完毕后在执行当前的 target),just 也可以,而且 just 还有“后依赖”,例如:</p>
</li>
</ul>
<figure class="highlight make"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">list_file := <span class="string">"formulae-list.json"</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># generate installed homebrew formulae list json file</span></span><br><span class="line"><span class="section">@generate-list: && preview</span></span><br><span class="line"> brew leaves | xargs brew info --json | \</span><br><span class="line"> jq '[.[]|{<span class="string">"name"</span>, <span class="string">"desc"</span>, <span class="string">"homepage"</span>, <span class="string">"tap"</span>, <span class="string">"caveats"</span>, <span class="string">"linked_keg"</span>}]' > {{list_file}}</span><br></pre></td></tr></table></figure>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2023/07/28/manage-commands-using-just/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://firestudio.cn/2019/07/20/how-to-manage-ios-themes-and-switch-themes-dynamically/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Yozone W.">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Fire Studio">
<meta itemprop="description" content="iOS Developer">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Fire Studio">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2019/07/20/how-to-manage-ios-themes-and-switch-themes-dynamically/" class="post-title-link" itemprop="url">关于 iOS 应用主题管理与动态切换的一些想法与实现</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2019-07-20 01:08:41" itemprop="dateCreated datePublished" datetime="2019-07-20T01:08:41+08:00">2019-07-20</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2019-08-06 21:45:38" itemprop="dateModified" datetime="2019-08-06T21:45:38+08:00">2019-08-06</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/ios/" itemprop="url" rel="index"><span itemprop="name">iOS</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/ios/uikit/" itemprop="url" rel="index"><span itemprop="name">UIKit</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/ios/uikit/swift/" itemprop="url" rel="index"><span itemprop="name">Swift</span></a>
</span>
</span>
<span id="/2019/07/20/how-to-manage-ios-themes-and-switch-themes-dynamically/" class="post-meta-item leancloud_visitors" data-flag-title="关于 iOS 应用主题管理与动态切换的一些想法与实现" title="阅读次数">
<span class="post-meta-item-icon">
<i class="far fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>今天突然想写篇博客,看了上一篇的发表时间,已经快接近三年半了,着实惭愧啊~。这篇文章主要介绍一下前段时间突发奇想写的一个管理 iOS 主题的开源小库:<a target="_blank" rel="noopener" href="https://github.com/azone/ThemeManager">ThemeManager</a>。</p>
<h3 id="为何要实现一个管理主题的库"><a class="markdownIt-Anchor" href="#为何要实现一个管理主题的库"></a> 为何要实现一个管理主题的库</h3>
<p>其实做一个方便管理和切换 iOS 主题的库的想法是好几年前的事了,在这期间脑补过很多实现方案,当想开始做的时候又由于想到了方案的不足再加上我对切换主题没有什么需求,导致一直搁浅。前段时间突发奇想,来了灵感,先在脑袋里打了个草稿,几周后着手开始做,加上一两天空闲时间做的实验,最终花了我一晚上的时间(下班后,包括代码 + Demo + README + 适配各种依赖管理工具(Swift Package, Carthage, CocoaPods,包括本地测试) + 传到 <a target="_blank" rel="noopener" href="https://cocoapods.org/pods/WYZThemeManager">CocoaPods</a> 上,最终两点多完成)终于把这个库做出来了。所以做这玩意纯粹是个人兴趣加上突发奇想。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2019/07/20/how-to-manage-ios-themes-and-switch-themes-dynamically/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://firestudio.cn/2016/03/11/take-screenshot-of-eaglview-may-easily-cause-memory-leaks-in-swift/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Yozone W.">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Fire Studio">
<meta itemprop="description" content="iOS Developer">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Fire Studio">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2016/03/11/take-screenshot-of-eaglview-may-easily-cause-memory-leaks-in-swift/" class="post-title-link" itemprop="url">Swift 下 OpenGL 截图容易导致的内存泄露</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2016-03-11 10:38:57" itemprop="dateCreated datePublished" datetime="2016-03-11T10:38:57+08:00">2016-03-11</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2019-03-27 22:23:09" itemprop="dateModified" datetime="2019-03-27T22:23:09+08:00">2019-03-27</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/swift/" itemprop="url" rel="index"><span itemprop="name">Swift</span></a>
</span>
</span>
<span id="/2016/03/11/take-screenshot-of-eaglview-may-easily-cause-memory-leaks-in-swift/" class="post-meta-item leancloud_visitors" data-flag-title="Swift 下 OpenGL 截图容易导致的内存泄露" title="阅读次数">
<span class="post-meta-item-icon">
<i class="far fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>由于业务需求,需要对两个(现在是三个了)中的一个 OpenGL 渲染的视图进行截图并增加模糊效果。开始用传统的方法进行截图,但是失败了(截取的是黑屏还是空白,忘记了。。。),后来意识到这个和一般的视图应该是不一样的,就到 Google 上搜了一下。由于没怎么玩过,又不怎么懂,就直接翻译成 <code>Swift</code> 了。开始是没发现什么问题的,都是但是到后来发现截图总是其中一个的(看那个先出来,基本上不是想要的那个),而不是想要的那个。</p>
<p>仔细研究后发现,OpenGL 的截图是根据 RenderBuffer 来截取的,由于没有指定 RenderBuffer 所以截取的图只是其中某一个。知道了这个也没用,由于这个 View 用的是第三方库,所以不知道这个 View 的 RenderBuffer。。。后果经过 Debug,发现这个 View 有个 <code>_colorRenderBuffer</code> 属性,这就好办啦~。经过改造后代码如下:</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2016/03/11/take-screenshot-of-eaglview-may-easily-cause-memory-leaks-in-swift/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://firestudio.cn/2016/03/03/remaining-issues-after-migrated-from-octopress-to-hexo/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Yozone W.">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Fire Studio">
<meta itemprop="description" content="iOS Developer">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Fire Studio">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2016/03/03/remaining-issues-after-migrated-from-octopress-to-hexo/" class="post-title-link" itemprop="url">从 Octopress 迁移到 Hexo 后的一些遗留问题</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2016-03-03 18:00:12" itemprop="dateCreated datePublished" datetime="2016-03-03T18:00:12+08:00">2016-03-03</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2019-03-27 22:23:09" itemprop="dateModified" datetime="2019-03-27T22:23:09+08:00">2019-03-27</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/other/" itemprop="url" rel="index"><span itemprop="name">Other</span></a>
</span>
</span>
<span id="/2016/03/03/remaining-issues-after-migrated-from-octopress-to-hexo/" class="post-meta-item leancloud_visitors" data-flag-title="从 Octopress 迁移到 Hexo 后的一些遗留问题" title="阅读次数">
<span class="post-meta-item-icon">
<i class="far fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>上周我讲自己的博客从 Octopress 迁移到了 Hexo,感觉还是很不错的,但是由于Octopress 和 Hexo 存在一些差别,所以导致了如下三个问题:</p>
<ol>
<li>以前 Octopress 的网址是包含 /blog/ 的,迁移之后没了,这样会导致由搜索引擎(搜索引擎更新还是很不及时的)的链接和外网引用的链接点过来会跳到404页面</li>
<li>生成的网址区分大小写了,以前全部是小写的,这会导致以前的小写链接无法打开相应的页面(如 <code>categories/xcode</code>,现在是 <code>categories/Xcode</code>)</li>
<li>之前的一些文件遗失了(其实也就一个)</li>
</ol>
<p>今天就来说一下我是怎么解决这三个问题:</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2016/03/03/remaining-issues-after-migrated-from-octopress-to-hexo/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://firestudio.cn/2016/02/26/migrate-from-octopress-to-hexo/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Yozone W.">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Fire Studio">
<meta itemprop="description" content="iOS Developer">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Fire Studio">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2016/02/26/migrate-from-octopress-to-hexo/" class="post-title-link" itemprop="url">从 Octopress 迁移到 Hexo</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2016-02-26 14:16:24" itemprop="dateCreated datePublished" datetime="2016-02-26T14:16:24+08:00">2016-02-26</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2019-04-03 01:44:25" itemprop="dateModified" datetime="2019-04-03T01:44:25+08:00">2019-04-03</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/other/" itemprop="url" rel="index"><span itemprop="name">Other</span></a>
</span>
</span>
<span id="/2016/02/26/migrate-from-octopress-to-hexo/" class="post-meta-item leancloud_visitors" data-flag-title="从 Octopress 迁移到 Hexo" title="阅读次数">
<span class="post-meta-item-icon">
<i class="far fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>很久没写过日志了,原因没有别的,实在是鄙人太!懒!了!自己也想不能继续懒下去,所以决定改变从这里开始,先换个静态博客生成系统吧。好吧~,换系统其实和这个没多大关系,主要是因为 Octopress 已经 N 久没有更新了,还有就是对于一个 N 久没有写过博客的人来说,再用 <a target="_blank" rel="noopener" href="http://octopress.org">Octopress</a> 需要重新熟悉一下,相比之下 <a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a> 就简单多了,还有就是据说生成速度上 <a target="_blank" rel="noopener" href="http://octopress.org">Octopress</a> 要比 <a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a> 慢一大截。下面介绍一下 Mac 下 Hexo 的安装过程吧~</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2016/02/26/migrate-from-octopress-to-hexo/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://firestudio.cn/2014/04/04/how-to-make-core-data-migration-smarter/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Yozone W.">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Fire Studio">
<meta itemprop="description" content="iOS Developer">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | Fire Studio">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2014/04/04/how-to-make-core-data-migration-smarter/" class="post-title-link" itemprop="url">如何运用更聪明的办法进行Core Data数据迁移</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2014-04-04 22:49:25" itemprop="dateCreated datePublished" datetime="2014-04-04T22:49:25+08:00">2014-04-04</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2019-03-27 22:23:09" itemprop="dateModified" datetime="2019-03-27T22:23:09+08:00">2019-03-27</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/ios/" itemprop="url" rel="index"><span itemprop="name">iOS</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/ios/core-data/" itemprop="url" rel="index"><span itemprop="name">Core Data</span></a>
</span>
</span>
<span id="/2014/04/04/how-to-make-core-data-migration-smarter/" class="post-meta-item leancloud_visitors" data-flag-title="如何运用更聪明的办法进行Core Data数据迁移" title="阅读次数">
<span class="post-meta-item-icon">
<i class="far fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>这一段时间一个Core Data数据迁移的问题快把我搞死了,上面给的压力也非常大。先说一下来龙去脉吧~</p>
<h2 id="第一次犯错"><a class="markdownIt-Anchor" href="#第一次犯错"></a> 第一次犯错</h2>
<p>首先以我为主程的一个应用(绝大部分代码是我写的)由于之前数据库设计的不合理导致应用总是无规律可循的崩溃。这个问题一直存在了好几个月,怎么研究都是无果。后来直到看到Stack Overflow上<a target="_blank" rel="noopener" href="http://stackoverflow.com/a/20446844/397718">Core Data: EXC_BAD_ACCESS accessing relationship</a>的帖子(后来还看到这个<a target="_blank" rel="noopener" href="http://stackoverflow.com/a/6327448/">Semantic Issue: Property’s synthesized getter follows Cocoa naming convention for returning ‘owned’ objects</a>)才意识到自己的愚蠢和无知!我忘记了Objective-C的属性名(Core Data中包括属性名和关系名)不能以new打头,否则就违反了Objective-C的<a target="_blank" rel="noopener" href="https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html">内存管理策略</a>。</p>
<p><strong>请记住:尽量不要使用以alloc、new、copy和mutableCopy等打头的属性名、关系名和方法名,如果必须使用请在声明中使用<code>NS_RETURNS_RETAINED</code>或<code>NS_RETURNS_NOT_RETURNED</code>,否则会导致内存管理问题!!!</strong></p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2014/04/04/how-to-make-core-data-migration-smarter/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>