Archive

Posts Tagged ‘javascript’

Decrypted JSON data not being decoded properly

March 6th, 2009

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 , , ,

Google Maps API: Encoding a polyline from a GDirection object

January 9th, 2009

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 , , , ,

GSIV and the Python Imaging Library dying on large image

August 10th, 2007

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 , , ,