SShortSingh.

Programming

0
ProgrammingDEV Community ·

Docker PHP builds failing on servers? A seccomp and xz sandbox conflict explained

Developers running Docker-based PHP builds on certain Linux servers may encounter a reproducible failure caused by a conflict between recent versions of xz, older distribution kernels, and Docker's default seccomp profile. Modern xz attempts to activate a Landlock sandbox before processing data, but when the server kernel lacks support, Docker's seccomp filter returns EACCES instead of ENOSYS, causing xz to abort rather than proceed. The fix involves creating a custom seccomp profile that explicitly blocks Landlock-related syscalls and restarting the Docker daemon with that profile applied. Additionally, Docker BuildKit must be disabled using DOCKER_BUILDKIT=0, since the modern build engine bypasses the custom seccomp profile entirely. The author notes this is a temporary workaround rather than a true fix, and the custom profile should be removed once the server kernel is upgraded to one that supports Landlock natively.

0
ProgrammingDEV Community ·

Developer loses 48 hours to cross-device tempfile bug that broke atomic JSON writes

A software developer spent 48 hours debugging a silent failure in an atomic file-write helper used to safely update JSON config files. The bug stemmed from Python's os.replace, which is only atomic when the source and destination files reside on the same filesystem device. On a local machine, the default tempfile directory and the target path shared the same device, masking the issue entirely during testing. When deployed to a remote workspace with a different filesystem layout, the cross-device rename caused the operation to fail. The fix was straightforward: passing dir=path.parent to tempfile.mkstemp ensures the temporary file is created on the same device as the destination, keeping the rename truly atomic.

0
ProgrammingDEV Community ·

Oracle AI Database 26ai Introduces Deep Data Security for Row and Column Access Control

Oracle AI Database 26ai has introduced a feature called Oracle Deep Data Security (Deep Sec), a database-enforced authorization framework that controls access at the row, column, and cell level. Unlike traditional application-layer security, Deep Sec enforces access policies directly within the database, regardless of whether the request originates from a human user, a reporting tool, or an AI agent. The system introduces three new building blocks: local end users (lightweight identities that own no schema), data roles (fine-grained privilege carriers that can sync with external identity providers like Microsoft Entra ID), and data grants (SQL-native policy objects defining read/write permissions). Local end users are created with a new CREATE END USER statement and tracked via a dedicated DBA_END_USERS dictionary view, but they cannot connect independently and must be authorized through data roles and grants. The feature is designed to complement existing Oracle tools like Label Security and Data Masking while offering a cleaner, more scalable approach to least-privilege access enforcement.

0
ProgrammingDEV Community ·

How to Responsibly Integrate AI Into US Building Permit Workflows

A structured pipeline for using AI in US building permit processes treats AI outputs as unverified drafts that require human classification, documentation, and licensed professional review before submission. The approach involves logging metadata for every AI-generated output, including the model used, prompt, data sources, and a named review owner, to maintain clear provenance. AI is considered appropriate for early-stage tasks such as massing studies, facade options, and site summaries, while code-critical elements like egress, structural loads, and energy compliance remain under licensed human oversight. Before a licensed architect or engineer signs off, any unverified AI-generated geometry must be removed or replaced with checked, authoritative information so building officials can distinguish controlled documents from exploratory references. The framework acknowledges that ongoing federal AI governance guidance and unresolved US Copyright Office questions around AI outputs make thorough documentation more reliable than asserting ownership over generated content.

0
ProgrammingDEV Community ·

How Hardware Timestamping and PTP Eliminate Jitter in Distributed Systems

Software-based timestamps in distributed systems introduce variable delays ranging from microseconds to milliseconds due to interrupt handling, scheduler preemption, and NIC queues, making them unreliable for precision-critical applications. Hardware timestamping, by contrast, captures the exact moment a packet hits the network interface card, pushing timing uncertainty down to the nanosecond range. Systems such as high-frequency trading platforms, distributed databases, and PTP-synchronized networks depend on this accuracy to maintain correct event ordering and regulatory auditability. The IEEE 1588 Precision Time Protocol is specifically designed to leverage hardware timestamps and a hierarchical clock model to compensate for network-path delays. Tools like linuxptp, along with kernel interfaces such as ethtool and SIOCSHWTSTAMP, allow engineers to enable and validate hardware timestamping on commodity Linux systems.

0
ProgrammingDEV Community ·

Developer builds CLI tool to sequence Spotify playlists, learns hard lessons about API stability

A developer created 'setlisted', an open-source command-line tool that sequences Spotify playlists into structured sets with a warm-up, build, peak, and cooldown arc using only track metadata. The tool also generates discovery mixes without repetition and builds hour-targeted event sets to an exact duration. During development, the project hit a silent API breakage when Spotify renamed a field mid-response, leaving the old field populated with a boolean instead of its original object, causing logic errors that bypassed standard null and existence checks. This led the developer to adopt a principle of validating field types, not just presence, and building core functionality on durable metadata rather than rich fields that are more likely to be restricted. The project doubles as a case study in defensive API integration, with the author recommending diffing raw API responses when output goes subtly wrong without any errors thrown.

0
ProgrammingDEV Community ·

DEV Community Guide Shows How to Fine-Tune LLMs Using Unsloth Studio

A new tutorial series on DEV Community walks developers through fine-tuning large language models using Unsloth Studio, covering the full workflow from data preparation to model training. The guide distinguishes fine-tuning from RAG, explaining that fine-tuning embeds new knowledge directly into a model's weights rather than supplying it as context at query time. The author demonstrates the process using a manually created PDF of 2026 FIFA World Cup facts, which was cleaned and converted into a ChatML-format conversational dataset. Dataset generation was handled either via Claude or ChatGPT prompts, or through Unsloth Studio's built-in Data Recipes feature. For training, the author selected the Llama-3.1-8B-Instruct model, citing its 8.6GB GPU memory requirement as a practical fit for Apple Silicon hardware with 32GB unified memory.

0
ProgrammingHacker News ·

OpenArch Brings PyTorch Implementations of Modern LLM Architectures to GitHub

A developer named anuj0456 has published OpenArch, an open-source repository on GitHub offering PyTorch-based implementations of modern large language model architectures. The project aims to provide accessible, ready-to-use code for researchers and practitioners working with LLMs. OpenArch was shared on Hacker News, where it attracted a small but engaged audience. The repository serves as a practical reference for those looking to study or build upon contemporary LLM design patterns using PyTorch.

0
ProgrammingDEV Community ·

Scribe Jam Challenges Developers to Build Niche Markdown and Docs Tools in 7 Days

Scribe Jam is a seven-day online hackathon running from September 14 to 21, 2026, focused on building single-page web apps that improve documentation, markdown formatting, or technical writing for a specific niche audience. Participants must use HTML, CSS, and JavaScript, with at least 50% of the build assisted by AI tools, and must submit a live demo link along with their AI prompts. The challenge was announced by the creator of Scribe, a markdown formatting tool built in 48 hours, following the conclusion of a previous event called the KODA Code Jam. The winning entry will receive exclusive features within the KODA AI platform, a featured interview on a Dev.to blog, and a permanent champion badge, while all participants earn recognition in a Hall of Champions. Submissions are accepted at scribejam.netlify.app, with the winner to be announced on September 23, 2026.

0
ProgrammingDEV Community ·

Power BI Data Modelling: Fact Tables, Relationships, and Schema Explained

Power BI enables organizations to convert raw data into actionable insights, but accurate analysis depends on a well-structured data model. Data modelling involves organizing data from multiple sources into related tables using keys, rather than storing everything in a single flat table. Three common structural approaches exist: flat tables, star schemas, and snowflake schemas, each with distinct trade-offs in complexity, performance, and scalability. A star schema, which connects a central fact table to surrounding dimension tables, is generally recommended for Power BI due to its efficiency and ease of DAX calculation. Understanding relationships, filter propagation, and Power Query joins is essential for building reliable and maintainable Power BI reports.

0
ProgrammingDEV Community ·

MindSpark lets you store private mind maps as JSON files in your own git repo

MindSpark is a browser-based mind mapping tool that saves diagrams as private JSON files directly in a user-controlled git repository. The app supports GitHub, GitLab, and Gitea/Forgejo, automatically committing every change to a repository named mindspark-maps. This approach gives users full version history and complete ownership of their data. MindSpark runs entirely client-side with no intermediary server, and supports both OAuth and access tokens for secure authentication. It also features keyboard-driven editing for a streamlined user experience.

0
ProgrammingDEV Community ·

Why HTTP 200 Does Not Confirm a Job Application Was Actually Received

A developer building an automated job-application tool found that common signals used to mark an application as 'sent' — including button clicks, HTTP 200 responses, self-written database entries, and thank-you page detection — are all unreliable indicators of successful submission. Applicant tracking systems frequently return a 200 status code even for validation errors or failed submissions, making the response code an insufficient receipt. The developer argues that only employer-side confirmation, such as an ATS confirmation email or a verified post-submit screen, should be accepted as proof of delivery. To address this, the tool was redesigned to withhold a 'submitted' status unless such verifiable evidence is obtained, and to explicitly flag what confirmation is still pending when it cannot be. The product, AI Applyd, supports major ATS platforms and uses a remote MCP server to integrate with AI tools like Claude and ChatGPT, handling account creation, captcha solving, and resume tailoring automatically.

0
ProgrammingDEV Community ·

Web Speech API brings voice dictation and text-to-speech to PWAs with caveats

A developer has added voice input and audio playback to FieldKit, a field-notes progressive web app, using the browser-native Web Speech API. The SpeechSynthesis feature, which reads notes aloud, is broadly supported across major browsers and works offline, while SpeechRecognition is well-supported only in Chromium-based browsers and Safari, with Firefox offering no practical support. Implementing text-to-speech requires just a few lines of code, while speech-to-text needs vendor-prefix normalisation and careful configuration to stream words in real time as the user speaks. A key privacy concern is that Chrome sends audio to a cloud service for recognition processing, whereas Safari can perform on-device recognition after the user grants permission and installs the relevant language pack. The developer emphasises that apps handling potentially sensitive content must clearly disclose this cloud-processing behaviour to users rather than burying it in fine print.

0
ProgrammingHacker News ·

Real Browser Viewports Show 1080p Screens Render Only 920px in Height

A new report published on screensize.net reveals that screens with a 1080p resolution actually display only around 920 pixels of vertical space in real browser viewports. The study is based on data collected from 1,000 actual browser viewport measurements, highlighting the gap between nominal screen resolution and usable browser height. The difference is largely attributed to browser chrome elements such as toolbars, address bars, and system UI components that consume vertical space. The findings have practical implications for web designers and developers who often assume full 1080px height availability when designing layouts. The report was shared on Hacker News as a community submission aimed at raising awareness about real-world viewport dimensions.

0
ProgrammingDEV Community ·

How to Spend Your First Week on a New Project Without Breaking Anything

A software architect advises that new technical leads should spend their entire first week observing and documenting a project rather than making any fixes. The recommended approach, called 'Track 0,' involves one-on-one interviews with every team member — developers, DevOps, support, and product — to surface problems people already know but have never formally recorded. Simultaneously, a service inventory map should be built by inspecting what is actually running on servers, which often differs significantly from official architecture diagrams. Critical risks are then separated into real 'landmines' versus unfounded 'legends' through targeted investigation. The week concludes with a plain-language, one-page document listing the top five highest-impact risks, reviewed by the team before being shared with management.

0
ProgrammingDEV Community ·

How a CLAUDE.md File Saves Developers From Repeating AI Instructions

Developers using Anthropic's Claude AI often waste time re-entering the same project instructions at the start of every new session. A CLAUDE.md file, placed in a project's root directory and committed to Git, lets Claude read persistent instructions automatically across sessions. The file works best when instructions are specific and concrete — detailing folder structures, exact CLI commands, and domain rules like data formats — rather than vague directives such as 'write clean code' or 'follow best practices.' For larger projects, sub-directory CLAUDE.md files can provide tailored guidance to different parts of the codebase, such as separate frontend and backend sections. The approach helps entire teams share consistent AI guidance without manual repetition, improving both accuracy and development speed.

0
ProgrammingDEV Community ·

CS Student Documents Shift from Python to Go and Rust Systems Programming

A first-year Software Engineering student has announced a transition from Python web development to systems programming, focusing on Go and Rust. The student has set up a development environment using Windows 10 with WSL 2 (Debian), VS Code, and Docker, and has already compiled a first Go program. Over the next year, the student plans to master low-level concepts such as memory management, pointers, and asynchronous I/O, while building multiple projects. The longer-term goal is to develop security agents for the Linux kernel using Rust by the third year of study. The student intends to document the entire learning journey on Dev.to and share code publicly on GitHub.

0
ProgrammingDEV Community ·

Developer Uses Coding Metaphors to Reflect on Revisiting a 12-Year-Old Heartbreak

A software developer recently discovered an old personal archive on a hard drive containing remnants of a 12-year-old relationship. Using programming terminology, they described the experience as 'recompiling legacy code' that caused unexpected emotional disruption. The developer documented the reflective process as a technical investigation, complete with metaphors like firewall rules and background processes to represent unresolved feelings. The full write-up, framed as a code repository post-mortem, has been made publicly available on GitHub and a personal website in French.

0
ProgrammingDEV Community ·

H2 vs PostgreSQL schema mismatch caused silent production enum failure

A batch job in production began failing with an invalid enum error after a migration that had passed cleanly in an H2-based test environment. The root cause was a divergence between test and production migration scripts: H2 stored the status field as a plain VARCHAR, while PostgreSQL enforced it as a native three-value enum — ACTIVE, INACTIVE, and ARCHIVED. A legacy status value, LEGACY_HIDDEN, was silently accepted by H2 but correctly rejected by PostgreSQL's stricter type enforcement. The team switched to Testcontainers running the real PostgreSQL migration script, and the same failure surfaced immediately in a local test run. The incident highlights that in-memory test databases like H2 can miss entire classes of schema-level errors when production uses database-native constraints or enum types.

0
ProgrammingDEV Community ·

Developer builds CoffeeQL, a Rust-based universal query language for four databases

A developer has released CoffeeQL v0.3.1, an open-source query language written in Rust that provides a single unified syntax for querying PostgreSQL, MongoDB, MySQL, and Redis. The project was motivated by the cognitive overhead of constantly switching between four different query syntaxes in a typical backend engineering workflow. CoffeeQL uses a custom readable syntax — such as users[].where(id = 1).give(name, email) — and internally translates queries to the appropriate database format. The library is available on both npm via WebAssembly and PyPI via Python bindings, with 265 tests currently passing. The upcoming v0.4.0 release is planned to add actual query execution support, with full CRUD operations across all supported databases.

← NewerPage 1350 of 3311Older →