Is this the correct way to resolve a missed Ice Knife?

Ice Knife:

Make a ranged spell attack against the target. On a hit, the target takes 1d10 piercing damage. Hit or miss, the shard then explodes. The target and each creature within 5 feet of the point where the ice exploded must succeed on a Dexterity saving throw or take 2d6 cold damage.

I read this as: where ever the knife lands the original target must roll a saving throw, plus any other creatures caught in the blast radus of 5ft.

Going forward with that I ruled if Ice Knife missed it must land and explode within 5ft of the original target.

Is this correct?

I’ve also homeruled -with a 5ft grid-: There are total of 4 squares that the ice knife can land: directly behind the target, two adjacent squares (left&right) of that and same square as the target. And roll 1d4 to decide which one it is every time the spell is missed.


Even with my own answer below I’m not entirely sure which is the right way the Ice Knife is resolved. My hesitation now is mostly about the 2×2 or 3×3 aoe part.

unable to resolve product type ‘com.apple.product-type.system-extension’ for platform macosx (in target SimpleFirewallExtension))

I am trying to build and run FirewallExtension sample app from https://developer.apple.com/documentation/networkextension/filtering_network_traffic on catalina beta version, but getting error

unable to resolve product type ‘com.apple.product-type.system-extension’ for platform macosx MacOS Deployment Target is set to 10.15, but range of supported deployment target versions for this platform is from 10.6 to 10.14.99

Tried with Xcode 11. Does catalina needs some other setup to build network Extension? or anything is missed here?

Snap store is having issues for Spotify. How to resolve?

I am having an issue opening Spotify. Whenever, I type

spotify  

in the terminal I get this message

snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks 

I then type in the terminal, the following commands,

sudo apt purge snapd snap-confine && sudo apt install -y snapd 

Then I reinstall Spotify using snap install spotify This resolves the issue, but only temporarily because when I restart my device, the same issue occurs, and I have to do this process every time I restart. Please suggest a solution.

UBUNTU 18.04wget: unable to resolve host address ‘*my.proxy’

I’m new in the Linux world especially in UBUNTU OS and networking.

I’m working on a server with UBUNTU 18.04, and having trouble with everything that includes networking. I’ve set in wired network setting the correct proxy I’m using on a 16.04 UBUNTU version(all the setup is the same as in the 18.04 version).

I’ve tried several times to define the proxy from the beginning and most of the guides are not much of a help for me.

Please advise.

php socket flow error 10054. How to resolve it?

I’m using a Bitvise SSH to connect with the server of digital ocean it was working good till yesterday but accidentally I fire the command “sudo chmod -R 0777 /” after that I am not able to connect using SSH. when I am trying to connect get the error as below.

Reason:FlowSocketReader: Error receiving bytes. Windows error 10054: An existing connection was forcibly closed by the remote host.

How can I solve this?

Angular6 .spect.ts Failed: Can’t resolve all parameters for ElementRef:

Estoy haciendo el test básico para mi componente, sólo necesito que pase los test de los imports, es decir, lo básico:

En el componente tengo:

import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';   @Component({   selector: 'pruebaTest ',   templateUrl: 'pruebaTest.component.html' }) export class pruebaTest implements OnInit {   @ViewChild('fai2') fa2input: ElementRef;   @ViewChild('fai3') fa3input: ElementRef;   @ViewChild('fai4') fa4input: ElementRef;   @ViewChild('fbi2') fb2input: ElementRef;   @ViewChild('fbi4') fb4input: ElementRef; 

En el html tengo

  <input #fai1 #fa1="ngModel" [(ngModel)]="contractA" type="text" name="A1" class="form-custom--input" maxlength="4" minlength="4"                 (keyup)="nextInput(fa1)" required>    <input #fai2 #fa2="ngModel" [(ngModel)]="contractB" type="text" name="A2" class="form-custom--input" maxlength="4" minlength="4"                 (keyup)="nextInput(fa2)" required>    <input #fai3 #fa3="ngModel" [(ngModel)]="contractC" type="text" name="A3" class="form-custom--input" maxlength="3" minlength="3"                (keyup)="nextInput(fa3)" required>     <input #fai4 #fa4="ngModel" [(ngModel)]="contractD" type="text" name="A4" class="form-custom--input form-custom--input--last" maxlength="7"                 minlength="7" required> 

Y en el test he hecho:

import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { pruebaTestComponent} from './pruebaTest.component'; import { ElementRef, ViewChild } from '@angular/core';   describe('pruebaTestComponent', () => {     let component: pruebaTestComponent;     let fixture: ComponentFixture<pruebaTestComponent>;      beforeEach(async(() => {         TestBed.configureTestingModule({             declarations: [pruebaTestComponent],             imports: [             ],             providers: [                  ViewChild,                 ElementRef             ]         })             .compileComponents();     }));      beforeEach(() => {         fixture = TestBed.createComponent(pruebaTestComponent);         component = fixture.componentInstance;         fixture.detectChanges();     });      it('should create', () => {         expect(component).toBeTruthy();     }); }); 

PhantomJS 2.1.1 (Windows 8 0.0.0): Executed 2 of 2 (1 FAILED) (0.472 secs / 0.631 secs) TOTAL: 1 FAILED, 1 SUCCESS

1) should create      pruebaTestComponent      Failed: Can't resolve all parameters for ElementRef: (?). _reportError _getDependenciesMetadata _getTypeMetadata _getInjectableTypeMetadata getProviderMetadata forEach@[native code] _getProvidersMetadata getNgModuleMetadata _loadModules _compileModuleAndAllComponents compileModuleAndAllComponentsAsync compileModuleAndAllComponentsAsync compileModuleAndAllComponentsAsync compileComponents compileComponents invoke onInvoke onInvoke invoke runGuarded runInTestZone invoke onInvoke invoke run runInTestZone execute execute invokeTask runTask drainMicroTaskQueue invokeTask invokeTask globalZoneAwareCaptureCallback      Error: Can't resolve all parameters for ElementRef: (?). (line 11364) _reportError _getDependenciesMetadata _getTypeMetadata _getInjectableTypeMetadata getProviderMetadata forEach@[native code] _getProvidersMetadata getNgModuleMetadata _loadModules _compileModuleAndAllComponents compileModuleAndAllComponentsSync compileModuleAndAllComponentsSync compileModuleAndAllComponentsSync _initIfNeeded createComponent createComponent invoke onInvoke invoke run runInTestZone      Expected undefined to be truthy. invoke onInvoke invoke run runInTestZone   error Command failed with exit code 1. 

He visto otros post y también he probado hacer esto ->

 class MockElementRef implements ElementRef {         nativeElement = {};       }     providers: [         ElementRef, { useValue: new MockElementRef() } 

Pero sigo obteniendo el mismo error.

unable to resolve dependency for google play intel x86 atom system image

hi friends, In android studio 3.4.1 on ubuntu 16.04 LTS after installation i go on android sdk and install android oreo 8.1 but i click on google play intel x86 atom system image and google api intel x86 atom system image so pop-up dialog come and shows unable to resolve dependencies for google play intel x86 atom system image and this same error on google api system image can anyone help me how to solve this error?

How to resolve fatal error ‘Cannot redeclare commerce_kickstart_preprocess_html’?

I have installed an ecommerce website with Commerce Kickstart, not in demo mode. Everything was OK and I began to add products and then my problem started; when I click on ‘products category’ I receive this error message:

Fatal error: Cannot redeclare commerce_kickstart_preprocess_html() (previously declared in /homepages/44/d576739206/htdocs/profiles/commerce_kickstart/themes/commerce_kickstart_theme/template.php:41) in /homepages/44/d576739206/htdocs/profiles/commerce_kickstart/themes/commerce_kickstart_theme/template.php on line 41

This is what that line 41 (as in the error message) looks like.

function commerce_kickstart_preprocess_html(&$  variables) {   drupal_add_css('http://fonts.googleapis.com/css?family=Lobster+Two:400,700', array('type' => 'external')); }     

What could the problem be? How can I solve it?

Update (as in one of the comments): I tried to change as you said it and I have this message:

Fatal error: Cannot redeclare commerce_kickstart_theme_preprocess_html() (previously declared in /homepages/..../htdocs/profiles/commerce_kickstart/themes/commerce_kickstart_the‌​me/template.php:9) in /homepages/..../htdocs/profiles/commerce_kickstart/themes/commerce_kickstart_the‌​me/template.php on line 41 code

Update 2 : So if I use another theme, the problem is solved. And there are 2 (minor) differences in the new error message : Now it is in that line “9” (no longer “41”) :

function commerce_kickstart_theme_preprocess_html(&$ variables) { // Add conditional stylesheets for IE drupal_add_css(path_to_theme() . '/css/commerce-kickstart-theme-ie-lte-8.css', array('group' => CSS_THEME, 'weight' => 23, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'preprocess' => FALSE)); drupal_add_css(path_to_theme() . '/css/commerce-kickstart-theme-ie-lte-7.css', array('group' => CSS_THEME, 'weight' => 24, 'browsers' => array('IE' => 'lte IE 7', '!IE' => FALSE), 'preprocess' => FALSE));

Update 3 : Here is template.php :

<?php /**  * Preprocess variables for html.tpl.php  *  * @see system_elements()  * @see html.tpl.php  */ function commerce_kickstart_theme_preprocess_html(&$  variables) {   // Add conditional stylesheets for IE   drupal_add_css(path_to_theme() . '/css/commerce-kickstart-theme-ie-lte-8.css', array('group' => CSS_THEME, 'weight' => 23, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'preprocess' => FALSE));   drupal_add_css(path_to_theme() . '/css/commerce-kickstart-theme-ie-lte-7.css', array('group' => CSS_THEME, 'weight' => 24, 'browsers' => array('IE' => 'lte IE 7', '!IE' => FALSE), 'preprocess' => FALSE));    // Add external libraries.   drupal_add_library('commerce_kickstart_theme', 'selectnav'); }  /**  * Implements hook_library().  */ function commerce_kickstart_theme_library() {   $  libraries['selectnav'] = array(     'title' => 'Selectnav',     'version' => '',     'js' => array(       libraries_get_path('selectnav.js') . '/selectnav.min.js' => array(),     ),   );   return $  libraries; }  /**  * Override the submitted variable.  */ function commerce_kickstart_theme_preprocess_node(&$  variables) {   $  variables['submitted'] = $  variables['date'] . ' - ' . $  variables['name'];   if ($  variables['type'] == 'blog_post') {     $  variables['submitted'] = t('By') . ' ' . $  variables['name'] . ', ' . $  variables['date'];   }  function commerce_kickstart_theme_preprocess_html(&$  variables) { drupal_add_css('http://fonts.googleapis.com/css?family=Lobster+Two:400,700', array('type' => 'external'));  } }