SShortSingh.

Programming

0
ProgrammingDEV Community ·

Developer ships Mac/iOS task app using raw SQLite C API, skipping Core Data and ORMs

A developer released KinetTask, a local-first task management app for Mac and iOS, built entirely on the SQLite3 C API in Swift 6.1 without using Core Data, SwiftData, or any ORM layer. The entire persistence layer spans roughly 600 lines of code, using WAL mode, prepared statements, and PRAGMA user_version for schema migrations. A significant bug was discovered post-launch where widget checkbox taps were silently lost because the main app and the widget were writing to two separate SQLite files in different sandboxed containers. The fix involved unifying both processes to a single App Group database file, enabling busy_timeout, and adding a snapshot-reconciliation pass to prevent stale in-memory cache from overwriting widget changes. The app also includes on-device AI features powered by Apple's foundation model or a GGUF model via llama.cpp, with an anti-filler gate added to prevent the model from generating unnecessary task structure.

0
ProgrammingDEV Community ·

ESP32-S3 and TensorFlow Lite Micro Enable Flexible, Updateable On-Device AI

Most smart devices rely on dedicated voice chips for wake word detection, but these chips lock manufacturers into fixed keywords and vendor-dependent firmware updates. The ESP32-S3 microcontroller paired with TensorFlow Lite Micro (TFLM) offers an alternative by running retrained and over-the-air-updatable AI models directly on a general-purpose MCU. The ESP32-S3 features a dual-core Xtensa LX7 processor, built-in SIMD vector instructions for AI acceleration, and Wi-Fi plus Bluetooth support, making it capable of tasks like voice recognition and sound classification within a few hundred kilobytes of memory. TFLM, Google's lightweight inference framework, allows deep learning models to run on embedded hardware without a full operating system or dynamic memory allocation. Together, they represent a shift toward affordable, flexible, offline-capable edge intelligence at the microcontroller level.

0
ProgrammingDEV Community ·

How to Run Google's Gemma 4 AI Model Locally With a Stable Setup

Google's Gemma 4 large language model can be run locally on personal hardware using either Android Studio's built-in integration or the open-source llama.cpp inference engine. Developers are advised to first verify plain text generation on CPU before separately enabling GPU acceleration and vision capabilities, reducing the number of variables when troubleshooting. Android Studio Quail 4 offers the simplest path for Android developers, as Google manages model downloads, weight verification, and inference through a bundled engine with at least 12 GB of RAM required. For llama.cpp users, starting with a Q4 quantized checkpoint and disabling the multimodal projector isolates text inference and establishes a reliable baseline before adding complexity. Gemma 4 vision processing may require 2,048-token batch sizes to accommodate full image token blocks, and saving exact working commands is recommended to avoid configuration loss over time.

0
ProgrammingDEV Community ·

How to Set Up an Azure Resource Group and Blob Storage via the Azure Portal

Microsoft Azure allows users to create cloud storage resources through its web-based portal, making the process accessible even for beginners. The setup involves creating or selecting a Resource Group and then configuring a new Storage Account with details such as subscription, region, and a globally unique name. Users must also choose a performance tier and redundancy option, with Geo-Redundant Storage recommended for high availability. Once deployed, Blob Storage containers can be added within the Storage Account by navigating to the Containers section and configuring access settings. The entire process is completed through a guided Review and Create workflow in the Azure Portal.

0
ProgrammingDEV Community ·

Developer shares real failures building an AI agent beyond the polished demo

A developer built an AI agent designed to monitor inputs, take action, or escalate decisions to a human — a setup more common than many realize. In real-world testing, the agent repeatedly reconsidered past decisions because conversation history and actual retrievable memory were never properly separated. A tool timeout combined with overlapping retry logic created an unintended near-infinite loop, fixed only by enforcing hard retry limits and a handoff mechanism. The agent also confidently attempted to call a non-existent internal function that fit naming conventions closely enough to seem valid, highlighting the risk of letting models select their own tools without schema validation. Ultimately, the developer found that most of the system's logic was hardcoded guardrails, with the model handling only one narrow judgment call — suggesting many so-called agent projects are better built as deterministic pipelines with AI applied selectively.

0
ProgrammingDEV Community ·

TryHackMe 'Adventure Time' CTF Box Walkthrough: Steganography to Root Shell

The 'Adventure Time' room on TryHackMe is a hard-rated capture-the-flag challenge themed around the popular cartoon series. The attack path starts with an anonymous FTP login that retrieves six JPEG images containing binary-encoded hint fragments hidden in their EXIF metadata. Players must then work through a chain of encoding puzzles — including Morse code, AES decryption, a Vigenère cipher, and an esoteric language called Spoon — to progressively unlock multiple user accounts. Privilege escalation to root is achieved by exploiting a known vulnerability, CVE-2019-10149, in a SUID-root exim4 binary. The final flag, a BMO reset code, is found hidden in a user's home directory after obtaining the root shell.

0
ProgrammingDEV Community ·

Engineer Cuts AI Agent Test Runs from 2,490 to 206 While Maintaining Full Coverage

A developer working on the open-source project agent-tooltrust reduced a planned test matrix of 2,490 LLM-based runs to just 206 by rethinking what each test actually needed to prove. The original cross-product approach of 83 agents multiplied by 30 scenarios would have taken roughly 12 days and generated over 10,000 real model calls. The engineer identified that the core engine was already validated through deterministic tests, meaning live LLM calls were only necessary to confirm that each framework could correctly surface key decision types in a real agent loop. By splitting the remaining tests into two targeted plans — one covering scenario breadth and another covering per-framework decision depth — the same coverage was achieved in a single afternoon. The approach highlights how combinatorial test matrices, while easy to defend in meetings, often re-prove behavior that cheaper deterministic methods have already established.

0
ProgrammingDEV Community ·

GCP us-west1 Outage: How a Fiber Maintenance Job Took Down 20+ Services

On August 20, 2026, a planned fiber-optic maintenance operation inside Google Cloud's us-west1 region unexpectedly reduced inter-campus network capacity, triggering a two-hour, twenty-two-minute outage. Automated traffic rerouting systems failed to compensate for the capacity loss, causing congestion that cascaded into the region's core infrastructure. The disruption reached critical shared components — including Spanner Paxos consensus and the Unified Metadata Server — which then propagated failures across more than two dozen Google Cloud products, spanning compute, storage, databases, and identity services. Google's incident report highlights that the outage's broad blast radius was shaped by shared underlying infrastructure rather than any direct fault in individual products. The incident underscores that cloud failure domains are defined by shared physical and logical infrastructure, not by the list of services a customer happens to be running.

0
ProgrammingDEV Community ·

Founder Pays $6,000 to Fix $800 MVP Built With Critical Security and Payment Flaws

A non-technical founder hired a freelance agency to build a multi-tenant booking platform for $800, expecting delivery in 21 days. The finished product had severe flaws: users could access competitors' financial data by altering URL parameters, payments were processed without confirmed bookings, and zero database indexes caused page loads of over four seconds with just 30 test users. The agency had focused almost entirely on frontend appearance while skipping server-side authentication, secure payment handling, and database optimisation. The founder subsequently hired a separate engineering team, EnactOn, to audit and repair the codebase, spending $6,000 across 80 hours of work covering security fixes, payment infrastructure rebuilds, and database migration. The case highlights the risks non-technical founders face when evaluating software by visual appearance alone rather than backend architecture and security standards.

0
ProgrammingDEV Community ·

ArgoCD 3.3 and 3.4 Bring Cluster Pause, PreDelete Hooks, and OCI Support

The CNCF-graduated ArgoCD project released versions 3.3 and 3.4 in the first half of 2026, introducing several enterprise-grade features for Kubernetes deployments. Version 3.3 added PreDelete Hooks, allowing jobs such as database backups or IP deregistration to run before resource deletion, making ArgoCD safer for stateful workloads. It also introduced shallow Git cloning at Depth=1, significantly reducing sync times and memory usage for large monorepos, alongside automatic OIDC token refresh to eliminate session timeouts. Version 3.4 addressed a critical operational gap by enabling per-cluster pause of reconciliation, giving SREs time to apply manual hotfixes without ArgoCD immediately reverting changes from Git. Additional updates include advanced UI filters, annotation-based filtering for ApplicationSets, and Microsoft Teams notifications via Adaptive Cards to replace discontinued Office 365 connectors.

0
ProgrammingDEV Community ·

Browsers Can Now Run AI Models Locally Using WebGPU, Cutting Cloud Costs

As of 2026, developers can run large language model inference directly inside web browsers using WebGPU, eliminating the need for server-side API calls. Three main tools support this shift: WebLLM, built on Apache TVM and offering an OpenAI-compatible API; Transformers.js by Hugging Face, which supports vision, speech, and embeddings with a WASM fallback; and Chrome's native LanguageModel interface, which manages model weights at the browser level. WebGPU enables this by exposing GPU compute shaders to JavaScript, handling the parallel matrix operations that WebAssembly alone cannot efficiently perform. Chrome, Edge, and Safari already have robust WebGPU support, while Firefox still has partial gaps in certain features. Running models client-side keeps user data on-device, removes per-token cloud costs, and allows AI features to work offline.

0
ProgrammingDEV Community ·

AI Code Review Tool Catches Cross-Repo API Break That Local Tests Missed

A developer built two connected services to test whether AI code review tool Qodo could detect a breaking change that appeared safe within a single repository. A PR on an orders API changed the 'status' field from a plain string to a nested object, while the PR description explicitly stated no downstream consumers were affected. In reality, a separate client service still compared order.status against the string 'paid', meaning paid orders would silently stop being fulfilled with no errors or logs. When Qodo had access to the connected client repository, it flagged the incompatibility within 90 seconds, even quoting the PR description's claim back as evidence it was wrong. A controlled retest with the client repo disconnected returned a clean pass, confirming that cross-repository visibility — not just text analysis — drove the correct finding.

0
ProgrammingDEV Community ·

Specialist small language models outperform frontier AI on cost, speed, and accuracy

A growing body of evidence suggests that small language models (SLMs) of 1B to 8B parameters, when fine-tuned on domain-specific data, consistently outperform large frontier models on narrow, repetitive production tasks. Serving a 7B-parameter model costs roughly 10 to 30 times less than running a 70B+ model, making SLMs significantly more economical for deployed agentic systems. Domain-specific examples reinforce the case: a 7B math model scored 90% on the MATH benchmark surpassing OpenAI's o1-preview, while an 8B medical model was preferred over GPT-4o by physicians across every evaluated dimension. A 7B chemistry model achieved 93% exact match on molecular prediction tasks where GPT-4 scored under 5%, and an 8B function-calling specialist topped Berkeley's leaderboard above both GPT-4o and Claude 3.5 Sonnet. The argument is that as capable open models like Llama, Phi, Qwen, and Mistral become freely available and fine-tuneable, the performance gap that once justified frontier model costs has narrowed to the point where task-specific SLMs are often the more practical choice.

0
ProgrammingDEV Community ·

How to Build a High-Converting Shopify Store With Minimal Custom Code

Building an effective Shopify store does not require extensive custom coding if merchants leverage the right tools and strategies. Choosing a flexible theme with reusable sections allows store owners to make layout changes directly from the Shopify editor without touching code. Key priorities include mobile-friendly design, intuitive product discovery, and a streamlined cart-to-checkout flow. Tools like pre-built section libraries can handle common features such as sticky add-to-cart buttons, filters, and upsells, reducing repetitive development work. Ultimately, the focus should be on adding only the features that genuinely improve the shopping experience while keeping site performance in check.

0
ProgrammingDEV Community ·

How to Fix Node v18 Errors and Network Timeouts When Setting Up Expo on Linux

Developers using Expo on Linux with Node v18 may encounter engine warnings, a ReferenceError for the File interface, and ETIMEDOUT network failures during project setup. These issues arise because create-expo-app v5 requires Node 20 or higher, and older system-installed Node versions lack the necessary Web APIs. Upgrading to Node 22 via NVM and setting a high npm timeout flag can resolve both the runtime crash and network-related package installation failures. TypeScript syntax errors in Jest tests can be fixed by installing babel-preset-expo and configuring Babel and the jest-expo preset in the project. Together, these steps address the most common infrastructure blockers when initializing a new Expo mobile project on Linux.

0
ProgrammingDEV Community ·

Most Multi-Agent AI Failures Stem From Poor Design, Not Model Limitations

A 2025 study by UC Berkeley researchers analyzed over 1,600 annotated traces across seven multi-agent AI frameworks and identified 14 distinct failure modes. The research found that performance gains from multi-agent systems on popular benchmarks are often minimal, with failures rooted in system design flaws, inter-agent misalignment, and inadequate task verification. Separately, Anthropic's internal research showed a multi-agent system outperformed a single agent by 90.2%, but the gains were largely attributed to parallel compute spending rather than collective reasoning. The study authors noted that targeted fixes like clearer role definitions and added verification steps improved success rates but were insufficient for reliable performance. Experts now suggest that multi-agent setups only justify their roughly 15-times higher token cost when tasks are genuinely parallelizable and the output value clearly outweighs the added expense.

0
ProgrammingDEV Community ·

How to Create a macOS 27 Golden Gate USB Installation Drive on a Mac

Apple's macOS 27 Golden Gate can be installed or reinstalled using a bootable USB drive of at least 32GB capacity. Notably, macOS 27 drops support for Intel-based Macs entirely, meaning the installation drive will only work with Apple Silicon machines. Users must download the full installer via the macOS Terminal using the 'softwareupdate' command, as the version available through System Settings only supports in-place upgrades. Once downloaded, the 'createinstallmedia' tool bundled within the installer app is used to format and write the bootable drive, erasing all existing data on the USB stick in the process. After completion, the drive is renamed 'Install macOS 27 Golden Gate' and is ready for use on supported Macs.

0
ProgrammingDEV Community ·

Amblyotube Uses Meta Quest VR to Treat Lazy Eye Through YouTube Viewing

Amblyotube is a Meta Quest application designed to treat amblyopia, commonly known as lazy eye, by delivering tailored visual stimuli to each eye while users watch YouTube content. The app uses AI-driven shaders to sharpen input for the weaker eye and reduce dominance of the stronger eye, encouraging the brain to integrate signals from both. Users can adjust settings such as opacity, blur, contrast, and brightness through an in-headset control panel, though accurate configuration is flagged as critical to avoid worsening imbalances. A controlled flicker effect highlights human figures in video content to keep the lazy eye engaged, mimicking therapeutic repetition within everyday entertainment. The project is currently open for developer review, with a public APK available through Seven Sports' developer portal.

← NewerPage 1020 of 3193Older →