Evolving a Farmer: Building an Agent to Play Kaggriculture
Kaggriculture is a different kind of Kaggle competition. There is no dataset to download and no CSV to submit. You submit an agent: a Python function that, each turn, receives the state of a two-player farming sim and returns actions like buy seeds, plant, water, harvest, raise animals, trade on the market. Over a 30-day season of 720 turns, whoever has the most money in the bank wins. Your agent is scored by playing games against everyone else’s.
Labels Are the Ceiling: Building a Knee MRI Model on 100GB You Never Download
The RSNA Knee Abnormality Detection competition is a different animal from the tabular problems I usually work. The task sounds simple: predict 12 binary findings per knee MRI study (ACL tear, meniscus, effusion, fracture, and so on), scored by macro-averaged ROC AUC. The reality is harder:
- 4,407 studies, 24,371 series, roughly 820,000 DICOM slices, 100GB+.
- You do not download any of it. The data is mounted inside a Kaggle notebook and you train on Kaggle’s GPU.
- Only 58 of the 4,407 studies are expert-labeled. The rest come with a free-text radiology report, in a dozen languages.
So before writing a model, I wanted to answer one question: can I even reach the data, read it, and get a valid submission accepted? If that plumbing does not work, a fancy model is worthless.
It's Time for Pi
Pi is the number you get when you take any circle, measure the distance around it, and divide by the distance across it. Any circle. A dinner plate, the moon, a ring you draw in the sand. Always the same number. About 3.14159, and then it keeps going forever without repeating.
That last part is the part that gets people. It never ends. It never settles into a pattern. You can compute a trillion digits and you are no closer to the “end” than when you started, because there is no end. Pi is irrational (you can’t write it as a fraction) and transcendental (it isn’t the root of any nice polynomial), which are two math-flavored ways of saying it’s a weird one.
Research First: Beating Kaggle's Titanic with History Books
Most Kaggle Titanic tutorials open with
import pandas as pdand immediately start running.describe(). I did something different: I read about the actual disaster first.The result was better feature engineering, more informed imputation strategies, and a clearer picture of what was noise versus signal. The model barely mattered. The features did all the work.
Why Research Before Code
The Titanic dataset has 891 rows and 11 features. You could get ~77% accuracy by predicting “all women survive, all men die.” Getting past 77% requires understanding why people survived beyond gender. That understanding comes from the history, not the data.
Building a 24/7 Go Bot with KataGo on KGS
I learned how to play go circa 2001. Since then I have studied it on and off for the past 25 years. Although I have slowly gotten better during that time, computers have gotten way better in that time. When I started playing go, there was the KGS go server where you can find opponents around the world to play. And there were bots! Even way back then. I always wondered what was involved with getting a bot to play go so I wanted to create a Go bot that plays games on KGS and plays better than I will ever be able to play.
256 Universes in One Byte: Exploring 1D Cellular Automata
A row of cells. Each cell is either on or off. In each generation, each cell looks at itself and its two neighbors, then follows a rule to decide what it becomes next. That’s it. That’s the whole system.
From this absurdly simple setup, you get chaos, fractals, traffic jams, and even a system capable of computing anything a laptop can compute. All from one byte of information.
How It Works
The neighborhood is three cells wide: left, center, right. Since each cell can be 0 or 1, there are 2^3 = 8 possible patterns. A rule assigns an output (0 or 1) to each pattern. Eight binary choices = one byte = a number from 0 to 255.
Try My Physics Simulations: Live in Your Browser
I built a physics simulation library that models springs, pendulums, epidemics, gravity, and more. The simulations run locally with matplotlib, but you can also explore them interactively through Jupyter notebooks, no install required.
Click any button below to launch a live notebook in your browser via Binder. It takes about 30-60 seconds to spin up the first time (it’s building a fresh Python environment from my GitHub repo), then you’re in a full Jupyter session where you can run cells, tweak parameters, and see the results.
I Built an Open Source Contribution Toolkit in 57 Kiro Credits, Then Submitted 7 PRs in One Session
I’m a beginner programmer. I know what loops do, I can read Python, and I’ve done basic git pushes and pulls. But I’d never submitted a pull request. I didn’t even know what a PR was a few hours ago.
Now I have 7 pull requests across 3 different repos, including a bug fix in a famous 3,259-star chess engine, and a fully tested toolkit that helps anyone find and contribute to open source projects.
Building a 6502 Simulator in Python (Part 2)
From a 12-instruction teaching CPU to a full MOS 6502 emulator, inspired by Ben Eater’s breadboard projects.
Why the 6502?
The MOS 6502 is the processor that defined home computing in the late 1970s and early 1980s. It ran the Apple II, the Commodore 64, the Atari 2600, and the Nintendo Entertainment System. It powered the first affordable personal computers and launched an industry.
What makes it perfect for a simulator project:
Building a CPU Simulator in College (Part 1)
The original MM1 processor simulator: a custom instruction set architecture built in Python as a student.
The Assignment
In 2004, week 5 of the Modeling Motion program I was in, a phyics modeling program at the Evergreen State College, introduced something unexpected: we weren’t simulating springs or epidemics anymore. We were building a computer from scratch, in software.
The assignment was to implement a simple processor simulator. Not a real CPU architecture like x86 or ARM, but a custom one designed for teaching: the MM1 (Modeling Motion 1). It had 8 registers, 64 words of memory, a 12-bit instruction format, and just enough instructions to write meaningful programs. The professor had prevsiously worked at intel and helped us through a lot of the architecture, but in the end we created something that works, but more importantly got to understand much better what goes on inside a computer.