Abhishek

1

votes
1

answer
92

views

ES6 syntax error with babel-loader (webpack)

Trying to make a simple graph using storm-react-diagrams Not Completely sure how to solve this. Error: ERROR in ./src/diagram.jsx Module build failed: SyntaxError: Unexpected token, expected , (31:9) 29 | // link the ports 30 | let link1 = port1.link(port2); > 31 | (link1 as DefaultLinkModel)....
abhishek-kdm
1

votes
1

answer
139

views

.NET Core with Angular : How do I configure IIS for URL Rewriting in HTML5 mode?

I have built an angular 6 application with .Net core 2.1 and deployed to azure server on IIS web server. The routing is working fine on localhost when refresh, but not working on azure server. I checked angular deployment guideline and added following code in web.config file Now, I got into new prob...
Abhishek
1

votes
1

answer
859

views

Type mismatch when using iterators

I'm getting this error when i run the below code - type mismatch, found : scala.collection.immutable.IndexedSeq[Int] required: Range Where I'm going wrong ? Functions - def calcRange(i: Int, r: List[Range]):List[Range] = r match { case List() => List(new Range(i,i+1,1)) case r1::rs => if (r1.sta...
Abhishek Modi
1

votes
2

answer
775

views

Open AI enviroment with changing action-space after each step

Is there a way for me to implement openai environment, where the action space changes at each step?
Abhishek Bhatia
1

votes
1

answer
2.6k

views

How to get the month name instead of month number in javascript? [duplicate]

This question already has an answer here: Get month name from Date 28 answers Here is my Code: var listDate = []; var startDate ='2017-02-01'; var endDate = '2017-02-10'; var dateMove = new Date(startDate); var strDate = startDate; while (strDate < endDate){ var strDate = dateMove.toISOString().sli...
ABHISHEK S
1

votes
3

answer
35

views

How to get the data in flask from the HTML input with changing the url of website

I have a input box in HTML and what I want is to get the data that get input in that box when button is clicked. I know how to get data from the form ex = request.form['example']; I want to get the data in flask just like above but for the input box which look like this -
Abhishek Patel
1

votes
4

answer
49

views

Remove duplicate Source to Destination (eg. for 2 different entries(rows), Delhi to Mumbai and Mumbai to Delhi, output should be one)

I have a table in sql server database. Source Destination Fare ------------------------------- Delhi Mumbai 100 Mumbai Delhi 100 London New York 500 I have to write an sql query that produce following result. Source Destination Fare ---------...
Abhishek Raj
1

votes
1

answer
18

views

Check length constraint is not working in Oracle11g sqlplus

I've been trying to put length constraint , so that it would not take string whose length is more or less than 5 Create Table Statement: create table exp(id char(10),name varchar(50)); Add Constraint Statement: alter table exp add constraint exp1 check(length(id)=5); Insert Statement: insert into ex...
Abhishek Kumar
1

votes
8

answer
64

views

Need to remove all the character after “:” and “-”

I have two string with the following structure. 1 ABCD: PQRS XYZ 2 qwerty-asd zxc I need to remove all the character after ":" and "-" I have tried the following code. I want one combined solution for this please help me with this. m = re.sub(r'^-(.*?)', "" ,tags) print(m) n = re.sub(r'^:(.*?)', ""...
Abhishek Saitwal
0

votes
0

answer
6

views

Like google map I want to Design a Custom map using image

i want to plot a Image over an another image when I zoom a bootom Image keep the coordinate and size of upper image should be same (Like google map when we zoom map marker size is same ). I want to design a custom map using Image
abhishek rajput
0

votes
2

answer
24

views

finding in an array if specific fileds exists or not

This is my api {}JSON []products {}0 product-name : "Fiting" product-id : "1" product-description : "Door" product-image : "https://image/logo.jpg" product-categoryid : "2" category-name : "Furniture" {}1 product-name : "Bathroom" product-id : "2" product-description : "Services" product-image : "h...
Abhishek Kumar
0

votes
0

answer
3

views

Series Chart Drag and Drop

How do i implement dragging and dropping series chart item? I've looked over the api and while i've been able to drag the chart area, I haven't been able to drag a particular item of a series chart expected: 1. Add onDragStart output and drag each series item and re-render the chart actual 2. Nothi...
-1

votes
0

answer
13

views

Unable to import 'numpy'pylint(import-error)

I am new to python, using vs code throws me this error though I have correctly set the path. Unable to import 'numpy'pylint(import-error)
Abhishek Israni
0

votes
0

answer
6

views

UICollectionView Place cell in one row with two lines

I am new to UICollectionView and I want to display UICollectionViewCell in 2 line but I have only one row with Horizontal scroll. Please see below example to display cells: ======================== C0 C2 C4 C6 C8 C10 C1 C3 C5 C7 C9 ========================= Thanks,
Abhishek Gupta
0

votes
0

answer
6

views

How two panda data frames with same column values can be merged to form the third data frame that shows the difference of the values

dataframe:df1 name age id salary 0 Smith 30 2 2000 1 Ron 24 3 30000 2 Mike 35 4 40000 3 Jack 21 5 5000 4 Roshan 20 6 60000 5 Steve 45 8 8000 6 Peter 32 1 1000 dataframe:df2 name age salary id 0 Peter 28 10000 1 1 Smith 30...
Abhishek
1

votes
4

answer
2.9k

views

How to retrieve maximum value with their corresponding row using MAX function in PIG?

I have a table with columns country(chararray), population(int),zone(int). I need to find a country which has a greater population, where zone equal to 1. I need country name and population on the console. I tried these statements after load. fl = filter st by zone==1; grp = group fl by zone; result...
abhishek tiwari
1

votes
4

answer
81

views

A template can pass argument types without loss of information

Straustrup speaks about the template arguments being passed without loss of information in his book, The C++ programming language, "A template can pass argument types without loss of information;" What does he mean by loss of information here ? template T sum (T a, T b) { return a + b; } int main (...
Abhishek Singh
1

votes
1

answer
391

views

Selecting a frameset with index in Selenium with Python

Im currently in the phase of learning selenium with python. Following is the code im trying to run: browser=webdriver.Firefox() browser.maximize_window() browser.get('https://netbanking.hdfcbank.com') #print browser.page_source elems=browser.find_elements_by_tag_name('frameset') browser.switch_to_fr...
abhishek nair
1

votes
1

answer
4.1k

views

Cannot find module 'ionic-angular/navigation/navigation-container'

I was working on Swipeable tabs for Ionic 2 using ionic2-super-tabs and while building the project got an error Cannot find module 'ionic-angular/navigation/navigation-container' Any help will be really useful.
Abhishek Singh
1

votes
1

answer
917

views

Component-changes.json not found SAPUI5

I am getting below error in console, everytime I am creating any project and I am not able to fix it.. I tried creating this file in different folders but still same error.. I have seen some of the threads which are opened for this Error on SCN but none of them worked for me. In my case app is not s...
Abhishek
1

votes
3

answer
151

views

What are training and test data sets

I am getting started in kaggle. I have just gone through various data science and machine learning competition I have seen that for every competition they have uploaded training data, test data and Original data. Can someone explain me what are those and how do we use those datasets while solving a...
Abhishek Sharma
1

votes
3

answer
682

views

sudo gem install cocoapods getting error

Unable to install 'cocoapods' in my mac. I am currently using macOS Sierra. ERROR: While executing gem ... (Errno::EPERM)## Operation not permitted - /usr/bin/xcodeproj
Abhishek singh
1

votes
1

answer
830

views

How to display an Android Activity in Flutter?

I am currently working on an app that uses Google Maps Api in flutter. Due to incomplete support I just get to use a static map, clicking upon which leads to an Android activity which is of no use. What I need is a map where I can search for a location and add a marker to that location. So is it pos...
Abhishek Upmanyu
1

votes
2

answer
44

views

fetch data based on similar value

I have two table table1 and table2. table1 have: code name 10 ABC 11 DEF 12 FGH table2 have: code1 code2 code3 Buyer 10 11 12 AAA 12 11 10 BBB 11 12 10 CCC Now, i want to make SQL query that fetch...
Abhishek Rana
1

votes
3

answer
84

views

SELECT Where ID in (List of IDs) and limit records of each IDs in MySQL

I have a met a situation that I have list of IDs of a Store table and need to fetch latest 10 files from each store. SELECT * FROM tblFiles WHERE storeId in (IDs) ORDER BY createdDate DESC LIMIT 10 But, this limits the whole results. I found an answer to similar SO question. But, the answer rec...
Abhishek
1

votes
4

answer
1.8k

views

How to fetch webpage title and images from URL?

I want to fetch website title and images from URL. as facebook.com doing. How I get images and website title from third party link.?
Abhishek B.
-1

votes
0

answer
47

views

How to pass launchEnvironment or launchArguments for Automation of UI testing on https://appcenter.ms

I am trying to pass launchEnvironment or launchArguments when I am running UItestApp and Able to pass launchEnvironment or launchArguments while running on xcode but same code is not working when I am running on https://appcenter.ms for Automation of UI testing. Please let me know if there is any s...
Abhishek Sharma
1

votes
3

answer
20.3k

views

how to find the version and edition of sql server instance via registry

I am using below registry search to get the list of all sql server instance name. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL. How can i get the version and edition of instance name(s) return by above registry search?? What i am actually trying to accomplish here is...
Abhishek Kumar
0

votes
1

answer
20

views

how to send ajax request one by one same page on particaular block of code

Hi Everyone I am a bit confused to send a request using ajax. I can send a request using first text-field (using onkeyup even) and also getting response properly as I needed. But now I want to send a request from second text-field also (using onkeyup even) on the same URL and this time the ajax call...
Abhishek Rawal
1

votes
1

answer
335

views

redirecting shell command output to C program

I have the following program : /* a.c */ #include int main(int argc, char* argv[]){ size_t size=0; char* lineptr; while(getline(&lineptr, &size, stdin)){ fprintf(stderr, "line = %s\n", lineptr); if(lineptr){ free(lineptr); lineptr = NULL; }...
Abhishek Choubey
1

votes
7

answer
13.7k

views

Optimizing the SQL Query to reduce execution time

My SQL Query with all the filters applied is returning 10 lakhs (one million) records . To get all the records it is taking 76.28 seconds .. which is not acceptable . How can I optimize my SQL Query which should take less time. The Query I am using is : SELECT cDistName , cTlkName, cGpName, c...
Abhishek
1

votes
3

answer
742

views

c# checkbox is not working

I am new to this c# coding. I am trying to write a code using checkboxes. Below is code in design flow 2 wheeler 4 wheeler And following is codebehind public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Hid1(); Hid2(); } protected void onAckTy...
abhishek bahal
1

votes
2

answer
74

views

Two Cases of Ajax loading of Webpage having some contradiction

I am using, Ajax load function in jquery to load another page in DOM. By using this $('.upload').on('click',function(){ $('.content').load('loo.php'); }); When i use this the page in division content loads after a 3-4 second Interval. I wanted to show progress bar using that interval so i used th...
Abhishek
1

votes
1

answer
1k

views

clientHeight not working in JavaScript?

I'm learning JavaScript and created a countdown timer HTML page in which javascript code seems to be returning a wrong clientHeight of the body. I want to show my countdown HTML in middle (vertically) of the body even when browser is re-sized. Please tell me where I am wrong. CountDown Timer functi...
abhishek-23
1

votes
1

answer
518

views

Understanding bitwise condition check for getting all possible sums of combinations in an Array paased

I got an algorithm whose objective is to give all possible sums of all combinations in an array of Integer. private void arraySumPermutation(int value ,int[] arr){ int N = arr.length; for(int i=0;i
Abhishek Choudhary
1

votes
3

answer
776

views

Time doesn't get trimmed in DateTime.ParseExact

I have a textbox control as which takes a date and time but I want to send only a date to the database. DateTime.ParseExact(TxtStartDate.Text.Trim(), "dd/MM/yyyy", null); I am using this at cs page but it doesn't trim the time. What possibles error are there?
Abhishek gupta
1

votes
1

answer
166

views

template0 default encoding in Postgresql 8.4

I have created a Database with following command in PostgreSQL 8.4. "CREATE DATABASE dbname TEMPLATE template0" My Question is what is the encoding scheme of the default template that is template0. For me when I create the database it shows me encoding as UTF-8,will template0 be system dependent or...
Abhishek Parikh
1

votes
4

answer
3.8k

views

How would I delay in PHP?

I'm not asking for sleep(). I'm aware of that function. if(mysql_num_rows($result) == 1){ //DELAY TO OCCUR HERE echo "You are a validated user."; header('Location: usermainpage.php'); } If I use the sleep function, it simply delays loading the page. I want the echo to appear and then a redirect to o...
Abhishek Sha
1

votes
2

answer
710

views

How to fetch data from remote url using c++ program in linux?

I wish to read an XML file hosted on web via my C++ program. I'm working on LINUX. I'm currently using popen to read. FILE* remote = popen("curl 'my_url_to_xml', "r") fread(buf, 1024, 1, remote); It works and gives me the content in the url but then it has this extra matter dumped on screen even t...
Abhishek
1

votes
1

answer
7.9k

views

Youtube Video not working within fancybox on ipad when using jquery.fancybox-media.js

I am trying to use youtube video within a fancybox with responsive features such that it can adjust its dimensions according to the device for that i had used jquery.fancybox-media.js and it works well on desktop but video doesn't play on iPad . Visit http://fancyapps.com/fancybox/ then clicking o...
Abhishek Panda

View additional