SShortSingh.

Programming

0
ProgrammingDEV Community ·

Developer builds free-tier earnings tracker using AlphAI API with 25-ticker watchlist support

A developer behind AlphAI built a Python script called week.py to answer three recurring earnings-season questions: which watchlist stocks report that week, what their filings actually said, and which macro events fall in the same window. The script was built and tested on a free API tier — one key, 20 requests per minute, 100 per day, no card required — starting Saturday, 12 September 2026. A watchlist of 25 tickers costs 25 API requests via the earnings endpoint, with one additional call for the macro calendar, totaling 26 of the daily 100 allowance. The earnings endpoint returns both a company-confirmed next report date and structured analyses of past SEC filings, including key metrics, guidance, and omissions. The developer noted two inconsistencies: the calendar endpoint is not yet wrapped in the SDK, and date-window handling differs between the calendar and news endpoints.

0
ProgrammingDEV Community ·

Why Geographic Enclaves Like Campione d'Italia Are a Nightmare for Software Developers

Enclaves — territories of one country entirely surrounded by another — present unusual edge cases for software systems, as illustrated by Campione d'Italia, an Italian town enclosed within Switzerland. Despite being Italian territory, Campione uses Swiss postal codes, Swiss phone numbers, and the Swiss franc as its primary currency, while remaining subject to Italian law and EU data protection rules. Emergency services are provided by Switzerland, vehicles must be registered in Italy, and the town sits outside the EU VAT area but inside the EU customs territory since 2020. These overlapping jurisdictions mean that software handling taxation, addresses, payments, healthcare, or privacy cannot simply derive rules from a country code. The article argues that such geographic anomalies highlight a broader truth in software design: attributes like currency, tax regime, postal system, and applicable law must each be treated as independent data points rather than assumed from location.

0
ProgrammingDEV Community ·

How One Developer Built a Truly Offline PWA With No Server and Silent Pitfalls

A developer built Mes mots, a pictogram communication app for a non-verbal child, with a strict requirement to function entirely offline on a tablet without regular Wi-Fi access. Unlike most 'offline-first' apps, Mes mots has no backend server, meaning no data syncing or conflict resolution — only occasional code updates need to reach the device. Using the vite-plugin-pwa plugin with Workbox, the developer configured a service worker to precache all necessary assets, including MP3 audio files for each pictogram tile. A critical early mistake was omitting the .mp3 extension from the cache pattern, causing the app to silently lose its audio functionality offline with no console errors or visible warnings. The project also required careful handling of different deployment paths — a personal domain root versus a GitHub Pages subdirectory — to prevent blank-page failures caused by mismatched asset URLs.

0
ProgrammingDEV Community ·

Developer finds none of his 14 SaaS sites had sitemaps submitted to search engines

A developer managing 14 small SaaS websites discovered that despite all sites correctly generating and declaring sitemaps, none had ever been actively submitted to Google Search Console or Bing Webmaster Tools. The oversight left 188 URLs passively waiting to be crawled for months, with one domain not even registered in Bing Webmaster Tools at all. The developer highlights that for new sites with no inbound links, passive sitemap discovery can cause significant indexing delays compared to active submission. He also notes that submitting only to Google is increasingly insufficient, as AI tools like ChatGPT rely on Bing's index and Claude draws on Brave Search, meaning modern SEO now spans multiple distinct indexes. The fix is straightforward: open both Search Console and Bing Webmaster Tools, check the Sitemaps table, and submit the full sitemap URL if the table is empty.

0
ProgrammingDEV Community ·

How to Build a Secure File Download Site Using Flask, Private Storage, and a VPS

A developer has detailed a practical workflow for delivering controlled software downloads to clients using HTML, a Flask backend, and private object storage such as Qiniu, AWS S3, or Cloudflare R2. The setup keeps installer binaries off the VPS entirely, instead storing them in a private bucket and generating time-limited signed URLs server-side so secrets never reach the browser. A small VPS running Nginx as a reverse proxy, Gunicorn as the application server, and Certbot for HTTPS is sufficient to serve the download page and handle API requests. Rate limiting per IP, asset cache-busting, and systemd process management are highlighted as critical details that prevent common freelance delivery failures. The author also advises agreeing on acceptance criteria — including URL expiry, mobile compatibility, and paid re-upload rounds — with clients before writing a single line of code.

0
ProgrammingDEV Community ·

How Websites Work: A Beginner's Guide to Browsers, Servers, and Databases

A website is essentially a collection of files stored on a remote computer, delivered to a user's browser over the internet using HTTP, a standardized communication protocol. The browser, acting as the client, sends requests to a server, which processes them and returns the appropriate files or data. Web development is divided into frontend — the visual layer built with HTML, CSS, and JavaScript — and backend, which handles server-side logic using technologies like Node.js or Python. Databases such as MySQL or MongoDB store all persistent data, including user credentials and content, which the backend retrieves as needed. Together, these three layers — frontend, backend, and database — form the complete architecture of any modern website.

0
ProgrammingDEV Community ·

TypeSafe Launches Jev, a Decision-Only AI Model Claiming 444x Cost Savings Over LLMs

TypeSafe co-founder Diogo Almeida announced Jev on September 15, a specialized AI model designed exclusively for structured decision-making in automated workflows rather than text generation. The model accepts a structured state and a set of questions, returning typed outputs such as boolean, choice, or scored answers, but cannot produce free-form sentences. TypeSafe's own benchmark data shows Jev matching Claude Sonnet 5's accuracy at 67.8% across several workflows while costing roughly 294 times less per case and responding significantly faster. The company describes Jev as a 'System One Model' — borrowing from Kahneman's fast, intuitive thinking framework — and positions it as a cheaper replacement for frontier model calls that only route or classify within an agent pipeline. Vercel has already integrated Jev into its AI SDK, and direct API access from TypeSafe remains in early access.

0
ProgrammingDEV Community ·

Ex-OpenAI Researcher Launches Jev, an AI Model Designed Only to Classify and Score

Diogo Almeida, who claims to have co-invented ChatGPT, has launched a new AI model called Jev through his company TypeSafe AI. Unlike conventional large language models, Jev does not generate text; instead, it returns structured outputs such as classifications, scores, and probabilities. The model is built around three output types — Choice, Score, and Noul — designed for tasks like routing support tickets or evaluating inputs programmatically. TypeSafe AI describes Jev as the first model purpose-built for evaluation rather than conversation, with calibrated confidence scores attached to its answers. The model is available via an AI SDK provider and is positioned as a more predictable, type-safe alternative to using general-purpose chat models for classification workflows.

0
ProgrammingDEV Community ·

Python Dictionaries Explained: A Beginner's Guide to Key-Value Data Storage

Python dictionaries store data as key-value pairs, allowing lookups by name rather than by index position as with lists. Each key in a dictionary must be unique, and values can be accessed using square bracket notation or the safer .get() method, which returns a default value instead of raising an error. The .items() method enables iteration over both keys and values simultaneously in a loop. Dictionaries are particularly useful for real-world data tasks such as finding the top scorer in a set of results using the built-in max() function. Once understood, they are widely regarded as one of the most efficient and readable data structures in Python.

0
ProgrammingDEV Community ·

Developer builds offline flood digital twin of Sheffield's River Don using WebGPU and on-device AI

A developer has created Don Watch, a browser-based digital twin of Sheffield's River Don that simulates flood conditions entirely on the user's device, requiring no backend server. The tool reconstructs the Don valley using open LIDAR elevation data and replays the November 2019 Sheffield flood hour by hour using Environment Agency gauge records, while also supporting a live data mode. Rendering is handled via WebGPU and three.js, with a level-driven flood surface that spreads water realistically from river vertices across submerged terrain. An on-device AI model, loaded through WebLLM in the 1–2 billion parameter range, powers five small agents that ingest gauge data, project flood risk, and draft plain-language briefings — but all numerical hydrology calculations remain deterministic code, keeping the AI in a strictly interpretive role. The application is built as a Next.js static export and installable as a progressive web app, functioning fully offline once cached.

0
ProgrammingDEV Community ·

Dropped ICC profiles, not low JPEG quality, cause washed-out thumbnail colors

A developer's experiment using Pillow 11.3 and macOS ICC files found that stripping an image's color profile — not compression quality — is the primary cause of faded-looking thumbnails. When a Display P3 or Adobe RGB profile is dropped during saving, viewers default to sRGB interpretation, causing the most saturated pixels to shift by a perceptible ΔE of up to 7.2. Tools like Pillow silently discard ICC profiles when saving JPEG or WebP files, including after resize operations, while ffmpeg and macOS sips handle profiles more reliably in most formats. The fix involves explicitly passing the ICC profile during the save step in Pillow, or converting the image to sRGB beforehand using ImageCms. Browser testing showed Chromium and WebKit correctly honor embedded profiles, while the Playwright-bundled Firefox 151 rendered tagged and untagged files identically and exported washed-out untagged JPEGs.

0
ProgrammingDEV Community ·

How One Team's 1,000-Line AI Instruction File Reveals the True Cost of Model Guidance

A content pipeline team built with Claude Opus and Sonnet over seven months accumulated 1,042 lines of model instructions across three files, far exceeding the tool maker's recommended 200-line limit. The project began in January 2026 as a Hugo-based site and progressed through multiple stages of AI adoption, from basic assisted use to supervised autonomy, as described in Boris Cherny's five-step framework. The team's growing instruction files reflect each instance where the model lacked context, but the author argues the real problem is mechanical rules left as readable prose rather than enforced as code hooks or validators. Keeping unnecessary instructions wastes context in every session, while deleting the wrong ones risks silently removing a check the team didn't know they relied on. The article sets out to audit which instructions the model now handles natively, which belong in automated hooks, and which represent facts too project-specific to ever be inferred from code alone.

0
ProgrammingDEV Community ·

Which tools drop the color profile? Pillow, ffmpeg and sips across JPG, PNG and WebP

An ICC color profile is a small block of data inside the image file. It tells software which color standard the RGB numbers are meant to be read in. The same numbers read as Display P3 come out more saturated than when read as sRGB, and Apple's developer documentation notes that iPhone cameras can capture P3 starting with the iPhone 7. When the profile is missing, software generally falls back to sRGB. Nothing about the pixels changes.

0
ProgrammingDEV Community ·

Cline: Open Source Coding Agent With 67K GitHub Stars Rivals Claude Code and Cursor

Cline is an open source autonomous coding agent, licensed under Apache 2.0, that can read entire project structures, plan changes, edit multiple files, and run terminal commands while keeping the developer in control at each step. Originally launched as a VS Code extension called Claude Dev, it has expanded into four products: a VS Code extension, a JetBrains plugin, a CLI tool, and a Node.js SDK for building custom agents. Unlike proprietary alternatives, Cline supports a wide range of AI model providers — including Anthropic, OpenAI, Google, and local models via Ollama — letting users bring their own API keys. It features a two-stage Plan and Act workflow, project-specific rule files via .clinerules, and support for Model Context Protocol servers to connect external tools and services. The project has accumulated over 67,000 GitHub stars and more than 7,000 forks, signaling strong adoption within the developer community.

0
ProgrammingDEV Community ·

Nearly 4,000 Proxmox Hypervisor Consoles Exposed Online Amid Auth Bypass Flaw

A ZoomEye scan conducted in September 2026 found 3,988 hosts responding on port 8006, the default port for the Proxmox VE web management interface. This exposure coincides with a Proxmox authentication bypass vulnerability disclosed in August 2026, affecting versions 7.x through 8.0.3. An attacker reaching an unpatched console gains root-level access without needing to exploit additional vulnerabilities, making exposed instances high-value targets for ransomware and data extortion. Security researchers note the scan reflects exposure only and does not confirm which hosts are running vulnerable versions or who owns them. Defenders are advised to block port 8006 from public internet access and enforce multi-factor authentication on root accounts as immediate mitigations.

0
ProgrammingDEV Community ·

Developer Builds Event-Sourced Library App in Under an Hour Using Sekiban DCB and AI

A developer used the Sekiban DCB Decider template alongside Codex and GPT-4o to rapidly build a library management application supporting book registration, borrowing, and returning. The project was scaffolded using a .NET 10 dotnet template and used PostgreSQL for storage with a Blazor-based frontend. Business logic was handled through Decider classes containing Validate and Evolve methods, ensuring consistency rules such as preventing duplicate borrowing of the same book. The AI was guided to follow existing sample implementations for Student, ClassRoom, and Enrollment features rather than introducing new patterns or abstractions. The entire process — including implementation, integration testing, concurrency checks against a live database, and UI fixes — was completed in less than one hour.

0
ProgrammingHacker News ·

Servo Browser Engine Marks One Year of Sponsored Development

The Servo project has published a blog post reflecting on one full year of sponsored development work. Servo is an open-source browser engine that has relied on external funding to sustain its progress. The post, dated September 15, 2026, outlines the milestones and advancements achieved during this period of sponsorship. The update highlights how financial backing has enabled continued engineering contributions to the project. The announcement was shared on the Servo official blog and drew attention from the developer community on Hacker News.

← NewerPage 1180 of 3224Older →