Entertainment

How to write generics in C

🚀 Discover this insightful post from Hacker News 📖 📂 Category: 💡 Key idea: C is barebones and “doesn’t support” generics, but it’s actually quite easy to implement with the tools we already have. There’s many ways you might find them being implemented in the wild. Some of the common ones are: Using function-like macros #define vector_push(vector, item) vector.buf[vector.idx++] = item; Con: This will cause everything to be inlined and loosely typed. void vector_push(Vector vec, void *item); Con: You rely on type erasure to achieve generics, so you’ll have to recast everything back to access them. You might also run…
Read More
Kagi Bloopers | Kagi’s Docs

Kagi Bloopers | Kagi’s Docs

🚀 Check out this trending post from Hacker News 📖 📂 Category: ✅ Main takeaway: We're relentless in our pursuit of delivering the best quality search possible. But we're only human (well, mostly!) and building a search engine is complex, so sometimes Kagi serves up results that are more hilarious than helpful.This is our blooper reel of these moments. Enjoy and share your own!NZ Dollar to US ​ Originally on Discord.Hacker ​ Originally on Mastodon.1337 in French ​ Originally on X.Half pony ​ Originally on Discord.1Password password generator ​ Originally on X.Corporation ​ Originally on X.Pop OS ​ Originally on…
Read More
GitHub – htx-studio/One-Handed-Keyboard

GitHub – htx-studio/One-Handed-Keyboard

💥 Explore this must-read post from Hacker News 📖 📂 Category: ✅ Main takeaway: 我们收到了一封特殊的邮件。来信者的女儿在上学途中不幸遭到重型卡车碾压,右手永久失去了功能,用电脑的时候手得在键盘和鼠标之间频繁切换,打字很慢,很累。他想让我们帮他女儿做一个单手键盘。 这是一把单模且集成了轨迹球的机械键盘,固件使用QMK,感谢所有为 QMK 社区做出贡献的开发者。 键盘制作参考:【何同学】我们做了个特别的键盘… 硬件开源:HTXStudio单手键盘 GitHub repository Gitee repository 开发环境与搭建参考这里,固件源码在这里。 本仓库的资料内容包括: 左右手一共三款键盘的8块PCB,提供立创EDA工程。 VIA改键配置文件,以及编译完成的固件。 模型设计文件。 芯片的数据手册与图片。 三款不同型号键盘的QMK固件,以及用于VIA改键的JSON文件。 嘉立创EDA的项目文件。 每个型号键盘使用到的模型文件,加工文件。 1-右手键盘-热插拔(大):板材FR-4,板厚1.6mm,四层板,层压结构JLC04161H-3313,阻抗管控+/-20%。 1-左手键盘-焊板(小):板材FR-4,板厚1.6mm,双层板,ALPS黄轴插入时需稍用力安装到位。 1-左手键盘-热插拔(大):板材FR-4,板厚1.6mm,四层板,层压结构JLC04161H-3313,阻抗管控+/-20%。 2-TypeC:板材FR-4,板厚1.6mm,双层板,标识CON1(仅适用于大键盘)。 3-轨迹球:板材FR-4,板厚1.6mm,双层板,模块需注意焊接方向,标识CON3。 4-鼠标滚轮:板材FR-4,板厚1.6mm,双层板,建议使用7mm高编码器,6mm高按键,按键触发压力≤180g,标识CON2。 5-方向按键:板材FR-4,板厚1.6mm,双层板,ALPS黄轴插入时需稍用力安装到位,标识CON4。 6-主控板-左手(小):板材FR-4,板厚1.6mm,双层板。 其中3款为键盘控制公用小板 《3-轨迹球》《4-鼠标滚轮》《5-方向按键》。 《5-方向按键》和 《1-左手键盘-焊板(小)》,按键轴使用ALPS黄轴。 注意左右手大键盘并非完全镜像。 轨迹球控制使用SPI1通道,滚轮有单独两条信号线,这可以使得替换其它控制设备而不需要较大的调整。 主控使用 STM32G431CBU6。 兼容A to C 或 C to C 数据线。 键帽:树脂、PLA等。 轨迹球座:树脂、PLA等。 鼠标左右键:树脂、PLA等。 外壳:树脂、PLA等。 底座:树脂、PLA等。 定位板:推荐材料pom,厚1.5mm。 定位板棉条:单面留胶。 夹心棉:推荐材料poron,厚3.5mm。 轴座棉:厚2mm。 底棉:推荐材料poron,厚4mm。 硅胶垫(仅小键盘使用):厚5mm,硬度Shore 00-10。 大键盘用量(颗) 小键盘用量(颗) M3×3×4热熔铜螺母 8 8 M2×2×3热熔铜螺母 2 - M2×3×3热熔铜螺母 17 12 M3×6沉头螺丝 2 6 M3×15沉头螺丝 - 4 M3×22沉头螺丝 6 - M2×8杯头螺丝 4 4 M2×3杯头螺丝 2 - M2×5杯头螺丝 13 8 M3×16扁头螺丝 -…
Read More
Messing with bots | Herman’s blog

Messing with bots | Herman’s blog

🔥 Discover this must-read post from Hacker News 📖 📂 Category: ✅ Main takeaway: 13 Nov, 2025 As outlined in my previous two posts: scrapers are, inadvertently, DDoSing public websites. I've received a number of emails from people running small web services and blogs seeking advice on how to protect themselves. This post isn't about that. This post is about fighting back. When I published my last post, there was an interesting write-up doing the rounds about a guy who set up a Markov chain babbler to feed the scrapers endless streams of generated data. The idea here is that…
Read More
Spec-Driven Development: The Waterfall Strikes Back

Spec-Driven Development: The Waterfall Strikes Back

🔥 Read this trending post from Hacker News 📖 📂 Category: 📌 Here’s what you’ll learn: Spec-Driven Development (SDD) revives the old idea of heavy documentation before coding — an echo of the Waterfall era. While it promises structure for AI-driven programming, it risks burying agility under layers of Markdown. This post explores why a more iterative, natural-language approach may better fit modern development. Coding assistants are intimidating: instead of an IDE full of familiar menus and buttons, developers are left with a simple chat input. How can we ensure that the code is correct with so little guidance? To…
Read More

The Grafana trust problem

🚀 Check out this insightful post from Hacker News 📖 📂 Category: ✅ Key idea: Published: 14/11/2025 6 minute readDisclaimer: This tells my personal experiences with Grafana products. It also incudes some facts but your experience may entirely vary and I would love to here your take.I started my work life at a small software company near my university. They develop, run websites and operate web services for multiple clients. Everyone had multiple responsibilities, and they heavily relied on interns and freshmen—which can be both bad and good.For me it was good because I learned a lot.At some point we…
Read More
Scientists reverse kidney damage in mice, hope for humans next

Scientists reverse kidney damage in mice, hope for humans next

🔥 Discover this awesome post from Hacker News 📖 📂 Category: 📌 Main takeaway: Serious injury to short-term kidney function, known as acute kidney injury (AKI), can be life-threatening and also raise the likelihood of developing permanent chronic kidney disease. AKI can occur after major stressors such as sepsis or heart surgery, and more than half of all intensive care patients experience it. No approved medications currently exist to treat this condition. Researchers at University of Utah Health (U of U Health) have discovered that fatty molecules called ceramides initiate AKI by damaging the mitochondria that supply energy to kidney…
Read More
No Leak, No Problem – Bypassing ASLR with a ROP Chain to Gain RCE / modzero

No Leak, No Problem – Bypassing ASLR with a ROP Chain to Gain RCE / modzero

💥 Explore this trending post from Hacker News 📖 📂 Category: 📌 Key idea: After my previous post on ARM exploitation, where we crafted an exploit for a known vulnerability, I decided to continue the research on a more modern IoT target. In this follow-up post, I will take you through building a considerably more complex binary exploit. We will explore the path from firmware extraction and analysis to the discovery of a previously unknown vulnerability and its exploitation. Follow along as we build an ARM ROP chain to bypass ASLR without an address leak, and achieve unauthenticated RCE.Target OverviewI…
Read More
Houston, we have a problem: Anthropic Rides an Artificial Wave

Houston, we have a problem: Anthropic Rides an Artificial Wave

💥 Check out this insightful post from Hacker News 📖 📂 Category: 📌 Here’s what you’ll learn: I’ll tip my hat to the new ConstitutionTake a bow for the new revolutionSmile and grin at the change all aroundPick up my guitar and playJust like yesterdayThen I’ll get on my knees and prayWe don’t get fooled again Out there in the smoking rubble of the fourth estate, it is hard enough to cover cyber cyber. Imagine, then, piling on the AI bullshit. Can anybody cut through the haze? Apparently for the WSJ and the NY Times, the answer is no. Yeah,…
Read More
Go’s Sweet 16 – The Go Programming Language

Go’s Sweet 16 – The Go Programming Language

🔥 Check out this insightful post from Hacker News 📖 📂 Category: 📌 Here’s what you’ll learn: This past Monday, November 10th, we celebrated the 16th anniversary of Go’s open source release! We released Go 1.24 in February and Go 1.25 in August, following our now well-established and dependable release cadence. Continuing our mission to build the most productive language platform for building production systems, these releases included new APIs for building robust and reliable software, significant advances in Go’s track record for building secure software, and some serious under-the-hood improvements. Meanwhile, no one can ignore the seismic shifts in…
Read More