自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

小猪爱拱地

勤奋和毅力是通向成功的阶梯

  • 博客(711)
  • 资源 (1)
  • 收藏
  • 关注

原创 配置Playwright MCP

用账号standard_user和密码secret_sauce登录,并确认登录成功,product页面正常显示。这是因为在 Home目录执行 npm install, 但 home目录下没有 package.json.

2026-09-22 01:19:13 130

转载 Shared Library RPATH vs Binary RPATH: Priority, Linker Search Order, and $ORIGIN Behavior Explained

Steps:Compile (v1 in , v2 in ): Compile with RPATH to (depends on ): Compile with RPATH to (depends on and ): Run and Verify:Result: loads (v1) first. reuses v1, ignoring its own RPATH.Setup:Steps:Compile in : Compile w

2026-08-26 22:00:51 7

原创 交叉编译 Valgrind

这是因为工具链 arm-linux-gnueabihf 默认配置为`-mfloat-abi=hard`,而armv6没有FPU。cortex-a8是有 FPU的。可见,使用 --host= gcc-arm-linux-gnueabihf相当于配置了 "-march=armv6".为什么不配置为 --host= gcc-arm-linux-gnueabihf?

2026-08-10 02:11:10 246

原创 配置 Claude Code for VS + Deepseek

1.在 VS code 的extension里安装 Claude code。2. 安装 cc-switch,在里面配置 deepseek。

2026-08-02 22:59:36 186

转载 Basic Syntax: The Markdown elements outlined in the original design document.

【代码】Basic Syntax: The Markdown elements outlined in the original design document.

2026-06-28 14:19:50 18

转载 Understanding Unicode: Code Points, UTF-8, and Beyond

【代码】Understanding Unicode: Code Points, UTF-8, and Beyond。

2026-06-20 11:01:14 18

原创 python3里升级PIP的方式

【代码】python3里升级PIP的方式。

2026-05-20 00:25:59 40

转载 解决ubuntu移动硬盘自动挂载报错:Error mounting: wrong fs type, bad option, bad superblock on /dev/sdb1问题

查看硬盘信息:查看出错信息:修正:

2026-04-26 17:33:21 50

原创 配置 Cline的大模型

Cline

2026-03-30 01:04:17 256

原创 清理 Ubuntu里不需要的文件

【代码】清理 Ubuntu里不需要的文件。

2026-01-19 23:23:42 161

原创 Ubuntu下无法删除掉的package

有时候有些包无法通过 apt purge命令删掉,使用其它命令( 比如 apt-get install -f,dpkg --configure -a)也没用的情况下, 可以尝试把对应的包的信息从 /var/lib/dpkg/status里删除掉,因为这个方法可能有风险,所以改文件之前最好备份一下。然后执行apt update.

2026-01-19 23:06:26 72

原创 CoroutineScope的一个用法

协程

2026-01-05 23:43:09 199

原创 Android里ViewModel的两种基本用法

1. 在compose里。

2026-01-03 23:22:33 181

转载 Android Studio 镜像站配置

修改 gradle/wrapper/gradle-wrapper.properties文件中的distributionUrl字段,替换为阿里云镜像的对应版本。(要选择 -all 的包)在项目目录的settings.gradle.kts文件中,添加镜像站。二、settings.gradle.kts 配置。一、Gradle Wrapper 配置。

2026-01-03 15:02:46 385

原创 在使用 Android Jetpack Compose的 App里创建 SurfaceView和Surface

基本方法是使用AndroidView创建surfaceview,在surfaceHolder的callback里取得surface。

2025-12-27 14:29:18 172

原创 编译Android 16 TV模拟器(一)

AOSP代码编译

2025-12-13 01:31:45 523

转载 Rooting an Android Emulator for Mobile Security Testing

【代码】Rooting an Android Emulator for Mobile Security Testing。

2025-12-06 00:58:23 304

原创 An error occurred while preparing SDK package Google TV Intel x86 Atom System Image: Not in GZIP

SDK下载失败导致后面无法再次下载的解决方法

2025-11-29 19:28:09 1450 3

原创 如何删除 Mesa 源代码安装的文件。

网上搜了下,发现有人也在抱怨没有 meson uninstall 这样的命令。另外, 下面的文件记录了安装了哪些文件。但后来想删掉,却没找到方法。

2025-11-26 23:31:56 230

原创 Android studio: The emulator process is terminated

之后,重新命令行 launch 模拟器,还是会crash.但如果加上 -gpu off 选项,就不会crash.# 进入 Android SDK 的 emulator 目录。最后把显卡驱动退回到一个老一点的版本(这说明很有可能和显卡驱动有关。# 启动模拟器并显示详细日志。# 列出所有 AVD。),最终把问题解决。

2025-11-26 23:05:58 447

原创 Kotlin 中的 带接收者的函数类型

kotlinintent.block() // 在 intent 对象上执行 lambda。

2025-11-26 22:47:20 741

转载 [C#] I wish I knew : SafeHandle

【代码】[C#] I wish I knew : SafeHandle。

2025-07-19 11:31:06 130

原创 C# Console App生成的 dll文件

可执行文件是一个app host, 它是一个native binary;dll文件则是一个 managed app, 可以用 dotnet ConsoleApp1.dll 执行。执行 可执行文件的时候,内部会调用 dll.在使用 dotnet 8.0 创建一个 C# console app后,执行完编译操作,会发现除了生成可执行文件外,还生成一个 dll文件。

2025-07-10 00:29:02 373

转载 The Ultimate Guide to Writing NUnit Unit Tests in .NET 9

NUnit入门

2025-07-02 01:11:35 188

转载 HDMI vs HDCP: Everything You Should Know About HDMI

HDMI and HDCP are common terms for projectors and other electric devices, such as computers, TVs, and game consoles. In this post, we will share some plain tips on HDMI and HDCP, helping you to know their differences and functions.Table of Contents1 What i

2025-06-27 00:25:38 338

转载 How to Fix Failed to Mount Wrong FS Type, Bad Option, Bad Superblock on Linux

【代码】How to Fix Failed to Mount Wrong FS Type, Bad Option, Bad Superblock on Linux。

2025-05-19 01:01:57 631

转载 Ubuntu 20.04 系统或图像界面卡死或完全无响应处理方法

若Terminal终端还可运行,则一般可以使用Ctrl+Alt+F1(F1~F6, F7为Xorg图像界面)可以进入tty命令行终端,然使用命令行强行终止可能存在占用资源过高的进程(sudo pkill Xorg, sudo restart lightdm等),或reboot/restart重启机器等。但Ubuntu系统完全无响应,可能是出现系统调度死锁等情况,需采取其他方法软重启系统。然后依次按下 R, E, I, S, U, B 键后等待安全重启。此时若一切正常,系统会安全重启。

2025-03-30 22:41:56 1290

原创 Ubuntu 24.0上跳过snap安装 ubuntu software center

【代码】Ubuntu 24.0上跳过snap安装 ubuntu software center。

2025-03-16 18:07:29 358

转载 让Samba共享支持软链接(symlink)

昨天想到在samba共享的目录下新建了一个软链接指向了另外一个目录,试一下能否通过这种方式把多个目录整合到一个共享目录下,方便windows上进行访问。这样的话,windows只需要添加一个网络文件夹就行了,不需要每个共享目录都创建一个网络文件夹的入口。实际测试以后,在默认的samba配置下,可以在samba共享文件内创建软连接,但是在windows终端上挂载/访问这个目录是看不到目录内的软链接的。网上查了一下,只需要简单配置就可以支持,在此做个记录。

2024-12-22 21:14:04 882

转载 How to Transfer Files From Android to Ubuntu

【代码】How to Transfer Files From Android to Ubuntu。

2024-11-20 17:17:48 508

转载 Develop 32bit Applications on 64bit Linux Machines

Develop 32bit Applications on 64bit Linux Machines

2024-11-18 00:41:59 227

原创 画两个数的平方和的曲线

【代码】画两个数的平方和的曲线。

2024-09-28 20:08:19 496

原创 dlopen failure: undefined symbol

今天遇到一个因为没有定义的符号导致 dlopen失败的问题。没有依赖lib1.so, 这或许是问题的原因。在 lib2.so里找不到 foo的定义。再执行 test,就没有刚才的那个问题了。foo 确实是 "U"

2024-09-26 23:47:29 514

原创 Make breakpoint pending on future shared library load

在使用GDB设置断点的时候,有时候会 GDBh 会提示 "Make breakpoint pending on future shared library load".一种情形是设置使用dlopen打开的动态库里的断点。下面通过一个例子说明。

2024-09-25 00:14:53 931

转载 LeetCode: 10. Regular Expression Matching

Given an input string and a pattern , implement regular expression matching with support for and where:The matching should cover the entire input string (not partial).Example 1:Input: s = "aa", p = "a"Output: falseExplanation: "a" does not match the

2024-09-22 10:12:32 306 1

转载 A Quick Gettext Tutorial

A Quick Gettext Tutorial。

2024-06-11 02:35:08 213

原创 编译 python 3.12

因为系统预装的openssl 版本低,下载了一个新版本的openssl,然后在 configure 选项里指向安装的地址.。

2024-05-01 18:12:51 984

转载 How to switch your gcc/g++ version in ubuntu

Install alternative GCC

2024-05-01 17:31:33 328

转载 What is the Difference Between IPTV and OTT?

OTT 和IPTV的区别

2024-04-30 20:34:54 353

转载 Unzip Gz File Python: A Step-By-Step Guide

read file content of gzip file

2024-04-14 23:44:22 221

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除