Alan1312

Alan1312

V2EX member #131406, joined on 2015-08-07 02:13:26 +08:00
Today's activity rank 13106
Per Alan1312's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
Alan1312's recent replies
Dec 8, 2022
Replied to a topic by Grefer OpenWrt 使用软路由后 Parsec 的 6023 问题
这个问题可能跟桥接无关。
端口映射是对包做了 dst-nat ,没有修改该包的 src addr ,所以你的 PC 是朝向你朋友的公网 IP 回复包的。如果这个 IP 对应的包被网关中的 redirect rule 重定向到其它地方,就会出现无法联通的情况。
假如确定是上述问题引起的,那么
1. 在网关中插入 rule ,只要 daddr 是朋友的公网 IP 就都 return 掉;
2. 使用 zerotier/Tailscale 等方案打通内网再去连接。
Sep 23, 2022
Replied to a topic by jeeyong Python 如何提高 Python 数组操作性能.
不要用 for 循环来处理

```Python
w = 5022
h = 4200
c = 4

img = np.asarray(img).reshape((w * h, -1))

# 转换 GA 图片到 RGBA
rgba_img = np.stack((img[:, 0], img[:, 0], img[:, 0], img[:, 1]), axis=1)
# 转换数据格式为 np.uint8 并生成 HWC 排列的图片
rgba_img = rgba_img.astype(np.uint8).reshape((h, w, c))

# 如果需要 CHW 排列的
rgba_img = rgba_img.transpose((2, 0, 1))
```
Sep 23, 2022
Replied to a topic by jeeyong Python 如何提高 Python 数组操作性能.
不要用 for 循环来处理

```Python
w = 5022
h = 4200

img = np.asarray(img).reshape((w * h, -1))

rgba_img = np.stack((img[:, 0],
用 hammerspoon 的 caffeinate.watcher 模块可以做到,文档链接在这里
https://www.hammerspoon.org/docs/hs.caffeinate.watcher.html
如果只是在不解密数据的情况下对密文进行一定的运算、处理,可以试一下“同态加密”,但是现在貌似还没有基于同态加密的端到端应用。
May 9, 2020
Replied to a topic by baozhuo 宽带症候群 内网穿透那种方案适合我?
@whywhywhy #7 前几天就有人反驳过你了, 有了 moon 之后依旧会打洞, 打洞不成功才会中转, 还在这里据说...
Jul 4, 2019
Replied to a topic by moodasmood 程序员 docker 里面用什么命令修改配置文件?
可以用

cat > /file_path << \EOF
file content
EOF
Apr 28, 2019
Replied to a topic by Hashtagoo Apple 寻 PDF Expert 序列码及 office 365 稳定车
Apr 27, 2019
Replied to a topic by Hashtagoo Apple 寻 PDF Expert 序列码及 office 365 稳定车
@Hashtagoo PDF Expert 要不要考虑买个 key,之前买 PD 送的,全新没用过的,60 出了吧,有兴趣 tg @singmz
Apr 26, 2019
Replied to a topic by czhu iOS Reeder 4 发布以及简评
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2967 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 08:59 · PVG 16:59 · LAX 01:59 · JFK 04:59
♥ Do have faith in what you're doing.