Reliably getting favicons in Chrome extensions, chrome://favicon?

I’ve seen this problem as well and it’s really obnoxious. From what I can tell, Chrome populates the chrome://favicon/ cache after you visit a URL (omitting the #hash part of the URL if any). It appears to usually populate this cache sometime after a page is completely loaded. If you try to access chrome://favicon/http://yoururl.com before … Read more

Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord in Android Studio

Due to the Marshmallow update Requesting Permissions at Run Time the read contact permission not work. The sample code is import android.Manifest; import android.content.ContentResolver; import android.content.pm.PackageManager; import android.database.Cursor; import android.os.Build; import android.provider.ContactsContract; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; import java.util.ArrayList; import java.util.List; public class MainActivity extends AppCompatActivity { // … Read more

iOS 10 and Permissions localization description

I faced the same issue and I was able to resolve it because I noticed that the InfoPlist.strings wasn’t member of any target. So setting the Target Membership on the file (which puts it into the Copy Bundle Resources build phase) fixed it. And for anyone googling here: https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/AboutInformationPropertyListFiles.html Scroll down to “Localizing Property List … Read more

How to remove specific permission when build Android app with gradle?

Add attribute tools:node with a value of remove to your manifest: <manifest … xmlns:tools=”http://schemas.android.com/tools”> … <uses-permission android:name=”android.permission.ACCESS_COARSE_LOCATION” tools:node=”remove” /> … </manifest> See https://developer.android.com/studio/build/manage-manifests#node_markers Don’t forget to add the tools namespace to the root element of your manifest.

Dockerfile replicate the host user UID and GID to the image

You can pass it as a build arg. Your Dockerfile can be static: FROM ubuntu:xenial-20170214 ARG UNAME=testuser ARG UID=1000 ARG GID=1000 RUN groupadd -g $GID -o $UNAME RUN useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME USER $UNAME CMD /bin/bash Then you’d pass the options on your build command: docker build –build-arg UID=$(id … Read more

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