Building Hengefinder: A Programmer's Guide to Calculating Urban Solar Alignments
By
evakhoury
Pulled from the oven just right. Trustworthy, fact-dense, deeply satisfying.
Summary
A programmer at the Recurse Center describes building "Hengefinder," a tool to calculate when the sun aligns perfectly with city streets (like Manhattanhenge). The article explains the astronomical calculations behind solar alignments, including the sun's declination, the equation of time, and how to compute sunset azimuth angles. The author then generalizes the concept beyond Manhattan, creating a tool that works for any city grid orientation, and shares the technical implementation details including code snippets and mathematical formulas.
Key quotes
· 3 pulledNext week in Manhattan, the sunset will align perfectly with the east-west streets of the city grid. It's beautiful, and people know it.
I wanted to know how astronomers figure out when Manhattanhenge happens. And if I could figure that out, why limit it to Manhattan?
This was one of my first projects at the Recurse Center: Hengefinder.
You might also wanna read
Astra: Open-Source Observatory Control Software for Robotic Telescopes
Astra is an open-source observatory control software designed for automating and managing robotic observatories. It integrates with ASCOM Al
Why small pull request policies can backfire on software quality
The article critiques a common software engineering policy that limits pull requests (PRs) to small sizes (e.g., 500 lines, few files). Whil
apenwarr.ca·1h agoHow Anthropic contains Claude's expanding access across its products
Anthropic describes how it has evolved its approach to granting Claude, its AI assistant, increasingly broad access to internal systems over
Testing Cursor's Jira integration: How ticket quality affects AI agent performance
Cursor launched a Jira integration that lets developers assign tickets directly to an AI agent, eliminating context switching. The author te
bit.ly·2h agoNetflix engineer's open-source tool cuts AI token usage by up to 90%
Netflix senior engineer Tejas Chopra created software called "Project Headroom" that prunes redundant tokens from AI agent instructions befo
Anthropic Releases Free Security Plugin for Claude Code Terminal to Detect Vulnerabilities
Anthropic has released a free security-guidance plugin for its Claude Code terminal tool that autonomously reviews code edits, model outputs
cybersecuritynews.com·3h ago