Rectangle Area Comparison Algorithm

Pico 8 Conveyor Belt Project I’ve been working on a game for Pico-8. It’s a sort of demake of Factorio, combined with, apparently, Zelda elements. (These things seems to evolve themselves with my own interest/motivation/limitations.) In the spring of 2021, I started the project just wanting to learn more about Pico-8, and it evolved into a reasonably-sized project. I’ve recently revisited it, and am making enhancements to publish it on itch....

January 11, 2022

Syncing Public GitLab Projects to GitHub

set up your access and tools You’ll need python/pip/virtualenv git 1.7.3 or newer (for the hub tool) a GitHub ssh key configured on your GitHub account a GitLab ssh key configured on your GitLab account a GitLab API token the hub tool clone the projects usage 1 2 3 4 5 6 export GL_TOKEN='yourtokenhere' export GL_URL='https://gitlab.com' virtualenv -p python3 venv . venv/bin/activate pip install python-gitlab python main.py main....

December 30, 2019

Message Queue MUD Dockerization Update

I made progress on that MUD I’ve been working on. Try it out (yea, naming things is hard): 1 2 3 git clone -b v0.1.0_share https://gitlab.com/modle13/queue-mud.git cd queue-mud docker-compose up Over the weekend, I got it working nearly back to the state it was before dockerizing. There’s a bit less logic (the creatures decision point just returns a string), and the Angular frontend is still disabled. I had had a publisher and consumer working back in early January, but now it has the whole chain: command > validate > attack if command is attack and there’s a target > response queue....

February 7, 2019

Migrating Eatables from Python2.7->3.7 and Django1.8->2.1.5  [draft]

export db data, re-apply migrations, import db data 1 2 3 4 pipenv run python manage.py dumpdata > fixtures/db.json pipenv run python manage.py flush pipenv run python manage.py migrate pipenv run python manage.py loaddata fixtures/db.json Remove entries from db.json: 1 2 3 "model":"contenttypes.contenttype", "model":"sessions.session", "model":"auth.permission", migrating 2.7 to 3.7.1 Need to purge heroku cache, and to do that, need to install the heroku-repo plugin; without it, will see › Warning: repo:purge_cache is not a heroku command....

January 21, 2019

Choose Your Own Adventure

Re: Black Mirror Bandersnatch: If this is a test, I’m pretty sure I failed. Watched 12/30/18. I settled in for a 50ish minute chill out. (I don’t do much passive TV watching. Always building something or reading something or feeling like I should be. But I was tired. I expected to watch and go to bed.) Turns out this is an interactive episode, which is incredibly engaging. I tried as many of the forks as I could, and took almost 2 hours....

January 1, 2019

Containerizing the Flask, Angular, RabbitMQ MUD  [draft]

Here it is running on the bare metal linux mint install. We’re going to run it in minikube. First, containerizing the angulars Got the angular app up and running with this Dockerfile https://mherman.org/blog/dockerizing-an-angular-app/ With the frontend running in a container, and the flask backend and rabbitMQ running on bare metal, everything is working as expected. Then, containerizing the flasks This was pretty slick, but didn’t work with my code:...

December 15, 2018

Hosting Your Django App on Heroku

Heroku is a fantastic service that lets you get your app on the web quickly, for free (with the base model). If you followed my previous post Django, A Framework for Python Web Apps, then you already have most of the tools you need to publish your work on the web for demoing and testing purposes. The final step is hosting your project on Heroku. Publishing an update to Heroku is as easy as a git remote push (in fact, that’s all there is to it!...

February 21, 2016

More Nuts and Bolts of a Django App

In Django Hello World! we verified the Python installation, got Django installed, and output ‘Hello World!’ from the Python shell. Next up: running a Django web page on a local server! Primary Django Web Page Components urls.py views.py models.py template.html settings.py URLs and Views At a minimum, we need to configure these two elements. The urls.py file contains the information Django needs to determine which view to process, while the views....

February 14, 2016

Django, A Framework for Python Web Apps

This tutorial is intended as a quick setup guide, designed to get you started as quickly as possible. I’ve found the best way to learn is to jump in and get your hands dirty. Then when you read the documentation, there’s context behind it, and it sticks a little better. While I’ll include basic explanations in this post, you should definitely read through the Django tutorials if you’re interested in learning more about the individual commands and design elements....

February 13, 2016