dnd 5e – How do I create a Roll20 macro that once prompts the user for a storage type and then outputs the save as if you had clicked on the drawing page?

You can't make it a macro, but it works if you save it as an ability

&{template:simple} ?{Save|STR, {{rname=Strength}} {{mod=@{selected|strength_save_bonus}}} {{r1=((1d20+@{selected|strength_save_bonus}))}} {{r2=((1d20+@{selected|strength_save_bonus}))}}{{always=1}}|DEX, {{rname=Dexterity}} {{mod=@{selected|dexterity_save_bonus}}} {{r1=((1d20+@{selected|dexterity_save_bonus}))}} {{r2=((1d20+@{selected|dexterity_save_bonus}))}} {{always=1}}|CON, {{rname=Constitution}} {{mod=@{selected|constitution_save_bonus}}} {{r1=((1d20+@{selected|constitution_save_bonus}))}} {{r2=((1d20+@{selected|constitution_save_bonus}))}}{{always=1}}|INT, {{rname=Intelligence}} {{mod=@{selected|intelligence_save_bonus}}} {{r1=((1d20+@{selected|intelligence_save_bonus}))}} {{r2=((1d20+@{selected|intelligence_save_bonus}))}} {{always=1}}|WIS, {{rname=Wisdom}} {{mod=@{selected|wisdom_save_bonus}}} {{r1=((1d20+@{selected|wisdom_save_bonus}))}} {{r2=((1d20+@{selected|wisdom_save_bonus}))}} {{always=1}}|CHA, {{rname=Charisma}} {{mod=@{selected|charisma_save_bonus}}} {{r1=((1d20+@{selected|charisma_save_bonus}))}} {{r2=((1d20+@{selected|charisma_save_bonus}))}}{{always=1}}} {{charname=@{selected|token_name}}}

It prompts the user for the storage type and then stores the selected type for the currently selected token. It is then output in the same format as if you had rolled it straight out of the drawing sheet.

It must be saved as an ability (on a character sheet under the "Attributes & Abilities" tab) and not as a global macro. If you save it as a global macro, every instance of } (the HTML replacement for } ) is converted back and breaks the whole thing.

git – Pushing to Github prompts for a wrong URL password

I'm not sure what that did exactly, but now if I try to push, I get

Password for 'https://--global@github.com': 

facing the problem of url now --global in what is wrong i had executed this command:

git config --global credential.helper store
git config credential.username "dsmith"
git config credential.user --global "dsmith"
git config credential.email --global "dsmith@gmail.com"

So that must have screwed everything up. I want to fix that, I don't know how. I have no idea how this messed up the github url and put it in – global. I thought the above commands were legitimate.

At least I set it up again so that I use the oskeychain as a helper

git config --global credential.helper osxkeychain

automount – The unmounted volume prompts for a password when logging on

I edited that /etc/fstab not automount when logging in any of the volumes on my partition (the one that is not booting).
The volume is encrypted. So, while logging in, even though it will not be automounted, BUT still asks for the password. If I enter the password, it will not be included as expected.
The problem is how not to ask for the password when logging in?
Thanks!

Java – Ask my code user for input. It prompts for input until the user enters the input that represents the sum of all previous inputs

"My code prompts the user for input and prompts for input until the user types in the input that represents the sum of all previous inputs, and then prints out the number of trials."

   import java.util.Scanner;
               public class untilNext{
               public static void main(String() args){
                 Scanner kbd = new Scanner(System.in);

                 int num;
                 int sum = 0;
                 int count = 0;


                 do{
                    System.out.print("Enter an int: ");
                    num = kbd.nextInt();
                    count = count + num + 1;
                    sum = sum + num;
                 }
                 while(sum >= num);
                 System.out.println("This is your total sum: " + sum);
                 System.out.print("It took you " + count + " tries ");    
               }
               }<

hyper v – How to Respond to HyperV Stop VM Prompts in the PowerShell Script?

I'm writing a script to maintain multiple virtual machines running under Hyper-V

As part of that, I have to stop the VMs, but if there are any problems with stopping, I want to abort the process

The problem is that Stop VM prompts you for confirmation when problems occur, and there seems to be no way to automate a response (there are no switches for the cmdlet to control what happens in these cases.) -Confirm: $ false doesn not work, -force is the opposite of what I want, and sending STDIN to the cmdlet will give an error because it is expected that a virtual machine will be pipelined

For example, if the integration services are not available, you are prompted to force a shutdown to which I want to respond with No:


> stop-vm testvm01

    Confirm

    Hyper-V can't shut down virtual machine "testvm01" because the Shutdown integration service is unavailable. You can turn off the virtual machine by selecting (Y)es, but this is similar to pulling the power on a physical machine. To avoid potential data loss, select

    (N)o, then pause or save the virtual machine. Do you want to turn off the virtual machine?

    (Y) Yes  (A) Yes to All  (N) No  (L) No to All  (S) Suspend  (?) Help (default is "Y"): 

How can I write an answer to this request?

.htaccess – Index.php prompts you to download rather than run it

I am experiencing a problem in which I am trying to load my Drupal site, but instead of switching to the main page you will be prompted to download / save the file.

I know that my PHP is active and I can not figure out what this is about. I looked around while googling, but none of the suggestions helped. Has anyone else encountered this problem? I use Drupal 7.

Apache configuration file:


    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig conf/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    AddEncoding x-compress .Z
    AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php3

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml

.htaccess file:

#
# Apache/PHP/Drupal settings:
#

# Protect files and directories from prying eyes.

  Order allow,deny


# Don't show directory listings for URLs which map to a directory.
Options -Indexes

# Follow symbolic links in this directory.
Options +FollowSymLinks

# Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php index.html index.htm

# Override PHP settings that cannot be changed at runtime. See
# sites/default/default.settings.php and drupal_environment_initialize() in
# includes/bootstrap.inc for settings that can be changed at runtime.

# PHP 5, Apache 1 and 2.

  php_flag magic_quotes_gpc                 off
  php_flag magic_quotes_sybase              off
  php_flag register_globals                 off
  php_flag session.auto_start               off
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_flag mbstring.encoding_translation    off


# Requires mod_expires to be enabled.

  # Enable expirations.
  ExpiresActive On

  # Cache all files for 2 weeks after access (A).
  ExpiresDefault A1209600

  
    # Do not allow PHP scripts to be cached unless they explicitly send cache
    # headers themselves. Otherwise all scripts would have to overwrite the
    # headers set by mod_expires if they want another caching behavior. This may
    # fail if an error occurs early in the bootstrap process, and it may cause
    # problems if a non-Drupal PHP file is installed in a subdirectory.
    ExpiresActive Off
  


# Various rewrite rules.

  RewriteEngine on

  # Set "protossl" to "s" if we were accessed via https://.  This is used later
  # if you enable "www." stripping or enforcement, in order to ensure that
  # you don't bounce between http and https.
  RewriteRule ^ - (E=protossl)
  RewriteCond %{HTTPS} on
  RewriteRule ^ - (E=protossl:s)

  # Make sure Authorization HTTP header is available to PHP
  # even when running as CGI or FastCGI.
  RewriteRule ^ - (E=HTTP_AUTHORIZATION:%{HTTP:Authorization})

  # Block access to "hidden" directories whose names begin with a period. This
  # includes directories used by version control systems such as Subversion or
  # Git to store control files. Files whose names begin with a period, as well
  # as the control files used by CVS, are protected by the FilesMatch directive
  # above.
  #
  # NOTE: This only works when mod_rewrite is loaded. Without mod_rewrite, it is
  # not possible to block access to entire directories from .htaccess, because
  #  is not allowed here.
  #
  # If you do not have mod_rewrite installed, you should remove these
  # directories from your webroot or otherwise protect them from being
  # downloaded.
  RewriteRule "(^|/)." - (F)

  # If your site can be accessed both with and without the 'www.' prefix, you
  # can use one of the following settings to redirect users to your preferred
  # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
  #
  # To redirect all users to access the site WITH the 'www.' prefix,
  # (http://example.com/... will be redirected to http://www.example.com/...)
  # uncomment the following:
  # RewriteCond %{HTTP_HOST} .
  # RewriteCond %{HTTP_HOST} !^www. (NC)
  # RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} (L,R=301)
  #
  # To redirect all users to access the site WITHOUT the 'www.' prefix,
  # (http://www.example.com/... will be redirected to http://example.com/...)
  # uncomment the following:
  # RewriteCond %{HTTP_HOST} ^www.(.+)$ (NC)
  # RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} (L,R=301)

  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
   RewriteBase /drupal
  #
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
   RewriteBase /

  # Pass all requests not referring directly to files in the filesystem to
  # index.php. Clean URLs are handled in drupal_environment_initialize().
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule ^ index.php (L)

  # Rules to correctly serve gzip compressed CSS and JS files.
  # Requires both mod_rewrite and mod_headers to be enabled.
  
    # Serve gzip compressed CSS files if they exist and the client accepts gzip.
    RewriteCond %{HTTP:Accept-encoding} gzip
    RewriteCond %{REQUEST_FILENAME}.gz -s
    RewriteRule ^(.*).css $1.css.gz (QSA)

    # Serve gzip compressed JS files if they exist and the client accepts gzip.
    RewriteCond %{HTTP:Accept-encoding} gzip
    RewriteCond %{REQUEST_FILENAME}.gz -s
    RewriteRule ^(.*).js $1.js.gz (QSA)

    # Serve correct content types, and prevent mod_deflate double gzip.
    RewriteRule .css.gz$ - (T=text/css,E=no-gzip:1)
    RewriteRule .js.gz$ - (T=text/javascript,E=no-gzip:1)

    
      # Serve correct encoding type.
      Header set Content-Encoding gzip
      # Force proxies to cache gzipped & non-gzipped css/js files separately.
      Header append Vary Accept-Encoding
    
  


# Add headers to all responses.

  # Disable content sniffing, since it's an attack vector.
  Header always set X-Content-Type-Options nosniff

Samsung Galaxy S – uses dual messenger, disabled work profile on Pixel Launcher, now Android prompts me to activate the secure folder, and I can not access it

So I started using Dual Messenger in the advanced settings for Facebook, and I'm using the Pixel Launcher. This appeared when I turned on the dual messenger

work profile

The toggle-for-work profile was initially enabled. I turned off the switch to see what would happen, and then the dual messenger apps were greyed out and I could not turn the switch back on, it just went back to the home screen and did nothing. I was able to re-enable the Dual Messenger Facebook via Settings> Advanced Features, but Secure Folder (called Gallery by myself) relayed this message when I tried to open it.

secure folder

It happens when I try to access it through settings, the icon, the quick tile or even safe mode. If you tap Power, I'll return to the Samsung Experience home screen. If you tap it a few times, the error "Android system stopped" appears.

Is there a way to fix this or at least to store data in t?

Windows – Why are some UAC prompts not instantly navigable on the keyboard by default?

Is there any way to force all Windows 10 UAC prompts to be navigable instantly from the keyboard by default?

When User Account Control in Windows 10 prompts you to call, I prefer to use the keyboard for selection. It's faster, no mouse required. Half the time, that works fine. In other cases, however, I have to manually click on the UAC prompt as if the UAC prompt did not focus on it by default. At this point, I only use the mouse to select an option, since I have to use it anyway.

Is there a reason why some UAC prompts do not pull keyboard / mouse focus by default? And more importantly, can anything be done to force all UAC prompts to be instantly keyboard navigable by default?