Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Computing US Architectural Print Scales, Sheet-Fit Matrices, and Ruler Conversions in Pure TypeScript

A floor plan exported to PDF looks clean on a laptop screen until someone sends it to a FedEx plotter or home laser printer and puts a triangular architectural scale ruler against the paper. If the drawing was exported without subtracting border margins and the title block height — or if the printer driver silently applied "Fit to Page" ( 94% scaling) — every 1/4" = 1'-0" wall on the page reads…

The article explains how to compute US architectural print scales, sheet-fit matrices, and ruler conversions using TypeScript. It begins by highlighting a common issue with exported floor plans from PDFs onto printers, which often results in distorted measurements due to border margins and title blocks. To address this, a TypeScript module in PlanCaliber was developed to solve sheet-fit matrices for various standard architectural scales and convert real-world measurements to ruler fractions.

The module calculates the net printable viewport for each sheet size by subtracting margins and title block heights, and then finds the largest fitting scale using a single deterministic scan.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

NFS2ROOT: Twelve Years, One TCP Connection, Root

NFS2ROOT: Twelve Years, One TCP Connection, Root On November 25, researchers at OpenSec published a writeup with a video I have now watched twice.

  • Critical vulnerability in Linux NFS server discovered in 2014
  • Attackers gain root access with one TCP connection
  • Unpatched Linux kernels with NFSv4.1 or 4.2 enabled are at risk

Booking system for a small clinic in Arabic and English: what to check first

Disclosure: I make WaClinic at Murabyte, which is mentioned below. Small clinics still book by phone and WhatsApp. The reception writes names in a notebook, two patients get the same slot, and anyone…

  • System must accommodate Arabic and English languages
  • Prevent double bookings at database level
  • Admin panel for managing today's bookings

How I Stopped Building Workflows and Started Building Systems

I kept shipping workflows that worked in the demo and broke on Monday. That is the short version of the last few months. I built a lot of different things — for clients, for businesses we work with…

  • Author builds systems, not just workflows, for real-life scenarios
  • Five-layered architecture: Input Capture, Flow Orchestration, Intelligence, Output, Route Guardrails
  • Common production issues: messy data, dropped calls, missed webhooks, compliance failures

The token factory never sleeps

SPONSORED FEATURE: Agentic AI turns inference into a round-the-clock production job. Here's what it takes to keep the tokens flowing in the datacenter you already have.

More from Friday 27 November →