智能助手网
标签聚合 top

/tag/top

hnrss.org · 2026-04-18 22:48:39+08:00 · tech

Hi HN, I built PushToPost ( https://pushtopost.com ) to automate the tedious parts of shipping. It analyzes GitHub diffs via webhooks to generate platform-native social posts and SEO-friendly changelogs. One of the main goals is using JSON-LD schema so the changelogs get indexed and cited properly by AI search engines like Perplexity or ChatGPT. I'd love to hear your feedback on the workflow and the technical implementation! Comments URL: https://news.ycombinator.com/item?id=47816357 Points: 1 # Comments: 0

linux.do · 2026-04-18 22:23:28+08:00 · tech

(() => { // 如果之前跑过,先停掉旧脚本 if (window.__autoScrollCtl?.stop) { window.__autoScrollCtl.stop(); } const STEP_PX = 260; // 每次下滑距离 const INTERVAL_MS = 1500; // 每次间隔,约为之前的 1/3 const SMOOTH = true; // 是否平滑滚动 const MAX_IDLE_TICKS = 20; // 连续多少次几乎没动就认为到底了 const scroller = document.scrollingElement || document.documentElement; let timer = null; let running = false; let lastTop = scroller.scrollTop; let idleTicks = 0; function tick() { const before = scroller.scrollTop; window.scrollBy({ top: STEP_PX, left: 0, behavior: SMOOTH ? "smooth" : "auto", }); setTimeout(() => { const after = scroller.scrollTop; const moved = Math.abs(after - before); if (moved < 5) { idleTicks += 1; } else { idleTicks = 0; } lastTop = after; if (idleTicks >= MAX_IDLE_TICKS) { console.log("[auto-scroll] 可能已经到底,自动暂停"); pause(); } }, Math.min(900, Math.max(300, INTERVAL_MS - 200))); } function start() { if (running) return; running = true; timer = setInterval(tick, INTERVAL_MS); console.log( `[auto-scroll] 已启动: ${STEP_PX}px / ${INTERVAL_MS}ms` ); } function pause() { if (!running) return; clearInterval(timer); timer = null; running = false; console.log("[auto-scroll] 已暂停"); } function resume() { if (running) return; idleTicks = 0; start(); } function stop() { clearInterval(timer); timer = null; running = false; idleTicks = 0; console.log("[auto-scroll] 已停止"); } window.__autoScrollCtl = { start, pause, resume, stop, status() { return { running, top: scroller.scrollTop, height: scroller.scrollHeight, viewport: window.innerHeight, stepPx: STEP_PX, intervalMs: INTERVAL_MS, idleTicks, }; }, }; start(); })(); 1、用在哪? 比如我看一篇长帖子、或者文章、或者小说,不想自己动手了,可以让浏览器自己下滚 2、怎么用 打开浏览器控制台,找到 console,代码贴进去回车就好了 暂停: __autoScrollCtl.pause() 继续: __autoScrollCtl.resume() 停止: __autoScrollCtl.stop() 查看状态: __autoScrollCtl.status() 5 个帖子 - 4 位参与者 阅读完整话题

hnrss.org · 2026-04-18 13:34:28+08:00 · tech

Artificial intelligence is an amazing tool for brainstorming, programming, or generating images. But it’s also incredibly good at writing long, meaningless text filled with platitudes or producing code that continuously reinvents the wheel or misses edge cases. This has become known as slop. My inboxes have been increasingly filled with low-effort slop. I’m sure that this happens to many of you, too. The reddest of flags is being sent slop for work; at first glance, it may look credible, but it falls apart when you actually read the text. This prompted me to write three principles for working with AI and creating a website to send to your friend or colleague when they send you slop. Let's stop the slop and get back to doing great work together. Comments URL: https://news.ycombinator.com/item?id=47813403 Points: 2 # Comments: 1

linux.do · 2026-04-18 11:47:04+08:00 · tech

主贴 https://linux.do/t/topic/1972106 由于昨天触碰上游的限制,导致8条线路请求过多而限流 现在已建号池,来规避 上下文,现在已经完全搞不清楚了,这个上下文没办法做到测试,,那家公司跟抽风的一样,我也搞不清楚,一会儿长一会儿短的上下文 今天可能开放承压测试, 关于昨天 请大家理智发言,不要在评论区引起争端,本身以公益性质为准,(你总不可能要求别人这个要求别人那个吧) 致谢 感谢有三位佬友,修改的方案 43 个帖子 - 30 位参与者 阅读完整话题

linux.do · 2026-04-18 10:03:18+08:00 · tech

github.com GitHub - anthropics/claude-desktop-buddy: Reference and an example for the Bluetooth API for... Reference and an example for the Bluetooth API for makers in Claude Cowork & Claude Code Desktop [!quote]+ 适用于 macOS 和 Windows 的 Claude 可通过 BLE 将 Claude Cowork 和 Claude Code 与创客设备连接起来。 通过 BLE 将 Claude Cowork 和 Clude Code 与制造商的设备连接起来,这样开发人员和制造商就能构建硬件,以 显示权限提示、最近消息和其他交互。我们 围绕 Claude 的创客社区的创造力给我们留下了深刻印象。 提供一个轻量级、选择性的应用程序接口是我们的一种方式,它能让我们更容易地构建 提供一个轻量级、可选择的应用程序接口是我们的一种方式,可以让用户更轻松地构建与 Claude 集成的有趣的小硬件设备。 例如,我们在 ESP32 上制作了一个桌面宠物,它依靠许可 批准和与克劳德的互动。没事的时候它会睡觉、 在会话开始时唤醒,在等待审批提示时会明显不耐烦。 在等待批准提示时,它会表现出明显的不耐烦,并让你在设备上直接批准或拒绝。 3 个帖子 - 2 位参与者 阅读完整话题

www.ithome.com · 2026-04-17 22:38:08+08:00 · tech

IT之家 4 月 17 日消息,据科技媒体 Windows Central 前天报道,微软准备发布新一代 Surface Laptop 与 Surface Pro 笔记本,主要带来新处理器、显示屏升级。 英特尔版本率先发布 , 然后再推出骁龙版本 。 据消息人士透露,微软将在春季推出酷睿 Ultra 3 系列新机,夏季再发布骁龙 X2 版本,全系机型起步 16GB 内存 +256GB 硬盘,最高可选配 64GB 内存 +2TB 硬盘。 外观方面,全新 Surface Laptop / Pro 将延续上一代升级,但会增加新配色。高配版本将引入 OLED 屏幕,但入门机型仍采用 IPS 面板,部分型号还将首次提供高分屏。 此外,新机还将搭载“触觉反馈”(IT之家注:haptics)系统,可为拖拽、移动带来更细腻的震动反馈,旨在为 Windows 11 的全新触控功能立下标杆。小尺寸 Surface 机型将首次提供英特尔版本,但本轮新品仅提供骁龙 X2 Plus/X2 Elite 以及英特尔酷睿 Ultra 5/Ultra 7,不会有 X2 Elite Extreme 或 Ultra 9 版本。

hnrss.org · 2026-04-17 21:54:03+08:00 · tech

My laptop sits to my left, where the camera handles Windows Hello. My main display is a separate monitor in front of me. So every sign-in goes: look left at the laptop to get recognized, look right at the monitor to find the "OK" button, click, get on with my day. Apparently this is the intended UX. I wanted signing in to be a breeze instead, something that drifts past without you noticing. So I wrote a small Rust Windows service, Breeze, to do exactly that. When a Windows Hello credential dialog appears (Okta Verify, sudo-style prompts, and friends), it checks whether face recognition is the active method and, if so, clicks OK for you. PIN and fingerprint are left alone. The camera sees you, the dialog quietly closes, you keep working. Matching uses AutomationId and ClassName rather than button text, so it works regardless of the Windows display language. A few notes: - ~2 MB single binary, no runtime deps - The service runs in Session 0 and spawns a helper into the user session via CreateProcessAsUser with an elevated token from WTSQueryUserToken - FocusChanged event -> locate "Credential Dialog Xaml Host" -> if a PasswordField is present, it's PIN mode, skip -> otherwise click OkButton - Does not work for UAC / Secure Desktop prompts. Windows blocks UI Automation there by design. Install: cargo install breeze-wh && breeze-wh install. The second command auto-elevates, so no admin shell is needed. https://github.com/evan-choi/breeze-wh Feedback is very welcome, especially from anyone with a fingerprint reader. I only have a face camera, so that path is still untested. Comments URL: https://news.ycombinator.com/item?id=47805987 Points: 2 # Comments: 0

linux.do · 2026-04-17 20:26:48+08:00 · tech

查看docker相关信息 docker info 1. 查看docker下容器 docker ps -a 2. 启动容器 docker start XXX 3. 停掉容器 docker stop XXX 4. 重启容器 docker restart xx 5. 删除容器 docker rm xxx #强行删除所有镜像 docker rmi `docker images -q` -f #删除Exited的容器 sudo docker rm $(sudo docker ps -qf status=exited) 6. 运行容器 以启动adminmongo为例 docker run --name adminmongo -d -p 18081:4321 mrvautin/adminmongo # 查看docker日志 docker logs -f -t --tail 1000(行数) 4a7fdcc7ab8e(容器名) 7. 进入到容器 我用过的两种方法 1. docker exec -it XXX /bin/sh 2. docker attach XXX 8. 删除无用docker镜像 docker images | grep none | grep -v grep | awk '{print $3}' | xargs docker rmi -f 9. 更新容器重启celve docker update --restart=no XXXXX(你的containerId) 10. 查看docker信息 docker inspect XXXXX(你的containerId) 11. 删除镜像 docker rmi XXXXX 基本这几个命令,docker就可以上手了 6 个帖子 - 3 位参与者 阅读完整话题

linux.do · 2026-04-17 08:46:46+08:00 · tech

主贴 https://linux.do/t/topic/1972106 更新内容 检查站已修 建议100k时进行压缩 4.16由于上游的限制上下文被腰斩至20-30k,已经准备跑路了,但是经过我的逆向修复,目前上下文可能在80-120之间,但没有进行大量检测,不确定,可能还有些机制不清楚, 如图 由opus4.6 1m测试 依就是解密 ,然后总换CDK40个,这次用于测试上下文,只少量开放,用于服务是否稳定,发放时间可能在下午 有能力可以测试上下文的佬友,可以私信我(这个是只用于测试的)最好可以给我提供详细数据 看看这次的反馈怎么样,如果反馈较差,后续将继续少量发放 呜呜呜呜呜呜帖子又没了2个不要讨论敏感话题 致谢 感谢@MakotoArai提供的服务器是一位特别特别热心的佬,帮了我很多忙 @MakotoArai 63 个帖子 - 40 位参与者 阅读完整话题