Coloring the queen’s graph
Suppose we have an n × n chessboard. The case n = 8 is of course most common, but we consider all positive integer values of n. The graph of a chess piece has an edge between two squares if and only if the piece can legally move between the
Read moreUnderstanding Signals in Django
Learn about signals in Django: what they are, how to use them, define custom signals, use built-in signals, along with real-world use cases. Continue reading Understanding Signals in Django on SitePoint.
Read moreRegex to match SWIFT-BIC codes
A SWIFT-BIC number identifies a bank, not a particular bank account. The BIC part stands for Bank Identifier Code. I had to look up the structure of SWIFT-BIC codes recently, and here it is: Four letters to identify the bank Two letters to identify the country Two letters or digits
Read moreChris’ Corner: More Like Celebrating Style Skills
It’s January and we’re seeing a little round of CSS wishlists make the rounds. Tyler Sticka is mostly hoping for better support on stuff that already is starting to cook, like View Transitions, anchor positioning, balanced text, and scroll-driven animations. But he’s got his own new wishes and has done
Read moreBad takes on chaos theory
I just finished reading The Three Body Problem. At the end of the book is a preview of Cixin Liu’s book Supernova Era. A bit of dialog in that preview stood out to me because it is touches on themes I’ve written about before. “I’ve heard about that. When a
Read more