今日已更新 270 条资讯 | 累计 26253 条内容
关于我们

开发者

编程技术、框架工具、最佳实践

7333
篇文章

共 7333 篇 · 第 252/367 页

The Verge AI

The new PopSockets grip is so thin you’ll forget it’s even there

If you had asked me a week ago to recommend a thinner alternative to PopSockets’ magnetic phone grips, I would have told you to buy the OhSnap Snap Grip 5. Ask me now and I’ll redirect you right back to the company that accidentally invented the phone grip in 2012 when trying to come up […]

Andrew Liszewski 2026-06-16 21:30 👁 8 查看原文 →
Reddit r/programming

Polynomial Fitting: a rabbit hole

This one is bit math heavy. I started of building a small timeseries compression library, and ended up digging through some numerical algorithms, linear algebra. I learnt through a hose during last week and found something genuinely beautiful. If you stick through it I suppose you can see what I saw. submitted by /u/ennamo_po_madhava [link] [留言]

/u/ennamo_po_madhava 2026-06-16 21:14 👁 5 查看原文 →
Reddit r/programming

Stop exposing your S3 bucket URLs. a dead simple image proxy with CDN caching

How I replaced all the ugly S3 URLs on my Laravel blog with clean /storage/media/... and /storage/og-images/... paths. The setup: Laravel + Octane + Traefik + Cloudflare. Two buckets -- a private one for uploaded media and a public one for auto-generated OG images. What's in the post: - MediaUrlBusiness helper class that centralizes URL generation (replaced 6+ blade templates of raw Storage::url() calls) - ObjectProxyController that streams files directly from S3 using readStream() + response()->stream() -- no memory buffering - Cache-Control: public, max-age=86400, immutable so Cloudflare caches aggressively - Route setup in routes/static.php with a middleware tweak that doesn't overwrite the proxy's own cache headers One gotcha: Storage::download() and streamDownload() buffer the whole file into memory. Switching to readStream() sends it directly from S3 to the client. submitted by /u/HolyPad [link] [留言]

/u/HolyPad 2026-06-16 21:13 👁 5 查看原文 →