SShortSingh.
0
ProgrammingDEV Community ·

Developer Builds Edge AI Dashcam Using Raspberry Pi 5 and YOLOv8 from Shelf Parts

A developer known as Open Source Genie built a widescreen, real-time AI dashcam using a Raspberry Pi 5, an IMX219 camera, and the YOLOv8 Nano object detection model sourced entirely from existing workshop components. The project aimed to create a modular, thread-safe edge-computing platform capable of on-device machine vision without relying on commercial, locked-down hardware ecosystems. Key engineering challenges included resolving hardware resource conflicts, fixing color-inversion bugs through NumPy channel manipulation, and handling camera format compatibility issues. The system was designed with a multithreaded architecture separating capture, inference, and streaming into isolated layers for improved performance. The developer documented the full build process in a guide targeting students, hobbyists, and professionals, with planned future features including motorized pan-tilt control and a RAM-based incident recording buffer.

0
ProgrammingDEV Community ·

Developer Builds AI Shopping Assistant on AWS DynamoDB and Vercel for Hackathon

A developer built ShopSmart AI, a conversational shopping assistant, as an entry for the H01 AWS and Vercel Hackathon. The app allows users to describe an event or DIY project in a chat interface, after which the AI asks clarifying questions and fetches relevant product recommendations from a database. The backend relies on AWS DynamoDB to store a catalog of 40 products across 8 categories, using a composite key of category and product ID. The frontend is built with Next.js and TypeScript, deployed on Vercel, with GPT-4o-mini powering AI recommendations via the Vercel AI SDK. The developer plans future additions including Amazon and Target affiliate integration, user accounts with persistent shopping lists, and a B2B white-label API for retailers.

0
ProgrammingDEV Community ·

Why SQL's 'Second Highest Salary' Query Is a Classic Data Analysis Trap

A common SQL interview question — finding the second highest salary — appears simple but hides several real-world pitfalls that trip up even experienced developers. Rushing to write code without clarifying requirements can produce wrong results, such as returning duplicate salary values instead of the second unique pay tier. Three specific problems arise: salary ties, ambiguous employee definitions, and edge cases where too few records exist to return a valid result. The correct approach uses DENSE_RANK(), a window function that assigns shared ranks to tied values and sequences remaining tiers without gaps. Structuring the final query with Common Table Expressions (CTEs) further improves readability and maintainability over nested subqueries.

0
ProgrammingDEV Community ·

How OverlayFS Powers Docker's Image Layering System

Docker containers are not virtual machines but isolated Linux processes using kernel features such as namespaces and cgroups. At the core of Docker's storage model is OverlayFS, a union filesystem that stacks multiple read-only directories to present a single unified view. When a file exists in more than one layer, the topmost layer takes precedence, resolving conflicts without physically merging data. Any changes or new files written inside a running container are directed to a writable layer via a copy-on-write mechanism, leaving the underlying image layers untouched. This layered architecture allows Docker images to be lightweight, reusable, and efficiently shared across containers.

0
ProgrammingDEV Community ·

Four Hidden Bugs That Break Software When Users Type Japanese

A software developer has identified four recurring bug patterns that cause silent failures in code when users input Japanese or other CJK languages, even when all tests pass in English. The most common issue involves IME composition events, where web forms submit prematurely mid-conversion because keydown handlers do not check the isComposing flag. Other patterns include byte-level string slicing in languages like Go and Rust that corrupts multi-byte CJK characters, terminal tools miscalculating display width for double-width characters, and child processes losing locale settings and mangling Japanese text. The developer recommends searching merged pull requests in open-source repositories for keywords like isComposing or wcwidth to find related unfixed instances of the same bug. Effective fixes are described as small, well-referenced pull requests that link to the original patch and use real Japanese test strings rather than minimal single-character examples.

0
IndiaTimes of India ·

West Bengal may fund schools separately to serve eggs amid Iskcon meal row

West Bengal's education department is exploring a model similar to Odisha's to resolve a controversy over midday meals managed by Iskcon, which follows a vegetarian-only menu. The proposed approach would provide schools with additional funds to procure eggs independently, ensuring children continue to receive them as part of their meals. The move comes after the government faced criticism for allegedly sidelining eggs, considered a dietary staple for many students. Officials are expected to hold discussions soon to finalise the new arrangements. The debate has highlighted tensions between nutritional needs and cultural or religious food preferences in school meal programmes.

0
IndiaTimes of India ·

Bangladeshi man hunted in Rome after family found dead, chilling post surfaces

Italian police are searching for 43-year-old Bangladeshi national Shahadat Hossain in connection with the deaths of three family members in Rome. A father, mother, and their young daughter were found dead in what authorities are treating as a triple homicide. Before the incident, Hossain posted an ominous message on social media reading 'A man does not die alone.' The post has become a key piece of evidence in the ongoing investigation. Authorities are conducting an extensive manhunt to locate the suspect.

0
ProgrammingDEV Community ·

How to Build Compliant AI Agents for Banking: A Developer's Architecture Guide

A software developer on DEV Community has outlined a practical architecture for building AI agents that can pass banking compliance audits, using loan underwriting as a case study. The guide emphasizes that roughly 70% of the effort in fintech AI projects goes into compliance infrastructure — including audit logging, explainability, and human-in-the-loop checkpoints — rather than the AI logic itself. A core requirement highlighted is that every agent decision must be fully traceable, with reasoning steps recorded in real time rather than reconstructed after the fact. The article includes working Python code demonstrating an 'AuditableDecision' class designed to capture inputs, reasoning chains, data sources, and human-readable explanations for each decision. The guide is aimed at developers who find that real-world regulated AI deployments take significantly longer than prototypes suggest.

0
ProgrammingDEV Community ·

How Large NPM Packages Quietly Drain Startup Revenue and Engineering Resources

Installing a single NPM package often pulls in hundreds of transitive dependencies, inflating JavaScript bundle sizes and slowing page load times for end users. Slower pages directly hurt business outcomes, as higher bounce rates and lower conversion rates erode returns on paid advertising spend. The financial impact extends beyond user experience: larger bundles increase CI/CD pipeline durations, deployment artifact sizes, and bandwidth costs that compound across millions of requests. Future maintenance also carries a hidden price tag, as dependency upgrades, security reviews, and breaking API changes consume engineering hours that carry real salary costs. Experienced developers are urged to weigh not just initial build speed but the multi-year total cost of every dependency added to a project.

0
ProgrammingDEV Community ·

Researcher Demonstrates Silent IPv6 Hijack Attack on Enterprise Network and Fix

A security researcher built a simulated dual-stack enterprise network using GNS3 to expose a critical but often overlooked IPv6 vulnerability. The project demonstrated how SLAAC — IPv6's Stateless Address Autoconfiguration protocol — can be abused by an attacker on the same network segment to silently intercept all IPv6 traffic without any privileges on victim machines. Using only a Python script running on Kali Linux, the researcher broadcast forged Router Advertisement packets that redirected traffic from multiple hosts through an attacker-controlled gateway. The attack was fully mitigated by deploying RA Guard, a Cisco switch policy that blocks unauthorized Router Advertisement messages with no changes required on victim devices. The project highlights that enterprises with strong IPv4 controls may still be exposed if IPv6 traffic on the same physical links goes unmonitored and unprotected.

0
SportsESPNcricinfo ·

Stokes admits exhaustion and burnout before Ashes Lord's Test incident

England Test captain Ben Stokes has revealed he was completely drained of energy and motivation even before the Lord's Test during the Ashes series. Stokes admitted he had no fight left in him at that point, suggesting his mental and physical reserves were fully depleted. His candid comments shed light on the circumstances surrounding the much-discussed nightclub episode that occurred around the time of the Lord's Test. The revelation indicates that the pressures of captaincy and the demands of the Ashes series had taken a significant toll on Stokes well before the incident came to public attention.

0
ProgrammingHacker News ·

Bash4LLM: A Single-File Bash Tool to Query LLM APIs Without Extra Runtimes

A developer has released Bash4LLM, a lightweight, single-file Bash wrapper that lets users interact with large language model APIs directly from the terminal. The tool requires no Python, Node.js, or additional runtimes, relying solely on Bash, curl, and jq. It supports features such as prompt submission, basic chat sessions, line-by-line file processing, output streaming, and JSON session metadata storage. Groq is the default supported provider, with the option to add other providers via dedicated scripts in an extras folder. The project was built with a focus on safety and predictability, avoiding the use of system temp directories and the eval command.

0
ProgrammingHacker News ·

Developer builds GPT-2-scale language model from scratch in pure C and CUDA

A developer has released NanoEuler, a GPT-2-scale language model built entirely in C and CUDA without high-level frameworks. The project was motivated by a desire to deeply understand how large language models work at a low level, including the relationship between parameters, data, and GPU operations. Development began with a 23-million-parameter model trained on Shakespeare text, progressively scaling up while exploring training techniques such as supervised fine-tuning. The author chose raw CUDA to eliminate any abstraction layers between the model and its underlying computations. The project is open to community feedback and contributions.

0
ProgrammingDEV Community ·

Why AI-Generated WordPress Code Is Often Insecure and How to Fix It

General-purpose large language models frequently produce insecure WordPress plugin code because they are trained on vast internet text that includes outdated and vulnerable snippets from sources like early StackOverflow tutorials. These models predict statistically likely code rather than reasoning about security best practices, making them prone to skipping critical checks such as input sanitization, nonce verification, and user authorization. In WordPress specifically, a single missing security check can expose REST endpoints or AJAX handlers to unauthenticated users, making the consequences far more severe than in typical application code. To address this, developers built a multi-step agentic pipeline where specialized agents plan, generate, and audit code in sequence, treating security functions as mandatory requirements rather than optional additions. The approach replaces single-call text generation with a structured system designed to enforce non-negotiable security rules before code ever reaches a developer.

0
ProgrammingDEV Community ·

Developer releases open-source Nuxt-Supabase auth scaffold for reusable project setup

A developer has published a production-ready authentication scaffold built with Nuxt 4 and Supabase, designed to be reused across multiple projects without rebuilding auth from scratch each time. The scaffold includes email sign-up with optional confirmation, sign-in, password reset via email link, and full PKCE code exchange handling on a dedicated route. Protected routes are managed through Supabase redirect options alongside a guest middleware that redirects authenticated users away from auth pages. Additional features include live password strength feedback, dark mode based on system preference, and detailed error handling throughout. The project uses Nuxt UI 4, Zod for validation, and Tailwind CSS 4, with both a live demo and public repository available for review.

← NewerPage 68 of 161Older →