Summary: The decrypted string was was null-padded. These null bytes are not handled by the json_decode function. It is easily solved by running $string = rtrim($string, "\x00"); before decoding.
Read more…
Aidan Findlater Impersonal encryption, javascript, php, web development
Goal: To save the encoded string corresponding to the GPolyline of a GDirections object, so that I can easily load the same path in the future without hammering GDirections.
Read more…
Aidan Findlater Impersonal gdirections, google maps, gpolyline, javascript, web development
Summary: The GSIV tilemaker.py script dies when attempting to create a large (16384×16384) blank PIL Image object, simply saying “Killed“. The only solution I’ve found is to resize the image to below 8192×8192 before running the script.
Read more…
Aidan Findlater Impersonal ajax, camping, javascript, python