SShortSingh.

Programming

0
ProgrammingDEV Community ·

Japanese Filenames Broke a Mac App's Code Signature After DMG Copy

A Mac app was reported as damaged after distribution, with codesign verification failing on a sealed resource. The developer traced the problem to four Japanese filenames containing voiced sound marks, which were converted from NFC to NFD normalization when the app was copied from a DMG. Because the altered names no longer matched those sealed during signing, the signature check failed even though the names looked identical on screen. The fix bundles the Japanese-named files into a single ASCII-named file that is extracted on first launch with NFC-normalized names. After this change, code signature verification passed following the copy.

0
ProgrammingDEV Community ·

Developer Builds Local AI Tool That Writes and Verifies CTF Reverse-Engineering Challenges

A developer created SlothCTF, an open-source tool that uses a locally run open-weight model to generate reverse-engineering CTF challenges from a short text prompt. Early attempts failed because language models repeatedly miscalculated byte-level XOR encoding, so the design was changed to have the model write C programs while the compiler performs the exact arithmetic. Each generated challenge is compiled, executed, and checked to confirm the flag is recoverable, that correct input is accepted and wrong input rejected, and that the plaintext secret does not appear in the binary's strings. The developer reported that all 20 of their planned challenge prompts produced valid challenges, each including source code, a compiled binary, a player README, and an organizer walkthrough. The project was submitted to a Hacktoberfest open-source AI challenge.

0
ProgrammingDEV Community ·

Modder's Endless Legend 2 automation tools expose solved city-layer mechanics

A modder has released Endless Legend 2 mods that automatically choose the best population growth, swap jobs, and buy foundations, aiming to reduce tedious micromanagement in wide and late-game play. Players praised the time savings, with one reporting hundreds of fewer clicks. The author argues this reflects that many city-layer decisions have a computable optimal answer, making them data entry rather than meaningful choices. Others counter that the dense adjacency puzzle is a deliberate depth that fans enjoy, though the mandatory nature of district management means solved tasks crowd out the decisions that remain open. The author concludes that the real issue is manual repetition of solved decisions, and suggests Amplitude should incorporate such automation into the game.

0
ProgrammingDEV Community ·

n8n, Zapier and Make Compared on Cost, Control and When to Write Custom Code

The article compares Zapier, Make and n8n, three tools for connecting apps and automating routine work. Its central point is that they bill differently: Zapier charges per action, Make per module, and n8n per workflow run, so costs diverge as workflows grow. The guide reviews October 2026 pricing from Zapier's and n8n's public pages and explains Make's billing without publishing exact figures. It recommends Zapier for simple automations, Make for visual branching at lower step prices, and n8n for long, high-volume or self-hosted workflows. It also argues that teams needing custom interfaces, memory or changeable rules should consider writing custom code, possibly alongside n8n for background jobs.

0
ProgrammingDEV Community ·

Developers Report Unexplained Obfuscated Code in Next.js and PostCSS Config Files

A GitHub community discussion described obfuscated code appearing in next.config.js and postcss.config.js without any manual edits by developers. The original poster, maewhyxng2-prog, reported the changes surfacing during build or linting checks, raising concerns about unauthorized injection and supply chain risks. Their team responded with stricter static analysis via CodeQL and cryptographic hashing of configuration files, yet the source of the mutations remained unidentified. A community member, 4Raisan, recommended isolating the exact pipeline step where the files change, preserving evidence, and reproducing the issue in a clean environment. The discussion highlights how even well-secured projects can experience unexpected configuration changes that require systematic investigation.

0
ProgrammingDEV Community ·

2026 Marks a Shift Toward Reliable AI Agents Built With Harness Engineering

The AI industry's focus has moved from simply impressing users with prompts toward making agents dependable enough to run repeatedly and safely at scale, as highlighted in a recent China Academy of Information and Communications Technology keyword report. Developers now emphasize the 'harness,' the surrounding code, constraints, and feedback loops that keep a language model on task during long-running jobs, with open-source harness releases from firms like OpenAI and DeepSeek reflecting the trend. Meta has introduced new models featuring Active Memory, which retains user details across conversations, and Active Focus, which helps agents adapt rather than abandon tasks after errors, targeting professional work in law, finance, and software development. Separately, MiniMax's M3.1 Flash model reportedly delivers threefold faster inference and 70% lower usage costs, easing the expense of running agents at scale.

0
ProgrammingDEV Community ·

NestJS Tool Calling: Exposing Service Methods to LLM Agents

Developers can let an LLM invoke NestJS code by decorating a service method with @Tool() and its parameters with @ToolParam(). The model only requests a function call, and the application itself executes the method and returns the result for the model to use in its answer. The guide uses a product catalog service as its example, with a checkStock method that reports inventory for a SKU and throws an error when the product is missing. The service is registered in a module and then listed in the agent's tools configuration, which gives the agent access to every tool-decorated method of that module's providers. The tutorial is part 2 of a series, and its examples were tested with NestJS 12, LangChain 1.x, Zod 4, nestjs-langchain 2.0 and Node 22.

0
ProgrammingDEV Community ·

Chunking and Hybrid Search Shape RAG Quality in SaaS Products, Guide Finds

A guide drawing on two years of production RAG deployments argues that practical success depends on a few key decisions. It states that chunking strategy accounts for most retrieval quality, since fixed-size chunks break semantic units like sentences and table rows. The article reports that embedding model choice matters more than the choice of vector database, and that hybrid dense-plus-sparse search generally beats either method alone. It also describes reranking as offering the largest quality gain for the least computational cost. The piece explains that RAG grounds LLM answers in an organization's own data to reduce hallucinations, and is most useful for document Q&A and product knowledge tasks.

0
ProgrammingDEV Community ·

GitHub's ubuntu-latest move to 26.04 is rolling out unevenly; re-run checks instead of assuming

GitHub's migration window for ubuntu-latest runs from October 19 to November 19, 2026, shifting the image from Ubuntu 24.04 to 26.04 in stages rather than all at once. A developer's static scans of three repositories on October 20 and 21 showed no changes, but the scanner reads workflow files only and cannot detect when a given repository's image switches. Workflows that have not run since October 19 have not yet been tested against the new image, and the two images differ in 22 toolset entries, so earlier green results may not hold. Separately, the macos-14 runner image retires on November 2, 2026, and any workflow still referencing it will fail completely on that date.

0
ProgrammingDEV Community ·

Postgres migration passed in staging but locked a production checkout table for six minutes

A schema migration that ran in 40 milliseconds in an empty staging database caused a six-minute outage on the checkout table in production. The migration added a column, backfilled it with an unbatched UPDATE, and then set NOT NULL, which together rewrote millions of rows and held an exclusive lock throughout. The author explains that the staging environment, built from migration history rather than real data, could not reveal these costs. The recommended fixes include a production-shaped staging dataset, batched backfills, adding constraints in non-blocking steps, and setting lock and statement timeouts to surface problems early.

0
ProgrammingDEV Community ·

PHP Announces Emergency Security Release for Two Critical Flaws on October 21

The PHP security team has scheduled an emergency release for October 21, 2026, at 14:00 UTC to fix two vulnerabilities, each rated 9.2 under CVSS v4.0. Users are urged to prepare for rapid upgrades, and the team says the release could come sooner if details go public or exploitation is observed. As of now, PHP has not published the affected versions, fixed version numbers, or technical details of the flaws. CERT-EU has identified the issues as CVE-2026-109618 and CVE-2026-109619, and cites possible unauthenticated remote code execution, though it has not published technical analysis. Security agencies advise identifying all PHP deployments, prioritizing internet-facing systems, and confirming update procedures until official fixed versions are released.

0
ProgrammingDEV Community ·

Developer Builds Local, Browser-Based Design Tool Canvas Anvil for Faster, Private Work

A developer grew frustrated with cloud-based design tools that required slow server round-trips and sent client files to third parties. To address this, they built Canvas Anvil, a focused workspace for designers and media creators that runs locally in the browser. The tool uses on-device AI to deliver instant feedback on design principles such as contrast, spacing, and visual hierarchy, rather than generic aesthetic suggestions. The developer says the local-first design keeps sensitive work on the user's machine and lets the tool keep working without an internet connection. The article presents the project as a deliberately narrow tool aimed at making design decisions faster rather than attempting to do everything.

0
ProgrammingHacker News ·

OpenAI Models to Become Available on Google Cloud

OpenAI has announced that its models will be offered through Google Cloud. The announcement was shared on OpenAI's website and drew attention on Hacker News, where it received 28 points. The source material provided is limited to the headline and link, so details such as timing, pricing, and specific models are not available. Readers are encouraged to consult OpenAI's announcement directly for the full scope of the partnership.

0
ProgrammingHacker News ·

Sumi.css, a New CSS Framework, Is Shared on Hacker News

A developer has introduced Sumi.css, a CSS framework, through a Show HN post on Hacker News. The project is hosted on GitHub under the vladocar account. The post has received 8 points and 5 comments from the community so far. The available information does not detail the framework's specific features or design goals. Readers can review the source code and the Hacker News discussion for further details.

0
ProgrammingHacker News ·

LayerFS Launches as a Filesystem Designed for AI Coding Agents

LayerFS has been introduced as a filesystem built specifically for AI coding agents. The announcement was shared on Hacker News, where it gathered 10 points and 6 comments. The source material provides only the project's link and discussion metadata, so details about its architecture, features, and availability are not available. Further information would need to be sourced from the project's website at layerfs.ai.

0
ProgrammingHacker News ·

Dutch National Cyber Security Center Website Goes Offline, Reportedly Tied to PHP Stack

The website of the Dutch National Cyber Security Center (NCSC) is currently unavailable, according to a post shared on Hacker News. The post, which gained 129 points and 38 comments, attributes the outage to the site's use of PHP. The article text provided is limited to a link and discussion metadata, so the specific technical cause has not been confirmed by the NCSC or independent reporting. The NCSC's news page is the referenced source for updates on the situation. Readers should treat the PHP explanation as a claim from the community discussion rather than an official statement.

0
ProgrammingHacker News ·

Gulf Oil Exports Reportedly Exceed Prewar Levels Despite Iranian Attacks

A report indicates that oil exports from the Persian Gulf region have risen above their levels before the recent conflict, even though Iran has carried out attacks in the area. The Maritime Executive article on which the story is based is the primary source for these findings. The source material available here offers only the headline and link metadata, so specific figures, shipping volumes, and details of the attacks cannot be confirmed. The story was shared on Hacker News, where it drew modest attention with 15 points and 6 comments. Readers seeking the full data and context should consult the original report directly.

0
ProgrammingHacker News ·

Qwen3-Coder Produces Less Secure Code When Prompted With a US Persona

A Hacker News post highlights research from Hirundo suggesting that the Qwen3-Coder model generates code with weaker security when it is instructed to adopt a US-based persona. The finding was shared on Hacker News, where it gathered 66 points and 22 comments. The linked blog post from Hirundo reportedly details the vulnerabilities observed in the model's outputs. The article text provided is limited to metadata, so the specific methodology and full results are not included here.

0
ProgrammingDEV Community ·

Children and adults adjust their behavior as settings and activities change

A child who has been speaking loudly in a park is asked by an adult to lower their voice upon entering a library, where others are reading. The explanation focuses on what people nearby are doing rather than a simple command for silence. The article notes that the child's enjoyment is not denied, only its expression changes in relation to others sharing the space. It argues that appropriate behavior depends on the current activity, rules, and who may authorize exceptions, not just the place name. The piece frames this as a social capability that adults also use when entering new workplaces or communities.

0
ProgrammingDEV Community ·

Testing how a React build responds to a single label edit

The guide proposes comparing a build run with no source changes against one run after a small React label edit, so the two results answer different questions. It recommends using a visible change, such as a button label, so the output can be checked directly rather than relying on timing alone. Developers are told to add a distinct build script without replacing existing ones, record package versions, and run the build twice with retained local state. The edited output is then served locally and the button text is inspected to confirm the change appeared. The article also cautions that cached responses or task-runner restores can make a stale label appear, so the served directory and browser caching should be checked before drawing conclusions.

← NewerPage 188 of 2980Older →