How to shrink code – 65k method limit in dex

It looks like Google has finally implementing a workaround/fix for surpassing the 65K method limit of dex files. About the 65K Reference Limit Android application (APK) files contain executable bytecode files in the form of Dalvik Executable (DEX) files, which contain the compiled code used to run your app. The Dalvik Executable specification limits the … Read more

Python: download files from google drive using url

If by “drive’s url” you mean the shareable link of a file on Google Drive, then the following might help: import requests def download_file_from_google_drive(id, destination): URL = “https://docs.google.com/uc?export=download” session = requests.Session() response = session.get(URL, params = { ‘id’ : id }, stream = True) token = get_confirm_token(response) if token: params = { ‘id’ : id, … Read more

How do I authorise an app (web or installed) without user intervention?

NB June 2022. It seems that Google have updated their verification requirements which adds additional steps (or negates the approach – depending on your point of view). See recent comments for more detail This can be done with the Oauth2 Playground at https://developers.google.com/oauthplayground Steps:- Create the Google Account (eg. my.drive.app@gmail.com) – Or skip this step … Read more

How do I display images from Google Drive on a website?

Example of Embedding a Google Drive Image Original URL: https://drive.google.com/file/d/0B6wwyazyzml-OGQ3VUo0Z2thdmc/view You need to copy the ID from the original URL (the characters between the /d/ and /view), and use it in this URL: https://drive.google.com/uc?export=view&id=0B6wwyazyzml-OGQ3VUo0Z2thdmc The image below is embedded using this method: Photo by Paula Borowska <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta http-equiv=”X-UA-Compatible” … Read more

How to number the headings in a Google Docs/Drive document?

If you want something more easy, there is a Google Add-On called “Table of Contents” that will allow you to number your headings. To install this add-on: Click on the Add-Ons > Get Add-Ons. Click on the “Table of Contents” icon or search for this addon to install it Then your Table of Contents should … Read more

wget/curl large file from google drive

June 2022 You can use gdown. Consider also visiting that page for full instructions; this is just a summary and the source repo may have more up-to-date instructions. Instructions Install it with the following command: pip install gdown After that, you can download any file from Google Drive by running one of these commands: gdown … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)