SShortSingh.

Programming

0
ProgrammingDEV Community ·

Guide Compares Common Barcode Types and Their Practical Uses

Barcodes help businesses identify products, manage stock, and track shipments through scanners or mobile devices. Different formats serve different needs, so the right choice depends on the goal and how data will be read. Code 128 and Code 39 are one-dimensional formats suited to logistics, inventory, and asset labels, with Code 128 storing more data in less space. UPC-A and EAN-13 are retail standards used at checkout, while ITF-14 identifies shipping cartons and bulk packaging. QR codes are two-dimensional and can hold links or text that smartphones scan directly.

0
ProgrammingHacker News ·

Blog post urges France to read a paper on an unspecified research topic

A post on the personal blog wilsoniumite.com, titled "France needs to read my paper," was shared on Hacker News. The article text provided is limited to the URL and metadata, so the paper's subject matter and findings are not described. The post drew 11 points and no comments at the time of the listing. Because no further content is available, the reasons the author believes France should read the paper cannot be confirmed.

0
ProgrammingHacker News ·

The Rise and Fall of Jev: A Look at Eval Hype Versus LLMs

A blog post by Alex Ewerlof examines the trajectory of an entity referred to as Jev in the context of evaluation hype surrounding large language models. The article contrasts the promotional excitement around evaluations with the practical realities of LLM performance. It is published on Ewerlof's blog and was shared on Hacker News, where it drew a modest amount of attention. The provided material contains only the link and metadata, so the specific arguments and conclusions of the piece cannot be fully summarized here.

0
ProgrammingDEV Community ·

Why iPhone photos are saved as HEIC files and how to convert them to JPG

Since iOS 11, iPhones have stored photos in the HEIC format by default, which preserves quality at about half the file size of JPG. Many Windows applications, upload forms and print services do not accept HEIC, which causes compatibility problems. Users can switch the camera to the Most Compatible setting to shoot JPGs going forward, though files will be larger. Existing photos can be converted using transfer settings, Mac Preview or Finder, Windows Paint with extensions, or Linux command-line tools such as heif-convert. The article's author also promotes a free browser-based converter that processes files locally without uploading them.

0
ProgrammingDEV Community ·

Caching Bank Directories Safely Across Multiple Payout Providers

Bank lists are strong caching candidates because they are requested often, can be large, and change infrequently. Caching them incorrectly is easy, especially when several payout providers each use their own bank codes, names, and supported institutions. The article recommends provider-scoped cache keys that include country and a version, and warns against merging directories by bank name in the transfer path. It also advises paginating fully, preserving provider-issued identifiers, and treating stale data as acceptable for browsing but not for account validation. Overall, reference data should be scoped by its source and separated from the data used for transaction validation.

0
ProgrammingDEV Community ·

Preventing Duplicate Push Notifications When Background Jobs Retry

Notification systems must account for task queues that typically offer at-least-once execution, since retries can cause customers to receive repeated messages. To stop two workers from sending the same campaign, the approach locks the campaign row and moves it to a sending status within a single database transaction, so only the worker that claims it proceeds. Targets are built from active, validated device tokens with duplicates removed, and each delivery is recorded under a deterministic key with a unique constraint before the push provider is called. Delivery records track pending, accepted, and failed outcomes, and campaign totals are derived from these rows rather than optimistic counts. The result is that each campaign-device pair is submitted at most once within the application's own retry model, though exactly-once delivery cannot be guaranteed across every external push platform.

0
ProgrammingDEV Community ·

KYC Should Be Modeled as an Auditable Evidence Workflow, Not a Simple Flag

A single is_verified field cannot capture a genuine KYC process, which typically involves personal details, identity documents, liveness checks, address proof, database and sanctions screening, and staff review. Each step should be tracked with its own status, so one rejected or resubmitted step does not erase evidence from completed ones. Overall approval should follow from required steps and policy rather than whichever provider responds last. Provider integrations should be handled through adapters that normalize outcomes and keep restricted raw responses, with media stored behind protected references and sensitive identifiers kept out of logs. Every review action should be recorded in an audit trail capturing actor, change, reason, and timestamp.

0
ProgrammingDEV Community ·

Essential Self vs. Simulated Subject: Where Identity Meets AI

The article examines how human identity relates to artificial intelligence, drawing a distinction between the essential self, the nominalized subject, and the simulated subject. It cautions that handing over one's thinking to outside systems, a process the author calls nominalization, can erode genuine human agency. The piece also criticizes treating AI systems as human-like when they only imitate behavior. Accurately modeling someone's style or data, the author argues, does not amount to personal continuity or conscious experience. As AI agents spread, the author stresses keeping a clear line between a person and their digital model to preserve intellectual independence and authentic personal identity.

0
ProgrammingDEV Community ·

Eight AI API providers offer free tiers without a credit card as of October 2026

As of October 22, 2026, eight providers offer free AI API access that requires no payment method: Google Gemini, Groq, OpenRouter, Mistral, Cloudflare Workers AI, NVIDIA's API catalog, Cohere and SambaNova. Six other providers offer starter credits instead, which are one-time trials rather than ongoing free tiers. All eight use OpenAI-compatible chat completion endpoints, so a single client can work across them. Each free tier has limits on requests per minute, requests per day or tokens, which are set by the providers and may change. Google warns that data sent on its unpaid tier may be used to improve its products and reviewed by humans, so sensitive information should be avoided.

0
ProgrammingDEV Community ·

Most long-tail PyPI packages still ship wheels, but source-only releases are far more common there

A census of PyPI's latest releases compared the 3,000 most-downloaded projects with a random sample of 2,850 long-tail projects. About 81% of tail projects ship a wheel, versus 98% of top projects, so the gap is real but smaller than commonly assumed. Source-only (sdist-only) releases are roughly eight times more common in the tail, at 18% compared with 2%, reflecting older setup.py uploads that never adopted wheels. Top projects also tend to ship more files per release, largely because of compiled-package families with many platform-specific wheels. The analysis is a single snapshot from October 2026 and the tail figures carry about one point of sampling error.

0
ProgrammingDEV Community ·

gcloud ADC Credentials Expired After ~44 Hours; Service Account Key Fixed Scheduled Jobs

A blog's automated job, which pulled Search Console data using gcloud application-default credentials, stopped working about 44 hours after setup. The failure was a "Reauthentication failed" error, since the login used a Google Workspace account whose policy periodically requires re-entering the password. Because a scheduled job has no screen, it cannot answer that prompt, so the credentials became permanently unusable. The author resolved this by switching to a service account key, which neither expires nor requires reauthentication, and exchanging a self-signed JWT for an access token using only Node's crypto module. The service account was given no Google Cloud roles, only read access granted in Search Console, and the key was stored outside the repository with restricted file permissions. The switch also involved several 403 errors, which made it difficult to determine whether the cause was a missing scope, a wrong account, or a wrong project.

0
ProgrammingDEV Community ·

Gemini API free tier in 2026: which models are included and when billing starts

Google's Gemini API still offers a free tier as of October 2026, but it is more restricted than before. Developers can call several Gemini Flash and Flash-Lite models, Gemma 4, and certain audio and embedding models at no cost, without a credit card or billing account. Gemini 4 Argon, image models, and video models are paid-only, and the free tier is granted per project and per model rather than per API key. Google no longer publishes per-model RPM and RPD figures in its documentation, and charges apply only after a billing account is linked and at least $5 is prepaid. The article notes that access to Gemini 2.5 models may be restricted for new projects, and that developers are being steered toward newer models.

0
ProgrammingDEV Community ·

PHP2Shell: two unauthenticated PHP RCE bugs disclosed, with attacks already underway

Two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, were disclosed on October 21, 2026, both enabling remote code execution without authentication and rated CVSS 4.0 9.2. Exploitation is already occurring in the wild. Upstream PHP fixed the issue only in versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35, so other users depend on their Linux vendors' backported patches. Because distributions such as Ubuntu keep the old upstream version number while applying fixes, checking php -v is unreliable; administrators should inspect package release versions instead. Testing of edge mitigations on Rocky Linux with NGINX and PHP-FPM found that default request buffering and a limited client_max_body_size help block some attack paths, while per-request PHP_VALUE settings did not work as expected.

0
ProgrammingDEV Community ·

Aldi cheapest on weekly 31-item grocery basket, Coles dearest by 22%

A weekly price index comparing Coles, Woolworths and Aldi found Aldi had the lowest total for a 31-item staples basket at $105.40 on 22 October 2026. Coles was the most expensive at $128.57, about 22 percent more than Aldi, while Woolworths came in at $123.81. The comparison uses online shelf prices for the cheapest matching product per item, measured per kilogram or litre so pack sizes do not skew results. The report is rebuilt weekly so that price movements can be tracked over time.

0
ProgrammingDEV Community ·

Why Standard HTTP Status Codes Make APIs Easier to Use and Debug

HTTP status codes signal the outcome of a request, and using them consistently helps developers consume and troubleshoot APIs. The article highlights 200 OK for success and 201 Created when a new resource is made, such as after a POST to a users endpoint. Client-error codes like 400, 401, 403, 404, 409, and 429 indicate that a request was unacceptable, for instance when authentication is missing or permissions are lacking. Server-side failures are represented by codes such as 500 Internal Server Error and 503 Service Unavailable, the latter often signaling temporary downtime. The author argues that returning 200 for every response forces clients to parse custom fields, so standard codes should be treated as part of the API contract.

0
ProgrammingHacker News ·

Disney Raises Streaming Prices Days After Saying Ads Will Reach All Tiers

Disney has announced a price increase for its streaming service just days after confirming that advertisements will now appear on every subscription tier. The change means subscribers on previously ad-free plans will see commercials alongside their content. The news was shared on Hacker News, where it drew discussion from readers. The source article, published on a TV fan site, reports the pricing move and links it to the broader push toward advertising revenue. Further details on exact new prices and effective dates were not included in the provided text.

0
ProgrammingHacker News ·

ClickBench Pull Request Calls for Removing pgrust Entry Over Alleged Cheating

A pull request on the ClickBench GitHub repository proposes removing the pgrust entry from the benchmark. The request argues that the submission is cheating, meaning it does not represent a legitimate performance result. The article itself is brief and provides only the pull request link, with limited detail about the specific methods alleged. The discussion gained modest attention on Hacker News, with 8 points and one comment at the time of posting. Readers should consult the pull request directly for the full reasoning behind the accusation.

0
ProgrammingDEV Community ·

Developer shares how to build a native-feeling six-box OTP code input

A DEV Community tutorial describes common usability problems with six-box one-time code inputs, such as paste landing only in the first box and backspace failing on empty cells. The author explains that their component treats the code as a single digit string that the six inputs merely display, so typing, pasting, and iOS autofill all update the same value. Key behaviors include moving focus to the first empty cell, replacing digits in filled cells, stripping non-digit characters from pasted codes, and shaking the field with a reset on an incorrect code. The article also covers accessibility attributes such as inputMode, autoComplete set to one-time-code on the first cell, and ARIA labels for screen readers. Code excerpts from the shipped React component illustrate the approach.

0
ProgrammingDEV Community ·

How ISO 27001 and ISO 42001 Can Be Built Into AI Development Workflows

Governance gets harder when security and compliance work sits apart from the engineering process, especially for AI systems that raise questions about intended use, model behaviour, and risk ownership. The article argues that ISO/IEC 27001 (information security) and ISO/IEC 42001 (AI management) can help organizations close the gap between technical implementation and governance. It explains that standard security controls alone do not address issues such as sensitive data exposure in model inputs, the need for human review of outputs, or post-deployment monitoring. The piece recommends connecting these management-system activities to existing development lifecycle stages, starting with planning questions about purpose, data, dependencies, and ownership. It also suggests that testing and review should cover both security and AI-specific concerns, with documented results and clearly identified approvers.

0
ProgrammingDEV Community ·

Browser image loop decodes, draws, encodes and saves photos one at a time, with per-step timings

A developer reviewed a teammate's in-browser loop that converts a folder of product photos to JPEGs for an upload form, measuring each step with timers. The loop processes one photo at a time and releases the decoded bitmap after drawing it to a canvas, keeping memory low compared with decoding everything first, which had reached about 5,192 MB by photo 100. Tests on six valid photos plus two invalid files showed that corrupt images are caught at the decode step by a try/catch, so processing continues rather than stopping early. Measurements across two runs put decoding at roughly 24–29 ms per photo and encoding at 46–52 ms, with drawing and saving much faster. The author notes that the progress display should show each file's label, since files arrive in input order rather than sorted order.

← NewerPage 91 of 2916Older →