Techy Things

Convert clipping area to win32 rect 0

Convert clipping area to win32 rect

RECT rect; rect.left = tmp.X; rect.right = tmp.X + tmp.W; rect.bottom = tmp.Y; rect.top = tmp.Y + tmp.H; ExtTextOutW(bitmapHDC, x, y, ETO_CLIPPED, &rect, wcString, wcLength, NULL);  

Ajax with PHP 0

Ajax with PHP

Building a basic REST API. For example to be used by third-party service. I used that code to interface with the builtin REST API caller from Mobile framework Sencha Touch. Allowing other domains (cross-domain)...

Error refreshing the OAuth2 token { “error” : “invalid_grant” } 0

Error refreshing the OAuth2 token { “error” : “invalid_grant” }

There is two possibles cause for this error that I know: (i) You have the wrong email in your $client_id = ’1303030303-wrongiddontuse7t9kdtai3l44jofnejr04.apps.googleusercontent.com’; //Client ID $service_account_name = ’1303030303-wrongiddontuse7t9kdtai3l44jofnejr04@developer.gserviceaccount.com’; //Email Address $key_file_location = ‘API Project-1234.p12′; //key.p12...