x4storm's recent timeline updates
x4storm

x4storm

V2EX member #93377, joined on 2015-01-23 21:20:55 +08:00
x4storm's recent replies
Apr 13
Replied to a topic by SingeeKing 程序员 真的不建议任何人用中转
除了质量问题,今天看到了一种通过中转站攻击的方法。中转站就像是 HTTPS 链中的中间人,可以篡改你的 tools 消息,将本来正常的 pip install package 替换成安装投毒的 package ,瞬间偷走你电脑上的各种 credentials
Apr 1
Replied to a topic by xuyi3966 DNS 阿里公共 DNS 的官网没了吗?
Dec 10, 2024
Replied to a topic by 94nb 生活 明天和意外,你永远不知道哪个会先来
祝好,希望是误诊
插一句,输入自动上屏触发动作,从另一方面来说是这些软件没有处理 IME 合成事件🐶
现在用的几个都是 DLNA 协议,拉地址放的,对于自己本地放的小电影,看不了
May 8, 2024
Replied to a topic by zzlit 程序员 求助纯 JavaScript 代码优化
原始的代码确实难读:手动 for 循环;各种 flag 用于控制循环。这些面向过程式的编程风格极大的增加了阅读难度。

以下是 AI 优化过的代码,利用 js 的函数式编程特性,可以以更易读的方式组织代码:
主要的优化点是,用 filter 和 some 代替冗长的 for 循环。这里面的 Map 确实不是必要的,如果换成 string array 的话看起来会更简单一点。

```javascript
const originArr = [
{ value: "q", children: [{ value: "w", children: [{ value: "e" }, { value: "r" }] }, { value: "t", children: [{ value: "" }, { value: "y" }, { value: "u" }] }, { value: "i" }] },
{ value: "o" },
];

const targetMap = new Map([
["q/w/e", undefined],
["q/t", undefined],
]);

function formatArr(arr, path = '') {
return arr.filter(item => {
const currentPath = path ? `${path}/${item.value}` : item.value;

// Check if the current path is needed
if (targetMap.has(currentPath)) {
return true;
}

// Check if any target path starts with the current path
const isPrefix = Array.from(targetMap.keys()).some(key => key.startsWith(currentPath));
if (!isPrefix) {
return false;
}

// Recursively filter children if they exist
if (item.children) {
item.children = formatArr(item.children, currentPath);
}

return true;
});
}

const copyArr = formatArr(JSON.parse(JSON.stringify(originArr)));
console.log(originArr, copyArr);
```
Oct 16, 2023
Replied to a topic by uaoao12g 信息安全 求推荐,防关联,指纹浏览器。
@ik 看来楼主确实不知道 profile 功能的实际情况,除了 ip 其他都满足。profile 就相当于操作系统的多用户,不同的 profile 相关文件是分开存储的,新开的 profile 是全新的环境,可以安装不同的扩展,登录不同的 google 帐号,这些都会产生不同的指纹。
隐私窗口会有 cookie 严格限制的问题,现在我们的 QA 测试不同帐号都是用不同 profile 来测的。

![Image in GitHub]( https://github.com/yisibl/resvg-js/assets/4338052/20f9d8af-238a-4277-8551-d116bcf6a2d0)
Oct 8, 2023
Replied to a topic by uaoao12g 信息安全 求推荐,防关联,指纹浏览器。
chrome 开不同的 profile 就可以
所以有谁哪天发发善心,毁灭掉这个糟糕的世界吗?
Sep 15, 2023
Replied to a topic by jlak 问与答 为什么 hetzner 这么便宜?有什么坑吗
我用的 contabo 基础套餐 2C 4G 也是 4 刀起步,看了下这两家都是德国的,难道这是原因之一?
https://contabo.com/en/vps/
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2972 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms · UTC 09:27 · PVG 17:27 · LAX 02:27 · JFK 05:27
♥ Do have faith in what you're doing.