V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  qwq11  ›  全部回复第 3 页 / 共 11 页
回复总数  213
1  2  3  4  5  6  7  8  9  10 ... 11  
303 天前
回复了 unt 创建的主题 程序员 求问如何修改手机浏览器的前端代码
https://kiwibrowser.com/
菜单里面打开 dev tools 就行,就是屏幕太小了不好点
312 天前
回复了 Pin 创建的主题 问与答 Windows 怎么部署开发环境?
WSL
我有个疑惑,这种工具不应该叫做流量中继或者反向代理吗,我理解的内网穿透应该是打洞这种类型的
用其他的工具都是解码失败,盲猜解码的时候抛异常了没 try catch
你不知道女生 大专 等于男生 硕士 吗 这还用问 真下头
https://man7.org/linux/man-pages/man7/pipe.7.html

If all file descriptors referring to the write end of a pipe have been closed, then an attempt to read(2) from the pipe will see end-of-file (read(2) will return 0). If all file descriptors referring to the read end of a pipe have been closed, then a write(2) will cause a SIGPIPE signal to be generated for the calling process. If the calling process is ignoring this signal, then write(2) fails with the error EPIPE. An application that uses pipe(2) and fork(2) should use suitable close(2) calls to close unnecessary duplicate file descriptors; this ensures that end-of-file and SIGPIPE/EPIPE are delivered when appropriate.
签个名就好了,rsa ,eddsa 随便选,应该不至于这些这没有吧
2023-04-19 01:01:33 +08:00
回复了 LxnChan 创建的主题 Linux 求各位大佬指条有关发行版选择的明路
翻到底了居然没看见 arch ,那我就推 arch 罢
https://archlinux.org
2023-04-17 12:45:42 +08:00
回复了 bulay 创建的主题 程序员 关于使用 socket 构造 icmp 包报错 Permission denied 的问题
2023-04-17 12:07:58 +08:00
回复了 taogen 创建的主题 Python 大佬们,求助 pip install 出现 ProxyError 如何解决啊
Cannot connect to proxy 说你代理的问题吧,检查检查代理地址写对了吗,telnet/curl 试试呢。关掉代理不可能也是这个问题吧。你也可以 -i 走国内 pypi 的镜像
2023-04-17 11:55:39 +08:00
回复了 bulay 创建的主题 程序员 关于使用 socket 构造 icmp 包报错 Permission denied 的问题
楼上提到需要 root 权限,其实从内核 2.2 开始就可以单独设置这些权限。你可以用用 sudo setcap cap_net_raw+p PROGRAM 赋予你程序 socket_row 的能力
2023-04-17 11:42:12 +08:00
回复了 0littleboy 创建的主题 程序员 Cookie 盗号的问题?
mac 是获取不到的,数据包里的 mac 是上一个路由器的 mac ,不是客户端的,op 补一下计网知识。其次限制 ip 有很多私人站点是有的,比如 pt 站,因为搞 pt 的人一般都会有个不变的公网 ip 。最后你说复制 cookie ,Chrome 的 cookie store 是加密的(当前登录用户),所以在不给权限的情况下是拿不到 cookie ,除非你给了权限,那有了权限就可以为所欲为,偷 cookie 算是比较轻的一种了
2023-04-17 01:28:48 +08:00
回复了 lockheart 创建的主题 问与答 怎么才能在 SSH 修改 XRDP 登录 Gnome 桌面的密码?
盲猜 login.keyring 有问题,删了让他重新开一个就行。重新装也行,麻烦点
https://wiki.archlinux.org/title/GNOME/Keyring#Resetting_the_keyring
2023-04-14 11:44:57 +08:00
回复了 XiaoBaiYa 创建的主题 分享发现 windows 下双击文本的选中逻辑来源哪里?
排班引擎都会带分词,为了避免把一个完整的单词分成两行。所以大部分双击都是选中一个单词,少部分比如终端,双击选中引号内的内容就是自己搞的了
2023-03-15 05:51:49 +08:00
回复了 jeesk 创建的主题 Vim vim 如何实现快速插入换行?
有空格就放空格上面 r<CR>
没空格就只能老老实实 i<CR><ESC>
2023-03-14 19:12:32 +08:00
回复了 Mashirobest 创建的主题 Python 这是什么原因呢?
% ls
env test.py text.txt

% cat env
python ./test.py &

% cat test.py
import subprocess

s = subprocess.run(["cat", "/tmp/v2ex/text.txt"], capture_output=True)
output = f'stdout: {s.stdout}\nstderr: {s.stderr}'

with open('output.txt', 'w') as f:
f.write(output)


% source env
[2] 25267
[2] + 25267 done python ./test.py

% cat output.txt
stdout: b'123456\n'
stderr: b''%

盲猜 job 报错退出了,你可以 cat /proc/xxx/fd/2 瞅瞅
中断确实是“轮询”,不过是硬件去查询而不是软件。CPU 会在执行几条指令之后检查中断寄存器的状态,如果被设置了中断,会先保存上下文,然后跳到系统中断表里指定位置执行。有些文章说中断不是轮询,是因为不是软件去轮询,硬件操作要高效得多,说简单点 CPU 执行程序的方式也就是 while { exec(*(pc++)); check_interruption(); },也能说成是个“写”了个死循环

进程、线程、协程都差不多,都是对 CPU 的抽象(相似的,fs 是对磁盘的抽象 etc ) ,只是实现层面不太一样而已,进程和线程都是内核态的玩意,协程是用户态
1  2  3  4  5  6  7  8  9  10 ... 11  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5149 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms · UTC 03:50 · PVG 11:50 · LAX 20:50 · JFK 23:50
Developed with CodeLauncher
♥ Do have faith in what you're doing.