SShortSingh.

Programming

0
ProgrammingDEV Community ·

Developer creates digital detox app where local AI names user experiences after personal reflection.

A developer built a web app called 'Back to Being' as part of an open-source AI challenge. The app facilitates a digital detox ritual where users first go outside to observe their surroundings without technology, then later write about their experience. Only after this personal reflection does a local AI model, running on the user's own computer, read the text and generate descriptive badges based on the user's exact words. The project aims to keep the experience and its description entirely personal, using AI only as a final, non-intrusive tool. The app is a static site built with React and TypeScript, requiring local setup with Ollama and the Gemma model to create badges.

0
ProgrammingHacker News ·

Yandex bot traffic plummets 99% following data center attack

Traffic from Yandex's automated bots dropped by over 99% this week. The sharp decline followed a reported attack on one of the Russian company's data centers. The incident impacted the network identified by the AS13238 autonomous system number. This disruption highlights a significant vulnerability in the infrastructure supporting Yandex's automated web crawling and data services.

0
ProgrammingHacker News ·

Linux Phones Gaining Traction as Potential Alternative to Android and iOS

An article on Hacker News examines the potential for Linux-based mobile operating systems to become viable alternatives to Android and iOS. The piece, which garnered 11 points and 3 comments, discusses the current state and future prospects of these devices. It explores whether these systems can overcome market dominance and development challenges. The analysis considers the technical and ecosystem hurdles facing widespread adoption.

0
ProgrammingDEV Community ·

CuriousLenz web app uses AI to analyze and explain uploaded images

A developer has created a web application called CuriousLenz. The tool allows users to upload an image and receive an AI-generated explanation of its content. It was built using React for the frontend, Node.js for the backend, and the Groq API for AI vision capabilities. The developer stated the project was a learning exercise in connecting these services into a production application. The application is open-source and available via a live demo and GitHub repository.

0
ProgrammingDEV Community ·

CommonKotlin Flow leak in iOS apps using KMP bridge identified and fixed

A resource leak occurs in Kotlin Multiplatform apps when iOS repeatedly observes shared Kotlin Flow without proper cancellation. The leak happens when Swift view models call observation functions multiple times without canceling previous jobs. This creates lingering coroutine jobs that continue running and consuming resources even when the view model is deallocated. Developers can fix the issue by implementing proper cancellation logic or modifying the CommonFlow wrapper to automatically cancel previous jobs.

0
ProgrammingDEV Community ·

Touch Grass Quest game uses on-device AI for outdoor scavenger hunt

A developer has created Touch Grass Quest, a mobile game that encourages people to go outdoors. The app provides daily scavenger hunt quests, such as finding specific natural objects. Users must take photos using the in-app camera, which are then analyzed by an AI model running directly on their device. The game rewards successful finds with experience points that grow a virtual plant and unlock digital stamps. It was developed as part of the Hacktoberfest Open-Source AI Challenge.

0
ProgrammingDEV Community ·

New AI concept uses nostalgic outdoor sounds to encourage people to go outside

A concept called Echoes of Yesterday proposes using AI to create nostalgic soundscapes. These audio experiences are based on common outdoor memories, like children playing or birds chirping. The goal is to use these brief soundscapes as a prompt for users to step outside and reconnect with their real environment. The proposal emphasizes open-source technology and a simple, non-intrusive user experience.

0
ProgrammingDEV Community ·

PDF merging challenges explained: why naive methods fail and proper techniques

Merging PDF files is complex because PDFs are structured as object graphs rather than simple text streams. Many implementations incorrectly convert PDF pages to raster images, which destroys text searchability, increases file size, and degrades print quality. Proper merging requires treating PDFs as collections of objects with unique identifiers that must be remapped to avoid conflicts. This process involves parsing cross-reference tables and rewriting object references to combine documents while preserving all original features. Modern browser runtimes can now perform this complex merging locally without uploading files to external servers.

0
ProgrammingDEV Community ·

Guide to troubleshooting common failures in off-grid solar lighting systems

Off-grid solar lighting systems can fail due to complex interactions between generation, storage, control, and load. A systematic troubleshooting approach should first verify the LED light itself for damage or connection issues. The next step involves checking the battery for reduced capacity, aging, or inadequate charging. Finally, the solar panel input should be inspected for shading, dirt, damage, or poor wiring connections.

0
ProgrammingDEV Community ·

Unbounded Database Buffering Creates Latency Spikes in High-Throughput Services

A microservice handling 200,000 events per second experienced severe latency issues when using unbounded in-memory buffering for PostgreSQL write-ahead logs. The system accumulated records in a 1 GB buffer before flushing, causing 99th-percentile latency to jump from 2 ms to over 200 ms. Three primary problems emerged: memory pressure triggering writeback pauses, extended fsync latency due to large buffer sizes, and prolonged recovery times during crashes. The solution implemented was capping batch sizes at 64 KB to maintain sub-millisecond fsync latency while preventing unbounded memory growth.

0
ProgrammingDEV Community ·

Three AI services run concurrently on 24GB GPU, using 17.8GB VRAM

A developer tested running multiple AI services simultaneously on a single NVIDIA RTX 3090 GPU with 24GB of VRAM. The setup included a Whisper ASR transcription service, a text-to-speech model, and an embedding model for a week. The combined services used an average of 17.8GB VRAM, with peaks reaching 23.4GB during simultaneous processing bursts. The experiment demonstrated that practical multi-tenant AI workloads require less VRAM than theoretical estimates suggest. The GPU maintained stability without spilling to system RAM despite nearing its capacity limit during peak usage.

0
ProgrammingDEV Community ·

AI optimization speeds up llama2.c but can delay streaming, benchmark shows

A developer created a Kaggle benchmark to test whether AI coding agents could optimize the llama2.c inference program while preserving its functionality. The benchmark evaluated programs edited by Gemini, Claude, and GPT-4 using various TinyStories model checkpoints. One AI-optimized version finished computations 2.7 times faster but delayed the start of text output by nearly five times compared to the original. The developer then fixed the streaming delay while keeping the computational improvements. All nine final AI-edited programs passed automated correctness checks, though their speed improvements varied significantly.

0
ProgrammingDEV Community ·

On-device AI agents slow down due to unmonitored thermal throttling, engineers warn

On-device AI agents can experience performance degradation during real-world use due to thermal throttling, a problem often missed during testing. Continuous inference generates heat, causing Android's thermal system to reduce CPU and GPU frequency on many devices. Developers can monitor thermal headroom using PowerManager.getThermalHeadroom() to proactively throttle their agents before system throttling occurs. Implementing proactive throttling by switching to lighter models or reducing inference frequency creates a more graceful performance decline than sudden latency spikes. Testing should be conducted on older mid-range devices over sustained periods to identify affected hardware, as emulators and flagship phones may not exhibit the issue.

0
ProgrammingDEV Community ·

Guide to Using Open-Weight AI Models via APIs

Open-weight AI models, whose trained parameters are publicly available, have reached sufficient quality for tasks like coding assistance and summarization. The primary challenge is now deployment, not model capability. Developers can run models locally, rent dedicated GPU hardware, or use pay-per-token hosted APIs, with the latter being recommended for most teams. Key considerations when selecting an API provider include protocol compatibility, pricing, data privacy policies, and performance metrics like token speed.

0
ProgrammingDEV Community ·

Aleph Alpha releases open-source AI model 'Kolibri' for self-hosting

On October 3, 2026, German AI firm Aleph Alpha published the Kolibri model on Hugging Face under an open license. The 78-billion-parameter model processes English and German text and can be run on private hardware, keeping all data within a user's own network. Its mixture-of-experts architecture activates only a fraction of its total parameters per token, improving efficiency. The release is presented as a sovereign AI solution, built under European regulations to give users full control over their data and infrastructure.

0
ProgrammingDEV Community ·

Developer Creates Outdoor Game After AI Model Invented Facts About Photos

A developer tested a small local AI vision model by showing it pairs of photos from walks and asking how they were connected. In six out of ten test pairs, the model invented details or relationships that did not exist. In response, the developer built 'UNSEEN,' a walking game that uses the AI only to describe photos, not to judge them. The game's rules and a deterministic 'evidence gate' decide the validity of a player's observations, encouraging outdoor activity over screen time. The project was created for the Hacktoberfest Open-Source AI Challenge.

0
ProgrammingDEV Community ·

Study finds sensor constraints, not AI models, drive three earth observation projects

A review of three agricultural monitoring projects in Pakistan, Saudi Arabia, and the US reveals their designs prioritize sensor selection over AI model choice. These projects first consider legal, revisit frequency, and data ownership constraints rather than model accuracy. Two of the three projects explicitly launched with no AI model at all, focusing instead on data aggregation and reporting. The third project incorporated models only after ensuring their open licenses aligned with the system's requirements. In all cases, the sensing architecture was dictated by practical and legal necessities, not by algorithmic performance benchmarks.

0
ProgrammingDEV Community ·

OpenAI research highlights risk of AI workflow errors in mandatory approvals

OpenAI, in an October 6 publication, detailed research on AI agents performing legal, commercial, and procurement tasks. Their study of 11 specific tasks found that relying on average performance scores can hide critical failures, such as a missed mandatory approval. For instance, a workflow could be mostly correct but still bypass a required financial sign-off for purchases over a set amount. The research underscores the engineering need to separate performance metrics from mandatory checks to ensure safety. A proposed solution involves a separate verification system that explicitly fails workflows if any mandatory check is not conclusively passed.

← NewerPage 507 of 3135Older →