Running a command with access to “System” granted

I am updating applications installed via Homebrew from command line. iTerm2 requires access to “System” to be correctly updated, which ends up in a process that is not fully automated and requires clicking on the OK button.

Is it possible to avoid it, i.e. grant access to that kind of changes for a given command?

enter image description here

App crashes without showing permission dialog, but works fine when permission is granted manually

I am relatively new to Android development. I have an app which requires the certain permissions. These are added in the AndroidManifest.xml:

    <uses-permission android:name="android.permission.INTERNET" />     <uses-permission android:name="android.permission.CAMERA" />     <uses-permission android:name="android.permission.STORAGE"/>     <uses-permission android:name="android.permission.PHONE"/>     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />     <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />     <uses-permission android:name="android.permission.CALL_PHONE" />     <uses-permission android:name="android.permission.READ_PHONE_STATE" />     <uses-permission android:name="android.permission.VIBRATE" />     <uses-permission android:name="android.permission.READ_LOGS" />     <uses-permission android:name="android.permission.READ_CALL_LOG" />     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />     <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />     <uses-permission android:name="android.permission.WAKE_LOCK" /> 

The app crashes on initial start (both on emulated device and installed apk) but after granting the CAMERA, PHONE and STORAGE permissions manually from the settings of phone, it works fine.

In the MainActivity, I have also added permission check like these (in onCreate):

 // CAMERA permission  if (ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {     // Permission is not granted     ActivityCompat.requestPermissions(this,        new String[]{Manifest.permission.CAMERA},            1);         } 

But the app keeps crashing on start without showing the permission dialog. What am I doing wrong here?

Schengen visa granted for 2 months, duration of visit 45 days. Am I overstaying?

I’m already in the Schengen zone as I type this. My entry stamp has the date 26th December 2018 on it and my return flight out of the schengen zone is on the 9th February.
My Visa validity is 21st December, 2018 to 19th February 2019 but the ‘duration of stay’ field says 45. My question is, given my travel dates, am I overstaying? According to this link I’m right on the dot with my dates (exact 45 days) but it does NOT include the 26th itself. How long am I allowed to stay granted I enter Schengen zone on the 26th December?

Thank you!

EDIT: I have a multiple entry visa.

As a Sorcerer, can you trade out the spells granted by the Drow High Magic feat?

Drow High Magic states:

You learn more of the magic typical of dark elves. You learn the Detect Magic spell and can cast it at will, without expending a spell slot. You also learn Levitate and Dispel Magic, each of which you can cast once without expending a spell slot. You regain the ability to cast those two spells in this way when you finish a long rest. Charisma is your spellcasting ability for all three.

Since you learn the spell, you can also cast it using spell slots, like Sorcerer spells (see this tweet and this one).

There’s also this question, but still, I can see it going either way.

Is it possible to know whether or not visa is granted by japanese embassy?

i’ve applied for japanese work permit with certificate of eligibility, now the application process is completed and i’m waiting to receive the application via post. before that i want to know whether or not the visa is grant. since it’s a weekend today embassy is closed. please kindly suggest me an alternative way to know whether or not my visa is granted. i want to check it by Passport Number + Nationality.

Have I been granted the visa or not?

A couple of days ago, I received the following email from Home office(UK) for my spouse visa. I have deposited my IHS fee and it’s been a week since I submitted my passport. Is there any chance where they can still refuse my visa? Additionally, how long would it take for them to return my passport?

The decision to refuse your visa application has been overturned and our office will now proceed to the next stage of your application. To complete this process we require you to undertake the following steps:

  1. Immigration Health Surcharge (IHS) payment needed On 6 April 2015, the UK Government introduced a Health Surcharge payment requirement for non-EEA nationals who apply to come to the UK to work, study or join family for a period of more than 6 months. Shortly, you will receive a further email providing a link for your IHS payment. If you do not receive an email within 7 working days of this email, please contact with your name, GWF reference and request the IHS payment email be sent. Want to find out more?

To speak to someone about this, please visit: To find out more about IHS: To find out about refunds:

  1. Once you have received the IHS email and made your IHS payment, please take your passport along with a copy of this e mail to the visa application centre where you initially made your application.
  2. If you require a TB certificate for travel, please ensure you have this with your carry-on luggage, in order for you to present to the Immigration authorities on arrival.

To prevent any further delays with processing your application, once you have made this IHS payment and submitted your passport please send an e-mail to containing your name, GWF reference, the amount that you have paid for IHS and when you submitted your passport.

Kind regards,

UK Decision Making Centre

Are permissions granted by IMPORTRAGE bi-directional or one-way in Google Sheets?

If I want to import “Sheet A” from one workbook into “Sheet B” in another workbook by using =IMPORTRANGE() inside of Sheet B – when I grant it access to Sheet A is that permissions only 1 way? Meaning that If I add additional data to Sheet B will the users who have access to sheet A be able to see it? I assume not but wanted to verify.