SShortSingh.

Programming

0
ProgrammingDEV Community ·

FOCUS Standard Offers One Cost Schema for Comparing AWS, Azure and Google Cloud Bills

Teams running workloads across several clouds often rely on custom spreadsheets or scripts to reconcile bills, which break whenever a provider renames a field. The FinOps Open Cost and Usage Specification (FOCUS) is an open billing-data standard that all three major providers can now export in, giving common column names and meanings. The article argues that agreeing on a shared schema should come before dashboards or optimization work, since it lets a single query answer cost questions across clouds. Key columns such as SubAccountId, ServiceName, ChargePeriodStart and Tags help answer where, what, when and who for each charge. Provider-specific extensions are prefixed with x_ and are best kept out of shared queries.

0
ProgrammingDEV Community ·

Study Tests How Often Web Vulnerability Scanner Findings Are Real

The author examines how many findings a web vulnerability scanner reports are genuine, arguing that false positives erode trust and waste responders' time. The scanner, Web-Vuln-Scanner, is an open-source early-stage project that requires explicit target and authorization confirmation before running. It currently implements four checks: reflected XSS, error-based SQL injection, security response headers, and sensitive-path probing, while other features remain unimplemented. The author tested the pipeline against six targets designed to measure detection of real flaws, correct handling of clean sites, the nature of false positives, and the pipeline's limits. The results indicate that the sensitive-path and error-based SQLi checks produced false positives because they lack a baseline comparison against normal responses.

0
ProgrammingDEV Community ·

Guide Shows How Subnet CIDR Pro Helps Plan IPv4 Networks Offline

A DEV Community guide explains how the Subnet CIDR Pro app for iPhone and iPad can handle IPv4 subnet calculations and address planning. Using the example 192.168.1.100/26, it shows that the prefix yields 64 total addresses and 62 conventionally usable hosts, and it notes that the entered address is a host inside the subnet rather than the network address. The article compares common prefixes such as /24, /26, and /28 to show how prefix length affects capacity. It then demonstrates Variable Length Subnet Masking (VLSM) for a homelab or small office, allocating blocks from the largest host requirement downward. The author recommends leaving room for growth and verifying the proposed address boundaries before deploying them.

0
ProgrammingDEV Community ·

Before Launching Google Ads: Essential Setup Steps for Small Businesses

An IT and digital marketing agency owner in Ranchi notes that failed Google Ads campaigns often stem from unprepared foundations rather than the ads themselves. The article advises defining what counts as a useful enquiry, such as a booked call or a form submission, instead of relying on vanity metrics like website visits. It recommends a single specific offer, a targeted geography, and a dedicated landing page that matches the ad's promise and works well on mobile. Tracking through Analytics and conversion actions should be verified with a test submission before launch. Finally, it stresses having a clear plan for responding quickly to leads during ad hours.

0
ProgrammingDEV Community ·

WhatsApp Utility Messages Undercut SMS in India, But Marketing Costs Five Times More

An analysis of messaging costs in India finds no single cheapest channel, with per-message cost depending on message type. A WhatsApp utility message comes to about ₹0.14 delivered including GST, slightly below an SMS transactional message at roughly ₹0.22. A WhatsApp marketing message, by contrast, costs about ₹1.02, around five times an SMS. Voice broadcasts cost about ₹0.47 per answered call but can reach people with feature phones and no data connection. The analysis argues that channels should be chosen by message type and audience rather than by headline rates, and it notes that delivery and answer rates vary and should be tested on a pilot batch before scaling.

0
ProgrammingDEV Community ·

Two-Week SQL Learning Recap Covers Window Functions, Joins, CTEs and Subqueries

A developer documents two weeks of intensive SQL study at luxdevHQ, starting from the basics. The write-up walks through window functions such as ROW_NUMBER, RANK, LAG and LEAD, along with aggregate functions like COUNT, SUM, MAX and MIN. It also covers the join types (inner, left, right, full outer, cross and self) and explains Common Table Expressions alongside several subquery forms. Each concept is illustrated with example queries drawn from a hospital visits dataset.

0
ProgrammingHacker News ·

DeepSeek v4.1 Flash 1017 Scores 45 on Artificial Analysis Benchmark

A Hacker News post reports that DeepSeek's v4.1 Flash 1017 model received a score of 45 on the Artificial Analysis evaluation platform. The post links to the model's profile page on Artificial Analysis, where its benchmark results are listed. The submission drew 38 points and 8 comments from the Hacker News community. The available details are limited, so the post does not explain the scoring methodology or compare the result against other models.

0
ProgrammingHacker News ·

Consumer class action filed over Verisign's .com domain name registry

A consumer class action has been brought against Verisign concerning its operation of the .com domain name registry. The case was publicized through a law firm's case page, which is the source of the available details. The article provided includes only a link, a discussion thread, and a small amount of engagement data, with no detailed allegations described. Further specifics about the claims, plaintiffs, and relief sought are not available in the source material.

0
ProgrammingHacker News ·

Strot compiles an LLM's intent once so later decisions can run locally

A developer has shared Strot, a project posted on Hacker News as a Show HN, that aims to capture an LLM's intent a single time and then run decisions locally. The project is hosted on GitHub under the strot-ai organization. The post gathered 16 points and 4 comments on Hacker News at the time of listing. The available source provides only the project link and engagement figures, so details on how the compilation works are not confirmed here.

0
ProgrammingDEV Community ·

Designing AI Study Notes That Learners Can Actually Use

The article argues that an AI note tool producing a summary, flashcards, and a quiz from one document should give each output a distinct purpose and let users verify its claims. It uses an invented offline recording specification to illustrate how summaries must keep critical conditions, such as the difference between recording, uploading, and processing. Flashcards work best as separate questions that each cite a specific source detail, rather than one card that restates the whole passage. The author also cautions that fixed card counts can encourage repetitive filler, so the number should depend on the material. Suggested controls include editing questions, correcting answers, and removing duplicates, along with scenario questions that test understanding.

0
ProgrammingDEV Community ·

Committed Android Baseline Profiles Can Silently Do Nothing

A baseline profile can be checked into a project and bundled into the APK yet still have no effect on startup speed. A common cause is generating it against a debug build rather than a release-shaped build, since R8 renames classes and the profile then references symbols absent from the shipped app. The profile also goes stale when new screens or navigation destinations are added without regenerating it, leaving those code paths unoptimized. Because none of this fails the build, developers are advised to verify installation and compilation state directly with adb commands like dumpsys package compiler-stats. Regeneration should be treated as a release-checklist item, with before-and-after startup measurements used to confirm the profile is working.

0
ProgrammingDEV Community ·

Automating .NET Assembly Obfuscation via Visual Studio CLI Post-Build Steps

A developer at Rustemsoft describes how manual GUI-based obfuscation of .NET assemblies can be skipped by mistake, leaving code exposed in CI/CD pipelines. The guide explains wiring Opaquer's command-line interface into Visual Studio post-build events so Release builds are protected automatically. It covers limiting parallel project builds to avoid file-lock errors, and running obfuscation with options for private member renaming, string encryption, and control-flow obfuscation. A batch script is provided for CI/CD use, along with a note that setup projects need obfuscation before packaging. The Command Line Interface requires the Pro or Enterprise edition, as the free edition includes only the GUI.

0
ProgrammingDEV Community ·

How to design a web search engine in a system design interview

A web search engine prompt is deliberately oversized, hiding three distinct systems: a crawler, an indexer, and a serving layer. Strong candidates scope the problem early and treat it as top-K retrieval rather than crawling. The core structure is an inverted index that maps each word to the documents containing it, turning queries into lookups. Because the index is too large for one machine, it is sharded by document and each query fans out to all shards, with results merged afterward. The rest of the interview covers how the index is built, how fan-out stays fast, and how matching pages are ranked.

0
ProgrammingDEV Community ·

SQL Interview Question: Finding Departments Paying Above the Company Average Salary

A practical SQL interview problem asks for departments whose average salary exceeds the company-wide average. The article supplies two sample tables, one of employees with department IDs and salaries, and one of departments with names. The company-wide average is given as ₹67,500, and the IT department's average of ₹90,000 is the only one above it. The suggested solution uses a common table expression to compute each department's average and a subquery for the overall average, then filters the results. The author also poses a follow-up question about whether HR would qualify if a new ₹120,000 employee joined it.

0
ProgrammingDEV Community ·

Designing failure tests from what users must never see

The author, who builds free open-source alternatives to subscription work software, proposes starting test design from the wrong thing a user could see rather than from the code's behaviour. The suggested exercise picks one visible claim, such as an operation shown as complete, and identifies the evidence needed to justify it. Dependencies like the database, cache, or mail provider are removed one at a time, with the user-facing result and the operator-facing log checked separately. As an example, their status page tool Lamp promises that a failed read never shows an all-clear, and its tests verify this and check that a failed page serves a labelled last known state. A stress test also revealed a scheduled-update delay of 238.5 seconds, so the promise was revised from 60 to 240 seconds, with the old and new promises kept in the release record.

0
ProgrammingDEV Community ·

RepoTrace Captures Failing Commands as Replayable, Testable Reports

RepoTrace is an open-source MIT-licensed Python tool that records failing commands as structured JSON reports stored by default under .repotrace/reports. Users can replay those recorded commands later, including on another machine, to check whether a failure still occurs and compare results against the original trace. The tool also renders reports as Markdown and generates self-contained pytest regression tests that embed the command and its expected output. It is built with Python 3.12+, a Typer-based CLI, Pydantic v2, and Rich, and is available on PyPI and GitHub. The project's authors position it as a way to reduce "works on my machine" debugging and to support CI pipelines that collect failures automatically.

0
ProgrammingDEV Community ·

PSEC-99: A 3D Browser Game Built in C# and WebAssembly Without WebGL

OpenSilver developers created PSEC-99, an unofficial 3D tribute to the 1982 TI-99/4A game PARSEC, running in the browser. The game is written in C# and compiled to WebAssembly, and it renders its entire 3D scene into a single int[] pixel buffer rather than using WebGL or a game engine. That buffer is displayed on an HTML canvas through the new WriteableImage control in OpenSilver 3.4 Preview. Both the game and the OpenSilver framework are open source under the MIT license, and the game runs on .NET 10 WebAssembly, including on phones.

0
ProgrammingDEV Community ·

VoiceLedger Turns Spoken Job Notes into GST Invoices Using Open-Weight Models

VoiceLedger is a prototype app designed to help independent contractors such as plumbers, electricians, and home bakers create tax invoices quickly. Users record a short voice note in English or Hinglish after completing a job, and the app transcribes it with ElevenLabs Scribe. It then matches the client against a MongoDB Atlas database, extracts materials and labor into a structured format using open-weight models like Gemma 2 or Llama 3.3, and computes GST totals through deterministic JavaScript logic. The resulting invoice can be edited, exported as a PDF, shared via WhatsApp, and includes a UPI payment QR code. The project is positioned as a micro-SaaS subscription for small service businesses.

0
ProgrammingDEV Community ·

Invoice AI Turns Phone Photos of Invoices into Small Business Insights

Invoice AI is an open-source tool built for a Hacktoberfest challenge that helps small shopkeepers analyze their finances. Users photograph invoices with their phone, label each as a sales or purchase invoice, and upload them. The system uses PaddleOCR to extract fields like vendor details, dates, subtotals, taxes, and totals, then validates totals and flags ambiguous entries for user review before they feed into analytics. A FastAPI backend and Streamlit dashboard present metrics such as vendor spending, monthly trends, and sales counts. An interactive assistant powered by the open-weight Gemma 4 model, accessed through Ollama Cloud, answers business questions using the confirmed data.

0
ProgrammingDEV Community ·

Designing a CDN: a system design walkthrough for interviews

A CDN design is framed not as a simple file server but as a globally distributed read-through cache that serves requests from nearby edge servers. The core challenges are routing each user to a healthy nearby edge and keeping cached content fresh and invalidated correctly. Because geography and caching are essentially the same problem, the design aims to answer most requests from a close cache hit while keeping cache misses cheap and safe for the origin. The walkthrough follows the structure a candidate typically draws in a roughly 45-minute interview round, covering requirements, estimates, data model, high-level design, and deep dives. It also highlights a frequent follow-up scenario: a sudden viral surge that causes a cache-miss storm against a single origin.

← NewerPage 329 of 3080Older →