lujjjh's recent timeline updates
lujjjh's repos on GitHub
JavaScript · 133 watchers
LitoMusic
A lightweight Apple Music client for Windows and macOS, built with MusicKit JS, Edge WebView2 / WKWebView and React.
Rust · 123 watchers
iLyrics
A third-party iTunes addon to show the lyrics on the desktop.
Go · 83 watchers
gates
An embedded language for Go.
JavaScript · 27 watchers
hexo-hanzi
Postrender your posts with hanzi (漢字標準格式).
C++ · 21 watchers
node-selection
Get current selected text by using system accessibility APIs
JavaScript · 9 watchers
content-disposition-attachment
A library to parse "attachment"s in Content-Disposition.
TypeScript · 9 watchers
webserver
A webserver that runs in the browser for web development.
Go · 8 watchers
go-javaio
Go implementation of Java Object Serialization Stream Protocol.
TypeScript · 8 watchers
lyrics-api
An LRC service powered by Cloudflare Workers.
JavaScript · 7 watchers
node-han-css
An unofficial library to use hanzi (漢字標準格式) in Node.
Go · 6 watchers
tp
TypeScript · 4 watchers
node-cpu-count
A container-friendly alternative to os.cpus().length. Both cgroups v1 and cgroups v2 are supported.
Objective-C · 3 watchers
sequelpro
MySQL/MariaDB database management for macOS
JavaScript · 3 watchers
streamory
A stream.Writable to cache a stream and provide a getter to access the cache.
JavaScript · 2 watchers
computer-graphics
Homework of computer graphics.
2 watchers
lyrics
Open time-synced lyrics (LRC) database.
C · 2 watchers
simple-http-server
使用 libuv 写的一个简易的 HTTP 服务器。
C++ · 2 watchers
ssr
Shell · 2 watchers
v8-prebuilt
The latest prebuilt stable V8.
1 watchers
clash
A rule-based tunnel in Go.
Go · 1 watchers
gitig
Go · 1 watchers
go-cputime
Go · 1 watchers
panicmonitor
A program that monitors Go programs and do something when they crash.
C · 1 watchers
quickjs
Go bindings to QuickJS: a fast, small, and embeddable ES2020 JavaScript interpreter.
TypeScript · 1 watchers
webserver-chrome-extension
0 watchers
asstosrt-wasm
Convert ASS/SSA subtitles to SRT format with browser.
Rust · 0 watchers
biu
0 watchers
com-example
An Example Usage of COM in Rust
C · 0 watchers
data-structure
数据结构作业。
0 watchers
distributions
NodeSource Node.js Binary Distributions
JavaScript · 0 watchers
ea-utils
EA utilities.
0 watchers
go
The Go programming language
Go · 0 watchers
grace
Graceful restart & zero downtime deploy for Go servers.
Python · 0 watchers
h265ify
Batch convert H.264 to H.265 (HEVC)
0 watchers
homebrew-cask
🍻 A CLI workflow for the administration of macOS applications distributed as binaries
0 watchers
homebrew-cask-versions
🔢 Alternate versions of Casks
JavaScript · 0 watchers
http2-server-push-benchmark
Java · 0 watchers
j2ee-ex2
0 watchers
jellyfin-androidtv
Android TV Client for Jellyfin
JavaScript · 0 watchers
jsdiff-release
JavaScript · 0 watchers
json-parser-plus
Yet another JSON parser.
0 watchers
naive-ui
A Vue 3 Component Library. Fairly Complete. Customizable Themes. Uses TypeScript. Not too Slow.
JavaScript · 0 watchers
next-on-pages-routes-isolation-issue
TypeScript · 0 watchers
nextjs-rsc-dirty-cache-repro
0 watchers
nodejs.org
The Node.js website.
JavaScript · 0 watchers
onedev-docker-api
0 watchers
opennextjs-cloudflare
Open Next.js adapter for Cloudflare
TypeScript · 0 watchers
opennextjs-sentry-repro
0 watchers
pulsar
✨ Pulsar: Rich and ready-to-use haptics library
TypeScript · 0 watchers
reanimated-android-lag-repro
TypeScript · 0 watchers
reanimated-settled-props-repro
Minimal Expo repro for a Reanimated Android resume issue
0 watchers
rnrepo
A Repository for React Native Pre-Built Artifacts
0 watchers
Scroll-Reverser
Per-device scrolling prefs on macOS.
0 watchers
skin.embuary
Embuary - a Emby lookalike Kodi skin
Objective-C · 0 watchers
Sparkle
A software update framework for macOS
0 watchers
Swiftfin
Native Jellyfin Client for iOS and tvOS
0 watchers
templates
Vite + solid templates
0 watchers
webview
Tiny cross-platform webview library for C/C++/Golang. Uses WebKit (Gtk/Cocoa) and Edge (Windows)
0 watchers
wry
Cross-platform WebView library in Rust for Tauri.
lujjjh

lujjjh

Write cool things.
V2EX member #39892, joined on 2013-05-30 11:46:58 +08:00
Today's activity rank 25345
Per lujjjh's settings, the topics list is only visible after you sign in
Deals info, including closed deals, is not hidden
lujjjh's recent replies
最近遇到过几次,表现为滚动条消失,页面无法滚动。
Oct 3, 2023
Replied to a topic by huzhikuizainali 编程 为什么要通过程序来测试程序?
真实情况是程序 A 通常需要长期维护,如果每次修改代码之后都人工回归一遍,效率很低而且更容易出错,而程序员最擅长的就是把这种需要重复做的琐事自动化。另外,单元测试的代码基本就是断言函数不同输入下的输出,所以很难写出 BUG 。写测试的时间倒是可能跟写程序 A 的追平,但是如果把程序 A 之后维护的时间都算进去,那么写测试的时间就可以忽略不计了。
原代码的意思是,pos2 从 [0, pos1) ∪ (pos1, length) 中随机。因为区间不连续了,所以先从 [0, length-1) 中随机,再把 [pos1, length-1) 映射到 (pos1, length)。效果跟文章作者删掉 pos1 再随机的做法一样,但是时间复杂度显然是不一样的,也不需要额外空间。

另一种常见的做法是用最后一个元素填充 pos1 的空缺,只需要改成 if (pos2 == pos1) pos2 = length - 1;
证书配得不对,是不是用了 cert ,没有用 fullchain ?
今天国区 PayPal 转账里看到了个新选项“跨境收款宝”,申请了还在审核当中。
左右波动滚轮可能默认就是被映射成了横向滚动,可以试试不安装 Options+ 的情况下是什么行为,之前收到过相关的反馈,测试下来 G604 上的表现是这样的,不知道 Anywhere 2S 是不是一样: https://github.com/linearmouse/linearmouse/issues/431#issuecomment-1505282532

如果默认行为是横向滚动,可以试下用 LinearMouse 能否映射。
Feb 12, 2023
Replied to a topic by licoycn OpenAI 用 Golang 写了一个基于 OpenAI ChatGPT 的问答 AI
友情提示,XFF 没有正确验证:

$ curl -sSf https://askai.top/ -H 'X-Forwarded-For: 1.1.1.1' | grep IP
<p class="text-muted"><i class="fa-solid fa-location-dot"></i>&nbsp;您的 IP 为:1.1.1.1 ,目前还有 3 次问答机会</p>
Feb 12, 2023
Replied to a topic by LnTrx NAS 主机模式 Docker 会绕过群晖防火墙?
遇到过类似的问题,但不是在群晖上,表现是容器映射出的端口会绕过 ufw 规则限制(还好配置完 ufw 之后测试了一下,不然服务就暴露公网了)。

原因是容器端口映射是通过 iptables 规则实现的,而 ufw 插入到 iptables 里的规则没有作用于 DOCKER-USER 链,参考:
https://docs.docker.com/network/iptables/
https://github.com/docker/for-linux/issues/690

不知道群晖的防火墙是怎么工作的,可以检查一下 iptables 看看你是不是同样的情况。看了上面的 issue ,我比较意外 --net=host 开放的端口也是走 iptables 的?
Nov 5, 2022
Replied to a topic by caqiko 程序员 请教一个 Google Docs 的网络请求的抓包
Google Docs 用的是 Web Speech API 。

可以刷新页面,在控制台执行 debug(webkitSpeechRecognition) 下断点后打开语音输入来验证。

网上找到了一个 speech to text 的 demo: https://zolomohan.com/speech-recognition-in-javascript/
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3042 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 14:22 · PVG 22:22 · LAX 07:22 · JFK 10:22
♥ Do have faith in what you're doing.