diff --git a/_data/ai-cache.json b/_data/ai-cache.json index 4b85a58..b0cb3f4 100644 --- a/_data/ai-cache.json +++ b/_data/ai-cache.json @@ -178,5 +178,6 @@ "/2026/03/01/llm3.html": "这篇文章介绍了作者近期在LLM部署和应用方面的经历,主要包括以下几个方面:\n\n首先,作者升级硬件,从单张RTX4090 48GiB升级到双路RTX4090 48GiB,并购买了TRX40+TR 3960X的主板套装,用于运行GPT-OSS模型。随后,作者尝试使用vLLM框架替换Ollama,并成功配置了GPT-OSS模型,达到了接近190Tps的性能。\n\n其次,作者体验了DeepSeek 1M上下文模型,发现其在处理长上下文任务时表现出色,能够展现摘要无法捕捉的细节,并成功生成简历、分析人格等。\n\n此外,作者还尝试使用DeepSeek重构Mabbs,并发现DeepSeek能够识别作者的博客信息,这表明训练样本中包含了作者的信息。\n\n最后,作者在8GiB内存的MacBook Pro上运行了LFM2.5-1.2B-Thinking模型,并使用了Apollo软件,体验了其快速的推理速度和良好的思考能力。作者总结认为,AI的发展令人惊叹,软件优化使其在有限硬件环境下也能运行。", "/2026/04/14/ai-agent.html": "这篇文章介绍了“AI个人助理”Agent的发展现状和各种尝试。作者体验了OpenClaw、QClaw、WorkBuddy、Cline、LuckClaw和ApkClaw等不同的Agent项目,发现它们在功能、易用性和性能上各有优劣。OpenClaw安装和使用存在困难,国内大厂的QClaw和WorkBuddy则更易于上手,但免费额度有限。作者认为,开发任务更适合在编辑器集成AI中进行,如GitHub Copilot。LuckClaw在微型开发板上运行表现出色,ApkClaw则利用手机的优势操作移动应用。尽管Agent技术仍存在诸多问题,但其应用场景不断拓展,有望吸引更多人参与其中,推动AI应用化进程。", "/2026/05/01/virtual-net.html": "这篇文章介绍了作者在尝试异地组网搭建虚拟局域网时,对多种组网工具的探索和体验。作者首先尝试了n2n,但由于其项目停止更新且在NAT后的机器间存在掉线问题,最终选择了WireGuard作为主要方案。文章详细描述了WireGuard的配置过程,包括在Linux、OpenWrt和openEuler系统上的安装和配置,并遇到了各种各样的挑战,例如在红米AX3000路由器上找不到内核模块,以及在openEuler上缺少WireGuard相关包。此外,文章还提到了Netmaker和Headscale等WireGuard的控制平面,以及VNT和EasyTier等其他组网工具,并总结了最终选择WireGuard的原因:简单、够用、可靠性不错,且已经投入了大量配置。", - "/2026/06/01/dedupe.html": "这篇文章介绍了如何通过优化游戏资源文件来节约游戏占用的硬盘空间。作者由于Mac只有256GiB的硬盘存储空间,在下载了几十部游戏后空间不足,于是寻找解决方法。文章主要介绍了以下几点:\n\n1. 使用jdupes工具去除重复素材:作者发现许多游戏使用相同的引擎和素材,导致硬盘空间浪费。通过使用jdupes工具进行硬链接,可以有效去除重复文件,节约空间。\n\n2. 不同引擎的处理方式:\n - 对于RPG制作大师MV/MZ,作者使用RPG Maker Decrypter工具解密资源文件,并将图片转换为WebP格式以压缩空间。\n - 对于RPG制作大师XP/VX/VA,作者使用mkxp-z工具跨平台运行游戏,并通过RPG Maker Decrypter解包资源文件,与RTP素材合并后进行去重。\n - 对于Ren'Py游戏,作者使用unrpa工具解包rpa文件,但由于公共资源不多,仅在系列游戏情况下进行解包。\n\n3. 最终效果:通过以上优化,作者成功将游戏文件夹大小从47G降至33G,节约了大量硬盘空间。" + "/2026/06/01/dedupe.html": "这篇文章介绍了如何通过优化游戏资源文件来节约游戏占用的硬盘空间。作者由于Mac只有256GiB的硬盘存储空间,在下载了几十部游戏后空间不足,于是寻找解决方法。文章主要介绍了以下几点:\n\n1. 使用jdupes工具去除重复素材:作者发现许多游戏使用相同的引擎和素材,导致硬盘空间浪费。通过使用jdupes工具进行硬链接,可以有效去除重复文件,节约空间。\n\n2. 不同引擎的处理方式:\n - 对于RPG制作大师MV/MZ,作者使用RPG Maker Decrypter工具解密资源文件,并将图片转换为WebP格式以压缩空间。\n - 对于RPG制作大师XP/VX/VA,作者使用mkxp-z工具跨平台运行游戏,并通过RPG Maker Decrypter解包资源文件,与RTP素材合并后进行去重。\n - 对于Ren'Py游戏,作者使用unrpa工具解包rpa文件,但由于公共资源不多,仅在系列游戏情况下进行解包。\n\n3. 最终效果:通过以上优化,作者成功将游戏文件夹大小从47G降至33G,节约了大量硬盘空间。", + "/2026/07/01/vibe-coding.html": "这篇文章介绍了作者使用AI Agent进行Vibe Coding的体验。作者通过AI Agent生成代码,实现了博客的PJAX功能和一个立直麻将Wordle小游戏。在使用AI Agent的过程中,作者发现它能够理解整个项目的代码,并且能够根据需求进行修改和优化。然而,作者也遇到了一些问题,例如生成的代码质量不高,需要手动优化和调试。\n\n作者首先使用AI Agent为博客添加了PJAX功能,实现了无刷新加载页面。虽然生成的代码质量不高,但作者还是成功地实现了该功能。接着,作者使用AI Agent生成了一个立直麻将Wordle小游戏,并对其进行了优化和修改。作者还遇到了一些技术问题,例如字体兼容性和役种计算问题,但最终都通过AI Agent解决了。\n\n通过这次体验,作者认为Vibe Coding的体验相当不错,但也存在一些问题。完全由AI生成的代码可能会出现问题,需要手动优化和调试。然而,如果能够正确地使用AI Agent,也可以实现高质量的代码。作者还提到,有时候自己调查和研究比问AI更有效,可以避免浪费时间和精力。" } \ No newline at end of file diff --git a/_data/links.csv b/_data/links.csv index a46e7b7..b7a5015 100644 --- a/_data/links.csv +++ b/_data/links.csv @@ -2,7 +2,7 @@ title,link,feed_url,description 花火学园,https://www.sayhanabi.net/,,和谐融洽的ACG交流以及资源聚集地 资源统筹局,https://gkdworld.com/,,统筹保管用户分享的资源 贫困的蚊子,https://mozz.ie/,https://mozz.ie/index.xml, -极客兔兔,https://geektutu.com/,https://geektutu.com/atom.xml,致力于分享有趣的技术实践 +极客兔兔,https://geektutu.com/,https://geektutu.com/feed.xml,致力于分享有趣的技术实践 维基萌,https://www.wikimoe.com/,https://www.wikimoe.com/rss,萌即是正义!一名热爱acg的前端设计师的小站! 7gugu's blog,https://www.7gugu.com/,https://7gugu.com/index.php/feed/,"一个用来存放我爱好的地方,编程,摄影之类的空间" Kingfish404,https://blog.kingfish404.cn/,https://blog.kingfish404.cn/index.xml,"Stay curious,stay naive. WUT. Jin Yu's Blog" @@ -18,7 +18,10 @@ Lanke's blog,https://blog.blueke.top/,https://blog.blueke.top/rss.xml,请为一 寒士杰克,https://www.hansjack.com/,https://www.hansjack.com/feed/,喜欢捣鼓,不断进步! Pinpe 的云端,https://pinpe.top/,https://pinpe.top/rss.xml,一个属于自己的云朵。 Chise Hachiroku,https://chise.hachiroku.com/zh/,https://chise.hachiroku.com/zh/feed/,向明日的辉迹,干杯! -映屿,https://www.glowisle.me/,https://www.glowisle.me/atom.xml,关于互联网、书籍、生活琐事以及那些一闪而过的念头 +映屿,https://blog.verdant.ee/,https://blog.verdant.ee/atom.xml,关于互联网、书籍、生活琐事以及那些一闪而过的念头 Restent's Notebook,https://blog.gxres.net/,https://blog.gxres.net/atom.xml,不前沿技术分享 -Coseroom,https://coseroom.com,, RavelloH's Blog,https://ravelloh.com,https://ravelloh.com/feed.xml,Beginning of meditation. +初然忆,https://www.imcry.vip,https://www.imcry.vip/index.xml,初心如初见,然忆似流年。 +姓王者,https://xingwangzhe.fun/,https://xingwangzhe.fun/rss.xml,探索、学习、进步、创造无限可能! +EXYONE@BLOG:~$,https://exyon.ee,https://exyon.ee/feed.xml,一隅藏天地,流水遇知音。 +小景,https://jingyuan-zheng.github.io/zh/,https://jingyuan-zheng.github.io/zh/index.xml,随心分享有趣的技术、开源项目与生活记录。 diff --git a/_data/other_repo_list.csv b/_data/other_repo_list.csv index 0c1c64a..97f4b81 100644 --- a/_data/other_repo_list.csv +++ b/_data/other_repo_list.csv @@ -15,506 +15,345 @@ https://tildegit.org/Mayx/mayx https://git.tilde.town/mayx/blog https://gitlab.haskell.org/mayx/mayx https://repo2.serv00.com/git/pub/Mayx/mayx/ -https://git.pixie.town/mayx/mayx https://codefloe.com/mayx/blog +https://git.pixie.town/mayx/blog https://git.minetest.land/Mayx/blog http://1.6.141.109:3000/mayx/blog -http://52.28.156.42/mayx/blog https://code.dsconce.space/mayx/blog -http://101.66.229.132:61088/mayx/blog -https://git.bp-web.app/mayx/blog https://mygit.iexercice.com/mayx/blog http://162.215.134.149:4000/mayx/blog -http://durfee.mycrestron.com:3000/mayx/blog -https://gitea.nongnghiepso.com/mayx/blog -https://codes.tools.asitavsen.com/mayx/blog -https://git.zeroplay.io/mayx/blog http://45.33.87.87/mayx/blog -http://168.126.28.36:3000/mayx/blog -http://69.62.77.234:8888/mayx/blog -http://112.219.147.186:7000/mayx/blog -https://git.rootfinlay.co.uk/mayx/blog https://gitea.belanjaparts.com/mayx/blog http://185.208.225.190:3000/mayx/blog -http://116.204.34.35:12000/mayx/blog https://git.Apture.io/mayx/blog -https://gitea.jasonstolle.com/mayx/blog http://8.134.61.107:3000/mayx/blog -http://47.107.88.161:3000/mayx/blog -http://142.171.47.170:3000/mayx/blog -http://111.231.146.230:8418/mayx/blog -https://git.pwaapp.cc/mayx/blog -https://an360.top/mayx/blog -http://111.119.244.185:3000/mayx/blog -https://git.influxfin.com/mayx/blog http://219.157.255.213:25311/mayx/blog -https://git.vekus.ru/mayx/blog -http://116.204.75.78:6180/mayx/blog -http://109.228.48.121:8000/mayx/blog -http://27.124.12.222:3000/mayx/blog -https://gitea.hintsight.com/mayx/blog -http://blackobelisk.xyz:3000/mayx/blog -https://git.the-kn.com/mayx/blog -https://gitea.shirom.me/mayx/blog -https://git.wangxinlei.cn/mayx/blog -http://123.56.193.182:3000/mayx/blog -http://167.172.7.198:8081/mayx/blog -https://gitea.meetgu.ru/mayx/blog http://116.236.50.103:8789/mayx/blog -https://git.paulll.cc/mayx/blog -http://94.224.160.69:7990/mayx/blog -https://gitea.ekjeong.synology.me/mayx/blog https://git.daoyoucloud.com/mayx/blog -https://code.bitahub.com/mayx/blog https://repo.gusdya.net/mayx/blog https://gitea.synapsetec.cn/mayx/blog http://gitea.yunshanghub.com:8081/mayx/blog http://113.177.27.200:2033/mayx/blog http://152.69.204.151:3000/mayx/blog -http://207.180.229.193:3001/mayx/blog -http://34.81.52.16/mayx/blog -http://123.57.16.111:3000/mayx/blog -https://lius.familyds.org:3000/mayx/blog -http://git.chaojing-film.com:3000/mayx/blog -https://git.nusaerp.com/mayx/blog -http://35.207.205.18:3000/mayx/blog -http://git.zjsciot.com:3000/mayx/blog https://gitea.ontoast.uk/mayx/blog -http://112.124.40.88:5510/mayx/blog -http://121.36.37.70:15501/mayx/blog http://187.216.152.151:9999/mayx/blog http://116.63.173.179:8001/mayx/blog -http://114.116.79.196/mayx/blog -http://121.40.40.177:3000/mayx/blog -http://178.254.35.219:3000/mayx/blog -http://2.59.132.109:3001/mayx/blog -http://81.71.148.57:8080/mayx/blog -https://git.lmskaran.com/mayx/blog -http://154.86.0.30:3000/mayx/blog -http://52.23.128.62:3000/mayx/blog -http://120.46.222.128:10021/mayx/blog -http://120.26.108.239:9188/mayx/blog -http://47.111.17.177:3000/mayx/blog https://k0ki-dev.com/mayx/blog -http://110.42.45.89:2052/mayx/blog https://git.furcom.org/mayx/blog -http://34.102.70.200:3000/mayx/blog -https://gitea.oio.cat/mayx/blog https://git.karma-riuk.com/mayx/blog https://git.7o9o.net/mayx/blog https://git.gupaoedu.cn/mayx/blog https://git.7milch.com/mayx/blog -https://git.sitenevis.com/mayx/blog https://dreamplacesai.de/mayx/blog -http://1.94.13.224:9080/mayx/blog -http://gitea.coderpath.com/mayx/blog -http://43.136.169.169:3000/mayx/blog -http://121.196.213.68:3000/mayx/blog -https://git.micahmoore.io/mayx/blog -https://git.anatid.net/mayx/blog https://git.lekai.info/mayx/blog -http://135.235.225.198:3000/mayx/blog -http://117.72.114.197:3000/mayx/blog -https://git.ashcloud.com/mayx/blog https://git.novaa.xyz/mayx/blog -http://101.46.208.93:3000/mayx/blog -http://23.94.57.60:3000/mayx/blog https://gitea.sciotech.cn/mayx/blog -http://8.140.250.85:3000/mayx/blog -http://202.65.194.19:3000/mayx/blog -http://101.201.34.43:3000/mayx/blog https://git.gloje-rinchen-dorjee-rinpoche-buddhist-monastery.org/mayx/blog -http://101.35.227.2:3000/mayx/blog -http://175.126.123.163:3000/mayx/blog -http://209.141.47.52:3000/mayx/blog -http://60.204.158.188:3000/mayx/blog -http://60.204.156.211:3000/mayx/blog -http://nas.bi1kbu.com:8418/mayx/blog -http://1.94.178.207:3000/mayx/blog -https://gitea.tsaida.synology.me/mayx/blog -https://git.teygaming.com/mayx/blog -http://osztromok.com:3164/mayx/blog -http://175.209.53.134:3030/mayx/blog -http://39.107.226.169:3000/mayx/blog -http://39.96.211.118:3000/mayx/blog -http://121.37.47.20:3000/mayx/blog -https://git.antropix.dev/mayx/blog -http://15.237.198.144/mayx/blog -http://183.6.120.101:30000/mayx/blog -http://57.129.94.190:3000/mayx/blog https://gitea.micro-stack.org/mayx/blog -https://gitea.temp.brentgruber.com/mayx/blog -http://47.102.147.170:3050/mayx/blog -http://172.236.250.154:3000/mayx/blog -http://54.198.134.152:3000/mayx/blog -http://121.41.35.226:11011/mayx/blog -http://47.111.1.12:3000/mayx/blog -https://nelgit.nelpi.co.uk/mayx/blog -http://8.141.91.86:3000/mayx/blog -http://117.72.15.187:3000/mayx/blog -http://81.70.30.91:3000/mayx/blog http://106.54.211.95:3000/mayx/blog -http://210.245.20.73:3333/mayx/blog -http://43.248.97.109:3000/mayx/blog -http://113.207.86.104:3080/mayx/blog -http://39.96.195.72:10082/mayx/blog -https://221.219.181.35:30000/mayx/blog http://172.172.102.93:3000/mayx/blog -http://115.120.245.164:3000/mayx/blog -http://35.194.179.90:3000/mayx/blog -http://66.179.208.56:3001/mayx/blog -http://121.43.60.72:9015/mayx/blog -http://171.80.13.66:9112/mayx/blog http://223.108.157.174:3000/mayx/blog http://120.24.249.56/mayx/blog -http://54.179.203.2:3000/mayx/blog -http://14.103.246.124:16000/mayx/blog -http://152.42.207.183:3000/mayx/blog -http://47.99.60.81:10082/mayx/blog http://120.211.66.170:8418/mayx/blog https://gitea.vilcap.com/mayx/blog -http://121.196.245.62/mayx/blog http://8.138.142.17:3000/mayx/blog -http://www.koelndom.cn:13030/mayx/blog http://209.127.59.74:3000/mayx/blog https://git.dotb.cloud/mayx/blog -https://gitea.augeo.dev/mayx/blog -http://120.46.23.215:3000/mayx/blog http://121.41.2.71:3000/mayx/blog -http://110.41.177.80:5000/mayx/blog -https://gitea.dsmaster.myds.me/mayx/blog -http://www.scserverddns.top:13000/mayx/blog -https://git.lucas-michel.fr/mayx/blog https://git.imvictor.tech:2/mayx/blog -http://47.112.137.193:3000/mayx/blog -http://58.38.123.148:3176/mayx/blog -http://docker.clhero.fun:3000/mayx/blog -https://bdgit.educoder.net/mayx/blog http://e19510c831.iok.la/mayx/blog http://119.45.49.212:3000/mayx/blog https://code.antopie.org/mayx/blog https://git.serenetia.com/mayx/blog -https://vcs.cozydsp.space/mayx/blog -http://115.190.107.87:3000/mayx/blog -http://106.12.50.144:8081/mayx/blog https://code.wxk8.com/mayx/blog -http://8.155.58.218:9000/mayx/blog http://fanlibo.i234.me:8418/mayx/blog https://git.temporaryname.org/mayx/blog https://Repo.gusdya.net/mayx/blog -https://git.m.ctf.arrobe.fr/mayx/blog -http://69.62.64.52:3333/mayx/blog https://git.flymiracle.com/mayx/blog -https://gitea.manekenbrand.com/mayx/blog -http://106.14.138.181:3000/mayx/blog -https://git.yyuu.xyz/mayx/blog -http://39.107.70.124:3000/mayx/blog https://git.stormrain.cn/mayx/blog https://git.deuxfleurs.fr/mayx/blog https://www.simpra.org:3000/mayx/blog -http://8.148.31.14:3000/mayx/blog -http://47.94.246.1:3000/mayx/blog https://www.arcbyte.dev/mayx/blog https://scm.bcorex.e3labs.net/mayx/blog -http://58.17.14.95:8001/mayx/blog -https://hero-cloud-stg-code.cnbita.com/mayx/blog -http://101.37.69.204:3000/mayx/blog https://gitea.tecamino.com/mayx/blog -http://39.99.175.172:8000/mayx/blog -http://8.138.13.251:3000/mayx/blog -http://47.115.223.229:8888/mayx/blog -http://104.254.131.244:3000/mayx/blog -https://gitea.alacloud.de/mayx/blog https://git.tobiasweise.dev/mayx/blog https://code.cif.su/mayx/blog https://git.cynic.moe/mayx/blog https://git.muellers-software.org/mayx/blog -http://8.130.128.130:3000/mayx/blog https://repos.fbpx.io/mayx/blog https://git.cavemanon.xyz/mayx/blog http://svn.rivastudio.cn/mayx/blog -https://kamtk.ru:4000/mayx/blog -http://39.98.126.115:8080/mayx/blog -http://46.202.189.66:3000/mayx/blog -http://82.26.157.11:3001/mayx/blog -http://123.60.146.54:3000/mayx/blog -http://8.140.248.67:3000/mayx/blog http://118.178.172.49:3000/mayx/blog https://gitea.lasallesaintdenis.com/mayx/blog -http://123.57.225.51:3000/mayx/blog http://8.130.135.159:3000/mayx/blog https://git.suo0.com/mayx/blog -http://103.228.160.127:3100/mayx/blog https://git.dshkabatur.ru/mayx/blog -https://gitea.hoba.dedyn.io/mayx/blog -https://git.wegoo.ltd/mayx/blog -http://114.203.209.83:3000/mayx/blog -http://47.100.111.106:3000/mayx/blog http://47.103.78.70:3000/mayx/blog http://47.100.208.160:51300/mayx/blog -http://113.44.218.8:3000/mayx/blog -https://git.cenoq.com/mayx/blog -http://8.152.205.35:3000/mayx/blog http://120.210.80.160:3000/mayx/blog -http://1.95.192.200:59300/mayx/blog http://194.5.152.156:3000/mayx/blog -http://8.155.172.147:3001/mayx/blog -https://git.erfmann.dev/mayx/blog -https://git.weavefun.com:5443/mayx/blog http://58.65.162.118:3000/mayx/blog https://git.arkon.solutions/mayx/blog http://8.131.93.145:54082/mayx/blog -http://111.9.31.174:10007/mayx/blog -https://forgejo.bridgetownrb.com/mayx/blog -http://54.199.96.217:3000/mayx/blog -http://20.219.0.85:3000/mayx/blog -https://gitea.doinlab.com/mayx/blog https://git.7af.ru/mayx/blog https://gitea.yimoyuyan.cn/mayx/blog -https://git.apextoaster.com/mayx/blog -https://hub.open-verse.ai/mayx/blog http://221.203.14.217:3000/mayx/blog -https://git.sophiagwen.au/mayx/blog -http://139.196.96.28:13000/mayx/blog https://dev.kiramtech.com/mayx/blog -https://git.ihatemen.uk/mayx/blog -https://git.123doit.com/mayx/blog -http://62.43.207.91:8889/mayx/blog -https://git.johntsai.online/mayx/blog -https://gitea.css-sistemas.com.br/mayx/blog https://git.f4e.lol/mayx/blog -http://47.113.145.232:3000/mayx/blog -http://47.115.212.237:3000/mayx/blog http://72.61.229.93:4000/mayx/blog https://lishan148.synology.me:3014/mayx/blog_cn -http://1.95.221.174:3000/mayx/blog -https://git.huwhy.cn/mayx/blog_cn -http://119.91.35.154:3000/mayx/blog_cn http://110.42.101.39:13000/mayx/blog_cn http://39.101.74.135:5000/mayx/blog_cn -http://124.236.46.74:9103/mayx/blog_cn http://123.57.130.140:3000/mayx/blog_cn -http://112.124.49.128:3000/mayx/blog_cn http://118.24.46.223:3000/mayx/blog_cn http://s3.v100.vip:31057/mayx/blog_cn https://www.syq.im:2025/mayx/blog_cn http://101.33.225.95:3000/mayx/blog_cn http://45.55.138.82:3000/mayx/blog_cn -http://82.156.121.2:3000/mayx/blog_cn http://118.24.129.148:3000/mayx/blog_cn -http://58.241.155.106:10140/mayx/blog_cn http://120.48.141.82:3000/mayx/blog_cn -http://61.178.84.89:8998/mayx/blog_cn http://82.156.111.58:3000/mayx/blog_cn -https://git.saike.fun:9755/mayx/blog_cn https://git.cool2645.com/mayx/blog_cn -http://1.95.173.44:3000/mayx/blog_cn -http://58.221.157.122:3000/mayx/blog_cn -https://gitlab.liruwei.cn/mayx/blog_cn -http://61.190.74.90:9900/mayx/blog_cn -http://49.234.27.222:3000/mayx/blog_cn -http://8.153.70.81:30001/mayx/blog_cn http://175.27.229.211:3000/mayx/blog_cn -http://106.55.174.214:3000/mayx/blog_cn https://git.yidaimingjvn.xyz/mayx/blog_cn http://39.105.67.143:3000/mayx/blog_cn -http://8.140.232.131:8100/mayx/blog_cn http://82.156.89.21:3000/mayx/blog_cn -https://git.sskuaixiu.com/mayx/blog_cn http://xujiesoft.vicp.net:3000/mayx/blog_cn -http://113.44.36.103:23000/mayx/blog_cn https://git.mingliqiye.com/mayx/blog_cn http://119.29.194.155:8894/mayx/blog_cn http://58.213.60.6:19000/mayx/blog_cn -http://36.153.162.171:3000/mayx/blog_cn http://47.92.113.131:3000/mayx/blog http://gyc.myds.me:4000/mayx/blog -https://git.tablet.sh/mayx/blog -https://git.gnyra.com/mayx/blog https://git.graveyard.sh/mayx/blog https://git.nathanspackman.com/mayx/blog -https://git.rmarl.in/mayx/blog http://git.mynas71.myds.me/mayx/blog -https://git.4lsa.com/mayx/blog -https://rlgit.pro/mayx/blog https://git.veraskolivna.net/mayx/blog https://git.lifetop.net/mayx/blog https://gitea.jnyuxia.com/mayx/blog -http://git.liuhung.com/mayx/blog -https://gitea.adber.tech/mayx/blog https://gitea.hello.faith/mayx/blog -https://tea.neuron.my/mayx/blog https://git.violka-it.net/mayx/blog -https://git.adityagupta.dev/mayx/blog https://git.danpeak.co.uk/mayx/blog https://gitea.mynas-lechner.de/mayx/blog -https://git.automathon.org/mayx/blog https://git.esen.gay/mayx/blog https://git.webtims.ru/mayx/blog -https://gitea.personalsoftware.space/mayx/blog -http://gitea.yiban.com.tw:3030/mayx/blog https://gitlab.iplusus.com/mayx/blog -https://gitea.zachl.tech/mayx/blog https://git.miasma-os.com/mayx/blog https://gitea.nacsity.cn/mayx/blog -https://gitea.diputadosalta.gob.ar/mayx/blog -https://ttym.space/mayx/blog -https://getskill.work/mayx/blog -https://suprasage.com/mayx/blog https://git.zakum.cn/mayx/blog -https://gitea.amazingcoders.com/mayx/blog -https://gitea.kamilklecha.dev/mayx/blog http://47.109.103.110:9000/mayx/blog_cn -http://47.105.124.101:3000/mayx/blog_cn -http://49.232.183.190:3000/mayx/blog_cn -http://git.zxkedu.com:33769/mayx/blog_cn -https://code.wemediacn.com/mayx/blog_cn http://51.159.198.233:3000/mayx/blog https://gitea.adriangonzalezbarbosa.eu/mayx/blog https://git.legatus.ru/mayx/blog -https://git.kayashov.keenetic.pro/mayx/blog http://47.104.241.192:19999/mayx/blog_cn http://47.98.148.146:1026/mayx/blog_cn http://119.96.62.56:3000/mayx/blog_cn -http://101.42.28.156:3000/mayx/blog_cn -http://106.55.0.66:31807/mayx/blog_cn -https://gitea.gentronhealth.com/mayx/blog_cn http://43.143.209.246:6300/mayx/blog_cn -http://152.136.158.133:36512/mayx/blog_cn -http://yidaima.cn:6008/mayx/blog_cn -http://47.113.101.80:3000/mayx/blog_cn -http://82.156.98.34:3000/mayx/blog_cn -http://zgd.synology.me:8418/mayx/blog_cn -https://git.zguiy.com/mayx/blog_cn -http://58.221.216.202:3000/mayx/blog_cn http://39.100.183.95:88/mayx/blog_cn http://www.xshideserver.com:3000/mayx/blog_cn -http://124.223.54.62:28/mayx/blog_cn http://159.75.131.235:3001/mayx/blog_cn http://1.117.67.95:3000/mayx/blog_cn -http://103.236.53.208:3000/mayx/blog_cn -http://118.195.135.194:3000/mayx/blog_cn http://81.70.102.154/mayx/blog_cn -http://154.8.164.149:3000/mayx/blog_cn http://111.228.34.40:3000/mayx/blog_cn -http://82.156.249.211:3000/mayx/blog_cn http://36.133.248.69:3088/mayx/blog_cn http://220.205.16.27:18081/mayx/blog_cn -http://81.69.221.216:3000/mayx/blog_cn -http://115.159.194.75:4000/mayx/blog_cn http://183.204.60.122:10081/mayx/blog_cn -http://43.139.240.37:17000/mayx/blog_cn -http://159.75.27.114:3000/mayx/blog_cn -http://arcreya.top/mayx/blog_cn -https://code.tczkiot.com/mayx/blog_cn -http://111.170.153.123:3000/mayx/blog_cn -http://xeroworld.team/mayx/blog_cn https://gitea.wuyuank.com/mayx/blog_cn -http://47.117.245.9:17701/mayx/blog_cn -https://git.sunlix.one/mayx/blog_cn http://47.106.222.181:20511/mayx/blog_cn -http://101.43.95.130:3001/mayx/blog_cn https://gitea.myat4.com/mayx/blog_cn http://118.24.161.24:3000/mayx/blog_cn http://githanea.s.odn.cc/mayx/blog_cn https://git.dev.chuweizi.com/mayx/blog -http://35.175.189.8/mayx/blog -http://meowug.com:8418/mayx/blog_cn http://36.138.125.206:3000/mayx/blog_cn -https://git.4lcap.com/mayx/blog_cn -http://101.43.238.71:3000/mayx/blog_cn -http://59.110.175.62:4322/mayx/blog_cn -https://www.luluvip.cn:8419/mayx/blog_cn -http://xianyuhome.cn:11013/mayx/blog_cn -https://git.chatumbrella.online/mayx/blog https://silica.codes/mayx/blog https://git.crystalyx.net/mayx/blog https://gittea.dev/mayx/blog -https://git.newnaturalphilosophy.org/mayx/blog https://code.infininov.com/mayx/blog -https://git.apt142.ru/mayx/blog -http://gitea.mcelwain.net/mayx/blog -https://chunkks.com/mayx/blog -https://gitea.earthmanrpg.me/mayx/blog -https://ndiuky.site/mayx/blog https://src.enterpriselinux.social/mayx/blog https://gitea.grxe.io/mayx/blog -https://git.mhworld.net/mayx/blog -https://blvckout.foo/mayx/blog https://gitea.accept.dev.dbf.nl/mayx/blog -https://git.ke5.de/mayx/blog https://git.jhossain.online/mayx/blog -http://gitea.xsec.fun/mayx/blog https://barhoum-lab.fr/mayx/blog https://git.fedaya.net/mayx/blog -http://gitea.nakile.fr/mayx/blog https://redev.lol/mayx/blog -http://git.zfxfzb.com/mayx/blog https://papi.tkpups.com/mayx/blog https://git.beyond-a-i.org/mayx/blog http://huanghomenas2.myqnapcloud.com:4000/mayx/blog_cn -http://43.142.166.108:10082/mayx/blog_cn -https://tm-jikayo.com/mayx/blog_cn -http://zzdgitea.stnav.com/mayx/blog_cn -http://1.117.66.197:3000/mayx/blog_cn http://git.zhmight.com/mayx/blog_cn https://intl-dev.gaia888.com/mayx/blog_cn http://gitea.snailtrack.cn/mayx/blog_cn -http://ydds.cloud:3000/mayx/blog_cn -http://120.24.50.145:3000/mayx/blog_cn https://code.draussenfunker.de/mayx/blog_cn https://git.dinsor.co.th/mayx/blog -https://ofibohost.com/mayx/blog -https://lab.iishka.net/mayx/blog http://www.arkproject.top/mayx/blog http://www.bkandssp.cn:30/mayx/blog -https://gitea.spitaki.cloud/mayx/blog -https://git.codle.ru/mayx/blog -https://codeop.ru/mayx/blog -https://git.mirocom.org/mayx/blog http://gitea.ydxtool.com/mayx/blog -http://18.167.251.121:10003/mayx/blog -http://39.98.171.121:53000/mayx/blog https://gitea.malxte.de/mayx/blog -https://git.nizart.me/mayx/blog -https://git.ddns.net/mayx/blog -http://222.85.214.245:9776/mayx/blog -https://git.kraevsky.ru/mayx/blog -https://ruyiscx.cloud:3000/mayx/blog https://git.0xee.eu/mayx/blog -https://gitea.deitglobal.com/mayx/blog https://git.crwlr.ir/mayx/blog https://git.nozora.top/mayx/blog -https://git.sortug.com/mayx/blog -https://aivyx-gitea.cloud/mayx/blog https://git.edenit.co.kr/mayx/blog https://git.catgirlsneed.homes/mayx/blog -https://git.eldev.netcraze.pro/mayx/blog -http://110.41.184.238:3000/mayx/blog http://47.108.255.216:3000/mayx/blog_cn https://gitea.molietech.com/mayx/blog_cn http://58.87.88.234:3000/mayx/blog_cn http://210.75.240.13:3000/mayx/blog_cn -https://git.xz-i.com:30443/mayx/blog_cn -https://git.fynn.vip/mayx/blog_cn -http://119.91.212.17:3000/mayx/blog_cn http://git.hbg99.com:8080/mayx/blog_cn https://git.eplg.services/mayx/blog -http://89.167.38.168:3001/mayx/blog http://namonba.asuscomm.com:3001/mayx/blog http://109.199.98.226:3001/mayx/blog -https://git.extra.eiffel.com/mayx/blog https://gitea.digitanie.org/mayx/blog https://git.xleed.com/mayx/blog https://qlcodegitserver.online/mayx/blog -https://gitea.vvzvlad.xyz/mayx/blog https://git.supernets.org/mayx/blog https://git.digitaltelepresence.com/mayx/blog https://git.hrfee.pw/mayx/blog https://git.libregaming.org/mayx/blog https://git.kaki87.net/mayx/blog https://forgejo.vanten-s.com/mayx/blog -https://git.heartnn.com/mayx/blog +http://ysx.myds.me:3005/mayx/blog +http://124.71.169.183:3000/mayx/blog +https://git.csi-kjsce.org/mayx/blog +https://hiwifi.denq.us:8418/mayx/blog +https://git.msoucy.me/mayx/blog +http://140.120.108.238:49308/mayx/blog +http://git.chilidoginteractive.com:3000/mayx/blog_cn +https://git.thunder-data.cn/mayx/blog_cn +https://git.cukak.com/mayx/blog_cn +https://git.ixu.me/mayx/blog_cn +http://git.uhfdemo.com/mayx/blog_cn +http://43.143.142.38:7001/mayx/blog_cn +https://gitea.smartechouse.com/mayx/blog_cn +http://git.feashow.cn/mayx/blog_cn +http://git.yangben365.com/mayx/blog_cn +https://git.wieerwill.dev/mayx/blog +https://git.etwo.dev/mayx/blog +https://git.panda-number.one/mayx/blog +https://datacortex.pl/mayx/blog +https://git.trevorbotha.net/mayx/blog +https://viacivis.de/mayx/blog +http://www.wybpohro.com:3000/mayx/blog_cn +https://gitea.jobiglo.com/mayx/blog_cn +http://118.31.7.2:3000/mayx/blog_cn +http://www.dothing.com:6999/mayx/blog_cn +http://101.37.147.115:3000/mayx/blog_cn +https://gitea.originaltech.cn/mayx/blog_cn +https://git.akarmain.ru/mayx/blog_cn +https://git.georgew.dev/mayx/blog +https://gitea.keymantek.com:777/mayx/blog +http://git.realrobots.net/mayx/blog +https://www.tksea.top/mayx/blog +https://wtrb.uk:8443/mayx/blog +http://www.souper.ee/mayx/blog +https://git.tirtapakuan.co.id/mayx/blog +https://tacticallysolved.com/mayx/blog +https://git.juntekim.com/mayx/blog +https://git.farmtowntech.com/mayx/blog +https://gitea.viperlance.net/mayx/blog +https://git.woopwoopserver.com/mayx/blog +http://tian-you.top:7020/mayx/blog +http://34.17.182.140/mayx-gogs/blog +https://gitea.octifor.synology.me:60443/mayx/blog +http://gitea.mikarsoft.com/mayx/blog +https://git.zhewen-tong.cc/mayx/blog +https://mcgit.place/mayx/blog +https://git.sunfamily.site/mayx/blog +https://git.vgorl.is/mayx/blog +https://forgejo.rekallservices.com/mayx/blog +https://git.serradavid.fr/mayx/blog +http://git.instal.org.cn/mayx/blog +https://git.smart-family.net/mayx/blog +https://git.chiasson.cloud/mayx/blog +https://git.sleepeesoftware.fr/mayx/blog +https://git.everestlinux.org/mayx/blog +https://git.devinmajor.com/mayx/blog +https://git.netzbyte.com/mayx/blog +https://repo.saticogroup.com/mayx/blog +https://ataymakhzan.com/mayx/blog +https://repo.qruize.com/mayx/blog +https://git.xneon.org/mayx/blog +https://git.lamby.gay/mayx/blog +https://imperionblast.org/mayx/blog +https://donkey.abanbytes.eu/mayx/blog +https://lab.dutt.ch/mayx/blog +https://git.liestral.io/mayx/blog +https://gitea.dabit.synology.me/mayx/blog +http://www.javabrew.org/mayx/blog https://git.joinplu.me/mayx/blog -https://git.research.dezeeuw.ca/mayx/blog -http://149.104.29.239:8081/mayx/blog +http://otter.top/mayx/blog +https://git.xiongyi.xin/mayx/blog +https://git.pdy.ph/mayx/blog +http://188.66.0.25:3000/mayx/blog +https://gitea.deliverables.io/mayx/blog +https://git.sevenvm.de/mayx/blog +https://code.letsbe.solutions/mayx/blog +https://git.mlhub.it/mayx/blog +https://git.coastit.co.za/mayx/blog +https://git.0bin.in/mayx/blog +https://jsuse.com/mayx/blog +https://git.truncgil.com/mayx/blog +http://23.182.16.150:3000/mayx/blog +https://git.jingflowai.com/mayx/blog +https://git.ritonquilol.fr/mayx/blog +https://bis127.vse.cz/mayx/blog +https://gitea.diereimers.org/mayx/blog +https://app.gitpasha.com/mayx/blog +http://www.flowzl.top/mayx/blog +https://git.psg.net.au/mayx/blog +https://shaman2025.site/mayx/blog +https://gitea.ccllc.pro/mayx/blog +https://gitea.hpdocker.hpress.de/mayx/blog +https://vertpartneerss.club/mayx/blog +https://git.jhammah.com/mayx/blog +https://git.kemomimi.site/mayx/blog +https://gitea.kolesarhome.com/mayx/blog +http://sexy6688.vip/mayx/blog +https://gitbucket.aint-no.info/mayx/blog +https://gitea.emulab.it/mayx/blog +https://git.wikeo.ovh/mayx/blog +https://gitea.finesoft.club:4431/mayx/blog +https://gitea.precia.site/mayx/blog +https://git.bitscat.vn/mayx/blog +http://arch52.co.uk/mayx/blog +https://devcraft-dot.tech/mayx/blog +https://a-t-g.ru/mayx/blog +http://qiubei-git.cn/mayx/blog_cn +http://wangbeibei.xyz:6002/mayx/blog +http://8.141.82.163:20000/mayx/blog_cn +http://152.136.126.252:3000/mayx/blog_cn +https://home.zhupei.me:3000/mayx/blog_cn +http://gitea.coderpath.com/mayx/blog_cn +https://gitea.quiztimes.nl/mayx/blog_cn +https://www.chenisgod.com:3096/mayx/blog_cn +http://81.70.30.91:3000/mayx/blog_cn +http://yidaima.cn:6008/mayx/blog_cn +https://gitea.kdlsvps.top/mayx/blog_cn +http://8.148.31.14:3000/mayx/blog_cn +http://58.17.14.95:8001/mayx/blog_cn +http://39.99.175.172:8000/mayx/blog_cn +http://39.171.252.63:3000/mayx/blog_cn +https://git.lucas-michel.fr/mayx/blog_cn +https://git.archieri.fr/mayx/blog_cn +https://git.cdev.su/mayx/blog +https://root-kit.ru/mayx/blog +https://git.gnyra.com/mayx/blog_cn +https://git.newnaturalphilosophy.org/mayx/blog_cn +https://git.jingchengdl.com/mayx/blog_cn +https://gitea.detr.top/mayx/blog_cn +http://175.178.193.35:3000/mayx/blog_cn +http://frp5.mmszxc.xin:55469/mayx/blog_cn +http://gitea.jb1000.com:88/mayx/blog_cn +https://gitea.liyongzheng.fun/mayx/blog_cn +http://www.22ai.vip/mayx/blog_cn +https://git.tutulab.online/mayx/blog_cn +http://voodoo.plus/mayx/blog_cn +https://git.extra.eiffel.com/mayx/blog_cn +https://hdtime.space/mayx/blog_cn +http://219.151.177.172:3000/mayx/blog_cn +http://62.234.20.54:3000/mayx/blog_cn +https://git.urnas.cn/mayx/blog_cn +http://20.6.159.133:3000/mayx/blog_cn +https://gitea.4gunn.cn:52443/mayx/blog_cn +https://git.4tempo.com/mayx/blog_cn +https://gitea.nightdev.cn:9527/mayx/blog_cn +https://git.hivetasks.com/mayx/blog_cn +https://git.ddns.net/mayx/blog_cn +http://jdunlap.com/mayx/blog diff --git a/_posts/2026-07-01-vibe-coding.md b/_posts/2026-07-01-vibe-coding.md new file mode 100644 index 0000000..5d08def --- /dev/null +++ b/_posts/2026-07-01-vibe-coding.md @@ -0,0 +1,60 @@ +--- +layout: post +title: Vibe Coding新体验 +tags: [Vibe Coding, AI, PJAX, 麻将] +--- + + All in AI! + +# 起因 + 前段时间,我写了一篇关于[AI Agent](/2026/04/14/ai-agent.html)的文章,虽然当时我说这并没有什么创新之处,但在那之后用着用着感觉还是挺好用的,至少相比以前[在云端Vibe Coding](/2025/04/08/feed.html)来说又快又免费,所以我打算分享一下最近我用AI Agent的经历。 + 不过大多数情况下我写代码都可以直接让各路AI在对话中给我生成,那到底有什么样的场景才需要用AI Agent呢?一般应该就是需要边改边测的东西吧。 + +# 关于PJAX的改造 + 虽然说AI生成的东西可靠性并不是很高,但至少在网上已经有很多例子的代码应该不至于乱生成吧……其实我一直都想给我的博客增加全站无刷新的功能,但是每次看到PJAX都要自己重新调用当前页面的各种函数就懒得动手了😂。不过其实这也不是什么复杂的事情,主要是一个一个分析函数比较麻烦,所以既然有AI了,不如直接让AI帮我做吧。于是我让它克隆了我的仓库,分析并写出PJAX的代码。 + 用AI Agent最大的好处就是能让它了解整个项目的所有代码,如果是直接在对话里让AI修改的话就很难做到这一点。总之我告诉它之后等了一会它真的写出来了,我试了一下确实能用,虽然刚开始有不少问题,主要是因为我用了[Live2D](/Live2dHistoire/),不少问题也是这个功能引起的。不过只要我告诉它问题在哪里,它总是能给我改好,先不论它实现的代码怎么样,但至少从效果来说还是相当不错的。 + 最终生成的代码我看了一下,代码质量非常糟糕,把我在别处的代码到处复制粘贴到PJAX用的代码里了,但是体验效果不错……所以没办法,虽然代码很糟糕,但先用着吧。不过我觉得优化应该也能交给AI Agent,只是它有时候改来改去还会把正常代码改坏,所以优化看起来还是只能自己做…… + 最终的代码就是:[pjax.js](/assets/js/pjax.js),虽然我对这个代码质量不是很满意,但是毕竟能用,效果也不错,就先这样用吧~ + +# 生成一个小游戏 + 前段时间,我在Bilibili上看视频的时候发现了一个有趣的微信小游戏,叫做“雀谜”,它把立直麻将和Wordle两个玩法结合到一起,看起来挺有意思。不过它作为微信上的小游戏有些问题,一是看提示要看广告,二是换题也要看广告,而且看广告就算能换题也有次数限制,一天也就几次机会,让我有点不爽。 + 不过从功能上来说看起来并不复杂,感觉用AI直接Vibe Coding完全不是问题,不过AI Agent从零开始写比较考验模型的水平,所以我打算先让各路网页上的AI生成初版的Demo,之后再考虑怎么改。于是我对它们说: +> 帮我制作一款立直麻将Wordle网页小游戏,规则为: +> 1. 系统随机生成一个有役能和的14张牌,必须按照万、筒、索、字的顺序排列,同花色内数字从小到大,但是第14张用来和的牌可以不遵守排列规则 +> 2. 让玩家猜6次来猜到这个牌型,每次猜的牌也必须是满足有役和牌的条件 +> 3. 位置和内容正确的牌用绿色标注、只有内容正确但是位置不正确的用黄色标注,不在生成范围内的牌用灰色标注 +> 4. 界面中所有的牌使用Unicode中的麻将字符,并且提供一组输入按钮用于输入这些麻将字符 +> 5. 输入按钮在游玩过程中也要标注颜色 +> 6. 随机生成的牌需要标注场风、自风和是否自摸,如果是荣和需要额外的役,需要考虑平和之类的役种 +> 7. 加一个提示键,可以查看答案牌型的役种 + + 直接生成确实很考验水平,有很多AI直接生成出来的完全用不了,像DeepSeek生成出来的按钮按上去都没有反应😅,最终只有Gemini生成出来的感觉还不错,无论是界面还是输入的感觉都很好,于是接下来的修改我就打算以Gemini生成出来的代码为主。 + 刚生成出来的代码虽然能玩,但是每个AI直接生成都不想做完整的役种检测,说什么一个对话不够😥,明明各个都是几百k上下文的AI,有什么不够的……总之想一口气就完美做出来显然是不现实的,不过其实最开始我也不打算把所有役都做了,毕竟条件是“有役和牌”,而且没有副露,所以好多可以叠加的役其实都不需要做,尤其是役满那些,大多都可以用其他役的条件满足。 + 在这期间,“平和”算是实现起来最麻烦的,主要是这个役需要根据和牌判定,必须是顺子的两面听牌才可以……虽然AI理解这些知识,但是写的时候经常出问题,像边张之类的经常误判……但是不实现又不行,毕竟这是可以nomi的牌型。 + 最终写的差不多了,感觉还不错,于是在GitHub Pages上[部署了一份](https://mabbs.github.io/riichi-mahjong-wordle/),起名叫[立直麻将 Wordle](https://github.com/Mabbs/riichi-mahjong-wordle)。 + 最开始我以为这个小游戏的玩法是他们原创的,于是把生成的代码又丢给AI,让它评价一下创新性,结果AI说已经有开源了😂,有个叫做[Mahjong Handle](https://github.com/xnuk/mahjong-handle)的才是最早做这个玩法的……还好这代码不是我写的,要是我写了半天结果发现有现成的那就很无语了😆。 + 当然我让AI写的版本也有一些特色,Mahjong Handle那个和原版Wordle一样,每天只有一道题,而且这个题是从题库里抽的,我让AI Agent看了一下它的代码,似乎是用[phoenix-logs](https://github.com/MahjongRepository/phoenix-logs)这个脚本从天凤上下载的牌谱数据解析得到的题库,所以它的题目数量是有限的,而我的代码是完全随机生成的,所以结果是无限的。但AI似乎认为作为Wordle来说一天一题才是它的特色,无限就显得没意思了……既然如此,那干脆让它给我把两个游戏合并了,让它参考Mahjong Handle把一天一题的功能也给我加上,另外Mahjong Handle还有一个MPSZ快速输入法,也让AI给我合并进我的游戏里了。 + 这时候就体现了AI Agent的优势,如果直接用线上的AI把Mahjong Handle中的功能移植到我的代码,我还得完整描述要实现的功能,但是AI Agent能自己看人家仓库的代码,就知道要改什么东西了。 + 最终实现的效果也很不错,虽然我的代码没有题库,但是使用了当天日期作为随机种子,用mulberry32算法搞出了一天一题的功能,还挺有意思的。 + 另外在Mahjong Handle以及原版的Wordle中,还有一个困难模式,就是每次猜测必须使用之前的猜测条件,不过我觉得如果原模原样把这个功能抄过来似乎有点无聊,而且我发现玩这个东西一般直接一个国士+两个一气就基本上把要猜的牌找完了,有点简单,所以我想了一下,要不然限制一下提交的条件,提交的牌型必须包含目标的役种之类的……不过要是做这个功能就不能像之前那样只实现部分役种了,得把所有能用到的都实现一遍,还好这种事情肯定也不是我来做,肯定还得是让AI来😋。 + 实现的时候还不能让AI直接一口气全加上,还得一步一步的提示,而且每个牌型还得手动测一遍……最终虽然做的看起来似乎已经很完善了,不过逻辑的根本还是有点问题,AI设计役种计算的时候是按拆解后役种数量最多的情况来算,但事实上立直麻将算役种是按照高点法,要最终点数最大才行。虽然按照目前的方法绝大多数情况下都能正常工作,但偶尔也会遇到问题,比如像这副牌: + - 🀈🀈🀈🀉🀉🀉🀊🀊🀊🀞🀟🀗🀗 🀝 + + 按照目前的方法计算的结果是: + - 断幺·平和·一杯口 = 3番30符 + + 然而正确答案是: + - 断幺·三暗刻 = 3番50符 + + 但是符数的计算又很麻烦……不过反正提示和验牌都是同一套程序,题倒是也能做出来……所以就懒得修了🤣。当然说到底还是因为AI没有用现有的计算库,像Mahjong Handle用的是现成的[Riichi](https://github.com/takayama-lily/riichi)库,制作起来比我这个就简单多了。 + +# 为游戏添加字体 + 在我制作“立直麻将 Wordle”这个小游戏的时候,我让AI使用的是Unicode中的麻将字符,毕竟有现成的字符总比去找牌的图片要方便,而且实现起来感觉更简单一些。不过用字符确实也会遇到一些问题,我不知道为什么在macOS和Android上其他牌都是黑白的,唯有🀄️是彩色的😅,Windows上使用的Segoe UI Emoji倒都是彩色的,但是牌很丑,像是小学生设计的……虽然不影响玩,但是看着很难受,至少牌的颜色统一一下也好吧?虽然也可以搞出黑白的🀄︎,但如果用这个,在Windows上又成了只有🀄️是黑白的😅。虽然Mahjong Handle是直接用了SVG格式的牌图片,但我觉得应该有现成的麻将字体,像这种问题应该有现成的解决方法才对吧? + 于是我直接问AI有没有这样的字体,AI搜了一下看起来还真有,有个叫做[Mahjong Colored](https://github.com/kfarwell/Mahjong-Colored)就是基于那些SVG做的OpenType-SVG字体,我本来以为问题就会这样解决,然而当我应用了字体之后发现牌的位置变成了白色的方块,貌似只有Firefox才支持这种字体……然而现在谁还用Firefox啊? + 那遇到这种问题怎么办?当然还是让AI解决,它说要在Safari和Chrome上使用彩色字体,用COLR或者SBIX格式比较好,COLR格式的兼容性最好,三个浏览器都能用,而SBIX的话Firefox没法用。不过Firefox既然基本上没人用了,我倒是不太在乎它的兼容性,但我肯定还是更希望能用兼容性更好的方案,于是我把OpenType-SVG字体转换为COLR的工作交给了AI Agent。 + 结果它整了半天也没整出来,貌似是因为SVG的特效太多,没办法转换为COLR格式,于是它选择了SBIX方案,不过COLR存储的是矢量图,而SBIX存储的是位图,大小要大一些,而且放大还会有锯齿。只是目前实在是没办法了,只能用这种格式。 + 最终我把它转换后的字体存了一份到[仓库](https://github.com/Mabbs/Mahjong-Colored-SBIX),但是看着它1MiB多的大小以及不太好的浏览器兼容性,再考虑到它还是位图,实在是不太想在我的游戏里应用它…… + 结果后来我又搜了一下,原来是有现成的麻将字体啊,有个叫做[Mahjong Font](https://github.com/rutopio/mahjong-font)的项目用的就是COLR格式,兼容性非常好,而且大小只有80KiB,算是最完美的解决方案了。垃圾AI给我推荐的Mahjong Colored真的是……浪费了不少时间,看来有的时候自己调查要比问AI好一些吧。 + +# 感想 + 总的来看,目前Vibe Coding的体验确实是相当不错,只是问题也非常明显,完全让AI生成的代码要么实现的不优雅,要么就会出BUG,如果完全不懂要写的东西,纯粹由AI生成,那出问题的概率就非常高了。不过要是看不出来错误,完全被AI忽悠过去了,也许这时候的Vibe Coding在另一方面算是完美吧😂?至少对用的人来说也算是解决了问题呢。 \ No newline at end of file diff --git a/assets/js/jquery.min.js b/assets/js/jquery.min.js index 8306fd0..e836475 100644 --- a/assets/js/jquery.min.js +++ b/assets/js/jquery.min.js @@ -1,4 +1,5 @@ -/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license -*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return new b.fn.init(e,t,r)},x=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^[\],:{}\s]*$/,E=/(?:^|:|,)(?:\s*\[)+/g,S=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,A=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,j=/^-ms-/,D=/-([\da-z])/gi,L=function(e,t){return t.toUpperCase()},H=function(e){(o.addEventListener||"load"===e.type||"complete"===o.readyState)&&(q(),b.ready())},q=function(){o.addEventListener?(o.removeEventListener("DOMContentLoaded",H,!1),e.removeEventListener("load",H,!1)):(o.detachEvent("onreadystatechange",H),e.detachEvent("onload",H))};b.fn=b.prototype={jquery:p,constructor:b,init:function(e,n,r){var i,a;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof b?n[0]:n,b.merge(this,b.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:o,!0)),C.test(i[1])&&b.isPlainObject(n))for(i in n)b.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(a=o.getElementById(i[2]),a&&a.parentNode){if(a.id!==i[2])return r.find(e);this.length=1,this[0]=a}return this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):b.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),b.makeArray(e,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return h.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return b.each(this,e,t)},ready:function(e){return b.ready.promise().done(e),this},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(b.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:[].sort,splice:[].splice},b.fn.init.prototype=b.fn,b.extend=b.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"object"==typeof s||b.isFunction(s)||(s={}),l===u&&(s=this,--u);l>u;u++)if(null!=(o=arguments[u]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(b.isPlainObject(r)||(n=b.isArray(r)))?(n?(n=!1,a=e&&b.isArray(e)?e:[]):a=e&&b.isPlainObject(e)?e:{},s[i]=b.extend(c,a,r)):r!==t&&(s[i]=r));return s},b.extend({noConflict:function(t){return e.$===b&&(e.$=u),t&&e.jQuery===b&&(e.jQuery=s),b},isReady:!1,readyWait:1,holdReady:function(e){e?b.readyWait++:b.ready(!0)},ready:function(e){if(e===!0?!--b.readyWait:!b.isReady){if(!o.body)return setTimeout(b.ready);b.isReady=!0,e!==!0&&--b.readyWait>0||(n.resolveWith(o,[b]),b.fn.trigger&&b(o).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===b.type(e)},isArray:Array.isArray||function(e){return"array"===b.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==b.type(e)||e.nodeType||b.isWindow(e))return!1;try{if(e.constructor&&!y.call(e,"constructor")&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||y.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=b.buildFragment([e],t,i),i&&b(i).remove(),b.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=b.trim(n),n&&k.test(n.replace(S,"@").replace(A,"]").replace(E,"")))?Function("return "+n)():(b.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&b.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(j,"ms-").replace(D,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:v&&!v.call("\ufeff\u00a0")?function(e){return null==e?"":v.call(e)}:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?b.merge(n,"string"==typeof e?[e]:e):d.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(g)return g.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return f.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),b.isFunction(e)?(r=h.call(arguments,2),i=function(){return e.apply(n||this,r.concat(h.call(arguments)))},i.guid=e.guid=e.guid||b.guid++,i):t},access:function(e,n,r,i,o,a,s){var u=0,l=e.length,c=null==r;if("object"===b.type(r)){o=!0;for(u in r)b.access(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,b.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(b(e),n)})),n))for(;l>u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:c?n.call(e):l?n(e[0],r):a},now:function(){return(new Date).getTime()}}),b.ready.promise=function(t){if(!n)if(n=b.Deferred(),"complete"===o.readyState)setTimeout(b.ready);else if(o.addEventListener)o.addEventListener("DOMContentLoaded",H,!1),e.addEventListener("load",H,!1);else{o.attachEvent("onreadystatechange",H),e.attachEvent("onload",H);var r=!1;try{r=null==e.frameElement&&o.documentElement}catch(i){}r&&r.doScroll&&function a(){if(!b.isReady){try{r.doScroll("left")}catch(e){return setTimeout(a,50)}q(),b.ready()}}()}return n.promise(t)},b.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=b.type(e);return b.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=b(o);var _={};function F(e){var t=_[e]={};return b.each(e.match(w)||[],function(e,n){t[n]=!0}),t}b.Callbacks=function(e){e="string"==typeof e?_[e]||F(e):b.extend({},e);var n,r,i,o,a,s,u=[],l=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=u.length,n=!0;u&&o>a;a++)if(u[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,u&&(l?l.length&&c(l.shift()):r?u=[]:p.disable())},p={add:function(){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this},remove:function(){return u&&b.each(arguments,function(e,t){var r;while((r=b.inArray(t,u,r))>-1)u.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?b.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],this},disable:function(){return u=l=r=t,this},disabled:function(){return!u},lock:function(){return l=t,r||p.disable(),this},locked:function(){return!l},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!u||i&&!l||(n?l.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},b.extend({Deferred:function(e){var t=[["resolve","done",b.Callbacks("once memory"),"resolved"],["reject","fail",b.Callbacks("once memory"),"rejected"],["notify","progress",b.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return b.Deferred(function(n){b.each(t,function(t,o){var a=o[0],s=b.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&b.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?b.extend(e,r):r}},i={};return r.pipe=r.then,b.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=h.call(arguments),r=n.length,i=1!==r||e&&b.isFunction(e.promise)?r:0,o=1===i?e:b.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?h.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,u,l;if(r>1)for(s=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&b.isFunction(n[t].promise)?n[t].promise().done(a(t,l,n)).fail(o.reject).progress(a(t,u,s)):--i;return i||o.resolveWith(l,n),o.promise()}}),b.support=function(){var t,n,r,a,s,u,l,c,p,f,d=o.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="
| t |