Category: gae

  • Cleaning up Google AppEngine Mapreduce Jobs

    Do you use the Google MapReduce library on AppEngine? And do you have a lot of completed tasks which clutter your dashboard? Use the JS below by pasting it into your developer console to clean them up! (use it at your own risk, no warranty is provided :-)) schedule = function() { window.setTimeout(function() { var…

  • Converting datetime to UTC in python

    So you need to convert a python datetime object which has a timezone set (“aware” in the Python nomenclature) to an UTC one with no timezone set (“naive”), for example because NDB on GAE can’t store anything else. The solution will look something like this: date = date.astimezone(tz.tzutc()).replace(tzinfo=None) For searcheability: the exception thrown by NDB…

  • Clearing your Google App Engine datastore

    Warning! This is a method to erase the data from your Google App Engine datastore. There is no way to recover your data after you go trough with this! Only use this if you’re absolutely certain! If you have a GAE account used for experimentation, you might like to clean it up sometimes (erase the…