-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·449 lines (306 loc) · 9.46 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
<!DOCTYPE html>
<html
dir="ltr"
lang="en"
data-theme=""
><head>
<title>
f32by
</title>
<meta charset="utf-8" /><meta name="generator" content="Hugo 0.89.3" /><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover" />
<meta
name="description"
content="
"
/>
<link
rel="stylesheet"
href="/css/main.min.3c2bc692af68f42252aee946792d5f5be31fb55c4e165444d147f7201d8a7323.css"
integrity="sha256-PCvGkq9o9CJSrulGeS1fW+MftVxOFlRE0Uf3IB2KcyM="
crossorigin="anonymous"
type="text/css"
/>
<link
rel="stylesheet"
href="/css/markupHighlight.min.058b31f17db60602cc415fd63b0427e7932fbf35c70d8e341a4c39385f5f6f3e.css"
integrity="sha256-BYsx8X22BgLMQV/WOwQn55MvvzXHDY40Gkw5OF9fbz4="
crossorigin="anonymous"
type="text/css"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
crossorigin="anonymous"
/>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<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="canonical" href="/" />
<link rel="alternate" type="application/rss+xml" href="/index.xml" title="" />
<script
type="text/javascript"
src="/js/anatole-header.min.2a2cd9614b7d007dfbb75e8da19e3a0fa872ceab53c6d000c00b7a0c89b85bfc.js"
integrity="sha256-KizZYUt9AH37t16NoZ46D6hyzqtTxtAAwAt6DIm4W/w="
crossorigin="anonymous"
></script>
<script
type="text/javascript"
src="/js/anatole-theme-switcher.min.7fd87181cdd7e8413aa64b6867bb32f3a8dc242e684fc7d5bbb9f600dbc2b6eb.js"
integrity="sha256-f9hxgc3X6EE6pktoZ7sy86jcJC5oT8fVu7n2ANvCtus="
crossorigin="anonymous"
></script>
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content=""/>
<meta name="twitter:description" content=""/>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"name": "",
"url": "https:\/\/f128.dev\/",
"description": "",
"thumbnailUrl": "https:\/\/f128.dev\/",
"license": "2021"
}
</script>
</head>
<body>
<header><div
class="page-top
.
"
>
<a role="button" class="navbar-burger" data-target="navMenu" aria-label="menu" aria-expanded="false">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
<nav>
<ul class="nav__list" id="navMenu">
<div class="nav__links">
<li>
<a
class="current"
href="/"
title=""
>Home</a
>
</li>
<li>
<a
href="/posts/"
title=""
>Posts</a
>
</li>
</div>
<ul>
<li>
<a class="theme-switch" title="Switch Theme">
<i class="fas fa-adjust fa-fw" aria-hidden="true"></i>
</a>
</li>
</ul>
</ul>
</nav>
</div>
</header>
<div class="wrapper">
<aside><div
class="sidebar
.
"
>
<div class="sidebar__content">
<div class="logo-title">
<div class="title">
<img src="/images/avatar.png" alt="profile picture" />
<h3 title=""><a href="/">f32by's blog</a></h3>
<div class="description">
<p></p>
</div>
</div>
</div>
<ul class="social-links">
<li>
<a href="https://github.com/f32by/" rel="me" aria-label="GitHub" title="GitHub">
<i class="fab fa-github fa-2x" aria-hidden="true"></i>
</a>
</li>
</ul>
</div><footer class="footer footer--sidebar">
<div class="by_farbox">
<ul class="footer__list">
<li class="footer__item">
©
2021
</li>
</ul>
</div>
</footer>
<script
type="text/javascript"
src="/js/medium-zoom.min.71100d84fab0ad794b8399a66ac810700cc78d703f715dc10af4d7ba7b761362.js"
integrity="sha256-cRANhPqwrXlLg5mmasgQcAzHjXA/cV3BCvTXunt2E2I="
crossorigin="anonymous"
></script></div>
</aside>
<main>
<div class="autopagerize_page_element">
<div class="content">
<div
class="post
.
"
>
<div class="post-title post-content">
</div>
</div>
<div
class="post
.
"
>
<div class="post-title">
<h3><a href="/posts/disable-swap-on-macbookpro-2021/">在Apple Silicon设备上禁用swap</a></h3>
</div>
<div class="post-content">
<div class="p_part">
<p>
步骤 64G内存不用就是浪费,日常开一个16G的ramdisk用于存放一些日常工作中频繁生成的临时文件、图片等。
注意:
搭载Apple Silicon芯片设备上的默认系统安全策略变得更加保守,内核启动时会忽略自定义的启动参数(boot-args)。
使用此方法会导致安全等级降低至Permissive Security,从而导致无法运行任何iOS app:
</p>
</div>
</div>
<div class="post-footer">
<div class="meta">
<div class="info">
<em class="fas fa-calendar-day"></em>
<span class="date"
>
Wed, Nov 17, 2021
</span
>
</div>
</div>
</div>
</div>
<div
class="post
.
"
>
<div class="post-title">
<h3><a href="/posts/rust-with-vscode/">使用VSCode进行Rust开发</a></h3>
</div>
<div class="post-content">
<div class="p_part">
<p>
用了一段时间CLion,决定换到VSCode了,原因有下:
IntelliJ Rust插件解析proc macro很慢,Expanding macros导致修改某些含有多个macro调用的源文件很慢;
rust-analyzer提供了更好的LSP支持,现阶段IntelliJ Rust仍然使用JetBrains自己写的Engine,估计后期会像clangd一样引入rust-analyzer;
</p>
</div>
</div>
<div class="post-footer">
<div class="meta">
<div class="info">
<em class="fas fa-calendar-day"></em>
<span class="date"
>
Thu, May 20, 2021
</span
>
</div>
</div>
</div>
</div>
<div
class="post
.
"
>
<div class="post-title">
<h3><a href="/posts/react-upgrade-to-webpack-5/">React项目升级到Webpack 5</a></h3>
</div>
<div class="post-content">
<div class="p_part">
<p>
create-react-app还没有更新对Webpack 5的支持,正好最近有空,自己动手升级一下。我的项目比较小,webpack.config.js和CRA eject出来的初始配置文件区别不大,大概花了半个小时弄好。
官方升级文档:https://webpack.js.org/migrate/5/
完整的webpack.config.js https://gist.github.com/f32by/b7245f57a88011443151836738816243
要点 Terser Plugin中的sourceMap和cache已经被移除,需要删除这两个选项;
</p>
</div>
</div>
<div class="post-footer">
<div class="meta">
<div class="info">
<em class="fas fa-calendar-day"></em>
<span class="date"
>
Thu, Mar 18, 2021
</span
>
</div>
</div>
</div>
</div>
<div
class="post
.
"
>
<div class="post-title">
<h3><a href="/posts/vulkan-coordinate-system/">Vulkan 坐标系</a></h3>
</div>
<div class="post-content">
<div class="p_part">
<p>
不同图形API的NDC DirectX / Metal Left-handed
Y-down
X-right
Z-inward
Depth [-1, 1]
</p>
</div>
</div>
<div class="post-footer">
<div class="meta">
<div class="info">
<em class="fas fa-calendar-day"></em>
<span class="date"
>
Mon, Mar 8, 2021
</span
>
</div>
</div>
</div>
</div>
<div class="pagination">
</div>
</div>
</div>
</main>
</div><footer class="footer footer--base">
<div class="by_farbox">
<ul class="footer__list">
<li class="footer__item">
©
2021
</li>
</ul>
</div>
</footer>
<script
type="text/javascript"
src="/js/medium-zoom.min.71100d84fab0ad794b8399a66ac810700cc78d703f715dc10af4d7ba7b761362.js"
integrity="sha256-cRANhPqwrXlLg5mmasgQcAzHjXA/cV3BCvTXunt2E2I="
crossorigin="anonymous"
></script></body>
</html>