SShortSingh.

Programming

0
ProgrammingDEV Community ·

Developer builds 11 Apify scrapers in 3 days, documents real costs and critical bugs

A developer launched an experiment on September 10 to build pay-per-event web scrapers on Apify Store, producing eleven actors in three days with eight already live. Despite zero revenue so far, the project surfaced two significant bugs: charging buyers before confirming data delivery, and marking items as seen before they were successfully pushed — both of which could cause data loss or incorrect billing. The builder documented real platform costs, showing that JSON-API-based scrapers cost as little as $0.0000014 to $0.0000076 per row at 256 MB, while browser-based scrapers requiring Cloudflare bypass cost around $0.0046 per row — roughly 460 times more expensive. The key takeaway is that spending ten minutes in DevTools to find a site's underlying JSON endpoint can eliminate the need for a browser entirely, as most platforms like Eventbrite, Kalshi, and European company registries serve clean JSON directly. Substack was a notable exception, returning no data to non-browser fetch requests.

0
ProgrammingDEV Community ·

PHP Developer Builds LRU Cache Hitting 13M+ Ops/Sec for High-Load Identity Maps

A PHP developer has engineered a high-performance LRU cache implementation in PHP 8.5, achieving over 13 million operations per second — roughly three to six times faster than typical implementations. The cache was built to serve as the foundation of an Identity Map within a custom persistence layer on top of Eloquent, where slow cache performance would negate the query-saving benefits of the pattern. The developer went through 10 iterative benchmarked versions, discovering that choices like using arrays instead of objects and splitting classes strategically had significant throughput impacts. Key interface methods include touch, touchMany, evict, remove, and clear, designed for efficient O(1) key lookup with doubly linked list ordering. The results were recorded on a low-powered laptop running Docker, and production performance has not yet been measured.

0
ProgrammingDEV Community ·

Thai TTS Showdown: ThonburianTTS, OmniVoice, and ElevenLabs Compared

A September 2026 comparison evaluates three text-to-speech tools for Thai language output: ThonburianTTS, OmniVoice, and ElevenLabs. ThonburianTTS, developed by a Thai research team on the F5-TTS architecture, is purpose-built for Thai, offering voice cloning and peer-reviewed results from the iSAI-NLP 2025 conference. OmniVoice, from the k2-fsa team, supports over 600 languages with zero-shot voice cloning and is noted for relatively clear Thai output despite being a general multilingual model. ElevenLabs offers the most polished commercial workflow but lacks a native Thai voice, which can cause quality drift on longer or complex Thai text. All three tools support voice cloning from short audio clips, though ThonburianTTS and OmniVoice are free and locally runnable, while ElevenLabs operates on a usage-based pricing model.

0
ProgrammingDEV Community ·

How to Build a Lightweight Telegram Webhook Integration in Laravel

A new tutorial published on DEV Community guides Laravel developers through building a production-ready Telegram webhook integration without relying on heavy third-party SDKs. The approach uses a thin HTTP client wrapper built on Laravel's native Http facade, keeping the codebase leaner and easier to maintain across major framework upgrades. The integration secures the webhook endpoint via Telegram's secret token header and offloads message processing to queued jobs to ensure sub-100ms response times. Idempotency checks are also incorporated to prevent duplicate processing of incoming updates. The tutorial concludes with a comprehensive integration testing strategy using Laravel's built-in testing utilities to simulate fake Telegram updates.

0
ProgrammingDEV Community ·

Web Hydration Explained: How Server-Rendered Pages Become Interactive Apps

Web hydration is the process by which client-side JavaScript attaches event listeners and dynamic state to static HTML that was initially rendered on a server. Modern frameworks like React, Vue, and Angular rely on this technique to combine the speed benefits of Server-Side Rendering with the interactivity of single-page applications. Without hydration, a page may appear fully loaded but remain unresponsive to user actions — a gap sometimes called the 'uncanny valley' of web design. If hydration is delayed, especially on slow mobile devices, it can hurt key performance metrics like Interaction to Next Paint and negatively impact search engine rankings. Developers optimize this process to ensure users can interact with pages as quickly as possible after the initial content loads.

0
ProgrammingDEV Community ·

Developer builds 59 privacy-first browser tools in vanilla JS with zero dependencies

A developer has publicly launched Antigravity Tools, a collection of 59 free, browser-based utilities built entirely in vanilla JavaScript with no external dependencies, backend servers, or analytics. The project was motivated by privacy concerns with popular online tools such as JWT decoders and regex testers, which can log user data on remote servers. Every operation in Antigravity Tools runs locally in the user's browser using native APIs including Web Crypto, Canvas, Web Audio, and IndexedDB. The toolkit covers a wide range of developer needs, including JWT inspection, RSA key generation, JSON formatting, cURL conversion, regex testing, and AI prompt utilities. The tools are available for free at antigravitytools.app.

0
ProgrammingDEV Community ·

Page Count Is a Poor Metric for Estimating PDF-to-Text Extraction Work

A developer tested seven English documents through a PDF extraction tool to evaluate how well page count predicts post-processing effort, finding it to be a weak indicator. A single page from a 1734 book required more manual fixes than two pages of a modern academic paper, with the type of error mattering more than the quantity. The author categorized each error — called a 'spot' — into three buckets: scriptable fixes, human review required, or pages needing full re-OCR. A short script handling hyphen joins, tab-to-space conversion, and timestamp spacing resolved the majority of errors automatically. However, edge cases like conflicting OCR text layers and fused multi-column lines still required human judgment, underscoring that complexity, not page count, should drive project estimates.

0
ProgrammingDEV Community ·

Solo publisher learns local queues fail as distributed systems after article count mismatch

A developer running a solo automated publishing system discovered on September 11 that their local publishing ledger showed 29 articles while the public profile listed 30, revealing a fundamental flaw in their approach. The discrepancy traced back to a June 16 article published via a separate recovery path that was intentionally excluded from the rotation ledger, meaning both counts were technically correct but measured different things. A stale editor buffer compounded the risk, as reopening the post editor could restore old article text and accidentally republish prior content as a new URL. A separate September 4 incident, where an article published successfully but a series assignment returned an HTTP 500 error, showed that representing complex multi-step operations as a single boolean success flag conceals partial failures. The author concluded that local queues are effectively small distributed systems, and reliable publishing automation requires receipts, public-destination reconciliation, and state-machine logic rather than assuming a timeout means nothing happened.

0
ProgrammingDEV Community ·

How OCR Tools Extract Text From Screenshot-Heavy PDFs — A Practical Test

A developer tested a three-page weekly ops report containing five embedded screenshots — including a dashboard, spreadsheet, chat log, alert, and kanban board — to evaluate how well OCR tools could extract text that standard PDF copy-paste methods miss entirely. Using ImgIng's Extract PDF Content with its image OCR option enabled, all five screenshots were processed in a single run without requiring an account or file upload. Results were mostly accurate: the spreadsheet and alert text came through cleanly, while the bar chart values lost their day-by-day order and one kanban card's title was silently dropped. Page headers and footers were also absent from all export formats, though the reason remains unclear. The developer recommends cross-checking each OCR block against its original screenshot, especially for charts and any fields where missing data would go unmarked.

0
ProgrammingDEV Community ·

Age Trumps Gender in Photo Ratings, Reciprocity Myth Busted: 24M Data Points

An analysis of 24 million photo ratings from the app Rate Me reveals that a subject's age is the strongest predictor of their score, with ratings declining steadily from the 18–24 bracket through to 55+, a drop of up to 1.9 points. Men rating women showed the largest age-related decline, while women rating men peaked at same-age pairings and fell sharply when rating older men. Age-gap patterns also differed by gender: men gave higher scores the older they were relative to the woman rated, whereas women and same-gender raters both peaked near same-age pairings. A separate test involving 5,207 users with at least 100 ratings given and received found virtually no correlation between generosity as a rater and scores received in return. The findings suggest that so-called rating karma does not exist, likely because raters and subjects are matched randomly rather than reciprocally.

0
ProgrammingDEV Community ·

Developer shares 5 hard-learned fixes for building DeFi bots on free-tier APIs

A developer building two Ethereum monitoring bots on free-tier infrastructure documented five recurring errors and their practical solutions. Key issues included unreliable WebSocket listeners that silently disconnected, CoinGecko rate-limit errors triggered by polling too many tokens too frequently, and a Supabase row-level security policy that silently blocked all data writes. Additional problems arose from file creation failures in Termux and getting trapped inside tmux sessions on a mobile keyboard. The overarching lesson was that free-tier and mobile setups demand reduced scope and simpler tooling rather than real-time or feature-heavy approaches.

0
ProgrammingDEV Community ·

Bun 1.4 Rust rewrite delivers 60% faster startup and 46% lower memory use

Bun 1.4, released on 20 August, is the first stable version built on a new Rust-based core, replacing the Zig runtime used since version 1.0. Independent benchmarks comparing Bun 1.3.14 and 1.4.2 on the same machine found script startup time dropped from a median of 10.54ms to 4.22ms, a roughly 60% improvement. Idle memory consumption also fell significantly, averaging 34.9MB on the older version versus 19.0MB on the new one, a 46% reduction. Throughput testing with 50 concurrent connections showed the new version handled approximately 2.15 times more requests per second. However, the release notes' claim of 5x less idle CPU was not fully supported by measurements, which showed a 2.5x reduction instead.

0
ProgrammingDEV Community ·

Developer ships notarized Mac app outside App Store in 48 hours, documents the process

A developer built and launched a paid macOS menu bar app called Dynamic Ring in just two days, inspired by Apple's iPhone Duo status ring reveal. The app displays battery, Wi-Fi, and volume in a single menu bar icon using native Swift and AppKit, with no Electron and a single dependency. The developer documented several non-obvious hurdles, including a macOS blur effect breaking when corner radius masking was applied, and clipboard shortcuts failing in accessory apps due to the absence of a system menu bar. License keys were stored in UserDefaults rather than the Keychain after repeated signing identity changes caused launch hangs during development. Payments and licensing were handled through Polar, avoiding the need for user accounts or a custom server, with the finished app priced at $4.99 and distributed with Sparkle-based auto-updates.

0
ProgrammingHacker News ·

Engineer Reverse-Engineers Apple's Neural Engine Through Retrospective Analysis

A developer has published a detailed technical write-up on reverse-engineering Apple's Neural Engine (ANE), the dedicated machine learning hardware found in Apple silicon chips. The work was conducted retrospectively, meaning the researcher analyzed the hardware's behavior and architecture after the fact rather than in real time. The findings shed light on the internal workings of Apple's proprietary AI accelerator, which Apple has kept largely undocumented. The post attracted attention on Hacker News, where it was shared for discussion among developers and hardware enthusiasts.

0
ProgrammingDEV Community ·

Five Ollama Settings to Tune for Better Local AI Model Performance

A technical guide published on DEV Community on September 11, 2026, outlines five key Ollama configuration settings that can significantly improve local AI model performance. The settings covered include Flash Attention, KV cache type, context length, GPU layer count, and model preloading, each addressing a different aspect of speed or memory use. While Flash Attention is enabled automatically on supported hardware, other settings like KV cache compression and explicit GPU layer assignment require manual tuning to unlock better performance. The guide cautions that some optimizations involve trade-offs, such as minor accuracy loss with KV cache compression or increased memory consumption with larger context windows. Users are advised to change one setting at a time and measure results on their own hardware, as optimal values vary by machine and workload.

0
ProgrammingDEV Community ·

Dragonfly Uses 13% Less Memory Per Key Than Redis in Benchmark Test

A seven-part benchmark series comparing in-memory data store engines found that Dragonfly stores data at approximately 146 bytes per key, versus 165 bytes for Redis 8.2 and 169 bytes for Valkey 8.1, when tested with one million 100-byte values. The author considers this the most reliable figure in the series because memory layout is determined by data-structure design and produces identical results regardless of hardware. Tests conducted on both a laptop and a 48-core bare-metal server returned the exact same per-key figures, confirming the hardware-independent nature of the measurement. Dragonfly's advantage is attributed to more compact internal data structures, which reduce per-key overhead by roughly 19–23 bytes compared to its rivals. The efficiency gap narrows as value sizes grow, making the difference most meaningful for workloads with many small keys such as sessions, counters, and rate-limit buckets.

0
ProgrammingDEV Community ·

How to Audit Your Git Repository for Exposed API Keys and Credentials

Git's append-only history means credentials accidentally committed — even if later deleted — remain accessible to anyone who clones the repository. Common exposures include AWS access keys, database connection strings, OAuth secrets, and hardcoded .env values found in CI/CD configs, Docker files, and Kubernetes manifests. Developers can audit their current codebase using grep-based regex patterns, while tools like gitleaks and truffleHog can scan the entire commit history, including branches, stashes, and submodules. A frequently overlooked risk is committing .env.example files that contain real credentials copied from working environment files rather than safe placeholders. If a leaked secret is discovered, the recommended response is to revoke and rotate the credential immediately before attempting any history rewrite, since attackers can exploit exposed keys within minutes.

0
ProgrammingDEV Community ·

Developer builds open-source Telegram bridge to control Google Antigravity remotely

A developer grew frustrated with having to be physically present at their computer to interact with Google Antigravity, an AI coding tool, during long-running tasks. Existing remote control solutions relied on screen capture or cursor simulation, which the developer found intrusive and unreliable. Leveraging Antigravity's Electron-based architecture, they built a lightweight Python bridge that connects to the app via the Chrome DevTools Protocol and routes commands through a Telegram bot. The tool runs in the background without interfering with mouse input, allowing users to switch projects, start chats, send prompts, and receive responses from their phones. The project has been released as open-source under the MIT license on GitHub, with the architecture designed to be adaptable to other Electron-based AI tools.

0
ProgrammingDEV Community ·

Attestly Automates EU AI Act Annex IV Documentation from Agent Traces

A new tool called Attestly aims to simplify compliance with the EU AI Act by generating Annex IV technical documentation directly from AI agents' operational traces. The platform ingests data from sources such as OpenTelemetry, LangSmith, AgentOps, and MCP logs, mapping them into structured evidence trails. Each section of the generated documentation is labeled as AI-generated, user-provided, or missing, and must be reviewed and approved by a human before export. Attestly is designed primarily for startups and teams deploying AI agents within the European Union. A free tier is available for users to get started.

0
ProgrammingDEV Community ·

Developer Builds Live Playground to Compare Four Authorization Engines Side by Side

A developer created an interactive browser-based tool to test four authorization engines — Cedar, Casbin, OpenFGA (ReBAC), and OPA/Rego — against identical access-control rules and every possible request combination. The experiment revealed that ReBAC struggled with time-based conditions, since its core check function has no concept of time, causing it to allow edits at 3am while the other three engines correctly denied them. This limitation is acknowledged by OpenFGA itself, which later introduced Conditions specifically to address time-sensitive scenarios. The project also exposed a subtle testing blind spot: the test suite sampled only four times of day, missing business-hours boundary cases entirely, meaning a misconfigured time window went undetected despite all tests passing. The tool runs fully in the browser using WebAssembly bindings, with no backend, and is publicly available as an open-source repository.

← NewerPage 1447 of 3359Older →