linux.do
21K subscribers
117K photos
195 videos
115 files
250K links
linux.do最新话题和热议话题
Download Telegram
偷偷说句,看到网上有人说哪里是流浪猫公园,周末要带上猫条去撸猫我就很反感

喂食流浪猫,觉得自己很有爱心,实际上助长了更多的流浪猫出现和死亡
1 、大家都知道流浪猫在某地会有人喂食,随便一个理由不想养就直接弃养在那,美其名曰放生,没什么心理负担
2 、缺乏良好生存环境会让流浪猫死亡率很高,就像古代随便一个感冒发烧就能死很多人
3 、更容易造成路人被流浪猫抓伤,被没打疫苗的流浪猫抓伤可能导致狂犬病

真正的爱猫应该把它带回家里养,而不是只享受不负责

14 posts - 14 participants

Read full topic

via LINUX DO - 最新话题 (author: longlong)
GPT被封号,还能恢复吗?

之前有个老号,车不多刚出来的时候注册的,最近一直没怎么用,前段时间加入了站内佬分享的Team大车,后来就被封了。但是有个新申请的小号也加入了,没有被封。请问这种是因为什么啊?

18 posts - 6 participants

Read full topic

via LINUX DO - 最新话题 (author: wpf)
linuxdo当然要dolinux了

linux,虚拟机小白(使用的是virtualxbox虚拟机,ubuntu的latest)
请问下大佬们都是怎么学习linux的
现目前感觉最需要学的就是shell终端
bash
问题

1. 有什么高质量的bash课程吗
2. 学习路线大概是怎么的
3. 对编程语言的要求高吗
4. 其他

目前知道的资源
github上的命令行的艺术
但是感觉没那么好用
B站教程,蛮好的,让我有了基础认识和大概
至于书籍的话,有很多,但是不太能沉浸下去看书

6 posts - 4 participants

Read full topic

via LINUX DO - 最新话题 (author: sw)
超频了两个半小时

生物和化学连着考,中间只隔了五分钟。

化学考的全是离子反应、化学平衡跟热化学方程式,难死我了。 😅

生物还好,都是神经-体液-免疫网络的事。

下午还有科数学,考试结果估计周末能出来。

10 posts - 7 participants

Read full topic

via LINUX DO - 最新话题 (author: #include <karlbaey.h>)
大家在agents.md/claude.md里都放哪些内容来保证上下文又能遵循要求呢

问题的动机

agents.md写的太多了。有些原则似乎就不再跟踪了。尤其是coding style已经写了很多了。

我的coding style

举个例子:
# Python Coding Style

## 0. Core Principles (Highest Priority)
1. **Readability > Abstraction**: Code readability is the absolute highest priority. Do not create abstractions unless they significantly reduce duplication or complexity. Avoid "Over-Engineering".
2. **Pragmatic Advanced Features**:
* You MAY use advanced patterns (e.g., Singleton, Lazy Loading, Decorators) **ONLY IF** there is a clear performance benefit or architectural necessity.
* If used, you MUST explain *why* it is necessary in the comments.
3. **Explicit is Better than Implicit**: Avoid "magic" code that hides too much logic.

## 1. Project Configuration & Environment
* **Environment Files**: Configuration is managed via environment variables.
* `.env`: Base configuration.
* `.env.host`: Local development overrides (git-ignored).
* `.env.container`: Docker/Container specific overrides.
* **Loading**: Use `python-dotenv` or `pydantic-settings` to load these files with priority: `host/container` > `.env`.

## 2. Error Handling & Logging
* **Library**: Use **`loguru`** for all logging. Do NOT use the built-in `logging` module or `print()`.
* **Catch & Log**: All critical logic must be wrapped in try-except blocks.
* Exceptions must be caught and logged using `logger.error` or `logger.exception`.
* **Requirement**: The log must include the traceback and context.
* **Example**:
```python
from loguru import logger

try:
result = unsafe_operation()
except ValueError as e:
# .exception automatically includes the traceback
logger.exception(f"Operation failed due to invalid input: {e}")
raise # Re-raise if the flow cannot continue
```

## 3. Documentation & Logic Chains
* **Mandatory Docstrings**: All functions/classes must have docstrings.
* **Pipeline Functions**: For "Core Pipeline" functions (functions that orchestrate a sequence of calls):
* You **MUST** explicitly write down the **Logic Chain** in the docstring.
* Describe the flow of data between internal method calls.
* **Example**:
```python
def execute_payment_flow(self, user_id: int, amount: float) -> bool:
"""
Orchestrates the user payment process.

Logic Chain:
1. Calls `self._get_user_balance(user_id)` to verify funds.
2. If sufficient, calls `self.payment_gateway.charge(amount)`.
3. On success, calls `self._update_ledger()` and emits a notification event.
"""
pass
```

## 4. Data Models & Typing
* **Strict Type Hinting**: All arguments and return values must be typed. Use `typing.List`, `typing.Optional`, etc.
* **Data Models**:
* **Location**: All data schemas must reside in the `data_model/` directory.
* **Backend I/O**: Use `pydantic.BaseModel` for API inputs/outputs.
* **Internal Data**: Use `dataclasses` or `pydantic` for internal structural data.
* **No Raw Dicts**: Avoid passing raw dictionaries (`Dict[str, Any]`) through multiple layers.

## 5. Async vs Sync
* **I/O Bound**: Use `async def` for DB queries, HTTP requests, and file I/O.
* **CPU Bound**: Use standard `def`.
* **Mixing**: If calling a blocking sync function from an async context, use `await asyncio.to_thread(...)` to avoid blocking the event loop.

## 6. Naming Conventions
* **Variables/Functions**: `snake_case` (e.g., `process_data`, `user_id`).
* **Classes/Models**: `PascalCase` (e.g., `UserResponse`, `DataProcessor`).
* **Constants**: `UPPER_CASE` (e.g., `MAX_RETRIES`, `DEFAULT_TIMEOUT`).
* **Semantics**: Names must be descriptive.
* BAD: `x`, `res`, `temp`
* GOOD: `user_profile`, `api_response`, `temporary_file_path`


问题

其实coding style已经很长了,我还有额外的一些要求。但是为了其他内容就不得不删减这个部分。佬友们有什么好的agents.md都拿出来让我看看(抄抄)。

1 post - 1 participant

Read full topic

via LINUX DO - 最新话题 (author: phimes)
【开源】测试用例工具更新

添加了docker支持,修复了一些未知小问题。
github.com

GitHub - Ggbond626/testflow: TestFlow - AI 驱动的自动化测试用例生成系统

TestFlow - AI 驱动的自动化测试用例生成系统

【开源工具】先端上来吧,TestFlow 测试用例系统 - 开发调优 - LINUX DO

1 post - 1 participant

Read full topic

via LINUX DO - 最新话题 (author: PIKAQIU)
看到个项目Ovo

github.com

GitHub - yiyihuohuo/GalQQ: 基于lsposed实现,对接ai或者使用本地词库,让你的qq变成galgame!

基于lsposed实现,对接ai或者使用本地词库,让你的qq变成galgame!

可以将QQ当做Gal啦() :distorted_face: :distorted_face:

2 posts - 2 participants

Read full topic

via LINUX DO - 最新话题 (author: 大触紫衣)
华为云新加坡现在还值得开么

换了五台了,全都是这个状态,还有必要开么,有什么推荐的么 佬们
1 post - 1 participant

Read full topic

via LINUX DO - 最新话题 (author: 旧友)

Invalid media: image
Gemini网页端的nano banana pro炸了吗

这是昨天的聊天:

今天有时候生成不了图,有时候生成了模型是Nano banana:

4 posts - 2 participants

Read full topic

via LINUX DO - 最新话题 (author: Takumilove)

Invalid media:
image
image
image
image
image
家庭组不共享PRO了咋办

通过了邀请。但是只有2T空间。Gemini pro还是显示要升级。有佬友知道怎么解决嘛

6 posts - 4 participants

Read full topic

via LINUX DO - 最新话题 (author: zhuanjiao)
求各位佬推荐一个干净的安卓平板

预算充足,已经有苹果了,主要想感受下安卓系统,国产非国产都可以,但不想要乱七八糟的广告强制类装进去的东西,纯英文也OK,主诉求就是干净,不带全家桶,然后护眼。

1 post - 1 participant

Read full topic

via LINUX DO - 最新话题 (author: splashrain)
佬们来评评Trea、Qoder、反重力、Cursor、 windsurf哪个好用

Click to view the poll.

1 post - 1 participant

Read full topic

via LINUX DO - 最新话题 (author: xioobu)
VCap Downloader中文便携版,全能网页视频嗅探下载神器

想下载油管的视频,现在idm已经不弹窗了,我找到一个VCap Downloader便携版,超级好用!

软件打开的界面是这样的

把要下载的油管视频拷贝到中间的位置,点击捕获

软件就会解析,并且在右边显示出下载的图标

点击绿色的下载就可以看到不同类型的下载链接

下载链接
绿软小站

VCap Downloader(视频下载工具) v0.1.42.6860 多语便携版

VCap Downloader 是一款视频下载工具,可以帮助用户下载在线视频并保存到本地设备中。它支持下载各种常见的视频格式,包括MP4、FLV、AVI等,并且可以选择下载的视频质量,以满足用户的需求。 软件功能 支持多种视频格式:VCap...

3 posts - 3 participants

Read full topic

via LINUX DO - 最新话题 (author: 睿芯鹤)

Invalid media:
image
image
image
image
ChatGPT官网更好的公式引用和复制

整合版
greasyfork.org

ChatGPT TeX Copy & Quote 整合版

让 ChatGPT 的“Ask ChatGPT”引用和普通复制,对包含 KaTeX 的选区优先返回原始 LaTeX($...$ / $$...$$),不改动 DOM,不叠加多余文本,跨行选区也保持稳定;整合了 TexCopyer 的双击复制功能。

兼容版 兼容TexCopyer
greasyfork.org

ChatGPT TeX Copy & Quote 兼容版

让 ChatGPT 的“Ask ChatGPT”引用和普通复制,对包含 KaTeX 的选区优先返回原始 LaTeX($...$ / $$...$$),不改动 DOM,不叠加多余文本,跨行选区也保持稳定;与 TexCopyer 等脚本兼容。

[!question]
解决了什么问题?1.官网的引用对于公式太拉 2. 官网的复制对于公式太拉

1 post - 1 participant

Read full topic

via LINUX DO - 最新话题 (author: lueluelue)

Invalid media:
image
image
用 Zero Trust 搞了一套 DoT 和 DoH 玩玩

【更新】OAIFree 这个域名换了个方式跟大家见面继续讨论:

始皇帝教我们在 Cloudflare 用 Zero Trust 自己搭建一套 DoT 和 DoH 。虽然已经有魔法了,但是就是想整点活,自己上手试了一下。始皇提供了自己的2个链接,我也放出我的测试链接吧:
DoT: 7vgq999h3g.cloudflare-gateway.com
DoH: https://7vgq999h3g.cloudflare-gateway.com/dns-query

我的 Zero Trust is of Free Plan, 求别搞。

1 post - 1 participant

Read full topic

via LINUX DO - 最新话题 (author: 枫蜜酱)
无所不知!w

终于拿到啦www
但是说…"Know-it-all"总感觉有点怪怪呢…w

24 posts - 16 participants

Read full topic

via LINUX DO - 热门话题 (author: 0wFF)

Invalid media:
image
image
大帅哥是AI吗,为什么哪里都能看到它

如题,注册L站一段时间了,有空就逛逛,发现不管什么时候哪里都有那个叫大帅哥的

37 posts - 31 participants

Read full topic

via LINUX DO - 热门话题 (author: HollowKnight)
有没有擅长分析 CatCode 的LLM?

iframe (External Player - 哔哩哔哩嵌入式外链播放器)

if (AnusIsUnobstructed == true) {
printf ("Bury shit!")
}

22 posts - 21 participants

Read full topic

via LINUX DO - 热门话题 (author: 哈雷彗星)

Invalid media: image
和七年的好朋友 从友谊到爱慕 再到结束

无爱也无心

我说,那以后就不要再联系了
她笑着跟我摆手说拜拜
我觉得很悲伤

我问她你失去我不会难过吗
她说,我让别人难过了,别人要走,我也什么都做不了

我真的沉浸在有这样一个朋友的世界里很久很久了

安静下来后开始浮现出一种不真实感
世界好陌生

失去了个亲人的感觉

43 posts - 37 participants

Read full topic

via LINUX DO - 热门话题 (author: silentint)
年年有今日,岁岁有今朝

啊!!!
离退休又近了一步!!!

水一个 🤩

32 posts - 32 participants

Read full topic

via LINUX DO - 热门话题 (author: mmc1987)

Invalid media: image
DuckCoding 简简单单双十二 本帖再抽5个188额度CDK

大家一定要理性消费!

1、今日12点至12月14日24点(本周日24点),充值比例0.85:1,即0.85元到账1额度

⚠️记得在这里输入充值数量哦!!!

2、暂时取消倍率灵活调整,全时段闲时倍率,持续至12月15日12点(下周一12点),后续正常按照闲时、忙时灵活调整倍率

3、https://check.duckcoding.com 记得每天去看看福利的key哦

4、本帖再抽5个188额度的CDK,开奖时间:北京时间 2025年12月14日 24:00

官网:https://duckcoding.com

官方文档:https://doc.duckcoding.com

开奖工具:

https://lottery.linux.do/

最后,感谢大家一直的支持,DuckCoding也会继续努力!

518 posts - 518 participants

Read full topic

via LINUX DO - 热门话题 (author: Cyrus)

Invalid media:
image
animation