Quick And Dirty Shared Custom Maps
A bunch of my friends (about 15 people in all) have gotten together to participate in a Western Marches style campaign using the World of Dungeons system. (More thoughts on that below). Anyway, I thought that it would be really handy to have a shared map that everyone could annotate, since we are all collectively exploring the map and sharing information.
After a wrong turn with the Google Maps API (hit quota limit within five minutes of playing around, oddly, and splitting the tiles was surprisingly painful) I discovered the Leaflet.
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.