How to pass array of locationId to service getLocationData to get latitude and longitude?

How to pass array of locationId to service to get latitude and longitude ? I have array of locations Id locationArr=[40871, 60009, 38149, 40868, 43240, 15299, 53897, 40976, 38151, 23183, 38152, 78579, 23180, 40977, 23176, 39565, 40884, 15298, 38147, 40966, 39669] Actually I need to pass locationArr to http://192.168.7.45:9200/location/_doc/+locationArr I need to pass array of…

Details

Use R to web scrape Tesla financial statements from Yahoo Finance

I would like to scrape the following “income statement” table from Yahoo Finance to RStudio as a dataframe. Further, the one table displays either annual or quarterly data depending on what is selected. I would like to bring in both as seperate dataframes. https://finance.yahoo.com/quote/TSLA/financials?p=TSLA I tried the following code but it didn’t work: library(htmltab) url…

Details

Overwriting an anchor tag styling in css bootstrap

I am want my active link to be red: nav class=”navbar navbar-inverse”> <div class=”container col-1 col-sm-12″> <ul class=”nav”> <li class=”<%= ‘active’ if current_page?(squad_path) %>”><%= link_to(“squad”, squad_path)%></li> <li class=” <%= ‘active’ if current_page?(album_path) %>”><%= link_to(“album”, album_path)%></li> … When I inspect the page, the li tag is active but doesn’t change the color on the site. The…

Details

How to test API service using Karma with HttpTestingController

I am trying to get how to test my ApiService using HttpTestingController with Promise. Now my unit tests look as below: import { TestBed, getTestBed } from ‘@angular/core/testing’; import { HttpClientTestingModule, HttpTestingController } from ‘@angular/common/http/testing’; import { ApiService } from ‘./api.service’; import { faker } from ‘faker’; describe(‘ApiService’, () => { let injector: TestBed; let…

Details