AI 资讯
How we built a medicine-substitution engine that refuses to be clever
How we built a medicine-substitution engine that refuses to be clever There is a category of bugs where the code looks perfectly correct in code review, the unit tests pass, the demo on stage goes beautifully, and a real person dies. Medicine substitution is one of them. We built Agada — point a phone camera at a medicine strip in India, and the app tells you whether the drug is registered with the regulator, what it does, and whether a chemically identical version is available at the government pharmacy for a fraction of the price. The point is real: Indians spend about ₹65,000 crore a year out of pocket on branded medicines when the same molecule sits in a Jan Aushadhi Kendra at a tenth of the cost. The Dolo-650 story (₹32 vs ₹4.90 for the same paracetamol) is the most famous example, not the only one. The hard part isn't the camera, the OCR, or the price lookup. The hard part is the substitution engine — the piece of code that decides "is this salt the same as that salt." Get that wrong in the wrong direction, and the app cheerfully tells a user that their 500mg anti-epileptic can be replaced with a 200mg one, because the strings look similar. So we built a matcher that refuses to be clever. This post is about the parts we deleted. The starting problem A user scans "Crocin 500mg Tablet IP". A Jan Aushadhi record says "Paracetamol 500 mg". A naive matcher says: both contain "500", both contain "Paracetamol" (or "Acetaminophen", which is the same thing in a different country), ship it. The user buys the generic. Savings: ₹20. Everyone wins. Now consider: Crocin 650 Advance vs Dolo 650 — same molecule, same dose, different brands. Fine. Augmentin 625 vs Augmentin 375 — same two salts, different ratio. The combo tolerance might let it through, but the clinical implication is real. Levofloxacin 500 vs Ofloxacin 400 — both fluoroquinolones, both "similar," but levofloxacin is the levo-isomer of ofloxacin and is dosed at roughly half. A "fuzzy" match here could halve so
AI 资讯
Pinion: Resumable File Uploads for PHP
(Without Fighting upload_max_filesize ) You deploy your app. A user picks a 400 MB video. They hit upload. The progress bar freezes. Then — nothing. You check the logs. POST Content-Length exceeded post_max_size . Again. We've all been there. The fix is usually "raise PHP limits" or "use S3." Both work — until you're on shared hosting, a legacy VPS, or a client who won't touch php.ini . That's the problem Pinion solves. What is Pinion? Pinion is an open-source resumable chunked upload protocol for PHP. Instead of one giant multipart/form-data request, the browser sends the file in small parts (default: 5 MB). The server stores each part, then assembles the final file on disk. Three steps. That's the whole contract: init → upload parts → complete Package Registry Role pinoox/pinion Packagist PHP server engine @pinooxhq/pinion-client npm Browser client Protocol id: pinion · version: 2 Why not just use S3? Object storage is great. But sometimes you need files on your server : A CMS media library on local disk A Laravel app without cloud budget Shared hosting with no S3 SDK An admin panel behind a simple PHP API Pinion isn't a CDN or a storage service. It's a protocol — a stable HTTP contract that works in plain PHP, Laravel, or Pinoox. How it works (30-second version) sequenceDiagram participant Browser participant API participant Disk Browser->>API: POST /init (filename, size, fingerprint) API-->>Browser: upload_id, chunk_size, missing_indexes loop Each part Browser->>API: POST /upload (chunk + SHA-256 hash) API->>Disk: store part end Browser->>API: POST /complete API->>Disk: assemble file API-->>Browser: done ✓ Resume is built in. The client sends a fingerprint ( name:size:lastModified:type ). If the connection drops, the same file picks up where it left off — only missing parts are re-uploaded. Integrity too. Each part gets a SHA-256 chunk_hash . The server can reject corrupted chunks before they pollute your disk. Server side: 10 lines of PHP composer require pinoo
开源项目
r4b1t_h0l3
→ Try it: gnomeman4201.github.io/r4b1t It's a curated random link generator for security and OSINT...
开源项目
🔥 voidzero-dev / vite-plus - Vite+ is the unified toolchain and entry point for web devel
GitHub热门项目 | Vite+ is the unified toolchain and entry point for web development. It manages your runtime, package manager, and frontend toolchain in one place. | Stars: 5,011 | 19 stars today | 语言: Rust
开源项目
🔥 zellij-org / zellij - A terminal workspace with batteries included
GitHub热门项目 | A terminal workspace with batteries included | Stars: 33,722 | 55 stars today | 语言: Rust
开源项目
🔥 Myriad-Dreamin / tinymist - Tinymist [ˈtaɪni mɪst] is an integrated language service for
GitHub热门项目 | Tinymist [ˈtaɪni mɪst] is an integrated language service for Typst [taɪpst]. | Stars: 3,308 | 8 stars today | 语言: Rust
开源项目
🔥 eclipse-zenoh / zenoh - zenoh unifies data in motion, data in-use, data at rest and
GitHub热门项目 | zenoh unifies data in motion, data in-use, data at rest and computations. It carefully blends traditional pub/sub with geo-distributed storages, queries and computations, while retaining a level of time and space efficiency that is well beyond any of the mainstream stacks. | Stars: 2,890 | 6 stars today | 语言: Rust
开源项目
🔥 makeplane / plane - 🔥🔥🔥 Open-source Jira, Linear, Monday, and ClickUp alternativ
GitHub热门项目 | 🔥🔥🔥 Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage. | Stars: 51,015 | 68 stars today | 语言: TypeScript
开源项目
🔥 bytedance / UI-TARS-desktop - The Open-Source Multimodal AI Agent Stack: Connecting Cuttin
GitHub热门项目 | The Open-Source Multimodal AI Agent Stack: Connecting Cutting-Edge AI Models and Agent Infra | Stars: 36,590 | 148 stars today | 语言: TypeScript
开源项目
🔥 zotero / zotero - Zotero is a free, easy-to-use tool to help you collect, orga
GitHub热门项目 | Zotero is a free, easy-to-use tool to help you collect, organize, annotate, cite, and share your research sources. | Stars: 14,498 | 14 stars today | 语言: JavaScript
开源项目
🔥 google / zx - A tool for writing better scripts
GitHub热门项目 | A tool for writing better scripts | Stars: 45,542 | 9 stars today | 语言: JavaScript
开源项目
🔥 jackwener / OpenCLI - Make Any Website into CLI & Use your logged-in browser by AI
GitHub热门项目 | Make Any Website into CLI & Use your logged-in browser by AI agent. | Stars: 24,627 | 95 stars today | 语言: JavaScript
开源项目
🔥 fivetran / great_expectations - Always know what to expect from your data.
GitHub热门项目 | Always know what to expect from your data. | Stars: 11,565 | 2 stars today | 语言: Python
开源项目
🔥 521xueweihan / HelloGitHub - 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open s
GitHub热门项目 | 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub. | Stars: 161,720 | 167 stars today | 语言: Python
开源项目
🔥 roboflow / rf-detr - RF-DETR is a real-time object detection and segmentation mod
GitHub热门项目 | RF-DETR is a real-time object detection and segmentation model architecture developed by Roboflow, SOTA on COCO, designed for fine-tuning. [ICLR 2026] | Stars: 7,853 | 65 stars today | 语言: Python
开源项目
🔥 alexzhang13 / rlm - General plug-and-play inference library for Recursive Langua
GitHub热门项目 | General plug-and-play inference library for Recursive Language Models (RLMs), supporting various sandboxes. | Stars: 4,816 | 37 stars today | 语言: Python
开源项目
🔥 calesthio / OpenMontage - World's first open-source, agentic video production system.
GitHub热门项目 | World's first open-source, agentic video production system. 12 pipelines, 52 tools, 500+ agent skills. Turn your AI coding assistant into a full video production studio. | Stars: 4,959 | 71 stars today | 语言: Python
开源项目
🔥 penpot / penpot - Penpot: The open-source design tool for design and code coll
GitHub热门项目 | Penpot: The open-source design tool for design and code collaboration | Stars: 49,911 | 94 stars today | 语言: Clojure
开源项目
🔥 continuedev / continue - open-source coding agent
GitHub热门项目 | open-source coding agent | Stars: 33,769 | 38 stars today | 语言: TypeScript
开源项目
🔥 RocketChat / Rocket.Chat - The Secure CommsOS™ for mission-critical operations
GitHub热门项目 | The Secure CommsOS™ for mission-critical operations | Stars: 45,503 | 15 stars today | 语言: TypeScript