I’m writing this pretty late, after a night of coding.
The LA IMC software port went kind of okay, but also kind of screwed up. There are a bunch of bugs popping up, but that was expected.
The first bug was simple: some of the code was still using the old classes, and some of the code was using the new classes. I had to search through the code to find out why this was happening, mainly by looking at the code.
Continue reading Refactoring as Part of Porting PHP4 to PHP7
I had to drop out for a month to deal with taxes and keep porting this site. I’m catching up, and this article is a meandering mess that goes nowhere, so, if you value your time, don’t even read it.
I was porting the Hamurabi code to run with React, built the UI, and got a little confused about where to keep game state. Many coders seem to have this problem, according to the tutorials.
Continue reading Application State Study (Hamurabi Port)
It was, surprisingly, not that bad. (So far. It’s not done yet.) Here’s a rundown of how it was done. Ask questions in the comments, because this will be brief.
Continue reading Porting from PHP4 Era Code to PHP7
This article describes how to configure Apache to run a Slim Framework application using PHP-FPM, as a FastCGI application.
Continue reading Configuring Apache with FastCGI PHP-FPM for a Slim Application
I’ve been creating a zillion RewriteRules to perform 301 redirects, and the code has gotten ridiculous. I can’t even read it anymore.
I created a small tool that removes duplicate rules, reducing the number of matches that mod_rewrite needs to try. It also resolves chains of 301 redirects into a single redirect.
Check it out: Redirect Reducer.