V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  haoliang  ›  全部回复第 10 页 / 共 12 页
回复总数  231
1 ... 2  3  4  5  6  7  8  9  10  11 ... 12  
2021-10-30 15:56:59 +08:00
回复了 guoqiao 创建的主题 Linux 2021 年 10 月,在 Ubuntu Linux 上如何使用微信 ?
我直接用 scrcpy 连接 android 设备到电脑,再通过 pushbullet 接收 android 设备的 通知,这样无论啥 app 都能用了 ...
结合 9/3 的报告,这顶多是个 bug ,帖子描述让我以为是被 hack 了... 溜了
@whale 哦?微软有前科?能否提供下具体关键字,我去搜索下
> 是不是阿三又在搞什么东西啊
系统卡,微软工程师能远程控制你的系统?这怀疑得毫无根据
2021-10-11 23:12:51 +08:00
回复了 skfu 创建的主题 信息安全 1password 太烂了,为何这么多人开车?
翻了两页,只有一位提到了 [pass]( https://www.passwordstore.org),我想再增加一次曝光。

多年前我使用过两年的 lastpass,爆出安全事故后,遍找替代品,最后安顿在 pass 上:linux 上使用 pass,android 上使用 password store + openKeychain ;虽然不能自动填入,但胜在安全性。pass 的密码库使用 git 管理,具体文件内容使用 gpg 加密。
2021-10-11 15:53:40 +08:00
回复了 AndyAO 创建的主题 程序员 无聊发呆不是摸鱼而是工作
> 医生认为可能是得了病,而且很急,必须要将蛋蛋割掉才能够治好

现实中有这样额医生吗?
2021-10-08 14:44:09 +08:00
回复了 SwimmingDragon 创建的主题 PHP PHP 怎么做到修改 pdf,实现类似法大大那样的效果呢?
可以换个思路:从 html 转 pdf ;这样解决方案就多了:html 转 pdf 有太多工具可以用,不一定要用 php 实现,同时 php 可以修改 html 那也太简单了
有个 h11.Connection.send_with_data_passthrough 方法,不需要构造等长度的数据块
* https://h11.readthedocs.io/en/latest/api.html#h11.Connection.send_with_data_passthrough
@abersheeran 这个 pr 中 `async send(): ... os.sendfile()`, 看起来一旦有一个 request 的 coroutine 中触发了 `os.sendfile` 那么整个程序的其他 coroutine 就一直 block ?
或许是我漏看了哪里,我之前也在异步程序中使用 `os.sendfile` 当时是借助单独的线程(池)
2021-10-03 23:39:14 +08:00
回复了 wuwukai007 创建的主题 Python 看了 Django4.0 发行说明 感觉有点失望
@neoblackcap 你似乎搞混了 “线程池”跟“连接池”,异步程序也可以利用“连接池”
2021-09-29 20:23:19 +08:00
回复了 shijingshijing 创建的主题 程序员 fcitx 选词框跑偏也太厉害了吧
这个“选词框”对应的英文是 preedit box,fcitx5 有个设置是 `show preedit in application`, 可以开启后看下效果
2021-09-28 20:54:40 +08:00
回复了 shangwuli 创建的主题 程序员 程序员们,如果在卫衣上印一句话,你想印什么?
上面有提到黑客帝国的了,再来一个

follow the white rabbit
android 上的 [vivaldi]( https://play.google.com/store/apps/details?id=com.vivaldi.browser&hl=en&gl=US) 可以设置全局桌面版网站
2021-09-18 16:37:09 +08:00
回复了 AndyAO 创建的主题 Python poetry 试图解决 Python 世界里的什么难题?
@abersheeran 能否展开说下“如果是用 vim 之类的人,那 pdm 肯定比 poetry 好用。”?

恰好这俩 poetry 、neovim 我都在用,所以对你说的比较好奇;我对 pdm 的了解仅限于它的 readme 和演示视频
2021-09-09 19:42:22 +08:00
回复了 blessingsi 创建的主题 Linux arch + swaywm 现状
不过也没白折腾,我发现 rime 真好用!
2021-09-09 19:40:21 +08:00
回复了 blessingsi 创建的主题 Linux arch + swaywm 现状
前两个月我也尝试从 i3wm 迁移到 sway,最后卡在输入法、浏览器这块。
具体是:
* fcitx5 https://github.com/fcitx/fcitx5/issues/39 当时通过 xorg-xwayland 来解决,但引入它要再运行个 xserver,感觉得不偿失
* vivaldi 不能用,也可以通过引入 xwayland 解决
* rofi 可以换 wofi,但之前的一堆插件都要迁移,让我犯难了
2021-09-07 15:56:43 +08:00
回复了 sujin190 创建的主题 Python 分享一下完全不依赖 asyncio 也支持异步语法的库
没有文档,粗略爬过代码;我的理解中,`sevent.go(callback)` 对应 `asyncio.create_task`, 在 sevent 中如何等待这个 callback 的完成呢? callback 运行过程中抛错,该如何处理?
2021-09-07 15:27:29 +08:00
回复了 git00ll 创建的主题 MySQL 在一个事务内插入大量数据会怎么样
幸好我看到了 @Sasasu 的留言,这个 transaction log 应该对应的是 [innodb undo log]( https://mariadb.com/kb/en/innodb-undo-log/ )
2021-09-07 15:19:45 +08:00
回复了 git00ll 创建的主题 MySQL 在一个事务内插入大量数据会怎么样
同好奇,搜索了下。

参考这里: https://mariadb.com/kb/en/how-to-quickly-insert-data-into-mariadb/#using-big-transactions

> When doing many inserts in a row, you should wrap them with BEGIN / END to avoid doing a full transaction
> (which includes a disk sync) for every row. For example, doing a begin/end every 1000 inserts will speed up your > inserts by almost 1000 times.
> ...
> The reason why you may want to have many BEGIN/END statements instead of just one is that the former will use up less transaction log space.

然后发现了一个 [transaction log]( https://mariadb.com/kb/en/innodb-redo-log/ ),估计事务的一部分代价吧
2021-09-07 01:21:01 +08:00
回复了 scybhe 创建的主题 Linux 钉钉官方出 Linux 版本了
`export QT_IM_MODULE=fcitx`, 这样可以正常用输入法了 ...
1 ... 2  3  4  5  6  7  8  9  10  11 ... 12  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5032 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms · UTC 09:09 · PVG 17:09 · LAX 02:09 · JFK 05:09
Developed with CodeLauncher
♥ Do have faith in what you're doing.