User contributions for Mwroot
Jump to navigation
Jump to search
29 September 2025
- 10:4010:40, 29 September 2025 diff hist +1,083 N XAMPP 在 Windows 上 localhost 运行缓慢的解决办法 Created page with "参考这里 [https://buildio.dev/speed-up-xampp-on-windows/ 提升 XAMPP 在 Windows 上的速度],及这里 [https://serverfault.com/questions/66347/why-is-the-response-on-localhost-so-slow 为什么 localhost 应答慢]。 解决办法: * 在 <code> httpd.conf </code> 中,把 ServeName=localhost:80 改为 ServerName 127.0.0.1:80 * 在 <code> my.ini </code> 中,把以下几个参数的值都改大一些 <syntaxhighlight lang="bash" line> 145:# innodb_buffer..."
- 10:3910:39, 29 September 2025 diff hist +1,448 N 怎么使用 virt-manager Created page with "== 打不出中文 == # 注销或移除 QT_IM_MODULE、GTK_IM_MODULE; # 在 KDE “系统设置 → 输入设备 → 虚拟键盘” 中选择 IBus Wayland 并应用;或 # 使用 systemsettings 也一样 == 全屏 == * 自带 * 调分辨率 == 共享剪切板 == <syntaxhighlight lang="bash" line> sudo pacman -S spice-vdagent sudo systemctl enable --now spice-vdagentd sudo systemctl start --now spice-vdagentd 确保在硬件里有一个名个 spice 通道,一般..." current
- 10:3810:38, 29 September 2025 diff hist +3,072 N 怎样屏蔽某个网站以令自己更专注地面对生活的真实挑战 Created page with "我有个坏习惯,动不动就刷知乎,仿佛掌管了天下,回首一看除了浪费了时间,收获了焦虑,脑子混沌,眼睛干涩,别的对真实生活的改善几近于无。很不值得。这不是知乎的错,是我自己漫无目标的错。这个脚本可以让我不再滥刷知乎。这个脚本的用途是彻底屏蔽知乎首页,不过对于通过搜索引擎查找到的问题答案界面放行。这样,满足了用知乎查有用资..." current
- 10:3810:38, 29 September 2025 diff hist +210 N 读懂 diff Created page with "在各类代码阅读过程中,diff 结果可谓至关重要。本图讲述怎样读懂 diff 后生成的结果。其中 git diff 形式是最应该引起注意的。 1200px" current
- 10:3710:37, 29 September 2025 diff hist +1,301 N 一段 ahk 脚本,在维基网站上自动输入模板内容 Created page with "在维基编辑过程中,需要输入模板的场景很常见,这个 ahk 脚本可以很方便地使用模板。 <syntaxhighlight lang="ahk" line> ; 适用于 ahk 1.1.37.02 ; 小狼毫对竖线有特殊处理,ahk 不太认识它,所以先用一个变量存储竖线,再用 SendInput 发送 ::case:: su := "|" SendInput, {Raw}{{CaseBox Send, {Enter}{Enter} Send, {Space} SendInput, {Raw}%su% Send, {Enter}{Space} Send, question {Space}= {Enter} Send, {Space} Sen..." current
- 10:3710:37, 29 September 2025 diff hist +1,472 N 一段 ahk 脚本,自动移动光标至标签内,仅输入法中文状态下有效 Created page with "这是一段自动跳转光标进标签的 ahk 脚本样例。它只在输入法中文状态下好用。在英文状态下,始终少跳了一格,我还没找到办法判断小狼毫输入法的中英文状态。 麻烦的地方在于,打中文时,总会先打一个空格键上屏,而打英文时是打什么出什么直出的,这导致英文比中文少打了一个键,往左跳光标时就比中文少跳了一格。 现在,中文状态下,打 del,会..." current
- 10:3710:37, 29 September 2025 diff hist +783 N Crontab 定时任务不按预计运行怎么办 Created page with "有一个 crontab 定时任务,设定了半个月了,今天一检查发现它压根儿没运行。 原任务: <syntaxhighlight lang="bash"> 20 6 * * * source /path/to/activate && /path/to/python /path/to/old.py && deactivate </syntaxhighlight> 网上检索,发现应该是 crontab 中的 py 脚本,找不到预设的 bash 环境变量,具体怎么解决我也不想深究。把运行 old.py 的以下环境变量,都写进以下 new.sh,新任务用 sh 脚..." current
- 10:3610:36, 29 September 2025 diff hist +885 N Screen 使用指南 Created page with "500px <pre> 列出 screen -ls 进入 screen 让离开 screen -d 在显示 attached 无法连接时用 退出 exit 连入 screen -[r]eattach 强行连入 screen -D -r sth 离开 C-a [d]etach 创建 screen -S sth 改名 C-a A 再建 C-a c 关闭 C-a X 杀死 C-a k 加解密 C-a x 切换 C-a n 或 C-a p 切换 C-a tab 切换 C-a 1234.abcd 计数 C-a w 分屏 C-a S 或 C-a | </pre> 对我来说,使用 screen -S 创建, C-a d 离开..." current
- 10:3510:35, 29 September 2025 diff hist +2,558 N 一台 apache 服务器托管多个网站的方法 Created page with "一台服务器放多个网站,无外乎子目录、子域名两种方法。 == 子目录 == <syntaxhighlight lang="apache" line> <VirtualHost *:80> ServerName sample.com DocumentRoot /var/www/site1 <Directory /var/www/site1> AllowOverride All Require all granted </Directory> Alias /site2 /var/www/site2 <Directory /var/www/site2> AllowOverride All Require all granted </Directory> Alias /site3 /var/www/s..." current
- 10:3510:35, 29 September 2025 diff hist +4,464 N 最简单的 Anki 同步教程 Created page with "作为一款强大的记忆卡软件,原理如同一张纸质卡片,正面记问题,反面记答案,再加一套渐进式、抗遗忘、间隔复习的算法,Anki 对许多学生的知识记忆,起到了不可估量的作用。Anki 在知识记忆领域的生态蓬勃发展,未来将会有更多人参与进来,Anki 的功能也会更加强大。 Anki 的多端同步,之前叫人头疼,但现在已经非常方便了。要实现多端同步,需要一..."
- 10:3410:34, 29 September 2025 diff hist +4,752 N 小代码大作用,电脑开荒代码:有哪些代码非常短但非常有用 Created page with "某一天,你拿到了一台新电脑。或者,某一天,你的电脑系统崩溃了。你需要从头配置一套从前习惯的工具链,那么,以下这些小代码,非常有用。请在你理解用处、并自担风险的情况下使用。 == Windows 平台 == <syntaxhighlight lang="powershell" line> # set-network-private.ps1 # 用于把公用网络改为私用网络,实现全屋共享。需以管理员权限运行:创建快捷方式,目标选本..." current
- 10:3410:34, 29 September 2025 diff hist +2,471 N 程序员成长指南 Created page with "== 🧭 第一阶段:打牢基础 == ''目标:读懂常见代码、能用 Linux 解决小问题。'' === 📌 1. 熟练掌握 C 语言 === * 读书推荐:《C 程序设计语言》《C Primer Plus》 * 实践建议: ** 写一个简单的命令行词典或计算器 ** 实现一个 mini 文本编辑器(如 kilo) === 📌 2. 深入 Linux 命令行与系统原理 === * 熟练使用: ** ls, find, chmod, ln, grep, xargs, systemd ** 日志排查:journalctl, ht..." current
- 10:3410:34, 29 September 2025 diff hist +267 N 编程基础 Created page with "== 规则 == {| class="wikitable" |'''符号''' |'''名称''' |'''用途''' |- |; |分号 |表明一条语句 |- |{} |花括号 |表明一个语句块 |- | |空格 |用于区分语法单元 |- |// |双斜杠 |注释符 |- |: |举手符 |注释符 |} == VSCode ==" current
- 10:3310:33, 29 September 2025 diff hist −44 VirtualBox 安装 Debian 的小 tips No edit summary current
- 10:3310:33, 29 September 2025 diff hist +2,141 N VirtualBox 安装 Debian 的小 tips Created page with "《VirtualBox 安装 Debian 的小 tips》 == DVD 安装 == 别用 netins,网速太慢了,光安装成功就要半天。 也别用 CD,也要联网。我试都没试。 用 DVD-1。在国内镜像如 [http://mirrors.163.com/debian-cd/ 网易 Debian iso 镜像] 下载,再用 sha256 验证下载文件的准确性,即可。安装时问要不要<b>网络镜像</b>,一定要选否,不然速度慢成狗。这样,半小时下载好 DVD-1,安装速度非常..."
- 10:3310:33, 29 September 2025 diff hist +2,288 N QEMU KVM LIBVIRT 的区别 Created page with "Author:ChatGPT。本人排版了 wikitext 格式 本笔记梳理了 Linux 下常用虚拟化组件的概念、作用及关系,方便理解和实践。 == KVM == * 本质:Kernel-based Virtual Machine。Linux 内核模块,提供硬件虚拟化能力(CPU + 内存虚拟化)。 * 作用:把物理 CPU 转变为虚拟 CPU,让 guest OS 可以像在真实硬件上一样运行。 * 特点:仅提供虚拟化能力,不负责虚拟机管理或硬件模拟。 :..." current
- 10:3210:32, 29 September 2025 diff hist +1,175 N 怎样令终端更加高效 Created page with "TTY,即终端。当年,人与大型电脑交互,用的是电传打字机,由 Teletype Corporation 制造。这家公司制造的打字机太出名了,人们就把电传打字机称为 TTY。后来,被沿用至 Unix 和 Linux。 Terminal emulator,简称终端,全称应该是终端模拟器。 == 安装 sudo == <syntaxhighlight lang="bash" line> su root apt install sudo 插入 iso Enter </syntaxhighlight> == 调大字号 == <syntaxhighlight lang="bash" l..." current
- 10:3210:32, 29 September 2025 diff hist −13 怎么在 Windows 上使用 Minder No edit summary
- 10:3210:32, 29 September 2025 diff hist −42 怎么在 Windows 上使用 Minder No edit summary
- 10:3210:32, 29 September 2025 diff hist +3,203 N 怎么在 Windows 上使用 Minder Created page with "《怎么在 Windows 上使用 Minder》 == 劝退 == 普通人,直接弃用。Windows 用户想要用这软件,极不容易,非刚需用它就是得不偿失。原开发者对提供 Windows 平台安装包也毫无兴趣。 年轻人,有精力折腾的人,可以考虑。Minder 只对少数 Linux 用户才有用,特别是 ArchLinux 平台 Plasma 桌面环境体验不错。Linux 上一般用包管理器安装就行。 现下 Debian 12 平台使用 Minder 1...."
- 10:3110:31, 29 September 2025 diff hist +904 N WSL2 proxy 的方法 Created page with "== 查 IP == 在 PowerShell 里运行 ipconfig。 == Host 机 == * Proxy 软件开启允许局域网连入 * 开防火墙允许 WSL 流量接入本机 * 把那条系统自建的 WSL 入站规则先删掉 <syntaxhighlight lang="bash" line> New-NetFirewallRule -Name "WSL-Allow-Inbound" -DisplayName "WSL-Proxy" -InterfaceAlias "vEthernet (WSL)" -Direction Inbound -Action Allow </syntaxhighlight> * .wslconfig 里写入 <syntaxhighlight lang="bash" line> dnsTunneling=false <..." current
- 10:3110:31, 29 September 2025 diff hist +1,750 N WSLG 趣谈 Created page with "WSLG 是个非常有趣的玩意儿。 一般 Linux 分为终端版、图形版。终端版像电视里黑客用的那样,全是大黑框、纯文字,没有真正的图片,操作也是纯命令行。图形版就和我们用的 Windows 10 一样,到处是漂亮的图形,操作时用鼠标点点点。 WSL 这个玩意儿, Windows Subsystem for Linux 的简写,意思是 Windows 生个儿子叫 Linux。直接在 Windows 里运行 Linux,不用常规的 Virtu..." current
- 10:3110:31, 29 September 2025 diff hist +1,428 N 用 WSL 安装 Linux 发行版的方法 Created page with "== 前置条件 == <syntaxhighlight lang="PowerShell"> # UEFI 中开启虚拟化支持 # 控制面板 - 卸载 - 启用或关闭 Windows 功能中打开“适用于 Linux 的 Windows 子系统”和“虚拟机平台” # 安装新的 Linux 分发版前将 WSL 2 设置为默认版本 # 在 PowerShell 中 wsl --update wsl --set-default-version 2 </syntaxhighlight> 想用 WSL 2,视情况可能需要安装一个 wsl_update_x64.msi 去更新 WSL 的内核。运行 <code..." current
- 10:3010:30, 29 September 2025 diff hist +2,649 N 从 ArchLinux 改回 Debian 的全过程记录 Created page with "ArchLinux 挺好的,不过我的电脑有点旧了,加上我需要 mediawiki,pacman -Syu 时常常因 mediawiki 而中断,导致启动项丢失,恰逢 Debian 13 发布,于是换回用了多年的 Debian。以下为切换过程的全记录。 * 从 USTC 下载 Debian 13 iso:https://mirrors.ustc.edu.cn/help/debian-cd.html * 校验下载文件的 sha512 * 用 Ventoy 制作安装盘 * 备份浏览器书签及密码 * 备份 MediaWiki 数据库 <syntaxhighligh..."
- 10:3010:30, 29 September 2025 diff hist +3,058 N 一次恢复 ArchLinux 启动项的经历 Created page with "== Fx 问题 == 到底是启动项丢失,还是别的问题导致没有启动项?变量 x 不同,函数 F 不同。 当我遇到开机没有启动项,又没有任何报错时,我最明智的猜测只能是“启动项丢失”这个问题了。 后来问 ChatGPT,还有一些问题可能也有启动项丢失的表象: # grubx64.efi 或 grub.cfg 被误删 # bios 里关闭了 UEFI 或启动了 legacy # CMOS 电池没电了 # 硬盘坏了 如果 <code>efiboo..." current
- 10:2910:29, 29 September 2025 diff hist −29 EndeavourOS 怎么用 No edit summary current
- 10:2910:29, 29 September 2025 diff hist +673 N EndeavourOS 怎么用 Created page with "《EndeavourOS 怎么用》 == pacman == <syntaxhighlight lang="bash" line> # 更新系统 sudo pacman -Syu # 仅更新数据库 sudo pacman -Sy # 搜索软件 pacman -Ss # 安装软件 sudo pacman -S # 卸载软件 sudo pacman -R # 卸载无用依赖 sudo pacman -Rns </syntaxhighlight> == AUR == <syntaxhighlight lang="bash" line> # aur: arch user repo # 更新系统 yay -Syu # 搜索包 yay -Ss # 安装包 yay -S </syntaxhighlight> == VirtualBox == <syntaxhig..."
- 10:2910:29, 29 September 2025 diff hist +110 N 在 WSL2 中使用 ArchLinux Created page with "WSLG 可用性极差。未来再考虑。现在用就是纯纯小白鼠帮人免费搞测试。以后再说。" current
- 10:2810:28, 29 September 2025 diff hist +1,788 N 怎么在 VirtualBox 中使用 ArchLinux Created page with "《怎么在 VirtualBox 中使用 ArchLinux》 == 安装方法 == {| class="wikitable" |+ VirtualBox 中用 archinstall 时建议配置 !项目 !注意事项 !版本 |- |虚拟机 |求旧 |VirtualBox 7.0.24 |- |拓展包 |匹配 |7.0.24.vbox-extpack |- |Guest 包 |与 Arch 对应 |7.1.6-2 |- |Arch |求新 |2025.03.01-x86_64 |- |内核 |求常 |linux |- |桌面 |求常 |KDE Plasma |- |驱动 |求全 |all open sources |} <syntaxhighlight lang="bash" line> 傻瓜式无痛..."
- 10:2810:28, 29 September 2025 diff hist +3,259 N 怎么在 ArchLinux 中使用 MediaWiki Created page with "《怎么在 ArchLinux 中使用 MediaWiki》 以下只为尝试。真用,我还是推荐用 Debian,或 WSL2,或云服务器。ArchLinux 只适合年轻人,有精力去试错。 == MediaWiki 本体 == <syntaxhighlight lang="bash" line> # 在 archlinux,redis 已经被 valkey 取代了。valkey 兼容 redis 的协议。原本的 redis 在 LocalSettings.php 中的配置方式依然有效 sudo pacman -S mediawiki mariadb php apache php-apache php-intl imagemagick..."
- 10:2710:27, 29 September 2025 diff hist +8,297 N 怎么使用 ArchLinux Created page with "== 联网安装 == 若用的不是网线,则需要先联 WIFI 再开始 archinstall。 <syntaxhighlight lang="bash" line> iwctl device list station wlan0 scan station wlan0 get-networks station wlan0 connect wifiname exit ping bilibili.com archinstall </syntaxhighlight> == 换源 == <syntaxhighlight lang="bash" line> # /etc/pacman.d/mirrorlist 配置文件开头加上: Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch </syntaxhighlight> <syntaxhighlight..." current
- 10:2710:27, 29 September 2025 diff hist +383 N 在 Debian 上如何挂载一块硬盘 Created page with "# 找到 UUID 和磁盘格式:<code>lsblk -f</code> 查磁盘分区结构和磁盘类型。<code>sudo blkid</code> 找到 UUID。 # 创建挂载目录:mkdir some # 打开 /etc/fstab 按以下格式写入:<code>UUID=39c71dc4-5576-4660-9f0d-150d8c6c93c2 /home/to/some ext4 defaults,noatime 0 2</code> # <code>sudo mount -a</code>,无报错后检查一遍,才可以重启" current
- 10:2610:26, 29 September 2025 diff hist +693 N Debian 换源方法 Created page with "<syntaxhighlight lang="bash" line> # 把以下写入 /etc/apt/sources.list.d/ustc.sources Types: deb URIs: http://mirrors.ustc.edu.cn/debian Suites: bookworm bookworm-updates Components: main contrib non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Types: deb URIs: http://mirrors.ustc.edu.cn/debian-security Suites: bookworm-security Components: main contrib non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyri..." current
- 10:2610:26, 29 September 2025 diff hist +1,462 N 现在配置 SSL 证书实现 https 非常简单了 Created page with "各大服务商都有商用的 SSL 证书卖,对个人站点来说费用还是有点高。贵有贵的道理,对企业用户来说,不买商用 SSL 证书,出了问题就没人背锅;买了商用 SSL,出了问题就可以甩锅给商家。对个人用户来说,使用 [https://letsencrypt.org/ Let's Encrypt] 实现 https,现在已经可以用三分钟部署成功了。 首先,你得保证你的 http 站点已经正常上线、运行、可访问。 其..." current
- 10:2610:26, 29 September 2025 diff hist +3,023 N Debian 分区满了怎么办 Created page with "600px 在使用围棋 AI 时,遇到了软件解压时,磁盘分区不足,导致 apt 报错的问题。经过多方排查,才知道是 <code>/tmp</code> 分区满了,且 <code>/</code> 分区立马也要满了。一旦重启,<code>/tmp</code> 分区较为空闲时, apt 能正常工作;一旦安装那个占用几个 G 的软件时,进度达 45% 时就报错。 报错为..." current
- 10:2510:25, 29 September 2025 diff hist +3,549 N 怎样在 Debian 上安装围棋 AI Katago Created page with "900px == 概览 == # 安装外壳,即给围棋 AI 引擎找一个界面,一般的围棋 AI 引擎是不带界面的 # 安装内核,即安装围棋 AI 引擎 # 安装权重,即给围棋 AI 引擎一份优秀的历史经验当参考 # 在外壳下配置内核 == 外壳 == 围棋界面程序有 Katrain, Sabaki,Lizzie 等。我们安装 Sabaki,直接进项目地址找 release 即可。 # 进 [https://githu..."
- 10:2510:25, 29 September 2025 diff hist +1,223 N 电脑必备软件名录 Created page with "== Windows 平台 == ===常见=== 任何人都可以安装。 * 7-Zip * 小狼毫输入法 * Amazon Kindle * Anki * Everything * FreeMind * GoldenDict * Free Download Manager * Microsoft Office * Mozilla Firefox ESR * AntConc * accelon3 ===罕见=== 不懂的人不要安装。90% 的人用不上。 * QEMU guest agent * SPICE Guest Tools * Virtio-win-driver-installer * WinFsp * GTK2-Runtime ===高配=== 显卡不行的电脑不要安装。 * Google Earth Pro == Debian..." current
- 10:2410:24, 29 September 2025 diff hist +3,182 N 怎样从 Debian Bullseye 升级至 Debian Bookworm Created page with "改过内核的 KVM 云主机升级难。仅支持从 Debian 11 升 12,不支持从 10 升 12。想要不出事,理论上不该在生产环境升级,应当在复刻出的测试环境升级,没出问题再在生产环境实践。 如果有任何需要修复的东西,最好确保您的 APT source-list 文件仍然指向 bullseye。 == 做好防灾 == ; 全盘备份 : clonezilla : dd : timeshift : rsnapshot ; 重点备份 : /etc : /var/lib/dpkg : /var/lib/apt/e..." current
- 10:2410:24, 29 September 2025 diff hist +1,501 N 常用软件在 bullseye 与 bookworm 上的版本对比 Created page with "{|class="wikitable" !name !bullseye !installed !via !bookworm |- |debian |11.5 |11.5 |iso |12.1 |- |ibus-rime |1.4.0-5 |1.4.0-5 |apt |1.5.0-3 |- |emacs |1:27.1+1-3.1 |27.1 |apt |1:28.2+1-15 |- |scrcpy |1.17-1 |1.17-1 |apt |lack |- |stardict |3.0.6.3-1 |3.0.6.2 |dpkg |3.0.7+git20220909+dfsg-4 |- |stardict-tools |3.0.7+git20220909+dfsg-4~bpo11+1 |3.0.7+git20220909+dfsg-4~bpo11+1 |local |3.0.7+git20220909+dfsg-4 |- |kiwix |2.0.5-3 |2.0.5 |apt |2.3.0-1 |- |flameshot |0.9.0+d..." current
- 10:2310:23, 29 September 2025 diff hist +3,764 N 经典极简 Rime 配置 Created page with "Rime 是一款极致的开源输入法,有非常丰富的可定制细节,没有任何广告,输入体验舒服到近乎无知觉。Windows、Linux、MacOS、安卓等全平台适用。还你一个没有干扰、全然自主的输入法。 以下是一些对 Rime 输入法<b>仓颉输入方案</b>的定制,实现效果为: * 平均三键就能打出任何字,很少选字、翻页,省手省心 * 再也不会忘记一个字长啥样,延续文化血脉 * 比..." current
- 10:2110:21, 29 September 2025 diff hist +233 怎样在 Emacs 中编辑任意文字区域 No edit summary current
- 10:2010:20, 29 September 2025 diff hist +625 N Emacs 后台自动启动-全局层面 Created page with "<syntaxhighlight lang="bash"> sudo touch /etc/systemd/system/emacs-sudo.service sudo chmod 664 /etc/systemd/system/emacs-sudo.service </syntaxhighlight> <syntaxhighlight lang="bash"> [Unit] Description=Emacs: the extensible, self-documenting text editor [Service] Type=forking ExecStart=/usr/bin/emacs --daemon ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" Environment=SSH_AUTH_SOCK=%t/keyring/ssh Restart=always [Install] WantedBy=multi-user.target </syntaxhighlight>..." current
- 10:1910:19, 29 September 2025 diff hist +625 N 怎样在 Emacs 中编辑任意文字区域 Created page with "<syntaxhighlight lang="bash"> sudo touch /etc/systemd/system/emacs-sudo.service sudo chmod 664 /etc/systemd/system/emacs-sudo.service </syntaxhighlight> <syntaxhighlight lang="bash"> [Unit] Description=Emacs: the extensible, self-documenting text editor [Service] Type=forking ExecStart=/usr/bin/emacs --daemon ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" Environment=SSH_AUTH_SOCK=%t/keyring/ssh Restart=always [Install] WantedBy=multi-user.target </syntaxhighlight>..."
- 10:1910:19, 29 September 2025 diff hist +1,023 N Emacs 后台自动启动-用户层面 Created page with "<syntaxhighlight lang="bash"> mkdir -p ~/.config/systemd/user nano ~/.config/systemd/user/emacs-user.service </syntaxhighlight> <pre> [Unit] Description=Emacs text editor as a daemon Documentation=info:emacs man:emacs(1) [Service] Type=forking ExecStart=/usr/bin/emacs --daemon ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" Restart=on-failure [Install] WantedBy=default.target </pre> <syntaxhighlight lang="bash"> systemctl --user daemon-reload systemctl --user ena..." current
- 10:1910:19, 29 September 2025 diff hist +9,247 N Emacs 初级配置 Created page with "== basic == <syntaxhighlight lang="elisp" line> (set-language-environment "UTF-8") (set-default-coding-systems 'utf-8-unix) ;; (setq package-archives '(("gnu" . "http://1.15.88.122/gnu/") ;; ("melpa" . "http://1.15.88.122/melpa/"))) ;; (set-face-attribute 'default nil :font "DejaVu Serif:pixelsize=30") ;; (set-fontset-font t 'han "TW-MOE-Std-Kai:pixelsize=30") ;; (set-fontset-font t 'han "WenQuanYi Zen Hei:pixelsize=25" nil 'append) ;; DejaVu..." current
- 10:1810:18, 29 September 2025 diff hist +2,746 N 怎样用 Emacs 调电子书格式:格式凌乱通用解决方案 Created page with "==背景== 333px 找了本电子书,是 pdf 格式的,无法导出为好格式的 txt。想起好久没玩 Emacs 的 regexp 怕生疏了,于是就用 Emacs 调一下 txt 电子书的格式。 注意,通常并不建议使用 Emacs 调整电子书格式,因为直接重新找资源是更自然、方便、合理的方案。 友情提示:下列图片,点开看全图更易理解,因为白边区域易与..." current
- 10:1710:17, 29 September 2025 diff hist +1,588 N 在 Windows 10 VirtualBox 里的 MediaWiki Created page with "在 Windows 10 里安装 VirtualBox,再在 VirtualBox 里安装 Debian 13,再在 Debian 13 里安装 MediaWiki,是一种怎样的体验? __TOC__ == 用户是谁 == 你在新装 MeidaWiki 时一般会新建一个用户甲。 而旧机器的用户一般是用户乙。 在没导入旧数据库前,用户甲能登录。 在已导入旧数据库后,用户甲就被抹了。要用旧机器的用户登录。 == 端口转发 == 怎样用 VirtualBox 的端口转..." current
- 10:1710:17, 29 September 2025 diff hist +11,999 N 怎样保护你的 MediaWiki 站点的安全:权属建议 Created page with "; 中文版 by me 上上周,我偶然发现我的网站有一个致命的权限问题,意识到风险后连夜采取安全措施。现在把我学到的保护 MediaWiki 站点的方法,分享给大家。注:本文只讨论 Apache 服务器情况,Nginx 请绕道。 == 思想理念 == * 只把对外要用到的 PHP 入口文件放在 web 根目录,其他一切(配置文件、源码、开发文件、构建工具配置、测试文件、文档等)都应移..." current
- 10:1710:17, 29 September 2025 diff hist +44 N Semantic MediaWiki 中的那些符号的意思 Created page with "700px" current
- 10:1610:16, 29 September 2025 diff hist +3,002 N 在 Semantic Mediawiki 中带有 subobject 的模板如何创建 Created page with "在 Semantic MediaWiki 使用过程中,难免需要在同一页面,使用相同的模板。相同模板使用多次时,会导致一个参数有多个取值,最终在用 #ask 查询时,出现笛卡尔积。笛卡尔积的定义:假设集合A={a, b},集合B={0, 1, 2},则两个集合的笛卡尔积为{(a, 0), (a, 1), (a, 2), (b, 0), (b, 1), (b, 2)}。笛卡尔积的排序是乱的,我们必须用 subobject,令每一个参数及其取值,都变得唯一..." current