AI太容易轻信。归根结底是它还是不够自信。它并不确定自己的回答是不是对的。我遇到过几次了,它给出的解决方案是对的,只是我自己有地方没弄对,造成结果不对。它不会坚持自己提供的方案,而是左调整右调整。直到我发现原来是我这个人类在一个相关联的地方犯了错误。但凡它能斩钉截铁的说“我的方案没问题,去检查你的相关代码!“,都能节省双方很多时间。也许它根本不在乎多花一点时间。
#csharp You can annotate a property directly as non-nullable to avoid this annoying suggestion: "Non-nullable property must contain a non-null value when exiting constructor. Consider declaring the property as nullable"
If you specify null!; you are saying to the compiler "assign this null, but trust me, it's not null". See
<https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/null-forgiving>
public string Property{ get; set; } = null!;
If you specify null!; you are saying to the compiler "assign this null, but trust me, it's not null". See
<https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/null-forgiving>
Docs
! (null-forgiving) operator - C# reference
Learn about the C# null-forgiving, or null-suppression, operator that is used to declare that an expression of a reference type isn't null.
我第一次尝试 MidJourney(文生图工具)和 Suno(文生音乐工具)时,我想知道未来是否每个人都会成为数字艺术家。
很快,我就意识到我没有"创作冲动",即使看过很多别人的创作,我也常常不清楚自己想要创作的东西。
因此,未来的 AI 即使具备无比强大的绘画和编曲能力,还是只有少数人能成为画家和音乐家。程序员也是如此,即使 AI 会编程,也无法人人成为程序员。
-- 《Cursor 深度体验》#网摘
英文:<https://www.pixelstech.net/article/1734488862-do-not-be-misled-by-'build-an-app-in-5-minutes':-in-depth-practice-with-cursor>
中文:<https://mp.weixin.qq.com/s/JVb7-4a2XOFhfeJusaxvFg>
很快,我就意识到我没有"创作冲动",即使看过很多别人的创作,我也常常不清楚自己想要创作的东西。
因此,未来的 AI 即使具备无比强大的绘画和编曲能力,还是只有少数人能成为画家和音乐家。程序员也是如此,即使 AI 会编程,也无法人人成为程序员。
-- 《Cursor 深度体验》#网摘
英文:<https://www.pixelstech.net/article/1734488862-do-not-be-misled-by-'build-an-app-in-5-minutes':-in-depth-practice-with-cursor>
中文:<https://mp.weixin.qq.com/s/JVb7-4a2XOFhfeJusaxvFg>
www.pixelstech.net
Do Not Be Misled by ‘Build an App in 5 Minutes’: In-Depth Practice with Cursor
In August this year, I tried out Cursor and was thoroughly impressed, prompting me to write an introductory article about it. Soon after, I transitioned my daily work environment entirely from GitHub
#unixtips
'Gow (Gnu On Windows) is the lightweight alternative to Cygwin,' <https://github.com/bmatzelle/gow>
and, <https://uutils.github.io> is another choice, which keeps all common utils that are rewritten in rust.
'Gow (Gnu On Windows) is the lightweight alternative to Cygwin,' <https://github.com/bmatzelle/gow>
and, <https://uutils.github.io> is another choice, which keeps all common utils that are rewritten in rust.
GitHub
GitHub - bmatzelle/gow: Unix command line utilities installer for Windows.
Unix command line utilities installer for Windows. - bmatzelle/gow
#english
## As much as I dislike something 中的 as much as 是什么意思?
在句子 "As much as I dislike something" 中,"as much as" 的意思是尽管或虽然,表示一种让步关系,类似于 "although" 或 "even though"。
---
### 1. 用法解释
- "As much as" 在这种语境中用来引导让步从句,强调尽管某人对某事有某种强烈的情感(如不喜欢、讨厌等),但接下来的内容可能会与这个情感相矛盾。
- 它表达的是一种对立关系:承认某个事实的同时,又引出另一种观点。
---
### 2. 例句
#### a) 承认并让步
- As much as I dislike broccoli, I know it’s good for my health.
(尽管我不喜欢西兰花,但我知道它对健康有好处。)
- As much as he hates early mornings, he still wakes up at 6 a.m. for work.
(尽管他讨厌早起,但他仍然为了工作早上6点起床。)
#### b) 表达对立观点
- As much as I respect his ideas, I cannot agree with him on this issue.
(尽管我尊重他的想法,但在这个问题上我无法同意他的观点。)
- As much as I enjoy traveling, I sometimes miss the comfort of home.
(尽管我喜欢旅行,但有时候我怀念家的舒适。)
---
### 3. 其他含义的 "as much as"
除了表示让步关系,"as much as" 还有其他含义:
#### a) 表示程度上的“和…一样多”
- I love chocolate as much as I love ice cream.
(我喜欢巧克力和喜欢冰淇淋一样多。)
#### b) 表示数量上的“几乎”
- It costs as much as $1,000 to repair the car.
(修车花了将近1000美元。)
---
### 4. 总结
在 "As much as I dislike something" 中,"as much as" 的意思是“尽管”或“虽然”,用于表达让步的语气,承认某个事实的同时,为接下来的对立观点铺垫。
## As much as I dislike something 中的 as much as 是什么意思?
在句子 "As much as I dislike something" 中,"as much as" 的意思是尽管或虽然,表示一种让步关系,类似于 "although" 或 "even though"。
---
### 1. 用法解释
- "As much as" 在这种语境中用来引导让步从句,强调尽管某人对某事有某种强烈的情感(如不喜欢、讨厌等),但接下来的内容可能会与这个情感相矛盾。
- 它表达的是一种对立关系:承认某个事实的同时,又引出另一种观点。
---
### 2. 例句
#### a) 承认并让步
- As much as I dislike broccoli, I know it’s good for my health.
(尽管我不喜欢西兰花,但我知道它对健康有好处。)
- As much as he hates early mornings, he still wakes up at 6 a.m. for work.
(尽管他讨厌早起,但他仍然为了工作早上6点起床。)
#### b) 表达对立观点
- As much as I respect his ideas, I cannot agree with him on this issue.
(尽管我尊重他的想法,但在这个问题上我无法同意他的观点。)
- As much as I enjoy traveling, I sometimes miss the comfort of home.
(尽管我喜欢旅行,但有时候我怀念家的舒适。)
---
### 3. 其他含义的 "as much as"
除了表示让步关系,"as much as" 还有其他含义:
#### a) 表示程度上的“和…一样多”
- I love chocolate as much as I love ice cream.
(我喜欢巧克力和喜欢冰淇淋一样多。)
#### b) 表示数量上的“几乎”
- It costs as much as $1,000 to repair the car.
(修车花了将近1000美元。)
---
### 4. 总结
在 "As much as I dislike something" 中,"as much as" 的意思是“尽管”或“虽然”,用于表达让步的语气,承认某个事实的同时,为接下来的对立观点铺垫。
#english
## agree (on/to) something VS agreed (on/to) something
### 1. "We agree something"
- Tense: Present tense.
- Meaning: Refers to an action that is happening now or is generally true. It indicates that you and someone else are currently reaching an agreement or agree on something habitually.
#### Examples:
- We agree on the plan to move forward.
(We are currently in agreement about the plan.)
- Whenever we discuss important matters, we agree the terms quickly.
(This is a habitual action; it happens every time.)
---
### 2. "We agreed something"
- Tense: Past tense.
- Meaning: Refers to an action that has already happened. It indicates that you and someone else reached an agreement in the past.
#### Examples:
- We agreed on the budget during yesterday’s meeting.
(The agreement about the budget happened in the past.)
- We agreed the new rules before implementing them.
(The agreement was reached before the rules were implemented.)
---
### 3. Note on Usage
- While "agree something" is correct in certain contexts, it is more common to say "agree on something" or "agree to something" in everyday English for clarity.
- Examples:
- We agree on the strategy.
- We agreed to their terms.
- Omitting the preposition (e.g., "We agree something") often sounds more formal or business-like.
---
### 4. Summary
- "We agree something": Present tense; describes an ongoing or habitual action.
- "We agreed something": Past tense; describes an action completed in the past.
Always consider the timeframe of your statement when choosing between the two.
## agree (on/to) something VS agreed (on/to) something
### 1. "We agree something"
- Tense: Present tense.
- Meaning: Refers to an action that is happening now or is generally true. It indicates that you and someone else are currently reaching an agreement or agree on something habitually.
#### Examples:
- We agree on the plan to move forward.
(We are currently in agreement about the plan.)
- Whenever we discuss important matters, we agree the terms quickly.
(This is a habitual action; it happens every time.)
---
### 2. "We agreed something"
- Tense: Past tense.
- Meaning: Refers to an action that has already happened. It indicates that you and someone else reached an agreement in the past.
#### Examples:
- We agreed on the budget during yesterday’s meeting.
(The agreement about the budget happened in the past.)
- We agreed the new rules before implementing them.
(The agreement was reached before the rules were implemented.)
---
### 3. Note on Usage
- While "agree something" is correct in certain contexts, it is more common to say "agree on something" or "agree to something" in everyday English for clarity.
- Examples:
- We agree on the strategy.
- We agreed to their terms.
- Omitting the preposition (e.g., "We agree something") often sounds more formal or business-like.
---
### 4. Summary
- "We agree something": Present tense; describes an ongoing or habitual action.
- "We agreed something": Past tense; describes an action completed in the past.
Always consider the timeframe of your statement when choosing between the two.
#unixtips
推上读到这个小技巧:Linux系统误将chmod权限改成了000,如何恢复?
答:不用慌,使用ld动态库调用chmod即可恢复。
我在我的 PopOS 22.04上实际测试了一下,目录
!image
推上读到这个小技巧:Linux系统误将chmod权限改成了000,如何恢复?
答:不用慌,使用ld动态库调用chmod即可恢复。
我在我的 PopOS 22.04上实际测试了一下,目录
/lib64 要改成 /lib, ld-linux-后面的部分也因系统而异,但这个解决方案确实有效。事实上,你一辈子也可能赶不上一回干这种蠢事,但知道遇到这种情况下仍然有简单的解还是很开心。sudo chmod 000 /usr/bin/chmod
sudo /usr/bin/chmod 755 /usr/bin/chmod
sudo: /usr/bin/chmod: command not found
sudo /lib64/ld-linux-x86-64.so.2 /usr/bin/chmod 755 /usr/bin/chmod
ls -l /usr/bin/chmod
-rwxr-xr-x 1 root root 55816 Feb 8 03:46 /usr/bin/chmod
!image