首页
avatar
lanzhiheng

Rails中实现深拷贝

近期业务上遇到一个需求,就是需要对已有的数据做深拷贝。除了要拷贝这条数据的所有字段之外,还需要拷贝它所关联的图片,以及它所关联的其他资源数据。
· 1 点赞 · 5 评论
avatar
Delton Ding

三点几嚟,饮茶先啦 —— 将大马饮料名编译成汉语

近几日马来西亚网友 Gurdip Singh 在 Facebook 发的这个「三点几嚟,饮茶先啦」非常流行。
· 3 点赞 · 3 评论
avatar
askender

对于写作和阅读平台的思考

很高兴出现了一个新的「写作和阅读平台」,而且是支持markdown的。此前使用Medium和Matters更多。 由于自己兴趣太杂,自己的独立博客荒废很久了(一定会更新的)。目前离开人工智能领域(NLP),独立开发dweb项目,当前在做一个dweb搜索引擎。
· 2 点赞 · 3 评论
avatar
Rei in Geeknote

GeekNote 简介

GeekNote 是一个为 Geek 设计的写作和阅读平台。
· 10 点赞 · 20 评论
avatar
busylog
· 0 点赞 · 0 评论
avatar
wulu

Docker容器中的定时任务:使用Supercronic运行Python脚本

在上一篇文章中,我介绍了 eudic-maimemo-sync 项目——利用 Python 脚本调用欧路词典和墨墨背单词的开放API将生词本自动同步到墨墨背单词,并演示了如何用 Docker 将其部署到树莓派上,每天自动执行同步。
· 0 点赞 · 0 评论
avatar
busylog

WoA on qemu (2025 ver)

prepare for macvtap. the default 52:54:00:12:34:56 mac address is unchanged and the windows instance would be activated by others' license.
· 0 点赞 · 0 评论
avatar
busylog

OpenWrt snapshot in systemd-container

(apt install systemd-container)
· 0 点赞 · 0 评论
avatar
busylog

AllowedIPs calculator for split tunnel and firewall rules

https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calculator/
· 0 点赞 · 0 评论
avatar
busylog

Windows 11 Notes (24H2)

Winget is convenient! no more powershell hacks to uninstall appx. find your apps at https://github.com/microsoft/winget-pkgs or winget se...
· 0 点赞 · 0 评论
avatar
Rei MK2

测试文章 3

3 内容修改 功能测试
· 0 点赞 · 8 评论
avatar
busylog

Mojibake problems

iso-8859-1 -> cp1252 is used in early windows. cp437 is mainly used in dos & defined as one of zip encoding (to save any byte).
· 0 点赞 · 0 评论
avatar
数字支付

2024 年中国移动支付数据摘录 China Payment Data Excerpt

支付宝和微信支付的交易数据由每年一月份公布的投诉处理情况数据计算得出。数据来源:支付宝 | 微信支付
· 0 点赞 · 0 评论
avatar
Rei

Rails 开发者应该拥抱 Web Component

Rails 8 将会继续将 Hotwire 作为默认,我觉得这很好。Hotwire 是以服务端渲染为核心的前端方案,由于服务端是数据的根源,大部分应用可以通过服务端渲染解决问题而不用考虑数据同步。
· 0 点赞 · 0 评论
avatar
yuan

Kotlin 笔记

var experiencePoints: Int = 5
· 0 点赞 · 0 评论
avatar
Rei

《黑神话:悟空》个人测评

我的综合评价是:9分。(作为参考,荒野之息10分,法环9分,仁王9分,巫师三8分,FF7重制版5分)
· 0 点赞 · 0 评论
avatar
Rei

Importmap 还是 jsbundling?我全都要

从 Rails 7 开始,Importmap 成为处理 JavaScript 加载的默认机制。它可以充分利用 HTTP/2 的并行下载和缓存机制,避免打一个大包每次改动都需要下载所有代码。
· 0 点赞 · 0 评论
avatar
busylog

NAT64 with tayga in netns

inspired by https://openwrt.org/docs/guide-user/network/ipv6/nat64
· 0 点赞 · 0 评论
avatar
yuan

ArchLinux@ThinkPad X220 控制风扇转速

安装 thinkfan 和 lm_sensors。
· 0 点赞 · 0 评论
avatar
ae86

请推荐 Rails docker 部署方案

最近才将Rails应用通过Docker的方式进行改造
· 0 点赞 · 11 评论