lifebeyondfife

Joined 15 years ago

Karma
536
Submissions
177
Member since
Nov 24
Life Beyond Fife is my tech blog where I write random articles and applications about all sorts of software development subjects. http://lifebeyondfife.com/
View on Hacker News

Recent submissions

Comment · 2 months ago
I have shared this dream for 15 years https://lifebeyondfife.com/follies/real-games/

Finally got round to vibe coding something in Godot this summer for my city. It used GeoTIFFs on AWS S3 at s3://copernicus-dem-30m/ for elevation. No authentication required, each tile covers 1°×1°. Combined this with OpenStreetMap. Was enough to get started and satisfy curiosity. As you state, lots more that could be done.

Comment · 5 months ago
Comment · 2 years ago
You're correct, the horizontal and vertical flips for the square, are already accounted for in the wreath product. And I miscounted the products themselves. Up to 1.2*10^12 symmetries.
Comment · 2 years ago
The exponential number of symmetries present in sudoku problems, means that once you've found one valid instance, you've actually found up to 9! * 3!^4 * 8 which are exactly the same.

The numbers themselves are all interchangeable, so you have 9! combinations: 362,880.

Columns 1-to-3 are all interchangeable, as are 4-to-6, and 7-to-9. On top of this, these blocks of columns (1-to-3, 4-to-6, 7-to-9) are all interchangeable. Read about wreath products in group theory to know more. Each of the above symmetries are 3!, combined to yield 3! * 3! = 36 combinations. As well as the columns though, the rows have the same property, so those can be combined too: 36 * 36 = 1,296.

Finally, there are the symmetries of a square. Combining all rotations and flips yields a further 8.

In total, sudoku has 3,762,339,840 symmetries. Owing to the starting state of the sudoku puzzle being incomplete, the orbit of the set of points (more group theory) will be smaller than 3 billion, but it provides an efficient method of recreating many more puzzles with the same property. In this case, human complexity.

Comment · 2 years ago
Comment · 3 years ago
Wait, But Why? has a fascinating series of posts on this. https://waitbutwhy.com/2013/10/why-procrastinators-procrasti...

I bought the 52x90 poster where each square is a week of your life. I've filled in significant events. It helps me ensure I keep working on making those events coming.

Comment · 3 years ago
Comment · 3 years ago
When I worked at Skyscanner, we'd volunteer at events where high school kids would be shown tech stuff. We'd setup Raspberry Pis with Minecraft on them and show them some basics of running Python scripts to alter the world (with the conclusion being programmatically create loads of dynamite blocks and explode them). Then at the end of the session, give every kid their own Raspberry Pi.

It was interesting reaching the occasional child who assumed this kind of thing wasn't for them.

Comment · 3 years ago
Only US citizens are permitted to deploy code to the US government production servers, or look at the telemetry from those servers.

(I'm a UK citizen, based in the UK, and I have local colleagues supporting products that are deployed to both commercial .com, and US .gov domains. They deploy to .com themselves, but another team based in the US deploy to .gov)

Comment · 4 years ago
The pandemic is ongoing, but despite its lasting impacts e.g. hybrid or remote is the norm, many things are back to normal. One thousand days out, how are things for you?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton