Skip to content

Commit 4bafe39

Browse files
committed
Merge branch 'master' of https://github.com/jiangxincode/cnblogs
2 parents 28e9e24 + 91e4b57 commit 4bafe39

File tree

42 files changed

+5308
-5193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+5308
-5193
lines changed

_drafts/Android/2023-11-08-Android源码解读-无障碍服务.md

Lines changed: 740 additions & 0 deletions
Large diffs are not rendered by default.

_drafts/Android/2025-06-21-ADB命令汇总.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,4 @@ adb shell settings get secure default_input_method
8181

8282

8383
adb shell wm logging enable-text WM_DEBUG_KEEP_SCREEN_ON
84-
85-
86-
git log -S fitsSystemWindows --pretty=oneline --since=2024-01-01 --until=2024-12-31 author:jiangxin
87-
88-
repo forall -p -c "git log -S fitsSystemWindows --pretty=oneline --since=2024-01-01 --until=2024-12-31 author:jiangxin"
89-
90-
```
84+
```

_drafts/Java/Eclipse相关问题.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -71,36 +71,6 @@ Window->Preferences->Java->Editor->Hovers 将[Variable Values]选择即可,如
7171

7272
其实,Eclipse生成的结果不像VC,Jcreator那样可以直接打开,若要打开非workspace文件夹下的其他已有工程,可以打开菜单file->import→general→existing project into space.在select root directory中选中要打开的文件夹即可。此时如果选择copy existing project into workspace就会同时将文件拷贝到workspace下。这里首先要保证要保证Eclipse两个文件.classpath和.project还在,不然无法导入,就是说Eclipse的import只认自己家的东西。
7373

74-
## Eclipse乱码问题
75-
76-
我的eclipse在执行System.out.println("中文出现乱码!");时,控制台上打印的都是乱码,这个是什么问题啊!我整个eclipse的工作空间都设为UTF-8了啊!!!好晕啊! 对啊,设置为GBK的就没有问题,我用maven跑工程的时候为什么控制台又不是乱码了?maven的那些工程都是设置的UTF-8的。
77-
78-
把整个工程的“Text file encoding”属性设为GBK,就不会有乱码了。设置方法:在eclipse中右击工程,点击弹出框最下面的“Properties”,然后在弹出的窗口左侧点击“Resource”,便可以在窗口的右部看到“Text file encoding”属性,点击“Other”前的单选框,在下拉列表中选择“GBK”。最后,点击右下部的“Apply”,“OK”退出。这样设置后,你再执行System.out.println("中文出现乱码!");时控制台上就不会是乱码了。
79-
80-
81-
82-
Eclipse 的控制台必须用GBK编码。所以条件1和条件4必须同时满足否则运行的还是乱码。才能保证不是乱码。
83-
84-
条件1,Window | Preferences | Workspace | Text fileencoding | GBK编码。
85-
86-
这样定义的是整个工作区间的编码。
87-
88-
这样就把整个工作空间的编码格式定死了,但是如果某一个工程用的是不同的编码格式的话这样单独再解决。如下:
89-
90-
条件2,工程上右键 | Properties | Resource | Text fileencoding | UTF-8编码。或者适合的编码格式。这样定义的是整个工程的编码。
91-
92-
这样就把整个工程的编码格式定死了,但是如果某一个文件用的是不同的编码格式的话这样单独再解决。如下:
93-
94-
条件3,在某个文件上右键| Properties | Resource | Text fileencoding | UTF-8编码。或者适合的编码格式。这样定义的是单独某个文件的编码。
95-
96-
这里要说的是文件的实际编码格式优先用的是:第3个,其次再用2,最后先用1。有时候是123,必须满足条件。无论怎样这几种编码格式试一试就全知道了。
97-
98-
99-
100-
条件4,还有运行时编码设置如下:菜单:Run Configuration | 右侧的选项卡Common 的 Console Encoding 选择GBK编码。这个是用来控制console控制台显示,必须是GBK,就不会乱码。尽管1,2,3条件都不是GBK,只要4是GBK。控制台就不会乱码。
101-
102-
这样保证了工作空间和工程代码编程方式和工程里的单独文件的编码格式的不冲突。
103-
10474
## 如何修改eclipse的默认工作空间
10575

10676
打开eclipse,选择File菜单,再选择switch workspace,最后选择other,接着你就选择你想要存储的工作区间

_drafts/Linux/ssh相关原理学习与常见错误总结.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ssh-keygen 产生出 id_rsa, id_rsa.pub, 已经都放到正确位置(.ssh), 但
1515
## 解决SSH超时断开连接问题
1616

1717
```sh
18-
vim /etc/ssh/sshd_config
18+
# 修改/etc/ssh/sshd_config
1919

2020
ClientAliveInterval # 指定服务器向客户端请求消息的时间间隔,默认是0表示不发送;可以改为60表示每分钟发送一次
2121
ClientAliveCountMax # 表示服务器发出请求后客户端没有响应的次数达到一定值, 就自动断开

_drafts/Others/2023-01-07-LaTeX内容总结.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ xelatex使用可以在命令行中使用具体使用方法参考:`xelatex --he
4848
使用texmaker的时候:
4949
`F1(Quick Build )`是xelatex,`F2`是latex, `F6`是PDFLatex, `F7`是View PDF
5050

51-
## xelatex+ctex乱码
52-
53-
修改文档的编码设为`utf-8`
54-
5551
## 警告及错误处理
5652

5753
出现以下警告时为ctex等中文红包的引用不当(推测为引用的红包更新了,但是ctex没有修改),不需要处理

_drafts/Others/2025-06-14-工具软件备忘.md

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
|[draw.io](https://www.drawio.com/)||Windows/Mac/Linux/Web|开源免费| |
4141
|[Mermaid](https://mermaid.js.org/)||Web|开源免费| |
4242
|[PlantUML](https://plantuml.com/zh/)||Web|开源免费| |
43+
|[SequenceDiagram](https://sequencediagram.org/)||Web|开源免费| |
4344

4445
## Office办公软件
4546

@@ -71,11 +72,14 @@
7172
* 福昕PDF阅读器: <https://www.foxitsoftware.cn/foxitoffice/>
7273
* wondershare(All-in-1 PDF Solution,PDF阅读器,PDF转换到其它文件等): <https://www.wondershare.com/products-solutions/office-productivity/document.html>
7374
* PDF-XChange: <https://www.tracker-software.com/product/pdf-xchange-editor>
75+
* PDFtk: <https://www.pdflabs.com/>
76+
* Master PDF Editor for Linux:<https://code-industry.net/free-pdf-editor/>
7477
* ILovePDF: <https://www.ilovepdf.com>
7578
* CAJViewer: <https://cajviewer.cnki.net/>
7679
* 超星阅读器: <http://ssreader.chaoxing.com/>
7780
* WinDjView: <https://windjview.sourceforge.io/en/>
7881
* Zeal(Zeal is an offline documentation browser for software developers): <https://zealdocs.org/>
82+
* ViewCompanion(View, annotate and convert PDF, DWF, PLT, CGM, TIFF and CALS): <https://www.softwarecompanions.com/>
7983

8084
## 浏览器
8185

@@ -139,6 +143,33 @@
139143

140144
* Connectify Hotspot: <https://connectify.me/>
141145

146+
## SSH/FTP
147+
148+
* MobaXterm(自带rsync等工具,且免费): <https://mobaxterm.mobatek.net/>
149+
* XManager/XShell/XSftp(收费): <https://www.xshell.com/zh/xmanager/>
150+
* XShell使用问题汇总: <https://www.cnblogs.com/jiangxinnju/p/6376415.html>
151+
* FileZilla: <https://filezilla-project.org/>
152+
* WinSCP: <https://winscp.net/eng/index.php>
153+
* PuTTY: <https://www.chiark.greenend.org.uk/~sgtatham/putty/>
154+
* Pietty(forked from PuTTY): <https://sites.google.com/view/pietty-project>
155+
* SecureCRT(收费): <https://www.vandyke.com/products/securecrt/>
156+
* SecureFX(收费): <https://www.vandyke.com/products/securefx/index.html>
157+
* ~~SSH Secure Shell Client(无官网): <https://xiazai.zol.com.cn/detail/38/372685.shtml>~~
158+
159+
* webtty: <https://github.com/maxmcd/webtty>
160+
161+
* tmux(terminal multiplexer): <https://github.com/tmux/tmux>
162+
* Tmux 使用教程: <https://www.ruanyifeng.com/blog/2019/10/tmux.html>
163+
164+
* babun:<https://github.com/babun/babun>
165+
166+
## 远程桌面/VPN/VNC
167+
168+
* MotionPro(VPN工具): <https://client.arraynetworks.com.cn:8080/zh/troubleshooting>
169+
* RealVNC(Server/Viewer): <https://www.realvnc.com/>
170+
* TigerVNC(Server/Viewer): <https://tigervnc.org/>
171+
* noVNC(Web VNC client): <https://novnc.com/info.html>
172+
142173
## 密码管理工具
143174

144175
* KeePass: <https://keepass.info/>
@@ -157,19 +188,6 @@
157188
* Bitser(exe解压): <https://www.bitser.org/>
158189
* UniExtract2: <https://github.com/Bioruebe/UniExtract2>
159190

160-
## SSH/FTP
161-
162-
* MobaXterm(自带rsync等工具,且免费): <https://mobaxterm.mobatek.net/>
163-
* XManager/XShell/XSftp(收费): <https://www.xshell.com/zh/xmanager/>
164-
* XShell使用问题汇总: <https://www.cnblogs.com/jiangxinnju/p/6376415.html>
165-
* FileZilla: <https://filezilla-project.org/>
166-
* WinSCP: <https://winscp.net/eng/index.php>
167-
* PuTTY: <https://www.putty.org/>
168-
* Pietty: <https://www.csie.ntu.edu.tw/~piaip/pietty/download>
169-
* SecureCRT(收费): <https://www.vandyke.com/products/securecrt/>
170-
* SecureFX(收费): <https://www.vandyke.com/products/securefx/index.html>
171-
* ~~SSH Secure Shell Client(无官网): <https://xiazai.zol.com.cn/detail/38/372685.shtml>~~
172-
173191
## 下载工具
174192

175193
* P2PSearcher: <http://www.p2psearchers.cn/>
@@ -217,6 +235,11 @@
217235
* screenity(开源免费): <https://github.com/alyssaxuu/screenity>
218236
* Awesome Screenshot(高级功能收费): <https://www.awesomescreenshot.com/>
219237

238+
## 格式转换
239+
240+
* 格式工厂: <http://freetime.tech/formatfactory/CN/index.html>
241+
* ConvertX: <https://github.com/C4illin/ConvertX>
242+
220243
## 文件搜索
221244

222245
* Everything: <https://www.voidtools.com/zh-cn/>
@@ -241,9 +264,6 @@
241264
* AutoHotkey: <https://www.autohotkey.com/>
242265
* SciTE4AutoHotkey: <https://www.autohotkey.com/scite4ahk/>
243266

244-
* MotionPro(VPN工具): <https://client.arraynetworks.com.cn:8080/zh/troubleshooting>
245-
* realvnc(安全远程连接): <https://www.realvnc.com/>
246-
247267
* ClipMate: <http://www.thornsoft.com/>
248268
* Sothink SWF Decompiler: <https://sothink.com/product/flashdecompiler/>
249269
* Sothink Logo Maker: <https://sothink.com/product/logo-design-software/>
@@ -255,7 +275,6 @@
255275
* Switch Audio File Converter: <https://www.nch.com.au/switch/index.html>
256276
* Digital Voice Player: <https://www.sony.co.uk/electronics/support/downloads/Z0005291>
257277

258-
* babun:<https://github.com/babun/babun>
259278
* catdoc ported to Windows: <https://blog.brush.co.nz/2009/09/catdoc-windows/>
260279
* install-us: <http://www.install-us.com/>
261280

_drafts/Others/ApkToolBoxGUI Release Notes.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

_drafts/Others/VIM常见用法总结.md

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -134,51 +134,6 @@ vim已经启动,输入
134134
Ctrl+w+h/j/k/l ——同上
135135
Ctrl+ww——依次向后切换到下一个窗格中
136136

137-
## 用vim修改文件编码为utf-8
138-
139-
网页常常会出现乱码的情况,一般都是编码设置不对造成的。例如一个网页源文件的编码不是utf8的,但声明为utf8`<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />`网页就会出现乱码。可以用vim修改源文件编码为utf8,命令是
140-
141-
:set fileencoding=utf-8
142-
143-
如果用vim打开文件时里面有乱码,可能用上面的命令修改文件后无法保存。可以用其他软件打开文件,然后把内容拷贝到vim里再保存就行了。
144-
145-
## gvim编码配置
146-
147-
Vim/Gvim 在中文 Windows 下的字符编码有两个问题:
148-
149-
* 默认没有编码检测功能
150-
* 如果一个文件本身采用的字符集比 GBK 大(如 UTF-8、UTF-16、GB18030),那么其中无法在 GBK 中对应的字符都会出现乱码,保存时会丢失。即使编辑文件时正确检测出文件格式也无济于事。
151-
152-
第一个问题的解决办法是在 ~/.vimrc 中加入以下配置:
153-
154-
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
155-
156-
第二个问题的解决办法是强制要求 Vim 的内部编码采用某种 UTF 编码。比如 UTF-8:
157-
158-
set encoding=utf-8
159-
160-
但是,把 Vim 的内部编码设为 UTF-8 会带来以下新问题
161-
162-
* 使用非 GUI 界面的 vim 时会乱码
163-
* 提示信息(比如E492: 不是编辑器的命令: foo)会乱码
164-
165-
要解决非 GUI 界面的 vim 的乱码问题,需要设置终端编码为系统默认编码:
166-
167-
set termencoding=cp936
168-
169-
而要让提示信息不乱码则要需要使用 UTF-8 版本的提示信息:
170-
171-
language messages zh_CN.UTF-8
172-
173-
综上所述,在中文 Windows 下正确配置字符编码,需要把以下内容加入你的 ~/.vimrc 中
174-
175-
```vim
176-
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
177-
set encoding=utf-8
178-
set termencoding=cp936
179-
language messages zh_CN.UTF-8
180-
```
181-
182137
## What is the <leader> in a .vimrc file?
183138

184139
:help leader

_drafts/Others/XShell使用问题汇总.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
Xshell是一款公认的优秀SSH连接管理软件,被广泛用于管理Linux服务器或VPS。
44

5-
## 解决xshell中vim显示中文乱码的问题
6-
打开一个用utf8编码的中文文件,在vim中,执行`set encoding=utf-8 termencoding=gbk fileencoding=utf-8`后可正常显示中文。`encoding`是设置档案的当前编码。`termencoding`是用于vim屏幕的显示编码,由于xshell默认用于显示屏幕的编码是gbk,所以此处设置为gbk。同理,假设你修改了xshell的默认编码为utf-8,那么此处自然应该utf-8。`fileencoding`档案保存时的编码,此编码应和encoding保持一致,否则会弹出警告
7-
至于xshell,打开`file->Properties`,点击`Terminal`节点,修改`Terminal Type`为linux(键盘映射模式,默认为xtrem,此种模式下对于vim小键盘输入数字会出现乱字符号),修改Encoding为uft-8(一般情况下linux系统采用此编码,可用locale命令查看自己系统的默认编码,修改为一致的就行)。
8-
同理,也可以修改xftp的编码为utf-8以正常显示中文。
9-
105
## Xshell利用登录脚本从服务器登录到另外一个服务器
116
通过脚本设置,可以实现从这个服务器登录到另外一个服务器。打开Xshell 4的会话属性(【文件】->【属性】),左边的类别下选择【登录脚本】,在右边底下你可以看到有个【连接会话是运行脚本】的复选框。
127

0 commit comments

Comments
 (0)