Loading A Remote Emacs Configuration
You’re working on a coworker’s / friend’s computer, and they have only an uninitialized Emacs… none of the keys are right.
Or, worse, they have set up their Emacs and customized it, but they didn’t have the good sense to copy your configuration, so everything is strange and insane, with bindings only Cthulhu could love, with a theme that looks like some horrible fruit salad that was made by someone who decided that the number of colors determined the worth of a dish.
Debugging UWSGI and Flask
Quick notes on UWSGI debugging, because I keep forgetting.
Debugging FLASK_DEBUG does not work for UWSGI apps. You’ll need the following code in your Flask app, courtesy StackOverflow:
from werkzeug.debug import DebuggedApplication app.wsgi_app = DebuggedApplication(app.wsgi_app, True) To activate it, it’s probably easiest to pass an environment variable. For example, in your UWSGI configuration:
env=APP_DEBUG=1 and then in the app:
if 'APP_DEBUG' in os.environ: app.debug = True from werkzeug.
Nanowrimo 2017 is upon us!
Yes, it’s a little bit on insanity to do it this year – given the attendant stress and everything else that I have going on – but, nonetheless, sometimes an idea comes into your imagination and you must follow that idea to the ends of the earth (or, at least, the ends of the month).
The gory details will be elided for the relief of the poor reader, but it’s going to be a romantic comedy, which is decidedly not my forte; I mean, I can do the comedy parts okay, with a bit of poking and tuning, but the romance part seems decidedly tricker.