technique

2024年4月13日

Solution for Unable to Enter GUI After Ubuntu Update

After updating the system, I encountered an issue with Ubuntu 22.04 where the graphical interface could not be accessed. Upon booting, there was a black screen, white screen, flashing underscore, or a loop of login prompts. The error message “Failed to start NVIDIA Persistence Daemon” appeared based on the boot display, but it was possible to log in normally to the command-line interface. Issue Identification Initially, I attempted to use the command “nvidia-smi” to view NVIDIA graphics card information but encountered the following error: According to the prompt, there was a mismatch between the kernel module and driver module versions...

Read More
2024年4月4日

A Letter Detection Method for Mailbox Based on Infrared Diffuse Reflection

Introduction Mailboxes are essential facilities for receiving mail, typically used for receiving untracked ordinary letters. However, because it requires manual confirmation of whether mail has been deposited into the mailbox, it not only necessitates regular mailbox checks but also fails to ensure timely mail reception. This paper proposes a simple method for detecting letters inside mailboxes based on infrared diffuse reflection, aiming to transform existing mailboxes into “Internet of Things”(IoT) mailboxes with mail detection and reporting capabilities. The mailbox is mainly divided into four parts: the box body, power supply, sensor, and communication. Among them, the box body is the...

Read More
2023年10月28日

Resolve Bluetooth Tracker not working after upgrading Home Assistant

I am using Bluetooth Tracker intergration in Home Assistant to determine whether people at home. However, after updating Home Assistant, all devices showed as “away.” After checking the logs, it was discovered that the “PyBluez” library was missing. This passage explains how to make Bluetooth Tracker work with higher versions of Home Assistant. The reason Bluetooth Tracker isn’t working is that it requires a PyBluez version that doesn’t meet the requirements for Python 3.11 (the dependency version is too low). Therefore, you need to make Bluetooth Tracker intergration compatible with a higher version of PyBluez to get it working again....

Read More
2023年10月23日

Embedding memos Timeline in WordPress or website

“memos” is a privacy-focused, lightweight, self-hosted note-taking service that makes it easy to capture and share your brilliant ideas. WordPress, as a web content management system, lacks a mechanism for sharing fragmented content similar to microblogs like Twitter. Embedding the memos timeline in WordPress can solve this problem and provide your readers with more ways to understand you. “memos.top” is a service that uses the memos API to render static pages. In this article, we will show how to embed a specific user’s public timeline by writing iframe code in a custom HTML block in WordPress, which allows you to...

Read More
2023年10月7日

How to run multiple Pleroma instance on one server

Pleroma is a lightweight decentralized social media network software, similar to Mastodon and Misskey, which can interact with other social media programs that support ActivityPub, and have many fork like Pleroma Rebased, Akkoma. I had deployed two Pleroma instances on different servers. To facilitate maintenance, I needed to migrate one of the Pleroma instances to the server where another Pleroma instance was already running. However, I couldn’t find relevant information in the official documentation or on Google. This article will explain how to run multiple Pleroma instances on one server. If you want to deploy mutiple Akkoma or (and) Pleroma...

Read More
2023年9月12日

Using MATLAB to calculate the natural frequency and mode of vibration of the powertrain mounting system

一、Implement Steps 1.1 Matrix Calculation (3)According to provided conditions, if it is not relative to the center position, it may be the following expression(From the content in reference [3] ,but is not provided in the program) (4)There is another form of expression, with only two angles(From the content in reference [1] ,but is not provided in the program) 1.2 Nature frequency and mode of vibration 二、Code 三、Correctness Verification Data: Table 1 Mass and inertia parameters of powertrain (kg,kg·m²) m $I_x$ $I_y$ $I_z$ $I_xy$ $I_yz$ $I_zx$ 227.33 16.87 7.92 16.55 -2.47 2.95 -0.95 The above data can be measured using a three...

Read More