博客
-
Azure Custom Vision: Use managed identity or other Azure Identity
Refer to: Custom Vision: Azure role-based access control, Custom Vision: azure.identity credentials aren't supported
C# Code
First of all, the C# Code. you can also translate to other language, like Python.
-
猫咪发情期 按压尾巴根 / 指压法
很不幸,我的刚满6个月一天的小猫,还没来得及被提到医院绝育,马上就发情了
以下是如果它突然"哇哇"叫,但手头也没有合适的玩具、猫薄荷,如何使用指压法来让它高潮
参考资料
-
WebM/WebP to GIF with semi-transparency
Preface
Due to Add support of animated sticker #78
There is currently no direct way to convert WebM to GIF this on the Internet.
-
Cut and move Runs via python-docx
I want to cut and paste a run in one same document, but python-docx(1.1.0) don't have the function.
Here are some related page, but it doesn't solve the problem: How do I copy the contents of a word document? Copy paragraphs elements from one document to another
So I carefully read the source code and found that:
- You can process OXML object via
paragraph._pandrun._r, also call(paragraph/run)._element - If you add a
run._rto an otherparagraph._p, it will be automatically removed from the origin paragraph
- You can process OXML object via
-
如何更新 12306 的铁路e卡通证件信息
最近遇到了铁路e卡通满一年,需要更新中国银行实名信息的时候
尽管 12306 提醒需要升级卡片,但实际不需要。
在微信小程序里搜索"中银客信通"(该小程序唯一的功能),使用身份证照片更新证件信息即可
-
代码即操作系统(UpgradeAll 2 开发计划)
随着我使用的电子产品越来越多,跨度涉及 Linux 桌面/服务器,Android。我发现,备份还原的操作系统配置是有极限的,极限在于它未曾理解,也无法理解数据的意义。
DNS hosts 与软件数据库缓存,在它眼里看来,都是一样的"文件"。
过去
这带来一个想法,就是代码即架构,也就是 Ansible、Terraform 等,但是它们在"代码",这个概念的理解上,却出了大差错。软件代码,在软件停止运行后,软件的大部分副作用会消失,而那一小部分副作用也可以以测试代码的形式覆盖。
-
手动线刷任意 Android ROM
通过 Fastboot 与 payload_dumper,我们可以在任意时刻刷入任意我们需要的 ROM。
在本文中,我将分享如何在 Redmi K40 上通过 Fastboot 成功刷入第三方 ROM(如 crDroid OS)的经验。参考了 XDA 论坛上的一些帖子后,我找到了一个简单的方法来避免刷机过程中出现的错误。
最近,在一次更新中,我遇到了
"Error applying update: 7 (ErrorCode:: kInstallDeviceOpenError )Updater process ended with ERROR: 1 Error installing zip file"的错误考虑到 A/B 分区的 OTA 包中根本没有 updater-script 文件,参考 Google 文档"构建 OTA 软件包",你可以修改
pre-device,pre-build-incremental,pre-build等。但相信我,根本没用。通过查询资料,发现文章:Flash fastboot rom / unbrick any xiaomi phone without any flashtool.
-
随笔,摘抄
-
dom4j 的 proguard-rules 配置分享
前言
有用户反馈 UpgradeAll 的 F-Droid 配置无法解析,查看日志后发现 dom4j 部分报错。但是直接 debug 无法复现,只有 release 混淆才会出错。
排错
-
exa 仅显示点文件
exa 是一个 ls 程序的替代品,旨在提供更加友好与多彩的用户界面,其期望与 bat 相似。
背景
在简单尝试 exa 后,我决定 alias 替换 ls 来体验一段时间,然后发现
ls -al --ignore="[^.]*"命令无法被直接替换,因为 exa 没有 ignore 接口。