profile image

Hello, LingC!

Fish’s doom if not salted…

Install Debian on Android devices to become a BT download server

The author discusses their experience with VNC and setting up a Debian environment on an Android device using Termux. After their Android device became unusable due to battery issues, they installed Debian with a simple script. They advise against using Ubuntu in Termux due to limitations with systemd and snap. The post also covers the Phantom Process Killer in Android 12, providing ADB commands to disable it. For VNC access, the author installs the XFCE desktop environment and configures the VNC server to allow connections beyond localhost. They also mention potential future installations like Gogs for a local Git server.

August 7, 2024 · 2 min · LingC

[Dual Boot] Windows Update Destroyed My Linux System

After a Windows update, the user’s Linux system failed to boot due to a 90-second wait and encountered dependency failures. Investigation revealed that Windows swapped the order of the Linux partition and the recovery partition, leading to the issue. The user resolved the problem by repairing Linux, updating fstab, reinstalling Grub, and using efibootmgr to change the boot order.

August 3, 2024 · 2 min · LingC

Git push results in permission denied error 403

When trying to use git push -u origin main, a permission error occurred, indicating that the old user was denied access. To resolve this issue, the author attempted to reset the commit author using git commit --amend --reset-author, but the problem persisted. Ultimately, a solution was found on Stack Overflow: deleting the old credentials successfully resolved the issue, saving an hour of time.

September 15, 2023 · 1 min · LingC

Android Notes 1 - Analysis of the View Event Distribution Mechanism

Coo Coo Coo Basically, this article summarizes the chapter on the View event distribution mechanism from the book “Exploring Android Art Development.” A long time ago, Android development notes were too superficial. Brief Introduction As we all know, an event sequence starts with MotionEvent.ACTION_DOWN (press), followed by multiple MotionEvent.MOVE (move) events, and ends with a MotionEvent.ACTION_UP (release). The order of event transmission is: Activity -> Window -> DecorView -> RootView (the View you set)....

August 14, 2019 · 7 min · LingC

The question of Zhihu Daily

The author started developing a third-party Zhihu Daily client during the summer vacation, using the MVP architecture. They encountered some issues, such as global exception handling and JSON parsing, and chose to use Picasso to load images. To solve the problem of images being too wide in the WebView, the author adjusted the image size through JavaScript. In the end, the author completed the basic loading and viewing functions and shared the code on GitHub. Despite the challenges in the development process, the author still enjoyed the experience.

July 4, 2019 · 4 min · LingC