-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal-search.xml
251 lines (119 loc) · 16.6 KB
/
local-search.xml
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
<?xml version="1.0" encoding="utf-8"?>
<search>
<entry>
<title>用 CMake 构建 Win32 应用</title>
<link href="/posts/14/"/>
<url>/posts/14/</url>
<content type="html"><![CDATA[<h1 id="用-cmake-构建-win32-应用">用 CMake 构建 Win32 应用</h1><p>需要在 CMakeLists.txt 中加入</p><figure class="highlight cmake"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs cmake"><span class="hljs-keyword">set_target_properties</span>(cpp PROPERTIES WIN32_EXECUTABLE <span class="hljs-keyword">TRUE</span>)<br></code></pre></td></tr></table></figure><p>一份完整的 CMakeLists.txt</p><figure class="highlight cmake"><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><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs cmake"><span class="hljs-keyword">cmake_minimum_required</span>(VERSION <span class="hljs-number">3.10</span>.<span class="hljs-number">0</span>)<br><span class="hljs-keyword">project</span>(cpp)<br><br><span class="hljs-keyword">set</span>(CMAKE_CXX_STANDARD <span class="hljs-number">20</span>)<br><span class="hljs-keyword">add_executable</span>(cpp main.cpp)<br><span class="hljs-keyword">set_target_properties</span>(cpp PROPERTIES WIN32_EXECUTABLE <span class="hljs-keyword">TRUE</span>)<br><br></code></pre></td></tr></table></figure>]]></content>
<tags>
<tag>C++</tag>
<tag>CMake</tag>
<tag>Windows</tag>
</tags>
</entry>
<entry>
<title>error:package Manifest does not exist</title>
<link href="/posts/13/"/>
<url>/posts/13/</url>
<content type="html"><![CDATA[<h1 id="errorpackage-manifest-does-not-exist">error:package Manifestdoes not exist</h1><p>error: package Manifest does not exist</p><p>解决:导入这个包</p><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs java"><span class="hljs-keyword">import</span> android.Manifest;<br></code></pre></td></tr></table></figure><h2 id="preference">Preference</h2><blockquote><p><ahref="https://stackoverflow.com/questions/66692017/android-manifest-is-not-recognized-in-activity">androidmanifest is not recognized in activity - Stack Overflow</a></p></blockquote>]]></content>
<tags>
<tag>Android</tag>
</tags>
</entry>
<entry>
<title>本地部署 hexo 博客到云端</title>
<link href="/posts/12/"/>
<url>/posts/12/</url>
<content type="html"><![CDATA[<h1 id="本地部署-hexo-博客到云端">本地部署 hexo 博客到云端</h1><p>环境:Windows 10</p><h2 id="安装-git">1. 安装 Git</h2><p><a href="https://git-scm.com/">Git</a></p><h2 id="安装-node.js">2. 安装 Node.js</h2><p><a href="https://nodejs.org/">Node.js</a></p><h2 id="安装-hexo">3. 安装 Hexo</h2><p><a href="https://hexo.io/">Hexo</a></p><h2 id="安装数学渲染器-pandoc">4. 安装数学渲染器 Pandoc</h2><p><a href="https://pandoc.org/">Pandoc 官网</a></p><p><a href="https://github.com/jgm/pandoc/releases">Pandoc Github地址</a></p><h2 id="自动部署脚本">自动部署脚本</h2><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs cmd"><span class="hljs-built_in">cmd</span> /k "<你的blog所在盘符>: <span class="hljs-built_in">cd</span> <你的blog根目录> && npx hexo clean && npx hexo d"<br></code></pre></td></tr></table></figure><p>另存为 <em>bat</em> 文件.</p><h2 id="如果重装系统">如果重装系统</h2><p>如果重装系统,在完成上述步骤后,需要重新获取对仓库的访问权限.</p><p>此处以 Github 仓库为例:</p><figure class="highlight cmd"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs cmd">ssh-keygen -t ed25519 -b <span class="hljs-number">4096</span> -C "[email protected]"<br></code></pre></td></tr></table></figure><p>-t rsa 指定了加密算法类型(type)为 <em>Ed25519</em> 算法,</p><p>不支持该算法的计算机可以用 <em>rsa</em> 算法</p><p>摘自 Github Docs</p><blockquote><p>If you are using a legacy system that doesn't support the Ed25519algorithm, use:</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell">ssh-keygen -t rsa -b 4096 -C "[email protected]"<br></code></pre></td></tr></table></figure></blockquote><p>-b 4096 指定了 key 的大小(bits)为 4096(默认为 2048)</p><p>使用该命令在默认路径 (AppData 的 .ssh) 下生成公钥和私钥,</p><p>然后 <strong>将公钥添加至 Github</strong>:</p><p>在 Github 的 Settings -> SH and GPG keys 中添加一个新的 SSHkey.</p><img src="/posts/12/1.png" class="" title="在 Github 添加新的 key"><p>最后重新运行刚刚的 bat 文件进行部署.</p><h2 id="图片路径问题">图片路径问题</h2><p>图片粘贴到 MarkDown文件后,在本地正常预览,但部署后无法正常预览(生成的 html路径有误),</p><p>使用 <em><ahref="https://github.com/yiyungent/hexo-asset-img">hexo-assets-img</a></em>解决, (需要删除其他修复 hexo 图片路径的插件)</p><p>具体见 README.</p><h2 id="参考-reference">参考 Reference</h2><blockquote><p><ahref="https://stackoverflow.com/questions/51834225/why-use-t-rsa-b-4096-with-ssh-keygen">StackOverflow</a></p><p><ahref="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">GitHubDocs</a></p></blockquote>]]></content>
<tags>
<tag>Hexo</tag>
<tag>Git</tag>
</tags>
</entry>
<entry>
<title>解决Rider无法打开Unity的uss文件</title>
<link href="/posts/11/"/>
<url>/posts/11/</url>
<content type="html"><![CDATA[<h1 id="解决-rider-无法打开-unity-的-uss-文件">解决 Rider 无法打开 Unity的 uss 文件</h1><blockquote><p>Unity 版本: 6000.0.28f1</p></blockquote><p>在 Rider 的设置中 <strong>启用 <em>JavaScript andTypeScript</em></strong> 插件即可.</p>]]></content>
<tags>
<tag>Unity</tag>
<tag>Rider</tag>
</tags>
</entry>
<entry>
<title>CSP(优动漫)如何导出透明底图片</title>
<link href="/posts/10/"/>
<url>/posts/10/</url>
<content type="html"><![CDATA[<h1 id="csp优动漫如何导出透明底图片">CSP(优动漫)如何导出透明底图片</h1><ol type="1"><li>JPG 格式不支持透明背景,而 PNG 格式支持;</li><li>导出时先把 CSP 自带的“纸张”图层隐藏;</li><li><strong>导出时选择“另存为”</strong> 而非“导出条漫”,在“另存为”中选择PNG 格式。</li></ol>]]></content>
<tags>
<tag>CSP</tag>
<tag>软件操作</tag>
</tags>
</entry>
<entry>
<title>SSEEdit中文乱码解决方案</title>
<link href="/posts/9/"/>
<url>/posts/9/</url>
<content type="html"><![CDATA[<h1 id="sseedit-中文乱码解决方案">SSEEdit 中文乱码解决方案</h1><p>转自</p><blockquote><p>https://c.tieba.baidu.com/p/6817311646</p><p>贴吧用户@暮林芬弥</p></blockquote><p>发出来只是方便其他人解决问题</p><h2 id="解决方法">解决方法</h2><h3 id="对于-4.0.1-之前的-sseedit">对于 4.0.1 之前的 SSEEdit</h3><p>在 MO 的启动参数中添加</p><figure class="highlight armasm"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs armasm">-<span class="hljs-meta">cp</span>:utf8<br></code></pre></td></tr></table></figure><p>此方法对我的 4.1.5 不起作用</p><h3 id="对于-4.0.1-之后的-sseedit">对于 4.0.1 之后的 SSEEdit</h3><p>在以下路径中找到 <em>Plugins.sseviewsettings</em> 文件并修改</p><figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs xml"><span class="hljs-tag"><<span class="hljs-name">SystemDisk</span>></span>:\Users\<span class="hljs-tag"><<span class="hljs-name">UserName</span>></span>\AppData\Local\Skyrim Special Edition\<br></code></pre></td></tr></table></figure><p>在文件末添加以下内容</p><figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs ini"><span class="hljs-section">[cpoverride]</span><br><span class="hljs-attr">english</span>=utf8<br></code></pre></td></tr></table></figure><p>重新打开 SSEEdit.</p>]]></content>
<tags>
<tag>Skyrim</tag>
</tags>
</entry>
<entry>
<title>上古卷轴5(Skyrim)如何降级至1.5.97版本</title>
<link href="/posts/8/"/>
<url>/posts/8/</url>
<content type="html"><![CDATA[<h1 id="上古卷轴-5skyrim如何降级至-1.5.97-版本">上古卷轴5(Skyrim)如何降级至 1.5.97 版本</h1><h2 id="方案一手动从-steam-下载">方案一:手动从 steam 下载</h2><p>参考:</p><blockquote><p><a href="https://tieba.baidu.com/p/7884019542">【图片】Steam如何下载游玩特别版 1.5.97 版本【上古卷轴吧】_百度贴吧(baidu.com)</a></p><p>作者:贴吧@<em>Zelzone</em></p></blockquote><p><u> <strong>侵删</strong> </u></p><h3 id="先在-steam-下载本体">1.先在 steam 下载本体</h3><h3 id="打开-steam-控制台">打开 Steam 控制台</h3><p>Win+R 执行以下命令打开 Steam 控制台(打开慢稍等一下)</p><figure class="highlight dts"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs dts"><span class="hljs-symbol">steam:</span><span class="hljs-comment">//nav/console</span><br></code></pre></td></tr></table></figure><h3 id="下载-1597-版本游戏文件">下载 1597 版本游戏文件</h3><p>通过以下三个命令依次下载三份文件。</p><figure class="highlight apache"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs apache"><span class="hljs-attribute">download_depot</span> <span class="hljs-number">489830</span> <span class="hljs-number">489832</span> <span class="hljs-number">8702665189575304780</span><br></code></pre></td></tr></table></figure><figure class="highlight apache"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs apache"><span class="hljs-attribute">download_depot</span> <span class="hljs-number">489830</span> <span class="hljs-number">489833</span> <span class="hljs-number">2289561010626853674</span><br></code></pre></td></tr></table></figure><figure class="highlight apache"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs apache"><span class="hljs-attribute">download_depot</span> <span class="hljs-number">489830</span> <span class="hljs-number">489831</span> <span class="hljs-number">7848722008564294070</span><br></code></pre></td></tr></table></figure><p>下载完后打开本体目录,将所有内容删除,然后把刚刚下载的三个文件夹里的内容复制到游戏根目录。</p><p><em>installscript.vdf</em> 可删除。</p><p>--End of Part--</p><h2 id="方案二n-网降级补丁">方案二:n 网降级补丁</h2><p>补丁地址</p><blockquote><p><ahref="https://www.nexusmods.com/skyrimspecialedition/mods/57618">UnofficialSkyrim Special Edition Downgrade Patcher at Skyrim Special Edition Nexus- Mods and Community (nexusmods.com)</a></p></blockquote><p>具体看补丁 Description.</p>]]></content>
<tags>
<tag>Skyrim</tag>
</tags>
</entry>
<entry>
<title>CMake成功编译但Make出现No such file or directory</title>
<link href="/posts/7/"/>
<url>/posts/7/</url>
<content type="html"><![CDATA[<h1 id="cmake-成功编译但-make-出现-no-such-file-or-directory">CMake成功编译但 Make 出现 No such file or directory</h1><h2 id="问题">问题</h2><p><em>CMakeLists.txt</em> 的 <em>include_directories()</em> 中路径没<strong>用双引号引起来</strong></p><img src="/posts/7/1.png" class="" title="CMakeLists.txt"><h2 id="解决方案">解决方案</h2><p>改为:</p><figure class="highlight makefile"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs makefile"><span class="hljs-section">include_directories("C:/Program Files (x86)/Eigen3/include")</span><br></code></pre></td></tr></table></figure><img src="/posts/7/2.png" class="" title="make">]]></content>
<tags>
<tag>C++</tag>
<tag>CMake</tag>
<tag>C</tag>
<tag>GNU Make</tag>
</tags>
</entry>
<entry>
<title>Unity:访问Event.current抛出NullReferenceException</title>
<link href="/posts/5/"/>
<url>/posts/5/</url>
<content type="html"><![CDATA[<h1 id="unity访问-event.current-抛出-nullreferenceexception">Unity:访问Event.current 抛出 NullReferenceException</h1><p>参考:</p><blockquote><p>百度贴吧:<a href="https://tieba.baidu.com/p/6840492604">unityEvent.current 获取为 null 的问题_unity 吧_百度贴吧 (baidu.com)</a></p></blockquote><p>抛出空引用的原因是在 Start()或 Update()中访问 Event.current,应该<strong>在 OnGUI()中访问</strong>.</p>]]></content>
<tags>
<tag>Unity</tag>
</tags>
</entry>
<entry>
<title>解决Unity每次打开都要选择代码编辑器</title>
<link href="/posts/4/"/>
<url>/posts/4/</url>
<content type="html"><![CDATA[<h1 id="解决-unity-每次打开都要选择代码编辑器">解决 Unity每次打开都要选择代码编辑器</h1><p>参考:</p><blockquote><p>百度贴吧:<ahref="https://tieba.baidu.com/p/8104160536">【求助】怎么设置 unity的默认脚本编辑器每次打开 unity都要重新进首选项设置,很麻烦,怎么让它默认就是 visual【unity3d吧】_百度贴吧 (baidu.com)</a></p></blockquote><p>每次打开 Unity 都要重新选择代码编辑器</p><p>解决方案:</p><p><strong>以管理员模式运行Unity</strong>,选择代码编辑器,之后无需以管理员模式启动</p>]]></content>
<tags>
<tag>Unity</tag>
</tags>
</entry>
<entry>
<title>如何在win11终端中同时运行两条命令</title>
<link href="/posts/2/"/>
<url>/posts/2/</url>
<content type="html"><![CDATA[<h1 id="如何在-windows-终端中同时运行两条命令">如何在 windows终端中同时运行两条命令</h1><p>环境: windows10</p><p>使用 "&" 或 "&&"</p><figure class="highlight 1c"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs 1c">命令<span class="hljs-number">1</span> <span class="hljs-meta">& 命令2</span><br></code></pre></td></tr></table></figure><figure class="highlight 1c"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs 1c">命令<span class="hljs-number">1</span> <span class="hljs-meta">&& 命令2</span><br></code></pre></td></tr></table></figure>]]></content>
<tags>
<tag>Windows11</tag>
</tags>
</entry>
<entry>
<title>Unity: Layout could not be fully loaded</title>
<link href="/posts/1/"/>
<url>/posts/1/</url>
<content type="html"><![CDATA[<h1 id="unity-layout-could-not-be-fully-loaded">Unity: Layout could notbe fully loaded</h1><blockquote><p>The layout"C:/Users/<username>/AppData/Roaming/Unity/Editor-5.x/Preferences-2022.dwlt"could not be fully loaded, this can happen when the layout containsEditorWindows not available in this project.</p></blockquote><p>可能是该布局包含了其他 Assets 里的窗口,比如Navigation,但新建的项目没有安装 Ai Navigation,所以出现该警告</p>]]></content>
<tags>
<tag>Unity</tag>
</tags>
</entry>
</search>