Category: 计算机 / CS

  • C++ 多线程改造参考 / Reconstructing C++ functions to multi-threaded

    本文为 2023-07-25 所做讲座的文稿,针对将 C++ 代码进行多线程改造的需求给出基础概念、相关技术和注意事项等,供参考。(注:文稿内容仅含概要,不做详细解释;文稿内容经过脱敏处理。) This post is the presented script of the lecture given on 2023-07-25, aiming at guiding the reconstruction of C++ functions to multi-threaded ones, containing the basic concepts, related techniques, and practical notes. (Note: The script only contains essentials, most of which are not explained in detail; the script has been…

  • C++ 代码格式化方案配置 / Configuring C++ code format

    为了在多人协同下保持 C++ 代码格式(特别是缩进)的统一,避免代码库提交历史中频繁出现无谓的格式变化而使有意义的修改难以追溯,在此给出在 IDE/代码编辑器中保持代码格式一致性的一种配置方案。 In order to maintain the consistency of C++ code format (esp. the indentation) during collaboration, and prevent the frequent meaningless format changes in a repository’s commit history, which may hinder the tracing (blaming) of the actual code changes, this post gives possible configuration for keeping the code format consistency among several…

  • Windows 磁盘清理操作清单 / Windows disk clean-up checklist

    本文列出在 Windows 下为释放系统盘空间可检查的事项(含部分软件开发工具的可清理内容),各项说明以 Windows 10 中的操作为准。 This post lists various checkable items for releasing system disk space in Windows, including cleanable contents of sevreal

  • Visual Studio 2015 启动后无响应的原因和对策 / Cause and solution of Visual Studio 2015 not responding after starting up

    针对 Visual Studio 2015 启动后长时间无响应的问题,给出原因并提出对策。 This post aims at giving the causation and providing the solution of Visual Studio 2015 not responding after starting up.

  • C++ 迭代器运算附注 / A note on C++ iterator calculation

    针对 C++ 迭代器的运算需注意迭代器特征(iterator_trait),不同特征的迭代器所适用的运算或所做运算的预期不尽相同。 It is critical to notice iterator_trait before adopting iterator calculation in C++, since iterators with different traits have different range of operations and expected effects.

  • 字符、字符集与字符编码 / Characters, character sets, and character encodings

    本文为 2019-08-16 提供的专题文稿(未开设讲座),讲解了字符(文本)的计算机表示,以帮助理解软件开发中可能遇到的字符乱码问题。 This post is the objective article provided on 2019-08-16 (no lecture held), which briefly explains the computer representation of characters (texts), in order to help understanding the possible incorrect character encoding/decoding during software development.

  • 关于计算机技术的应用层级 / On the usage tiers of computer techniques

    如今,人们在越来越多的方面离不开计算机的支持,需要使用计算机技术达成各式各样的目标。不过,虽同为“使用”,不同的人、不同的需求却依赖于广泛且差异巨大的产品和工具,有的易于理解、操作便捷,有的则基于深度的专业知识(包括所应用领域和计算机领域的专业知识)、具有复杂的操作流程。仅以使用操作系统为例,有的人坚守 Windows 的某个固定版本且需不定期重装,有的人却可以熟练地运用 Gentoo 完成各种需求。根据观察,可认为对于计算机技术的使用分为多个层级,这里作简要划分并给出例子。 Nowadays, the human society has more and more aspects computer-aided, people use computer techniques to reach variety of objectives. However, the so-called “usages” are done via enormous thus diverse types of products or tools, according to the different users or demands. Among them, some are comprehensible and convenient, while some…

  • 类 Unix 发行版使用体验(一) / Usage experiences of Unix-like distributions

    2021 年 11 月至 12 月,Linus Tech Tips 的 YouTube 频道发布了“挑战切换到 Linux”系列视频,并引发了广泛讨论(reddit,Linus Tech Tips,Linux.org,Garuda Linux Forum)。对于习惯成熟商业操作系统的多数人来说,使用 Linux 等类 Unix 发行版总会在很多意想不到的地方出现绊脚石,很容易在初期获得极大的挫败感。而自己一段时间以来使用或尝试了一些类 Unix 操作系统(以 Linux 发行版为主),对一些发行版在理念和组织形式等方面的不同略有所感,在此对个人的简单使用和初步体验作一次总结。考虑到今后可能会进一步使用或继续尝试更多发行版,因此将本文作为这个系列的第一篇。 以下仅为个人使用中的部分过程和相关的个人观点,不代表对各发行版的评价,不构成对发行版推荐或不推荐的理由。 Durint Nov. and Dec. of 2021, Linus Tech Tips YouTube channel published a series of videos on “switching to Linux challenge”, which provoked widespread discussions (on reddit, Linus Tech Tips,…

  • 使用域名访问 WordPress 网站 / Visit WordPress website using domain names

    此网站部署在阿里云服务器 ECS 上,可使用两个域名访问,其中 wymium.cn 跳转到 wymium.com。这里根据此网站的情况列出在阿里云购买与注册、首次备案和使用域名访问 WordPress 网站的过程,主要参照阿里云帮助中心的相关文档,并给出补充说明。此过程因人而异,所以应主要参考平台的帮助文档,这里的说明仅供参考。此外,根据备案地的不同,部分环节可能有差异。 本文所述过程与在服务器搭建 WordPress 网站的过程基本不存在先后关系,又因为阿里云的云小站专享特惠对于新注册用户可能会有域名注册的优惠(注意时限和有效期),所以建议提早完成与域名相关的操作。 This website is deployed on Aliyun Elastic Cloud Server (ECS), visited via two domain names, in which wymium.cn redirects to wymium.com. Based on the situation of this website, this post demonstrates the process of purchasing and registering domain names on Aliyun, initial ICP registration,…

  • 在 Debian 云服务器搭建 WordPress 网站 / Set up WordPress website on cloud server running Debian

    此网站部署在阿里云服务器 ECS 上,使用运行在 LNMP 环境下的 WordPress。由于阿里云帮助中心仅提供了在 CentOS 部署 LNMP 环境和搭建 WordPress 的过程,搜索到的若干在 Debian 搭建的过程总有部分步骤与实际不一致(可能是 LNMP 版本不同导致的),所以在这里梳理一下整个过程,并特别提示可能出现的问题与解决方法。 以下内容参照阿里云帮助中心的文档,列出在阿里云服务器 ECS 创建的 Debian 10.10 实例中部署 nginx、MySQL 和 PHP,并搭建 WordPress 网站的过程。另有使用域名访问网站的说明,该部分较耗时,且与服务器操作不存在先后关系,可提早进行。 This website is deployed on Aliyun Elastic Cloud Server (ECS), running WordPress under LNMP (Linux-nginx-MySQL-PHP) environment. Since Aliyun Help Center provides only the process of deploying LNMP environment…