自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

小猪爱拱地

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

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

转载 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 17

转载 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 225

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

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

2025-03-16 18:07:29 135

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

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

2024-12-22 21:14:04 331

转载 How to Transfer Files From Android to Ubuntu

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

2024-11-20 17:17:48 185

转载 Develop 32bit Applications on 64bit Linux Machines

Develop 32bit Applications on 64bit Linux Machines

2024-11-18 00:41:59 70

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

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

2024-09-28 20:08:19 334

原创 dlopen failure: undefined symbol

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

2024-09-26 23:47:29 344

原创 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 600

转载 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 157 1

转载 A Quick Gettext Tutorial

A Quick Gettext Tutorial。

2024-06-11 02:35:08 105

原创 编译 python 3.12

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

2024-05-01 18:12:51 650

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

Install alternative GCC

2024-05-01 17:31:33 171

转载 What is the Difference Between IPTV and OTT?

OTT 和IPTV的区别

2024-04-30 20:34:54 137

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

read file content of gzip file

2024-04-14 23:44:22 118

转载 Getting Started with C# in VS Code

CSharp

2024-04-12 23:29:14 159

原创 Ubuntu下安装 Dotnet

ubuntu下安装dotnet环境

2024-04-12 22:58:06 1188 1

原创 Python 虚拟环境下安装 numpy和 matplotlib

安装 matplotlib。

2024-04-02 00:24:00 1057

转载 动态开点线段树

本文要求读者对线段树较为熟悉,并能理解左闭右开的区间。动态开点线段树的写法非常多,读者应选择自己喜欢的方式去实现。

2024-02-18 09:50:06 913 1

原创 正则表达式的资源

https://www.regular-expressions.info/index.htmlhttps://regex101.com/

2023-12-16 10:30:16 625

转载 Structured binding declaration (since C++17)

【代码】Structured binding declaration (since C++17)

2023-11-10 03:00:36 550

原创 Ubuntu上安装 Chrome 浏览器

之后即使有更新也不用重新手动下载安装了,因为安装包会在 源里添加相应的信息。

2023-11-02 23:53:24 1110

转载 How to enable/disable wayland on Ubuntu 22.04 Desktop

【代码】How to enable/disable wayland on Ubuntu 22.04 Desktop。

2023-10-28 00:04:01 722

原创 编译基于wanyland的 EFL

解决方法: 安装 gettext。

2023-10-28 00:01:59 259

原创 C++里的优先级队列

它是一个模板类:默认情况下是 max heap, 默认的比较函数是 std::less<T>.如果需要 min heap,或者是处理自定义的数据类型,需要提供定制的 比较函数。priority_queue 的实现使用了 std::make_heap, std::push_heap, std::pop_heap.

2023-07-31 00:14:35 233

原创 无线投屏手机(安卓)屏幕到 Linux(ubuntu 22.04)桌面

无线投屏安卓手机到 ubuntu

2023-07-23 18:23:26 5154 1

原创 宏函数的错误。

使用的时候发现结果不对,也没看出来错在哪了。现在能看出来代码错在哪了。

2023-07-03 01:03:24 259

转载 ubuntu中 删除 snap

snap

2023-06-06 00:55:53 1393

原创 安装 Win11 + Ubuntu 22.04双系统

ubuntu+ win11 双系统安装

2023-04-16 22:57:50 1421

转载 Find Matching Text and Replace the Next Line

Find Matching Text and Replace the Next Line

2023-04-05 23:03:56 199

原创 力扣 1584. 连接所有点的最小费用

最小生成树

2023-01-27 11:46:12 214

原创 LeetCode: 最小体力消耗路径

优先级队列

2023-01-24 15:43:45 235

原创 如何找到发送信号杀死其他进程的程序

信号

2022-08-24 10:32:18 225

转载 How to find Which Process Is Killing mysqld With SIGKILL or SIGTERM on Linux

linux signal

2022-08-24 08:42:18 349

原创 Hanoi Tower问题的中间状态

Hanoi Tower问题

2022-08-06 18:24:01 161

原创 有序双向链表的实现。

双向链表

2022-07-24 17:24:20 468

原创 支持删除,更新任意结点的优先级队列

优先级队列

2022-06-26 16:10:41 244

原创 小写字母构成的字符串的哈希

字符串哈希

2022-06-18 16:44:14 352

转载 删除优先级队列的第k个元素

假定是最小堆。伪代码: 1, Delete a node from the array (this creates a "hole" and the tree is no longer "complete") 2. Replace the deletion node with the "fartest right node" on the lowest level of the Binary Tree (This step

2022-04-23 22:08:49 330

原创 Linux下怎么检查网线是否接上了

1. $ cat /sys/class/net/enp0s25/carrier11表示接上,0表示没接上。下面的命令表示网线状态是 UP还是DOWN:$ cat /sys/class/net/enp0s25/operstate upDown的话可以用命令 UP起来:ip link set dev eth1 up2.使用 ethtool$ ethtool enp0s25 | grep Link\ dCannot get wake-on-lan settings

2022-02-23 22:53:31 9849 2

空空如也

空空如也

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

TA关注的人

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