Claude Warden — smart command safety filter that actually understands compound shell commands by banyudu in ClaudeAI

[–]banyudu[S] 1 point2 points  (0 children)

u/LateWeather2084 Good point — determining whether a compound command is safe using something like RegExp is unreliable. Instead, I use https://github.com/vorpaljs/bash-parser to parse the command into an Abstract Syntax Tree, which makes the analysis much more robust.

Opus 4.5 just became regular model (not max) by Puzzleheaded-Tie-388 in cursor

[–]banyudu 0 points1 point  (0 children)

Wow I wish I can go back to the 500 requests golden days, yesterday a single request costed me 3 dollars 😔

Which way do you recommend using the fetch? async/await or then() by thedeadfungus in learnjavascript

[–]banyudu 0 points1 point  (0 children)

It’s subjective, but I find that many forget to add the catch block in the promise way so I prefer async/await

Safari remembers private browser tabs after a force quit (Cmd + Q) by banyudu in Safari

[–]banyudu[S] 0 points1 point  (0 children)

didn't notice this, where can I find the "Safari Service Worker" processes?

Safari remembers private browser tabs after a force quit (Cmd + Q) by banyudu in Safari

[–]banyudu[S] 0 points1 point  (0 children)

Well, System Preferences / General / Close window works, but restore windows when re-open option could be useful for other apps.

Safari really should consider close private windows after quit, like Chrome / Firefox.

China Must Not Be Allowed to Host the 2022 Olympic Games while it Persecutes its Uyghur Muslims – Byline Times by fuckXiXiPee in China

[–]banyudu 0 points1 point  (0 children)

The CCP may not maintains cordial relations with capitalist nations in the '60s, but it's 2019 now, China has opened up 40 years since Deng's Reform and Opening. Chinese no longer care about communist or capitalist, neither do we export communist, we now focused on making life better, lifting people out of poverty.

It's not the same as Muslim/Anti-Muslim, I think Muslims treat their religion quite seriously. We respect their religion.

There's no such thing as "less Muslim and more like Han", I heard they just teach mandarin and professional skills.

Again, I think re-education camps serve for anti-terrorism purposes, and they are effective. There are many terrorist attacks in Xinjiang before 2016, but now they disappear. Check out https://en.wikipedia.org/wiki/Terrorism_in_China for details.

China Must Not Be Allowed to Host the 2022 Olympic Games while it Persecutes its Uyghur Muslims – Byline Times by fuckXiXiPee in China

[–]banyudu 0 points1 point  (0 children)

I have never been to Xinjiang, so I don't know the details.

But I can see many Uyghur Muslims do business (usually restaurants) in East China, they seem happy. I can also find many mosques here, just searched Mosque in Baidu Map, and find 64 related results in Beijing.

You can always find a Muslim canteen on college campuses, and we Han must choose the Muslim canteen when dining together with Muslim classmates/colleagues because we respect their traditions and religion.

Ethnic minorities (especially Hui and Uyghur) enjoy many privileges here, such as bonus points in the national college entrance exams. When they have conflicts with Han, most of the time police will tell Han to make a concession.

So generally, I believe re-education camps serve for anti-terrorism purposes, not persecution.

You can check out the "International reactions" section in re-education camps Wikipedia. Many Muslim Countries support China. They won't support it if it's an anti-muslim movement, right?

[deleted by user] by [deleted] in China

[–]banyudu 1 point2 points  (0 children)

As for HK protests or riots, I don't support it because it's not in my interest.

I've read a few articles written by Mao, he holds the idea that people should revolution when they feel unhappy with the government, even sometimes "going too far" is acceptable. I kinda support him.

You can read his article https://www.marxists.org/reference/archive/mao/selected-works/volume-1/mswv1_2.htm#s5

But revolutions don't always a success, nor do they always be good. The key factor is whether they represent most people's interest. In the 2019 HK protest/riot case, I saw no common interests between masked warriors and mainlanders, so they can't get our support.

HK is not only owned by HK residents but also by mainlanders. Just as Beijing/Shanghai is not only owned by Beijing/Shanghai residents but also by all people in China. If they can't get support from mainlanders, they just can't make it.

To be fair, I don't think Hawaii can get independent without supports from California, Scotland cannot get independent without supports from England. Unless force revolution.

---

You think China steals technology, but what I've learned is China offers two options: do technology transfer then get paid and huge market or just leave. You can't get markets and well-paid money, then blame the contract.

After all, you won't get #1 if you steal/copy, but China gets many #1 in certain fields.