MakinGIANTS
The findings and tips records of an Android-iOS-TheWholeShabang group
URI to base64 in phonegap and sencha touch(resize image into base64)
Code: <pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> var PREVIEW_WIDTH = 120; var PREVIEW_HEIGHT = 120; var img = new Image(); img.src = imageUri; img.onload = function () { var...
Invert Colors in Ubuntu (gnome) with keyboard Shortcut
To invert the entire screen you can use the program xcalib: xcalib -invert -alter From the xcalib man page xcalib loads 'vcgt'-tag of ICC profiles to the X-server using the XVidMode Extension in order to calibrate your display. That means it does not depend on compiz being used. You can install it...
Disable CSRF token django for a view
You can disable for a view adding the ‘csrf_exempt ’ decorator:<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> from django.views.decorators.csrf import csrf_exempt @csrf_exempt def my_view(request): return HttpResponse('Hello world') </pre>Source
Install (and unlock oem by adb) Official Image Android on nexus
1. Download the android sdk2. Install google usb drivers for the device3. Copy the contents of your Official Image inside of the platform-tools folder of the android sdk (sdk/platform-tools)4. Run: <pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding:...
Enable CORS (Cross-Origin Resource Sharing) for development
create a short cut for the chrome browser in you desktopadd the following flag to the short cut --disable-web-security In case it is not working for you, please kill all chrome instances and start it with this flag. BTW here is my shortcut's target /usr/bin/chromium-browser %U --disable-web-security