This is a note I wrote to myself about how to add Django REST Framework to an existing project. It’s in PDF format, for reading. I didn’t have the time to create a real tutorial that builds up the API, or produce a really useful API. The intention is just to outline what parts get defined and how they work together.
The best tool for replacing strings is Perl. It can even do it for multiple files. You don’t need to know much Perl to use the “Perl PIE” technique, that turns a potentially long script into a one-liner. I used it to start an SEO task on this site.
Testing the central function of Hamurabi, the game logic that carries out the plan for next year, and adds some random catastrophes, was coded up. This had me a bit confused.
A .desktop file is how Linux launches applications.
You can create a .desktop file to launch documents alongside your
your other applications, to launch your favorite documents, just as
if they were applications, shaving seconds off your workday.
Continue reading How to Create a .desktop File for a Document in Linux
Adding some statistical tools to enable testing of a game turn that uses random values.