Blog
-
Azure Custom Vision: Use managed identity or other Azure Identity
Reference: 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 it to other languages like Python.
-
Cat in Heat: Tail Base Pressure / Finger Pressure Method
Unfortunately, my kitten, just one day past 6 months old, went into heat before I could schedule her spay surgery.
Here's how to use the finger pressure method to help her climax when she suddenly starts yowling and you don't have appropriate toys or catnip on hand.
Reference Materials
-
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
-
How to Update ID Information for Railway e-Card on 12306
Recently encountered the situation where Railway e-Card reached one year and required updating Bank of China's real-name information
Although 12306 prompts for card upgrade, it's actually unnecessary.
Reference: Railway e-Card Activation Error: Operation Failed, System Error, Reserved
Search for "BOC Customer Verification" in WeChat mini-programs (this mini-program's sole function), then update ID information using ID card photos.
-
Code as Operating System (UpgradeAll 2 Development Plan)
As I use more electronic products spanning Linux desktops/servers and Android, I've realized there are limits to backup/restore OS configurations - the fundamental limitation being that it neither understands nor can understand the meaning of data.
Whether it's DNS hosts or software database caches, they're all just "files" in its eyes.
The Past
This led to the idea of "code as infrastructure," exemplified by Ansible and Terraform. However, their interpretation of "code" contains significant flaws. With software code, most side effects disappear when the software stops running, and the remaining side effects can be covered by test code.
-
Manually Flashing Any Android ROM
With Fastboot and payload_dumper, we can flash any ROM we need at any time.
In this article, I'll share my experience successfully flashing third-party ROMs (like crDroid OS) on Redmi K40 via Fastboot. After referencing some threads on XDA forums, I found a simple method to avoid errors during flashing.
Recently, during an update, I encountered the error:
"Error applying update: 7 (ErrorCode:: kInstallDeviceOpenError )Updater process ended with ERROR: 1 Error installing zip file"Considering OTA packages for A/B partitions don't contain updater-script files at all, referring to Google's "Building OTA Packages" documentation, you could modify
pre-device,pre-build-incremental,pre-build, etc. But trust me, it's completely useless.Through research, I found this article: Flash fastboot rom / unbrick any xiaomi phone without any flashtool.
-
Random Thoughts, Excerpts
-
Sharing dom4j Proguard Rules Configuration
Preface
Users reported that UpgradeAll's F-Droid configuration couldn't be parsed. Checking logs revealed dom4j-related errors. However, debugging couldn't reproduce the issue - it only occurred in release builds with obfuscation.
Troubleshooting
-
Displaying Only Dotfiles with exa
exa is a replacement for the ls command, designed to provide a more user-friendly and colorful interface, similar to what bat aims to achieve.
Background
After briefly trying exa, I decided to alias it to replace ls for a trial period. Then I discovered that the
ls -al --ignore="[^.]*"command couldn't be directly replaced since exa doesn't have an ignore parameter.