[Python]Miniconda 的使用说明
Anaconda、Miniconda
一般用过 Anaconda 的人应该都是直接安装 Anaconda 全家桶来开发 Python 程式。维基百科记载: Anaconda 是一个开源的 Python 和 R 语言的发行版本,用于计算科学 (资料科学、机器学习、大数据处理和预测分析),拥有超过 1400 个套件...。
2023/10 最新的 Anaconda 版本为 v2023.09-0,安装好约 4.6GB。
但如果你像我一样,根本用不到那么多套件,只想使用 Anaconda 中的虚拟环境、套件管理、Spyder IDE,那么你应该选择精简版的 Miniconda,再另外安装最新版的 Spyder,或其它 Python 的 IDE 来使用。
Read more
[Python]Spyder IDE 5.5 繁体中文语言套件,以及一些 Spyder 的操作说明
Spyder 中文套件
Spyder 是一个功能强大的 Python 程式语言整合开发环境 (IDE),程式内建的多国语言有支援“简体中文”,但没有“繁体中文”。
本来我只是打算把“简体中文”转成“繁体中文”就拿来使用,但却发现他的中文翻译有很多不通顺跟错误的地方!
于是我鼓起勇气,硬著头皮,一行一行对照着英文把它给翻译完毕! Spyder 整合了很多套件,文字量比我想像的庞大,也有很多专业用语,费了一翻功夫才翻译到我觉得还算满意的成果,才敢丢出来给大家使用。
虽然说我不认为这种 IDE 需要特别翻译成中文,但对于一些刚入门 Python 的新手,希望仍有帮助。
Read more
[Python]如何安装 pip 套件管理程式,以及 pip 常用指令
pip 是 Python 的套件管理程式,如果你从官网下载并安装 Python,里面就有 pip 可直接使用。但如果你是独立安装的 Spyder IDE,那么 Spyder IDE v5.4.* 所附带的 Python 并没有包含 pip! 在 Spyder 的 IPython 主控台执行 pip 会出现错误:
In []: pip list Note: you may need to restart the kernel to use updated packages. C:\Program Files\Spyder\Python\python.exe: No module named pip
PS. Spyder IDE v6.0.0 已经有包含 pip。
Read more
如何制作简繁转换的中文字型
我在四年前制作了给电子书用的伪直排字型,后来也有加入了“简体中文转繁体中文”的功能。以下说明如何使用 FontForge 来制作简入繁出的字库。
指令档
下载 Simp2Trad-v1.zip,这是本文的重点。
Simp2Trad-v1.zip 解压缩后会有三个档案:
- simp2trad.txt: 简繁转换的指令码
- simp2trad-Reference.txt: 简繁转换的指令码
- result.html: 全部转换的文字
(我有加入几个引号的转换)
如何找回 Skype 的分割检视模式,如何让 skype 停止自动更新
大家都知道 Microsoft Windows 是一个图形接口、支援多视窗、多工环境的作业系统,那么在 Windows 上使用聊天软件,开启多个视窗跟不同人聊天也是合理的,没错吧?!
工作上我会用到 Skype 与同事对话,虽然 Skype for Desktop 默认是单一视窗接口,一次只能看到与一个对象的聊天内容,但 Skype (v8.96 及之前的版本),只要于选项中“启用分割检视模式 (Split View)”,就能让你每次点选不同的聊天对象就开启一个新视窗,方便同时跟不同人聊天、对话:
- 开多个对话视窗来比对或复制资料
- 保留未结束的对话视窗
- 保留重要的对话视窗
对我而言,Skype 能同时开启多个视窗是很重要且必要的功能。
Read more
如何解决 TLS/SSL 使用了不安全的加密算法: ARCFOUR、CBC、HMAC-MD5、HMAC-RIPEMD160
弱点扫瞄
弱点: TLS Service Supports Weak Cipher Suite
Transport Layer Security (TLS), the successor to Secure Socket Layer (SSL), is a network protocol that encrypt communications between TLS servers (e.g., websites) and TLS clients (e.g., web browsers). Every communication is secured by a cipher suite: a combination of several algorithms working in concert. Cryptographic algorithms do not have a defined lifetime, but academics, researchers, and nation states are constantly evaluating them for weaknesses. Consensus on which algorithms are untrustworthy evolves over time, and if a communication is protected with a weak cipher suite then that communication can be altered or decrypted.
- Severity: Medium
- Risk: A TLS service was observed supporting weak cipher suites.
- Recommendation: Disable the cipher suites listed in the evidence column of the measurement.
如何解决 SSH Server 使用了不安全的加密算法: ARCFOUR、CBC、HMAC-MD5、HMAC-RIPEMD160
弱点扫瞄
弱点 1: SSH Supports Weak Cipher
The SSH server is configured to support either Arcfour or Cipher Block Chaining (CBC) mode cipher algorithms. SSH can be configured to use Counter (CTR) mode encryption instead of CBC. The use of Arcfour algorithms should be disabled.
- Severity: Medium
- Risk: A weak cipher has been detected.
- Recommendation: Configure the SSH server to disable Arcfour and CBC ciphers.
弱点 2: SSH Supports Weak MAC
The SSH server is configured to support MD5 algorithm. The cryptographic strength depends upon the size of the key and algorithm that is used. A Modern MAC algorithms such as SHA1 or SHA2 should be used instead.
- Severity: Medium
- Risk: A weak Message Authentication Code (MAC) algorithm has been detected.
- Recommendation: Configure the SSH server to disable the use of MD5.
如何解决 Web/Mail Server 使用了不安全的 SSL 通讯协定
弱点扫瞄
弱点: SSL/TLS Service Supports Weak Protocol
Transport Layer Security (TLS), the successor to Secure Socket Layer (SSL), is a network protocol that encrypt communications between TLS servers (e.g., websites) and TLS clients (e.g., web browsers). Every communication is secured by a cipher suite: a combination of several algorithms working in concert. Networking protocols do not have a defined lifetime, but academics, researchers, and nation states are constantly evaluating them for weaknesses. Consensus on which protocols are untrustworthy evolves over time, and if communications are sent with a weak protocol then that communication can be altered or decrypted.
- Severity: High
- Risk: A TLS service was observed supporting weak protocols.
- Recommendation: Disable the protocols listed in the evidence column of the measurement.
INFORMATION
我们解决了什么问题?我们创造了什么价值?
近期回响