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

Katamari Knockoff - Working Title

Weird Stretchy Problem on Instantiate > SetParent with Prefabs https://answers.unity.com/questions/868484/why-is-instantiated-objects-scale-changing.html Super weird stretchy problem when objects were made using Instantiate/SetParent. It turns out this is a change in unity 5.5 where a bool is needed with SetParent. problem 1 instance.transform.SetParent(transform); no problem 1 instance.transform.SetParent(transform, false); Moving things to the player once they’ve stuck Random.onUnitSphere doesn’t do what I want This makes things crazy. Physics....

December 6, 2018

Unnamed Sim Game Dev  [draft]

Mapping controller buttons (0 = “joystick button 0”, etc) 0 : a 1 : b 2 : x 3 : y 4 : L1 5 : R1 6 : - 7 : + 8 : L3 9 : R3 3rd axis (Joysticks and Scrollwheel) : LT/RT (L2/R2) 4th : right stick horizontal 5th : right stick vertical 6th : dpad horizontal 7th : dpad vertical https://docs.unity3d.com/ScriptReference/Input.GetAxis.html “To add a new input, add 1 to the number in the Size field....

November 12, 2018

Math in 3D Space and Other Travails

A capsule with silly eyes What happens when you ignore rotation because your game object is perfectly symmetrical and then you add eyes to it? This! From 2D to 3D I’ve had a few challenges converting my village sim from 2D to 3D. The main difference has been switching from translation-based movement to physics-based movement. To give an object physical properties, you attach a Rigidbody. This has settings for drag and gravity forces....

November 5, 2018

Unit Testing  [draft]

Why do we need test coverage reporting? The point of coverage is as an aid for what should already be happening: risky logic is considered and proven from an engineering standpoint, before/as it’s being written. When you force yourself to consider how you would test a piece of logic, you automatically try to make it simpler, so your tests aren’t forced to become gargantuan monstrosities just to cover all of the preconditions....

April 3, 2018

Roll Your Own Name Generator with QPython3 on an Android Device

Welcome to the first of a multi-part series of tutorials on how to develop, source control, and run scripts to control your Android device, using only mobile apps for development. Dev On the Go I recently went on a road trip, and wanted to experiment with a mobile-only workflow. The main components I needed were an interpreter, an IDE, and source control. The suite of apps I discovered and used are as follows: QPython3 (a python IDE and script runner) SGit (source control) LabCoat (GitLab repository viewer) Dropbox (ad-hoc, easy-access file storage) Dropsync (one- or two-way sync between directories on your mobile device) Epsilon Notes (a markdown editor and renderer) In this tutorial, I will cover my experience with QPython3....

October 3, 2017

Ready, Set, Flail

My Origin Story I started my career as a student. I’m still a student. I didn’t know what I wanted. OK, I knew I wanted to just play games, eat pizza, and drink mountain dew all day. But none of that was going to get me anywhere except diabetic. I knew I wanted a stable profession, and of the handful of mentors I had at the time, half of them were pushing me to technology, one specifically to engineering....

September 7, 2017

Hosting Multiple Wordpress Sites on a Single Server With NGINX

Table of Contents Required Packages Installing WordPress Setting Up the Database Setting Up NGINX (Your Traffic Controller) Nginx basic file architecture Install and Test NGINX Modifying the Default Site Settings Mapping Your WordPress Install to Your NGINX Server Troubleshooting: PHP Processing Errors Troubleshooting: Possible Missing Packages Setting Up DNS (Domain Name Server) NGINX Server Matching and You: Server Lists and the Catchall Server Configuring the catchall Virtual Host Updating my-first-site....

July 31, 2017

Migrating WordPress from Bluehost to DigitalOcean

We’ve migrated to DigitalOcean! (Various reasons, more on that later.) The process was straightforward, for the most part. The few snags were relatively easy to resolve (the main one was figuring out how to change the default DigitalOcean Wordpress install to use the migrated tables). Create a DigitalOcean Droplet Use »>THIS LINK««/span> to sign up for $10 free in DigitalOcean services (that’s 2 free months at the lowest tier, with no committment!...

January 27, 2017