跳转到内容
彼岸论坛

小天管理

管理员
  • 内容数

    15967
  • 注册日期

  • 最后上线

  • 得奖次数

    1

小天管理 发表的所有内容

  1. 如题: 目前在学习 java ,同时准备面试,感觉只是单纯的背八股文,很难理解。有没有大佬推荐 mysql 的学习视频或书籍(不要太厚),短时间内能提高的。
  2. RT.是 Switch 还是啥?不是说就 PS5 和 PC 上架么?
  3. 前些年,电动车事故不会查驾照 今年遇到的几个案子,电动车只要没有驾照的,不管是否有责任,都会安装无证驾驶负该负责,「几年前还不会这样」 具体法规落地是否全国不太清除,大部分地方都开始了 平时交警不会管,但是事故时候,无驾照会亏死哦
  4. 做个一个专注于健康和搞钱的公众号,欢迎关注 [ WellthyHackers ]
  5. 请问阿里云 ecs 机器如何走代理? 最近在机器上用 n 安装 node 超时,git clone 也超时,难受的一批
  6. 2015 年买的阿特兹,开了 6W 公里了,都按时保养的。最近发现怠速有一点抖动了,油耗也比较高,纯市区得 9 个,之前也就 8.6 左右,不知道加一些燃油添加剂有没有帮助呢?
  7. 执行 vi 和执行 vim.tiny 为什么是两种不同的模式? 这两个不是指向的是同一个文件 /usr/bin/vim.tiny 吗? 不同的表现在于: 无法使用退格键 backspace 方向键变字母 以下是系统的一些信息: root@debian:~# whereis vi vi: /usr/bin/vi /usr/share/man/man1/vi.1.gz root@debian:~# whereis vim.tiny vim.tiny: /usr/bin/vim.tiny root@debian:~# ls -la /usr/bin/ | grep vi -rwxr-xr-x 1 root root 14560 Sep 16 2023 dbus-update-activation-environment lrwxrwxrwx 1 root root 23 May 4 2023 rview -> /etc/alternatives/rview -rwxr-xr-x 1 root root 18808 Jun 16 05:44 systemd-detect-virt lrwxrwxrwx 1 root root 20 May 4 2023 vi -> /etc/alternatives/vi lrwxrwxrwx 1 root root 22 May 4 2023 view -> /etc/alternatives/view -rwxr-xr-x 1 root root 1629584 May 4 2023 vim.tiny root@debian:~# ls -la /etc/alternatives/ | grep vi lrwxrwxrwx 1 root root 17 May 4 2023 ex -> /usr/bin/vim.tiny lrwxrwxrwx 1 root root 28 May 4 2023 ex.1.gz -> /usr/share/man/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.da.1.gz -> /usr/share/man/da/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.de.1.gz -> /usr/share/man/de/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.fr.1.gz -> /usr/share/man/fr/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.it.1.gz -> /usr/share/man/it/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.ja.1.gz -> /usr/share/man/ja/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.pl.1.gz -> /usr/share/man/pl/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.ru.1.gz -> /usr/share/man/ru/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.tr.1.gz -> /usr/share/man/tr/man1/vim.1.gz lrwxrwxrwx 1 root root 17 May 4 2023 rview -> /usr/bin/vim.tiny lrwxrwxrwx 1 root root 17 May 4 2023 vi -> /usr/bin/vim.tiny lrwxrwxrwx 1 root root 28 May 4 2023 vi.1.gz -> /usr/share/man/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.da.1.gz -> /usr/share/man/da/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.de.1.gz -> /usr/share/man/de/man1/vim.1.gz lrwxrwxrwx 1 root root 17 May 4 2023 view -> /usr/bin/vim.tiny lrwxrwxrwx 1 root root 28 May 4 2023 view.1.gz -> /usr/share/man/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.da.1.gz -> /usr/share/man/da/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.de.1.gz -> /usr/share/man/de/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.fr.1.gz -> /usr/share/man/fr/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.it.1.gz -> /usr/share/man/it/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.ja.1.gz -> /usr/share/man/ja/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.pl.1.gz -> /usr/share/man/pl/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.ru.1.gz -> /usr/share/man/ru/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.tr.1.gz -> /usr/share/man/tr/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.fr.1.gz -> /usr/share/man/fr/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.it.1.gz -> /usr/share/man/it/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.ja.1.gz -> /usr/share/man/ja/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.pl.1.gz -> /usr/share/man/pl/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.ru.1.gz -> /usr/share/man/ru/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.tr.1.gz -> /usr/share/man/tr/man1/vim.1.gz root@debian:~# ls -la /etc/vim total 16 drwxr-xr-x 2 root root 4096 Aug 31 05:17 . drwxr-xr-x 69 root root 4096 Aug 30 23:37 .. -rw-r--r-- 1 root root 2553 May 4 2023 vimrc -rw-r--r-- 1 root root 662 May 4 2023 vimrc.tiny root@debian:~# cat /etc/vim/vimrc " $VIMRUNTIME refers to the versioned system directory where Vim stores its " system runtime files -- /usr/share/vim/vim<version>. " " Vim will load $VIMRUNTIME/defaults.vim if the user does not have a vimrc. " This happens after /etc/vim/vimrc(.local) are loaded, so it will override " any settings in these files. " " If you don't want that to happen, uncomment the below line to prevent " defaults.vim from being loaded. " let g:skip_defaults_vim = 1 " " If you would rather _use_ default.vim's settings, but have the system or " user vimrc override its settings, then uncomment the line below. " source $VIMRUNTIME/defaults.vim " All Debian-specific settings are defined in $VIMRUNTIME/debian.vim and " sourced by the call to :runtime you can find below. If you wish to change " any of those settings, you should do it in this file or " /etc/vim/vimrc.local, since debian.vim will be overwritten everytime an " upgrade of the vim packages is performed. It is recommended to make changes " after sourcing debian.vim so your settings take precedence. runtime! debian.vim " Uncomment the next line to make Vim more Vi-compatible " NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes " numerous options, so any other options should be set AFTER changing " 'compatible'. "set compatible " Vim5 and later versions support syntax highlighting. Uncommenting the next " line enables syntax highlighting by default. "syntax on " If using a dark background within the editing area and syntax highlighting " turn on this option as well "set background=dark " Uncomment the following to have Vim jump to the last position when " reopening a file "au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif " Uncomment the following to have Vim load indentation rules and plugins " according to the detected filetype. "filetype plugin indent on " The following are commented out as they cause vim to behave a lot " differently from regular Vi. They are highly recommended though. "set showcmd " Show (partial) command in status line. "set showmatch " Show matching brackets. "set ignorecase " Do case insensitive matching "set smartcase " Do smart case matching "set incsearch " Incremental search "set autowrite " Automatically save before commands like :next and :make "set hidden " Hide buffers when they are abandoned "set mouse=a " Enable mouse usage (all modes) " Source a global configuration file if available if filereadable("/etc/vim/vimrc.local") source /etc/vim/vimrc.local endif root@debian:~# cat /etc/vim//vimrc.tiny " Vim configuration file, in effect when invoked as "vi". The aim of this " configuration file is to provide a Vim environment as compatible with the " original vi as possible. Note that ~/.vimrc configuration files as other " configuration files in the runtimepath are still sourced. " When Vim is invoked differently ("vim", "view", "evim", ...) this file is " _not_ sourced; /etc/vim/vimrc and/or /etc/vim/gvimrc are. " Debian system-wide default configuration Vim set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim90,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after set compatible " vim: set ft=vim:
  8. 各位老哥。 网络结构是光猫桥接,接软路由后,用小米 AX6000 做 ap 。 旧光猫是华为 B610 ,正常测速可以 940M 左右。 其他不变情况下,改成中兴 7015TV3 后,只能跑到 600 多 M 。 把小米 ax6000 直连到光猫,用路由器拨号后,可以跑到 1300M 。 这问题是中间的软路由的问题吗? 软是 n100 ,性能肯定没问题。架设的 esxi 虚拟机后跑的 openwrt 。
  9. 三方的那个 3 天最热好像挂了,贵站本身支持查看 3 天最热吗?每天没那么多时间,只想看看最热的帖子
  10. https://imgoverlay.pages.dev/ 当前只能把图片变成灰色,再叠加。其他的单色应该也可以,如果图片内容特殊,应该也可以是彩色内容,没想到好的办法。 纯前端实现的,放在了一个 html 文件里。大部分代码是 AI 帮忙写的,凑合能用 比如我的头像,就叠加了两个图片
  11. 昨天忽然光猫断网重新连接后就 101.80 开头的 ip 这是我公网被砍了?
  12. 在服务端一般使用 node 来运行 js ,除了 node 外流行的还有 bun/deno 。 但这三个运行时的打包体积都不小,在精简的情况下也在 50 mb 以上,我在这里记录一下我是如何将一个原来使用 node 开发的服务迁移为 3.78MB 的 docker 镜像。 https://hub.docker.com/layers/llej0/web-font/latest 选择 js 运行时 (llrt) 要实现这么小的镜像肯定不能再使用 node 这种等级的 js 运行时了,现在最流行的轻量级 js 运行时可以锁定为 QuickJS 我要迁移的项目是我之前写的一个字体裁剪工具 web-font , 它除了纯 js 的部分外还涉及到文件读写和 http server 部分的 api ,QuickJS 作为纯粹的解释器是没有这方面的 api 的。 现有的比较成熟的基于 QuickJS 实现的微型 js 运行时有 txiki.js 和 llrt , 经过实践发现 llrt 可以完美运行在 docker 中 ,txiki.js 则没那么方便 (按照文档编译出来的 tjs 还会依赖其他库) 所以我选择使用 llrt 来作为运行时。 迁移遇到的问题 主要问题是 llrt 没有提供 http 模块( tixiki.js 也是), 幸运的是它提供了 net 模块 所以我基于 net.createServer 手搓了一个简易 http 服务和洋葱路由 server.ts 。 这期间还发现了 llrt 一个 cpu 占用异常:https://github.com/awslabs/llrt/issues/546 打包微小体积的 docker 镜像 1. 代码打包 这方面我使用的是 tsup 将 ts 源码打包为一个 js 文件。 然后使用 llrt compile 命令将 js 文件编译为 .lrt 文件(这一步也能减少差不多 30%的体积) 2. Dockerfile 得益于 llrt ,可以不用依赖任何环境,直接使用 FROM scratch 来得到最小的 docker 镜像体积 FROM scratch WORKDIR /home/ COPY dist_backend/app.lrt /home/app.lrt COPY llrt /home/llrt COPY dist/ /home/dist/ CMD ["/home/llrt", "/home/app.lrt"] 再经过 docker 的压缩后就得到了 3.78MB 这个数字。 使用情况 llrt 的运行速度比 node 还是慢了许多,在我这个场景下它比 node 要慢上两倍,gc 的运行速度也要慢许多。 但初始内存占用和启动速度是碾压 node 的。 由于运行时还不是特别完善的问题,很容易踩坑,所以除非你急需压缩 js 的运行内存占用/冷启动速度或者和我一样就是想要这么做,还是建议直接使用 node 吧。
  13. 大佬们,请问用消费券买啥笔记本性价比最高? 原本想买 R9000P-R9-7945HX ,发现历史最低价比折后价更便宜,也是 7k 多。而且重量算上充电器,多达 3kg+。 如果想要性能和轻便,是不是不存在🐶
  14. 有不拔智齿解决口臭的方法吗
  15. https://www.v2ex.com/t/1069601 希望有更多的小伙伴参与进来 提出宝贵的意见建议
  16. 换了个 iphone 登录 telegram ,输入手机号接码,居然收到了个美乐食品的短信,输入码后居然真就登录了。
  17. 平常听歌,听到好歌就想学学,经常会到网上找曲谱。 这样比较麻烦,如果听歌 App 里面,可以自带曲谱显示就好了。 初步可以显示简谱就好,高级一点能不能显示下五线谱,更智能一点看看能不能把音调也显示出来
  18. 我姐从家乡赶往别的城市,RT 自行联系的司机,发生了追尾,受伤了,这种情况该如何提赔偿啊?
  19. 平时就看看 V2EX 和阮一峰,想知道大家上班摸鱼刷都逛哪些有意思的论坛。
  20. 印象最深刻也是最负面的一点,全程卡头。我身高 175 ,主驾座椅调最低后,上车卡头,后座上车也卡头。 第二点,后排座垫的倾斜程度可能是当前量产车中最高的,在使用了全景天幕的情况下,后排高度还是严重不足,为了 0.19 的风阻系数,牺牲了太多的乘员舱空间,完全是本末倒置。 再说好的方面。 第一点,后备箱很大,而且是掀背尾门,开口也很宽敞。 第二点,展车用了米其林 E 聆悦轮胎,这个轮胎的滚阻特别低,配上 0.194 的风阻,理论上会比新 model3 电耗更低 第三点,磷酸铁锂电池,比三元安全 总结来看,车本身不小,但是空间特别小。4.8m 的车身,只有 2.82m 的轴距。比较几个同级的 b 级纯电,model3 车长 4.72 轴距 2.87 海豹车长 4.8 轴距 2.92 这三辆车都是全景天幕,但是小鹏无论前后排的顶部空间都被爆打
  21. 老婆刚拿了驾照本,早上带出去练车。 刚开了两圈,没想到,就追尾了前面的厢式货车。 货车没啥事,我们车子外伤严重,好在人都没事。 货车司机见前面是红绿灯,没有靠边停车,就停在路口下货,老婆看不见前面的红绿灯。 就一根道,中间是双黄线,她问可不可以从货车左边绕过去,打晃错把油门当刹车踩了。 求心理阴影面积。
  22. 推特币 Xcoin ( 3w≈1SOL≈160u ),数量有限(约 150 亿个),领完直接上线交易,目前只剩 30 亿枚左右,抓紧上车 领币链接 https://nebx.io/login?v=73330051 ( AFF )
  23. 之前一直正常,这两天打开 TestFlight 就提示 TestFlight 目前不可用。请重试。但在 iOS 上没有任何问题,正常更新都没问题。 退出当前 ID ,登录国区 ID ,则正常进入。 这是什么原因?
  24. 备份后可以在线查看,类似于 PC 版微信界面。 唯一遗憾是不开源。
×
×
  • 创建新的...